configure 845 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311
  1. #! /bin/sh
  2. # From configure.ac Revision: 432280 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69 for asterisk trunk.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. #
  9. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # "Asterisk"
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. # Use a proper internal environment variable to ensure we don't fall
  129. # into an infinite loop, continuously re-executing ourselves.
  130. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  131. _as_can_reexec=no; export _as_can_reexec;
  132. # We cannot yet assume a decent shell, so we have to provide a
  133. # neutralization value for shells without unset; and this also
  134. # works around shells that cannot unset nonexistent variables.
  135. # Preserve -v and -x to the replacement shell.
  136. BASH_ENV=/dev/null
  137. ENV=/dev/null
  138. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  139. case $- in # ((((
  140. *v*x* | *x*v* ) as_opts=-vx ;;
  141. *v* ) as_opts=-v ;;
  142. *x* ) as_opts=-x ;;
  143. * ) as_opts= ;;
  144. esac
  145. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  146. # Admittedly, this is quite paranoid, since all the known shells bail
  147. # out after a failed `exec'.
  148. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  149. as_fn_exit 255
  150. fi
  151. # We don't want this to propagate to other subprocesses.
  152. { _as_can_reexec=; unset _as_can_reexec;}
  153. if test "x$CONFIG_SHELL" = x; then
  154. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  155. emulate sh
  156. NULLCMD=:
  157. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  158. # is contrary to our usage. Disable this feature.
  159. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  160. setopt NO_GLOB_SUBST
  161. else
  162. case \`(set -o) 2>/dev/null\` in #(
  163. *posix*) :
  164. set -o posix ;; #(
  165. *) :
  166. ;;
  167. esac
  168. fi
  169. "
  170. as_required="as_fn_return () { (exit \$1); }
  171. as_fn_success () { as_fn_return 0; }
  172. as_fn_failure () { as_fn_return 1; }
  173. as_fn_ret_success () { return 0; }
  174. as_fn_ret_failure () { return 1; }
  175. exitcode=0
  176. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  177. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  178. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  179. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  180. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  181. else
  182. exitcode=1; echo positional parameters were not saved.
  183. fi
  184. test x\$exitcode = x0 || exit 1
  185. test -x / || exit 1"
  186. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  187. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  188. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  189. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  190. test \$(( 1 + 1 )) = 2 || exit 1"
  191. if (eval "$as_required") 2>/dev/null; then :
  192. as_have_required=yes
  193. else
  194. as_have_required=no
  195. fi
  196. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  197. else
  198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  199. as_found=false
  200. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  201. do
  202. IFS=$as_save_IFS
  203. test -z "$as_dir" && as_dir=.
  204. as_found=:
  205. case $as_dir in #(
  206. /*)
  207. for as_base in sh bash ksh sh5; do
  208. # Try only shells that exist, to save several forks.
  209. as_shell=$as_dir/$as_base
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. CONFIG_SHELL=$as_shell as_have_required=yes
  213. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. break 2
  215. fi
  216. fi
  217. done;;
  218. esac
  219. as_found=false
  220. done
  221. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  223. CONFIG_SHELL=$SHELL as_have_required=yes
  224. fi; }
  225. IFS=$as_save_IFS
  226. if test "x$CONFIG_SHELL" != x; then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno; then :
  248. $as_echo "$0: This script requires a shell more modern than all"
  249. $as_echo "$0: the shells that I found on your system."
  250. if test x${ZSH_VERSION+set} = xset ; then
  251. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  252. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  253. else
  254. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  255. $0: https://issues.asterisk.org about your system,
  256. $0: including any error possibly output before this
  257. $0: message. Then install a modern shell, or manually run
  258. $0: the script under such a shell if you do have one."
  259. fi
  260. exit 1
  261. fi
  262. fi
  263. fi
  264. SHELL=${CONFIG_SHELL-/bin/sh}
  265. export SHELL
  266. # Unset more variables known to interfere with behavior of common tools.
  267. CLICOLOR_FORCE= GREP_OPTIONS=
  268. unset CLICOLOR_FORCE GREP_OPTIONS
  269. ## --------------------- ##
  270. ## M4sh Shell Functions. ##
  271. ## --------------------- ##
  272. # as_fn_unset VAR
  273. # ---------------
  274. # Portably unset VAR.
  275. as_fn_unset ()
  276. {
  277. { eval $1=; unset $1;}
  278. }
  279. as_unset=as_fn_unset
  280. # as_fn_set_status STATUS
  281. # -----------------------
  282. # Set $? to STATUS, without forking.
  283. as_fn_set_status ()
  284. {
  285. return $1
  286. } # as_fn_set_status
  287. # as_fn_exit STATUS
  288. # -----------------
  289. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  290. as_fn_exit ()
  291. {
  292. set +e
  293. as_fn_set_status $1
  294. exit $1
  295. } # as_fn_exit
  296. # as_fn_mkdir_p
  297. # -------------
  298. # Create "$as_dir" as a directory, including parents if necessary.
  299. as_fn_mkdir_p ()
  300. {
  301. case $as_dir in #(
  302. -*) as_dir=./$as_dir;;
  303. esac
  304. test -d "$as_dir" || eval $as_mkdir_p || {
  305. as_dirs=
  306. while :; do
  307. case $as_dir in #(
  308. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  309. *) as_qdir=$as_dir;;
  310. esac
  311. as_dirs="'$as_qdir' $as_dirs"
  312. as_dir=`$as_dirname -- "$as_dir" ||
  313. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  314. X"$as_dir" : 'X\(//\)[^/]' \| \
  315. X"$as_dir" : 'X\(//\)$' \| \
  316. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  317. $as_echo X"$as_dir" |
  318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  319. s//\1/
  320. q
  321. }
  322. /^X\(\/\/\)[^/].*/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)$/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\).*/{
  331. s//\1/
  332. q
  333. }
  334. s/.*/./; q'`
  335. test -d "$as_dir" && break
  336. done
  337. test -z "$as_dirs" || eval "mkdir $as_dirs"
  338. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  339. } # as_fn_mkdir_p
  340. # as_fn_executable_p FILE
  341. # -----------------------
  342. # Test if FILE is an executable regular file.
  343. as_fn_executable_p ()
  344. {
  345. test -f "$1" && test -x "$1"
  346. } # as_fn_executable_p
  347. # as_fn_append VAR VALUE
  348. # ----------------------
  349. # Append the text in VALUE to the end of the definition contained in VAR. Take
  350. # advantage of any shell optimizations that allow amortized linear growth over
  351. # repeated appends, instead of the typical quadratic growth present in naive
  352. # implementations.
  353. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  354. eval 'as_fn_append ()
  355. {
  356. eval $1+=\$2
  357. }'
  358. else
  359. as_fn_append ()
  360. {
  361. eval $1=\$$1\$2
  362. }
  363. fi # as_fn_append
  364. # as_fn_arith ARG...
  365. # ------------------
  366. # Perform arithmetic evaluation on the ARGs, and store the result in the
  367. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  368. # must be portable across $(()) and expr.
  369. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else
  375. as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. }
  379. fi # as_fn_arith
  380. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  381. # ----------------------------------------
  382. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  383. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  384. # script with STATUS, using 1 if that was 0.
  385. as_fn_error ()
  386. {
  387. as_status=$1; test $as_status -eq 0 && as_status=1
  388. if test "$4"; then
  389. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  390. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  391. fi
  392. $as_echo "$as_me: error: $2" >&2
  393. as_fn_exit $as_status
  394. } # as_fn_error
  395. if expr a : '\(a\)' >/dev/null 2>&1 &&
  396. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  397. as_expr=expr
  398. else
  399. as_expr=false
  400. fi
  401. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  402. as_basename=basename
  403. else
  404. as_basename=false
  405. fi
  406. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  407. as_dirname=dirname
  408. else
  409. as_dirname=false
  410. fi
  411. as_me=`$as_basename -- "$0" ||
  412. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  413. X"$0" : 'X\(//\)$' \| \
  414. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  415. $as_echo X/"$0" |
  416. sed '/^.*\/\([^/][^/]*\)\/*$/{
  417. s//\1/
  418. q
  419. }
  420. /^X\/\(\/\/\)$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\).*/{
  425. s//\1/
  426. q
  427. }
  428. s/.*/./; q'`
  429. # Avoid depending upon Character Ranges.
  430. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  431. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  432. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  433. as_cr_digits='0123456789'
  434. as_cr_alnum=$as_cr_Letters$as_cr_digits
  435. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  436. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  437. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  438. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  439. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  440. sed -n '
  441. p
  442. /[$]LINENO/=
  443. ' <$as_myself |
  444. sed '
  445. s/[$]LINENO.*/&-/
  446. t lineno
  447. b
  448. :lineno
  449. N
  450. :loop
  451. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  452. t loop
  453. s/-\n.*//
  454. ' >$as_me.lineno &&
  455. chmod +x "$as_me.lineno" ||
  456. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  457. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  458. # already done that, so ensure we don't try to do so again and fall
  459. # in an infinite loop. This has already happened in practice.
  460. _as_can_reexec=no; export _as_can_reexec
  461. # Don't try to exec as it changes $[0], causing all sort of problems
  462. # (the dirname of $[0] is not the place where we might find the
  463. # original and so on. Autoconf is especially sensitive to this).
  464. . "./$as_me.lineno"
  465. # Exit status is that of the last command.
  466. exit
  467. }
  468. ECHO_C= ECHO_N= ECHO_T=
  469. case `echo -n x` in #(((((
  470. -n*)
  471. case `echo 'xy\c'` in
  472. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  473. xy) ECHO_C='\c';;
  474. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  475. ECHO_T=' ';;
  476. esac;;
  477. *)
  478. ECHO_N='-n';;
  479. esac
  480. rm -f conf$$ conf$$.exe conf$$.file
  481. if test -d conf$$.dir; then
  482. rm -f conf$$.dir/conf$$.file
  483. else
  484. rm -f conf$$.dir
  485. mkdir conf$$.dir 2>/dev/null
  486. fi
  487. if (echo >conf$$.file) 2>/dev/null; then
  488. if ln -s conf$$.file conf$$ 2>/dev/null; then
  489. as_ln_s='ln -s'
  490. # ... but there are two gotchas:
  491. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  492. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  493. # In both cases, we have to default to `cp -pR'.
  494. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  495. as_ln_s='cp -pR'
  496. elif ln conf$$.file conf$$ 2>/dev/null; then
  497. as_ln_s=ln
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. else
  502. as_ln_s='cp -pR'
  503. fi
  504. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  505. rmdir conf$$.dir 2>/dev/null
  506. if mkdir -p . 2>/dev/null; then
  507. as_mkdir_p='mkdir -p "$as_dir"'
  508. else
  509. test -d ./-p && rmdir ./-p
  510. as_mkdir_p=false
  511. fi
  512. as_test_x='test -x'
  513. as_executable_p=as_fn_executable_p
  514. # Sed expression to map a string onto a valid CPP name.
  515. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  516. # Sed expression to map a string onto a valid variable name.
  517. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  518. test -n "$DJDIR" || exec 7<&0 </dev/null
  519. exec 6>&1
  520. # Name of the host.
  521. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  522. # so uname gets run too.
  523. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  524. #
  525. # Initializations.
  526. #
  527. ac_default_prefix=/usr/local
  528. ac_clean_files=
  529. ac_config_libobj_dir=.
  530. LIBOBJS=
  531. cross_compiling=no
  532. subdirs=
  533. MFLAGS=
  534. MAKEFLAGS=
  535. # Identity of this package.
  536. PACKAGE_NAME='asterisk'
  537. PACKAGE_TARNAME='asterisk'
  538. PACKAGE_VERSION='trunk'
  539. PACKAGE_STRING='asterisk trunk'
  540. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  541. PACKAGE_URL=''
  542. ac_unique_file="main/asterisk.c"
  543. # Factoring default headers for most tests.
  544. ac_includes_default="\
  545. #include <stdio.h>
  546. #ifdef HAVE_SYS_TYPES_H
  547. # include <sys/types.h>
  548. #endif
  549. #ifdef HAVE_SYS_STAT_H
  550. # include <sys/stat.h>
  551. #endif
  552. #ifdef STDC_HEADERS
  553. # include <stdlib.h>
  554. # include <stddef.h>
  555. #else
  556. # ifdef HAVE_STDLIB_H
  557. # include <stdlib.h>
  558. # endif
  559. #endif
  560. #ifdef HAVE_STRING_H
  561. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  562. # include <memory.h>
  563. # endif
  564. # include <string.h>
  565. #endif
  566. #ifdef HAVE_STRINGS_H
  567. # include <strings.h>
  568. #endif
  569. #ifdef HAVE_INTTYPES_H
  570. # include <inttypes.h>
  571. #endif
  572. #ifdef HAVE_STDINT_H
  573. # include <stdint.h>
  574. #endif
  575. #ifdef HAVE_UNISTD_H
  576. # include <unistd.h>
  577. #endif"
  578. ac_header_list=
  579. ac_subst_vars='LTLIBOBJS
  580. PBX_SYSLOG
  581. PBX_SYSLOG_FACILITY_LOG_UUCP
  582. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  583. PBX_SYSLOG_FACILITY_LOG_NEWS
  584. PBX_SYSLOG_FACILITY_LOG_MAIL
  585. PBX_SYSLOG_FACILITY_LOG_LPR
  586. PBX_SYSLOG_FACILITY_LOG_KERN
  587. PBX_SYSLOG_FACILITY_LOG_FTP
  588. PBX_SYSLOG_FACILITY_LOG_DAEMON
  589. PBX_SYSLOG_FACILITY_LOG_CRON
  590. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  591. PBX_SYSLOG_FACILITY_LOG_AUTH
  592. PBX_GENERIC_ODBC
  593. GENERIC_ODBC_INCLUDE
  594. GENERIC_ODBC_LIB
  595. GTK2_LIBS
  596. GTK2_CFLAGS
  597. PBX_LAUNCHD
  598. CONFIG_SDL
  599. PBX_SO_NOSIGPIPE
  600. PBX_MSG_NOSIGNAL
  601. PBX_IXJUSER
  602. PBX_H323
  603. GMIME_LIBS
  604. GMIME_CFLAGS
  605. OPENH323_BUILD
  606. OPENH323_SUFFIX
  607. OPENH323_LIBDIR
  608. OPENH323_INCDIR
  609. OPENH323DIR
  610. PWLIB_PLATFORM
  611. PWLIB_LIBDIR
  612. PWLIB_INCDIR
  613. PWLIBDIR
  614. PTLIB_CONFIG
  615. PG_CONFIG
  616. CONFIG_NETSNMP
  617. CONFIG_NEON29
  618. CONFIG_NEON
  619. CONFIG_MYSQLCLIENT
  620. PBX_MISDN_FAC_ERROR
  621. PBX_MISDN_FAC_RESULT
  622. LIBEDIT_LIBS
  623. LIBEDIT_CFLAGS
  624. LIBEDIT_INTERNAL
  625. ILBC_LIBS
  626. ILBC_CFLAGS
  627. ILBC_INTERNAL
  628. GSM_INTERNAL
  629. PBX_DAHDI_HALF_FULL
  630. PKG_CONFIG_LIBDIR
  631. PKG_CONFIG_PATH
  632. PKG_CONFIG
  633. PBX_DLADDR
  634. PBX_IP_MTU_DISCOVER
  635. PBX_GLOB_BRACE
  636. PBX_GLOB_NOMAGIC
  637. AST_RPATH
  638. AST_CLANG_BLOCKS
  639. AST_CLANG_BLOCKS_LIBS
  640. AST_NESTED_FUNCTIONS
  641. AST_NATIVE_ARCH
  642. AST_SHADOW_WARNINGS
  643. AST_NO_STRICT_OVERFLOW
  644. AST_FORTIFY_SOURCE
  645. AST_TRAMPOLINES
  646. AST_DECLARATION_AFTER_STATEMENT
  647. GC_LDFLAGS
  648. GC_CFLAGS
  649. PBX_WEAKREF
  650. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  651. PBX_PTHREAD_RWLOCK_INITIALIZER
  652. AST_ASTERISKSSL
  653. HAS_POLL
  654. PBX_DYNAMIC_LIST
  655. POW_LIB
  656. PBX_WORKING_FORK
  657. LIBOBJS
  658. CONFIG_LIBXML2
  659. EDITLINE_LIB
  660. ALLOCA
  661. PBX_ZLIB
  662. ZLIB_DIR
  663. ZLIB_INCLUDE
  664. ZLIB_LIB
  665. PBX_X11
  666. X11_DIR
  667. X11_INCLUDE
  668. X11_LIB
  669. PBX_VPB
  670. VPB_DIR
  671. VPB_INCLUDE
  672. VPB_LIB
  673. PBX_VORBIS
  674. VORBIS_DIR
  675. VORBIS_INCLUDE
  676. VORBIS_LIB
  677. PBX_UUID
  678. UUID_DIR
  679. UUID_INCLUDE
  680. UUID_LIB
  681. PBX_UNIXODBC
  682. UNIXODBC_DIR
  683. UNIXODBC_INCLUDE
  684. UNIXODBC_LIB
  685. PBX_TONEZONE
  686. TONEZONE_DIR
  687. TONEZONE_INCLUDE
  688. TONEZONE_LIB
  689. PBX_TINFO
  690. TINFO_DIR
  691. TINFO_INCLUDE
  692. TINFO_LIB
  693. PBX_TIMERFD
  694. TIMERFD_DIR
  695. TIMERFD_INCLUDE
  696. TIMERFD_LIB
  697. PBX_TERMCAP
  698. TERMCAP_DIR
  699. TERMCAP_INCLUDE
  700. TERMCAP_LIB
  701. PBX_FREETDS
  702. FREETDS_DIR
  703. FREETDS_INCLUDE
  704. FREETDS_LIB
  705. PBX_SUPPSERV
  706. SUPPSERV_DIR
  707. SUPPSERV_INCLUDE
  708. SUPPSERV_LIB
  709. PBX_OPENSSL
  710. OPENSSL_DIR
  711. OPENSSL_INCLUDE
  712. OPENSSL_LIB
  713. PBX_SRTP_SHUTDOWN
  714. SRTP_SHUTDOWN_DIR
  715. SRTP_SHUTDOWN_INCLUDE
  716. SRTP_SHUTDOWN_LIB
  717. PBX_SRTP
  718. SRTP_DIR
  719. SRTP_INCLUDE
  720. SRTP_LIB
  721. PBX_SQLITE3
  722. SQLITE3_DIR
  723. SQLITE3_INCLUDE
  724. SQLITE3_LIB
  725. PBX_SQLITE
  726. SQLITE_DIR
  727. SQLITE_INCLUDE
  728. SQLITE_LIB
  729. PBX_SPEEXDSP
  730. SPEEXDSP_DIR
  731. SPEEXDSP_INCLUDE
  732. SPEEXDSP_LIB
  733. PBX_SPEEX_PREPROCESS
  734. SPEEX_PREPROCESS_DIR
  735. SPEEX_PREPROCESS_INCLUDE
  736. SPEEX_PREPROCESS_LIB
  737. PBX_SPEEX
  738. SPEEX_DIR
  739. SPEEX_INCLUDE
  740. SPEEX_LIB
  741. PBX_SS7
  742. SS7_DIR
  743. SS7_INCLUDE
  744. SS7_LIB
  745. PBX_SPANDSP
  746. SPANDSP_DIR
  747. SPANDSP_INCLUDE
  748. SPANDSP_LIB
  749. SOUNDS_CACHE_DIR
  750. PBX_SDL_IMAGE
  751. SDL_IMAGE_DIR
  752. SDL_IMAGE_INCLUDE
  753. SDL_IMAGE_LIB
  754. PBX_SDL
  755. SDL_DIR
  756. SDL_INCLUDE
  757. SDL_LIB
  758. PBX_RESAMPLE
  759. RESAMPLE_DIR
  760. RESAMPLE_INCLUDE
  761. RESAMPLE_LIB
  762. PBX_RADIUS
  763. RADIUS_DIR
  764. RADIUS_INCLUDE
  765. RADIUS_LIB
  766. PBX_PWLIB
  767. PWLIB_DIR
  768. PWLIB_INCLUDE
  769. PWLIB_LIB
  770. PBX_PRI_REVERSE_CHARGE
  771. PRI_REVERSE_CHARGE_DIR
  772. PRI_REVERSE_CHARGE_INCLUDE
  773. PRI_REVERSE_CHARGE_LIB
  774. PBX_PRI_SERVICE_MESSAGES
  775. PRI_SERVICE_MESSAGES_DIR
  776. PRI_SERVICE_MESSAGES_INCLUDE
  777. PRI_SERVICE_MESSAGES_LIB
  778. PBX_PRI_PROG_W_CAUSE
  779. PRI_PROG_W_CAUSE_DIR
  780. PRI_PROG_W_CAUSE_INCLUDE
  781. PRI_PROG_W_CAUSE_LIB
  782. PBX_PRI_INBANDDISCONNECT
  783. PRI_INBANDDISCONNECT_DIR
  784. PRI_INBANDDISCONNECT_INCLUDE
  785. PRI_INBANDDISCONNECT_LIB
  786. PBX_PRI_SETUP_KEYPAD
  787. PRI_SETUP_KEYPAD_DIR
  788. PRI_SETUP_KEYPAD_INCLUDE
  789. PRI_SETUP_KEYPAD_LIB
  790. PBX_PRI_CALL_REROUTING
  791. PRI_CALL_REROUTING_DIR
  792. PRI_CALL_REROUTING_INCLUDE
  793. PRI_CALL_REROUTING_LIB
  794. PBX_PRI_CALL_HOLD
  795. PRI_CALL_HOLD_DIR
  796. PRI_CALL_HOLD_INCLUDE
  797. PRI_CALL_HOLD_LIB
  798. PBX_PRI_SUBADDR
  799. PRI_SUBADDR_DIR
  800. PRI_SUBADDR_INCLUDE
  801. PRI_SUBADDR_LIB
  802. PBX_PRI_HANGUP_FIX
  803. PRI_HANGUP_FIX_DIR
  804. PRI_HANGUP_FIX_INCLUDE
  805. PRI_HANGUP_FIX_LIB
  806. PBX_PRI_CCSS
  807. PRI_CCSS_DIR
  808. PRI_CCSS_INCLUDE
  809. PRI_CCSS_LIB
  810. PBX_PRI_TRANSFER
  811. PRI_TRANSFER_DIR
  812. PRI_TRANSFER_INCLUDE
  813. PRI_TRANSFER_LIB
  814. PBX_PRI_AOC_EVENTS
  815. PRI_AOC_EVENTS_DIR
  816. PRI_AOC_EVENTS_INCLUDE
  817. PRI_AOC_EVENTS_LIB
  818. PBX_PRI_CALL_WAITING
  819. PRI_CALL_WAITING_DIR
  820. PRI_CALL_WAITING_INCLUDE
  821. PRI_CALL_WAITING_LIB
  822. PBX_PRI_MCID
  823. PRI_MCID_DIR
  824. PRI_MCID_INCLUDE
  825. PRI_MCID_LIB
  826. PBX_PRI_MWI
  827. PRI_MWI_DIR
  828. PRI_MWI_INCLUDE
  829. PRI_MWI_LIB
  830. PBX_PRI_DISPLAY_TEXT
  831. PRI_DISPLAY_TEXT_DIR
  832. PRI_DISPLAY_TEXT_INCLUDE
  833. PRI_DISPLAY_TEXT_LIB
  834. PBX_PRI_MWI_V2
  835. PRI_MWI_V2_DIR
  836. PRI_MWI_V2_INCLUDE
  837. PRI_MWI_V2_LIB
  838. PBX_PRI_DATETIME_SEND
  839. PRI_DATETIME_SEND_DIR
  840. PRI_DATETIME_SEND_INCLUDE
  841. PRI_DATETIME_SEND_LIB
  842. PBX_PRI_L2_PERSISTENCE
  843. PRI_L2_PERSISTENCE_DIR
  844. PRI_L2_PERSISTENCE_INCLUDE
  845. PRI_L2_PERSISTENCE_LIB
  846. PBX_PRI_SETUP_ACK_INBAND
  847. PRI_SETUP_ACK_INBAND_DIR
  848. PRI_SETUP_ACK_INBAND_INCLUDE
  849. PRI_SETUP_ACK_INBAND_LIB
  850. PBX_PRI
  851. PRI_DIR
  852. PRI_INCLUDE
  853. PRI_LIB
  854. PBX_PORTAUDIO
  855. PORTAUDIO_DIR
  856. PORTAUDIO_INCLUDE
  857. PORTAUDIO_LIB
  858. PBX_POPT
  859. POPT_DIR
  860. POPT_INCLUDE
  861. POPT_LIB
  862. PBX_PGSQL
  863. PGSQL_DIR
  864. PGSQL_INCLUDE
  865. PGSQL_LIB
  866. PBX_OSS
  867. OSS_DIR
  868. OSS_INCLUDE
  869. OSS_LIB
  870. PBX_OSPTK
  871. OSPTK_DIR
  872. OSPTK_INCLUDE
  873. OSPTK_LIB
  874. PBX_OPENR2
  875. OPENR2_DIR
  876. OPENR2_INCLUDE
  877. OPENR2_LIB
  878. PBX_OGG
  879. OGG_DIR
  880. OGG_INCLUDE
  881. OGG_LIB
  882. PBX_NEWT
  883. NEWT_DIR
  884. NEWT_INCLUDE
  885. NEWT_LIB
  886. PBX_NETSNMP
  887. NETSNMP_DIR
  888. NETSNMP_INCLUDE
  889. NETSNMP_LIB
  890. PBX_NEON29
  891. NEON29_DIR
  892. NEON29_INCLUDE
  893. NEON29_LIB
  894. PBX_NEON
  895. NEON_DIR
  896. NEON_INCLUDE
  897. NEON_LIB
  898. PBX_NCURSES
  899. NCURSES_DIR
  900. NCURSES_INCLUDE
  901. NCURSES_LIB
  902. PBX_NBS
  903. NBS_DIR
  904. NBS_INCLUDE
  905. NBS_LIB
  906. PBX_MYSQLCLIENT
  907. MYSQLCLIENT_DIR
  908. MYSQLCLIENT_INCLUDE
  909. MYSQLCLIENT_LIB
  910. PBX_MISDN
  911. MISDN_DIR
  912. MISDN_INCLUDE
  913. MISDN_LIB
  914. PBX_LUA
  915. LUA_DIR
  916. LUA_INCLUDE
  917. LUA_LIB
  918. PBX_LTDL
  919. LTDL_DIR
  920. LTDL_INCLUDE
  921. LTDL_LIB
  922. PBX_LIBXML2
  923. LIBXML2_DIR
  924. LIBXML2_INCLUDE
  925. LIBXML2_LIB
  926. PBX_LIBEDIT
  927. LIBEDIT_DIR
  928. LIBEDIT_INCLUDE
  929. LIBEDIT_LIB
  930. CURL_LIB
  931. CURL_INCLUDE
  932. _libcurl_config
  933. PBX_CURL
  934. PBX_LDAP
  935. LDAP_DIR
  936. LDAP_INCLUDE
  937. LDAP_LIB
  938. PBX_KQUEUE
  939. KQUEUE_DIR
  940. KQUEUE_INCLUDE
  941. KQUEUE_LIB
  942. PBX_JACK
  943. JACK_DIR
  944. JACK_INCLUDE
  945. JACK_LIB
  946. PBX_ISDNNET
  947. ISDNNET_DIR
  948. ISDNNET_INCLUDE
  949. ISDNNET_LIB
  950. PBX_IODBC
  951. IODBC_DIR
  952. IODBC_INCLUDE
  953. IODBC_LIB
  954. PBX_INOTIFY
  955. INOTIFY_DIR
  956. INOTIFY_INCLUDE
  957. INOTIFY_LIB
  958. PBX_IMAP_TK
  959. IMAP_TK_DIR
  960. IMAP_TK_INCLUDE
  961. IMAP_TK_LIB
  962. PBX_IKSEMEL
  963. IKSEMEL_DIR
  964. IKSEMEL_INCLUDE
  965. IKSEMEL_LIB
  966. PBX_ICONV
  967. ICONV_DIR
  968. ICONV_INCLUDE
  969. ICONV_LIB
  970. PBX_ICAL
  971. ICAL_DIR
  972. ICAL_INCLUDE
  973. ICAL_LIB
  974. PBX_HOARD
  975. HOARD_DIR
  976. HOARD_INCLUDE
  977. HOARD_LIB
  978. PBX_OPENH323
  979. OPENH323_DIR
  980. OPENH323_INCLUDE
  981. OPENH323_LIB
  982. PBX_GMIME
  983. GMIME_DIR
  984. GMIME_INCLUDE
  985. GMIME_LIB
  986. PBX_GTK2
  987. GTK2_DIR
  988. GTK2_INCLUDE
  989. GTK2_LIB
  990. PBX_ILBC
  991. ILBC_DIR
  992. ILBC_INCLUDE
  993. ILBC_LIB
  994. PBX_GSM
  995. GSM_DIR
  996. GSM_INCLUDE
  997. GSM_LIB
  998. PBX_FFMPEG
  999. FFMPEG_DIR
  1000. FFMPEG_INCLUDE
  1001. FFMPEG_LIB
  1002. PBX_DAHDI
  1003. DAHDI_DIR
  1004. DAHDI_INCLUDE
  1005. DAHDI_LIB
  1006. PBX_OPENSSL_SRTP
  1007. OPENSSL_SRTP_DIR
  1008. OPENSSL_SRTP_INCLUDE
  1009. OPENSSL_SRTP_LIB
  1010. PBX_CRYPTO
  1011. CRYPTO_DIR
  1012. CRYPTO_INCLUDE
  1013. CRYPTO_LIB
  1014. PBX_CURSES
  1015. CURSES_DIR
  1016. CURSES_INCLUDE
  1017. CURSES_LIB
  1018. PBX_COROSYNC_CFG_STATE_TRACK
  1019. COROSYNC_CFG_STATE_TRACK_DIR
  1020. COROSYNC_CFG_STATE_TRACK_INCLUDE
  1021. COROSYNC_CFG_STATE_TRACK_LIB
  1022. PBX_COROSYNC
  1023. COROSYNC_DIR
  1024. COROSYNC_INCLUDE
  1025. COROSYNC_LIB
  1026. PBX_CAP
  1027. CAP_DIR
  1028. CAP_INCLUDE
  1029. CAP_LIB
  1030. PBX_BLUETOOTH
  1031. BLUETOOTH_DIR
  1032. BLUETOOTH_INCLUDE
  1033. BLUETOOTH_LIB
  1034. PBX_BKTR
  1035. BKTR_DIR
  1036. BKTR_INCLUDE
  1037. BKTR_LIB
  1038. PBX_BFD
  1039. BFD_DIR
  1040. BFD_INCLUDE
  1041. BFD_LIB
  1042. PBX_ALSA
  1043. ALSA_DIR
  1044. ALSA_INCLUDE
  1045. ALSA_LIB
  1046. AST_CODE_COVERAGE
  1047. AST_DEVMODE_STRICT
  1048. AST_DEVMODE
  1049. NOISY_BUILD
  1050. PTHREAD_CFLAGS
  1051. PTHREAD_LIBS
  1052. PTHREAD_CC
  1053. acx_pthread_config
  1054. MD5
  1055. SOXMIX
  1056. PBX_FLEX
  1057. PBX_BISON
  1058. OPENSSL
  1059. SHA1SUM
  1060. LDCONFIG
  1061. DOWNLOAD
  1062. FETCH
  1063. GIT
  1064. XMLSTARLET
  1065. XMLLINT
  1066. KPATHSEA
  1067. CATDVI
  1068. RUBBER
  1069. CURL
  1070. WGET
  1071. DOT
  1072. LN
  1073. DIRNAME
  1074. BASENAME
  1075. COMPRESS
  1076. FIND
  1077. PYTHON
  1078. FLEX
  1079. CMP
  1080. BISON
  1081. GNU_LD
  1082. ac_ct_AR
  1083. AR
  1084. ac_ct_STRIP
  1085. STRIP
  1086. GNU_MAKE
  1087. LN_S
  1088. INSTALL_DATA
  1089. INSTALL_SCRIPT
  1090. INSTALL_PROGRAM
  1091. AWK
  1092. SED
  1093. CXXCPP
  1094. ac_ct_CXX
  1095. CXXFLAGS
  1096. RANLIB
  1097. LD
  1098. CXX
  1099. PBX_OSREV
  1100. UNAME
  1101. PBX_WINARCH
  1102. OSARCH
  1103. HOST_OS
  1104. HOST_VENDOR
  1105. HOST_CPU
  1106. HOST_PLATFORM
  1107. BUILD_OS
  1108. BUILD_VENDOR
  1109. BUILD_CPU
  1110. BUILD_PLATFORM
  1111. astvarrundir
  1112. astlogdir
  1113. astspooldir
  1114. astkeydir
  1115. astdbdir
  1116. astdatadir
  1117. astvarlibdir
  1118. astmandir
  1119. astmoddir
  1120. astlibdir
  1121. astheaderdir
  1122. astetcdir
  1123. astsbindir
  1124. EGREP
  1125. GREP
  1126. CPP
  1127. OBJEXT
  1128. EXEEXT
  1129. ac_ct_CC
  1130. CPPFLAGS
  1131. LDFLAGS
  1132. CFLAGS
  1133. CC
  1134. CONFIG_LDFLAGS
  1135. CONFIG_CFLAGS
  1136. host_os
  1137. host_vendor
  1138. host_cpu
  1139. host
  1140. build_os
  1141. build_vendor
  1142. build_cpu
  1143. build
  1144. target_alias
  1145. host_alias
  1146. build_alias
  1147. LIBS
  1148. ECHO_T
  1149. ECHO_N
  1150. ECHO_C
  1151. DEFS
  1152. mandir
  1153. localedir
  1154. libdir
  1155. psdir
  1156. pdfdir
  1157. dvidir
  1158. htmldir
  1159. infodir
  1160. docdir
  1161. oldincludedir
  1162. includedir
  1163. localstatedir
  1164. sharedstatedir
  1165. sysconfdir
  1166. datadir
  1167. datarootdir
  1168. libexecdir
  1169. sbindir
  1170. bindir
  1171. program_transform_name
  1172. prefix
  1173. exec_prefix
  1174. PACKAGE_URL
  1175. PACKAGE_BUGREPORT
  1176. PACKAGE_STRING
  1177. PACKAGE_VERSION
  1178. PACKAGE_TARNAME
  1179. PACKAGE_NAME
  1180. PATH_SEPARATOR
  1181. SHELL'
  1182. ac_subst_files=''
  1183. ac_user_opts='
  1184. enable_option_checking
  1185. with_gnu_ld
  1186. enable_dev_mode
  1187. enable_coverage
  1188. with_asound
  1189. with_bfd
  1190. with_execinfo
  1191. with_bluetooth
  1192. with_cap
  1193. with_cpg
  1194. with_curses
  1195. with_crypto
  1196. with_dahdi
  1197. with_avcodec
  1198. with_gsm
  1199. with_ilbc
  1200. with_gtk2
  1201. with_gmime
  1202. with_h323
  1203. with_hoard
  1204. with_ical
  1205. with_iconv
  1206. with_iksemel
  1207. with_imap
  1208. with_inotify
  1209. with_iodbc
  1210. with_isdnnet
  1211. with_jack
  1212. with_kqueue
  1213. with_ldap
  1214. with_libcurl
  1215. with_libedit
  1216. with_libxml2
  1217. with_ltdl
  1218. with_lua
  1219. with_misdn
  1220. with_mysqlclient
  1221. with_nbs
  1222. with_ncurses
  1223. with_neon
  1224. with_neon29
  1225. with_netsnmp
  1226. with_newt
  1227. with_ogg
  1228. with_openr2
  1229. with_osptk
  1230. with_oss
  1231. with_postgres
  1232. with_popt
  1233. with_portaudio
  1234. with_pri
  1235. with_pwlib
  1236. with_radius
  1237. with_resample
  1238. with_sdl
  1239. with_SDL_image
  1240. with_sounds_cache
  1241. with_spandsp
  1242. with_ss7
  1243. with_speex
  1244. with_speexdsp
  1245. with_sqlite
  1246. with_sqlite3
  1247. with_srtp
  1248. with_ssl
  1249. with_suppserv
  1250. with_tds
  1251. with_termcap
  1252. with_timerfd
  1253. with_tinfo
  1254. with_tonezone
  1255. with_unixodbc
  1256. with_uuid
  1257. with_vorbis
  1258. with_vpb
  1259. with_x11
  1260. with_z
  1261. enable_xmldoc
  1262. enable_largefile
  1263. enable_internal_poll
  1264. enable_asteriskssl
  1265. enable_rpath
  1266. '
  1267. ac_precious_vars='build_alias
  1268. host_alias
  1269. target_alias
  1270. CC
  1271. CFLAGS
  1272. LDFLAGS
  1273. LIBS
  1274. CPPFLAGS
  1275. CPP
  1276. CXX
  1277. CXXFLAGS
  1278. CCC
  1279. CXXCPP
  1280. PKG_CONFIG
  1281. PKG_CONFIG_PATH
  1282. PKG_CONFIG_LIBDIR
  1283. ILBC_CFLAGS
  1284. ILBC_LIBS
  1285. LIBEDIT_CFLAGS
  1286. LIBEDIT_LIBS
  1287. GMIME_CFLAGS
  1288. GMIME_LIBS
  1289. GTK2_CFLAGS
  1290. GTK2_LIBS'
  1291. # Initialize some variables set by options.
  1292. ac_init_help=
  1293. ac_init_version=false
  1294. ac_unrecognized_opts=
  1295. ac_unrecognized_sep=
  1296. # The variables have the same names as the options, with
  1297. # dashes changed to underlines.
  1298. cache_file=/dev/null
  1299. exec_prefix=NONE
  1300. no_create=
  1301. no_recursion=
  1302. prefix=NONE
  1303. program_prefix=NONE
  1304. program_suffix=NONE
  1305. program_transform_name=s,x,x,
  1306. silent=
  1307. site=
  1308. srcdir=
  1309. verbose=
  1310. x_includes=NONE
  1311. x_libraries=NONE
  1312. # Installation directory options.
  1313. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1314. # and all the variables that are supposed to be based on exec_prefix
  1315. # by default will actually change.
  1316. # Use braces instead of parens because sh, perl, etc. also accept them.
  1317. # (The list follows the same order as the GNU Coding Standards.)
  1318. bindir='${exec_prefix}/bin'
  1319. sbindir='${exec_prefix}/sbin'
  1320. libexecdir='${exec_prefix}/libexec'
  1321. datarootdir='${prefix}/share'
  1322. datadir='${datarootdir}'
  1323. sysconfdir='${prefix}/etc'
  1324. sharedstatedir='${prefix}/com'
  1325. localstatedir='${prefix}/var'
  1326. includedir='${prefix}/include'
  1327. oldincludedir='/usr/include'
  1328. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1329. infodir='${datarootdir}/info'
  1330. htmldir='${docdir}'
  1331. dvidir='${docdir}'
  1332. pdfdir='${docdir}'
  1333. psdir='${docdir}'
  1334. libdir='${exec_prefix}/lib'
  1335. localedir='${datarootdir}/locale'
  1336. mandir='${datarootdir}/man'
  1337. ac_prev=
  1338. ac_dashdash=
  1339. for ac_option
  1340. do
  1341. # If the previous option needs an argument, assign it.
  1342. if test -n "$ac_prev"; then
  1343. eval $ac_prev=\$ac_option
  1344. ac_prev=
  1345. continue
  1346. fi
  1347. case $ac_option in
  1348. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1349. *=) ac_optarg= ;;
  1350. *) ac_optarg=yes ;;
  1351. esac
  1352. # Accept the important Cygnus configure options, so we can diagnose typos.
  1353. case $ac_dashdash$ac_option in
  1354. --)
  1355. ac_dashdash=yes ;;
  1356. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1357. ac_prev=bindir ;;
  1358. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1359. bindir=$ac_optarg ;;
  1360. -build | --build | --buil | --bui | --bu)
  1361. ac_prev=build_alias ;;
  1362. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1363. build_alias=$ac_optarg ;;
  1364. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1365. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1366. ac_prev=cache_file ;;
  1367. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1368. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1369. cache_file=$ac_optarg ;;
  1370. --config-cache | -C)
  1371. cache_file=config.cache ;;
  1372. -datadir | --datadir | --datadi | --datad)
  1373. ac_prev=datadir ;;
  1374. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1375. datadir=$ac_optarg ;;
  1376. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1377. | --dataroo | --dataro | --datar)
  1378. ac_prev=datarootdir ;;
  1379. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1380. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1381. datarootdir=$ac_optarg ;;
  1382. -disable-* | --disable-*)
  1383. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1384. # Reject names that are not valid shell variable names.
  1385. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1386. as_fn_error $? "invalid feature name: $ac_useropt"
  1387. ac_useropt_orig=$ac_useropt
  1388. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1389. case $ac_user_opts in
  1390. *"
  1391. "enable_$ac_useropt"
  1392. "*) ;;
  1393. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1394. ac_unrecognized_sep=', ';;
  1395. esac
  1396. eval enable_$ac_useropt=no ;;
  1397. -docdir | --docdir | --docdi | --doc | --do)
  1398. ac_prev=docdir ;;
  1399. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1400. docdir=$ac_optarg ;;
  1401. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1402. ac_prev=dvidir ;;
  1403. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1404. dvidir=$ac_optarg ;;
  1405. -enable-* | --enable-*)
  1406. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1407. # Reject names that are not valid shell variable names.
  1408. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1409. as_fn_error $? "invalid feature name: $ac_useropt"
  1410. ac_useropt_orig=$ac_useropt
  1411. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1412. case $ac_user_opts in
  1413. *"
  1414. "enable_$ac_useropt"
  1415. "*) ;;
  1416. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1417. ac_unrecognized_sep=', ';;
  1418. esac
  1419. eval enable_$ac_useropt=\$ac_optarg ;;
  1420. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1421. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1422. | --exec | --exe | --ex)
  1423. ac_prev=exec_prefix ;;
  1424. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1425. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1426. | --exec=* | --exe=* | --ex=*)
  1427. exec_prefix=$ac_optarg ;;
  1428. -gas | --gas | --ga | --g)
  1429. # Obsolete; use --with-gas.
  1430. with_gas=yes ;;
  1431. -help | --help | --hel | --he | -h)
  1432. ac_init_help=long ;;
  1433. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1434. ac_init_help=recursive ;;
  1435. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1436. ac_init_help=short ;;
  1437. -host | --host | --hos | --ho)
  1438. ac_prev=host_alias ;;
  1439. -host=* | --host=* | --hos=* | --ho=*)
  1440. host_alias=$ac_optarg ;;
  1441. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1442. ac_prev=htmldir ;;
  1443. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1444. | --ht=*)
  1445. htmldir=$ac_optarg ;;
  1446. -includedir | --includedir | --includedi | --included | --include \
  1447. | --includ | --inclu | --incl | --inc)
  1448. ac_prev=includedir ;;
  1449. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1450. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1451. includedir=$ac_optarg ;;
  1452. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1453. ac_prev=infodir ;;
  1454. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1455. infodir=$ac_optarg ;;
  1456. -libdir | --libdir | --libdi | --libd)
  1457. ac_prev=libdir ;;
  1458. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1459. libdir=$ac_optarg ;;
  1460. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1461. | --libexe | --libex | --libe)
  1462. ac_prev=libexecdir ;;
  1463. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1464. | --libexe=* | --libex=* | --libe=*)
  1465. libexecdir=$ac_optarg ;;
  1466. -localedir | --localedir | --localedi | --localed | --locale)
  1467. ac_prev=localedir ;;
  1468. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1469. localedir=$ac_optarg ;;
  1470. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1471. | --localstate | --localstat | --localsta | --localst | --locals)
  1472. ac_prev=localstatedir ;;
  1473. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1474. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1475. localstatedir=$ac_optarg ;;
  1476. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1477. ac_prev=mandir ;;
  1478. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1479. mandir=$ac_optarg ;;
  1480. -nfp | --nfp | --nf)
  1481. # Obsolete; use --without-fp.
  1482. with_fp=no ;;
  1483. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1484. | --no-cr | --no-c | -n)
  1485. no_create=yes ;;
  1486. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1487. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1488. no_recursion=yes ;;
  1489. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1490. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1491. | --oldin | --oldi | --old | --ol | --o)
  1492. ac_prev=oldincludedir ;;
  1493. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1494. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1495. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1496. oldincludedir=$ac_optarg ;;
  1497. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1498. ac_prev=prefix ;;
  1499. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1500. prefix=$ac_optarg ;;
  1501. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1502. | --program-pre | --program-pr | --program-p)
  1503. ac_prev=program_prefix ;;
  1504. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1505. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1506. program_prefix=$ac_optarg ;;
  1507. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1508. | --program-suf | --program-su | --program-s)
  1509. ac_prev=program_suffix ;;
  1510. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1511. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1512. program_suffix=$ac_optarg ;;
  1513. -program-transform-name | --program-transform-name \
  1514. | --program-transform-nam | --program-transform-na \
  1515. | --program-transform-n | --program-transform- \
  1516. | --program-transform | --program-transfor \
  1517. | --program-transfo | --program-transf \
  1518. | --program-trans | --program-tran \
  1519. | --progr-tra | --program-tr | --program-t)
  1520. ac_prev=program_transform_name ;;
  1521. -program-transform-name=* | --program-transform-name=* \
  1522. | --program-transform-nam=* | --program-transform-na=* \
  1523. | --program-transform-n=* | --program-transform-=* \
  1524. | --program-transform=* | --program-transfor=* \
  1525. | --program-transfo=* | --program-transf=* \
  1526. | --program-trans=* | --program-tran=* \
  1527. | --progr-tra=* | --program-tr=* | --program-t=*)
  1528. program_transform_name=$ac_optarg ;;
  1529. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1530. ac_prev=pdfdir ;;
  1531. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1532. pdfdir=$ac_optarg ;;
  1533. -psdir | --psdir | --psdi | --psd | --ps)
  1534. ac_prev=psdir ;;
  1535. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1536. psdir=$ac_optarg ;;
  1537. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1538. | -silent | --silent | --silen | --sile | --sil)
  1539. silent=yes ;;
  1540. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1541. ac_prev=sbindir ;;
  1542. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1543. | --sbi=* | --sb=*)
  1544. sbindir=$ac_optarg ;;
  1545. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1546. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1547. | --sharedst | --shareds | --shared | --share | --shar \
  1548. | --sha | --sh)
  1549. ac_prev=sharedstatedir ;;
  1550. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1551. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1552. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1553. | --sha=* | --sh=*)
  1554. sharedstatedir=$ac_optarg ;;
  1555. -site | --site | --sit)
  1556. ac_prev=site ;;
  1557. -site=* | --site=* | --sit=*)
  1558. site=$ac_optarg ;;
  1559. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1560. ac_prev=srcdir ;;
  1561. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1562. srcdir=$ac_optarg ;;
  1563. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1564. | --syscon | --sysco | --sysc | --sys | --sy)
  1565. ac_prev=sysconfdir ;;
  1566. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1567. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1568. sysconfdir=$ac_optarg ;;
  1569. -target | --target | --targe | --targ | --tar | --ta | --t)
  1570. ac_prev=target_alias ;;
  1571. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1572. target_alias=$ac_optarg ;;
  1573. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1574. verbose=yes ;;
  1575. -version | --version | --versio | --versi | --vers | -V)
  1576. ac_init_version=: ;;
  1577. -with-* | --with-*)
  1578. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1579. # Reject names that are not valid shell variable names.
  1580. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1581. as_fn_error $? "invalid package name: $ac_useropt"
  1582. ac_useropt_orig=$ac_useropt
  1583. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1584. case $ac_user_opts in
  1585. *"
  1586. "with_$ac_useropt"
  1587. "*) ;;
  1588. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1589. ac_unrecognized_sep=', ';;
  1590. esac
  1591. eval with_$ac_useropt=\$ac_optarg ;;
  1592. -without-* | --without-*)
  1593. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1594. # Reject names that are not valid shell variable names.
  1595. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1596. as_fn_error $? "invalid package name: $ac_useropt"
  1597. ac_useropt_orig=$ac_useropt
  1598. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1599. case $ac_user_opts in
  1600. *"
  1601. "with_$ac_useropt"
  1602. "*) ;;
  1603. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1604. ac_unrecognized_sep=', ';;
  1605. esac
  1606. eval with_$ac_useropt=no ;;
  1607. --x)
  1608. # Obsolete; use --with-x.
  1609. with_x=yes ;;
  1610. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1611. | --x-incl | --x-inc | --x-in | --x-i)
  1612. ac_prev=x_includes ;;
  1613. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1614. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1615. x_includes=$ac_optarg ;;
  1616. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1617. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1618. ac_prev=x_libraries ;;
  1619. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1620. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1621. x_libraries=$ac_optarg ;;
  1622. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1623. Try \`$0 --help' for more information"
  1624. ;;
  1625. *=*)
  1626. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1627. # Reject names that are not valid shell variable names.
  1628. case $ac_envvar in #(
  1629. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1630. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1631. esac
  1632. eval $ac_envvar=\$ac_optarg
  1633. export $ac_envvar ;;
  1634. *)
  1635. # FIXME: should be removed in autoconf 3.0.
  1636. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1637. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1638. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1639. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1640. ;;
  1641. esac
  1642. done
  1643. if test -n "$ac_prev"; then
  1644. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1645. as_fn_error $? "missing argument to $ac_option"
  1646. fi
  1647. if test -n "$ac_unrecognized_opts"; then
  1648. case $enable_option_checking in
  1649. no) ;;
  1650. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1651. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1652. esac
  1653. fi
  1654. # Check all directory arguments for consistency.
  1655. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1656. datadir sysconfdir sharedstatedir localstatedir includedir \
  1657. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1658. libdir localedir mandir
  1659. do
  1660. eval ac_val=\$$ac_var
  1661. # Remove trailing slashes.
  1662. case $ac_val in
  1663. */ )
  1664. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1665. eval $ac_var=\$ac_val;;
  1666. esac
  1667. # Be sure to have absolute directory names.
  1668. case $ac_val in
  1669. [\\/$]* | ?:[\\/]* ) continue;;
  1670. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1671. esac
  1672. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1673. done
  1674. # There might be people who depend on the old broken behavior: `$host'
  1675. # used to hold the argument of --host etc.
  1676. # FIXME: To remove some day.
  1677. build=$build_alias
  1678. host=$host_alias
  1679. target=$target_alias
  1680. # FIXME: To remove some day.
  1681. if test "x$host_alias" != x; then
  1682. if test "x$build_alias" = x; then
  1683. cross_compiling=maybe
  1684. elif test "x$build_alias" != "x$host_alias"; then
  1685. cross_compiling=yes
  1686. fi
  1687. fi
  1688. ac_tool_prefix=
  1689. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1690. test "$silent" = yes && exec 6>/dev/null
  1691. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1692. ac_ls_di=`ls -di .` &&
  1693. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1694. as_fn_error $? "working directory cannot be determined"
  1695. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1696. as_fn_error $? "pwd does not report name of working directory"
  1697. # Find the source files, if location was not specified.
  1698. if test -z "$srcdir"; then
  1699. ac_srcdir_defaulted=yes
  1700. # Try the directory containing this script, then the parent directory.
  1701. ac_confdir=`$as_dirname -- "$as_myself" ||
  1702. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1703. X"$as_myself" : 'X\(//\)[^/]' \| \
  1704. X"$as_myself" : 'X\(//\)$' \| \
  1705. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1706. $as_echo X"$as_myself" |
  1707. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1708. s//\1/
  1709. q
  1710. }
  1711. /^X\(\/\/\)[^/].*/{
  1712. s//\1/
  1713. q
  1714. }
  1715. /^X\(\/\/\)$/{
  1716. s//\1/
  1717. q
  1718. }
  1719. /^X\(\/\).*/{
  1720. s//\1/
  1721. q
  1722. }
  1723. s/.*/./; q'`
  1724. srcdir=$ac_confdir
  1725. if test ! -r "$srcdir/$ac_unique_file"; then
  1726. srcdir=..
  1727. fi
  1728. else
  1729. ac_srcdir_defaulted=no
  1730. fi
  1731. if test ! -r "$srcdir/$ac_unique_file"; then
  1732. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1733. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1734. fi
  1735. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1736. ac_abs_confdir=`(
  1737. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1738. pwd)`
  1739. # When building in place, set srcdir=.
  1740. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1741. srcdir=.
  1742. fi
  1743. # Remove unnecessary trailing slashes from srcdir.
  1744. # Double slashes in file names in object file debugging info
  1745. # mess up M-x gdb in Emacs.
  1746. case $srcdir in
  1747. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1748. esac
  1749. for ac_var in $ac_precious_vars; do
  1750. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1751. eval ac_env_${ac_var}_value=\$${ac_var}
  1752. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1753. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1754. done
  1755. #
  1756. # Report the --help message.
  1757. #
  1758. if test "$ac_init_help" = "long"; then
  1759. # Omit some internal or obsolete options to make the list less imposing.
  1760. # This message is too long to be a string in the A/UX 3.1 sh.
  1761. cat <<_ACEOF
  1762. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1763. Usage: $0 [OPTION]... [VAR=VALUE]...
  1764. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1765. VAR=VALUE. See below for descriptions of some of the useful variables.
  1766. Defaults for the options are specified in brackets.
  1767. Configuration:
  1768. -h, --help display this help and exit
  1769. --help=short display options specific to this package
  1770. --help=recursive display the short help of all the included packages
  1771. -V, --version display version information and exit
  1772. -q, --quiet, --silent do not print \`checking ...' messages
  1773. --cache-file=FILE cache test results in FILE [disabled]
  1774. -C, --config-cache alias for \`--cache-file=config.cache'
  1775. -n, --no-create do not create output files
  1776. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1777. Installation directories:
  1778. --prefix=PREFIX install architecture-independent files in PREFIX
  1779. [$ac_default_prefix]
  1780. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1781. [PREFIX]
  1782. By default, \`make install' will install all the files in
  1783. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1784. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1785. for instance \`--prefix=\$HOME'.
  1786. For better control, use the options below.
  1787. Fine tuning of the installation directories:
  1788. --bindir=DIR user executables [EPREFIX/bin]
  1789. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1790. --libexecdir=DIR program executables [EPREFIX/libexec]
  1791. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1792. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1793. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1794. --libdir=DIR object code libraries [EPREFIX/lib]
  1795. --includedir=DIR C header files [PREFIX/include]
  1796. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1797. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1798. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1799. --infodir=DIR info documentation [DATAROOTDIR/info]
  1800. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1801. --mandir=DIR man documentation [DATAROOTDIR/man]
  1802. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1803. --htmldir=DIR html documentation [DOCDIR]
  1804. --dvidir=DIR dvi documentation [DOCDIR]
  1805. --pdfdir=DIR pdf documentation [DOCDIR]
  1806. --psdir=DIR ps documentation [DOCDIR]
  1807. _ACEOF
  1808. cat <<\_ACEOF
  1809. System types:
  1810. --build=BUILD configure for building on BUILD [guessed]
  1811. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1812. _ACEOF
  1813. fi
  1814. if test -n "$ac_init_help"; then
  1815. case $ac_init_help in
  1816. short | recursive ) echo "Configuration of asterisk trunk:";;
  1817. esac
  1818. cat <<\_ACEOF
  1819. Optional Features:
  1820. --disable-option-checking ignore unrecognized --enable/--with options
  1821. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1822. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1823. --enable-dev-mode Turn on developer mode
  1824. --enable-coverage Turn on code coverage tracking (for gcov)
  1825. --disable-xmldoc Explicitly disable XML documentation
  1826. --disable-largefile omit support for large files
  1827. --enable-internal-poll Use Asterisk's poll implementation
  1828. --disable-asteriskssl Disable Asterisk's SSL wrapper library
  1829. --disable-rpath Disables rpath linker option checking
  1830. Optional Packages:
  1831. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1832. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1833. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1834. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1835. --with-bfd=PATH use Debug symbol decoding files in PATH
  1836. --with-execinfo=PATH use Stack Backtrace files in PATH
  1837. --with-bluetooth=PATH use Bluetooth files in PATH
  1838. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1839. --with-cpg=PATH use Corosync files in PATH
  1840. --with-curses=PATH use curses files in PATH
  1841. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1842. --with-dahdi=PATH use DAHDI files in PATH
  1843. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1844. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1845. otherwise
  1846. --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
  1847. otherwise
  1848. --with-gtk2=PATH use gtk2 files in PATH
  1849. --with-gmime=PATH use GMime files in PATH
  1850. --with-h323=PATH use OpenH323 files in PATH
  1851. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1852. --with-ical=PATH use iCal files in PATH
  1853. --with-iconv=PATH use Iconv files in PATH
  1854. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1855. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1856. --with-inotify=PATH use inotify support files in PATH
  1857. --with-iodbc=PATH use iODBC files in PATH
  1858. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1859. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1860. --with-kqueue=PATH use kqueue support files in PATH
  1861. --with-ldap=PATH use OpenLDAP files in PATH
  1862. --with-libcurl=DIR look for the curl library in DIR
  1863. --with-libedit=PATH use NetBSD Editline library files in PATH, use
  1864. 'internal' Editline otherwise
  1865. --with-libxml2=PATH use LibXML2 files in PATH
  1866. --with-ltdl=PATH use libtool files in PATH
  1867. --with-lua=PATH use Lua files in PATH
  1868. --with-misdn=PATH use mISDN user files in PATH
  1869. --with-mysqlclient=PATH use MySQL client files in PATH
  1870. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1871. --with-ncurses=PATH use ncurses files in PATH
  1872. --with-neon=PATH use neon files in PATH
  1873. --with-neon29=PATH use neon29 files in PATH
  1874. --with-netsnmp=PATH use Net-SNMP files in PATH
  1875. --with-newt=PATH use newt files in PATH
  1876. --with-ogg=PATH use OGG files in PATH
  1877. --with-openr2=PATH use MFR2 files in PATH
  1878. --with-osptk=PATH use OSP Toolkit files in PATH
  1879. --with-oss=PATH use Open Sound System files in PATH
  1880. --with-postgres=PATH use PostgreSQL files in PATH
  1881. --with-popt=PATH use popt files in PATH
  1882. --with-portaudio=PATH use PortAudio files in PATH
  1883. --with-pri=PATH use ISDN PRI files in PATH
  1884. --with-pwlib=PATH use PWlib files in PATH
  1885. --with-radius=PATH use Radius Client files in PATH
  1886. --with-resample=PATH use LIBRESAMPLE files in PATH
  1887. --with-sdl=PATH use Sdl files in PATH
  1888. --with-SDL_image=PATH use Sdl Image files in PATH
  1889. --with-sounds-cache=PATH
  1890. use cached sound tarfiles in PATH
  1891. --with-spandsp=PATH use SPANDSP files in PATH
  1892. --with-ss7=PATH use ISDN SS7 files in PATH
  1893. --with-speex=PATH use Speex files in PATH
  1894. --with-speex=PATH use Speex preprocess routines files in PATH
  1895. --with-speexdsp=PATH use SpeexDSP files in PATH
  1896. --with-sqlite=PATH use SQLite files in PATH
  1897. --with-sqlite3=PATH use SQLite files in PATH
  1898. --with-srtp=PATH use Secure RTP files in PATH
  1899. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1900. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1901. --with-tds=PATH use FreeTDS files in PATH
  1902. --with-termcap=PATH use Termcap files in PATH
  1903. --with-timerfd=PATH use timerfd files in PATH
  1904. --with-tinfo=PATH use Term Info files in PATH
  1905. --with-tonezone=PATH use tonezone files in PATH
  1906. --with-unixodbc=PATH use unixODBC files in PATH
  1907. --with-uuid=PATH use UUID files in PATH
  1908. --with-vorbis=PATH use Vorbis files in PATH
  1909. --with-vpb=PATH use Voicetronix API files in PATH
  1910. --with-x11=PATH use X11 files in PATH
  1911. --with-z=PATH use zlib compression files in PATH
  1912. Some influential environment variables:
  1913. CC C compiler command
  1914. CFLAGS C compiler flags
  1915. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1916. nonstandard directory <lib dir>
  1917. LIBS libraries to pass to the linker, e.g. -l<library>
  1918. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1919. you have headers in a nonstandard directory <include dir>
  1920. CPP C preprocessor
  1921. CXX C++ compiler command
  1922. CXXFLAGS C++ compiler flags
  1923. CXXCPP C++ preprocessor
  1924. PKG_CONFIG path to pkg-config utility
  1925. PKG_CONFIG_PATH
  1926. directories to add to pkg-config's search path
  1927. PKG_CONFIG_LIBDIR
  1928. path overriding pkg-config's built-in search path
  1929. ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
  1930. ILBC_LIBS linker flags for ILBC, overriding pkg-config
  1931. LIBEDIT_CFLAGS
  1932. C compiler flags for LIBEDIT, overriding pkg-config
  1933. LIBEDIT_LIBS
  1934. linker flags for LIBEDIT, overriding pkg-config
  1935. GMIME_CFLAGS
  1936. C compiler flags for GMIME, overriding pkg-config
  1937. GMIME_LIBS linker flags for GMIME, overriding pkg-config
  1938. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  1939. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  1940. Use these variables to override the choices made by `configure' or to help
  1941. it to find libraries and programs with nonstandard names/locations.
  1942. Report bugs to <https://issues.asterisk.org>.
  1943. _ACEOF
  1944. ac_status=$?
  1945. fi
  1946. if test "$ac_init_help" = "recursive"; then
  1947. # If there are subdirs, report their specific --help.
  1948. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1949. test -d "$ac_dir" ||
  1950. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1951. continue
  1952. ac_builddir=.
  1953. case "$ac_dir" in
  1954. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1955. *)
  1956. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1957. # A ".." for each directory in $ac_dir_suffix.
  1958. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1959. case $ac_top_builddir_sub in
  1960. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1961. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1962. esac ;;
  1963. esac
  1964. ac_abs_top_builddir=$ac_pwd
  1965. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1966. # for backward compatibility:
  1967. ac_top_builddir=$ac_top_build_prefix
  1968. case $srcdir in
  1969. .) # We are building in place.
  1970. ac_srcdir=.
  1971. ac_top_srcdir=$ac_top_builddir_sub
  1972. ac_abs_top_srcdir=$ac_pwd ;;
  1973. [\\/]* | ?:[\\/]* ) # Absolute name.
  1974. ac_srcdir=$srcdir$ac_dir_suffix;
  1975. ac_top_srcdir=$srcdir
  1976. ac_abs_top_srcdir=$srcdir ;;
  1977. *) # Relative name.
  1978. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1979. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1980. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1981. esac
  1982. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1983. cd "$ac_dir" || { ac_status=$?; continue; }
  1984. # Check for guested configure.
  1985. if test -f "$ac_srcdir/configure.gnu"; then
  1986. echo &&
  1987. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1988. elif test -f "$ac_srcdir/configure"; then
  1989. echo &&
  1990. $SHELL "$ac_srcdir/configure" --help=recursive
  1991. else
  1992. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1993. fi || ac_status=$?
  1994. cd "$ac_pwd" || { ac_status=$?; break; }
  1995. done
  1996. fi
  1997. test -n "$ac_init_help" && exit $ac_status
  1998. if $ac_init_version; then
  1999. cat <<\_ACEOF
  2000. asterisk configure trunk
  2001. generated by GNU Autoconf 2.69
  2002. Copyright (C) 2012 Free Software Foundation, Inc.
  2003. This configure script is free software; the Free Software Foundation
  2004. gives unlimited permission to copy, distribute and modify it.
  2005. "Asterisk"
  2006. _ACEOF
  2007. exit
  2008. fi
  2009. ## ------------------------ ##
  2010. ## Autoconf initialization. ##
  2011. ## ------------------------ ##
  2012. # ac_fn_c_try_compile LINENO
  2013. # --------------------------
  2014. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2015. ac_fn_c_try_compile ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. rm -f conftest.$ac_objext
  2019. if { { ac_try="$ac_compile"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. $as_echo "$ac_try_echo"; } >&5
  2026. (eval "$ac_compile") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } && {
  2035. test -z "$ac_c_werror_flag" ||
  2036. test ! -s conftest.err
  2037. } && test -s conftest.$ac_objext; then :
  2038. ac_retval=0
  2039. else
  2040. $as_echo "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_retval=1
  2043. fi
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. as_fn_set_status $ac_retval
  2046. } # ac_fn_c_try_compile
  2047. # ac_fn_c_try_cpp LINENO
  2048. # ----------------------
  2049. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2050. ac_fn_c_try_cpp ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2054. case "(($ac_try" in
  2055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2056. *) ac_try_echo=$ac_try;;
  2057. esac
  2058. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2059. $as_echo "$ac_try_echo"; } >&5
  2060. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2061. ac_status=$?
  2062. if test -s conftest.err; then
  2063. grep -v '^ *+' conftest.err >conftest.er1
  2064. cat conftest.er1 >&5
  2065. mv -f conftest.er1 conftest.err
  2066. fi
  2067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2068. test $ac_status = 0; } > conftest.i && {
  2069. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2070. test ! -s conftest.err
  2071. }; then :
  2072. ac_retval=0
  2073. else
  2074. $as_echo "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2079. as_fn_set_status $ac_retval
  2080. } # ac_fn_c_try_cpp
  2081. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2082. # -------------------------------------------------------
  2083. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2084. # the include files in INCLUDES and setting the cache variable VAR
  2085. # accordingly.
  2086. ac_fn_c_check_header_mongrel ()
  2087. {
  2088. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2089. if eval \${$3+:} false; then :
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2091. $as_echo_n "checking for $2... " >&6; }
  2092. if eval \${$3+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. fi
  2095. eval ac_res=\$$3
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2097. $as_echo "$ac_res" >&6; }
  2098. else
  2099. # Is the header compilable?
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2101. $as_echo_n "checking $2 usability... " >&6; }
  2102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2103. /* end confdefs.h. */
  2104. $4
  2105. #include <$2>
  2106. _ACEOF
  2107. if ac_fn_c_try_compile "$LINENO"; then :
  2108. ac_header_compiler=yes
  2109. else
  2110. ac_header_compiler=no
  2111. fi
  2112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2114. $as_echo "$ac_header_compiler" >&6; }
  2115. # Is the header present?
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2117. $as_echo_n "checking $2 presence... " >&6; }
  2118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h. */
  2120. #include <$2>
  2121. _ACEOF
  2122. if ac_fn_c_try_cpp "$LINENO"; then :
  2123. ac_header_preproc=yes
  2124. else
  2125. ac_header_preproc=no
  2126. fi
  2127. rm -f conftest.err conftest.i conftest.$ac_ext
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2129. $as_echo "$ac_header_preproc" >&6; }
  2130. # So? What about this header?
  2131. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2132. yes:no: )
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2134. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2136. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2137. ;;
  2138. no:yes:* )
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2140. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2142. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2144. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2146. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2148. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2149. ( $as_echo "## ------------------------------------------ ##
  2150. ## Report this to https://issues.asterisk.org ##
  2151. ## ------------------------------------------ ##"
  2152. ) | sed "s/^/$as_me: WARNING: /" >&2
  2153. ;;
  2154. esac
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2156. $as_echo_n "checking for $2... " >&6; }
  2157. if eval \${$3+:} false; then :
  2158. $as_echo_n "(cached) " >&6
  2159. else
  2160. eval "$3=\$ac_header_compiler"
  2161. fi
  2162. eval ac_res=\$$3
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2164. $as_echo "$ac_res" >&6; }
  2165. fi
  2166. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2167. } # ac_fn_c_check_header_mongrel
  2168. # ac_fn_c_try_run LINENO
  2169. # ----------------------
  2170. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2171. # that executables *can* be run.
  2172. ac_fn_c_try_run ()
  2173. {
  2174. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2175. if { { ac_try="$ac_link"
  2176. case "(($ac_try" in
  2177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2178. *) ac_try_echo=$ac_try;;
  2179. esac
  2180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2181. $as_echo "$ac_try_echo"; } >&5
  2182. (eval "$ac_link") 2>&5
  2183. ac_status=$?
  2184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2185. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2186. { { case "(($ac_try" in
  2187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2188. *) ac_try_echo=$ac_try;;
  2189. esac
  2190. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2191. $as_echo "$ac_try_echo"; } >&5
  2192. (eval "$ac_try") 2>&5
  2193. ac_status=$?
  2194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2195. test $ac_status = 0; }; }; then :
  2196. ac_retval=0
  2197. else
  2198. $as_echo "$as_me: program exited with status $ac_status" >&5
  2199. $as_echo "$as_me: failed program was:" >&5
  2200. sed 's/^/| /' conftest.$ac_ext >&5
  2201. ac_retval=$ac_status
  2202. fi
  2203. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2204. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2205. as_fn_set_status $ac_retval
  2206. } # ac_fn_c_try_run
  2207. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2208. # -------------------------------------------------------
  2209. # Tests whether HEADER exists and can be compiled using the include files in
  2210. # INCLUDES, setting the cache variable VAR accordingly.
  2211. ac_fn_c_check_header_compile ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2215. $as_echo_n "checking for $2... " >&6; }
  2216. if eval \${$3+:} false; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $4
  2222. #include <$2>
  2223. _ACEOF
  2224. if ac_fn_c_try_compile "$LINENO"; then :
  2225. eval "$3=yes"
  2226. else
  2227. eval "$3=no"
  2228. fi
  2229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2230. fi
  2231. eval ac_res=\$$3
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2233. $as_echo "$ac_res" >&6; }
  2234. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2235. } # ac_fn_c_check_header_compile
  2236. # ac_fn_cxx_try_compile LINENO
  2237. # ----------------------------
  2238. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2239. ac_fn_cxx_try_compile ()
  2240. {
  2241. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2242. rm -f conftest.$ac_objext
  2243. if { { ac_try="$ac_compile"
  2244. case "(($ac_try" in
  2245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2246. *) ac_try_echo=$ac_try;;
  2247. esac
  2248. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2249. $as_echo "$ac_try_echo"; } >&5
  2250. (eval "$ac_compile") 2>conftest.err
  2251. ac_status=$?
  2252. if test -s conftest.err; then
  2253. grep -v '^ *+' conftest.err >conftest.er1
  2254. cat conftest.er1 >&5
  2255. mv -f conftest.er1 conftest.err
  2256. fi
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2258. test $ac_status = 0; } && {
  2259. test -z "$ac_cxx_werror_flag" ||
  2260. test ! -s conftest.err
  2261. } && test -s conftest.$ac_objext; then :
  2262. ac_retval=0
  2263. else
  2264. $as_echo "$as_me: failed program was:" >&5
  2265. sed 's/^/| /' conftest.$ac_ext >&5
  2266. ac_retval=1
  2267. fi
  2268. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2269. as_fn_set_status $ac_retval
  2270. } # ac_fn_cxx_try_compile
  2271. # ac_fn_cxx_try_cpp LINENO
  2272. # ------------------------
  2273. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2274. ac_fn_cxx_try_cpp ()
  2275. {
  2276. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2277. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2278. case "(($ac_try" in
  2279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2280. *) ac_try_echo=$ac_try;;
  2281. esac
  2282. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2283. $as_echo "$ac_try_echo"; } >&5
  2284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2285. ac_status=$?
  2286. if test -s conftest.err; then
  2287. grep -v '^ *+' conftest.err >conftest.er1
  2288. cat conftest.er1 >&5
  2289. mv -f conftest.er1 conftest.err
  2290. fi
  2291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2292. test $ac_status = 0; } > conftest.i && {
  2293. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2294. test ! -s conftest.err
  2295. }; then :
  2296. ac_retval=0
  2297. else
  2298. $as_echo "$as_me: failed program was:" >&5
  2299. sed 's/^/| /' conftest.$ac_ext >&5
  2300. ac_retval=1
  2301. fi
  2302. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2303. as_fn_set_status $ac_retval
  2304. } # ac_fn_cxx_try_cpp
  2305. # ac_fn_c_try_link LINENO
  2306. # -----------------------
  2307. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2308. ac_fn_c_try_link ()
  2309. {
  2310. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2311. rm -f conftest.$ac_objext conftest$ac_exeext
  2312. if { { ac_try="$ac_link"
  2313. case "(($ac_try" in
  2314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2315. *) ac_try_echo=$ac_try;;
  2316. esac
  2317. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2318. $as_echo "$ac_try_echo"; } >&5
  2319. (eval "$ac_link") 2>conftest.err
  2320. ac_status=$?
  2321. if test -s conftest.err; then
  2322. grep -v '^ *+' conftest.err >conftest.er1
  2323. cat conftest.er1 >&5
  2324. mv -f conftest.er1 conftest.err
  2325. fi
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2327. test $ac_status = 0; } && {
  2328. test -z "$ac_c_werror_flag" ||
  2329. test ! -s conftest.err
  2330. } && test -s conftest$ac_exeext && {
  2331. test "$cross_compiling" = yes ||
  2332. test -x conftest$ac_exeext
  2333. }; then :
  2334. ac_retval=0
  2335. else
  2336. $as_echo "$as_me: failed program was:" >&5
  2337. sed 's/^/| /' conftest.$ac_ext >&5
  2338. ac_retval=1
  2339. fi
  2340. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2341. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2342. # interfere with the next link command; also delete a directory that is
  2343. # left behind by Apple's compiler. We do this before executing the actions.
  2344. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2345. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2346. as_fn_set_status $ac_retval
  2347. } # ac_fn_c_try_link
  2348. # ac_fn_c_check_func LINENO FUNC VAR
  2349. # ----------------------------------
  2350. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2351. ac_fn_c_check_func ()
  2352. {
  2353. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2355. $as_echo_n "checking for $2... " >&6; }
  2356. if eval \${$3+:} false; then :
  2357. $as_echo_n "(cached) " >&6
  2358. else
  2359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2360. /* end confdefs.h. */
  2361. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2362. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2363. #define $2 innocuous_$2
  2364. /* System header to define __stub macros and hopefully few prototypes,
  2365. which can conflict with char $2 (); below.
  2366. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2367. <limits.h> exists even on freestanding compilers. */
  2368. #ifdef __STDC__
  2369. # include <limits.h>
  2370. #else
  2371. # include <assert.h>
  2372. #endif
  2373. #undef $2
  2374. /* Override any GCC internal prototype to avoid an error.
  2375. Use char because int might match the return type of a GCC
  2376. builtin and then its argument prototype would still apply. */
  2377. #ifdef __cplusplus
  2378. extern "C"
  2379. #endif
  2380. char $2 ();
  2381. /* The GNU C library defines this for functions which it implements
  2382. to always fail with ENOSYS. Some functions are actually named
  2383. something starting with __ and the normal name is an alias. */
  2384. #if defined __stub_$2 || defined __stub___$2
  2385. choke me
  2386. #endif
  2387. int
  2388. main ()
  2389. {
  2390. return $2 ();
  2391. ;
  2392. return 0;
  2393. }
  2394. _ACEOF
  2395. if ac_fn_c_try_link "$LINENO"; then :
  2396. eval "$3=yes"
  2397. else
  2398. eval "$3=no"
  2399. fi
  2400. rm -f core conftest.err conftest.$ac_objext \
  2401. conftest$ac_exeext conftest.$ac_ext
  2402. fi
  2403. eval ac_res=\$$3
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2405. $as_echo "$ac_res" >&6; }
  2406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2407. } # ac_fn_c_check_func
  2408. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2409. # -------------------------------------------
  2410. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2411. # variable VAR accordingly.
  2412. ac_fn_c_check_type ()
  2413. {
  2414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2416. $as_echo_n "checking for $2... " >&6; }
  2417. if eval \${$3+:} false; then :
  2418. $as_echo_n "(cached) " >&6
  2419. else
  2420. eval "$3=no"
  2421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2422. /* end confdefs.h. */
  2423. $4
  2424. int
  2425. main ()
  2426. {
  2427. if (sizeof ($2))
  2428. return 0;
  2429. ;
  2430. return 0;
  2431. }
  2432. _ACEOF
  2433. if ac_fn_c_try_compile "$LINENO"; then :
  2434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2435. /* end confdefs.h. */
  2436. $4
  2437. int
  2438. main ()
  2439. {
  2440. if (sizeof (($2)))
  2441. return 0;
  2442. ;
  2443. return 0;
  2444. }
  2445. _ACEOF
  2446. if ac_fn_c_try_compile "$LINENO"; then :
  2447. else
  2448. eval "$3=yes"
  2449. fi
  2450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2451. fi
  2452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2453. fi
  2454. eval ac_res=\$$3
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2456. $as_echo "$ac_res" >&6; }
  2457. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2458. } # ac_fn_c_check_type
  2459. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2460. # ----------------------------------------------------
  2461. # Tries to find if the field MEMBER exists in type AGGR, after including
  2462. # INCLUDES, setting cache variable VAR accordingly.
  2463. ac_fn_c_check_member ()
  2464. {
  2465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2467. $as_echo_n "checking for $2.$3... " >&6; }
  2468. if eval \${$4+:} false; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2472. /* end confdefs.h. */
  2473. $5
  2474. int
  2475. main ()
  2476. {
  2477. static $2 ac_aggr;
  2478. if (ac_aggr.$3)
  2479. return 0;
  2480. ;
  2481. return 0;
  2482. }
  2483. _ACEOF
  2484. if ac_fn_c_try_compile "$LINENO"; then :
  2485. eval "$4=yes"
  2486. else
  2487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2488. /* end confdefs.h. */
  2489. $5
  2490. int
  2491. main ()
  2492. {
  2493. static $2 ac_aggr;
  2494. if (sizeof ac_aggr.$3)
  2495. return 0;
  2496. ;
  2497. return 0;
  2498. }
  2499. _ACEOF
  2500. if ac_fn_c_try_compile "$LINENO"; then :
  2501. eval "$4=yes"
  2502. else
  2503. eval "$4=no"
  2504. fi
  2505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2506. fi
  2507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2508. fi
  2509. eval ac_res=\$$4
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2511. $as_echo "$ac_res" >&6; }
  2512. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2513. } # ac_fn_c_check_member
  2514. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2515. # --------------------------------------------
  2516. # Tries to find the compile-time value of EXPR in a program that includes
  2517. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2518. # computed
  2519. ac_fn_c_compute_int ()
  2520. {
  2521. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2522. if test "$cross_compiling" = yes; then
  2523. # Depending upon the size, compute the lo and hi bounds.
  2524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2525. /* end confdefs.h. */
  2526. $4
  2527. int
  2528. main ()
  2529. {
  2530. static int test_array [1 - 2 * !(($2) >= 0)];
  2531. test_array [0] = 0;
  2532. return test_array [0];
  2533. ;
  2534. return 0;
  2535. }
  2536. _ACEOF
  2537. if ac_fn_c_try_compile "$LINENO"; then :
  2538. ac_lo=0 ac_mid=0
  2539. while :; do
  2540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2541. /* end confdefs.h. */
  2542. $4
  2543. int
  2544. main ()
  2545. {
  2546. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2547. test_array [0] = 0;
  2548. return test_array [0];
  2549. ;
  2550. return 0;
  2551. }
  2552. _ACEOF
  2553. if ac_fn_c_try_compile "$LINENO"; then :
  2554. ac_hi=$ac_mid; break
  2555. else
  2556. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2557. if test $ac_lo -le $ac_mid; then
  2558. ac_lo= ac_hi=
  2559. break
  2560. fi
  2561. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2562. fi
  2563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2564. done
  2565. else
  2566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2567. /* end confdefs.h. */
  2568. $4
  2569. int
  2570. main ()
  2571. {
  2572. static int test_array [1 - 2 * !(($2) < 0)];
  2573. test_array [0] = 0;
  2574. return test_array [0];
  2575. ;
  2576. return 0;
  2577. }
  2578. _ACEOF
  2579. if ac_fn_c_try_compile "$LINENO"; then :
  2580. ac_hi=-1 ac_mid=-1
  2581. while :; do
  2582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2583. /* end confdefs.h. */
  2584. $4
  2585. int
  2586. main ()
  2587. {
  2588. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2589. test_array [0] = 0;
  2590. return test_array [0];
  2591. ;
  2592. return 0;
  2593. }
  2594. _ACEOF
  2595. if ac_fn_c_try_compile "$LINENO"; then :
  2596. ac_lo=$ac_mid; break
  2597. else
  2598. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2599. if test $ac_mid -le $ac_hi; then
  2600. ac_lo= ac_hi=
  2601. break
  2602. fi
  2603. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2604. fi
  2605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2606. done
  2607. else
  2608. ac_lo= ac_hi=
  2609. fi
  2610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2611. fi
  2612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2613. # Binary search between lo and hi bounds.
  2614. while test "x$ac_lo" != "x$ac_hi"; do
  2615. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2617. /* end confdefs.h. */
  2618. $4
  2619. int
  2620. main ()
  2621. {
  2622. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2623. test_array [0] = 0;
  2624. return test_array [0];
  2625. ;
  2626. return 0;
  2627. }
  2628. _ACEOF
  2629. if ac_fn_c_try_compile "$LINENO"; then :
  2630. ac_hi=$ac_mid
  2631. else
  2632. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2633. fi
  2634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2635. done
  2636. case $ac_lo in #((
  2637. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2638. '') ac_retval=1 ;;
  2639. esac
  2640. else
  2641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end confdefs.h. */
  2643. $4
  2644. static long int longval () { return $2; }
  2645. static unsigned long int ulongval () { return $2; }
  2646. #include <stdio.h>
  2647. #include <stdlib.h>
  2648. int
  2649. main ()
  2650. {
  2651. FILE *f = fopen ("conftest.val", "w");
  2652. if (! f)
  2653. return 1;
  2654. if (($2) < 0)
  2655. {
  2656. long int i = longval ();
  2657. if (i != ($2))
  2658. return 1;
  2659. fprintf (f, "%ld", i);
  2660. }
  2661. else
  2662. {
  2663. unsigned long int i = ulongval ();
  2664. if (i != ($2))
  2665. return 1;
  2666. fprintf (f, "%lu", i);
  2667. }
  2668. /* Do not output a trailing newline, as this causes \r\n confusion
  2669. on some platforms. */
  2670. return ferror (f) || fclose (f) != 0;
  2671. ;
  2672. return 0;
  2673. }
  2674. _ACEOF
  2675. if ac_fn_c_try_run "$LINENO"; then :
  2676. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2677. else
  2678. ac_retval=1
  2679. fi
  2680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2681. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2682. rm -f conftest.val
  2683. fi
  2684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2685. as_fn_set_status $ac_retval
  2686. } # ac_fn_c_compute_int
  2687. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2688. # ---------------------------------------------------------
  2689. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2690. # the include files in INCLUDES and setting the cache variable VAR
  2691. # accordingly.
  2692. ac_fn_cxx_check_header_mongrel ()
  2693. {
  2694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2695. if eval \${$3+:} false; then :
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2697. $as_echo_n "checking for $2... " >&6; }
  2698. if eval \${$3+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. fi
  2701. eval ac_res=\$$3
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2703. $as_echo "$ac_res" >&6; }
  2704. else
  2705. # Is the header compilable?
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2707. $as_echo_n "checking $2 usability... " >&6; }
  2708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2709. /* end confdefs.h. */
  2710. $4
  2711. #include <$2>
  2712. _ACEOF
  2713. if ac_fn_cxx_try_compile "$LINENO"; then :
  2714. ac_header_compiler=yes
  2715. else
  2716. ac_header_compiler=no
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2720. $as_echo "$ac_header_compiler" >&6; }
  2721. # Is the header present?
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2723. $as_echo_n "checking $2 presence... " >&6; }
  2724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2725. /* end confdefs.h. */
  2726. #include <$2>
  2727. _ACEOF
  2728. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2729. ac_header_preproc=yes
  2730. else
  2731. ac_header_preproc=no
  2732. fi
  2733. rm -f conftest.err conftest.i conftest.$ac_ext
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2735. $as_echo "$ac_header_preproc" >&6; }
  2736. # So? What about this header?
  2737. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2738. yes:no: )
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2740. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2742. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2743. ;;
  2744. no:yes:* )
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2746. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2748. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2750. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2752. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2754. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2755. ( $as_echo "## ------------------------------------------ ##
  2756. ## Report this to https://issues.asterisk.org ##
  2757. ## ------------------------------------------ ##"
  2758. ) | sed "s/^/$as_me: WARNING: /" >&2
  2759. ;;
  2760. esac
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2762. $as_echo_n "checking for $2... " >&6; }
  2763. if eval \${$3+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. eval "$3=\$ac_header_compiler"
  2767. fi
  2768. eval ac_res=\$$3
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2770. $as_echo "$ac_res" >&6; }
  2771. fi
  2772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2773. } # ac_fn_cxx_check_header_mongrel
  2774. # ac_fn_cxx_try_link LINENO
  2775. # -------------------------
  2776. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2777. ac_fn_cxx_try_link ()
  2778. {
  2779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2780. rm -f conftest.$ac_objext conftest$ac_exeext
  2781. if { { ac_try="$ac_link"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2787. $as_echo "$ac_try_echo"; } >&5
  2788. (eval "$ac_link") 2>conftest.err
  2789. ac_status=$?
  2790. if test -s conftest.err; then
  2791. grep -v '^ *+' conftest.err >conftest.er1
  2792. cat conftest.er1 >&5
  2793. mv -f conftest.er1 conftest.err
  2794. fi
  2795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2796. test $ac_status = 0; } && {
  2797. test -z "$ac_cxx_werror_flag" ||
  2798. test ! -s conftest.err
  2799. } && test -s conftest$ac_exeext && {
  2800. test "$cross_compiling" = yes ||
  2801. test -x conftest$ac_exeext
  2802. }; then :
  2803. ac_retval=0
  2804. else
  2805. $as_echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. ac_retval=1
  2808. fi
  2809. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2810. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2811. # interfere with the next link command; also delete a directory that is
  2812. # left behind by Apple's compiler. We do this before executing the actions.
  2813. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2815. as_fn_set_status $ac_retval
  2816. } # ac_fn_cxx_try_link
  2817. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2818. # ---------------------------------------------------------
  2819. # Tests whether HEADER exists and can be compiled using the include files in
  2820. # INCLUDES, setting the cache variable VAR accordingly.
  2821. ac_fn_cxx_check_header_compile ()
  2822. {
  2823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2825. $as_echo_n "checking for $2... " >&6; }
  2826. if eval \${$3+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2830. /* end confdefs.h. */
  2831. $4
  2832. #include <$2>
  2833. _ACEOF
  2834. if ac_fn_cxx_try_compile "$LINENO"; then :
  2835. eval "$3=yes"
  2836. else
  2837. eval "$3=no"
  2838. fi
  2839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2840. fi
  2841. eval ac_res=\$$3
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2843. $as_echo "$ac_res" >&6; }
  2844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2845. } # ac_fn_cxx_check_header_compile
  2846. cat >config.log <<_ACEOF
  2847. This file contains any messages produced by compilers while
  2848. running configure, to aid debugging if configure makes a mistake.
  2849. It was created by asterisk $as_me trunk, which was
  2850. generated by GNU Autoconf 2.69. Invocation command line was
  2851. $ $0 $@
  2852. _ACEOF
  2853. exec 5>>config.log
  2854. {
  2855. cat <<_ASUNAME
  2856. ## --------- ##
  2857. ## Platform. ##
  2858. ## --------- ##
  2859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2869. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2873. _ASUNAME
  2874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2875. for as_dir in $PATH
  2876. do
  2877. IFS=$as_save_IFS
  2878. test -z "$as_dir" && as_dir=.
  2879. $as_echo "PATH: $as_dir"
  2880. done
  2881. IFS=$as_save_IFS
  2882. } >&5
  2883. cat >&5 <<_ACEOF
  2884. ## ----------- ##
  2885. ## Core tests. ##
  2886. ## ----------- ##
  2887. _ACEOF
  2888. # Keep a trace of the command line.
  2889. # Strip out --no-create and --no-recursion so they do not pile up.
  2890. # Strip out --silent because we don't want to record it for future runs.
  2891. # Also quote any args containing shell meta-characters.
  2892. # Make two passes to allow for proper duplicate-argument suppression.
  2893. ac_configure_args=
  2894. ac_configure_args0=
  2895. ac_configure_args1=
  2896. ac_must_keep_next=false
  2897. for ac_pass in 1 2
  2898. do
  2899. for ac_arg
  2900. do
  2901. case $ac_arg in
  2902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2904. | -silent | --silent | --silen | --sile | --sil)
  2905. continue ;;
  2906. *\'*)
  2907. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2908. esac
  2909. case $ac_pass in
  2910. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2911. 2)
  2912. as_fn_append ac_configure_args1 " '$ac_arg'"
  2913. if test $ac_must_keep_next = true; then
  2914. ac_must_keep_next=false # Got value, back to normal.
  2915. else
  2916. case $ac_arg in
  2917. *=* | --config-cache | -C | -disable-* | --disable-* \
  2918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2920. | -with-* | --with-* | -without-* | --without-* | --x)
  2921. case "$ac_configure_args0 " in
  2922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2923. esac
  2924. ;;
  2925. -* ) ac_must_keep_next=true ;;
  2926. esac
  2927. fi
  2928. as_fn_append ac_configure_args " '$ac_arg'"
  2929. ;;
  2930. esac
  2931. done
  2932. done
  2933. { ac_configure_args0=; unset ac_configure_args0;}
  2934. { ac_configure_args1=; unset ac_configure_args1;}
  2935. # When interrupted or exit'd, cleanup temporary files, and complete
  2936. # config.log. We remove comments because anyway the quotes in there
  2937. # would cause problems or look ugly.
  2938. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2939. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2940. trap 'exit_status=$?
  2941. # Save into config.log some information that might help in debugging.
  2942. {
  2943. echo
  2944. $as_echo "## ---------------- ##
  2945. ## Cache variables. ##
  2946. ## ---------------- ##"
  2947. echo
  2948. # The following way of writing the cache mishandles newlines in values,
  2949. (
  2950. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2951. eval ac_val=\$$ac_var
  2952. case $ac_val in #(
  2953. *${as_nl}*)
  2954. case $ac_var in #(
  2955. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2956. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2957. esac
  2958. case $ac_var in #(
  2959. _ | IFS | as_nl) ;; #(
  2960. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2961. *) { eval $ac_var=; unset $ac_var;} ;;
  2962. esac ;;
  2963. esac
  2964. done
  2965. (set) 2>&1 |
  2966. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2967. *${as_nl}ac_space=\ *)
  2968. sed -n \
  2969. "s/'\''/'\''\\\\'\'''\''/g;
  2970. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2971. ;; #(
  2972. *)
  2973. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2974. ;;
  2975. esac |
  2976. sort
  2977. )
  2978. echo
  2979. $as_echo "## ----------------- ##
  2980. ## Output variables. ##
  2981. ## ----------------- ##"
  2982. echo
  2983. for ac_var in $ac_subst_vars
  2984. do
  2985. eval ac_val=\$$ac_var
  2986. case $ac_val in
  2987. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2988. esac
  2989. $as_echo "$ac_var='\''$ac_val'\''"
  2990. done | sort
  2991. echo
  2992. if test -n "$ac_subst_files"; then
  2993. $as_echo "## ------------------- ##
  2994. ## File substitutions. ##
  2995. ## ------------------- ##"
  2996. echo
  2997. for ac_var in $ac_subst_files
  2998. do
  2999. eval ac_val=\$$ac_var
  3000. case $ac_val in
  3001. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3002. esac
  3003. $as_echo "$ac_var='\''$ac_val'\''"
  3004. done | sort
  3005. echo
  3006. fi
  3007. if test -s confdefs.h; then
  3008. $as_echo "## ----------- ##
  3009. ## confdefs.h. ##
  3010. ## ----------- ##"
  3011. echo
  3012. cat confdefs.h
  3013. echo
  3014. fi
  3015. test "$ac_signal" != 0 &&
  3016. $as_echo "$as_me: caught signal $ac_signal"
  3017. $as_echo "$as_me: exit $exit_status"
  3018. } >&5
  3019. rm -f core *.core core.conftest.* &&
  3020. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3021. exit $exit_status
  3022. ' 0
  3023. for ac_signal in 1 2 13 15; do
  3024. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3025. done
  3026. ac_signal=0
  3027. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3028. rm -f -r conftest* confdefs.h
  3029. $as_echo "/* confdefs.h */" > confdefs.h
  3030. # Predefined preprocessor variables.
  3031. cat >>confdefs.h <<_ACEOF
  3032. #define PACKAGE_NAME "$PACKAGE_NAME"
  3033. _ACEOF
  3034. cat >>confdefs.h <<_ACEOF
  3035. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3036. _ACEOF
  3037. cat >>confdefs.h <<_ACEOF
  3038. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3039. _ACEOF
  3040. cat >>confdefs.h <<_ACEOF
  3041. #define PACKAGE_STRING "$PACKAGE_STRING"
  3042. _ACEOF
  3043. cat >>confdefs.h <<_ACEOF
  3044. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3045. _ACEOF
  3046. cat >>confdefs.h <<_ACEOF
  3047. #define PACKAGE_URL "$PACKAGE_URL"
  3048. _ACEOF
  3049. # Let the site file select an alternate cache file if it wants to.
  3050. # Prefer an explicitly selected file to automatically selected ones.
  3051. ac_site_file1=NONE
  3052. ac_site_file2=NONE
  3053. if test -n "$CONFIG_SITE"; then
  3054. # We do not want a PATH search for config.site.
  3055. case $CONFIG_SITE in #((
  3056. -*) ac_site_file1=./$CONFIG_SITE;;
  3057. */*) ac_site_file1=$CONFIG_SITE;;
  3058. *) ac_site_file1=./$CONFIG_SITE;;
  3059. esac
  3060. elif test "x$prefix" != xNONE; then
  3061. ac_site_file1=$prefix/share/config.site
  3062. ac_site_file2=$prefix/etc/config.site
  3063. else
  3064. ac_site_file1=$ac_default_prefix/share/config.site
  3065. ac_site_file2=$ac_default_prefix/etc/config.site
  3066. fi
  3067. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3068. do
  3069. test "x$ac_site_file" = xNONE && continue
  3070. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3072. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3073. sed 's/^/| /' "$ac_site_file" >&5
  3074. . "$ac_site_file" \
  3075. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3077. as_fn_error $? "failed to load site script $ac_site_file
  3078. See \`config.log' for more details" "$LINENO" 5; }
  3079. fi
  3080. done
  3081. if test -r "$cache_file"; then
  3082. # Some versions of bash will fail to source /dev/null (special files
  3083. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3084. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3086. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3087. case $cache_file in
  3088. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3089. *) . "./$cache_file";;
  3090. esac
  3091. fi
  3092. else
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3094. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3095. >$cache_file
  3096. fi
  3097. as_fn_append ac_header_list " stdlib.h"
  3098. as_fn_append ac_header_list " unistd.h"
  3099. as_fn_append ac_header_list " sys/param.h"
  3100. as_fn_append ac_header_list " utime.h"
  3101. # Check that the precious variables saved in the cache have kept the same
  3102. # value.
  3103. ac_cache_corrupted=false
  3104. for ac_var in $ac_precious_vars; do
  3105. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3106. eval ac_new_set=\$ac_env_${ac_var}_set
  3107. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3108. eval ac_new_val=\$ac_env_${ac_var}_value
  3109. case $ac_old_set,$ac_new_set in
  3110. set,)
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3112. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3113. ac_cache_corrupted=: ;;
  3114. ,set)
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3116. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3117. ac_cache_corrupted=: ;;
  3118. ,);;
  3119. *)
  3120. if test "x$ac_old_val" != "x$ac_new_val"; then
  3121. # differences in whitespace do not lead to failure.
  3122. ac_old_val_w=`echo x $ac_old_val`
  3123. ac_new_val_w=`echo x $ac_new_val`
  3124. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3126. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3127. ac_cache_corrupted=:
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3130. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3131. eval $ac_var=\$ac_old_val
  3132. fi
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3134. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3136. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3137. fi;;
  3138. esac
  3139. # Pass precious variables to config.status.
  3140. if test "$ac_new_set" = set; then
  3141. case $ac_new_val in
  3142. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3143. *) ac_arg=$ac_var=$ac_new_val ;;
  3144. esac
  3145. case " $ac_configure_args " in
  3146. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3147. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3148. esac
  3149. fi
  3150. done
  3151. if $ac_cache_corrupted; then
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3153. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3155. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3156. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3157. fi
  3158. ## -------------------- ##
  3159. ## Main body of script. ##
  3160. ## -------------------- ##
  3161. ac_ext=c
  3162. ac_cpp='$CPP $CPPFLAGS'
  3163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3166. # cross-compile macros
  3167. ac_aux_dir=
  3168. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3169. if test -f "$ac_dir/install-sh"; then
  3170. ac_aux_dir=$ac_dir
  3171. ac_install_sh="$ac_aux_dir/install-sh -c"
  3172. break
  3173. elif test -f "$ac_dir/install.sh"; then
  3174. ac_aux_dir=$ac_dir
  3175. ac_install_sh="$ac_aux_dir/install.sh -c"
  3176. break
  3177. elif test -f "$ac_dir/shtool"; then
  3178. ac_aux_dir=$ac_dir
  3179. ac_install_sh="$ac_aux_dir/shtool install -c"
  3180. break
  3181. fi
  3182. done
  3183. if test -z "$ac_aux_dir"; then
  3184. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3185. fi
  3186. # These three variables are undocumented and unsupported,
  3187. # and are intended to be withdrawn in a future Autoconf release.
  3188. # They can cause serious problems if a builder's source tree is in a directory
  3189. # whose full name contains unusual characters.
  3190. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3191. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3192. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3193. # Make sure we can run config.sub.
  3194. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3195. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3197. $as_echo_n "checking build system type... " >&6; }
  3198. if ${ac_cv_build+:} false; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. ac_build_alias=$build_alias
  3202. test "x$ac_build_alias" = x &&
  3203. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3204. test "x$ac_build_alias" = x &&
  3205. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3206. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3207. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3210. $as_echo "$ac_cv_build" >&6; }
  3211. case $ac_cv_build in
  3212. *-*-*) ;;
  3213. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3214. esac
  3215. build=$ac_cv_build
  3216. ac_save_IFS=$IFS; IFS='-'
  3217. set x $ac_cv_build
  3218. shift
  3219. build_cpu=$1
  3220. build_vendor=$2
  3221. shift; shift
  3222. # Remember, the first character of IFS is used to create $*,
  3223. # except with old shells:
  3224. build_os=$*
  3225. IFS=$ac_save_IFS
  3226. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3228. $as_echo_n "checking host system type... " >&6; }
  3229. if ${ac_cv_host+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. if test "x$host_alias" = x; then
  3233. ac_cv_host=$ac_cv_build
  3234. else
  3235. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3236. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3237. fi
  3238. fi
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3240. $as_echo "$ac_cv_host" >&6; }
  3241. case $ac_cv_host in
  3242. *-*-*) ;;
  3243. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3244. esac
  3245. host=$ac_cv_host
  3246. ac_save_IFS=$IFS; IFS='-'
  3247. set x $ac_cv_host
  3248. shift
  3249. host_cpu=$1
  3250. host_vendor=$2
  3251. shift; shift
  3252. # Remember, the first character of IFS is used to create $*,
  3253. # except with old shells:
  3254. host_os=$*
  3255. IFS=$ac_save_IFS
  3256. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3257. # check existence of the package
  3258. ac_aux_dir=
  3259. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  3260. if test -f "$ac_dir/install-sh"; then
  3261. ac_aux_dir=$ac_dir
  3262. ac_install_sh="$ac_aux_dir/install-sh -c"
  3263. break
  3264. elif test -f "$ac_dir/install.sh"; then
  3265. ac_aux_dir=$ac_dir
  3266. ac_install_sh="$ac_aux_dir/install.sh -c"
  3267. break
  3268. elif test -f "$ac_dir/shtool"; then
  3269. ac_aux_dir=$ac_dir
  3270. ac_install_sh="$ac_aux_dir/shtool install -c"
  3271. break
  3272. fi
  3273. done
  3274. if test -z "$ac_aux_dir"; then
  3275. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  3276. fi
  3277. # These three variables are undocumented and unsupported,
  3278. # and are intended to be withdrawn in a future Autoconf release.
  3279. # They can cause serious problems if a builder's source tree is in a directory
  3280. # whose full name contains unusual characters.
  3281. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3282. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3283. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3284. # preserve any CFLAGS or LDFLAGS that may be set
  3285. # NOTE: This must be done before calling any macros that end up
  3286. # calling AC_PROG_CC or the like, since they will set a default
  3287. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3288. # we don't want those default flags to be carried over into the
  3289. # rest of the build system since we have other means of controlling
  3290. # debugging symbol generation and optimization.
  3291. CONFIG_CFLAGS="${CFLAGS}"
  3292. CONFIG_LDFLAGS="${LDFLAGS}"
  3293. # specify output header file
  3294. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3295. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3296. # other macro that uses the C compiler, or the default order will be used.
  3297. ac_ext=c
  3298. ac_cpp='$CPP $CPPFLAGS'
  3299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. if test -n "$ac_tool_prefix"; then
  3303. for ac_prog in gcc cc
  3304. do
  3305. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3306. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3308. $as_echo_n "checking for $ac_word... " >&6; }
  3309. if ${ac_cv_prog_CC+:} false; then :
  3310. $as_echo_n "(cached) " >&6
  3311. else
  3312. if test -n "$CC"; then
  3313. ac_cv_prog_CC="$CC" # Let the user override the test.
  3314. else
  3315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3316. for as_dir in $PATH
  3317. do
  3318. IFS=$as_save_IFS
  3319. test -z "$as_dir" && as_dir=.
  3320. for ac_exec_ext in '' $ac_executable_extensions; do
  3321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3322. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3324. break 2
  3325. fi
  3326. done
  3327. done
  3328. IFS=$as_save_IFS
  3329. fi
  3330. fi
  3331. CC=$ac_cv_prog_CC
  3332. if test -n "$CC"; then
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3334. $as_echo "$CC" >&6; }
  3335. else
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3337. $as_echo "no" >&6; }
  3338. fi
  3339. test -n "$CC" && break
  3340. done
  3341. fi
  3342. if test -z "$CC"; then
  3343. ac_ct_CC=$CC
  3344. for ac_prog in gcc cc
  3345. do
  3346. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3347. set dummy $ac_prog; ac_word=$2
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3349. $as_echo_n "checking for $ac_word... " >&6; }
  3350. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. if test -n "$ac_ct_CC"; then
  3354. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3355. else
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3363. ac_cv_prog_ac_ct_CC="$ac_prog"
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3373. if test -n "$ac_ct_CC"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3375. $as_echo "$ac_ct_CC" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. test -n "$ac_ct_CC" && break
  3381. done
  3382. if test "x$ac_ct_CC" = x; then
  3383. CC=""
  3384. else
  3385. case $cross_compiling:$ac_tool_warned in
  3386. yes:)
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3388. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3389. ac_tool_warned=yes ;;
  3390. esac
  3391. CC=$ac_ct_CC
  3392. fi
  3393. fi
  3394. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3396. as_fn_error $? "no acceptable C compiler found in \$PATH
  3397. See \`config.log' for more details" "$LINENO" 5; }
  3398. # Provide some information about the compiler.
  3399. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3400. set X $ac_compile
  3401. ac_compiler=$2
  3402. for ac_option in --version -v -V -qversion; do
  3403. { { ac_try="$ac_compiler $ac_option >&5"
  3404. case "(($ac_try" in
  3405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3406. *) ac_try_echo=$ac_try;;
  3407. esac
  3408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3409. $as_echo "$ac_try_echo"; } >&5
  3410. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3411. ac_status=$?
  3412. if test -s conftest.err; then
  3413. sed '10a\
  3414. ... rest of stderr output deleted ...
  3415. 10q' conftest.err >conftest.er1
  3416. cat conftest.er1 >&5
  3417. fi
  3418. rm -f conftest.er1 conftest.err
  3419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3420. test $ac_status = 0; }
  3421. done
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. ac_clean_files_save=$ac_clean_files
  3432. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3433. # Try to create an executable without -o first, disregard a.out.
  3434. # It will help us diagnose broken compilers, and finding out an intuition
  3435. # of exeext.
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3437. $as_echo_n "checking whether the C compiler works... " >&6; }
  3438. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3439. # The possible output files:
  3440. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3441. ac_rmfiles=
  3442. for ac_file in $ac_files
  3443. do
  3444. case $ac_file in
  3445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3446. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3447. esac
  3448. done
  3449. rm -f $ac_rmfiles
  3450. if { { ac_try="$ac_link_default"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3456. $as_echo "$ac_try_echo"; } >&5
  3457. (eval "$ac_link_default") 2>&5
  3458. ac_status=$?
  3459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3460. test $ac_status = 0; }; then :
  3461. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3462. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3463. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3464. # so that the user can short-circuit this test for compilers unknown to
  3465. # Autoconf.
  3466. for ac_file in $ac_files ''
  3467. do
  3468. test -f "$ac_file" || continue
  3469. case $ac_file in
  3470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3471. ;;
  3472. [ab].out )
  3473. # We found the default executable, but exeext='' is most
  3474. # certainly right.
  3475. break;;
  3476. *.* )
  3477. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3478. then :; else
  3479. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3480. fi
  3481. # We set ac_cv_exeext here because the later test for it is not
  3482. # safe: cross compilers may not add the suffix if given an `-o'
  3483. # argument, so we may need to know it at that point already.
  3484. # Even if this section looks crufty: it has the advantage of
  3485. # actually working.
  3486. break;;
  3487. * )
  3488. break;;
  3489. esac
  3490. done
  3491. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3492. else
  3493. ac_file=''
  3494. fi
  3495. if test -z "$ac_file"; then :
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3497. $as_echo "no" >&6; }
  3498. $as_echo "$as_me: failed program was:" >&5
  3499. sed 's/^/| /' conftest.$ac_ext >&5
  3500. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. as_fn_error 77 "C compiler cannot create executables
  3503. See \`config.log' for more details" "$LINENO" 5; }
  3504. else
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3506. $as_echo "yes" >&6; }
  3507. fi
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3509. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3511. $as_echo "$ac_file" >&6; }
  3512. ac_exeext=$ac_cv_exeext
  3513. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3514. ac_clean_files=$ac_clean_files_save
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3516. $as_echo_n "checking for suffix of executables... " >&6; }
  3517. if { { ac_try="$ac_link"
  3518. case "(($ac_try" in
  3519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3520. *) ac_try_echo=$ac_try;;
  3521. esac
  3522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3523. $as_echo "$ac_try_echo"; } >&5
  3524. (eval "$ac_link") 2>&5
  3525. ac_status=$?
  3526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3527. test $ac_status = 0; }; then :
  3528. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3529. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3530. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3531. # `rm'.
  3532. for ac_file in conftest.exe conftest conftest.*; do
  3533. test -f "$ac_file" || continue
  3534. case $ac_file in
  3535. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3536. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3537. break;;
  3538. * ) break;;
  3539. esac
  3540. done
  3541. else
  3542. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3543. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3544. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3545. See \`config.log' for more details" "$LINENO" 5; }
  3546. fi
  3547. rm -f conftest conftest$ac_cv_exeext
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3549. $as_echo "$ac_cv_exeext" >&6; }
  3550. rm -f conftest.$ac_ext
  3551. EXEEXT=$ac_cv_exeext
  3552. ac_exeext=$EXEEXT
  3553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3554. /* end confdefs.h. */
  3555. #include <stdio.h>
  3556. int
  3557. main ()
  3558. {
  3559. FILE *f = fopen ("conftest.out", "w");
  3560. return ferror (f) || fclose (f) != 0;
  3561. ;
  3562. return 0;
  3563. }
  3564. _ACEOF
  3565. ac_clean_files="$ac_clean_files conftest.out"
  3566. # Check that the compiler produces executables we can run. If not, either
  3567. # the compiler is broken, or we cross compile.
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3569. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3570. if test "$cross_compiling" != yes; then
  3571. { { ac_try="$ac_link"
  3572. case "(($ac_try" in
  3573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3574. *) ac_try_echo=$ac_try;;
  3575. esac
  3576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3577. $as_echo "$ac_try_echo"; } >&5
  3578. (eval "$ac_link") 2>&5
  3579. ac_status=$?
  3580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3581. test $ac_status = 0; }
  3582. if { ac_try='./conftest$ac_cv_exeext'
  3583. { { case "(($ac_try" in
  3584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3585. *) ac_try_echo=$ac_try;;
  3586. esac
  3587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3588. $as_echo "$ac_try_echo"; } >&5
  3589. (eval "$ac_try") 2>&5
  3590. ac_status=$?
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3592. test $ac_status = 0; }; }; then
  3593. cross_compiling=no
  3594. else
  3595. if test "$cross_compiling" = maybe; then
  3596. cross_compiling=yes
  3597. else
  3598. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3600. as_fn_error $? "cannot run C compiled programs.
  3601. If you meant to cross compile, use \`--host'.
  3602. See \`config.log' for more details" "$LINENO" 5; }
  3603. fi
  3604. fi
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3607. $as_echo "$cross_compiling" >&6; }
  3608. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3609. ac_clean_files=$ac_clean_files_save
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3611. $as_echo_n "checking for suffix of object files... " >&6; }
  3612. if ${ac_cv_objext+:} false; then :
  3613. $as_echo_n "(cached) " >&6
  3614. else
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. int
  3618. main ()
  3619. {
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. rm -f conftest.o conftest.obj
  3625. if { { ac_try="$ac_compile"
  3626. case "(($ac_try" in
  3627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3628. *) ac_try_echo=$ac_try;;
  3629. esac
  3630. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3631. $as_echo "$ac_try_echo"; } >&5
  3632. (eval "$ac_compile") 2>&5
  3633. ac_status=$?
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3635. test $ac_status = 0; }; then :
  3636. for ac_file in conftest.o conftest.obj conftest.*; do
  3637. test -f "$ac_file" || continue;
  3638. case $ac_file in
  3639. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3640. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3641. break;;
  3642. esac
  3643. done
  3644. else
  3645. $as_echo "$as_me: failed program was:" >&5
  3646. sed 's/^/| /' conftest.$ac_ext >&5
  3647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3649. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3650. See \`config.log' for more details" "$LINENO" 5; }
  3651. fi
  3652. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3655. $as_echo "$ac_cv_objext" >&6; }
  3656. OBJEXT=$ac_cv_objext
  3657. ac_objext=$OBJEXT
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3659. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3660. if ${ac_cv_c_compiler_gnu+:} false; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3664. /* end confdefs.h. */
  3665. int
  3666. main ()
  3667. {
  3668. #ifndef __GNUC__
  3669. choke me
  3670. #endif
  3671. ;
  3672. return 0;
  3673. }
  3674. _ACEOF
  3675. if ac_fn_c_try_compile "$LINENO"; then :
  3676. ac_compiler_gnu=yes
  3677. else
  3678. ac_compiler_gnu=no
  3679. fi
  3680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3681. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3682. fi
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3684. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3685. if test $ac_compiler_gnu = yes; then
  3686. GCC=yes
  3687. else
  3688. GCC=
  3689. fi
  3690. ac_test_CFLAGS=${CFLAGS+set}
  3691. ac_save_CFLAGS=$CFLAGS
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3693. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3694. if ${ac_cv_prog_cc_g+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. ac_save_c_werror_flag=$ac_c_werror_flag
  3698. ac_c_werror_flag=yes
  3699. ac_cv_prog_cc_g=no
  3700. CFLAGS="-g"
  3701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3702. /* end confdefs.h. */
  3703. int
  3704. main ()
  3705. {
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_c_try_compile "$LINENO"; then :
  3711. ac_cv_prog_cc_g=yes
  3712. else
  3713. CFLAGS=""
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. int
  3717. main ()
  3718. {
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. if ac_fn_c_try_compile "$LINENO"; then :
  3724. else
  3725. ac_c_werror_flag=$ac_save_c_werror_flag
  3726. CFLAGS="-g"
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_c_try_compile "$LINENO"; then :
  3737. ac_cv_prog_cc_g=yes
  3738. fi
  3739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3744. ac_c_werror_flag=$ac_save_c_werror_flag
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3747. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3748. if test "$ac_test_CFLAGS" = set; then
  3749. CFLAGS=$ac_save_CFLAGS
  3750. elif test $ac_cv_prog_cc_g = yes; then
  3751. if test "$GCC" = yes; then
  3752. CFLAGS="-g -O2"
  3753. else
  3754. CFLAGS="-g"
  3755. fi
  3756. else
  3757. if test "$GCC" = yes; then
  3758. CFLAGS="-O2"
  3759. else
  3760. CFLAGS=
  3761. fi
  3762. fi
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3764. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3765. if ${ac_cv_prog_cc_c89+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. ac_cv_prog_cc_c89=no
  3769. ac_save_CC=$CC
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. #include <stdarg.h>
  3773. #include <stdio.h>
  3774. struct stat;
  3775. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3776. struct buf { int x; };
  3777. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3778. static char *e (p, i)
  3779. char **p;
  3780. int i;
  3781. {
  3782. return p[i];
  3783. }
  3784. static char *f (char * (*g) (char **, int), char **p, ...)
  3785. {
  3786. char *s;
  3787. va_list v;
  3788. va_start (v,p);
  3789. s = g (p, va_arg (v,int));
  3790. va_end (v);
  3791. return s;
  3792. }
  3793. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3794. function prototypes and stuff, but not '\xHH' hex character constants.
  3795. These don't provoke an error unfortunately, instead are silently treated
  3796. as 'x'. The following induces an error, until -std is added to get
  3797. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3798. array size at least. It's necessary to write '\x00'==0 to get something
  3799. that's true only with -std. */
  3800. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3801. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3802. inside strings and character constants. */
  3803. #define FOO(x) 'x'
  3804. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3805. int test (int i, double x);
  3806. struct s1 {int (*f) (int a);};
  3807. struct s2 {int (*f) (double a);};
  3808. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3809. int argc;
  3810. char **argv;
  3811. int
  3812. main ()
  3813. {
  3814. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3820. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3821. do
  3822. CC="$ac_save_CC $ac_arg"
  3823. if ac_fn_c_try_compile "$LINENO"; then :
  3824. ac_cv_prog_cc_c89=$ac_arg
  3825. fi
  3826. rm -f core conftest.err conftest.$ac_objext
  3827. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3828. done
  3829. rm -f conftest.$ac_ext
  3830. CC=$ac_save_CC
  3831. fi
  3832. # AC_CACHE_VAL
  3833. case "x$ac_cv_prog_cc_c89" in
  3834. x)
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3836. $as_echo "none needed" >&6; } ;;
  3837. xno)
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3839. $as_echo "unsupported" >&6; } ;;
  3840. *)
  3841. CC="$CC $ac_cv_prog_cc_c89"
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3843. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3844. esac
  3845. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3846. fi
  3847. ac_ext=c
  3848. ac_cpp='$CPP $CPPFLAGS'
  3849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3852. ac_ext=c
  3853. ac_cpp='$CPP $CPPFLAGS'
  3854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3858. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3859. # On Suns, sometimes $CPP names a directory.
  3860. if test -n "$CPP" && test -d "$CPP"; then
  3861. CPP=
  3862. fi
  3863. if test -z "$CPP"; then
  3864. if ${ac_cv_prog_CPP+:} false; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. # Double quotes because CPP needs to be expanded
  3868. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3869. do
  3870. ac_preproc_ok=false
  3871. for ac_c_preproc_warn_flag in '' yes
  3872. do
  3873. # Use a header file that comes with gcc, so configuring glibc
  3874. # with a fresh cross-compiler works.
  3875. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3876. # <limits.h> exists even on freestanding compilers.
  3877. # On the NeXT, cc -E runs the code through the compiler's parser,
  3878. # not just through cpp. "Syntax error" is here to catch this case.
  3879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end confdefs.h. */
  3881. #ifdef __STDC__
  3882. # include <limits.h>
  3883. #else
  3884. # include <assert.h>
  3885. #endif
  3886. Syntax error
  3887. _ACEOF
  3888. if ac_fn_c_try_cpp "$LINENO"; then :
  3889. else
  3890. # Broken: fails on valid input.
  3891. continue
  3892. fi
  3893. rm -f conftest.err conftest.i conftest.$ac_ext
  3894. # OK, works on sane cases. Now check whether nonexistent headers
  3895. # can be detected and how.
  3896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3897. /* end confdefs.h. */
  3898. #include <ac_nonexistent.h>
  3899. _ACEOF
  3900. if ac_fn_c_try_cpp "$LINENO"; then :
  3901. # Broken: success on invalid input.
  3902. continue
  3903. else
  3904. # Passes both tests.
  3905. ac_preproc_ok=:
  3906. break
  3907. fi
  3908. rm -f conftest.err conftest.i conftest.$ac_ext
  3909. done
  3910. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3911. rm -f conftest.i conftest.err conftest.$ac_ext
  3912. if $ac_preproc_ok; then :
  3913. break
  3914. fi
  3915. done
  3916. ac_cv_prog_CPP=$CPP
  3917. fi
  3918. CPP=$ac_cv_prog_CPP
  3919. else
  3920. ac_cv_prog_CPP=$CPP
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3923. $as_echo "$CPP" >&6; }
  3924. ac_preproc_ok=false
  3925. for ac_c_preproc_warn_flag in '' yes
  3926. do
  3927. # Use a header file that comes with gcc, so configuring glibc
  3928. # with a fresh cross-compiler works.
  3929. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3930. # <limits.h> exists even on freestanding compilers.
  3931. # On the NeXT, cc -E runs the code through the compiler's parser,
  3932. # not just through cpp. "Syntax error" is here to catch this case.
  3933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3934. /* end confdefs.h. */
  3935. #ifdef __STDC__
  3936. # include <limits.h>
  3937. #else
  3938. # include <assert.h>
  3939. #endif
  3940. Syntax error
  3941. _ACEOF
  3942. if ac_fn_c_try_cpp "$LINENO"; then :
  3943. else
  3944. # Broken: fails on valid input.
  3945. continue
  3946. fi
  3947. rm -f conftest.err conftest.i conftest.$ac_ext
  3948. # OK, works on sane cases. Now check whether nonexistent headers
  3949. # can be detected and how.
  3950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3951. /* end confdefs.h. */
  3952. #include <ac_nonexistent.h>
  3953. _ACEOF
  3954. if ac_fn_c_try_cpp "$LINENO"; then :
  3955. # Broken: success on invalid input.
  3956. continue
  3957. else
  3958. # Passes both tests.
  3959. ac_preproc_ok=:
  3960. break
  3961. fi
  3962. rm -f conftest.err conftest.i conftest.$ac_ext
  3963. done
  3964. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3965. rm -f conftest.i conftest.err conftest.$ac_ext
  3966. if $ac_preproc_ok; then :
  3967. else
  3968. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3970. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3971. See \`config.log' for more details" "$LINENO" 5; }
  3972. fi
  3973. ac_ext=c
  3974. ac_cpp='$CPP $CPPFLAGS'
  3975. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3976. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3977. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3979. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3980. if ${ac_cv_path_GREP+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if test -z "$GREP"; then
  3984. ac_path_GREP_found=false
  3985. # Loop through the user's path and test for each of PROGNAME-LIST
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_prog in grep ggrep; do
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3994. as_fn_executable_p "$ac_path_GREP" || continue
  3995. # Check for GNU ac_path_GREP and select it if it is found.
  3996. # Check for GNU $ac_path_GREP
  3997. case `"$ac_path_GREP" --version 2>&1` in
  3998. *GNU*)
  3999. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4000. *)
  4001. ac_count=0
  4002. $as_echo_n 0123456789 >"conftest.in"
  4003. while :
  4004. do
  4005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4006. mv "conftest.tmp" "conftest.in"
  4007. cp "conftest.in" "conftest.nl"
  4008. $as_echo 'GREP' >> "conftest.nl"
  4009. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4011. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4012. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4013. # Best one so far, save it but keep looking for a better one
  4014. ac_cv_path_GREP="$ac_path_GREP"
  4015. ac_path_GREP_max=$ac_count
  4016. fi
  4017. # 10*(2^10) chars as input seems more than enough
  4018. test $ac_count -gt 10 && break
  4019. done
  4020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4021. esac
  4022. $ac_path_GREP_found && break 3
  4023. done
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test -z "$ac_cv_path_GREP"; then
  4028. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4029. fi
  4030. else
  4031. ac_cv_path_GREP=$GREP
  4032. fi
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4035. $as_echo "$ac_cv_path_GREP" >&6; }
  4036. GREP="$ac_cv_path_GREP"
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4038. $as_echo_n "checking for egrep... " >&6; }
  4039. if ${ac_cv_path_EGREP+:} false; then :
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4043. then ac_cv_path_EGREP="$GREP -E"
  4044. else
  4045. if test -z "$EGREP"; then
  4046. ac_path_EGREP_found=false
  4047. # Loop through the user's path and test for each of PROGNAME-LIST
  4048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4049. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4050. do
  4051. IFS=$as_save_IFS
  4052. test -z "$as_dir" && as_dir=.
  4053. for ac_prog in egrep; do
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4056. as_fn_executable_p "$ac_path_EGREP" || continue
  4057. # Check for GNU ac_path_EGREP and select it if it is found.
  4058. # Check for GNU $ac_path_EGREP
  4059. case `"$ac_path_EGREP" --version 2>&1` in
  4060. *GNU*)
  4061. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4062. *)
  4063. ac_count=0
  4064. $as_echo_n 0123456789 >"conftest.in"
  4065. while :
  4066. do
  4067. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4068. mv "conftest.tmp" "conftest.in"
  4069. cp "conftest.in" "conftest.nl"
  4070. $as_echo 'EGREP' >> "conftest.nl"
  4071. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4072. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4073. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4074. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4075. # Best one so far, save it but keep looking for a better one
  4076. ac_cv_path_EGREP="$ac_path_EGREP"
  4077. ac_path_EGREP_max=$ac_count
  4078. fi
  4079. # 10*(2^10) chars as input seems more than enough
  4080. test $ac_count -gt 10 && break
  4081. done
  4082. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4083. esac
  4084. $ac_path_EGREP_found && break 3
  4085. done
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. if test -z "$ac_cv_path_EGREP"; then
  4090. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4091. fi
  4092. else
  4093. ac_cv_path_EGREP=$EGREP
  4094. fi
  4095. fi
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4098. $as_echo "$ac_cv_path_EGREP" >&6; }
  4099. EGREP="$ac_cv_path_EGREP"
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4101. $as_echo_n "checking for ANSI C header files... " >&6; }
  4102. if ${ac_cv_header_stdc+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4106. /* end confdefs.h. */
  4107. #include <stdlib.h>
  4108. #include <stdarg.h>
  4109. #include <string.h>
  4110. #include <float.h>
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. if ac_fn_c_try_compile "$LINENO"; then :
  4119. ac_cv_header_stdc=yes
  4120. else
  4121. ac_cv_header_stdc=no
  4122. fi
  4123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4124. if test $ac_cv_header_stdc = yes; then
  4125. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h. */
  4128. #include <string.h>
  4129. _ACEOF
  4130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4131. $EGREP "memchr" >/dev/null 2>&1; then :
  4132. else
  4133. ac_cv_header_stdc=no
  4134. fi
  4135. rm -f conftest*
  4136. fi
  4137. if test $ac_cv_header_stdc = yes; then
  4138. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4140. /* end confdefs.h. */
  4141. #include <stdlib.h>
  4142. _ACEOF
  4143. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4144. $EGREP "free" >/dev/null 2>&1; then :
  4145. else
  4146. ac_cv_header_stdc=no
  4147. fi
  4148. rm -f conftest*
  4149. fi
  4150. if test $ac_cv_header_stdc = yes; then
  4151. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4152. if test "$cross_compiling" = yes; then :
  4153. :
  4154. else
  4155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4156. /* end confdefs.h. */
  4157. #include <ctype.h>
  4158. #include <stdlib.h>
  4159. #if ((' ' & 0x0FF) == 0x020)
  4160. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4161. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4162. #else
  4163. # define ISLOWER(c) \
  4164. (('a' <= (c) && (c) <= 'i') \
  4165. || ('j' <= (c) && (c) <= 'r') \
  4166. || ('s' <= (c) && (c) <= 'z'))
  4167. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4168. #endif
  4169. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4170. int
  4171. main ()
  4172. {
  4173. int i;
  4174. for (i = 0; i < 256; i++)
  4175. if (XOR (islower (i), ISLOWER (i))
  4176. || toupper (i) != TOUPPER (i))
  4177. return 2;
  4178. return 0;
  4179. }
  4180. _ACEOF
  4181. if ac_fn_c_try_run "$LINENO"; then :
  4182. else
  4183. ac_cv_header_stdc=no
  4184. fi
  4185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4186. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4187. fi
  4188. fi
  4189. fi
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4191. $as_echo "$ac_cv_header_stdc" >&6; }
  4192. if test $ac_cv_header_stdc = yes; then
  4193. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4194. fi
  4195. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4196. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4197. inttypes.h stdint.h unistd.h
  4198. do :
  4199. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4200. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4201. "
  4202. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4203. cat >>confdefs.h <<_ACEOF
  4204. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4205. _ACEOF
  4206. fi
  4207. done
  4208. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4209. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4210. MINIX=yes
  4211. else
  4212. MINIX=
  4213. fi
  4214. if test "$MINIX" = yes; then
  4215. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4216. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4217. $as_echo "#define _MINIX 1" >>confdefs.h
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4220. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4221. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4225. /* end confdefs.h. */
  4226. # define __EXTENSIONS__ 1
  4227. $ac_includes_default
  4228. int
  4229. main ()
  4230. {
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. if ac_fn_c_try_compile "$LINENO"; then :
  4236. ac_cv_safe_to_define___extensions__=yes
  4237. else
  4238. ac_cv_safe_to_define___extensions__=no
  4239. fi
  4240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4241. fi
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4243. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4244. test $ac_cv_safe_to_define___extensions__ = yes &&
  4245. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4246. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4247. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4248. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4249. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4250. # System default paths
  4251. astsbindir='${sbindir}'
  4252. astetcdir='${sysconfdir}/asterisk'
  4253. astheaderdir='${includedir}/asterisk'
  4254. astlibdir='${libdir}'
  4255. astmoddir='${libdir}/asterisk/modules'
  4256. astmandir='${mandir}'
  4257. astvarlibdir='${localstatedir}/lib/asterisk'
  4258. astdatadir='${astvarlibdir}'
  4259. astdbdir='${astvarlibdir}'
  4260. astkeydir='${astvarlibdir}'
  4261. astspooldir='${localstatedir}/spool/asterisk'
  4262. astlogdir='${localstatedir}/log/asterisk'
  4263. astvarrundir='${localstatedir}/run/asterisk'
  4264. case "${host_os}" in
  4265. *bsd*)
  4266. if test ${prefix} = 'NONE'; then
  4267. astvarlibdir='${prefix}/share/asterisk'
  4268. astdbdir='${localstatedir}/db/asterisk'
  4269. fi
  4270. ;;
  4271. darwin*)
  4272. if test ${prefix} = 'NONE'; then
  4273. astvarrundir='/Library/Application Support/Asterisk/Run'
  4274. fi
  4275. ;;
  4276. esac
  4277. case "${host_os}" in
  4278. freebsd*)
  4279. ac_default_prefix=/usr/local
  4280. CPPFLAGS=-I/usr/local/include
  4281. LDFLAGS=-L/usr/local/lib
  4282. ;;
  4283. openbsd*)
  4284. ac_default_prefix=/usr/local
  4285. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4286. if test ${sysconfdir} = '${prefix}/etc'; then
  4287. astetcdir=/etc/asterisk
  4288. fi
  4289. if test ${mandir} = '${prefix}/man'; then
  4290. astmandir=/usr/share/man
  4291. fi
  4292. fi
  4293. CPPFLAGS=-I/usr/local/include
  4294. LDFLAGS=-L/usr/local/lib
  4295. ;;
  4296. darwin*)
  4297. ac_default_prefix=/usr/local
  4298. if test ${prefix} = 'NONE'; then
  4299. astmoddir='/Library/Application Support/Asterisk/Modules'
  4300. astvarlibdir='/Library/Application Support/Asterisk'
  4301. astlogdir=/Library/Logs/Asterisk
  4302. astvarrundir='/Library/Application Support/Asterisk/Run'
  4303. fi
  4304. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4305. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4306. ;;
  4307. solaris*)
  4308. if test ${prefix} = 'NONE'; then
  4309. astetcdir=/var/etc/asterisk
  4310. astsbindir=/opt/asterisk/sbin
  4311. astlibdir=/opt/asterisk/lib
  4312. astmoddir=/opt/asterisk/lib/modules
  4313. astheaderdir=/opt/asterisk/include
  4314. astmandir=/opt/asterisk/man
  4315. astvarlibdir=/var/opt/asterisk
  4316. astspooldir=/var/spool/asterisk
  4317. astlogdir=/var/log/asterisk
  4318. astvarrundir=/var/run/asterisk
  4319. fi
  4320. ;;
  4321. *)
  4322. ac_default_prefix=/usr
  4323. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4324. if test ${sysconfdir} = '${prefix}/etc'; then
  4325. sysconfdir=/etc
  4326. fi
  4327. if test ${mandir} = '${prefix}/man'; then
  4328. mandir=/usr/share/man
  4329. fi
  4330. fi
  4331. ;;
  4332. esac
  4333. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4334. if test ${localstatedir} = '${prefix}/var'; then
  4335. localstatedir=/var
  4336. fi
  4337. fi
  4338. BUILD_PLATFORM=${build}
  4339. BUILD_CPU=${build_cpu}
  4340. BUILD_VENDOR=${build_vendor}
  4341. BUILD_OS=${build_os}
  4342. HOST_PLATFORM=${host}
  4343. HOST_CPU=${host_cpu}
  4344. HOST_VENDOR=${host_vendor}
  4345. HOST_OS=${host_os}
  4346. PBX_WINARCH=0
  4347. case "${host_os}" in
  4348. freebsd*)
  4349. OSARCH=FreeBSD
  4350. ;;
  4351. netbsd*)
  4352. OSARCH=NetBSD
  4353. ;;
  4354. openbsd*)
  4355. OSARCH=OpenBSD
  4356. ;;
  4357. solaris*)
  4358. OSARCH=SunOS
  4359. ;;
  4360. mingw32)
  4361. OSARCH=mingw32
  4362. PBX_WINARCH=1
  4363. ;;
  4364. cygwin)
  4365. OSARCH=cygwin
  4366. PBX_WINARCH=1
  4367. ;;
  4368. linux-gnueabi* | linux-gnuspe)
  4369. OSARCH=linux-gnu
  4370. ;;
  4371. kfreebsd*-gnu)
  4372. OSARCH=kfreebsd-gnu
  4373. ;;
  4374. *)
  4375. OSARCH=${host_os}
  4376. ;;
  4377. esac
  4378. # check for uname
  4379. if test -n "$ac_tool_prefix"; then
  4380. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4381. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4383. $as_echo_n "checking for $ac_word... " >&6; }
  4384. if ${ac_cv_path_UNAME+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. case $UNAME in
  4388. [\\/]* | ?:[\\/]*)
  4389. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4390. ;;
  4391. *)
  4392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4393. for as_dir in $PATH
  4394. do
  4395. IFS=$as_save_IFS
  4396. test -z "$as_dir" && as_dir=.
  4397. for ac_exec_ext in '' $ac_executable_extensions; do
  4398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4399. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4401. break 2
  4402. fi
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. ;;
  4407. esac
  4408. fi
  4409. UNAME=$ac_cv_path_UNAME
  4410. if test -n "$UNAME"; then
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4412. $as_echo "$UNAME" >&6; }
  4413. else
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4415. $as_echo "no" >&6; }
  4416. fi
  4417. fi
  4418. if test -z "$ac_cv_path_UNAME"; then
  4419. ac_pt_UNAME=$UNAME
  4420. # Extract the first word of "uname", so it can be a program name with args.
  4421. set dummy uname; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if ${ac_cv_path_ac_pt_UNAME+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. case $ac_pt_UNAME in
  4428. [\\/]* | ?:[\\/]*)
  4429. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4430. ;;
  4431. *)
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4439. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. ;;
  4447. esac
  4448. fi
  4449. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4450. if test -n "$ac_pt_UNAME"; then
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4452. $as_echo "$ac_pt_UNAME" >&6; }
  4453. else
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4455. $as_echo "no" >&6; }
  4456. fi
  4457. if test "x$ac_pt_UNAME" = x; then
  4458. UNAME="No"
  4459. else
  4460. case $cross_compiling:$ac_tool_warned in
  4461. yes:)
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4464. ac_tool_warned=yes ;;
  4465. esac
  4466. UNAME=$ac_pt_UNAME
  4467. fi
  4468. else
  4469. UNAME="$ac_cv_path_UNAME"
  4470. fi
  4471. if test ! x"${UNAME}" = xNo; then
  4472. PBX_OSREV=$(${UNAME} -r)
  4473. fi
  4474. # cross-compile checks
  4475. if test "${cross_compiling}" = "yes";
  4476. then
  4477. if test -n "$ac_tool_prefix"; then
  4478. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4479. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if ${ac_cv_prog_CC+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$CC"; then
  4486. ac_cv_prog_CC="$CC" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4495. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. CC=$ac_cv_prog_CC
  4505. if test -n "$CC"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4507. $as_echo "$CC" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. fi
  4513. if test -z "$ac_cv_prog_CC"; then
  4514. ac_ct_CC=$CC
  4515. # Extract the first word of "gcc", so it can be a program name with args.
  4516. set dummy gcc; ac_word=$2
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4518. $as_echo_n "checking for $ac_word... " >&6; }
  4519. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -n "$ac_ct_CC"; then
  4523. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4524. else
  4525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4526. for as_dir in $PATH
  4527. do
  4528. IFS=$as_save_IFS
  4529. test -z "$as_dir" && as_dir=.
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4532. ac_cv_prog_ac_ct_CC="gcc"
  4533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4534. break 2
  4535. fi
  4536. done
  4537. done
  4538. IFS=$as_save_IFS
  4539. fi
  4540. fi
  4541. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4542. if test -n "$ac_ct_CC"; then
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4544. $as_echo "$ac_ct_CC" >&6; }
  4545. else
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4547. $as_echo "no" >&6; }
  4548. fi
  4549. if test "x$ac_ct_CC" = x; then
  4550. CC=":"
  4551. else
  4552. case $cross_compiling:$ac_tool_warned in
  4553. yes:)
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4555. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4556. ac_tool_warned=yes ;;
  4557. esac
  4558. CC=$ac_ct_CC
  4559. fi
  4560. else
  4561. CC="$ac_cv_prog_CC"
  4562. fi
  4563. if test -n "$ac_tool_prefix"; then
  4564. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4565. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_CXX+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$CXX"; then
  4572. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. CXX=$ac_cv_prog_CXX
  4591. if test -n "$CXX"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4593. $as_echo "$CXX" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. fi
  4599. if test -z "$ac_cv_prog_CXX"; then
  4600. ac_ct_CXX=$CXX
  4601. # Extract the first word of "g++", so it can be a program name with args.
  4602. set dummy g++; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$ac_ct_CXX"; then
  4609. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4618. ac_cv_prog_ac_ct_CXX="g++"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4628. if test -n "$ac_ct_CXX"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4630. $as_echo "$ac_ct_CXX" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. if test "x$ac_ct_CXX" = x; then
  4636. CXX=":"
  4637. else
  4638. case $cross_compiling:$ac_tool_warned in
  4639. yes:)
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4642. ac_tool_warned=yes ;;
  4643. esac
  4644. CXX=$ac_ct_CXX
  4645. fi
  4646. else
  4647. CXX="$ac_cv_prog_CXX"
  4648. fi
  4649. if test -n "$ac_tool_prefix"; then
  4650. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4651. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4653. $as_echo_n "checking for $ac_word... " >&6; }
  4654. if ${ac_cv_prog_LD+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. if test -n "$LD"; then
  4658. ac_cv_prog_LD="$LD" # Let the user override the test.
  4659. else
  4660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4661. for as_dir in $PATH
  4662. do
  4663. IFS=$as_save_IFS
  4664. test -z "$as_dir" && as_dir=.
  4665. for ac_exec_ext in '' $ac_executable_extensions; do
  4666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4667. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4669. break 2
  4670. fi
  4671. done
  4672. done
  4673. IFS=$as_save_IFS
  4674. fi
  4675. fi
  4676. LD=$ac_cv_prog_LD
  4677. if test -n "$LD"; then
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4679. $as_echo "$LD" >&6; }
  4680. else
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4682. $as_echo "no" >&6; }
  4683. fi
  4684. fi
  4685. if test -z "$ac_cv_prog_LD"; then
  4686. ac_ct_LD=$LD
  4687. # Extract the first word of "ld", so it can be a program name with args.
  4688. set dummy ld; ac_word=$2
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4690. $as_echo_n "checking for $ac_word... " >&6; }
  4691. if ${ac_cv_prog_ac_ct_LD+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. if test -n "$ac_ct_LD"; then
  4695. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4696. else
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4704. ac_cv_prog_ac_ct_LD="ld"
  4705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4706. break 2
  4707. fi
  4708. done
  4709. done
  4710. IFS=$as_save_IFS
  4711. fi
  4712. fi
  4713. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4714. if test -n "$ac_ct_LD"; then
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4716. $as_echo "$ac_ct_LD" >&6; }
  4717. else
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. $as_echo "no" >&6; }
  4720. fi
  4721. if test "x$ac_ct_LD" = x; then
  4722. LD=":"
  4723. else
  4724. case $cross_compiling:$ac_tool_warned in
  4725. yes:)
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4728. ac_tool_warned=yes ;;
  4729. esac
  4730. LD=$ac_ct_LD
  4731. fi
  4732. else
  4733. LD="$ac_cv_prog_LD"
  4734. fi
  4735. if test -n "$ac_tool_prefix"; then
  4736. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4737. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_RANLIB+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$RANLIB"; then
  4744. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. RANLIB=$ac_cv_prog_RANLIB
  4763. if test -n "$RANLIB"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4765. $as_echo "$RANLIB" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. fi
  4771. if test -z "$ac_cv_prog_RANLIB"; then
  4772. ac_ct_RANLIB=$RANLIB
  4773. # Extract the first word of "ranlib", so it can be a program name with args.
  4774. set dummy ranlib; ac_word=$2
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4776. $as_echo_n "checking for $ac_word... " >&6; }
  4777. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. if test -n "$ac_ct_RANLIB"; then
  4781. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4782. else
  4783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4784. for as_dir in $PATH
  4785. do
  4786. IFS=$as_save_IFS
  4787. test -z "$as_dir" && as_dir=.
  4788. for ac_exec_ext in '' $ac_executable_extensions; do
  4789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4790. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4792. break 2
  4793. fi
  4794. done
  4795. done
  4796. IFS=$as_save_IFS
  4797. fi
  4798. fi
  4799. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4800. if test -n "$ac_ct_RANLIB"; then
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4802. $as_echo "$ac_ct_RANLIB" >&6; }
  4803. else
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4805. $as_echo "no" >&6; }
  4806. fi
  4807. if test "x$ac_ct_RANLIB" = x; then
  4808. RANLIB=":"
  4809. else
  4810. case $cross_compiling:$ac_tool_warned in
  4811. yes:)
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4814. ac_tool_warned=yes ;;
  4815. esac
  4816. RANLIB=$ac_ct_RANLIB
  4817. fi
  4818. else
  4819. RANLIB="$ac_cv_prog_RANLIB"
  4820. fi
  4821. fi
  4822. # Checks for programs.
  4823. ac_ext=cpp
  4824. ac_cpp='$CXXCPP $CPPFLAGS'
  4825. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4826. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4827. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4828. if test -z "$CXX"; then
  4829. if test -n "$CCC"; then
  4830. CXX=$CCC
  4831. else
  4832. if test -n "$ac_tool_prefix"; then
  4833. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4834. do
  4835. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4836. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4838. $as_echo_n "checking for $ac_word... " >&6; }
  4839. if ${ac_cv_prog_CXX+:} false; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. if test -n "$CXX"; then
  4843. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4844. else
  4845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4846. for as_dir in $PATH
  4847. do
  4848. IFS=$as_save_IFS
  4849. test -z "$as_dir" && as_dir=.
  4850. for ac_exec_ext in '' $ac_executable_extensions; do
  4851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4852. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4854. break 2
  4855. fi
  4856. done
  4857. done
  4858. IFS=$as_save_IFS
  4859. fi
  4860. fi
  4861. CXX=$ac_cv_prog_CXX
  4862. if test -n "$CXX"; then
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4864. $as_echo "$CXX" >&6; }
  4865. else
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4867. $as_echo "no" >&6; }
  4868. fi
  4869. test -n "$CXX" && break
  4870. done
  4871. fi
  4872. if test -z "$CXX"; then
  4873. ac_ct_CXX=$CXX
  4874. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4875. do
  4876. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4877. set dummy $ac_prog; ac_word=$2
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4879. $as_echo_n "checking for $ac_word... " >&6; }
  4880. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. if test -n "$ac_ct_CXX"; then
  4884. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4885. else
  4886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4887. for as_dir in $PATH
  4888. do
  4889. IFS=$as_save_IFS
  4890. test -z "$as_dir" && as_dir=.
  4891. for ac_exec_ext in '' $ac_executable_extensions; do
  4892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4893. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4895. break 2
  4896. fi
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. fi
  4901. fi
  4902. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4903. if test -n "$ac_ct_CXX"; then
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4905. $as_echo "$ac_ct_CXX" >&6; }
  4906. else
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4908. $as_echo "no" >&6; }
  4909. fi
  4910. test -n "$ac_ct_CXX" && break
  4911. done
  4912. if test "x$ac_ct_CXX" = x; then
  4913. CXX="g++"
  4914. else
  4915. case $cross_compiling:$ac_tool_warned in
  4916. yes:)
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4919. ac_tool_warned=yes ;;
  4920. esac
  4921. CXX=$ac_ct_CXX
  4922. fi
  4923. fi
  4924. fi
  4925. fi
  4926. # Provide some information about the compiler.
  4927. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4928. set X $ac_compile
  4929. ac_compiler=$2
  4930. for ac_option in --version -v -V -qversion; do
  4931. { { ac_try="$ac_compiler $ac_option >&5"
  4932. case "(($ac_try" in
  4933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4934. *) ac_try_echo=$ac_try;;
  4935. esac
  4936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4937. $as_echo "$ac_try_echo"; } >&5
  4938. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4939. ac_status=$?
  4940. if test -s conftest.err; then
  4941. sed '10a\
  4942. ... rest of stderr output deleted ...
  4943. 10q' conftest.err >conftest.er1
  4944. cat conftest.er1 >&5
  4945. fi
  4946. rm -f conftest.er1 conftest.err
  4947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4948. test $ac_status = 0; }
  4949. done
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4951. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4952. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4956. /* end confdefs.h. */
  4957. int
  4958. main ()
  4959. {
  4960. #ifndef __GNUC__
  4961. choke me
  4962. #endif
  4963. ;
  4964. return 0;
  4965. }
  4966. _ACEOF
  4967. if ac_fn_cxx_try_compile "$LINENO"; then :
  4968. ac_compiler_gnu=yes
  4969. else
  4970. ac_compiler_gnu=no
  4971. fi
  4972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4973. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4974. fi
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4976. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4977. if test $ac_compiler_gnu = yes; then
  4978. GXX=yes
  4979. else
  4980. GXX=
  4981. fi
  4982. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4983. ac_save_CXXFLAGS=$CXXFLAGS
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4985. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4986. if ${ac_cv_prog_cxx_g+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4990. ac_cxx_werror_flag=yes
  4991. ac_cv_prog_cxx_g=no
  4992. CXXFLAGS="-g"
  4993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4994. /* end confdefs.h. */
  4995. int
  4996. main ()
  4997. {
  4998. ;
  4999. return 0;
  5000. }
  5001. _ACEOF
  5002. if ac_fn_cxx_try_compile "$LINENO"; then :
  5003. ac_cv_prog_cxx_g=yes
  5004. else
  5005. CXXFLAGS=""
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. int
  5009. main ()
  5010. {
  5011. ;
  5012. return 0;
  5013. }
  5014. _ACEOF
  5015. if ac_fn_cxx_try_compile "$LINENO"; then :
  5016. else
  5017. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5018. CXXFLAGS="-g"
  5019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5020. /* end confdefs.h. */
  5021. int
  5022. main ()
  5023. {
  5024. ;
  5025. return 0;
  5026. }
  5027. _ACEOF
  5028. if ac_fn_cxx_try_compile "$LINENO"; then :
  5029. ac_cv_prog_cxx_g=yes
  5030. fi
  5031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5032. fi
  5033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5034. fi
  5035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5036. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5037. fi
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5039. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5040. if test "$ac_test_CXXFLAGS" = set; then
  5041. CXXFLAGS=$ac_save_CXXFLAGS
  5042. elif test $ac_cv_prog_cxx_g = yes; then
  5043. if test "$GXX" = yes; then
  5044. CXXFLAGS="-g -O2"
  5045. else
  5046. CXXFLAGS="-g"
  5047. fi
  5048. else
  5049. if test "$GXX" = yes; then
  5050. CXXFLAGS="-O2"
  5051. else
  5052. CXXFLAGS=
  5053. fi
  5054. fi
  5055. ac_ext=c
  5056. ac_cpp='$CPP $CPPFLAGS'
  5057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5060. ac_ext=c
  5061. ac_cpp='$CPP $CPPFLAGS'
  5062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5066. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5067. # On Suns, sometimes $CPP names a directory.
  5068. if test -n "$CPP" && test -d "$CPP"; then
  5069. CPP=
  5070. fi
  5071. if test -z "$CPP"; then
  5072. if ${ac_cv_prog_CPP+:} false; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. # Double quotes because CPP needs to be expanded
  5076. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5077. do
  5078. ac_preproc_ok=false
  5079. for ac_c_preproc_warn_flag in '' yes
  5080. do
  5081. # Use a header file that comes with gcc, so configuring glibc
  5082. # with a fresh cross-compiler works.
  5083. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5084. # <limits.h> exists even on freestanding compilers.
  5085. # On the NeXT, cc -E runs the code through the compiler's parser,
  5086. # not just through cpp. "Syntax error" is here to catch this case.
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. #ifdef __STDC__
  5090. # include <limits.h>
  5091. #else
  5092. # include <assert.h>
  5093. #endif
  5094. Syntax error
  5095. _ACEOF
  5096. if ac_fn_c_try_cpp "$LINENO"; then :
  5097. else
  5098. # Broken: fails on valid input.
  5099. continue
  5100. fi
  5101. rm -f conftest.err conftest.i conftest.$ac_ext
  5102. # OK, works on sane cases. Now check whether nonexistent headers
  5103. # can be detected and how.
  5104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5105. /* end confdefs.h. */
  5106. #include <ac_nonexistent.h>
  5107. _ACEOF
  5108. if ac_fn_c_try_cpp "$LINENO"; then :
  5109. # Broken: success on invalid input.
  5110. continue
  5111. else
  5112. # Passes both tests.
  5113. ac_preproc_ok=:
  5114. break
  5115. fi
  5116. rm -f conftest.err conftest.i conftest.$ac_ext
  5117. done
  5118. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5119. rm -f conftest.i conftest.err conftest.$ac_ext
  5120. if $ac_preproc_ok; then :
  5121. break
  5122. fi
  5123. done
  5124. ac_cv_prog_CPP=$CPP
  5125. fi
  5126. CPP=$ac_cv_prog_CPP
  5127. else
  5128. ac_cv_prog_CPP=$CPP
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5131. $as_echo "$CPP" >&6; }
  5132. ac_preproc_ok=false
  5133. for ac_c_preproc_warn_flag in '' yes
  5134. do
  5135. # Use a header file that comes with gcc, so configuring glibc
  5136. # with a fresh cross-compiler works.
  5137. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5138. # <limits.h> exists even on freestanding compilers.
  5139. # On the NeXT, cc -E runs the code through the compiler's parser,
  5140. # not just through cpp. "Syntax error" is here to catch this case.
  5141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5142. /* end confdefs.h. */
  5143. #ifdef __STDC__
  5144. # include <limits.h>
  5145. #else
  5146. # include <assert.h>
  5147. #endif
  5148. Syntax error
  5149. _ACEOF
  5150. if ac_fn_c_try_cpp "$LINENO"; then :
  5151. else
  5152. # Broken: fails on valid input.
  5153. continue
  5154. fi
  5155. rm -f conftest.err conftest.i conftest.$ac_ext
  5156. # OK, works on sane cases. Now check whether nonexistent headers
  5157. # can be detected and how.
  5158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5159. /* end confdefs.h. */
  5160. #include <ac_nonexistent.h>
  5161. _ACEOF
  5162. if ac_fn_c_try_cpp "$LINENO"; then :
  5163. # Broken: success on invalid input.
  5164. continue
  5165. else
  5166. # Passes both tests.
  5167. ac_preproc_ok=:
  5168. break
  5169. fi
  5170. rm -f conftest.err conftest.i conftest.$ac_ext
  5171. done
  5172. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5173. rm -f conftest.i conftest.err conftest.$ac_ext
  5174. if $ac_preproc_ok; then :
  5175. else
  5176. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5178. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5179. See \`config.log' for more details" "$LINENO" 5; }
  5180. fi
  5181. ac_ext=c
  5182. ac_cpp='$CPP $CPPFLAGS'
  5183. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5184. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5185. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5186. ac_ext=cpp
  5187. ac_cpp='$CXXCPP $CPPFLAGS'
  5188. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5189. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5190. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5192. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5193. if test -z "$CXXCPP"; then
  5194. if ${ac_cv_prog_CXXCPP+:} false; then :
  5195. $as_echo_n "(cached) " >&6
  5196. else
  5197. # Double quotes because CXXCPP needs to be expanded
  5198. for CXXCPP in "$CXX -E" "/lib/cpp"
  5199. do
  5200. ac_preproc_ok=false
  5201. for ac_cxx_preproc_warn_flag in '' yes
  5202. do
  5203. # Use a header file that comes with gcc, so configuring glibc
  5204. # with a fresh cross-compiler works.
  5205. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5206. # <limits.h> exists even on freestanding compilers.
  5207. # On the NeXT, cc -E runs the code through the compiler's parser,
  5208. # not just through cpp. "Syntax error" is here to catch this case.
  5209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5210. /* end confdefs.h. */
  5211. #ifdef __STDC__
  5212. # include <limits.h>
  5213. #else
  5214. # include <assert.h>
  5215. #endif
  5216. Syntax error
  5217. _ACEOF
  5218. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5219. else
  5220. # Broken: fails on valid input.
  5221. continue
  5222. fi
  5223. rm -f conftest.err conftest.i conftest.$ac_ext
  5224. # OK, works on sane cases. Now check whether nonexistent headers
  5225. # can be detected and how.
  5226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5227. /* end confdefs.h. */
  5228. #include <ac_nonexistent.h>
  5229. _ACEOF
  5230. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5231. # Broken: success on invalid input.
  5232. continue
  5233. else
  5234. # Passes both tests.
  5235. ac_preproc_ok=:
  5236. break
  5237. fi
  5238. rm -f conftest.err conftest.i conftest.$ac_ext
  5239. done
  5240. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5241. rm -f conftest.i conftest.err conftest.$ac_ext
  5242. if $ac_preproc_ok; then :
  5243. break
  5244. fi
  5245. done
  5246. ac_cv_prog_CXXCPP=$CXXCPP
  5247. fi
  5248. CXXCPP=$ac_cv_prog_CXXCPP
  5249. else
  5250. ac_cv_prog_CXXCPP=$CXXCPP
  5251. fi
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5253. $as_echo "$CXXCPP" >&6; }
  5254. ac_preproc_ok=false
  5255. for ac_cxx_preproc_warn_flag in '' yes
  5256. do
  5257. # Use a header file that comes with gcc, so configuring glibc
  5258. # with a fresh cross-compiler works.
  5259. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5260. # <limits.h> exists even on freestanding compilers.
  5261. # On the NeXT, cc -E runs the code through the compiler's parser,
  5262. # not just through cpp. "Syntax error" is here to catch this case.
  5263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5264. /* end confdefs.h. */
  5265. #ifdef __STDC__
  5266. # include <limits.h>
  5267. #else
  5268. # include <assert.h>
  5269. #endif
  5270. Syntax error
  5271. _ACEOF
  5272. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5273. else
  5274. # Broken: fails on valid input.
  5275. continue
  5276. fi
  5277. rm -f conftest.err conftest.i conftest.$ac_ext
  5278. # OK, works on sane cases. Now check whether nonexistent headers
  5279. # can be detected and how.
  5280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5281. /* end confdefs.h. */
  5282. #include <ac_nonexistent.h>
  5283. _ACEOF
  5284. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5285. # Broken: success on invalid input.
  5286. continue
  5287. else
  5288. # Passes both tests.
  5289. ac_preproc_ok=:
  5290. break
  5291. fi
  5292. rm -f conftest.err conftest.i conftest.$ac_ext
  5293. done
  5294. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5295. rm -f conftest.i conftest.err conftest.$ac_ext
  5296. if $ac_preproc_ok; then :
  5297. else
  5298. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5299. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5300. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5301. See \`config.log' for more details" "$LINENO" 5; }
  5302. fi
  5303. ac_ext=c
  5304. ac_cpp='$CPP $CPPFLAGS'
  5305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5308. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5309. # the developers regenerating the configure script don't have to install libtool.
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5311. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5312. if ${ac_cv_path_SED+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5316. for ac_i in 1 2 3 4 5 6 7; do
  5317. ac_script="$ac_script$as_nl$ac_script"
  5318. done
  5319. echo "$ac_script" | sed 99q >conftest.sed
  5320. $as_unset ac_script || ac_script=
  5321. if test -z "$SED"; then
  5322. ac_path_SED_found=false
  5323. # Loop through the user's path and test for each of PROGNAME-LIST
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_prog in sed gsed; do
  5330. for ac_exec_ext in '' $ac_executable_extensions; do
  5331. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5332. as_fn_executable_p "$ac_path_SED" || continue
  5333. # Check for GNU ac_path_SED and select it if it is found.
  5334. # Check for GNU $ac_path_SED
  5335. case `"$ac_path_SED" --version 2>&1` in
  5336. *GNU*)
  5337. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5338. *)
  5339. ac_count=0
  5340. $as_echo_n 0123456789 >"conftest.in"
  5341. while :
  5342. do
  5343. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5344. mv "conftest.tmp" "conftest.in"
  5345. cp "conftest.in" "conftest.nl"
  5346. $as_echo '' >> "conftest.nl"
  5347. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5348. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5349. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5350. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5351. # Best one so far, save it but keep looking for a better one
  5352. ac_cv_path_SED="$ac_path_SED"
  5353. ac_path_SED_max=$ac_count
  5354. fi
  5355. # 10*(2^10) chars as input seems more than enough
  5356. test $ac_count -gt 10 && break
  5357. done
  5358. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5359. esac
  5360. $ac_path_SED_found && break 3
  5361. done
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. if test -z "$ac_cv_path_SED"; then
  5366. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5367. fi
  5368. else
  5369. ac_cv_path_SED=$SED
  5370. fi
  5371. fi
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5373. $as_echo "$ac_cv_path_SED" >&6; }
  5374. SED="$ac_cv_path_SED"
  5375. rm -f conftest.sed
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5377. $as_echo_n "checking for egrep... " >&6; }
  5378. if ${ac_cv_prog_egrep+:} false; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5382. then ac_cv_prog_egrep='grep -E'
  5383. else ac_cv_prog_egrep='egrep'
  5384. fi
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5387. $as_echo "$ac_cv_prog_egrep" >&6; }
  5388. EGREP=$ac_cv_prog_egrep
  5389. # Check whether --with-gnu-ld was given.
  5390. if test "${with_gnu_ld+set}" = set; then :
  5391. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5392. else
  5393. with_gnu_ld=no
  5394. fi
  5395. ac_prog=ld
  5396. if test "$GCC" = yes; then
  5397. # Check if gcc -print-prog-name=ld gives a path.
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5399. $as_echo_n "checking for ld used by $CC... " >&6; }
  5400. case $host in
  5401. *-*-mingw*)
  5402. # gcc leaves a trailing carriage return which upsets mingw
  5403. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5404. *)
  5405. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5406. esac
  5407. case $ac_prog in
  5408. # Accept absolute paths.
  5409. [\\/]* | ?:[\\/]*)
  5410. re_direlt='/[^/][^/]*/\.\./'
  5411. # Canonicalize the pathname of ld
  5412. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5413. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5414. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5415. done
  5416. test -z "$LD" && LD="$ac_prog"
  5417. ;;
  5418. "")
  5419. # If it fails, then pretend we aren't using GCC.
  5420. ac_prog=ld
  5421. ;;
  5422. *)
  5423. # If it is relative, then search for the first ld in PATH.
  5424. with_gnu_ld=unknown
  5425. ;;
  5426. esac
  5427. elif test "$with_gnu_ld" = yes; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5429. $as_echo_n "checking for GNU ld... " >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5432. $as_echo_n "checking for non-GNU ld... " >&6; }
  5433. fi
  5434. if ${lt_cv_path_LD+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. if test -z "$LD"; then
  5438. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5439. for ac_dir in $PATH; do
  5440. IFS="$lt_save_ifs"
  5441. test -z "$ac_dir" && ac_dir=.
  5442. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5443. lt_cv_path_LD="$ac_dir/$ac_prog"
  5444. # Check to see if the program is GNU ld. I'd rather use --version,
  5445. # but apparently some variants of GNU ld only accept -v.
  5446. # Break only if it was the GNU/non-GNU ld that we prefer.
  5447. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5448. *GNU* | *'with BFD'*)
  5449. test "$with_gnu_ld" != no && break
  5450. ;;
  5451. *)
  5452. test "$with_gnu_ld" != yes && break
  5453. ;;
  5454. esac
  5455. fi
  5456. done
  5457. IFS="$lt_save_ifs"
  5458. else
  5459. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5460. fi
  5461. fi
  5462. LD="$lt_cv_path_LD"
  5463. if test -n "$LD"; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5465. $as_echo "$LD" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5472. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5473. if ${lt_cv_prog_gnu_ld+:} false; then :
  5474. $as_echo_n "(cached) " >&6
  5475. else
  5476. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5477. case `$LD -v 2>&1 </dev/null` in
  5478. *GNU* | *'with BFD'*)
  5479. lt_cv_prog_gnu_ld=yes
  5480. ;;
  5481. *)
  5482. lt_cv_prog_gnu_ld=no
  5483. ;;
  5484. esac
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5487. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5488. with_gnu_ld=$lt_cv_prog_gnu_ld
  5489. # note, does not work on FreeBSD
  5490. for ac_prog in gawk mawk nawk awk
  5491. do
  5492. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5493. set dummy $ac_prog; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_AWK+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$AWK"; then
  5500. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_AWK="$ac_prog"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. AWK=$ac_cv_prog_AWK
  5519. if test -n "$AWK"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5521. $as_echo "$AWK" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. test -n "$AWK" && break
  5527. done
  5528. # Find a good install program. We prefer a C program (faster),
  5529. # so one script is as good as another. But avoid the broken or
  5530. # incompatible versions:
  5531. # SysV /etc/install, /usr/sbin/install
  5532. # SunOS /usr/etc/install
  5533. # IRIX /sbin/install
  5534. # AIX /bin/install
  5535. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5536. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5537. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5538. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5539. # OS/2's system install, which has a completely different semantic
  5540. # ./install, which can be erroneously created by make from ./install.sh.
  5541. # Reject install programs that cannot install multiple files.
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5543. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5544. if test -z "$INSTALL"; then
  5545. if ${ac_cv_path_install+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. # Account for people who put trailing slashes in PATH elements.
  5554. case $as_dir/ in #((
  5555. ./ | .// | /[cC]/* | \
  5556. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5557. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5558. /usr/ucb/* ) ;;
  5559. *)
  5560. # OSF1 and SCO ODT 3.0 have their own names for install.
  5561. # Don't use installbsd from OSF since it installs stuff as root
  5562. # by default.
  5563. for ac_prog in ginstall scoinst install; do
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5566. if test $ac_prog = install &&
  5567. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5568. # AIX install. It has an incompatible calling convention.
  5569. :
  5570. elif test $ac_prog = install &&
  5571. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5572. # program-specific install script used by HP pwplus--don't use.
  5573. :
  5574. else
  5575. rm -rf conftest.one conftest.two conftest.dir
  5576. echo one > conftest.one
  5577. echo two > conftest.two
  5578. mkdir conftest.dir
  5579. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5580. test -s conftest.one && test -s conftest.two &&
  5581. test -s conftest.dir/conftest.one &&
  5582. test -s conftest.dir/conftest.two
  5583. then
  5584. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5585. break 3
  5586. fi
  5587. fi
  5588. fi
  5589. done
  5590. done
  5591. ;;
  5592. esac
  5593. done
  5594. IFS=$as_save_IFS
  5595. rm -rf conftest.one conftest.two conftest.dir
  5596. fi
  5597. if test "${ac_cv_path_install+set}" = set; then
  5598. INSTALL=$ac_cv_path_install
  5599. else
  5600. # As a last resort, use the slow shell script. Don't cache a
  5601. # value for INSTALL within a source directory, because that will
  5602. # break other packages using the cache if that directory is
  5603. # removed, or if the value is a relative name.
  5604. INSTALL=$ac_install_sh
  5605. fi
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5608. $as_echo "$INSTALL" >&6; }
  5609. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5610. # It thinks the first close brace ends the variable substitution.
  5611. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5612. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5613. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5615. $as_echo_n "checking whether ln -s works... " >&6; }
  5616. LN_S=$as_ln_s
  5617. if test "$LN_S" = "ln -s"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5619. $as_echo "yes" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5622. $as_echo "no, using $LN_S" >&6; }
  5623. fi
  5624. if test -n "$ac_tool_prefix"; then
  5625. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5626. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if ${ac_cv_prog_RANLIB+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$RANLIB"; then
  5633. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5642. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. RANLIB=$ac_cv_prog_RANLIB
  5652. if test -n "$RANLIB"; then
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5654. $as_echo "$RANLIB" >&6; }
  5655. else
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. fi
  5660. if test -z "$ac_cv_prog_RANLIB"; then
  5661. ac_ct_RANLIB=$RANLIB
  5662. # Extract the first word of "ranlib", so it can be a program name with args.
  5663. set dummy ranlib; ac_word=$2
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$ac_ct_RANLIB"; then
  5670. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5679. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5689. if test -n "$ac_ct_RANLIB"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5691. $as_echo "$ac_ct_RANLIB" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. if test "x$ac_ct_RANLIB" = x; then
  5697. RANLIB=":"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. RANLIB=$ac_ct_RANLIB
  5706. fi
  5707. else
  5708. RANLIB="$ac_cv_prog_RANLIB"
  5709. fi
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5711. $as_echo_n "checking for GNU make... " >&6; }
  5712. if ${ac_cv_GNU_MAKE+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. ac_cv_GNU_MAKE='Not Found' ;
  5716. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5717. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5718. for a in make gmake gnumake ; do
  5719. if test -z "$a" ; then continue ; fi ;
  5720. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5721. ac_cv_GNU_MAKE=$a ;
  5722. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5723. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5724. break;
  5725. fi
  5726. done ;
  5727. fi
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5729. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5730. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5731. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5732. exit 1
  5733. fi
  5734. GNU_MAKE=$ac_cv_GNU_MAKE
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5736. $as_echo_n "checking for egrep... " >&6; }
  5737. if ${ac_cv_path_EGREP+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5741. then ac_cv_path_EGREP="$GREP -E"
  5742. else
  5743. if test -z "$EGREP"; then
  5744. ac_path_EGREP_found=false
  5745. # Loop through the user's path and test for each of PROGNAME-LIST
  5746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5747. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5748. do
  5749. IFS=$as_save_IFS
  5750. test -z "$as_dir" && as_dir=.
  5751. for ac_prog in egrep; do
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5754. as_fn_executable_p "$ac_path_EGREP" || continue
  5755. # Check for GNU ac_path_EGREP and select it if it is found.
  5756. # Check for GNU $ac_path_EGREP
  5757. case `"$ac_path_EGREP" --version 2>&1` in
  5758. *GNU*)
  5759. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5760. *)
  5761. ac_count=0
  5762. $as_echo_n 0123456789 >"conftest.in"
  5763. while :
  5764. do
  5765. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5766. mv "conftest.tmp" "conftest.in"
  5767. cp "conftest.in" "conftest.nl"
  5768. $as_echo 'EGREP' >> "conftest.nl"
  5769. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5770. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5771. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5772. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5773. # Best one so far, save it but keep looking for a better one
  5774. ac_cv_path_EGREP="$ac_path_EGREP"
  5775. ac_path_EGREP_max=$ac_count
  5776. fi
  5777. # 10*(2^10) chars as input seems more than enough
  5778. test $ac_count -gt 10 && break
  5779. done
  5780. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5781. esac
  5782. $ac_path_EGREP_found && break 3
  5783. done
  5784. done
  5785. done
  5786. IFS=$as_save_IFS
  5787. if test -z "$ac_cv_path_EGREP"; then
  5788. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5789. fi
  5790. else
  5791. ac_cv_path_EGREP=$EGREP
  5792. fi
  5793. fi
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5796. $as_echo "$ac_cv_path_EGREP" >&6; }
  5797. EGREP="$ac_cv_path_EGREP"
  5798. if test -n "$ac_tool_prefix"; then
  5799. for ac_prog in strip gstrip
  5800. do
  5801. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5802. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5804. $as_echo_n "checking for $ac_word... " >&6; }
  5805. if ${ac_cv_prog_STRIP+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. if test -n "$STRIP"; then
  5809. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5810. else
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_exec_ext in '' $ac_executable_extensions; do
  5817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5818. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5820. break 2
  5821. fi
  5822. done
  5823. done
  5824. IFS=$as_save_IFS
  5825. fi
  5826. fi
  5827. STRIP=$ac_cv_prog_STRIP
  5828. if test -n "$STRIP"; then
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5830. $as_echo "$STRIP" >&6; }
  5831. else
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5833. $as_echo "no" >&6; }
  5834. fi
  5835. test -n "$STRIP" && break
  5836. done
  5837. fi
  5838. if test -z "$STRIP"; then
  5839. ac_ct_STRIP=$STRIP
  5840. for ac_prog in strip gstrip
  5841. do
  5842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5843. set dummy $ac_prog; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$ac_ct_STRIP"; then
  5850. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5869. if test -n "$ac_ct_STRIP"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5871. $as_echo "$ac_ct_STRIP" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. test -n "$ac_ct_STRIP" && break
  5877. done
  5878. if test "x$ac_ct_STRIP" = x; then
  5879. STRIP=":"
  5880. else
  5881. case $cross_compiling:$ac_tool_warned in
  5882. yes:)
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5885. ac_tool_warned=yes ;;
  5886. esac
  5887. STRIP=$ac_ct_STRIP
  5888. fi
  5889. fi
  5890. if test -n "$ac_tool_prefix"; then
  5891. for ac_prog in ar gar
  5892. do
  5893. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5894. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if ${ac_cv_prog_AR+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. if test -n "$AR"; then
  5901. ac_cv_prog_AR="$AR" # Let the user override the test.
  5902. else
  5903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5904. for as_dir in $PATH
  5905. do
  5906. IFS=$as_save_IFS
  5907. test -z "$as_dir" && as_dir=.
  5908. for ac_exec_ext in '' $ac_executable_extensions; do
  5909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5910. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5912. break 2
  5913. fi
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. fi
  5918. fi
  5919. AR=$ac_cv_prog_AR
  5920. if test -n "$AR"; then
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5922. $as_echo "$AR" >&6; }
  5923. else
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5925. $as_echo "no" >&6; }
  5926. fi
  5927. test -n "$AR" && break
  5928. done
  5929. fi
  5930. if test -z "$AR"; then
  5931. ac_ct_AR=$AR
  5932. for ac_prog in ar gar
  5933. do
  5934. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5935. set dummy $ac_prog; ac_word=$2
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5937. $as_echo_n "checking for $ac_word... " >&6; }
  5938. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. if test -n "$ac_ct_AR"; then
  5942. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5943. else
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5951. ac_cv_prog_ac_ct_AR="$ac_prog"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. fi
  5959. fi
  5960. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5961. if test -n "$ac_ct_AR"; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5963. $as_echo "$ac_ct_AR" >&6; }
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5966. $as_echo "no" >&6; }
  5967. fi
  5968. test -n "$ac_ct_AR" && break
  5969. done
  5970. if test "x$ac_ct_AR" = x; then
  5971. AR=":"
  5972. else
  5973. case $cross_compiling:$ac_tool_warned in
  5974. yes:)
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5977. ac_tool_warned=yes ;;
  5978. esac
  5979. AR=$ac_ct_AR
  5980. fi
  5981. fi
  5982. GNU_LD=0
  5983. if test "x$with_gnu_ld" = "xyes" ; then
  5984. GNU_LD=1
  5985. fi
  5986. # Extract the first word of "bison", so it can be a program name with args.
  5987. set dummy bison; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_path_BISON+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. case $BISON in
  5994. [\\/]* | ?:[\\/]*)
  5995. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  5996. ;;
  5997. *)
  5998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5999. for as_dir in $PATH
  6000. do
  6001. IFS=$as_save_IFS
  6002. test -z "$as_dir" && as_dir=.
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6005. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6007. break 2
  6008. fi
  6009. done
  6010. done
  6011. IFS=$as_save_IFS
  6012. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6013. ;;
  6014. esac
  6015. fi
  6016. BISON=$ac_cv_path_BISON
  6017. if test -n "$BISON"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6019. $as_echo "$BISON" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. # Extract the first word of "cmp", so it can be a program name with args.
  6025. set dummy cmp; ac_word=$2
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6027. $as_echo_n "checking for $ac_word... " >&6; }
  6028. if ${ac_cv_path_CMP+:} false; then :
  6029. $as_echo_n "(cached) " >&6
  6030. else
  6031. case $CMP in
  6032. [\\/]* | ?:[\\/]*)
  6033. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6034. ;;
  6035. *)
  6036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6037. for as_dir in $PATH
  6038. do
  6039. IFS=$as_save_IFS
  6040. test -z "$as_dir" && as_dir=.
  6041. for ac_exec_ext in '' $ac_executable_extensions; do
  6042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6043. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6045. break 2
  6046. fi
  6047. done
  6048. done
  6049. IFS=$as_save_IFS
  6050. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6051. ;;
  6052. esac
  6053. fi
  6054. CMP=$ac_cv_path_CMP
  6055. if test -n "$CMP"; then
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6057. $as_echo "$CMP" >&6; }
  6058. else
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6060. $as_echo "no" >&6; }
  6061. fi
  6062. # Extract the first word of "flex", so it can be a program name with args.
  6063. set dummy flex; ac_word=$2
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6065. $as_echo_n "checking for $ac_word... " >&6; }
  6066. if ${ac_cv_path_FLEX+:} false; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. case $FLEX in
  6070. [\\/]* | ?:[\\/]*)
  6071. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6072. ;;
  6073. *)
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6081. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6089. ;;
  6090. esac
  6091. fi
  6092. FLEX=$ac_cv_path_FLEX
  6093. if test -n "$FLEX"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6095. $as_echo "$FLEX" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. # Extract the first word of "grep", so it can be a program name with args.
  6101. set dummy grep; ac_word=$2
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6103. $as_echo_n "checking for $ac_word... " >&6; }
  6104. if ${ac_cv_path_GREP+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. case $GREP in
  6108. [\\/]* | ?:[\\/]*)
  6109. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6110. ;;
  6111. *)
  6112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6113. for as_dir in $PATH
  6114. do
  6115. IFS=$as_save_IFS
  6116. test -z "$as_dir" && as_dir=.
  6117. for ac_exec_ext in '' $ac_executable_extensions; do
  6118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6119. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6121. break 2
  6122. fi
  6123. done
  6124. done
  6125. IFS=$as_save_IFS
  6126. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6127. ;;
  6128. esac
  6129. fi
  6130. GREP=$ac_cv_path_GREP
  6131. if test -n "$GREP"; then
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6133. $as_echo "$GREP" >&6; }
  6134. else
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6136. $as_echo "no" >&6; }
  6137. fi
  6138. # Extract the first word of "python", so it can be a program name with args.
  6139. set dummy python; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if ${ac_cv_path_PYTHON+:} false; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. case $PYTHON in
  6146. [\\/]* | ?:[\\/]*)
  6147. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  6148. ;;
  6149. *)
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6157. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  6158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  6165. ;;
  6166. esac
  6167. fi
  6168. PYTHON=$ac_cv_path_PYTHON
  6169. if test -n "$PYTHON"; then
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  6171. $as_echo "$PYTHON" >&6; }
  6172. else
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6174. $as_echo "no" >&6; }
  6175. fi
  6176. # Extract the first word of "find", so it can be a program name with args.
  6177. set dummy find; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if ${ac_cv_path_FIND+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. case $FIND in
  6184. [\\/]* | ?:[\\/]*)
  6185. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6186. ;;
  6187. *)
  6188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6189. for as_dir in $PATH
  6190. do
  6191. IFS=$as_save_IFS
  6192. test -z "$as_dir" && as_dir=.
  6193. for ac_exec_ext in '' $ac_executable_extensions; do
  6194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6195. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6197. break 2
  6198. fi
  6199. done
  6200. done
  6201. IFS=$as_save_IFS
  6202. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6203. ;;
  6204. esac
  6205. fi
  6206. FIND=$ac_cv_path_FIND
  6207. if test -n "$FIND"; then
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6209. $as_echo "$FIND" >&6; }
  6210. else
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6212. $as_echo "no" >&6; }
  6213. fi
  6214. # Extract the first word of "compress", so it can be a program name with args.
  6215. set dummy compress; ac_word=$2
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6217. $as_echo_n "checking for $ac_word... " >&6; }
  6218. if ${ac_cv_path_COMPRESS+:} false; then :
  6219. $as_echo_n "(cached) " >&6
  6220. else
  6221. case $COMPRESS in
  6222. [\\/]* | ?:[\\/]*)
  6223. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6224. ;;
  6225. *)
  6226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6227. for as_dir in $PATH
  6228. do
  6229. IFS=$as_save_IFS
  6230. test -z "$as_dir" && as_dir=.
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6233. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6235. break 2
  6236. fi
  6237. done
  6238. done
  6239. IFS=$as_save_IFS
  6240. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6241. ;;
  6242. esac
  6243. fi
  6244. COMPRESS=$ac_cv_path_COMPRESS
  6245. if test -n "$COMPRESS"; then
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6247. $as_echo "$COMPRESS" >&6; }
  6248. else
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. $as_echo "no" >&6; }
  6251. fi
  6252. # Extract the first word of "basename", so it can be a program name with args.
  6253. set dummy basename; ac_word=$2
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6255. $as_echo_n "checking for $ac_word... " >&6; }
  6256. if ${ac_cv_path_BASENAME+:} false; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. case $BASENAME in
  6260. [\\/]* | ?:[\\/]*)
  6261. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6262. ;;
  6263. *)
  6264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6265. for as_dir in $PATH
  6266. do
  6267. IFS=$as_save_IFS
  6268. test -z "$as_dir" && as_dir=.
  6269. for ac_exec_ext in '' $ac_executable_extensions; do
  6270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6271. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6273. break 2
  6274. fi
  6275. done
  6276. done
  6277. IFS=$as_save_IFS
  6278. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6279. ;;
  6280. esac
  6281. fi
  6282. BASENAME=$ac_cv_path_BASENAME
  6283. if test -n "$BASENAME"; then
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6285. $as_echo "$BASENAME" >&6; }
  6286. else
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6288. $as_echo "no" >&6; }
  6289. fi
  6290. # Extract the first word of "dirname", so it can be a program name with args.
  6291. set dummy dirname; ac_word=$2
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6293. $as_echo_n "checking for $ac_word... " >&6; }
  6294. if ${ac_cv_path_DIRNAME+:} false; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. case $DIRNAME in
  6298. [\\/]* | ?:[\\/]*)
  6299. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6300. ;;
  6301. *)
  6302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6303. for as_dir in $PATH
  6304. do
  6305. IFS=$as_save_IFS
  6306. test -z "$as_dir" && as_dir=.
  6307. for ac_exec_ext in '' $ac_executable_extensions; do
  6308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6309. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6311. break 2
  6312. fi
  6313. done
  6314. done
  6315. IFS=$as_save_IFS
  6316. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6317. ;;
  6318. esac
  6319. fi
  6320. DIRNAME=$ac_cv_path_DIRNAME
  6321. if test -n "$DIRNAME"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6323. $as_echo "$DIRNAME" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. # Extract the first word of "sh", so it can be a program name with args.
  6329. set dummy sh; ac_word=$2
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6331. $as_echo_n "checking for $ac_word... " >&6; }
  6332. if ${ac_cv_path_SHELL+:} false; then :
  6333. $as_echo_n "(cached) " >&6
  6334. else
  6335. case $SHELL in
  6336. [\\/]* | ?:[\\/]*)
  6337. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6338. ;;
  6339. *)
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6347. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6355. ;;
  6356. esac
  6357. fi
  6358. SHELL=$ac_cv_path_SHELL
  6359. if test -n "$SHELL"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6361. $as_echo "$SHELL" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. # Extract the first word of "ln", so it can be a program name with args.
  6367. set dummy ln; ac_word=$2
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6369. $as_echo_n "checking for $ac_word... " >&6; }
  6370. if ${ac_cv_path_LN+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. case $LN in
  6374. [\\/]* | ?:[\\/]*)
  6375. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6376. ;;
  6377. *)
  6378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6379. for as_dir in $PATH
  6380. do
  6381. IFS=$as_save_IFS
  6382. test -z "$as_dir" && as_dir=.
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6385. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6393. ;;
  6394. esac
  6395. fi
  6396. LN=$ac_cv_path_LN
  6397. if test -n "$LN"; then
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6399. $as_echo "$LN" >&6; }
  6400. else
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402. $as_echo "no" >&6; }
  6403. fi
  6404. # Extract the first word of "dot", so it can be a program name with args.
  6405. set dummy dot; ac_word=$2
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6407. $as_echo_n "checking for $ac_word... " >&6; }
  6408. if ${ac_cv_path_DOT+:} false; then :
  6409. $as_echo_n "(cached) " >&6
  6410. else
  6411. case $DOT in
  6412. [\\/]* | ?:[\\/]*)
  6413. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6414. ;;
  6415. *)
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6423. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6431. ;;
  6432. esac
  6433. fi
  6434. DOT=$ac_cv_path_DOT
  6435. if test -n "$DOT"; then
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6437. $as_echo "$DOT" >&6; }
  6438. else
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6440. $as_echo "no" >&6; }
  6441. fi
  6442. # Extract the first word of "wget", so it can be a program name with args.
  6443. set dummy wget; ac_word=$2
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if ${ac_cv_path_WGET+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. case $WGET in
  6450. [\\/]* | ?:[\\/]*)
  6451. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6452. ;;
  6453. *)
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. test -z "$as_dir" && as_dir=.
  6459. for ac_exec_ext in '' $ac_executable_extensions; do
  6460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6461. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6463. break 2
  6464. fi
  6465. done
  6466. done
  6467. IFS=$as_save_IFS
  6468. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6469. ;;
  6470. esac
  6471. fi
  6472. WGET=$ac_cv_path_WGET
  6473. if test -n "$WGET"; then
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6475. $as_echo "$WGET" >&6; }
  6476. else
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6478. $as_echo "no" >&6; }
  6479. fi
  6480. # Extract the first word of "curl", so it can be a program name with args.
  6481. set dummy curl; ac_word=$2
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6483. $as_echo_n "checking for $ac_word... " >&6; }
  6484. if ${ac_cv_path_CURL+:} false; then :
  6485. $as_echo_n "(cached) " >&6
  6486. else
  6487. case $CURL in
  6488. [\\/]* | ?:[\\/]*)
  6489. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6490. ;;
  6491. *)
  6492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493. for as_dir in $PATH
  6494. do
  6495. IFS=$as_save_IFS
  6496. test -z "$as_dir" && as_dir=.
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6499. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6507. ;;
  6508. esac
  6509. fi
  6510. CURL=$ac_cv_path_CURL
  6511. if test -n "$CURL"; then
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6513. $as_echo "$CURL" >&6; }
  6514. else
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. $as_echo "no" >&6; }
  6517. fi
  6518. # Extract the first word of "rubber", so it can be a program name with args.
  6519. set dummy rubber; ac_word=$2
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6521. $as_echo_n "checking for $ac_word... " >&6; }
  6522. if ${ac_cv_path_RUBBER+:} false; then :
  6523. $as_echo_n "(cached) " >&6
  6524. else
  6525. case $RUBBER in
  6526. [\\/]* | ?:[\\/]*)
  6527. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6528. ;;
  6529. *)
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. test -z "$as_dir" && as_dir=.
  6535. for ac_exec_ext in '' $ac_executable_extensions; do
  6536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6537. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6539. break 2
  6540. fi
  6541. done
  6542. done
  6543. IFS=$as_save_IFS
  6544. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6545. ;;
  6546. esac
  6547. fi
  6548. RUBBER=$ac_cv_path_RUBBER
  6549. if test -n "$RUBBER"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
  6551. $as_echo "$RUBBER" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. # Extract the first word of "catdvi", so it can be a program name with args.
  6557. set dummy catdvi; ac_word=$2
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6559. $as_echo_n "checking for $ac_word... " >&6; }
  6560. if ${ac_cv_path_CATDVI+:} false; then :
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. case $CATDVI in
  6564. [\\/]* | ?:[\\/]*)
  6565. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  6566. ;;
  6567. *)
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6575. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6583. ;;
  6584. esac
  6585. fi
  6586. CATDVI=$ac_cv_path_CATDVI
  6587. if test -n "$CATDVI"; then
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
  6589. $as_echo "$CATDVI" >&6; }
  6590. else
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6592. $as_echo "no" >&6; }
  6593. fi
  6594. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6595. set dummy kpsewhich; ac_word=$2
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6597. $as_echo_n "checking for $ac_word... " >&6; }
  6598. if ${ac_cv_path_KPATHSEA+:} false; then :
  6599. $as_echo_n "(cached) " >&6
  6600. else
  6601. case $KPATHSEA in
  6602. [\\/]* | ?:[\\/]*)
  6603. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6604. ;;
  6605. *)
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. test -z "$as_dir" && as_dir=.
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6613. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6621. ;;
  6622. esac
  6623. fi
  6624. KPATHSEA=$ac_cv_path_KPATHSEA
  6625. if test -n "$KPATHSEA"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
  6627. $as_echo "$KPATHSEA" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. # Extract the first word of "xmllint", so it can be a program name with args.
  6633. set dummy xmllint; ac_word=$2
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if ${ac_cv_path_XMLLINT+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. case $XMLLINT in
  6640. [\\/]* | ?:[\\/]*)
  6641. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6642. ;;
  6643. *)
  6644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6645. for as_dir in $PATH
  6646. do
  6647. IFS=$as_save_IFS
  6648. test -z "$as_dir" && as_dir=.
  6649. for ac_exec_ext in '' $ac_executable_extensions; do
  6650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6651. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6653. break 2
  6654. fi
  6655. done
  6656. done
  6657. IFS=$as_save_IFS
  6658. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6659. ;;
  6660. esac
  6661. fi
  6662. XMLLINT=$ac_cv_path_XMLLINT
  6663. if test -n "$XMLLINT"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  6665. $as_echo "$XMLLINT" >&6; }
  6666. else
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. $as_echo "no" >&6; }
  6669. fi
  6670. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6671. set dummy xmlstarlet; ac_word=$2
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6673. $as_echo_n "checking for $ac_word... " >&6; }
  6674. if ${ac_cv_path_XMLSTARLET+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. case $XMLSTARLET in
  6678. [\\/]* | ?:[\\/]*)
  6679. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  6680. ;;
  6681. *)
  6682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6683. for as_dir in $PATH
  6684. do
  6685. IFS=$as_save_IFS
  6686. test -z "$as_dir" && as_dir=.
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6689. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  6690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6697. ;;
  6698. esac
  6699. fi
  6700. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6701. if test -n "$XMLSTARLET"; then
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  6703. $as_echo "$XMLSTARLET" >&6; }
  6704. else
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6706. $as_echo "no" >&6; }
  6707. fi
  6708. # Extract the first word of "git", so it can be a program name with args.
  6709. set dummy git; ac_word=$2
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6711. $as_echo_n "checking for $ac_word... " >&6; }
  6712. if ${ac_cv_path_GIT+:} false; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. case $GIT in
  6716. [\\/]* | ?:[\\/]*)
  6717. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  6718. ;;
  6719. *)
  6720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6721. for as_dir in $PATH
  6722. do
  6723. IFS=$as_save_IFS
  6724. test -z "$as_dir" && as_dir=.
  6725. for ac_exec_ext in '' $ac_executable_extensions; do
  6726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6727. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  6728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6729. break 2
  6730. fi
  6731. done
  6732. done
  6733. IFS=$as_save_IFS
  6734. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT=":"
  6735. ;;
  6736. esac
  6737. fi
  6738. GIT=$ac_cv_path_GIT
  6739. if test -n "$GIT"; then
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  6741. $as_echo "$GIT" >&6; }
  6742. else
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6744. $as_echo "no" >&6; }
  6745. fi
  6746. if test "${WGET}" != ":" ; then
  6747. DOWNLOAD=${WGET}
  6748. else if test "${CURL}" != ":" ; then
  6749. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6750. else
  6751. # Extract the first word of "fetch", so it can be a program name with args.
  6752. set dummy fetch; ac_word=$2
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6754. $as_echo_n "checking for $ac_word... " >&6; }
  6755. if ${ac_cv_path_FETCH+:} false; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. case $FETCH in
  6759. [\\/]* | ?:[\\/]*)
  6760. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6761. ;;
  6762. *)
  6763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6764. for as_dir in $PATH
  6765. do
  6766. IFS=$as_save_IFS
  6767. test -z "$as_dir" && as_dir=.
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6770. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6772. break 2
  6773. fi
  6774. done
  6775. done
  6776. IFS=$as_save_IFS
  6777. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6778. ;;
  6779. esac
  6780. fi
  6781. FETCH=$ac_cv_path_FETCH
  6782. if test -n "$FETCH"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6784. $as_echo "$FETCH" >&6; }
  6785. else
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. $as_echo "no" >&6; }
  6788. fi
  6789. DOWNLOAD=${FETCH}
  6790. fi
  6791. fi
  6792. # Extract the first word of "ldconfig", so it can be a program name with args.
  6793. set dummy ldconfig; ac_word=$2
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6795. $as_echo_n "checking for $ac_word... " >&6; }
  6796. if ${ac_cv_path_LDCONFIG+:} false; then :
  6797. $as_echo_n "(cached) " >&6
  6798. else
  6799. case $LDCONFIG in
  6800. [\\/]* | ?:[\\/]*)
  6801. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  6802. ;;
  6803. *)
  6804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6805. for as_dir in $PATH
  6806. do
  6807. IFS=$as_save_IFS
  6808. test -z "$as_dir" && as_dir=.
  6809. for ac_exec_ext in '' $ac_executable_extensions; do
  6810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6811. ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6813. break 2
  6814. fi
  6815. done
  6816. done
  6817. IFS=$as_save_IFS
  6818. test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
  6819. ;;
  6820. esac
  6821. fi
  6822. LDCONFIG=$ac_cv_path_LDCONFIG
  6823. if test -n "$LDCONFIG"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  6825. $as_echo "$LDCONFIG" >&6; }
  6826. else
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6828. $as_echo "no" >&6; }
  6829. fi
  6830. # Extract the first word of "sha1sum", so it can be a program name with args.
  6831. set dummy sha1sum; ac_word=$2
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6833. $as_echo_n "checking for $ac_word... " >&6; }
  6834. if ${ac_cv_path_SHA1SUM+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. case $SHA1SUM in
  6838. [\\/]* | ?:[\\/]*)
  6839. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  6840. ;;
  6841. *)
  6842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6843. for as_dir in $PATH
  6844. do
  6845. IFS=$as_save_IFS
  6846. test -z "$as_dir" && as_dir=.
  6847. for ac_exec_ext in '' $ac_executable_extensions; do
  6848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6849. ac_cv_path_SHA1SUM="$as_dir/$ac_word$ac_exec_ext"
  6850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6851. break 2
  6852. fi
  6853. done
  6854. done
  6855. IFS=$as_save_IFS
  6856. test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  6857. ;;
  6858. esac
  6859. fi
  6860. SHA1SUM=$ac_cv_path_SHA1SUM
  6861. if test -n "$SHA1SUM"; then
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  6863. $as_echo "$SHA1SUM" >&6; }
  6864. else
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. $as_echo "no" >&6; }
  6867. fi
  6868. # Extract the first word of "openssl", so it can be a program name with args.
  6869. set dummy openssl; ac_word=$2
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6871. $as_echo_n "checking for $ac_word... " >&6; }
  6872. if ${ac_cv_path_OPENSSL+:} false; then :
  6873. $as_echo_n "(cached) " >&6
  6874. else
  6875. case $OPENSSL in
  6876. [\\/]* | ?:[\\/]*)
  6877. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  6878. ;;
  6879. *)
  6880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6881. for as_dir in $PATH
  6882. do
  6883. IFS=$as_save_IFS
  6884. test -z "$as_dir" && as_dir=.
  6885. for ac_exec_ext in '' $ac_executable_extensions; do
  6886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6887. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  6888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6889. break 2
  6890. fi
  6891. done
  6892. done
  6893. IFS=$as_save_IFS
  6894. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL=":"
  6895. ;;
  6896. esac
  6897. fi
  6898. OPENSSL=$ac_cv_path_OPENSSL
  6899. if test -n "$OPENSSL"; then
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  6901. $as_echo "$OPENSSL" >&6; }
  6902. else
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6904. $as_echo "no" >&6; }
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  6907. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  6908. if ${ac_cv_path_BISON2+:} false; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. if test "x$BISON" != "x:" ; then
  6912. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  6913. # Use mktemp if possible; otherwise fall back on mkdir,
  6914. # with $RANDOM to make collisions less likely.
  6915. : ${TMPDIR=/tmp}
  6916. {
  6917. tmp=`
  6918. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  6919. ` &&
  6920. test -n "$tmp" && test -d "$tmp"
  6921. } || {
  6922. tmp=$TMPDIR/foo$$-$RANDOM
  6923. (umask 077 && mkdir "$tmp")
  6924. } || exit $?
  6925. cat >$tmp/test.y <<__EOL__
  6926. %parse-param {struct parse_io *parseio}
  6927. %%
  6928. file : { \$\$ = parseio->pval = 1; }
  6929. ;
  6930. %%
  6931. __EOL__
  6932. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  6933. if test -e "${tmp}/test.tab.c"; then
  6934. ac_cv_path_BISON2=${BISON}
  6935. fi
  6936. rm -rf ${tmp}
  6937. fi
  6938. fi
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  6940. $as_echo "$ac_cv_path_BISON2" >&6; }
  6941. if test "x${ac_cv_path_BISON2}" = "x" ; then
  6942. BISON=:
  6943. PBX_BISON=0
  6944. else
  6945. PBX_BISON=1
  6946. fi
  6947. if test "x${FLEX}" = "x:" ; then
  6948. PBX_FLEX=0
  6949. else
  6950. PBX_FLEX=1
  6951. fi
  6952. if test -n "$ac_tool_prefix"; then
  6953. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  6954. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6956. $as_echo_n "checking for $ac_word... " >&6; }
  6957. if ${ac_cv_prog_SOXMIX+:} false; then :
  6958. $as_echo_n "(cached) " >&6
  6959. else
  6960. if test -n "$SOXMIX"; then
  6961. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  6962. else
  6963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6964. for as_dir in $PATH
  6965. do
  6966. IFS=$as_save_IFS
  6967. test -z "$as_dir" && as_dir=.
  6968. for ac_exec_ext in '' $ac_executable_extensions; do
  6969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6970. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  6971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6972. break 2
  6973. fi
  6974. done
  6975. done
  6976. IFS=$as_save_IFS
  6977. fi
  6978. fi
  6979. SOXMIX=$ac_cv_prog_SOXMIX
  6980. if test -n "$SOXMIX"; then
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  6982. $as_echo "$SOXMIX" >&6; }
  6983. else
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6985. $as_echo "no" >&6; }
  6986. fi
  6987. fi
  6988. if test -z "$ac_cv_prog_SOXMIX"; then
  6989. ac_ct_SOXMIX=$SOXMIX
  6990. # Extract the first word of "soxmix", so it can be a program name with args.
  6991. set dummy soxmix; ac_word=$2
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6993. $as_echo_n "checking for $ac_word... " >&6; }
  6994. if ${ac_cv_prog_ac_ct_SOXMIX+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. if test -n "$ac_ct_SOXMIX"; then
  6998. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  6999. else
  7000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7001. for as_dir in $PATH
  7002. do
  7003. IFS=$as_save_IFS
  7004. test -z "$as_dir" && as_dir=.
  7005. for ac_exec_ext in '' $ac_executable_extensions; do
  7006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7007. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  7008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7009. break 2
  7010. fi
  7011. done
  7012. done
  7013. IFS=$as_save_IFS
  7014. fi
  7015. fi
  7016. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  7017. if test -n "$ac_ct_SOXMIX"; then
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  7019. $as_echo "$ac_ct_SOXMIX" >&6; }
  7020. else
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7022. $as_echo "no" >&6; }
  7023. fi
  7024. if test "x$ac_ct_SOXMIX" = x; then
  7025. SOXMIX=":"
  7026. else
  7027. case $cross_compiling:$ac_tool_warned in
  7028. yes:)
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7031. ac_tool_warned=yes ;;
  7032. esac
  7033. SOXMIX=$ac_ct_SOXMIX
  7034. fi
  7035. else
  7036. SOXMIX="$ac_cv_prog_SOXMIX"
  7037. fi
  7038. if test "${SOXMIX}" != ":" ; then
  7039. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  7040. fi
  7041. for ac_prog in md5 md5sum gmd5sum digest
  7042. do
  7043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7044. set dummy $ac_prog; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if ${ac_cv_prog_MD5+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$MD5"; then
  7051. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_MD5="$ac_prog"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. MD5=$ac_cv_prog_MD5
  7070. if test -n "$MD5"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  7072. $as_echo "$MD5" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. test -n "$MD5" && break
  7078. done
  7079. if test "${MD5}" = "digest" ; then
  7080. MD5="${MD5} -a md5"
  7081. fi
  7082. ac_ext=c
  7083. ac_cpp='$CPP $CPPFLAGS'
  7084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7087. acx_pthread_ok=no
  7088. # We used to check for pthread.h first, but this fails if pthread.h
  7089. # requires special compiler flags (e.g. on True64 or Sequent).
  7090. # It gets checked for in the link test anyway.
  7091. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7092. # etcetera environment variables, and if threads linking works using
  7093. # them:
  7094. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7095. save_CFLAGS="$CFLAGS"
  7096. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7097. save_LIBS="$LIBS"
  7098. LIBS="$PTHREAD_LIBS $LIBS"
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7100. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7102. /* end confdefs.h. */
  7103. /* Override any GCC internal prototype to avoid an error.
  7104. Use char because int might match the return type of a GCC
  7105. builtin and then its argument prototype would still apply. */
  7106. #ifdef __cplusplus
  7107. extern "C"
  7108. #endif
  7109. char pthread_join ();
  7110. int
  7111. main ()
  7112. {
  7113. return pthread_join ();
  7114. ;
  7115. return 0;
  7116. }
  7117. _ACEOF
  7118. if ac_fn_c_try_link "$LINENO"; then :
  7119. acx_pthread_ok=yes
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext \
  7122. conftest$ac_exeext conftest.$ac_ext
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7124. $as_echo "$acx_pthread_ok" >&6; }
  7125. if test x"$acx_pthread_ok" = xno; then
  7126. PTHREAD_LIBS=""
  7127. PTHREAD_CFLAGS=""
  7128. fi
  7129. LIBS="$save_LIBS"
  7130. CFLAGS="$save_CFLAGS"
  7131. fi
  7132. # We must check for the threads library under a number of different
  7133. # names; the ordering is very important because some systems
  7134. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7135. # libraries is broken (non-POSIX).
  7136. # Create a list of thread flags to try. Items starting with a "-" are
  7137. # C compiler flags, and other items are library names, except for "none"
  7138. # which indicates that we try without any flags at all, and "pthread-config"
  7139. # which is a program returning the flags for the Pth emulation library.
  7140. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7141. # The ordering *is* (sometimes) important. Some notes on the
  7142. # individual items follow:
  7143. # pthreads: AIX (must check this before -lpthread)
  7144. # none: in case threads are in libc; should be tried before -Kthread and
  7145. # other compiler flags to prevent continual compiler warnings
  7146. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7147. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7148. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7149. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7150. # -pthreads: Solaris/gcc
  7151. # -mthreads: Mingw32/gcc, Lynx/gcc
  7152. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7153. # doesn't hurt to check since this sometimes defines pthreads too;
  7154. # also defines -D_REENTRANT)
  7155. # ... -mt is also the pthreads flag for HP/aCC
  7156. # pthread: Linux, etcetera
  7157. # --thread-safe: KAI C++
  7158. # pthread-config: use pthread-config program (for GNU Pth library)
  7159. case "${host_cpu}-${host_os}" in
  7160. *solaris*)
  7161. # On Solaris (at least, for some versions), libc contains stubbed
  7162. # (non-functional) versions of the pthreads routines, so link-based
  7163. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7164. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7165. # a function called by this macro, so we could check for that, but
  7166. # who knows whether they'll stub that too in a future libc.) So,
  7167. # we'll just look for -pthreads and -lpthread first:
  7168. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7169. ;;
  7170. esac
  7171. if test x"$acx_pthread_ok" = xno; then
  7172. for flag in $acx_pthread_flags; do
  7173. case $flag in
  7174. none)
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7176. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7177. ;;
  7178. -*)
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7180. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7181. PTHREAD_CFLAGS="$flag"
  7182. ;;
  7183. pthread-config)
  7184. # Extract the first word of "pthread-config", so it can be a program name with args.
  7185. set dummy pthread-config; ac_word=$2
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7187. $as_echo_n "checking for $ac_word... " >&6; }
  7188. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. if test -n "$acx_pthread_config"; then
  7192. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7193. else
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. test -z "$as_dir" && as_dir=.
  7199. for ac_exec_ext in '' $ac_executable_extensions; do
  7200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7201. ac_cv_prog_acx_pthread_config="yes"
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7203. break 2
  7204. fi
  7205. done
  7206. done
  7207. IFS=$as_save_IFS
  7208. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7209. fi
  7210. fi
  7211. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7212. if test -n "$acx_pthread_config"; then
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7214. $as_echo "$acx_pthread_config" >&6; }
  7215. else
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7217. $as_echo "no" >&6; }
  7218. fi
  7219. if test x"$acx_pthread_config" = xno; then continue; fi
  7220. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7221. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7222. ;;
  7223. *)
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7225. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7226. PTHREAD_LIBS="-l$flag"
  7227. ;;
  7228. esac
  7229. save_LIBS="$LIBS"
  7230. save_CFLAGS="$CFLAGS"
  7231. LIBS="$PTHREAD_LIBS $LIBS"
  7232. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7233. # Check for various functions. We must include pthread.h,
  7234. # since some functions may be macros. (On the Sequent, we
  7235. # need a special flag -Kthread to make this header compile.)
  7236. # We check for pthread_join because it is in -lpthread on IRIX
  7237. # while pthread_create is in libc. We check for pthread_attr_init
  7238. # due to DEC craziness with -lpthreads. We check for
  7239. # pthread_cleanup_push because it is one of the few pthread
  7240. # functions on Solaris that doesn't have a non-functional libc stub.
  7241. # We try pthread_create on general principles.
  7242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7243. /* end confdefs.h. */
  7244. #include <pthread.h>
  7245. int
  7246. main ()
  7247. {
  7248. pthread_t th; pthread_join(th, 0);
  7249. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7250. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7251. ;
  7252. return 0;
  7253. }
  7254. _ACEOF
  7255. if ac_fn_c_try_link "$LINENO"; then :
  7256. acx_pthread_ok=yes
  7257. fi
  7258. rm -f core conftest.err conftest.$ac_objext \
  7259. conftest$ac_exeext conftest.$ac_ext
  7260. LIBS="$save_LIBS"
  7261. CFLAGS="$save_CFLAGS"
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7263. $as_echo "$acx_pthread_ok" >&6; }
  7264. if test "x$acx_pthread_ok" = xyes; then
  7265. break;
  7266. fi
  7267. PTHREAD_LIBS=""
  7268. PTHREAD_CFLAGS=""
  7269. done
  7270. fi
  7271. # Various other checks:
  7272. if test "x$acx_pthread_ok" = xyes; then
  7273. save_LIBS="$LIBS"
  7274. LIBS="$PTHREAD_LIBS $LIBS"
  7275. save_CFLAGS="$CFLAGS"
  7276. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7277. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7279. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7280. attr_name=unknown
  7281. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7283. /* end confdefs.h. */
  7284. #include <pthread.h>
  7285. int
  7286. main ()
  7287. {
  7288. int attr=$attr; return attr;
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. if ac_fn_c_try_link "$LINENO"; then :
  7294. attr_name=$attr; break
  7295. fi
  7296. rm -f core conftest.err conftest.$ac_objext \
  7297. conftest$ac_exeext conftest.$ac_ext
  7298. done
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7300. $as_echo "$attr_name" >&6; }
  7301. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7302. cat >>confdefs.h <<_ACEOF
  7303. #define PTHREAD_CREATE_JOINABLE $attr_name
  7304. _ACEOF
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7307. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7308. flag=no
  7309. case "${host_cpu}-${host_os}" in
  7310. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7311. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7312. esac
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7314. $as_echo "${flag}" >&6; }
  7315. if test "x$flag" != xno; then
  7316. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7317. fi
  7318. LIBS="$save_LIBS"
  7319. CFLAGS="$save_CFLAGS"
  7320. # More AIX lossage: must compile with xlc_r or cc_r
  7321. if test x"$GCC" != xyes; then
  7322. for ac_prog in xlc_r cc_r
  7323. do
  7324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7325. set dummy $ac_prog; ac_word=$2
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7327. $as_echo_n "checking for $ac_word... " >&6; }
  7328. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. if test -n "$PTHREAD_CC"; then
  7332. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7333. else
  7334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7335. for as_dir in $PATH
  7336. do
  7337. IFS=$as_save_IFS
  7338. test -z "$as_dir" && as_dir=.
  7339. for ac_exec_ext in '' $ac_executable_extensions; do
  7340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7341. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7343. break 2
  7344. fi
  7345. done
  7346. done
  7347. IFS=$as_save_IFS
  7348. fi
  7349. fi
  7350. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7351. if test -n "$PTHREAD_CC"; then
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7353. $as_echo "$PTHREAD_CC" >&6; }
  7354. else
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7356. $as_echo "no" >&6; }
  7357. fi
  7358. test -n "$PTHREAD_CC" && break
  7359. done
  7360. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7361. else
  7362. PTHREAD_CC=$CC
  7363. fi
  7364. else
  7365. PTHREAD_CC="$CC"
  7366. fi
  7367. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7368. if test x"$acx_pthread_ok" = xyes; then
  7369. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7370. :
  7371. else
  7372. acx_pthread_ok=no
  7373. fi
  7374. ac_ext=c
  7375. ac_cpp='$CPP $CPPFLAGS'
  7376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7379. ac_ext=c
  7380. ac_cpp='$CPP $CPPFLAGS'
  7381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7384. # Check whether --enable-dev-mode was given.
  7385. if test "${enable_dev_mode+set}" = set; then :
  7386. enableval=$enable_dev_mode; case "${enableval}" in
  7387. y|ye|yes) AST_DEVMODE=yes ;;
  7388. n|no) AST_DEVMODE=no ;;
  7389. noisy)
  7390. AST_DEVMODE=yes
  7391. NOISY_BUILD=yes
  7392. ;;
  7393. strict)
  7394. AST_DEVMODE=yes
  7395. AST_DEVMODE_STRICT=yes
  7396. ;;
  7397. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7398. esac
  7399. fi
  7400. AST_CODE_COVERAGE=no
  7401. # Check whether --enable-coverage was given.
  7402. if test "${enable_coverage+set}" = set; then :
  7403. enableval=$enable_coverage; case "${enableval}" in
  7404. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7405. n|no) AST_CODE_COVERAGE=no ;;
  7406. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  7407. esac
  7408. fi
  7409. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7410. # various packages.
  7411. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7412. # $2 is the short comment, $4 is the long comment
  7413. # $3 is the name used in --with- or --without- flags for configure.
  7414. #
  7415. # Package option names should be in alphabetical order
  7416. # by the --with option name (the third field),
  7417. # to make things easier for the users.
  7418. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7419. ALSA_OPTION="asound"
  7420. PBX_ALSA=0
  7421. # Check whether --with-asound was given.
  7422. if test "${with_asound+set}" = set; then :
  7423. withval=$with_asound;
  7424. case ${withval} in
  7425. n|no)
  7426. USE_ALSA=no
  7427. # -1 is a magic value used by menuselect to know that the package
  7428. # was disabled, other than 'not found'
  7429. PBX_ALSA=-1
  7430. ;;
  7431. y|ye|yes)
  7432. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7433. ;;
  7434. *)
  7435. ALSA_DIR="${withval}"
  7436. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7437. ;;
  7438. esac
  7439. fi
  7440. BFD_DESCRIP="Debug symbol decoding"
  7441. BFD_OPTION="bfd"
  7442. PBX_BFD=0
  7443. # Check whether --with-bfd was given.
  7444. if test "${with_bfd+set}" = set; then :
  7445. withval=$with_bfd;
  7446. case ${withval} in
  7447. n|no)
  7448. USE_BFD=no
  7449. # -1 is a magic value used by menuselect to know that the package
  7450. # was disabled, other than 'not found'
  7451. PBX_BFD=-1
  7452. ;;
  7453. y|ye|yes)
  7454. ac_mandatory_list="${ac_mandatory_list} BFD"
  7455. ;;
  7456. *)
  7457. BFD_DIR="${withval}"
  7458. ac_mandatory_list="${ac_mandatory_list} BFD"
  7459. ;;
  7460. esac
  7461. fi
  7462. # BKTR is used for backtrace support on platforms that do not
  7463. # have it natively.
  7464. BKTR_DESCRIP="Stack Backtrace"
  7465. BKTR_OPTION="execinfo"
  7466. PBX_BKTR=0
  7467. # Check whether --with-execinfo was given.
  7468. if test "${with_execinfo+set}" = set; then :
  7469. withval=$with_execinfo;
  7470. case ${withval} in
  7471. n|no)
  7472. USE_BKTR=no
  7473. # -1 is a magic value used by menuselect to know that the package
  7474. # was disabled, other than 'not found'
  7475. PBX_BKTR=-1
  7476. ;;
  7477. y|ye|yes)
  7478. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7479. ;;
  7480. *)
  7481. BKTR_DIR="${withval}"
  7482. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7483. ;;
  7484. esac
  7485. fi
  7486. BLUETOOTH_DESCRIP="Bluetooth"
  7487. BLUETOOTH_OPTION="bluetooth"
  7488. PBX_BLUETOOTH=0
  7489. # Check whether --with-bluetooth was given.
  7490. if test "${with_bluetooth+set}" = set; then :
  7491. withval=$with_bluetooth;
  7492. case ${withval} in
  7493. n|no)
  7494. USE_BLUETOOTH=no
  7495. # -1 is a magic value used by menuselect to know that the package
  7496. # was disabled, other than 'not found'
  7497. PBX_BLUETOOTH=-1
  7498. ;;
  7499. y|ye|yes)
  7500. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7501. ;;
  7502. *)
  7503. BLUETOOTH_DIR="${withval}"
  7504. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7505. ;;
  7506. esac
  7507. fi
  7508. CAP_DESCRIP="POSIX 1.e capabilities"
  7509. CAP_OPTION="cap"
  7510. PBX_CAP=0
  7511. # Check whether --with-cap was given.
  7512. if test "${with_cap+set}" = set; then :
  7513. withval=$with_cap;
  7514. case ${withval} in
  7515. n|no)
  7516. USE_CAP=no
  7517. # -1 is a magic value used by menuselect to know that the package
  7518. # was disabled, other than 'not found'
  7519. PBX_CAP=-1
  7520. ;;
  7521. y|ye|yes)
  7522. ac_mandatory_list="${ac_mandatory_list} CAP"
  7523. ;;
  7524. *)
  7525. CAP_DIR="${withval}"
  7526. ac_mandatory_list="${ac_mandatory_list} CAP"
  7527. ;;
  7528. esac
  7529. fi
  7530. COROSYNC_DESCRIP="Corosync"
  7531. COROSYNC_OPTION="cpg"
  7532. PBX_COROSYNC=0
  7533. # Check whether --with-cpg was given.
  7534. if test "${with_cpg+set}" = set; then :
  7535. withval=$with_cpg;
  7536. case ${withval} in
  7537. n|no)
  7538. USE_COROSYNC=no
  7539. # -1 is a magic value used by menuselect to know that the package
  7540. # was disabled, other than 'not found'
  7541. PBX_COROSYNC=-1
  7542. ;;
  7543. y|ye|yes)
  7544. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7545. ;;
  7546. *)
  7547. COROSYNC_DIR="${withval}"
  7548. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7549. ;;
  7550. esac
  7551. fi
  7552. COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
  7553. COROSYNC_CFG_STATE_TRACK_OPTION=cfg
  7554. COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
  7555. PBX_COROSYNC_CFG_STATE_TRACK=0
  7556. CURSES_DESCRIP="curses"
  7557. CURSES_OPTION="curses"
  7558. PBX_CURSES=0
  7559. # Check whether --with-curses was given.
  7560. if test "${with_curses+set}" = set; then :
  7561. withval=$with_curses;
  7562. case ${withval} in
  7563. n|no)
  7564. USE_CURSES=no
  7565. # -1 is a magic value used by menuselect to know that the package
  7566. # was disabled, other than 'not found'
  7567. PBX_CURSES=-1
  7568. ;;
  7569. y|ye|yes)
  7570. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7571. ;;
  7572. *)
  7573. CURSES_DIR="${withval}"
  7574. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7575. ;;
  7576. esac
  7577. fi
  7578. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7579. CRYPTO_OPTION="crypto"
  7580. PBX_CRYPTO=0
  7581. # Check whether --with-crypto was given.
  7582. if test "${with_crypto+set}" = set; then :
  7583. withval=$with_crypto;
  7584. case ${withval} in
  7585. n|no)
  7586. USE_CRYPTO=no
  7587. # -1 is a magic value used by menuselect to know that the package
  7588. # was disabled, other than 'not found'
  7589. PBX_CRYPTO=-1
  7590. ;;
  7591. y|ye|yes)
  7592. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7593. ;;
  7594. *)
  7595. CRYPTO_DIR="${withval}"
  7596. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7597. ;;
  7598. esac
  7599. fi
  7600. OPENSSL_SRTP_DESCRIP="OpenSSL SRTP Extension Support"
  7601. OPENSSL_SRTP_OPTION=crypto
  7602. OPENSSL_SRTP_DIR=${CRYPTO_DIR}
  7603. PBX_OPENSSL_SRTP=0
  7604. DAHDI_DESCRIP="DAHDI"
  7605. DAHDI_OPTION="dahdi"
  7606. PBX_DAHDI=0
  7607. # Check whether --with-dahdi was given.
  7608. if test "${with_dahdi+set}" = set; then :
  7609. withval=$with_dahdi;
  7610. case ${withval} in
  7611. n|no)
  7612. USE_DAHDI=no
  7613. # -1 is a magic value used by menuselect to know that the package
  7614. # was disabled, other than 'not found'
  7615. PBX_DAHDI=-1
  7616. ;;
  7617. y|ye|yes)
  7618. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7619. ;;
  7620. *)
  7621. DAHDI_DIR="${withval}"
  7622. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7623. ;;
  7624. esac
  7625. fi
  7626. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7627. FFMPEG_OPTION="avcodec"
  7628. PBX_FFMPEG=0
  7629. # Check whether --with-avcodec was given.
  7630. if test "${with_avcodec+set}" = set; then :
  7631. withval=$with_avcodec;
  7632. case ${withval} in
  7633. n|no)
  7634. USE_FFMPEG=no
  7635. # -1 is a magic value used by menuselect to know that the package
  7636. # was disabled, other than 'not found'
  7637. PBX_FFMPEG=-1
  7638. ;;
  7639. y|ye|yes)
  7640. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7641. ;;
  7642. *)
  7643. FFMPEG_DIR="${withval}"
  7644. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7645. ;;
  7646. esac
  7647. fi
  7648. GSM_DESCRIP="External GSM"
  7649. GSM_OPTION="gsm"
  7650. PBX_GSM=0
  7651. # Check whether --with-gsm was given.
  7652. if test "${with_gsm+set}" = set; then :
  7653. withval=$with_gsm;
  7654. case ${withval} in
  7655. n|no)
  7656. USE_GSM=no
  7657. # -1 is a magic value used by menuselect to know that the package
  7658. # was disabled, other than 'not found'
  7659. PBX_GSM=-1
  7660. ;;
  7661. y|ye|yes)
  7662. ac_mandatory_list="${ac_mandatory_list} GSM"
  7663. ;;
  7664. *)
  7665. GSM_DIR="${withval}"
  7666. ac_mandatory_list="${ac_mandatory_list} GSM"
  7667. ;;
  7668. esac
  7669. fi
  7670. ILBC_DESCRIP="System iLBC"
  7671. ILBC_OPTION="ilbc"
  7672. PBX_ILBC=0
  7673. # Check whether --with-ilbc was given.
  7674. if test "${with_ilbc+set}" = set; then :
  7675. withval=$with_ilbc;
  7676. case ${withval} in
  7677. n|no)
  7678. USE_ILBC=no
  7679. # -1 is a magic value used by menuselect to know that the package
  7680. # was disabled, other than 'not found'
  7681. PBX_ILBC=-1
  7682. ;;
  7683. y|ye|yes)
  7684. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7685. ;;
  7686. *)
  7687. ILBC_DIR="${withval}"
  7688. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7689. ;;
  7690. esac
  7691. fi
  7692. GTK2_DESCRIP="gtk2"
  7693. GTK2_OPTION="gtk2"
  7694. PBX_GTK2=0
  7695. # Check whether --with-gtk2 was given.
  7696. if test "${with_gtk2+set}" = set; then :
  7697. withval=$with_gtk2;
  7698. case ${withval} in
  7699. n|no)
  7700. USE_GTK2=no
  7701. # -1 is a magic value used by menuselect to know that the package
  7702. # was disabled, other than 'not found'
  7703. PBX_GTK2=-1
  7704. ;;
  7705. y|ye|yes)
  7706. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7707. ;;
  7708. *)
  7709. GTK2_DIR="${withval}"
  7710. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7711. ;;
  7712. esac
  7713. fi
  7714. GMIME_DESCRIP="GMime"
  7715. GMIME_OPTION="gmime"
  7716. PBX_GMIME=0
  7717. # Check whether --with-gmime was given.
  7718. if test "${with_gmime+set}" = set; then :
  7719. withval=$with_gmime;
  7720. case ${withval} in
  7721. n|no)
  7722. USE_GMIME=no
  7723. # -1 is a magic value used by menuselect to know that the package
  7724. # was disabled, other than 'not found'
  7725. PBX_GMIME=-1
  7726. ;;
  7727. y|ye|yes)
  7728. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7729. ;;
  7730. *)
  7731. GMIME_DIR="${withval}"
  7732. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7733. ;;
  7734. esac
  7735. fi
  7736. OPENH323_DESCRIP="OpenH323"
  7737. OPENH323_OPTION="h323"
  7738. PBX_OPENH323=0
  7739. # Check whether --with-h323 was given.
  7740. if test "${with_h323+set}" = set; then :
  7741. withval=$with_h323;
  7742. case ${withval} in
  7743. n|no)
  7744. USE_OPENH323=no
  7745. # -1 is a magic value used by menuselect to know that the package
  7746. # was disabled, other than 'not found'
  7747. PBX_OPENH323=-1
  7748. ;;
  7749. y|ye|yes)
  7750. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7751. ;;
  7752. *)
  7753. OPENH323_DIR="${withval}"
  7754. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7755. ;;
  7756. esac
  7757. fi
  7758. HOARD_DESCRIP="Hoard Memory Allocator"
  7759. HOARD_OPTION="hoard"
  7760. PBX_HOARD=0
  7761. # Check whether --with-hoard was given.
  7762. if test "${with_hoard+set}" = set; then :
  7763. withval=$with_hoard;
  7764. case ${withval} in
  7765. n|no)
  7766. USE_HOARD=no
  7767. # -1 is a magic value used by menuselect to know that the package
  7768. # was disabled, other than 'not found'
  7769. PBX_HOARD=-1
  7770. ;;
  7771. y|ye|yes)
  7772. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7773. ;;
  7774. *)
  7775. HOARD_DIR="${withval}"
  7776. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7777. ;;
  7778. esac
  7779. fi
  7780. ICAL_DESCRIP="iCal"
  7781. ICAL_OPTION="ical"
  7782. PBX_ICAL=0
  7783. # Check whether --with-ical was given.
  7784. if test "${with_ical+set}" = set; then :
  7785. withval=$with_ical;
  7786. case ${withval} in
  7787. n|no)
  7788. USE_ICAL=no
  7789. # -1 is a magic value used by menuselect to know that the package
  7790. # was disabled, other than 'not found'
  7791. PBX_ICAL=-1
  7792. ;;
  7793. y|ye|yes)
  7794. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7795. ;;
  7796. *)
  7797. ICAL_DIR="${withval}"
  7798. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7799. ;;
  7800. esac
  7801. fi
  7802. ICONV_DESCRIP="Iconv"
  7803. ICONV_OPTION="iconv"
  7804. PBX_ICONV=0
  7805. # Check whether --with-iconv was given.
  7806. if test "${with_iconv+set}" = set; then :
  7807. withval=$with_iconv;
  7808. case ${withval} in
  7809. n|no)
  7810. USE_ICONV=no
  7811. # -1 is a magic value used by menuselect to know that the package
  7812. # was disabled, other than 'not found'
  7813. PBX_ICONV=-1
  7814. ;;
  7815. y|ye|yes)
  7816. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7817. ;;
  7818. *)
  7819. ICONV_DIR="${withval}"
  7820. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7821. ;;
  7822. esac
  7823. fi
  7824. IKSEMEL_DESCRIP="Iksemel Jabber"
  7825. IKSEMEL_OPTION="iksemel"
  7826. PBX_IKSEMEL=0
  7827. # Check whether --with-iksemel was given.
  7828. if test "${with_iksemel+set}" = set; then :
  7829. withval=$with_iksemel;
  7830. case ${withval} in
  7831. n|no)
  7832. USE_IKSEMEL=no
  7833. # -1 is a magic value used by menuselect to know that the package
  7834. # was disabled, other than 'not found'
  7835. PBX_IKSEMEL=-1
  7836. ;;
  7837. y|ye|yes)
  7838. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7839. ;;
  7840. *)
  7841. IKSEMEL_DIR="${withval}"
  7842. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7843. ;;
  7844. esac
  7845. fi
  7846. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7847. IMAP_TK_OPTION="imap"
  7848. PBX_IMAP_TK=0
  7849. # Check whether --with-imap was given.
  7850. if test "${with_imap+set}" = set; then :
  7851. withval=$with_imap;
  7852. case ${withval} in
  7853. n|no)
  7854. USE_IMAP_TK=no
  7855. # -1 is a magic value used by menuselect to know that the package
  7856. # was disabled, other than 'not found'
  7857. PBX_IMAP_TK=-1
  7858. ;;
  7859. y|ye|yes)
  7860. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7861. ;;
  7862. *)
  7863. IMAP_TK_DIR="${withval}"
  7864. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7865. ;;
  7866. esac
  7867. fi
  7868. INOTIFY_DESCRIP="inotify support"
  7869. INOTIFY_OPTION="inotify"
  7870. PBX_INOTIFY=0
  7871. # Check whether --with-inotify was given.
  7872. if test "${with_inotify+set}" = set; then :
  7873. withval=$with_inotify;
  7874. case ${withval} in
  7875. n|no)
  7876. USE_INOTIFY=no
  7877. # -1 is a magic value used by menuselect to know that the package
  7878. # was disabled, other than 'not found'
  7879. PBX_INOTIFY=-1
  7880. ;;
  7881. y|ye|yes)
  7882. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7883. ;;
  7884. *)
  7885. INOTIFY_DIR="${withval}"
  7886. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7887. ;;
  7888. esac
  7889. fi
  7890. IODBC_DESCRIP="iODBC"
  7891. IODBC_OPTION="iodbc"
  7892. PBX_IODBC=0
  7893. # Check whether --with-iodbc was given.
  7894. if test "${with_iodbc+set}" = set; then :
  7895. withval=$with_iodbc;
  7896. case ${withval} in
  7897. n|no)
  7898. USE_IODBC=no
  7899. # -1 is a magic value used by menuselect to know that the package
  7900. # was disabled, other than 'not found'
  7901. PBX_IODBC=-1
  7902. ;;
  7903. y|ye|yes)
  7904. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7905. ;;
  7906. *)
  7907. IODBC_DIR="${withval}"
  7908. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7909. ;;
  7910. esac
  7911. fi
  7912. ISDNNET_DESCRIP="ISDN4Linux"
  7913. ISDNNET_OPTION="isdnnet"
  7914. PBX_ISDNNET=0
  7915. # Check whether --with-isdnnet was given.
  7916. if test "${with_isdnnet+set}" = set; then :
  7917. withval=$with_isdnnet;
  7918. case ${withval} in
  7919. n|no)
  7920. USE_ISDNNET=no
  7921. # -1 is a magic value used by menuselect to know that the package
  7922. # was disabled, other than 'not found'
  7923. PBX_ISDNNET=-1
  7924. ;;
  7925. y|ye|yes)
  7926. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7927. ;;
  7928. *)
  7929. ISDNNET_DIR="${withval}"
  7930. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7931. ;;
  7932. esac
  7933. fi
  7934. JACK_DESCRIP="Jack Audio Connection Kit"
  7935. JACK_OPTION="jack"
  7936. PBX_JACK=0
  7937. # Check whether --with-jack was given.
  7938. if test "${with_jack+set}" = set; then :
  7939. withval=$with_jack;
  7940. case ${withval} in
  7941. n|no)
  7942. USE_JACK=no
  7943. # -1 is a magic value used by menuselect to know that the package
  7944. # was disabled, other than 'not found'
  7945. PBX_JACK=-1
  7946. ;;
  7947. y|ye|yes)
  7948. ac_mandatory_list="${ac_mandatory_list} JACK"
  7949. ;;
  7950. *)
  7951. JACK_DIR="${withval}"
  7952. ac_mandatory_list="${ac_mandatory_list} JACK"
  7953. ;;
  7954. esac
  7955. fi
  7956. KQUEUE_DESCRIP="kqueue support"
  7957. KQUEUE_OPTION="kqueue"
  7958. PBX_KQUEUE=0
  7959. # Check whether --with-kqueue was given.
  7960. if test "${with_kqueue+set}" = set; then :
  7961. withval=$with_kqueue;
  7962. case ${withval} in
  7963. n|no)
  7964. USE_KQUEUE=no
  7965. # -1 is a magic value used by menuselect to know that the package
  7966. # was disabled, other than 'not found'
  7967. PBX_KQUEUE=-1
  7968. ;;
  7969. y|ye|yes)
  7970. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7971. ;;
  7972. *)
  7973. KQUEUE_DIR="${withval}"
  7974. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7975. ;;
  7976. esac
  7977. fi
  7978. LDAP_DESCRIP="OpenLDAP"
  7979. LDAP_OPTION="ldap"
  7980. PBX_LDAP=0
  7981. # Check whether --with-ldap was given.
  7982. if test "${with_ldap+set}" = set; then :
  7983. withval=$with_ldap;
  7984. case ${withval} in
  7985. n|no)
  7986. USE_LDAP=no
  7987. # -1 is a magic value used by menuselect to know that the package
  7988. # was disabled, other than 'not found'
  7989. PBX_LDAP=-1
  7990. ;;
  7991. y|ye|yes)
  7992. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7993. ;;
  7994. *)
  7995. LDAP_DIR="${withval}"
  7996. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7997. ;;
  7998. esac
  7999. fi
  8000. # Check whether --with-libcurl was given.
  8001. if test "${with_libcurl+set}" = set; then :
  8002. withval=$with_libcurl; _libcurl_with=$withval
  8003. else
  8004. _libcurl_with=yes
  8005. fi
  8006. if test "$_libcurl_with" != "no" ; then
  8007. for ac_prog in gawk mawk nawk awk
  8008. do
  8009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8010. set dummy $ac_prog; ac_word=$2
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8012. $as_echo_n "checking for $ac_word... " >&6; }
  8013. if ${ac_cv_prog_AWK+:} false; then :
  8014. $as_echo_n "(cached) " >&6
  8015. else
  8016. if test -n "$AWK"; then
  8017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8018. else
  8019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8020. for as_dir in $PATH
  8021. do
  8022. IFS=$as_save_IFS
  8023. test -z "$as_dir" && as_dir=.
  8024. for ac_exec_ext in '' $ac_executable_extensions; do
  8025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8026. ac_cv_prog_AWK="$ac_prog"
  8027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8028. break 2
  8029. fi
  8030. done
  8031. done
  8032. IFS=$as_save_IFS
  8033. fi
  8034. fi
  8035. AWK=$ac_cv_prog_AWK
  8036. if test -n "$AWK"; then
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8038. $as_echo "$AWK" >&6; }
  8039. else
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8041. $as_echo "no" >&6; }
  8042. fi
  8043. test -n "$AWK" && break
  8044. done
  8045. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  8046. _libcurl_try_link=yes
  8047. if test -d "$_libcurl_with" ; then
  8048. CURL_INCLUDE="-I$withval/include"
  8049. _libcurl_ldflags="-L$withval/lib"
  8050. # Extract the first word of "curl-config", so it can be a program name with args.
  8051. set dummy curl-config; ac_word=$2
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8053. $as_echo_n "checking for $ac_word... " >&6; }
  8054. if ${ac_cv_path__libcurl_config+:} false; then :
  8055. $as_echo_n "(cached) " >&6
  8056. else
  8057. case $_libcurl_config in
  8058. [\\/]* | ?:[\\/]*)
  8059. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8060. ;;
  8061. *)
  8062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8063. for as_dir in "$withval/bin"
  8064. do
  8065. IFS=$as_save_IFS
  8066. test -z "$as_dir" && as_dir=.
  8067. for ac_exec_ext in '' $ac_executable_extensions; do
  8068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8069. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8071. break 2
  8072. fi
  8073. done
  8074. done
  8075. IFS=$as_save_IFS
  8076. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8077. ;;
  8078. esac
  8079. fi
  8080. _libcurl_config=$ac_cv_path__libcurl_config
  8081. if test -n "$_libcurl_config"; then
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8083. $as_echo "$_libcurl_config" >&6; }
  8084. else
  8085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8086. $as_echo "no" >&6; }
  8087. fi
  8088. else
  8089. # Extract the first word of "curl-config", so it can be a program name with args.
  8090. set dummy curl-config; ac_word=$2
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8092. $as_echo_n "checking for $ac_word... " >&6; }
  8093. if ${ac_cv_path__libcurl_config+:} false; then :
  8094. $as_echo_n "(cached) " >&6
  8095. else
  8096. case $_libcurl_config in
  8097. [\\/]* | ?:[\\/]*)
  8098. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8099. ;;
  8100. *)
  8101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8102. for as_dir in $PATH
  8103. do
  8104. IFS=$as_save_IFS
  8105. test -z "$as_dir" && as_dir=.
  8106. for ac_exec_ext in '' $ac_executable_extensions; do
  8107. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8108. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8110. break 2
  8111. fi
  8112. done
  8113. done
  8114. IFS=$as_save_IFS
  8115. ;;
  8116. esac
  8117. fi
  8118. _libcurl_config=$ac_cv_path__libcurl_config
  8119. if test -n "$_libcurl_config"; then
  8120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8121. $as_echo "$_libcurl_config" >&6; }
  8122. else
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8124. $as_echo "no" >&6; }
  8125. fi
  8126. fi
  8127. if test x$_libcurl_config != "x" ; then
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  8129. $as_echo_n "checking for the version of libcurl... " >&6; }
  8130. if ${libcurl_cv_lib_curl_version+:} false; then :
  8131. $as_echo_n "(cached) " >&6
  8132. else
  8133. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8134. fi
  8135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  8136. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8137. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8138. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8139. if test $_libcurl_wanted -gt 0 ; then
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  8141. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8142. if ${libcurl_cv_lib_version_ok+:} false; then :
  8143. $as_echo_n "(cached) " >&6
  8144. else
  8145. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8146. libcurl_cv_lib_version_ok=yes
  8147. else
  8148. libcurl_cv_lib_version_ok=no
  8149. fi
  8150. fi
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  8152. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8153. fi
  8154. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8155. if test x"$CURL_INCLUDE" = "x" ; then
  8156. CURL_INCLUDE=`$_libcurl_config --cflags`
  8157. fi
  8158. if test x"$CURL_LIB" = "x" ; then
  8159. CURL_LIB=`$_libcurl_config --libs`
  8160. # This is so silly, but Apple actually has a bug in their
  8161. # curl-config script. Fixed in Tiger, but there are still
  8162. # lots of Panther installs around.
  8163. case "${host}" in
  8164. powerpc-apple-darwin7*)
  8165. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8166. ;;
  8167. esac
  8168. fi
  8169. # All curl-config scripts support --feature
  8170. _libcurl_features=`$_libcurl_config --feature`
  8171. # Is it modern enough to have --protocols? (7.12.4)
  8172. if test $_libcurl_version -ge 461828 ; then
  8173. _libcurl_protocols=`$_libcurl_config --protocols`
  8174. fi
  8175. else
  8176. _libcurl_try_link=no
  8177. fi
  8178. unset _libcurl_wanted
  8179. fi
  8180. if test $_libcurl_try_link = yes ; then
  8181. # we didn't find curl-config, so let's see if the user-supplied
  8182. # link line (or failing that, "-lcurl") is enough.
  8183. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  8185. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8186. if ${libcurl_cv_lib_curl_usable+:} false; then :
  8187. $as_echo_n "(cached) " >&6
  8188. else
  8189. _libcurl_save_cppflags=$CPPFLAGS
  8190. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8191. _libcurl_save_libs=$LIBS
  8192. LIBS="$CURL_LIB $LIBS"
  8193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8194. /* end confdefs.h. */
  8195. #include <curl/curl.h>
  8196. int
  8197. main ()
  8198. {
  8199. /* Try and use a few common options to force a failure if we are
  8200. missing symbols or can't link. */
  8201. int x;
  8202. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8203. x=CURL_ERROR_SIZE;
  8204. x=CURLOPT_WRITEFUNCTION;
  8205. x=CURLOPT_FILE;
  8206. x=CURLOPT_ERRORBUFFER;
  8207. x=CURLOPT_STDERR;
  8208. x=CURLOPT_VERBOSE;
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. if ac_fn_c_try_link "$LINENO"; then :
  8214. libcurl_cv_lib_curl_usable=yes
  8215. else
  8216. libcurl_cv_lib_curl_usable=no
  8217. fi
  8218. rm -f core conftest.err conftest.$ac_objext \
  8219. conftest$ac_exeext conftest.$ac_ext
  8220. CPPFLAGS=$_libcurl_save_cppflags
  8221. LIBS=$_libcurl_save_libs
  8222. unset _libcurl_save_cppflags
  8223. unset _libcurl_save_libs
  8224. fi
  8225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  8226. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8227. if test $libcurl_cv_lib_curl_usable = yes ; then
  8228. # Does curl_free() exist in this version of libcurl?
  8229. # If not, fake it with free()
  8230. _libcurl_save_cppflags=$CPPFLAGS
  8231. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8232. _libcurl_save_libs=$LIBS
  8233. LIBS="$LIBS $CURL_LIB"
  8234. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  8235. if test "x$ac_cv_func_curl_free" = xyes; then :
  8236. else
  8237. $as_echo "#define curl_free free" >>confdefs.h
  8238. fi
  8239. CPPFLAGS=$_libcurl_save_cppflags
  8240. LIBS=$_libcurl_save_libs
  8241. unset _libcurl_save_cppflags
  8242. unset _libcurl_save_libs
  8243. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  8244. PBX_CURL=1
  8245. for _libcurl_feature in $_libcurl_features ; do
  8246. cat >>confdefs.h <<_ACEOF
  8247. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8248. _ACEOF
  8249. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8250. done
  8251. if test "x$_libcurl_protocols" = "x" ; then
  8252. # We don't have --protocols, so just assume that all
  8253. # protocols are available
  8254. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8255. if test x$libcurl_feature_SSL = xyes ; then
  8256. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8257. # FTPS wasn't standards-compliant until version
  8258. # 7.11.0
  8259. if test $_libcurl_version -ge 461568; then
  8260. _libcurl_protocols="$_libcurl_protocols FTPS"
  8261. fi
  8262. fi
  8263. fi
  8264. for _libcurl_protocol in $_libcurl_protocols ; do
  8265. cat >>confdefs.h <<_ACEOF
  8266. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8267. _ACEOF
  8268. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8269. done
  8270. else
  8271. unset CURL_LIB
  8272. unset CURL_INCLUDE
  8273. PBX_CURL=0
  8274. fi
  8275. fi
  8276. unset _libcurl_try_link
  8277. unset _libcurl_version_parse
  8278. unset _libcurl_config
  8279. unset _libcurl_feature
  8280. unset _libcurl_features
  8281. unset _libcurl_protocol
  8282. unset _libcurl_protocols
  8283. unset _libcurl_version
  8284. unset _libcurl_ldflags
  8285. fi
  8286. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8287. # This is the IF-NO path
  8288. :
  8289. else
  8290. # This is the IF-YES path
  8291. :
  8292. fi
  8293. unset _libcurl_with
  8294. LIBEDIT_DESCRIP="NetBSD Editline library"
  8295. LIBEDIT_OPTION="libedit"
  8296. PBX_LIBEDIT=0
  8297. # Check whether --with-libedit was given.
  8298. if test "${with_libedit+set}" = set; then :
  8299. withval=$with_libedit;
  8300. case ${withval} in
  8301. n|no)
  8302. USE_LIBEDIT=no
  8303. # -1 is a magic value used by menuselect to know that the package
  8304. # was disabled, other than 'not found'
  8305. PBX_LIBEDIT=-1
  8306. ;;
  8307. y|ye|yes)
  8308. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8309. ;;
  8310. *)
  8311. LIBEDIT_DIR="${withval}"
  8312. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8313. ;;
  8314. esac
  8315. fi
  8316. LIBXML2_DESCRIP="LibXML2"
  8317. LIBXML2_OPTION="libxml2"
  8318. PBX_LIBXML2=0
  8319. # Check whether --with-libxml2 was given.
  8320. if test "${with_libxml2+set}" = set; then :
  8321. withval=$with_libxml2;
  8322. case ${withval} in
  8323. n|no)
  8324. USE_LIBXML2=no
  8325. # -1 is a magic value used by menuselect to know that the package
  8326. # was disabled, other than 'not found'
  8327. PBX_LIBXML2=-1
  8328. ;;
  8329. y|ye|yes)
  8330. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8331. ;;
  8332. *)
  8333. LIBXML2_DIR="${withval}"
  8334. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8335. ;;
  8336. esac
  8337. fi
  8338. LTDL_DESCRIP="libtool"
  8339. LTDL_OPTION="ltdl"
  8340. PBX_LTDL=0
  8341. # Check whether --with-ltdl was given.
  8342. if test "${with_ltdl+set}" = set; then :
  8343. withval=$with_ltdl;
  8344. case ${withval} in
  8345. n|no)
  8346. USE_LTDL=no
  8347. # -1 is a magic value used by menuselect to know that the package
  8348. # was disabled, other than 'not found'
  8349. PBX_LTDL=-1
  8350. ;;
  8351. y|ye|yes)
  8352. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8353. ;;
  8354. *)
  8355. LTDL_DIR="${withval}"
  8356. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8357. ;;
  8358. esac
  8359. fi
  8360. LUA_DESCRIP="Lua"
  8361. LUA_OPTION="lua"
  8362. PBX_LUA=0
  8363. # Check whether --with-lua was given.
  8364. if test "${with_lua+set}" = set; then :
  8365. withval=$with_lua;
  8366. case ${withval} in
  8367. n|no)
  8368. USE_LUA=no
  8369. # -1 is a magic value used by menuselect to know that the package
  8370. # was disabled, other than 'not found'
  8371. PBX_LUA=-1
  8372. ;;
  8373. y|ye|yes)
  8374. ac_mandatory_list="${ac_mandatory_list} LUA"
  8375. ;;
  8376. *)
  8377. LUA_DIR="${withval}"
  8378. ac_mandatory_list="${ac_mandatory_list} LUA"
  8379. ;;
  8380. esac
  8381. fi
  8382. MISDN_DESCRIP="mISDN user"
  8383. MISDN_OPTION="misdn"
  8384. PBX_MISDN=0
  8385. # Check whether --with-misdn was given.
  8386. if test "${with_misdn+set}" = set; then :
  8387. withval=$with_misdn;
  8388. case ${withval} in
  8389. n|no)
  8390. USE_MISDN=no
  8391. # -1 is a magic value used by menuselect to know that the package
  8392. # was disabled, other than 'not found'
  8393. PBX_MISDN=-1
  8394. ;;
  8395. y|ye|yes)
  8396. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8397. ;;
  8398. *)
  8399. MISDN_DIR="${withval}"
  8400. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8401. ;;
  8402. esac
  8403. fi
  8404. MYSQLCLIENT_DESCRIP="MySQL client"
  8405. MYSQLCLIENT_OPTION="mysqlclient"
  8406. PBX_MYSQLCLIENT=0
  8407. # Check whether --with-mysqlclient was given.
  8408. if test "${with_mysqlclient+set}" = set; then :
  8409. withval=$with_mysqlclient;
  8410. case ${withval} in
  8411. n|no)
  8412. USE_MYSQLCLIENT=no
  8413. # -1 is a magic value used by menuselect to know that the package
  8414. # was disabled, other than 'not found'
  8415. PBX_MYSQLCLIENT=-1
  8416. ;;
  8417. y|ye|yes)
  8418. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8419. ;;
  8420. *)
  8421. MYSQLCLIENT_DIR="${withval}"
  8422. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8423. ;;
  8424. esac
  8425. fi
  8426. NBS_DESCRIP="Network Broadcast Sound"
  8427. NBS_OPTION="nbs"
  8428. PBX_NBS=0
  8429. # Check whether --with-nbs was given.
  8430. if test "${with_nbs+set}" = set; then :
  8431. withval=$with_nbs;
  8432. case ${withval} in
  8433. n|no)
  8434. USE_NBS=no
  8435. # -1 is a magic value used by menuselect to know that the package
  8436. # was disabled, other than 'not found'
  8437. PBX_NBS=-1
  8438. ;;
  8439. y|ye|yes)
  8440. ac_mandatory_list="${ac_mandatory_list} NBS"
  8441. ;;
  8442. *)
  8443. NBS_DIR="${withval}"
  8444. ac_mandatory_list="${ac_mandatory_list} NBS"
  8445. ;;
  8446. esac
  8447. fi
  8448. NCURSES_DESCRIP="ncurses"
  8449. NCURSES_OPTION="ncurses"
  8450. PBX_NCURSES=0
  8451. # Check whether --with-ncurses was given.
  8452. if test "${with_ncurses+set}" = set; then :
  8453. withval=$with_ncurses;
  8454. case ${withval} in
  8455. n|no)
  8456. USE_NCURSES=no
  8457. # -1 is a magic value used by menuselect to know that the package
  8458. # was disabled, other than 'not found'
  8459. PBX_NCURSES=-1
  8460. ;;
  8461. y|ye|yes)
  8462. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8463. ;;
  8464. *)
  8465. NCURSES_DIR="${withval}"
  8466. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8467. ;;
  8468. esac
  8469. fi
  8470. NEON_DESCRIP="neon"
  8471. NEON_OPTION="neon"
  8472. PBX_NEON=0
  8473. # Check whether --with-neon was given.
  8474. if test "${with_neon+set}" = set; then :
  8475. withval=$with_neon;
  8476. case ${withval} in
  8477. n|no)
  8478. USE_NEON=no
  8479. # -1 is a magic value used by menuselect to know that the package
  8480. # was disabled, other than 'not found'
  8481. PBX_NEON=-1
  8482. ;;
  8483. y|ye|yes)
  8484. ac_mandatory_list="${ac_mandatory_list} NEON"
  8485. ;;
  8486. *)
  8487. NEON_DIR="${withval}"
  8488. ac_mandatory_list="${ac_mandatory_list} NEON"
  8489. ;;
  8490. esac
  8491. fi
  8492. NEON29_DESCRIP="neon29"
  8493. NEON29_OPTION="neon29"
  8494. PBX_NEON29=0
  8495. # Check whether --with-neon29 was given.
  8496. if test "${with_neon29+set}" = set; then :
  8497. withval=$with_neon29;
  8498. case ${withval} in
  8499. n|no)
  8500. USE_NEON29=no
  8501. # -1 is a magic value used by menuselect to know that the package
  8502. # was disabled, other than 'not found'
  8503. PBX_NEON29=-1
  8504. ;;
  8505. y|ye|yes)
  8506. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8507. ;;
  8508. *)
  8509. NEON29_DIR="${withval}"
  8510. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8511. ;;
  8512. esac
  8513. fi
  8514. NETSNMP_DESCRIP="Net-SNMP"
  8515. NETSNMP_OPTION="netsnmp"
  8516. PBX_NETSNMP=0
  8517. # Check whether --with-netsnmp was given.
  8518. if test "${with_netsnmp+set}" = set; then :
  8519. withval=$with_netsnmp;
  8520. case ${withval} in
  8521. n|no)
  8522. USE_NETSNMP=no
  8523. # -1 is a magic value used by menuselect to know that the package
  8524. # was disabled, other than 'not found'
  8525. PBX_NETSNMP=-1
  8526. ;;
  8527. y|ye|yes)
  8528. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8529. ;;
  8530. *)
  8531. NETSNMP_DIR="${withval}"
  8532. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8533. ;;
  8534. esac
  8535. fi
  8536. NEWT_DESCRIP="newt"
  8537. NEWT_OPTION="newt"
  8538. PBX_NEWT=0
  8539. # Check whether --with-newt was given.
  8540. if test "${with_newt+set}" = set; then :
  8541. withval=$with_newt;
  8542. case ${withval} in
  8543. n|no)
  8544. USE_NEWT=no
  8545. # -1 is a magic value used by menuselect to know that the package
  8546. # was disabled, other than 'not found'
  8547. PBX_NEWT=-1
  8548. ;;
  8549. y|ye|yes)
  8550. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8551. ;;
  8552. *)
  8553. NEWT_DIR="${withval}"
  8554. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8555. ;;
  8556. esac
  8557. fi
  8558. OGG_DESCRIP="OGG"
  8559. OGG_OPTION="ogg"
  8560. PBX_OGG=0
  8561. # Check whether --with-ogg was given.
  8562. if test "${with_ogg+set}" = set; then :
  8563. withval=$with_ogg;
  8564. case ${withval} in
  8565. n|no)
  8566. USE_OGG=no
  8567. # -1 is a magic value used by menuselect to know that the package
  8568. # was disabled, other than 'not found'
  8569. PBX_OGG=-1
  8570. ;;
  8571. y|ye|yes)
  8572. ac_mandatory_list="${ac_mandatory_list} OGG"
  8573. ;;
  8574. *)
  8575. OGG_DIR="${withval}"
  8576. ac_mandatory_list="${ac_mandatory_list} OGG"
  8577. ;;
  8578. esac
  8579. fi
  8580. OPENR2_DESCRIP="MFR2"
  8581. OPENR2_OPTION="openr2"
  8582. PBX_OPENR2=0
  8583. # Check whether --with-openr2 was given.
  8584. if test "${with_openr2+set}" = set; then :
  8585. withval=$with_openr2;
  8586. case ${withval} in
  8587. n|no)
  8588. USE_OPENR2=no
  8589. # -1 is a magic value used by menuselect to know that the package
  8590. # was disabled, other than 'not found'
  8591. PBX_OPENR2=-1
  8592. ;;
  8593. y|ye|yes)
  8594. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8595. ;;
  8596. *)
  8597. OPENR2_DIR="${withval}"
  8598. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8599. ;;
  8600. esac
  8601. fi
  8602. OSPTK_DESCRIP="OSP Toolkit"
  8603. OSPTK_OPTION="osptk"
  8604. PBX_OSPTK=0
  8605. # Check whether --with-osptk was given.
  8606. if test "${with_osptk+set}" = set; then :
  8607. withval=$with_osptk;
  8608. case ${withval} in
  8609. n|no)
  8610. USE_OSPTK=no
  8611. # -1 is a magic value used by menuselect to know that the package
  8612. # was disabled, other than 'not found'
  8613. PBX_OSPTK=-1
  8614. ;;
  8615. y|ye|yes)
  8616. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8617. ;;
  8618. *)
  8619. OSPTK_DIR="${withval}"
  8620. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8621. ;;
  8622. esac
  8623. fi
  8624. OSS_DESCRIP="Open Sound System"
  8625. OSS_OPTION="oss"
  8626. PBX_OSS=0
  8627. # Check whether --with-oss was given.
  8628. if test "${with_oss+set}" = set; then :
  8629. withval=$with_oss;
  8630. case ${withval} in
  8631. n|no)
  8632. USE_OSS=no
  8633. # -1 is a magic value used by menuselect to know that the package
  8634. # was disabled, other than 'not found'
  8635. PBX_OSS=-1
  8636. ;;
  8637. y|ye|yes)
  8638. ac_mandatory_list="${ac_mandatory_list} OSS"
  8639. ;;
  8640. *)
  8641. OSS_DIR="${withval}"
  8642. ac_mandatory_list="${ac_mandatory_list} OSS"
  8643. ;;
  8644. esac
  8645. fi
  8646. PGSQL_DESCRIP="PostgreSQL"
  8647. PGSQL_OPTION="postgres"
  8648. PBX_PGSQL=0
  8649. # Check whether --with-postgres was given.
  8650. if test "${with_postgres+set}" = set; then :
  8651. withval=$with_postgres;
  8652. case ${withval} in
  8653. n|no)
  8654. USE_PGSQL=no
  8655. # -1 is a magic value used by menuselect to know that the package
  8656. # was disabled, other than 'not found'
  8657. PBX_PGSQL=-1
  8658. ;;
  8659. y|ye|yes)
  8660. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8661. ;;
  8662. *)
  8663. PGSQL_DIR="${withval}"
  8664. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8665. ;;
  8666. esac
  8667. fi
  8668. POPT_DESCRIP="popt"
  8669. POPT_OPTION="popt"
  8670. PBX_POPT=0
  8671. # Check whether --with-popt was given.
  8672. if test "${with_popt+set}" = set; then :
  8673. withval=$with_popt;
  8674. case ${withval} in
  8675. n|no)
  8676. USE_POPT=no
  8677. # -1 is a magic value used by menuselect to know that the package
  8678. # was disabled, other than 'not found'
  8679. PBX_POPT=-1
  8680. ;;
  8681. y|ye|yes)
  8682. ac_mandatory_list="${ac_mandatory_list} POPT"
  8683. ;;
  8684. *)
  8685. POPT_DIR="${withval}"
  8686. ac_mandatory_list="${ac_mandatory_list} POPT"
  8687. ;;
  8688. esac
  8689. fi
  8690. PORTAUDIO_DESCRIP="PortAudio"
  8691. PORTAUDIO_OPTION="portaudio"
  8692. PBX_PORTAUDIO=0
  8693. # Check whether --with-portaudio was given.
  8694. if test "${with_portaudio+set}" = set; then :
  8695. withval=$with_portaudio;
  8696. case ${withval} in
  8697. n|no)
  8698. USE_PORTAUDIO=no
  8699. # -1 is a magic value used by menuselect to know that the package
  8700. # was disabled, other than 'not found'
  8701. PBX_PORTAUDIO=-1
  8702. ;;
  8703. y|ye|yes)
  8704. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8705. ;;
  8706. *)
  8707. PORTAUDIO_DIR="${withval}"
  8708. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8709. ;;
  8710. esac
  8711. fi
  8712. PRI_DESCRIP="ISDN PRI"
  8713. PRI_OPTION="pri"
  8714. PBX_PRI=0
  8715. # Check whether --with-pri was given.
  8716. if test "${with_pri+set}" = set; then :
  8717. withval=$with_pri;
  8718. case ${withval} in
  8719. n|no)
  8720. USE_PRI=no
  8721. # -1 is a magic value used by menuselect to know that the package
  8722. # was disabled, other than 'not found'
  8723. PBX_PRI=-1
  8724. ;;
  8725. y|ye|yes)
  8726. ac_mandatory_list="${ac_mandatory_list} PRI"
  8727. ;;
  8728. *)
  8729. PRI_DIR="${withval}"
  8730. ac_mandatory_list="${ac_mandatory_list} PRI"
  8731. ;;
  8732. esac
  8733. fi
  8734. PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
  8735. PRI_SETUP_ACK_INBAND_OPTION=pri
  8736. PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
  8737. PBX_PRI_SETUP_ACK_INBAND=0
  8738. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  8739. PRI_L2_PERSISTENCE_OPTION=pri
  8740. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  8741. PBX_PRI_L2_PERSISTENCE=0
  8742. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  8743. PRI_DATETIME_SEND_OPTION=pri
  8744. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  8745. PBX_PRI_DATETIME_SEND=0
  8746. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  8747. PRI_MWI_V2_OPTION=pri
  8748. PRI_MWI_V2_DIR=${PRI_DIR}
  8749. PBX_PRI_MWI_V2=0
  8750. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  8751. PRI_DISPLAY_TEXT_OPTION=pri
  8752. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  8753. PBX_PRI_DISPLAY_TEXT=0
  8754. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  8755. PRI_MWI_OPTION=pri
  8756. PRI_MWI_DIR=${PRI_DIR}
  8757. PBX_PRI_MWI=0
  8758. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  8759. PRI_MCID_OPTION=pri
  8760. PRI_MCID_DIR=${PRI_DIR}
  8761. PBX_PRI_MCID=0
  8762. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  8763. PRI_CALL_WAITING_OPTION=pri
  8764. PRI_CALL_WAITING_DIR=${PRI_DIR}
  8765. PBX_PRI_CALL_WAITING=0
  8766. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  8767. PRI_AOC_EVENTS_OPTION=pri
  8768. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  8769. PBX_PRI_AOC_EVENTS=0
  8770. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  8771. PRI_TRANSFER_OPTION=pri
  8772. PRI_TRANSFER_DIR=${PRI_DIR}
  8773. PBX_PRI_TRANSFER=0
  8774. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  8775. PRI_CCSS_OPTION=pri
  8776. PRI_CCSS_DIR=${PRI_DIR}
  8777. PBX_PRI_CCSS=0
  8778. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  8779. PRI_HANGUP_FIX_OPTION=pri
  8780. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  8781. PBX_PRI_HANGUP_FIX=0
  8782. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  8783. PRI_SUBADDR_OPTION=pri
  8784. PRI_SUBADDR_DIR=${PRI_DIR}
  8785. PBX_PRI_SUBADDR=0
  8786. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  8787. PRI_CALL_HOLD_OPTION=pri
  8788. PRI_CALL_HOLD_DIR=${PRI_DIR}
  8789. PBX_PRI_CALL_HOLD=0
  8790. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  8791. PRI_CALL_REROUTING_OPTION=pri
  8792. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  8793. PBX_PRI_CALL_REROUTING=0
  8794. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  8795. PRI_SETUP_KEYPAD_OPTION=pri
  8796. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  8797. PBX_PRI_SETUP_KEYPAD=0
  8798. # ------------------------------------v
  8799. # TODO: The code can be changed to always include these features now.
  8800. # These features will always be present if pri_connected_line_update is available.
  8801. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  8802. PRI_INBANDDISCONNECT_OPTION=pri
  8803. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  8804. PBX_PRI_INBANDDISCONNECT=0
  8805. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  8806. PRI_PROG_W_CAUSE_OPTION=pri
  8807. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  8808. PBX_PRI_PROG_W_CAUSE=0
  8809. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  8810. PRI_SERVICE_MESSAGES_OPTION=pri
  8811. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  8812. PBX_PRI_SERVICE_MESSAGES=0
  8813. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  8814. PRI_REVERSE_CHARGE_OPTION=pri
  8815. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  8816. PBX_PRI_REVERSE_CHARGE=0
  8817. # ------------------------------------^
  8818. PWLIB_DESCRIP="PWlib"
  8819. PWLIB_OPTION="pwlib"
  8820. PBX_PWLIB=0
  8821. # Check whether --with-pwlib was given.
  8822. if test "${with_pwlib+set}" = set; then :
  8823. withval=$with_pwlib;
  8824. case ${withval} in
  8825. n|no)
  8826. USE_PWLIB=no
  8827. # -1 is a magic value used by menuselect to know that the package
  8828. # was disabled, other than 'not found'
  8829. PBX_PWLIB=-1
  8830. ;;
  8831. y|ye|yes)
  8832. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8833. ;;
  8834. *)
  8835. PWLIB_DIR="${withval}"
  8836. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8837. ;;
  8838. esac
  8839. fi
  8840. RADIUS_DESCRIP="Radius Client"
  8841. RADIUS_OPTION="radius"
  8842. PBX_RADIUS=0
  8843. # Check whether --with-radius was given.
  8844. if test "${with_radius+set}" = set; then :
  8845. withval=$with_radius;
  8846. case ${withval} in
  8847. n|no)
  8848. USE_RADIUS=no
  8849. # -1 is a magic value used by menuselect to know that the package
  8850. # was disabled, other than 'not found'
  8851. PBX_RADIUS=-1
  8852. ;;
  8853. y|ye|yes)
  8854. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8855. ;;
  8856. *)
  8857. RADIUS_DIR="${withval}"
  8858. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8859. ;;
  8860. esac
  8861. fi
  8862. RESAMPLE_DESCRIP="LIBRESAMPLE"
  8863. RESAMPLE_OPTION="resample"
  8864. PBX_RESAMPLE=0
  8865. # Check whether --with-resample was given.
  8866. if test "${with_resample+set}" = set; then :
  8867. withval=$with_resample;
  8868. case ${withval} in
  8869. n|no)
  8870. USE_RESAMPLE=no
  8871. # -1 is a magic value used by menuselect to know that the package
  8872. # was disabled, other than 'not found'
  8873. PBX_RESAMPLE=-1
  8874. ;;
  8875. y|ye|yes)
  8876. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8877. ;;
  8878. *)
  8879. RESAMPLE_DIR="${withval}"
  8880. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8881. ;;
  8882. esac
  8883. fi
  8884. SDL_DESCRIP="Sdl"
  8885. SDL_OPTION="sdl"
  8886. PBX_SDL=0
  8887. # Check whether --with-sdl was given.
  8888. if test "${with_sdl+set}" = set; then :
  8889. withval=$with_sdl;
  8890. case ${withval} in
  8891. n|no)
  8892. USE_SDL=no
  8893. # -1 is a magic value used by menuselect to know that the package
  8894. # was disabled, other than 'not found'
  8895. PBX_SDL=-1
  8896. ;;
  8897. y|ye|yes)
  8898. ac_mandatory_list="${ac_mandatory_list} SDL"
  8899. ;;
  8900. *)
  8901. SDL_DIR="${withval}"
  8902. ac_mandatory_list="${ac_mandatory_list} SDL"
  8903. ;;
  8904. esac
  8905. fi
  8906. SDL_IMAGE_DESCRIP="Sdl Image"
  8907. SDL_IMAGE_OPTION="SDL_image"
  8908. PBX_SDL_IMAGE=0
  8909. # Check whether --with-SDL_image was given.
  8910. if test "${with_SDL_image+set}" = set; then :
  8911. withval=$with_SDL_image;
  8912. case ${withval} in
  8913. n|no)
  8914. USE_SDL_IMAGE=no
  8915. # -1 is a magic value used by menuselect to know that the package
  8916. # was disabled, other than 'not found'
  8917. PBX_SDL_IMAGE=-1
  8918. ;;
  8919. y|ye|yes)
  8920. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8921. ;;
  8922. *)
  8923. SDL_IMAGE_DIR="${withval}"
  8924. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8925. ;;
  8926. esac
  8927. fi
  8928. # Check whether --with-sounds-cache was given.
  8929. if test "${with_sounds_cache+set}" = set; then :
  8930. withval=$with_sounds_cache;
  8931. case ${withval} in
  8932. n|no)
  8933. unset SOUNDS_CACHE_DIR
  8934. ;;
  8935. *)
  8936. if test "x${withval}" = "x"; then
  8937. :
  8938. else
  8939. SOUNDS_CACHE_DIR="${withval}"
  8940. fi
  8941. ;;
  8942. esac
  8943. else
  8944. :
  8945. fi
  8946. SPANDSP_DESCRIP="SPANDSP"
  8947. SPANDSP_OPTION="spandsp"
  8948. PBX_SPANDSP=0
  8949. # Check whether --with-spandsp was given.
  8950. if test "${with_spandsp+set}" = set; then :
  8951. withval=$with_spandsp;
  8952. case ${withval} in
  8953. n|no)
  8954. USE_SPANDSP=no
  8955. # -1 is a magic value used by menuselect to know that the package
  8956. # was disabled, other than 'not found'
  8957. PBX_SPANDSP=-1
  8958. ;;
  8959. y|ye|yes)
  8960. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8961. ;;
  8962. *)
  8963. SPANDSP_DIR="${withval}"
  8964. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8965. ;;
  8966. esac
  8967. fi
  8968. SS7_DESCRIP="ISDN SS7"
  8969. SS7_OPTION="ss7"
  8970. PBX_SS7=0
  8971. # Check whether --with-ss7 was given.
  8972. if test "${with_ss7+set}" = set; then :
  8973. withval=$with_ss7;
  8974. case ${withval} in
  8975. n|no)
  8976. USE_SS7=no
  8977. # -1 is a magic value used by menuselect to know that the package
  8978. # was disabled, other than 'not found'
  8979. PBX_SS7=-1
  8980. ;;
  8981. y|ye|yes)
  8982. ac_mandatory_list="${ac_mandatory_list} SS7"
  8983. ;;
  8984. *)
  8985. SS7_DIR="${withval}"
  8986. ac_mandatory_list="${ac_mandatory_list} SS7"
  8987. ;;
  8988. esac
  8989. fi
  8990. SPEEX_DESCRIP="Speex"
  8991. SPEEX_OPTION="speex"
  8992. PBX_SPEEX=0
  8993. # Check whether --with-speex was given.
  8994. if test "${with_speex+set}" = set; then :
  8995. withval=$with_speex;
  8996. case ${withval} in
  8997. n|no)
  8998. USE_SPEEX=no
  8999. # -1 is a magic value used by menuselect to know that the package
  9000. # was disabled, other than 'not found'
  9001. PBX_SPEEX=-1
  9002. ;;
  9003. y|ye|yes)
  9004. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9005. ;;
  9006. *)
  9007. SPEEX_DIR="${withval}"
  9008. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9009. ;;
  9010. esac
  9011. fi
  9012. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9013. SPEEX_PREPROCESS_OPTION="speex"
  9014. PBX_SPEEX_PREPROCESS=0
  9015. # Check whether --with-speex was given.
  9016. if test "${with_speex+set}" = set; then :
  9017. withval=$with_speex;
  9018. case ${withval} in
  9019. n|no)
  9020. USE_SPEEX_PREPROCESS=no
  9021. # -1 is a magic value used by menuselect to know that the package
  9022. # was disabled, other than 'not found'
  9023. PBX_SPEEX_PREPROCESS=-1
  9024. ;;
  9025. y|ye|yes)
  9026. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9027. ;;
  9028. *)
  9029. SPEEX_PREPROCESS_DIR="${withval}"
  9030. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9031. ;;
  9032. esac
  9033. fi
  9034. SPEEXDSP_DESCRIP="SpeexDSP"
  9035. SPEEXDSP_OPTION="speexdsp"
  9036. PBX_SPEEXDSP=0
  9037. # Check whether --with-speexdsp was given.
  9038. if test "${with_speexdsp+set}" = set; then :
  9039. withval=$with_speexdsp;
  9040. case ${withval} in
  9041. n|no)
  9042. USE_SPEEXDSP=no
  9043. # -1 is a magic value used by menuselect to know that the package
  9044. # was disabled, other than 'not found'
  9045. PBX_SPEEXDSP=-1
  9046. ;;
  9047. y|ye|yes)
  9048. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9049. ;;
  9050. *)
  9051. SPEEXDSP_DIR="${withval}"
  9052. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9053. ;;
  9054. esac
  9055. fi
  9056. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9057. SPEEX_PREPROCESS_OPTION=speex
  9058. PBX_SPEEX_PREPROCESS=0
  9059. SQLITE_DESCRIP="SQLite"
  9060. SQLITE_OPTION="sqlite"
  9061. PBX_SQLITE=0
  9062. # Check whether --with-sqlite was given.
  9063. if test "${with_sqlite+set}" = set; then :
  9064. withval=$with_sqlite;
  9065. case ${withval} in
  9066. n|no)
  9067. USE_SQLITE=no
  9068. # -1 is a magic value used by menuselect to know that the package
  9069. # was disabled, other than 'not found'
  9070. PBX_SQLITE=-1
  9071. ;;
  9072. y|ye|yes)
  9073. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9074. ;;
  9075. *)
  9076. SQLITE_DIR="${withval}"
  9077. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9078. ;;
  9079. esac
  9080. fi
  9081. SQLITE3_DESCRIP="SQLite"
  9082. SQLITE3_OPTION="sqlite3"
  9083. PBX_SQLITE3=0
  9084. # Check whether --with-sqlite3 was given.
  9085. if test "${with_sqlite3+set}" = set; then :
  9086. withval=$with_sqlite3;
  9087. case ${withval} in
  9088. n|no)
  9089. USE_SQLITE3=no
  9090. # -1 is a magic value used by menuselect to know that the package
  9091. # was disabled, other than 'not found'
  9092. PBX_SQLITE3=-1
  9093. ;;
  9094. y|ye|yes)
  9095. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9096. ;;
  9097. *)
  9098. SQLITE3_DIR="${withval}"
  9099. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9100. ;;
  9101. esac
  9102. fi
  9103. SRTP_DESCRIP="Secure RTP"
  9104. SRTP_OPTION="srtp"
  9105. PBX_SRTP=0
  9106. # Check whether --with-srtp was given.
  9107. if test "${with_srtp+set}" = set; then :
  9108. withval=$with_srtp;
  9109. case ${withval} in
  9110. n|no)
  9111. USE_SRTP=no
  9112. # -1 is a magic value used by menuselect to know that the package
  9113. # was disabled, other than 'not found'
  9114. PBX_SRTP=-1
  9115. ;;
  9116. y|ye|yes)
  9117. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9118. ;;
  9119. *)
  9120. SRTP_DIR="${withval}"
  9121. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9122. ;;
  9123. esac
  9124. fi
  9125. SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
  9126. SRTP_SHUTDOWN_OPTION=srtp
  9127. SRTP_SHUTDOWN_DIR=${SRTP_DIR}
  9128. PBX_SRTP_SHUTDOWN=0
  9129. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9130. OPENSSL_OPTION="ssl"
  9131. PBX_OPENSSL=0
  9132. # Check whether --with-ssl was given.
  9133. if test "${with_ssl+set}" = set; then :
  9134. withval=$with_ssl;
  9135. case ${withval} in
  9136. n|no)
  9137. USE_OPENSSL=no
  9138. # -1 is a magic value used by menuselect to know that the package
  9139. # was disabled, other than 'not found'
  9140. PBX_OPENSSL=-1
  9141. ;;
  9142. y|ye|yes)
  9143. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9144. ;;
  9145. *)
  9146. OPENSSL_DIR="${withval}"
  9147. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9148. ;;
  9149. esac
  9150. fi
  9151. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9152. SUPPSERV_OPTION="suppserv"
  9153. PBX_SUPPSERV=0
  9154. # Check whether --with-suppserv was given.
  9155. if test "${with_suppserv+set}" = set; then :
  9156. withval=$with_suppserv;
  9157. case ${withval} in
  9158. n|no)
  9159. USE_SUPPSERV=no
  9160. # -1 is a magic value used by menuselect to know that the package
  9161. # was disabled, other than 'not found'
  9162. PBX_SUPPSERV=-1
  9163. ;;
  9164. y|ye|yes)
  9165. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9166. ;;
  9167. *)
  9168. SUPPSERV_DIR="${withval}"
  9169. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9170. ;;
  9171. esac
  9172. fi
  9173. FREETDS_DESCRIP="FreeTDS"
  9174. FREETDS_OPTION="tds"
  9175. PBX_FREETDS=0
  9176. # Check whether --with-tds was given.
  9177. if test "${with_tds+set}" = set; then :
  9178. withval=$with_tds;
  9179. case ${withval} in
  9180. n|no)
  9181. USE_FREETDS=no
  9182. # -1 is a magic value used by menuselect to know that the package
  9183. # was disabled, other than 'not found'
  9184. PBX_FREETDS=-1
  9185. ;;
  9186. y|ye|yes)
  9187. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9188. ;;
  9189. *)
  9190. FREETDS_DIR="${withval}"
  9191. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9192. ;;
  9193. esac
  9194. fi
  9195. TERMCAP_DESCRIP="Termcap"
  9196. TERMCAP_OPTION="termcap"
  9197. PBX_TERMCAP=0
  9198. # Check whether --with-termcap was given.
  9199. if test "${with_termcap+set}" = set; then :
  9200. withval=$with_termcap;
  9201. case ${withval} in
  9202. n|no)
  9203. USE_TERMCAP=no
  9204. # -1 is a magic value used by menuselect to know that the package
  9205. # was disabled, other than 'not found'
  9206. PBX_TERMCAP=-1
  9207. ;;
  9208. y|ye|yes)
  9209. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9210. ;;
  9211. *)
  9212. TERMCAP_DIR="${withval}"
  9213. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9214. ;;
  9215. esac
  9216. fi
  9217. TIMERFD_DESCRIP="timerfd"
  9218. TIMERFD_OPTION="timerfd"
  9219. PBX_TIMERFD=0
  9220. # Check whether --with-timerfd was given.
  9221. if test "${with_timerfd+set}" = set; then :
  9222. withval=$with_timerfd;
  9223. case ${withval} in
  9224. n|no)
  9225. USE_TIMERFD=no
  9226. # -1 is a magic value used by menuselect to know that the package
  9227. # was disabled, other than 'not found'
  9228. PBX_TIMERFD=-1
  9229. ;;
  9230. y|ye|yes)
  9231. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9232. ;;
  9233. *)
  9234. TIMERFD_DIR="${withval}"
  9235. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9236. ;;
  9237. esac
  9238. fi
  9239. TINFO_DESCRIP="Term Info"
  9240. TINFO_OPTION="tinfo"
  9241. PBX_TINFO=0
  9242. # Check whether --with-tinfo was given.
  9243. if test "${with_tinfo+set}" = set; then :
  9244. withval=$with_tinfo;
  9245. case ${withval} in
  9246. n|no)
  9247. USE_TINFO=no
  9248. # -1 is a magic value used by menuselect to know that the package
  9249. # was disabled, other than 'not found'
  9250. PBX_TINFO=-1
  9251. ;;
  9252. y|ye|yes)
  9253. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9254. ;;
  9255. *)
  9256. TINFO_DIR="${withval}"
  9257. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9258. ;;
  9259. esac
  9260. fi
  9261. TONEZONE_DESCRIP="tonezone"
  9262. TONEZONE_OPTION="tonezone"
  9263. PBX_TONEZONE=0
  9264. # Check whether --with-tonezone was given.
  9265. if test "${with_tonezone+set}" = set; then :
  9266. withval=$with_tonezone;
  9267. case ${withval} in
  9268. n|no)
  9269. USE_TONEZONE=no
  9270. # -1 is a magic value used by menuselect to know that the package
  9271. # was disabled, other than 'not found'
  9272. PBX_TONEZONE=-1
  9273. ;;
  9274. y|ye|yes)
  9275. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9276. ;;
  9277. *)
  9278. TONEZONE_DIR="${withval}"
  9279. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9280. ;;
  9281. esac
  9282. fi
  9283. UNIXODBC_DESCRIP="unixODBC"
  9284. UNIXODBC_OPTION="unixodbc"
  9285. PBX_UNIXODBC=0
  9286. # Check whether --with-unixodbc was given.
  9287. if test "${with_unixodbc+set}" = set; then :
  9288. withval=$with_unixodbc;
  9289. case ${withval} in
  9290. n|no)
  9291. USE_UNIXODBC=no
  9292. # -1 is a magic value used by menuselect to know that the package
  9293. # was disabled, other than 'not found'
  9294. PBX_UNIXODBC=-1
  9295. ;;
  9296. y|ye|yes)
  9297. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9298. ;;
  9299. *)
  9300. UNIXODBC_DIR="${withval}"
  9301. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9302. ;;
  9303. esac
  9304. fi
  9305. UUID_DESCRIP="UUID"
  9306. UUID_OPTION="uuid"
  9307. PBX_UUID=0
  9308. # Check whether --with-uuid was given.
  9309. if test "${with_uuid+set}" = set; then :
  9310. withval=$with_uuid;
  9311. case ${withval} in
  9312. n|no)
  9313. USE_UUID=no
  9314. # -1 is a magic value used by menuselect to know that the package
  9315. # was disabled, other than 'not found'
  9316. PBX_UUID=-1
  9317. ;;
  9318. y|ye|yes)
  9319. ac_mandatory_list="${ac_mandatory_list} UUID"
  9320. ;;
  9321. *)
  9322. UUID_DIR="${withval}"
  9323. ac_mandatory_list="${ac_mandatory_list} UUID"
  9324. ;;
  9325. esac
  9326. fi
  9327. VORBIS_DESCRIP="Vorbis"
  9328. VORBIS_OPTION="vorbis"
  9329. PBX_VORBIS=0
  9330. # Check whether --with-vorbis was given.
  9331. if test "${with_vorbis+set}" = set; then :
  9332. withval=$with_vorbis;
  9333. case ${withval} in
  9334. n|no)
  9335. USE_VORBIS=no
  9336. # -1 is a magic value used by menuselect to know that the package
  9337. # was disabled, other than 'not found'
  9338. PBX_VORBIS=-1
  9339. ;;
  9340. y|ye|yes)
  9341. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9342. ;;
  9343. *)
  9344. VORBIS_DIR="${withval}"
  9345. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9346. ;;
  9347. esac
  9348. fi
  9349. VPB_DESCRIP="Voicetronix API"
  9350. VPB_OPTION="vpb"
  9351. PBX_VPB=0
  9352. # Check whether --with-vpb was given.
  9353. if test "${with_vpb+set}" = set; then :
  9354. withval=$with_vpb;
  9355. case ${withval} in
  9356. n|no)
  9357. USE_VPB=no
  9358. # -1 is a magic value used by menuselect to know that the package
  9359. # was disabled, other than 'not found'
  9360. PBX_VPB=-1
  9361. ;;
  9362. y|ye|yes)
  9363. ac_mandatory_list="${ac_mandatory_list} VPB"
  9364. ;;
  9365. *)
  9366. VPB_DIR="${withval}"
  9367. ac_mandatory_list="${ac_mandatory_list} VPB"
  9368. ;;
  9369. esac
  9370. fi
  9371. X11_DESCRIP="X11"
  9372. X11_OPTION="x11"
  9373. PBX_X11=0
  9374. # Check whether --with-x11 was given.
  9375. if test "${with_x11+set}" = set; then :
  9376. withval=$with_x11;
  9377. case ${withval} in
  9378. n|no)
  9379. USE_X11=no
  9380. # -1 is a magic value used by menuselect to know that the package
  9381. # was disabled, other than 'not found'
  9382. PBX_X11=-1
  9383. ;;
  9384. y|ye|yes)
  9385. ac_mandatory_list="${ac_mandatory_list} X11"
  9386. ;;
  9387. *)
  9388. X11_DIR="${withval}"
  9389. ac_mandatory_list="${ac_mandatory_list} X11"
  9390. ;;
  9391. esac
  9392. fi
  9393. ZLIB_DESCRIP="zlib compression"
  9394. ZLIB_OPTION="z"
  9395. PBX_ZLIB=0
  9396. # Check whether --with-z was given.
  9397. if test "${with_z+set}" = set; then :
  9398. withval=$with_z;
  9399. case ${withval} in
  9400. n|no)
  9401. USE_ZLIB=no
  9402. # -1 is a magic value used by menuselect to know that the package
  9403. # was disabled, other than 'not found'
  9404. PBX_ZLIB=-1
  9405. ;;
  9406. y|ye|yes)
  9407. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9408. ;;
  9409. *)
  9410. ZLIB_DIR="${withval}"
  9411. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9412. ;;
  9413. esac
  9414. fi
  9415. # check for basic system features and functionality before
  9416. # checking for package libraries
  9417. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  9418. if test "x$ac_cv_type_size_t" = xyes; then :
  9419. else
  9420. cat >>confdefs.h <<_ACEOF
  9421. #define size_t unsigned int
  9422. _ACEOF
  9423. fi
  9424. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9425. # for constant arguments. Useless!
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9427. $as_echo_n "checking for working alloca.h... " >&6; }
  9428. if ${ac_cv_working_alloca_h+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9432. /* end confdefs.h. */
  9433. #include <alloca.h>
  9434. int
  9435. main ()
  9436. {
  9437. char *p = (char *) alloca (2 * sizeof (int));
  9438. if (p) return 0;
  9439. ;
  9440. return 0;
  9441. }
  9442. _ACEOF
  9443. if ac_fn_c_try_link "$LINENO"; then :
  9444. ac_cv_working_alloca_h=yes
  9445. else
  9446. ac_cv_working_alloca_h=no
  9447. fi
  9448. rm -f core conftest.err conftest.$ac_objext \
  9449. conftest$ac_exeext conftest.$ac_ext
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9452. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9453. if test $ac_cv_working_alloca_h = yes; then
  9454. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  9455. fi
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9457. $as_echo_n "checking for alloca... " >&6; }
  9458. if ${ac_cv_func_alloca_works+:} false; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9462. /* end confdefs.h. */
  9463. #ifdef __GNUC__
  9464. # define alloca __builtin_alloca
  9465. #else
  9466. # ifdef _MSC_VER
  9467. # include <malloc.h>
  9468. # define alloca _alloca
  9469. # else
  9470. # ifdef HAVE_ALLOCA_H
  9471. # include <alloca.h>
  9472. # else
  9473. # ifdef _AIX
  9474. #pragma alloca
  9475. # else
  9476. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9477. void *alloca (size_t);
  9478. # endif
  9479. # endif
  9480. # endif
  9481. # endif
  9482. #endif
  9483. int
  9484. main ()
  9485. {
  9486. char *p = (char *) alloca (1);
  9487. if (p) return 0;
  9488. ;
  9489. return 0;
  9490. }
  9491. _ACEOF
  9492. if ac_fn_c_try_link "$LINENO"; then :
  9493. ac_cv_func_alloca_works=yes
  9494. else
  9495. ac_cv_func_alloca_works=no
  9496. fi
  9497. rm -f core conftest.err conftest.$ac_objext \
  9498. conftest$ac_exeext conftest.$ac_ext
  9499. fi
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9501. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9502. if test $ac_cv_func_alloca_works = yes; then
  9503. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  9504. else
  9505. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9506. # that cause trouble. Some versions do not even contain alloca or
  9507. # contain a buggy version. If you still want to use their alloca,
  9508. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9509. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9510. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9512. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9513. if ${ac_cv_os_cray+:} false; then :
  9514. $as_echo_n "(cached) " >&6
  9515. else
  9516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9517. /* end confdefs.h. */
  9518. #if defined CRAY && ! defined CRAY2
  9519. webecray
  9520. #else
  9521. wenotbecray
  9522. #endif
  9523. _ACEOF
  9524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9525. $EGREP "webecray" >/dev/null 2>&1; then :
  9526. ac_cv_os_cray=yes
  9527. else
  9528. ac_cv_os_cray=no
  9529. fi
  9530. rm -f conftest*
  9531. fi
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9533. $as_echo "$ac_cv_os_cray" >&6; }
  9534. if test $ac_cv_os_cray = yes; then
  9535. for ac_func in _getb67 GETB67 getb67; do
  9536. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9537. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9538. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9539. cat >>confdefs.h <<_ACEOF
  9540. #define CRAY_STACKSEG_END $ac_func
  9541. _ACEOF
  9542. break
  9543. fi
  9544. done
  9545. fi
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9547. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9548. if ${ac_cv_c_stack_direction+:} false; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. if test "$cross_compiling" = yes; then :
  9552. ac_cv_c_stack_direction=0
  9553. else
  9554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9555. /* end confdefs.h. */
  9556. $ac_includes_default
  9557. int
  9558. find_stack_direction (int *addr, int depth)
  9559. {
  9560. int dir, dummy = 0;
  9561. if (! addr)
  9562. addr = &dummy;
  9563. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  9564. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  9565. return dir + dummy;
  9566. }
  9567. int
  9568. main (int argc, char **argv)
  9569. {
  9570. return find_stack_direction (0, argc + !argv + 20) < 0;
  9571. }
  9572. _ACEOF
  9573. if ac_fn_c_try_run "$LINENO"; then :
  9574. ac_cv_c_stack_direction=1
  9575. else
  9576. ac_cv_c_stack_direction=-1
  9577. fi
  9578. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9579. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9580. fi
  9581. fi
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9583. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9584. cat >>confdefs.h <<_ACEOF
  9585. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9586. _ACEOF
  9587. fi
  9588. ac_header_dirent=no
  9589. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9590. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  9592. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9593. if eval \${$as_ac_Header+:} false; then :
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9597. /* end confdefs.h. */
  9598. #include <sys/types.h>
  9599. #include <$ac_hdr>
  9600. int
  9601. main ()
  9602. {
  9603. if ((DIR *) 0)
  9604. return 0;
  9605. ;
  9606. return 0;
  9607. }
  9608. _ACEOF
  9609. if ac_fn_c_try_compile "$LINENO"; then :
  9610. eval "$as_ac_Header=yes"
  9611. else
  9612. eval "$as_ac_Header=no"
  9613. fi
  9614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9615. fi
  9616. eval ac_res=\$$as_ac_Header
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9618. $as_echo "$ac_res" >&6; }
  9619. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9620. cat >>confdefs.h <<_ACEOF
  9621. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9622. _ACEOF
  9623. ac_header_dirent=$ac_hdr; break
  9624. fi
  9625. done
  9626. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9627. if test $ac_header_dirent = dirent.h; then
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9629. $as_echo_n "checking for library containing opendir... " >&6; }
  9630. if ${ac_cv_search_opendir+:} false; then :
  9631. $as_echo_n "(cached) " >&6
  9632. else
  9633. ac_func_search_save_LIBS=$LIBS
  9634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9635. /* end confdefs.h. */
  9636. /* Override any GCC internal prototype to avoid an error.
  9637. Use char because int might match the return type of a GCC
  9638. builtin and then its argument prototype would still apply. */
  9639. #ifdef __cplusplus
  9640. extern "C"
  9641. #endif
  9642. char opendir ();
  9643. int
  9644. main ()
  9645. {
  9646. return opendir ();
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. for ac_lib in '' dir; do
  9652. if test -z "$ac_lib"; then
  9653. ac_res="none required"
  9654. else
  9655. ac_res=-l$ac_lib
  9656. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9657. fi
  9658. if ac_fn_c_try_link "$LINENO"; then :
  9659. ac_cv_search_opendir=$ac_res
  9660. fi
  9661. rm -f core conftest.err conftest.$ac_objext \
  9662. conftest$ac_exeext
  9663. if ${ac_cv_search_opendir+:} false; then :
  9664. break
  9665. fi
  9666. done
  9667. if ${ac_cv_search_opendir+:} false; then :
  9668. else
  9669. ac_cv_search_opendir=no
  9670. fi
  9671. rm conftest.$ac_ext
  9672. LIBS=$ac_func_search_save_LIBS
  9673. fi
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9675. $as_echo "$ac_cv_search_opendir" >&6; }
  9676. ac_res=$ac_cv_search_opendir
  9677. if test "$ac_res" != no; then :
  9678. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9679. fi
  9680. else
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9682. $as_echo_n "checking for library containing opendir... " >&6; }
  9683. if ${ac_cv_search_opendir+:} false; then :
  9684. $as_echo_n "(cached) " >&6
  9685. else
  9686. ac_func_search_save_LIBS=$LIBS
  9687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9688. /* end confdefs.h. */
  9689. /* Override any GCC internal prototype to avoid an error.
  9690. Use char because int might match the return type of a GCC
  9691. builtin and then its argument prototype would still apply. */
  9692. #ifdef __cplusplus
  9693. extern "C"
  9694. #endif
  9695. char opendir ();
  9696. int
  9697. main ()
  9698. {
  9699. return opendir ();
  9700. ;
  9701. return 0;
  9702. }
  9703. _ACEOF
  9704. for ac_lib in '' x; do
  9705. if test -z "$ac_lib"; then
  9706. ac_res="none required"
  9707. else
  9708. ac_res=-l$ac_lib
  9709. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9710. fi
  9711. if ac_fn_c_try_link "$LINENO"; then :
  9712. ac_cv_search_opendir=$ac_res
  9713. fi
  9714. rm -f core conftest.err conftest.$ac_objext \
  9715. conftest$ac_exeext
  9716. if ${ac_cv_search_opendir+:} false; then :
  9717. break
  9718. fi
  9719. done
  9720. if ${ac_cv_search_opendir+:} false; then :
  9721. else
  9722. ac_cv_search_opendir=no
  9723. fi
  9724. rm conftest.$ac_ext
  9725. LIBS=$ac_func_search_save_LIBS
  9726. fi
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9728. $as_echo "$ac_cv_search_opendir" >&6; }
  9729. ac_res=$ac_cv_search_opendir
  9730. if test "$ac_res" != no; then :
  9731. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9732. fi
  9733. fi
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9735. $as_echo_n "checking for ANSI C header files... " >&6; }
  9736. if ${ac_cv_header_stdc+:} false; then :
  9737. $as_echo_n "(cached) " >&6
  9738. else
  9739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9740. /* end confdefs.h. */
  9741. #include <stdlib.h>
  9742. #include <stdarg.h>
  9743. #include <string.h>
  9744. #include <float.h>
  9745. int
  9746. main ()
  9747. {
  9748. ;
  9749. return 0;
  9750. }
  9751. _ACEOF
  9752. if ac_fn_c_try_compile "$LINENO"; then :
  9753. ac_cv_header_stdc=yes
  9754. else
  9755. ac_cv_header_stdc=no
  9756. fi
  9757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9758. if test $ac_cv_header_stdc = yes; then
  9759. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9761. /* end confdefs.h. */
  9762. #include <string.h>
  9763. _ACEOF
  9764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9765. $EGREP "memchr" >/dev/null 2>&1; then :
  9766. else
  9767. ac_cv_header_stdc=no
  9768. fi
  9769. rm -f conftest*
  9770. fi
  9771. if test $ac_cv_header_stdc = yes; then
  9772. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9774. /* end confdefs.h. */
  9775. #include <stdlib.h>
  9776. _ACEOF
  9777. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9778. $EGREP "free" >/dev/null 2>&1; then :
  9779. else
  9780. ac_cv_header_stdc=no
  9781. fi
  9782. rm -f conftest*
  9783. fi
  9784. if test $ac_cv_header_stdc = yes; then
  9785. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9786. if test "$cross_compiling" = yes; then :
  9787. :
  9788. else
  9789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9790. /* end confdefs.h. */
  9791. #include <ctype.h>
  9792. #include <stdlib.h>
  9793. #if ((' ' & 0x0FF) == 0x020)
  9794. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9795. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9796. #else
  9797. # define ISLOWER(c) \
  9798. (('a' <= (c) && (c) <= 'i') \
  9799. || ('j' <= (c) && (c) <= 'r') \
  9800. || ('s' <= (c) && (c) <= 'z'))
  9801. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9802. #endif
  9803. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9804. int
  9805. main ()
  9806. {
  9807. int i;
  9808. for (i = 0; i < 256; i++)
  9809. if (XOR (islower (i), ISLOWER (i))
  9810. || toupper (i) != TOUPPER (i))
  9811. return 2;
  9812. return 0;
  9813. }
  9814. _ACEOF
  9815. if ac_fn_c_try_run "$LINENO"; then :
  9816. else
  9817. ac_cv_header_stdc=no
  9818. fi
  9819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9820. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9821. fi
  9822. fi
  9823. fi
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9825. $as_echo "$ac_cv_header_stdc" >&6; }
  9826. if test $ac_cv_header_stdc = yes; then
  9827. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9828. fi
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  9830. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  9831. if ${ac_cv_header_sys_wait_h+:} false; then :
  9832. $as_echo_n "(cached) " >&6
  9833. else
  9834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9835. /* end confdefs.h. */
  9836. #include <sys/types.h>
  9837. #include <sys/wait.h>
  9838. #ifndef WEXITSTATUS
  9839. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  9840. #endif
  9841. #ifndef WIFEXITED
  9842. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  9843. #endif
  9844. int
  9845. main ()
  9846. {
  9847. int s;
  9848. wait (&s);
  9849. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  9850. ;
  9851. return 0;
  9852. }
  9853. _ACEOF
  9854. if ac_fn_c_try_compile "$LINENO"; then :
  9855. ac_cv_header_sys_wait_h=yes
  9856. else
  9857. ac_cv_header_sys_wait_h=no
  9858. fi
  9859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9860. fi
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  9862. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  9863. if test $ac_cv_header_sys_wait_h = yes; then
  9864. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  9865. fi
  9866. for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/event.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h sys/io.h
  9867. do :
  9868. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9869. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9870. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9871. cat >>confdefs.h <<_ACEOF
  9872. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9873. _ACEOF
  9874. fi
  9875. done
  9876. # Any one of these 4 packages support a mandatory requirement, so we want to check on them as early as possible.
  9877. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  9878. pbxlibdir=""
  9879. # if --with-TERMCAP=DIR has been specified, use it.
  9880. if test "x${TERMCAP_DIR}" != "x"; then
  9881. if test -d ${TERMCAP_DIR}/lib; then
  9882. pbxlibdir="-L${TERMCAP_DIR}/lib"
  9883. else
  9884. pbxlibdir="-L${TERMCAP_DIR}"
  9885. fi
  9886. fi
  9887. pbxfuncname="tgetent"
  9888. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  9889. AST_TERMCAP_FOUND=yes
  9890. else
  9891. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9892. CFLAGS="${CFLAGS} "
  9893. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
  9895. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  9896. if eval \${$as_ac_Lib+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. ac_check_lib_save_LIBS=$LIBS
  9900. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. /* Override any GCC internal prototype to avoid an error.
  9904. Use char because int might match the return type of a GCC
  9905. builtin and then its argument prototype would still apply. */
  9906. #ifdef __cplusplus
  9907. extern "C"
  9908. #endif
  9909. char ${pbxfuncname} ();
  9910. int
  9911. main ()
  9912. {
  9913. return ${pbxfuncname} ();
  9914. ;
  9915. return 0;
  9916. }
  9917. _ACEOF
  9918. if ac_fn_c_try_link "$LINENO"; then :
  9919. eval "$as_ac_Lib=yes"
  9920. else
  9921. eval "$as_ac_Lib=no"
  9922. fi
  9923. rm -f core conftest.err conftest.$ac_objext \
  9924. conftest$ac_exeext conftest.$ac_ext
  9925. LIBS=$ac_check_lib_save_LIBS
  9926. fi
  9927. eval ac_res=\$$as_ac_Lib
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9929. $as_echo "$ac_res" >&6; }
  9930. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9931. AST_TERMCAP_FOUND=yes
  9932. else
  9933. AST_TERMCAP_FOUND=no
  9934. fi
  9935. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  9936. fi
  9937. # now check for the header.
  9938. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  9939. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  9940. # if --with-TERMCAP=DIR has been specified, use it.
  9941. if test "x${TERMCAP_DIR}" != "x"; then
  9942. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  9943. fi
  9944. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  9945. if test "x" = "x" ; then # no header, assume found
  9946. TERMCAP_HEADER_FOUND="1"
  9947. else # check for the header
  9948. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  9949. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  9950. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  9951. if test "x$ac_cv_header_" = xyes; then :
  9952. TERMCAP_HEADER_FOUND=1
  9953. else
  9954. TERMCAP_HEADER_FOUND=0
  9955. fi
  9956. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  9957. fi
  9958. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  9959. TERMCAP_LIB=""
  9960. TERMCAP_INCLUDE=""
  9961. else
  9962. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  9963. TERMCAP_LIB=""
  9964. fi
  9965. PBX_TERMCAP=1
  9966. cat >>confdefs.h <<_ACEOF
  9967. #define HAVE_TERMCAP 1
  9968. _ACEOF
  9969. fi
  9970. fi
  9971. fi
  9972. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  9973. pbxlibdir=""
  9974. # if --with-TINFO=DIR has been specified, use it.
  9975. if test "x${TINFO_DIR}" != "x"; then
  9976. if test -d ${TINFO_DIR}/lib; then
  9977. pbxlibdir="-L${TINFO_DIR}/lib"
  9978. else
  9979. pbxlibdir="-L${TINFO_DIR}"
  9980. fi
  9981. fi
  9982. pbxfuncname="tgetent"
  9983. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  9984. AST_TINFO_FOUND=yes
  9985. else
  9986. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9987. CFLAGS="${CFLAGS} "
  9988. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
  9990. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  9991. if eval \${$as_ac_Lib+:} false; then :
  9992. $as_echo_n "(cached) " >&6
  9993. else
  9994. ac_check_lib_save_LIBS=$LIBS
  9995. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  9996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9997. /* end confdefs.h. */
  9998. /* Override any GCC internal prototype to avoid an error.
  9999. Use char because int might match the return type of a GCC
  10000. builtin and then its argument prototype would still apply. */
  10001. #ifdef __cplusplus
  10002. extern "C"
  10003. #endif
  10004. char ${pbxfuncname} ();
  10005. int
  10006. main ()
  10007. {
  10008. return ${pbxfuncname} ();
  10009. ;
  10010. return 0;
  10011. }
  10012. _ACEOF
  10013. if ac_fn_c_try_link "$LINENO"; then :
  10014. eval "$as_ac_Lib=yes"
  10015. else
  10016. eval "$as_ac_Lib=no"
  10017. fi
  10018. rm -f core conftest.err conftest.$ac_objext \
  10019. conftest$ac_exeext conftest.$ac_ext
  10020. LIBS=$ac_check_lib_save_LIBS
  10021. fi
  10022. eval ac_res=\$$as_ac_Lib
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10024. $as_echo "$ac_res" >&6; }
  10025. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10026. AST_TINFO_FOUND=yes
  10027. else
  10028. AST_TINFO_FOUND=no
  10029. fi
  10030. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10031. fi
  10032. # now check for the header.
  10033. if test "${AST_TINFO_FOUND}" = "yes"; then
  10034. TINFO_LIB="${pbxlibdir} -ltinfo "
  10035. # if --with-TINFO=DIR has been specified, use it.
  10036. if test "x${TINFO_DIR}" != "x"; then
  10037. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  10038. fi
  10039. TINFO_INCLUDE="${TINFO_INCLUDE} "
  10040. if test "x" = "x" ; then # no header, assume found
  10041. TINFO_HEADER_FOUND="1"
  10042. else # check for the header
  10043. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10044. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  10045. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10046. if test "x$ac_cv_header_" = xyes; then :
  10047. TINFO_HEADER_FOUND=1
  10048. else
  10049. TINFO_HEADER_FOUND=0
  10050. fi
  10051. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10052. fi
  10053. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  10054. TINFO_LIB=""
  10055. TINFO_INCLUDE=""
  10056. else
  10057. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10058. TINFO_LIB=""
  10059. fi
  10060. PBX_TINFO=1
  10061. cat >>confdefs.h <<_ACEOF
  10062. #define HAVE_TINFO 1
  10063. _ACEOF
  10064. fi
  10065. fi
  10066. fi
  10067. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  10068. pbxlibdir=""
  10069. # if --with-CURSES=DIR has been specified, use it.
  10070. if test "x${CURSES_DIR}" != "x"; then
  10071. if test -d ${CURSES_DIR}/lib; then
  10072. pbxlibdir="-L${CURSES_DIR}/lib"
  10073. else
  10074. pbxlibdir="-L${CURSES_DIR}"
  10075. fi
  10076. fi
  10077. pbxfuncname="initscr"
  10078. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10079. AST_CURSES_FOUND=yes
  10080. else
  10081. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10082. CFLAGS="${CFLAGS} "
  10083. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  10085. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  10086. if eval \${$as_ac_Lib+:} false; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. ac_check_lib_save_LIBS=$LIBS
  10090. LIBS="-lcurses ${pbxlibdir} $LIBS"
  10091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10092. /* end confdefs.h. */
  10093. /* Override any GCC internal prototype to avoid an error.
  10094. Use char because int might match the return type of a GCC
  10095. builtin and then its argument prototype would still apply. */
  10096. #ifdef __cplusplus
  10097. extern "C"
  10098. #endif
  10099. char ${pbxfuncname} ();
  10100. int
  10101. main ()
  10102. {
  10103. return ${pbxfuncname} ();
  10104. ;
  10105. return 0;
  10106. }
  10107. _ACEOF
  10108. if ac_fn_c_try_link "$LINENO"; then :
  10109. eval "$as_ac_Lib=yes"
  10110. else
  10111. eval "$as_ac_Lib=no"
  10112. fi
  10113. rm -f core conftest.err conftest.$ac_objext \
  10114. conftest$ac_exeext conftest.$ac_ext
  10115. LIBS=$ac_check_lib_save_LIBS
  10116. fi
  10117. eval ac_res=\$$as_ac_Lib
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10119. $as_echo "$ac_res" >&6; }
  10120. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10121. AST_CURSES_FOUND=yes
  10122. else
  10123. AST_CURSES_FOUND=no
  10124. fi
  10125. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10126. fi
  10127. # now check for the header.
  10128. if test "${AST_CURSES_FOUND}" = "yes"; then
  10129. CURSES_LIB="${pbxlibdir} -lcurses "
  10130. # if --with-CURSES=DIR has been specified, use it.
  10131. if test "x${CURSES_DIR}" != "x"; then
  10132. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  10133. fi
  10134. CURSES_INCLUDE="${CURSES_INCLUDE} "
  10135. if test "xcurses.h" = "x" ; then # no header, assume found
  10136. CURSES_HEADER_FOUND="1"
  10137. else # check for the header
  10138. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10139. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  10140. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10141. if test "x$ac_cv_header_curses_h" = xyes; then :
  10142. CURSES_HEADER_FOUND=1
  10143. else
  10144. CURSES_HEADER_FOUND=0
  10145. fi
  10146. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10147. fi
  10148. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  10149. CURSES_LIB=""
  10150. CURSES_INCLUDE=""
  10151. else
  10152. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10153. CURSES_LIB=""
  10154. fi
  10155. PBX_CURSES=1
  10156. cat >>confdefs.h <<_ACEOF
  10157. #define HAVE_CURSES 1
  10158. _ACEOF
  10159. fi
  10160. fi
  10161. fi
  10162. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  10163. pbxlibdir=""
  10164. # if --with-NCURSES=DIR has been specified, use it.
  10165. if test "x${NCURSES_DIR}" != "x"; then
  10166. if test -d ${NCURSES_DIR}/lib; then
  10167. pbxlibdir="-L${NCURSES_DIR}/lib"
  10168. else
  10169. pbxlibdir="-L${NCURSES_DIR}"
  10170. fi
  10171. fi
  10172. pbxfuncname="initscr"
  10173. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10174. AST_NCURSES_FOUND=yes
  10175. else
  10176. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10177. CFLAGS="${CFLAGS} "
  10178. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  10180. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  10181. if eval \${$as_ac_Lib+:} false; then :
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. ac_check_lib_save_LIBS=$LIBS
  10185. LIBS="-lncurses ${pbxlibdir} $LIBS"
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. /* Override any GCC internal prototype to avoid an error.
  10189. Use char because int might match the return type of a GCC
  10190. builtin and then its argument prototype would still apply. */
  10191. #ifdef __cplusplus
  10192. extern "C"
  10193. #endif
  10194. char ${pbxfuncname} ();
  10195. int
  10196. main ()
  10197. {
  10198. return ${pbxfuncname} ();
  10199. ;
  10200. return 0;
  10201. }
  10202. _ACEOF
  10203. if ac_fn_c_try_link "$LINENO"; then :
  10204. eval "$as_ac_Lib=yes"
  10205. else
  10206. eval "$as_ac_Lib=no"
  10207. fi
  10208. rm -f core conftest.err conftest.$ac_objext \
  10209. conftest$ac_exeext conftest.$ac_ext
  10210. LIBS=$ac_check_lib_save_LIBS
  10211. fi
  10212. eval ac_res=\$$as_ac_Lib
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10214. $as_echo "$ac_res" >&6; }
  10215. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10216. AST_NCURSES_FOUND=yes
  10217. else
  10218. AST_NCURSES_FOUND=no
  10219. fi
  10220. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10221. fi
  10222. # now check for the header.
  10223. if test "${AST_NCURSES_FOUND}" = "yes"; then
  10224. NCURSES_LIB="${pbxlibdir} -lncurses "
  10225. # if --with-NCURSES=DIR has been specified, use it.
  10226. if test "x${NCURSES_DIR}" != "x"; then
  10227. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  10228. fi
  10229. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  10230. if test "xcurses.h" = "x" ; then # no header, assume found
  10231. NCURSES_HEADER_FOUND="1"
  10232. else # check for the header
  10233. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10234. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  10235. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10236. if test "x$ac_cv_header_curses_h" = xyes; then :
  10237. NCURSES_HEADER_FOUND=1
  10238. else
  10239. NCURSES_HEADER_FOUND=0
  10240. fi
  10241. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10242. fi
  10243. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  10244. NCURSES_LIB=""
  10245. NCURSES_INCLUDE=""
  10246. else
  10247. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10248. NCURSES_LIB=""
  10249. fi
  10250. PBX_NCURSES=1
  10251. cat >>confdefs.h <<_ACEOF
  10252. #define HAVE_NCURSES 1
  10253. _ACEOF
  10254. fi
  10255. fi
  10256. fi
  10257. EDITLINE_LIB=""
  10258. if test "x$TERMCAP_LIB" != "x" ; then
  10259. EDITLINE_LIB="$TERMCAP_LIB"
  10260. elif test "x$TINFO_LIB" != "x" ; then
  10261. EDITLINE_LIB="$TINFO_LIB"
  10262. elif test "x$CURSES_LIB" != "x" ; then
  10263. EDITLINE_LIB="$CURSES_LIB"
  10264. elif test "x$NCURSES_LIB" != "x" ; then
  10265. EDITLINE_LIB="$NCURSES_LIB"
  10266. else
  10267. as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  10268. fi
  10269. # Another mandatory item (unless it's explicitly disabled)
  10270. # Check whether --enable-xmldoc was given.
  10271. if test "${enable_xmldoc+set}" = set; then :
  10272. enableval=$enable_xmldoc; case "${enableval}" in
  10273. y|ye|yes) disable_xmldoc=no ;;
  10274. n|no) disable_xmldoc=yes ;;
  10275. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  10276. esac
  10277. else
  10278. disable_xmldoc=no
  10279. fi
  10280. if test "${disable_xmldoc}" != "yes"; then
  10281. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  10282. PBX_LIBXML2=0
  10283. if test -n "$ac_tool_prefix"; then
  10284. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  10285. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10287. $as_echo_n "checking for $ac_word... " >&6; }
  10288. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. case $CONFIG_LIBXML2 in
  10292. [\\/]* | ?:[\\/]*)
  10293. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  10294. ;;
  10295. *)
  10296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10297. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10298. for as_dir in $as_dummy
  10299. do
  10300. IFS=$as_save_IFS
  10301. test -z "$as_dir" && as_dir=.
  10302. for ac_exec_ext in '' $ac_executable_extensions; do
  10303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10304. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10306. break 2
  10307. fi
  10308. done
  10309. done
  10310. IFS=$as_save_IFS
  10311. ;;
  10312. esac
  10313. fi
  10314. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  10315. if test -n "$CONFIG_LIBXML2"; then
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  10317. $as_echo "$CONFIG_LIBXML2" >&6; }
  10318. else
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10320. $as_echo "no" >&6; }
  10321. fi
  10322. fi
  10323. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  10324. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  10325. # Extract the first word of "xml2-config", so it can be a program name with args.
  10326. set dummy xml2-config; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. case $ac_pt_CONFIG_LIBXML2 in
  10333. [\\/]* | ?:[\\/]*)
  10334. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  10335. ;;
  10336. *)
  10337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10338. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10339. for as_dir in $as_dummy
  10340. do
  10341. IFS=$as_save_IFS
  10342. test -z "$as_dir" && as_dir=.
  10343. for ac_exec_ext in '' $ac_executable_extensions; do
  10344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10345. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10347. break 2
  10348. fi
  10349. done
  10350. done
  10351. IFS=$as_save_IFS
  10352. ;;
  10353. esac
  10354. fi
  10355. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  10356. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  10358. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  10359. else
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10361. $as_echo "no" >&6; }
  10362. fi
  10363. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  10364. CONFIG_LIBXML2="No"
  10365. else
  10366. case $cross_compiling:$ac_tool_warned in
  10367. yes:)
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10370. ac_tool_warned=yes ;;
  10371. esac
  10372. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  10373. fi
  10374. else
  10375. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  10376. fi
  10377. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  10378. if test x"" = x ; then A=--cflags ; else A="" ; fi
  10379. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  10380. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
  10381. if test x"" = x ; then A=--libs ; else A="" ; fi
  10382. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  10383. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  10384. if test x"#include <libxml/tree.h>
  10385. #include <libxml/parser.h>" != x ; then
  10386. saved_cppflags="${CPPFLAGS}"
  10387. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  10388. saved_libs="${LIBS}"
  10389. LIBS=${LIBXML2_LIB}
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. #include <libxml/tree.h>
  10393. #include <libxml/parser.h>
  10394. int
  10395. main ()
  10396. {
  10397. LIBXML_TEST_VERSION;
  10398. ;
  10399. return 0;
  10400. }
  10401. _ACEOF
  10402. if ac_fn_c_try_link "$LINENO"; then :
  10403. PBX_LIBXML2=1
  10404. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. CPPFLAGS="${saved_cppflags}"
  10409. LIBS="${saved_libs}"
  10410. else
  10411. PBX_LIBXML2=1
  10412. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10413. fi
  10414. fi
  10415. fi
  10416. if test "${PBX_LIBXML2}" != 1; then
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: *** XML documentation will not be available because the 'libxml2' development package is missing." >&5
  10418. $as_echo "$as_me: *** XML documentation will not be available because the 'libxml2' development package is missing." >&6;}
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&5
  10420. $as_echo "$as_me: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&6;}
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: *** or install the 'libxml2' development package." >&5
  10422. $as_echo "$as_me: *** or install the 'libxml2' development package." >&6;}
  10423. exit 1
  10424. fi
  10425. fi
  10426. # some embedded systems omit internationalization (locale) support
  10427. for ac_header in xlocale.h
  10428. do :
  10429. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  10430. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  10431. cat >>confdefs.h <<_ACEOF
  10432. #define HAVE_XLOCALE_H 1
  10433. _ACEOF
  10434. fi
  10435. done
  10436. for ac_header in winsock.h winsock2.h
  10437. do :
  10438. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10439. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10440. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10441. cat >>confdefs.h <<_ACEOF
  10442. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10443. _ACEOF
  10444. fi
  10445. done
  10446. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  10447. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  10448. else
  10449. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  10450. fi
  10451. # Check whether --enable-largefile was given.
  10452. if test "${enable_largefile+set}" = set; then :
  10453. enableval=$enable_largefile;
  10454. fi
  10455. if test "$enable_largefile" != no; then
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10457. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10458. if ${ac_cv_sys_largefile_CC+:} false; then :
  10459. $as_echo_n "(cached) " >&6
  10460. else
  10461. ac_cv_sys_largefile_CC=no
  10462. if test "$GCC" != yes; then
  10463. ac_save_CC=$CC
  10464. while :; do
  10465. # IRIX 6.2 and later do not support large files by default,
  10466. # so use the C compiler's -n32 option if that helps.
  10467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10468. /* end confdefs.h. */
  10469. #include <sys/types.h>
  10470. /* Check that off_t can represent 2**63 - 1 correctly.
  10471. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10472. since some C++ compilers masquerading as C compilers
  10473. incorrectly reject 9223372036854775807. */
  10474. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10475. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10476. && LARGE_OFF_T % 2147483647 == 1)
  10477. ? 1 : -1];
  10478. int
  10479. main ()
  10480. {
  10481. ;
  10482. return 0;
  10483. }
  10484. _ACEOF
  10485. if ac_fn_c_try_compile "$LINENO"; then :
  10486. break
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext
  10489. CC="$CC -n32"
  10490. if ac_fn_c_try_compile "$LINENO"; then :
  10491. ac_cv_sys_largefile_CC=' -n32'; break
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext
  10494. break
  10495. done
  10496. CC=$ac_save_CC
  10497. rm -f conftest.$ac_ext
  10498. fi
  10499. fi
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10501. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10502. if test "$ac_cv_sys_largefile_CC" != no; then
  10503. CC=$CC$ac_cv_sys_largefile_CC
  10504. fi
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10506. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10507. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10508. $as_echo_n "(cached) " >&6
  10509. else
  10510. while :; do
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. #include <sys/types.h>
  10514. /* Check that off_t can represent 2**63 - 1 correctly.
  10515. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10516. since some C++ compilers masquerading as C compilers
  10517. incorrectly reject 9223372036854775807. */
  10518. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10519. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10520. && LARGE_OFF_T % 2147483647 == 1)
  10521. ? 1 : -1];
  10522. int
  10523. main ()
  10524. {
  10525. ;
  10526. return 0;
  10527. }
  10528. _ACEOF
  10529. if ac_fn_c_try_compile "$LINENO"; then :
  10530. ac_cv_sys_file_offset_bits=no; break
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10534. /* end confdefs.h. */
  10535. #define _FILE_OFFSET_BITS 64
  10536. #include <sys/types.h>
  10537. /* Check that off_t can represent 2**63 - 1 correctly.
  10538. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10539. since some C++ compilers masquerading as C compilers
  10540. incorrectly reject 9223372036854775807. */
  10541. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10542. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10543. && LARGE_OFF_T % 2147483647 == 1)
  10544. ? 1 : -1];
  10545. int
  10546. main ()
  10547. {
  10548. ;
  10549. return 0;
  10550. }
  10551. _ACEOF
  10552. if ac_fn_c_try_compile "$LINENO"; then :
  10553. ac_cv_sys_file_offset_bits=64; break
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10556. ac_cv_sys_file_offset_bits=unknown
  10557. break
  10558. done
  10559. fi
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10561. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10562. case $ac_cv_sys_file_offset_bits in #(
  10563. no | unknown) ;;
  10564. *)
  10565. cat >>confdefs.h <<_ACEOF
  10566. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10567. _ACEOF
  10568. ;;
  10569. esac
  10570. rm -rf conftest*
  10571. if test $ac_cv_sys_file_offset_bits = unknown; then
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10573. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10574. if ${ac_cv_sys_large_files+:} false; then :
  10575. $as_echo_n "(cached) " >&6
  10576. else
  10577. while :; do
  10578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10579. /* end confdefs.h. */
  10580. #include <sys/types.h>
  10581. /* Check that off_t can represent 2**63 - 1 correctly.
  10582. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10583. since some C++ compilers masquerading as C compilers
  10584. incorrectly reject 9223372036854775807. */
  10585. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10586. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10587. && LARGE_OFF_T % 2147483647 == 1)
  10588. ? 1 : -1];
  10589. int
  10590. main ()
  10591. {
  10592. ;
  10593. return 0;
  10594. }
  10595. _ACEOF
  10596. if ac_fn_c_try_compile "$LINENO"; then :
  10597. ac_cv_sys_large_files=no; break
  10598. fi
  10599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #define _LARGE_FILES 1
  10603. #include <sys/types.h>
  10604. /* Check that off_t can represent 2**63 - 1 correctly.
  10605. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10606. since some C++ compilers masquerading as C compilers
  10607. incorrectly reject 9223372036854775807. */
  10608. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10609. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10610. && LARGE_OFF_T % 2147483647 == 1)
  10611. ? 1 : -1];
  10612. int
  10613. main ()
  10614. {
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_c_try_compile "$LINENO"; then :
  10620. ac_cv_sys_large_files=1; break
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. ac_cv_sys_large_files=unknown
  10624. break
  10625. done
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10628. $as_echo "$ac_cv_sys_large_files" >&6; }
  10629. case $ac_cv_sys_large_files in #(
  10630. no | unknown) ;;
  10631. *)
  10632. cat >>confdefs.h <<_ACEOF
  10633. #define _LARGE_FILES $ac_cv_sys_large_files
  10634. _ACEOF
  10635. ;;
  10636. esac
  10637. rm -rf conftest*
  10638. fi
  10639. fi
  10640. # Checks for typedefs, structures, and compiler characteristics.
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10642. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10643. if ${ac_cv_header_stdbool_h+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10647. /* end confdefs.h. */
  10648. #include <stdbool.h>
  10649. #ifndef bool
  10650. "error: bool is not defined"
  10651. #endif
  10652. #ifndef false
  10653. "error: false is not defined"
  10654. #endif
  10655. #if false
  10656. "error: false is not 0"
  10657. #endif
  10658. #ifndef true
  10659. "error: true is not defined"
  10660. #endif
  10661. #if true != 1
  10662. "error: true is not 1"
  10663. #endif
  10664. #ifndef __bool_true_false_are_defined
  10665. "error: __bool_true_false_are_defined is not defined"
  10666. #endif
  10667. struct s { _Bool s: 1; _Bool t; } s;
  10668. char a[true == 1 ? 1 : -1];
  10669. char b[false == 0 ? 1 : -1];
  10670. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10671. char d[(bool) 0.5 == true ? 1 : -1];
  10672. /* See body of main program for 'e'. */
  10673. char f[(_Bool) 0.0 == false ? 1 : -1];
  10674. char g[true];
  10675. char h[sizeof (_Bool)];
  10676. char i[sizeof s.t];
  10677. enum { j = false, k = true, l = false * true, m = true * 256 };
  10678. /* The following fails for
  10679. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10680. _Bool n[m];
  10681. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10682. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10683. /* Catch a bug in an HP-UX C compiler. See
  10684. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10685. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10686. */
  10687. _Bool q = true;
  10688. _Bool *pq = &q;
  10689. int
  10690. main ()
  10691. {
  10692. bool e = &s;
  10693. *pq |= q;
  10694. *pq |= ! q;
  10695. /* Refer to every declared value, to avoid compiler optimizations. */
  10696. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10697. + !m + !n + !o + !p + !q + !pq);
  10698. ;
  10699. return 0;
  10700. }
  10701. _ACEOF
  10702. if ac_fn_c_try_compile "$LINENO"; then :
  10703. ac_cv_header_stdbool_h=yes
  10704. else
  10705. ac_cv_header_stdbool_h=no
  10706. fi
  10707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10708. fi
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10710. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10711. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10712. if test "x$ac_cv_type__Bool" = xyes; then :
  10713. cat >>confdefs.h <<_ACEOF
  10714. #define HAVE__BOOL 1
  10715. _ACEOF
  10716. fi
  10717. if test $ac_cv_header_stdbool_h = yes; then
  10718. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10719. fi
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10721. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10722. if ${ac_cv_c_const+:} false; then :
  10723. $as_echo_n "(cached) " >&6
  10724. else
  10725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10726. /* end confdefs.h. */
  10727. int
  10728. main ()
  10729. {
  10730. #ifndef __cplusplus
  10731. /* Ultrix mips cc rejects this sort of thing. */
  10732. typedef int charset[2];
  10733. const charset cs = { 0, 0 };
  10734. /* SunOS 4.1.1 cc rejects this. */
  10735. char const *const *pcpcc;
  10736. char **ppc;
  10737. /* NEC SVR4.0.2 mips cc rejects this. */
  10738. struct point {int x, y;};
  10739. static struct point const zero = {0,0};
  10740. /* AIX XL C 1.02.0.0 rejects this.
  10741. It does not let you subtract one const X* pointer from another in
  10742. an arm of an if-expression whose if-part is not a constant
  10743. expression */
  10744. const char *g = "string";
  10745. pcpcc = &g + (g ? g-g : 0);
  10746. /* HPUX 7.0 cc rejects these. */
  10747. ++pcpcc;
  10748. ppc = (char**) pcpcc;
  10749. pcpcc = (char const *const *) ppc;
  10750. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10751. char tx;
  10752. char *t = &tx;
  10753. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10754. *t++ = 0;
  10755. if (s) return 0;
  10756. }
  10757. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10758. int x[] = {25, 17};
  10759. const int *foo = &x[0];
  10760. ++foo;
  10761. }
  10762. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10763. typedef const int *iptr;
  10764. iptr p = 0;
  10765. ++p;
  10766. }
  10767. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10768. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10769. struct s { int j; const int *ap[3]; } bx;
  10770. struct s *b = &bx; b->j = 5;
  10771. }
  10772. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10773. const int foo = 10;
  10774. if (!foo) return 0;
  10775. }
  10776. return !cs[0] && !zero.x;
  10777. #endif
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_c_try_compile "$LINENO"; then :
  10783. ac_cv_c_const=yes
  10784. else
  10785. ac_cv_c_const=no
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10788. fi
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10790. $as_echo "$ac_cv_c_const" >&6; }
  10791. if test $ac_cv_c_const = no; then
  10792. $as_echo "#define const /**/" >>confdefs.h
  10793. fi
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  10795. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  10796. if ${ac_cv_type_uid_t+:} false; then :
  10797. $as_echo_n "(cached) " >&6
  10798. else
  10799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10800. /* end confdefs.h. */
  10801. #include <sys/types.h>
  10802. _ACEOF
  10803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10804. $EGREP "uid_t" >/dev/null 2>&1; then :
  10805. ac_cv_type_uid_t=yes
  10806. else
  10807. ac_cv_type_uid_t=no
  10808. fi
  10809. rm -f conftest*
  10810. fi
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  10812. $as_echo "$ac_cv_type_uid_t" >&6; }
  10813. if test $ac_cv_type_uid_t = no; then
  10814. $as_echo "#define uid_t int" >>confdefs.h
  10815. $as_echo "#define gid_t int" >>confdefs.h
  10816. fi
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10818. $as_echo_n "checking for inline... " >&6; }
  10819. if ${ac_cv_c_inline+:} false; then :
  10820. $as_echo_n "(cached) " >&6
  10821. else
  10822. ac_cv_c_inline=no
  10823. for ac_kw in inline __inline__ __inline; do
  10824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10825. /* end confdefs.h. */
  10826. #ifndef __cplusplus
  10827. typedef int foo_t;
  10828. static $ac_kw foo_t static_foo () {return 0; }
  10829. $ac_kw foo_t foo () {return 0; }
  10830. #endif
  10831. _ACEOF
  10832. if ac_fn_c_try_compile "$LINENO"; then :
  10833. ac_cv_c_inline=$ac_kw
  10834. fi
  10835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10836. test "$ac_cv_c_inline" != no && break
  10837. done
  10838. fi
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10840. $as_echo "$ac_cv_c_inline" >&6; }
  10841. case $ac_cv_c_inline in
  10842. inline | yes) ;;
  10843. *)
  10844. case $ac_cv_c_inline in
  10845. no) ac_val=;;
  10846. *) ac_val=$ac_cv_c_inline;;
  10847. esac
  10848. cat >>confdefs.h <<_ACEOF
  10849. #ifndef __cplusplus
  10850. #define inline $ac_val
  10851. #endif
  10852. _ACEOF
  10853. ;;
  10854. esac
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  10856. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  10857. if ${ac_cv_type_long_double_wider+:} false; then :
  10858. $as_echo_n "(cached) " >&6
  10859. else
  10860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10861. /* end confdefs.h. */
  10862. #include <float.h>
  10863. long double const a[] =
  10864. {
  10865. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  10866. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  10867. };
  10868. long double
  10869. f (long double x)
  10870. {
  10871. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  10872. + (x ? f (x) : 'c'));
  10873. }
  10874. int
  10875. main ()
  10876. {
  10877. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  10878. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  10879. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  10880. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  10881. && (int) LDBL_EPSILON == 0
  10882. )];
  10883. test_array [0] = 0;
  10884. return test_array [0];
  10885. ;
  10886. return 0;
  10887. }
  10888. _ACEOF
  10889. if ac_fn_c_try_compile "$LINENO"; then :
  10890. ac_cv_type_long_double_wider=yes
  10891. else
  10892. ac_cv_type_long_double_wider=no
  10893. fi
  10894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10895. fi
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  10897. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  10898. if test $ac_cv_type_long_double_wider = yes; then
  10899. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  10900. fi
  10901. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  10902. if test "x$ac_cv_type_mode_t" = xyes; then :
  10903. else
  10904. cat >>confdefs.h <<_ACEOF
  10905. #define mode_t int
  10906. _ACEOF
  10907. fi
  10908. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10909. if test "x$ac_cv_type_off_t" = xyes; then :
  10910. else
  10911. cat >>confdefs.h <<_ACEOF
  10912. #define off_t long int
  10913. _ACEOF
  10914. fi
  10915. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10916. if test "x$ac_cv_type_pid_t" = xyes; then :
  10917. else
  10918. cat >>confdefs.h <<_ACEOF
  10919. #define pid_t int
  10920. _ACEOF
  10921. fi
  10922. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10923. if test "x$ac_cv_type_size_t" = xyes; then :
  10924. else
  10925. cat >>confdefs.h <<_ACEOF
  10926. #define size_t unsigned int
  10927. _ACEOF
  10928. fi
  10929. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  10930. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  10931. cat >>confdefs.h <<_ACEOF
  10932. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  10933. _ACEOF
  10934. fi
  10935. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
  10936. #include <sys/socket.h>
  10937. "
  10938. if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
  10939. cat >>confdefs.h <<_ACEOF
  10940. #define HAVE_STRUCT_UCRED_UID 1
  10941. _ACEOF
  10942. fi
  10943. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
  10944. #include <sys/socket.h>
  10945. "
  10946. if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
  10947. cat >>confdefs.h <<_ACEOF
  10948. #define HAVE_STRUCT_UCRED_CR_UID 1
  10949. _ACEOF
  10950. fi
  10951. ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
  10952. #include <sys/socket.h>
  10953. "
  10954. if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
  10955. cat >>confdefs.h <<_ACEOF
  10956. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  10957. _ACEOF
  10958. fi
  10959. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifru.ifru_hwaddr" "ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" "#include <net/if.h>
  10960. "
  10961. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes; then :
  10962. cat >>confdefs.h <<_ACEOF
  10963. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  10964. _ACEOF
  10965. fi
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  10967. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  10968. if ${ac_cv_header_time+:} false; then :
  10969. $as_echo_n "(cached) " >&6
  10970. else
  10971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10972. /* end confdefs.h. */
  10973. #include <sys/types.h>
  10974. #include <sys/time.h>
  10975. #include <time.h>
  10976. int
  10977. main ()
  10978. {
  10979. if ((struct tm *) 0)
  10980. return 0;
  10981. ;
  10982. return 0;
  10983. }
  10984. _ACEOF
  10985. if ac_fn_c_try_compile "$LINENO"; then :
  10986. ac_cv_header_time=yes
  10987. else
  10988. ac_cv_header_time=no
  10989. fi
  10990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10991. fi
  10992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  10993. $as_echo "$ac_cv_header_time" >&6; }
  10994. if test $ac_cv_header_time = yes; then
  10995. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  10996. fi
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10998. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10999. if ${ac_cv_struct_tm+:} false; then :
  11000. $as_echo_n "(cached) " >&6
  11001. else
  11002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11003. /* end confdefs.h. */
  11004. #include <sys/types.h>
  11005. #include <time.h>
  11006. int
  11007. main ()
  11008. {
  11009. struct tm tm;
  11010. int *p = &tm.tm_sec;
  11011. return !p;
  11012. ;
  11013. return 0;
  11014. }
  11015. _ACEOF
  11016. if ac_fn_c_try_compile "$LINENO"; then :
  11017. ac_cv_struct_tm=time.h
  11018. else
  11019. ac_cv_struct_tm=sys/time.h
  11020. fi
  11021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11022. fi
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11024. $as_echo "$ac_cv_struct_tm" >&6; }
  11025. if test $ac_cv_struct_tm = sys/time.h; then
  11026. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11027. fi
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  11029. $as_echo_n "checking for working volatile... " >&6; }
  11030. if ${ac_cv_c_volatile+:} false; then :
  11031. $as_echo_n "(cached) " >&6
  11032. else
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. int
  11036. main ()
  11037. {
  11038. volatile int x;
  11039. int * volatile y = (int *) 0;
  11040. return !x && !y;
  11041. ;
  11042. return 0;
  11043. }
  11044. _ACEOF
  11045. if ac_fn_c_try_compile "$LINENO"; then :
  11046. ac_cv_c_volatile=yes
  11047. else
  11048. ac_cv_c_volatile=no
  11049. fi
  11050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11051. fi
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  11053. $as_echo "$ac_cv_c_volatile" >&6; }
  11054. if test $ac_cv_c_volatile = no; then
  11055. $as_echo "#define volatile /**/" >>confdefs.h
  11056. fi
  11057. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  11058. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  11059. cat >>confdefs.h <<_ACEOF
  11060. #define HAVE_PTRDIFF_T 1
  11061. _ACEOF
  11062. fi
  11063. stat_nsec_found=no
  11064. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
  11065. "
  11066. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  11067. cat >>confdefs.h <<_ACEOF
  11068. #define HAVE_STRUCT_STAT_ST_MTIM 1
  11069. _ACEOF
  11070. stat_nsec_found=yes
  11071. fi
  11072. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
  11073. "
  11074. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
  11075. cat >>confdefs.h <<_ACEOF
  11076. #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
  11077. _ACEOF
  11078. stat_nsec_found=yes
  11079. fi
  11080. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
  11081. "
  11082. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  11083. cat >>confdefs.h <<_ACEOF
  11084. #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
  11085. _ACEOF
  11086. stat_nsec_found=yes
  11087. fi
  11088. if test "${stat_nsec_found}" != yes; then
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
  11090. $as_echo "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
  11091. fi
  11092. # Checks for library functions.
  11093. for ac_header in unistd.h
  11094. do :
  11095. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11096. if test "x$ac_cv_header_unistd_h" = xyes; then :
  11097. cat >>confdefs.h <<_ACEOF
  11098. #define HAVE_UNISTD_H 1
  11099. _ACEOF
  11100. fi
  11101. done
  11102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  11103. $as_echo_n "checking for working chown... " >&6; }
  11104. if ${ac_cv_func_chown_works+:} false; then :
  11105. $as_echo_n "(cached) " >&6
  11106. else
  11107. if test "$cross_compiling" = yes; then :
  11108. ac_cv_func_chown_works=no
  11109. else
  11110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11111. /* end confdefs.h. */
  11112. $ac_includes_default
  11113. #include <fcntl.h>
  11114. int
  11115. main ()
  11116. {
  11117. char *f = "conftest.chown";
  11118. struct stat before, after;
  11119. if (creat (f, 0600) < 0)
  11120. return 1;
  11121. if (stat (f, &before) < 0)
  11122. return 1;
  11123. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  11124. return 1;
  11125. if (stat (f, &after) < 0)
  11126. return 1;
  11127. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  11128. ;
  11129. return 0;
  11130. }
  11131. _ACEOF
  11132. if ac_fn_c_try_run "$LINENO"; then :
  11133. ac_cv_func_chown_works=yes
  11134. else
  11135. ac_cv_func_chown_works=no
  11136. fi
  11137. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11138. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11139. fi
  11140. rm -f conftest.chown
  11141. fi
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  11143. $as_echo "$ac_cv_func_chown_works" >&6; }
  11144. if test $ac_cv_func_chown_works = yes; then
  11145. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  11146. fi
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  11148. $as_echo_n "checking whether closedir returns void... " >&6; }
  11149. if ${ac_cv_func_closedir_void+:} false; then :
  11150. $as_echo_n "(cached) " >&6
  11151. else
  11152. if test "$cross_compiling" = yes; then :
  11153. ac_cv_func_closedir_void=yes
  11154. else
  11155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11156. /* end confdefs.h. */
  11157. $ac_includes_default
  11158. #include <$ac_header_dirent>
  11159. #ifndef __cplusplus
  11160. int closedir ();
  11161. #endif
  11162. int
  11163. main ()
  11164. {
  11165. return closedir (opendir (".")) != 0;
  11166. ;
  11167. return 0;
  11168. }
  11169. _ACEOF
  11170. if ac_fn_c_try_run "$LINENO"; then :
  11171. ac_cv_func_closedir_void=no
  11172. else
  11173. ac_cv_func_closedir_void=yes
  11174. fi
  11175. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11176. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11177. fi
  11178. fi
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  11180. $as_echo "$ac_cv_func_closedir_void" >&6; }
  11181. if test $ac_cv_func_closedir_void = yes; then
  11182. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  11183. fi
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11185. $as_echo_n "checking for error_at_line... " >&6; }
  11186. if ${ac_cv_lib_error_at_line+:} false; then :
  11187. $as_echo_n "(cached) " >&6
  11188. else
  11189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11190. /* end confdefs.h. */
  11191. #include <error.h>
  11192. int
  11193. main ()
  11194. {
  11195. error_at_line (0, 0, "", 0, "an error occurred");
  11196. ;
  11197. return 0;
  11198. }
  11199. _ACEOF
  11200. if ac_fn_c_try_link "$LINENO"; then :
  11201. ac_cv_lib_error_at_line=yes
  11202. else
  11203. ac_cv_lib_error_at_line=no
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext \
  11206. conftest$ac_exeext conftest.$ac_ext
  11207. fi
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11209. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11210. if test $ac_cv_lib_error_at_line = no; then
  11211. case " $LIBOBJS " in
  11212. *" error.$ac_objext "* ) ;;
  11213. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11214. ;;
  11215. esac
  11216. fi
  11217. for ac_header in vfork.h
  11218. do :
  11219. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11220. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11221. cat >>confdefs.h <<_ACEOF
  11222. #define HAVE_VFORK_H 1
  11223. _ACEOF
  11224. fi
  11225. done
  11226. for ac_func in fork vfork
  11227. do :
  11228. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11229. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11230. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11231. cat >>confdefs.h <<_ACEOF
  11232. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11233. _ACEOF
  11234. fi
  11235. done
  11236. if test "x$ac_cv_func_fork" = xyes; then
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11238. $as_echo_n "checking for working fork... " >&6; }
  11239. if ${ac_cv_func_fork_works+:} false; then :
  11240. $as_echo_n "(cached) " >&6
  11241. else
  11242. if test "$cross_compiling" = yes; then :
  11243. ac_cv_func_fork_works=cross
  11244. else
  11245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11246. /* end confdefs.h. */
  11247. $ac_includes_default
  11248. int
  11249. main ()
  11250. {
  11251. /* By Ruediger Kuhlmann. */
  11252. return fork () < 0;
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. if ac_fn_c_try_run "$LINENO"; then :
  11258. ac_cv_func_fork_works=yes
  11259. else
  11260. ac_cv_func_fork_works=no
  11261. fi
  11262. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11263. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11264. fi
  11265. fi
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11267. $as_echo "$ac_cv_func_fork_works" >&6; }
  11268. else
  11269. ac_cv_func_fork_works=$ac_cv_func_fork
  11270. fi
  11271. if test "x$ac_cv_func_fork_works" = xcross; then
  11272. case $host in
  11273. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  11274. # Override, as these systems have only a dummy fork() stub
  11275. ac_cv_func_fork_works=no
  11276. ;;
  11277. *)
  11278. ac_cv_func_fork_works=yes
  11279. ;;
  11280. esac
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11282. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11283. fi
  11284. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11285. if test "x$ac_cv_func_vfork" = xyes; then
  11286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11287. $as_echo_n "checking for working vfork... " >&6; }
  11288. if ${ac_cv_func_vfork_works+:} false; then :
  11289. $as_echo_n "(cached) " >&6
  11290. else
  11291. if test "$cross_compiling" = yes; then :
  11292. ac_cv_func_vfork_works=cross
  11293. else
  11294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11295. /* end confdefs.h. */
  11296. /* Thanks to Paul Eggert for this test. */
  11297. $ac_includes_default
  11298. #include <sys/wait.h>
  11299. #ifdef HAVE_VFORK_H
  11300. # include <vfork.h>
  11301. #endif
  11302. /* On some sparc systems, changes by the child to local and incoming
  11303. argument registers are propagated back to the parent. The compiler
  11304. is told about this with #include <vfork.h>, but some compilers
  11305. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11306. static variable whose address is put into a register that is
  11307. clobbered by the vfork. */
  11308. static void
  11309. #ifdef __cplusplus
  11310. sparc_address_test (int arg)
  11311. # else
  11312. sparc_address_test (arg) int arg;
  11313. #endif
  11314. {
  11315. static pid_t child;
  11316. if (!child) {
  11317. child = vfork ();
  11318. if (child < 0) {
  11319. perror ("vfork");
  11320. _exit(2);
  11321. }
  11322. if (!child) {
  11323. arg = getpid();
  11324. write(-1, "", 0);
  11325. _exit (arg);
  11326. }
  11327. }
  11328. }
  11329. int
  11330. main ()
  11331. {
  11332. pid_t parent = getpid ();
  11333. pid_t child;
  11334. sparc_address_test (0);
  11335. child = vfork ();
  11336. if (child == 0) {
  11337. /* Here is another test for sparc vfork register problems. This
  11338. test uses lots of local variables, at least as many local
  11339. variables as main has allocated so far including compiler
  11340. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11341. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11342. reuse the register of parent for one of the local variables,
  11343. since it will think that parent can't possibly be used any more
  11344. in this routine. Assigning to the local variable will thus
  11345. munge parent in the parent process. */
  11346. pid_t
  11347. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11348. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11349. /* Convince the compiler that p..p7 are live; otherwise, it might
  11350. use the same hardware register for all 8 local variables. */
  11351. if (p != p1 || p != p2 || p != p3 || p != p4
  11352. || p != p5 || p != p6 || p != p7)
  11353. _exit(1);
  11354. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11355. from child file descriptors. If the child closes a descriptor
  11356. before it execs or exits, this munges the parent's descriptor
  11357. as well. Test for this by closing stdout in the child. */
  11358. _exit(close(fileno(stdout)) != 0);
  11359. } else {
  11360. int status;
  11361. struct stat st;
  11362. while (wait(&status) != child)
  11363. ;
  11364. return (
  11365. /* Was there some problem with vforking? */
  11366. child < 0
  11367. /* Did the child fail? (This shouldn't happen.) */
  11368. || status
  11369. /* Did the vfork/compiler bug occur? */
  11370. || parent != getpid()
  11371. /* Did the file descriptor bug occur? */
  11372. || fstat(fileno(stdout), &st) != 0
  11373. );
  11374. }
  11375. }
  11376. _ACEOF
  11377. if ac_fn_c_try_run "$LINENO"; then :
  11378. ac_cv_func_vfork_works=yes
  11379. else
  11380. ac_cv_func_vfork_works=no
  11381. fi
  11382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11383. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11384. fi
  11385. fi
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11387. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11388. fi;
  11389. if test "x$ac_cv_func_fork_works" = xcross; then
  11390. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11392. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11393. fi
  11394. if test "x$ac_cv_func_vfork_works" = xyes; then
  11395. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11396. else
  11397. $as_echo "#define vfork fork" >>confdefs.h
  11398. fi
  11399. if test "x$ac_cv_func_fork_works" = xyes; then
  11400. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11401. PBX_WORKING_FORK=1
  11402. fi
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11404. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11405. if ${ac_cv_sys_largefile_source+:} false; then :
  11406. $as_echo_n "(cached) " >&6
  11407. else
  11408. while :; do
  11409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11410. /* end confdefs.h. */
  11411. #include <sys/types.h> /* for off_t */
  11412. #include <stdio.h>
  11413. int
  11414. main ()
  11415. {
  11416. int (*fp) (FILE *, off_t, int) = fseeko;
  11417. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11418. ;
  11419. return 0;
  11420. }
  11421. _ACEOF
  11422. if ac_fn_c_try_link "$LINENO"; then :
  11423. ac_cv_sys_largefile_source=no; break
  11424. fi
  11425. rm -f core conftest.err conftest.$ac_objext \
  11426. conftest$ac_exeext conftest.$ac_ext
  11427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11428. /* end confdefs.h. */
  11429. #define _LARGEFILE_SOURCE 1
  11430. #include <sys/types.h> /* for off_t */
  11431. #include <stdio.h>
  11432. int
  11433. main ()
  11434. {
  11435. int (*fp) (FILE *, off_t, int) = fseeko;
  11436. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11437. ;
  11438. return 0;
  11439. }
  11440. _ACEOF
  11441. if ac_fn_c_try_link "$LINENO"; then :
  11442. ac_cv_sys_largefile_source=1; break
  11443. fi
  11444. rm -f core conftest.err conftest.$ac_objext \
  11445. conftest$ac_exeext conftest.$ac_ext
  11446. ac_cv_sys_largefile_source=unknown
  11447. break
  11448. done
  11449. fi
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11451. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11452. case $ac_cv_sys_largefile_source in #(
  11453. no | unknown) ;;
  11454. *)
  11455. cat >>confdefs.h <<_ACEOF
  11456. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11457. _ACEOF
  11458. ;;
  11459. esac
  11460. rm -rf conftest*
  11461. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11462. # in glibc 2.1.3, but that breaks too many other things.
  11463. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11464. if test $ac_cv_sys_largefile_source != unknown; then
  11465. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11466. fi
  11467. if test $ac_cv_c_compiler_gnu = yes; then
  11468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11469. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11470. if ${ac_cv_prog_gcc_traditional+:} false; then :
  11471. $as_echo_n "(cached) " >&6
  11472. else
  11473. ac_pattern="Autoconf.*'x'"
  11474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11475. /* end confdefs.h. */
  11476. #include <sgtty.h>
  11477. Autoconf TIOCGETP
  11478. _ACEOF
  11479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11480. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11481. ac_cv_prog_gcc_traditional=yes
  11482. else
  11483. ac_cv_prog_gcc_traditional=no
  11484. fi
  11485. rm -f conftest*
  11486. if test $ac_cv_prog_gcc_traditional = no; then
  11487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11488. /* end confdefs.h. */
  11489. #include <termio.h>
  11490. Autoconf TCGETA
  11491. _ACEOF
  11492. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11493. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11494. ac_cv_prog_gcc_traditional=yes
  11495. fi
  11496. rm -f conftest*
  11497. fi
  11498. fi
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11500. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11501. if test $ac_cv_prog_gcc_traditional = yes; then
  11502. CC="$CC -traditional"
  11503. fi
  11504. fi
  11505. # XXX: these are commented out until we determine whether it matters if our malloc()
  11506. # acts exactly like glibc's or not
  11507. # AC_FUNC_MALLOC
  11508. # AC_FUNC_REALLOC
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11510. $as_echo_n "checking for working memcmp... " >&6; }
  11511. if ${ac_cv_func_memcmp_working+:} false; then :
  11512. $as_echo_n "(cached) " >&6
  11513. else
  11514. if test "$cross_compiling" = yes; then :
  11515. ac_cv_func_memcmp_working=no
  11516. else
  11517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11518. /* end confdefs.h. */
  11519. $ac_includes_default
  11520. int
  11521. main ()
  11522. {
  11523. /* Some versions of memcmp are not 8-bit clean. */
  11524. char c0 = '\100', c1 = '\200', c2 = '\201';
  11525. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11526. return 1;
  11527. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11528. or more and with at least one buffer not starting on a 4-byte boundary.
  11529. William Lewis provided this test program. */
  11530. {
  11531. char foo[21];
  11532. char bar[21];
  11533. int i;
  11534. for (i = 0; i < 4; i++)
  11535. {
  11536. char *a = foo + i;
  11537. char *b = bar + i;
  11538. strcpy (a, "--------01111111");
  11539. strcpy (b, "--------10000000");
  11540. if (memcmp (a, b, 16) >= 0)
  11541. return 1;
  11542. }
  11543. return 0;
  11544. }
  11545. ;
  11546. return 0;
  11547. }
  11548. _ACEOF
  11549. if ac_fn_c_try_run "$LINENO"; then :
  11550. ac_cv_func_memcmp_working=yes
  11551. else
  11552. ac_cv_func_memcmp_working=no
  11553. fi
  11554. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11555. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11556. fi
  11557. fi
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11559. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11560. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11561. *" memcmp.$ac_objext "* ) ;;
  11562. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11563. ;;
  11564. esac
  11565. for ac_header in $ac_header_list
  11566. do :
  11567. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11568. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11569. "
  11570. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11571. cat >>confdefs.h <<_ACEOF
  11572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11573. _ACEOF
  11574. fi
  11575. done
  11576. for ac_func in getpagesize
  11577. do :
  11578. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11579. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11580. cat >>confdefs.h <<_ACEOF
  11581. #define HAVE_GETPAGESIZE 1
  11582. _ACEOF
  11583. fi
  11584. done
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11586. $as_echo_n "checking for working mmap... " >&6; }
  11587. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11588. $as_echo_n "(cached) " >&6
  11589. else
  11590. if test "$cross_compiling" = yes; then :
  11591. ac_cv_func_mmap_fixed_mapped=no
  11592. else
  11593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11594. /* end confdefs.h. */
  11595. $ac_includes_default
  11596. /* malloc might have been renamed as rpl_malloc. */
  11597. #undef malloc
  11598. /* Thanks to Mike Haertel and Jim Avera for this test.
  11599. Here is a matrix of mmap possibilities:
  11600. mmap private not fixed
  11601. mmap private fixed at somewhere currently unmapped
  11602. mmap private fixed at somewhere already mapped
  11603. mmap shared not fixed
  11604. mmap shared fixed at somewhere currently unmapped
  11605. mmap shared fixed at somewhere already mapped
  11606. For private mappings, we should verify that changes cannot be read()
  11607. back from the file, nor mmap's back from the file at a different
  11608. address. (There have been systems where private was not correctly
  11609. implemented like the infamous i386 svr4.0, and systems where the
  11610. VM page cache was not coherent with the file system buffer cache
  11611. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11612. For shared mappings, we should conversely verify that changes get
  11613. propagated back to all the places they're supposed to be.
  11614. Grep wants private fixed already mapped.
  11615. The main things grep needs to know about mmap are:
  11616. * does it exist and is it safe to write into the mmap'd area
  11617. * how to use it (BSD variants) */
  11618. #include <fcntl.h>
  11619. #include <sys/mman.h>
  11620. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11621. char *malloc ();
  11622. #endif
  11623. /* This mess was copied from the GNU getpagesize.h. */
  11624. #ifndef HAVE_GETPAGESIZE
  11625. # ifdef _SC_PAGESIZE
  11626. # define getpagesize() sysconf(_SC_PAGESIZE)
  11627. # else /* no _SC_PAGESIZE */
  11628. # ifdef HAVE_SYS_PARAM_H
  11629. # include <sys/param.h>
  11630. # ifdef EXEC_PAGESIZE
  11631. # define getpagesize() EXEC_PAGESIZE
  11632. # else /* no EXEC_PAGESIZE */
  11633. # ifdef NBPG
  11634. # define getpagesize() NBPG * CLSIZE
  11635. # ifndef CLSIZE
  11636. # define CLSIZE 1
  11637. # endif /* no CLSIZE */
  11638. # else /* no NBPG */
  11639. # ifdef NBPC
  11640. # define getpagesize() NBPC
  11641. # else /* no NBPC */
  11642. # ifdef PAGESIZE
  11643. # define getpagesize() PAGESIZE
  11644. # endif /* PAGESIZE */
  11645. # endif /* no NBPC */
  11646. # endif /* no NBPG */
  11647. # endif /* no EXEC_PAGESIZE */
  11648. # else /* no HAVE_SYS_PARAM_H */
  11649. # define getpagesize() 8192 /* punt totally */
  11650. # endif /* no HAVE_SYS_PARAM_H */
  11651. # endif /* no _SC_PAGESIZE */
  11652. #endif /* no HAVE_GETPAGESIZE */
  11653. int
  11654. main ()
  11655. {
  11656. char *data, *data2, *data3;
  11657. const char *cdata2;
  11658. int i, pagesize;
  11659. int fd, fd2;
  11660. pagesize = getpagesize ();
  11661. /* First, make a file with some known garbage in it. */
  11662. data = (char *) malloc (pagesize);
  11663. if (!data)
  11664. return 1;
  11665. for (i = 0; i < pagesize; ++i)
  11666. *(data + i) = rand ();
  11667. umask (0);
  11668. fd = creat ("conftest.mmap", 0600);
  11669. if (fd < 0)
  11670. return 2;
  11671. if (write (fd, data, pagesize) != pagesize)
  11672. return 3;
  11673. close (fd);
  11674. /* Next, check that the tail of a page is zero-filled. File must have
  11675. non-zero length, otherwise we risk SIGBUS for entire page. */
  11676. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11677. if (fd2 < 0)
  11678. return 4;
  11679. cdata2 = "";
  11680. if (write (fd2, cdata2, 1) != 1)
  11681. return 5;
  11682. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11683. if (data2 == MAP_FAILED)
  11684. return 6;
  11685. for (i = 0; i < pagesize; ++i)
  11686. if (*(data2 + i))
  11687. return 7;
  11688. close (fd2);
  11689. if (munmap (data2, pagesize))
  11690. return 8;
  11691. /* Next, try to mmap the file at a fixed address which already has
  11692. something else allocated at it. If we can, also make sure that
  11693. we see the same garbage. */
  11694. fd = open ("conftest.mmap", O_RDWR);
  11695. if (fd < 0)
  11696. return 9;
  11697. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11698. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11699. return 10;
  11700. for (i = 0; i < pagesize; ++i)
  11701. if (*(data + i) != *(data2 + i))
  11702. return 11;
  11703. /* Finally, make sure that changes to the mapped area do not
  11704. percolate back to the file as seen by read(). (This is a bug on
  11705. some variants of i386 svr4.0.) */
  11706. for (i = 0; i < pagesize; ++i)
  11707. *(data2 + i) = *(data2 + i) + 1;
  11708. data3 = (char *) malloc (pagesize);
  11709. if (!data3)
  11710. return 12;
  11711. if (read (fd, data3, pagesize) != pagesize)
  11712. return 13;
  11713. for (i = 0; i < pagesize; ++i)
  11714. if (*(data + i) != *(data3 + i))
  11715. return 14;
  11716. close (fd);
  11717. return 0;
  11718. }
  11719. _ACEOF
  11720. if ac_fn_c_try_run "$LINENO"; then :
  11721. ac_cv_func_mmap_fixed_mapped=yes
  11722. else
  11723. ac_cv_func_mmap_fixed_mapped=no
  11724. fi
  11725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11726. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11727. fi
  11728. fi
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11730. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11731. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11732. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11733. fi
  11734. rm -f conftest.mmap conftest.txt
  11735. for ac_header in sys/select.h sys/socket.h
  11736. do :
  11737. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11738. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11739. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11740. cat >>confdefs.h <<_ACEOF
  11741. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11742. _ACEOF
  11743. fi
  11744. done
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  11746. $as_echo_n "checking types of arguments for select... " >&6; }
  11747. if ${ac_cv_func_select_args+:} false; then :
  11748. $as_echo_n "(cached) " >&6
  11749. else
  11750. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  11751. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  11752. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. $ac_includes_default
  11756. #ifdef HAVE_SYS_SELECT_H
  11757. # include <sys/select.h>
  11758. #endif
  11759. #ifdef HAVE_SYS_SOCKET_H
  11760. # include <sys/socket.h>
  11761. #endif
  11762. int
  11763. main ()
  11764. {
  11765. extern int select ($ac_arg1,
  11766. $ac_arg234, $ac_arg234, $ac_arg234,
  11767. $ac_arg5);
  11768. ;
  11769. return 0;
  11770. }
  11771. _ACEOF
  11772. if ac_fn_c_try_compile "$LINENO"; then :
  11773. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11774. fi
  11775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11776. done
  11777. done
  11778. done
  11779. # Provide a safe default value.
  11780. : "${ac_cv_func_select_args=int,int *,struct timeval *}"
  11781. fi
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  11783. $as_echo "$ac_cv_func_select_args" >&6; }
  11784. ac_save_IFS=$IFS; IFS=','
  11785. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11786. IFS=$ac_save_IFS
  11787. shift
  11788. cat >>confdefs.h <<_ACEOF
  11789. #define SELECT_TYPE_ARG1 $1
  11790. _ACEOF
  11791. cat >>confdefs.h <<_ACEOF
  11792. #define SELECT_TYPE_ARG234 ($2)
  11793. _ACEOF
  11794. cat >>confdefs.h <<_ACEOF
  11795. #define SELECT_TYPE_ARG5 ($3)
  11796. _ACEOF
  11797. rm -f conftest*
  11798. if ${ac_cv_func_setvbuf_reversed+:} false; then :
  11799. $as_echo_n "(cached) " >&6
  11800. else
  11801. ac_cv_func_setvbuf_reversed=no
  11802. fi
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11804. $as_echo_n "checking return type of signal handlers... " >&6; }
  11805. if ${ac_cv_type_signal+:} false; then :
  11806. $as_echo_n "(cached) " >&6
  11807. else
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. #include <sys/types.h>
  11811. #include <signal.h>
  11812. int
  11813. main ()
  11814. {
  11815. return *(signal (0, 0)) (0) == 1;
  11816. ;
  11817. return 0;
  11818. }
  11819. _ACEOF
  11820. if ac_fn_c_try_compile "$LINENO"; then :
  11821. ac_cv_type_signal=int
  11822. else
  11823. ac_cv_type_signal=void
  11824. fi
  11825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11826. fi
  11827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11828. $as_echo "$ac_cv_type_signal" >&6; }
  11829. cat >>confdefs.h <<_ACEOF
  11830. #define RETSIGTYPE $ac_cv_type_signal
  11831. _ACEOF
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11833. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11834. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  11835. $as_echo_n "(cached) " >&6
  11836. else
  11837. rm -f conftest.sym conftest.file
  11838. echo >conftest.file
  11839. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11840. if test "$cross_compiling" = yes; then :
  11841. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11842. else
  11843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11844. /* end confdefs.h. */
  11845. $ac_includes_default
  11846. int
  11847. main ()
  11848. {
  11849. struct stat sbuf;
  11850. /* Linux will dereference the symlink and fail, as required by POSIX.
  11851. That is better in the sense that it means we will not
  11852. have to compile and use the lstat wrapper. */
  11853. return lstat ("conftest.sym/", &sbuf) == 0;
  11854. ;
  11855. return 0;
  11856. }
  11857. _ACEOF
  11858. if ac_fn_c_try_run "$LINENO"; then :
  11859. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11860. else
  11861. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11862. fi
  11863. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11864. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11865. fi
  11866. else
  11867. # If the `ln -s' command failed, then we probably don't even
  11868. # have an lstat function.
  11869. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11870. fi
  11871. rm -f conftest.sym conftest.file
  11872. fi
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11874. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11875. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11876. cat >>confdefs.h <<_ACEOF
  11877. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11878. _ACEOF
  11879. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11880. case " $LIBOBJS " in
  11881. *" lstat.$ac_objext "* ) ;;
  11882. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11883. ;;
  11884. esac
  11885. fi
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11887. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11888. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  11889. $as_echo_n "(cached) " >&6
  11890. else
  11891. if test "$cross_compiling" = yes; then :
  11892. ac_cv_func_stat_empty_string_bug=yes
  11893. else
  11894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11895. /* end confdefs.h. */
  11896. $ac_includes_default
  11897. int
  11898. main ()
  11899. {
  11900. struct stat sbuf;
  11901. return stat ("", &sbuf) == 0;
  11902. ;
  11903. return 0;
  11904. }
  11905. _ACEOF
  11906. if ac_fn_c_try_run "$LINENO"; then :
  11907. ac_cv_func_stat_empty_string_bug=no
  11908. else
  11909. ac_cv_func_stat_empty_string_bug=yes
  11910. fi
  11911. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11912. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11913. fi
  11914. fi
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11916. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11917. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11918. case " $LIBOBJS " in
  11919. *" stat.$ac_objext "* ) ;;
  11920. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11921. ;;
  11922. esac
  11923. cat >>confdefs.h <<_ACEOF
  11924. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11925. _ACEOF
  11926. fi
  11927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  11928. $as_echo_n "checking for working strcoll... " >&6; }
  11929. if ${ac_cv_func_strcoll_works+:} false; then :
  11930. $as_echo_n "(cached) " >&6
  11931. else
  11932. if test "$cross_compiling" = yes; then :
  11933. ac_cv_func_strcoll_works=no
  11934. else
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. $ac_includes_default
  11938. int
  11939. main ()
  11940. {
  11941. return (strcoll ("abc", "def") >= 0 ||
  11942. strcoll ("ABC", "DEF") >= 0 ||
  11943. strcoll ("123", "456") >= 0)
  11944. ;
  11945. return 0;
  11946. }
  11947. _ACEOF
  11948. if ac_fn_c_try_run "$LINENO"; then :
  11949. ac_cv_func_strcoll_works=yes
  11950. else
  11951. ac_cv_func_strcoll_works=no
  11952. fi
  11953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11954. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11955. fi
  11956. fi
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  11958. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  11959. if test $ac_cv_func_strcoll_works = yes; then
  11960. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  11961. fi
  11962. for ac_func in strftime
  11963. do :
  11964. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11965. if test "x$ac_cv_func_strftime" = xyes; then :
  11966. cat >>confdefs.h <<_ACEOF
  11967. #define HAVE_STRFTIME 1
  11968. _ACEOF
  11969. else
  11970. # strftime is in -lintl on SCO UNIX.
  11971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11972. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11973. if ${ac_cv_lib_intl_strftime+:} false; then :
  11974. $as_echo_n "(cached) " >&6
  11975. else
  11976. ac_check_lib_save_LIBS=$LIBS
  11977. LIBS="-lintl $LIBS"
  11978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11979. /* end confdefs.h. */
  11980. /* Override any GCC internal prototype to avoid an error.
  11981. Use char because int might match the return type of a GCC
  11982. builtin and then its argument prototype would still apply. */
  11983. #ifdef __cplusplus
  11984. extern "C"
  11985. #endif
  11986. char strftime ();
  11987. int
  11988. main ()
  11989. {
  11990. return strftime ();
  11991. ;
  11992. return 0;
  11993. }
  11994. _ACEOF
  11995. if ac_fn_c_try_link "$LINENO"; then :
  11996. ac_cv_lib_intl_strftime=yes
  11997. else
  11998. ac_cv_lib_intl_strftime=no
  11999. fi
  12000. rm -f core conftest.err conftest.$ac_objext \
  12001. conftest$ac_exeext conftest.$ac_ext
  12002. LIBS=$ac_check_lib_save_LIBS
  12003. fi
  12004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12005. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12006. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  12007. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12008. LIBS="-lintl $LIBS"
  12009. fi
  12010. fi
  12011. done
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  12013. $as_echo_n "checking for working strnlen... " >&6; }
  12014. if ${ac_cv_func_strnlen_working+:} false; then :
  12015. $as_echo_n "(cached) " >&6
  12016. else
  12017. if test "$cross_compiling" = yes; then :
  12018. # Guess no on AIX systems, yes otherwise.
  12019. case "$host_os" in
  12020. aix*) ac_cv_func_strnlen_working=no;;
  12021. *) ac_cv_func_strnlen_working=yes;;
  12022. esac
  12023. else
  12024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12025. /* end confdefs.h. */
  12026. $ac_includes_default
  12027. int
  12028. main ()
  12029. {
  12030. #define S "foobar"
  12031. #define S_LEN (sizeof S - 1)
  12032. /* At least one implementation is buggy: that of AIX 4.3 would
  12033. give strnlen (S, 1) == 3. */
  12034. int i;
  12035. for (i = 0; i < S_LEN + 1; ++i)
  12036. {
  12037. int expected = i <= S_LEN ? i : S_LEN;
  12038. if (strnlen (S, i) != expected)
  12039. return 1;
  12040. }
  12041. return 0;
  12042. ;
  12043. return 0;
  12044. }
  12045. _ACEOF
  12046. if ac_fn_c_try_run "$LINENO"; then :
  12047. ac_cv_func_strnlen_working=yes
  12048. else
  12049. ac_cv_func_strnlen_working=no
  12050. fi
  12051. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12052. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12053. fi
  12054. fi
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  12056. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  12057. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  12058. *" strnlen.$ac_objext "* ) ;;
  12059. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  12060. ;;
  12061. esac
  12062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12063. $as_echo_n "checking for working strtod... " >&6; }
  12064. if ${ac_cv_func_strtod+:} false; then :
  12065. $as_echo_n "(cached) " >&6
  12066. else
  12067. if test "$cross_compiling" = yes; then :
  12068. ac_cv_func_strtod=no
  12069. else
  12070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12071. /* end confdefs.h. */
  12072. $ac_includes_default
  12073. #ifndef strtod
  12074. double strtod ();
  12075. #endif
  12076. int
  12077. main()
  12078. {
  12079. {
  12080. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12081. char *string = " +69";
  12082. char *term;
  12083. double value;
  12084. value = strtod (string, &term);
  12085. if (value != 69 || term != (string + 4))
  12086. return 1;
  12087. }
  12088. {
  12089. /* Under Solaris 2.4, strtod returns the wrong value for the
  12090. terminating character under some conditions. */
  12091. char *string = "NaN";
  12092. char *term;
  12093. strtod (string, &term);
  12094. if (term != string && *(term - 1) == 0)
  12095. return 1;
  12096. }
  12097. return 0;
  12098. }
  12099. _ACEOF
  12100. if ac_fn_c_try_run "$LINENO"; then :
  12101. ac_cv_func_strtod=yes
  12102. else
  12103. ac_cv_func_strtod=no
  12104. fi
  12105. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12106. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12107. fi
  12108. fi
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12110. $as_echo "$ac_cv_func_strtod" >&6; }
  12111. if test $ac_cv_func_strtod = no; then
  12112. case " $LIBOBJS " in
  12113. *" strtod.$ac_objext "* ) ;;
  12114. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12115. ;;
  12116. esac
  12117. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12118. if test "x$ac_cv_func_pow" = xyes; then :
  12119. fi
  12120. if test $ac_cv_func_pow = no; then
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12122. $as_echo_n "checking for pow in -lm... " >&6; }
  12123. if ${ac_cv_lib_m_pow+:} false; then :
  12124. $as_echo_n "(cached) " >&6
  12125. else
  12126. ac_check_lib_save_LIBS=$LIBS
  12127. LIBS="-lm $LIBS"
  12128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12129. /* end confdefs.h. */
  12130. /* Override any GCC internal prototype to avoid an error.
  12131. Use char because int might match the return type of a GCC
  12132. builtin and then its argument prototype would still apply. */
  12133. #ifdef __cplusplus
  12134. extern "C"
  12135. #endif
  12136. char pow ();
  12137. int
  12138. main ()
  12139. {
  12140. return pow ();
  12141. ;
  12142. return 0;
  12143. }
  12144. _ACEOF
  12145. if ac_fn_c_try_link "$LINENO"; then :
  12146. ac_cv_lib_m_pow=yes
  12147. else
  12148. ac_cv_lib_m_pow=no
  12149. fi
  12150. rm -f core conftest.err conftest.$ac_objext \
  12151. conftest$ac_exeext conftest.$ac_ext
  12152. LIBS=$ac_check_lib_save_LIBS
  12153. fi
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12155. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12156. if test "x$ac_cv_lib_m_pow" = xyes; then :
  12157. POW_LIB=-lm
  12158. else
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12160. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12161. fi
  12162. fi
  12163. fi
  12164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  12165. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  12166. if ${ac_cv_func_utime_null+:} false; then :
  12167. $as_echo_n "(cached) " >&6
  12168. else
  12169. rm -f conftest.data; >conftest.data
  12170. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  12171. if test "$cross_compiling" = yes; then :
  12172. ac_cv_func_utime_null='guessing yes'
  12173. else
  12174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12175. /* end confdefs.h. */
  12176. $ac_includes_default
  12177. #ifdef HAVE_UTIME_H
  12178. # include <utime.h>
  12179. #endif
  12180. int
  12181. main ()
  12182. {
  12183. struct stat s, t;
  12184. return ! (stat ("conftest.data", &s) == 0
  12185. && utime ("conftest.data", 0) == 0
  12186. && stat ("conftest.data", &t) == 0
  12187. && t.st_mtime >= s.st_mtime
  12188. && t.st_mtime - s.st_mtime < 120);
  12189. ;
  12190. return 0;
  12191. }
  12192. _ACEOF
  12193. if ac_fn_c_try_run "$LINENO"; then :
  12194. ac_cv_func_utime_null=yes
  12195. else
  12196. ac_cv_func_utime_null=no
  12197. fi
  12198. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12199. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12200. fi
  12201. fi
  12202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  12203. $as_echo "$ac_cv_func_utime_null" >&6; }
  12204. if test "x$ac_cv_func_utime_null" != xno; then
  12205. ac_cv_func_utime_null=yes
  12206. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  12207. fi
  12208. rm -f conftest.data
  12209. for ac_func in vprintf
  12210. do :
  12211. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12212. if test "x$ac_cv_func_vprintf" = xyes; then :
  12213. cat >>confdefs.h <<_ACEOF
  12214. #define HAVE_VPRINTF 1
  12215. _ACEOF
  12216. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12217. if test "x$ac_cv_func__doprnt" = xyes; then :
  12218. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12219. fi
  12220. fi
  12221. done
  12222. for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap ntohll newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
  12223. do :
  12224. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12225. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12226. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12227. cat >>confdefs.h <<_ACEOF
  12228. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12229. _ACEOF
  12230. fi
  12231. done
  12232. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  12233. # so that AC_CHECK_FUNCS can detect functions in that library.
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12235. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12236. if ${ac_cv_lib_m_sqrt+:} false; then :
  12237. $as_echo_n "(cached) " >&6
  12238. else
  12239. ac_check_lib_save_LIBS=$LIBS
  12240. LIBS="-lm $LIBS"
  12241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12242. /* end confdefs.h. */
  12243. /* Override any GCC internal prototype to avoid an error.
  12244. Use char because int might match the return type of a GCC
  12245. builtin and then its argument prototype would still apply. */
  12246. #ifdef __cplusplus
  12247. extern "C"
  12248. #endif
  12249. char sqrt ();
  12250. int
  12251. main ()
  12252. {
  12253. return sqrt ();
  12254. ;
  12255. return 0;
  12256. }
  12257. _ACEOF
  12258. if ac_fn_c_try_link "$LINENO"; then :
  12259. ac_cv_lib_m_sqrt=yes
  12260. else
  12261. ac_cv_lib_m_sqrt=no
  12262. fi
  12263. rm -f core conftest.err conftest.$ac_objext \
  12264. conftest$ac_exeext conftest.$ac_ext
  12265. LIBS=$ac_check_lib_save_LIBS
  12266. fi
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12268. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12269. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  12270. cat >>confdefs.h <<_ACEOF
  12271. #define HAVE_LIBM 1
  12272. _ACEOF
  12273. LIBS="-lm $LIBS"
  12274. fi
  12275. # BSD might not have exp2, and/or log2
  12276. for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil
  12277. do :
  12278. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12279. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12280. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12281. cat >>confdefs.h <<_ACEOF
  12282. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12283. _ACEOF
  12284. fi
  12285. done
  12286. # Certain architectures don't really have long double, even though
  12287. # AC_CHECK_FUNCS would otherwise find the following functions.
  12288. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  12289. for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill
  12290. do :
  12291. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12292. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12293. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12296. _ACEOF
  12297. fi
  12298. done
  12299. fi
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  12301. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  12302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12303. /* end confdefs.h. */
  12304. #include <limits.h>
  12305. int
  12306. main ()
  12307. {
  12308. long long foo = LLONG_MAX
  12309. ;
  12310. return 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_c_try_link "$LINENO"; then :
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12315. $as_echo "yes" >&6; }
  12316. $as_echo "#define HAVE_LLONG_MAX 1" >>confdefs.h
  12317. else
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12319. $as_echo "no" >&6; }
  12320. fi
  12321. rm -f core conftest.err conftest.$ac_objext \
  12322. conftest$ac_exeext conftest.$ac_ext
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  12324. $as_echo_n "checking for timersub in time.h... " >&6; }
  12325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12326. /* end confdefs.h. */
  12327. #include <sys/time.h>
  12328. int
  12329. main ()
  12330. {
  12331. struct timeval *a; timersub(a, a, a);
  12332. ;
  12333. return 0;
  12334. }
  12335. _ACEOF
  12336. if ac_fn_c_try_link "$LINENO"; then :
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12338. $as_echo "yes" >&6; }
  12339. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  12340. else
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12342. $as_echo "no" >&6; }
  12343. fi
  12344. rm -f core conftest.err conftest.$ac_objext \
  12345. conftest$ac_exeext conftest.$ac_ext
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  12347. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  12348. old_LDFLAGS=${LDFLAGS}
  12349. cat >conftest.dynamics <<_ACEOF
  12350. {
  12351. *ast_*;
  12352. };
  12353. _ACEOF
  12354. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  12355. PBX_DYNAMIC_LIST=0
  12356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12357. /* end confdefs.h. */
  12358. int
  12359. main ()
  12360. {
  12361. ;
  12362. return 0;
  12363. }
  12364. _ACEOF
  12365. if ac_fn_c_try_link "$LINENO"; then :
  12366. PBX_DYNAMIC_LIST=1
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12368. $as_echo "yes" >&6; }
  12369. else
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12371. $as_echo "no" >&6; }
  12372. fi
  12373. rm -f core conftest.err conftest.$ac_objext \
  12374. conftest$ac_exeext conftest.$ac_ext
  12375. LDFLAGS=${old_LDFLAGS}
  12376. rm -f conftest.dynamics
  12377. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  12378. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  12379. HAS_POLL=1
  12380. $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  12381. fi
  12382. # Check whether --enable-internal-poll was given.
  12383. if test "${enable_internal_poll+set}" = set; then :
  12384. enableval=$enable_internal_poll; case "${enableval}" in
  12385. y|ye|yes) HAS_POLL="";;
  12386. n|no) HAS_POLL="${HAS_POLL}" ;;
  12387. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  12388. esac
  12389. fi
  12390. # Check whether --enable-asteriskssl was given.
  12391. if test "${enable_asteriskssl+set}" = set; then :
  12392. enableval=$enable_asteriskssl; case "${enableval}" in
  12393. y|ye|yes) AST_ASTERISKSSL=yes ;;
  12394. n|no) AST_ASTERISKSSL=no ;;
  12395. *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
  12396. esac
  12397. else
  12398. AST_ASTERISKSSL=yes
  12399. fi
  12400. # https support (in main/http.c) uses funopen on BSD systems,
  12401. # fopencookie on linux
  12402. for ac_func in funopen fopencookie
  12403. do :
  12404. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12405. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12406. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12407. cat >>confdefs.h <<_ACEOF
  12408. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12409. _ACEOF
  12410. fi
  12411. done
  12412. for ac_func in inet_aton
  12413. do :
  12414. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12415. if test "x$ac_cv_func_inet_aton" = xyes; then :
  12416. cat >>confdefs.h <<_ACEOF
  12417. #define HAVE_INET_ATON 1
  12418. _ACEOF
  12419. fi
  12420. done
  12421. # check if we have IP_PKTINFO constant defined
  12422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  12423. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  12424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12425. /* end confdefs.h. */
  12426. #include <netinet/in.h>
  12427. int
  12428. main ()
  12429. {
  12430. int pi = IP_PKTINFO;
  12431. ;
  12432. return 0;
  12433. }
  12434. _ACEOF
  12435. if ac_fn_c_try_link "$LINENO"; then :
  12436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12437. $as_echo "yes" >&6; }
  12438. $as_echo "#define HAVE_PKTINFO 1" >>confdefs.h
  12439. else
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12441. $as_echo "no" >&6; }
  12442. fi
  12443. rm -f core conftest.err conftest.$ac_objext \
  12444. conftest$ac_exeext conftest.$ac_ext
  12445. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  12447. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  12448. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12449. $as_echo_n "(cached) " >&6
  12450. else
  12451. ac_func_search_save_LIBS=$LIBS
  12452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12453. /* end confdefs.h. */
  12454. /* Override any GCC internal prototype to avoid an error.
  12455. Use char because int might match the return type of a GCC
  12456. builtin and then its argument prototype would still apply. */
  12457. #ifdef __cplusplus
  12458. extern "C"
  12459. #endif
  12460. char gethostbyname_r ();
  12461. int
  12462. main ()
  12463. {
  12464. return gethostbyname_r ();
  12465. ;
  12466. return 0;
  12467. }
  12468. _ACEOF
  12469. for ac_lib in '' socket nsl; do
  12470. if test -z "$ac_lib"; then
  12471. ac_res="none required"
  12472. else
  12473. ac_res=-l$ac_lib
  12474. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12475. fi
  12476. if ac_fn_c_try_link "$LINENO"; then :
  12477. ac_cv_search_gethostbyname_r=$ac_res
  12478. fi
  12479. rm -f core conftest.err conftest.$ac_objext \
  12480. conftest$ac_exeext
  12481. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12482. break
  12483. fi
  12484. done
  12485. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12486. else
  12487. ac_cv_search_gethostbyname_r=no
  12488. fi
  12489. rm conftest.$ac_ext
  12490. LIBS=$ac_func_search_save_LIBS
  12491. fi
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  12493. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  12494. ac_res=$ac_cv_search_gethostbyname_r
  12495. if test "$ac_res" != no; then :
  12496. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12497. fi
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  12499. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  12500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12501. /* end confdefs.h. */
  12502. #include <stdlib.h>
  12503. #include <netdb.h>
  12504. int
  12505. main ()
  12506. {
  12507. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  12508. ;
  12509. return 0;
  12510. }
  12511. _ACEOF
  12512. if ac_fn_c_try_link "$LINENO"; then :
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12514. $as_echo "yes" >&6; }
  12515. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  12516. else
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12518. $as_echo "no" >&6; }
  12519. fi
  12520. rm -f core conftest.err conftest.$ac_objext \
  12521. conftest$ac_exeext conftest.$ac_ext
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  12523. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  12524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12525. /* end confdefs.h. */
  12526. #include <stdlib.h>
  12527. #include <netdb.h>
  12528. int
  12529. main ()
  12530. {
  12531. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  12532. ;
  12533. return 0;
  12534. }
  12535. _ACEOF
  12536. if ac_fn_c_try_link "$LINENO"; then :
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12538. $as_echo "yes" >&6; }
  12539. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  12540. else
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12542. $as_echo "no" >&6; }
  12543. fi
  12544. rm -f core conftest.err conftest.$ac_objext \
  12545. conftest$ac_exeext conftest.$ac_ext
  12546. ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  12547. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  12548. cat >>confdefs.h <<_ACEOF
  12549. #define HAVE_BYTESWAP_H 1
  12550. _ACEOF
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  12553. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  12554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12555. /* end confdefs.h. */
  12556. #include <sys/endian.h>
  12557. int
  12558. main ()
  12559. {
  12560. int a = 1; int b = __swap16(a);
  12561. ;
  12562. return 0;
  12563. }
  12564. _ACEOF
  12565. if ac_fn_c_try_link "$LINENO"; then :
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12567. $as_echo "yes" >&6; }
  12568. $as_echo "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  12569. else
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12571. $as_echo "no" >&6; }
  12572. fi
  12573. rm -f core conftest.err conftest.$ac_objext \
  12574. conftest$ac_exeext conftest.$ac_ext
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  12576. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  12577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12578. /* end confdefs.h. */
  12579. #include <sys/endian.h>
  12580. int
  12581. main ()
  12582. {
  12583. int a = 1; int b = bswap16(a);
  12584. ;
  12585. return 0;
  12586. }
  12587. _ACEOF
  12588. if ac_fn_c_try_link "$LINENO"; then :
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12590. $as_echo "yes" >&6; }
  12591. $as_echo "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  12592. else
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12594. $as_echo "no" >&6; }
  12595. fi
  12596. rm -f core conftest.err conftest.$ac_objext \
  12597. conftest$ac_exeext conftest.$ac_ext
  12598. if test "${cross_compiling}" = "no";
  12599. then
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
  12601. $as_echo_n "checking for /dev/urandom... " >&6; }
  12602. if ${ac_cv_file__dev_urandom+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. test "$cross_compiling" = yes &&
  12606. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  12607. if test -r "/dev/urandom"; then
  12608. ac_cv_file__dev_urandom=yes
  12609. else
  12610. ac_cv_file__dev_urandom=no
  12611. fi
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
  12614. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  12615. if test "x$ac_cv_file__dev_urandom" = xyes; then :
  12616. $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
  12617. fi
  12618. fi
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  12620. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  12621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12622. /* end confdefs.h. */
  12623. #include <locale.h>
  12624. int
  12625. main ()
  12626. {
  12627. locale_t lt = NULL
  12628. ;
  12629. return 0;
  12630. }
  12631. _ACEOF
  12632. if ac_fn_c_try_link "$LINENO"; then :
  12633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12634. $as_echo "yes" >&6; }
  12635. $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  12636. else
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12638. $as_echo "no" >&6; }
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  12640. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  12641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12642. /* end confdefs.h. */
  12643. #include <xlocale.h>
  12644. int
  12645. main ()
  12646. {
  12647. locale_t lt = NULL
  12648. ;
  12649. return 0;
  12650. }
  12651. _ACEOF
  12652. if ac_fn_c_try_link "$LINENO"; then :
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12654. $as_echo "yes" >&6; }
  12655. $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  12656. else
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12658. $as_echo "no" >&6; }
  12659. fi
  12660. rm -f core conftest.err conftest.$ac_objext \
  12661. conftest$ac_exeext conftest.$ac_ext
  12662. fi
  12663. rm -f core conftest.err conftest.$ac_objext \
  12664. conftest$ac_exeext conftest.$ac_ext
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  12666. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  12667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12668. /* end confdefs.h. */
  12669. #include <fcntl.h>
  12670. int
  12671. main ()
  12672. {
  12673. int a = O_EVTONLY;
  12674. ;
  12675. return 0;
  12676. }
  12677. _ACEOF
  12678. if ac_fn_c_try_link "$LINENO"; then :
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12680. $as_echo "yes" >&6; }
  12681. $as_echo "#define HAVE_O_EVTONLY 1" >>confdefs.h
  12682. else
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12684. $as_echo "no" >&6; }
  12685. fi
  12686. rm -f core conftest.err conftest.$ac_objext \
  12687. conftest$ac_exeext conftest.$ac_ext
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  12689. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. #include <fcntl.h>
  12693. int
  12694. main ()
  12695. {
  12696. int a = O_SYMLINK;
  12697. ;
  12698. return 0;
  12699. }
  12700. _ACEOF
  12701. if ac_fn_c_try_link "$LINENO"; then :
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12703. $as_echo "yes" >&6; }
  12704. $as_echo "#define HAVE_O_SYMLINK 1" >>confdefs.h
  12705. else
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12707. $as_echo "no" >&6; }
  12708. fi
  12709. rm -f core conftest.err conftest.$ac_objext \
  12710. conftest$ac_exeext conftest.$ac_ext
  12711. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  12712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  12713. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  12714. saved_cppflags="${CPPFLAGS}"
  12715. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  12716. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  12717. fi
  12718. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  12719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12720. /* end confdefs.h. */
  12721. #include <pthread.h>
  12722. int
  12723. main ()
  12724. {
  12725. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  12726. int foo = 0;
  12727. #else
  12728. int foo = bar;
  12729. #endif
  12730. 0
  12731. ;
  12732. return 0;
  12733. }
  12734. _ACEOF
  12735. if ac_fn_c_try_compile "$LINENO"; then :
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12737. $as_echo "yes" >&6; }
  12738. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  12739. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  12740. else
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12742. $as_echo "no" >&6; }
  12743. fi
  12744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12745. CPPFLAGS="${saved_cppflags}"
  12746. fi
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  12748. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  12749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12750. /* end confdefs.h. */
  12751. #include <pthread.h>
  12752. int
  12753. main ()
  12754. {
  12755. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  12756. ;
  12757. return 0;
  12758. }
  12759. _ACEOF
  12760. if ac_fn_c_try_link "$LINENO"; then :
  12761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12762. $as_echo "yes" >&6; }
  12763. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  12764. else
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12766. $as_echo "no" >&6; }
  12767. fi
  12768. rm -f core conftest.err conftest.$ac_objext \
  12769. conftest$ac_exeext conftest.$ac_ext
  12770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  12771. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  12772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12773. /* end confdefs.h. */
  12774. #include <pthread.h>
  12775. int
  12776. main ()
  12777. {
  12778. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  12779. ;
  12780. return 0;
  12781. }
  12782. _ACEOF
  12783. if ac_fn_c_try_link "$LINENO"; then :
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12785. $as_echo "yes" >&6; }
  12786. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  12787. else
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12789. $as_echo "no" >&6; }
  12790. fi
  12791. rm -f core conftest.err conftest.$ac_objext \
  12792. conftest$ac_exeext conftest.$ac_ext
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  12794. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  12795. save_LIBS="$LIBS"
  12796. save_CFLAGS="$CFLAGS"
  12797. LIBS="$PTHREAD_LIBS $LIBS"
  12798. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12800. /* end confdefs.h. */
  12801. #include <pthread.h>
  12802. #include <time.h>
  12803. int
  12804. main ()
  12805. {
  12806. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  12807. ;
  12808. return 0;
  12809. }
  12810. _ACEOF
  12811. if ac_fn_c_try_link "$LINENO"; then :
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12813. $as_echo "yes" >&6; }
  12814. ac_cv_pthread_rwlock_timedwrlock="yes"
  12815. else
  12816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12817. $as_echo "no" >&6; }
  12818. ac_cv_pthread_rwlock_timedwrlock="no"
  12819. fi
  12820. rm -f core conftest.err conftest.$ac_objext \
  12821. conftest$ac_exeext conftest.$ac_ext
  12822. LIBS="$save_LIBS"
  12823. CFLAGS="$save_CFLAGS"
  12824. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  12825. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  12826. fi
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  12828. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  12829. saved_CFLAGS="${CFLAGS}"
  12830. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  12831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12832. /* end confdefs.h. */
  12833. #include <pthread.h>
  12834. void empty(){}
  12835. int
  12836. main ()
  12837. {
  12838. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  12839. ;
  12840. return 0;
  12841. }
  12842. _ACEOF
  12843. if ac_fn_c_try_compile "$LINENO"; then :
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12845. $as_echo "no" >&6; }
  12846. ac_cv_pthread_once_needsbraces="no"
  12847. else
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12849. $as_echo "yes" >&6; }
  12850. ac_cv_pthread_once_needsbraces="yes"
  12851. fi
  12852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12853. CFLAGS="${saved_CFLAGS}"
  12854. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  12855. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  12856. fi
  12857. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  12859. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  12860. saved_cppflags="${CPPFLAGS}"
  12861. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  12862. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  12863. fi
  12864. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  12865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12866. /* end confdefs.h. */
  12867. #include <pthread.h>
  12868. int
  12869. main ()
  12870. {
  12871. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  12872. int foo = 0;
  12873. #else
  12874. int foo = bar;
  12875. #endif
  12876. 0
  12877. ;
  12878. return 0;
  12879. }
  12880. _ACEOF
  12881. if ac_fn_c_try_compile "$LINENO"; then :
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12883. $as_echo "yes" >&6; }
  12884. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  12885. $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  12886. else
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12888. $as_echo "no" >&6; }
  12889. fi
  12890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12891. CPPFLAGS="${saved_cppflags}"
  12892. fi
  12893. # Can we compare a mutex to its initial value?
  12894. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  12895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  12896. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  12897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12898. /* end confdefs.h. */
  12899. #include <pthread.h>
  12900. int
  12901. main ()
  12902. {
  12903. pthread_mutex_t lock;
  12904. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  12905. return 0;
  12906. }
  12907. return 0
  12908. ;
  12909. return 0;
  12910. }
  12911. _ACEOF
  12912. if ac_fn_c_try_link "$LINENO"; then :
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12914. $as_echo "yes" >&6; }
  12915. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  12916. else
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12918. $as_echo "no" >&6; }
  12919. fi
  12920. rm -f core conftest.err conftest.$ac_objext \
  12921. conftest$ac_exeext conftest.$ac_ext
  12922. #if test "${cross_compiling}" = "no";
  12923. #then
  12924. #AC_MSG_CHECKING(for working epoll support)
  12925. #AC_LINK_IFELSE(
  12926. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  12927. # if (res < 0)
  12928. # return 1;
  12929. # close (res);
  12930. # return 0;]),
  12931. #AC_MSG_RESULT(yes)
  12932. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  12933. #AC_MSG_RESULT(no)
  12934. #)
  12935. #fi
  12936. # for FreeBSD thr_self
  12937. for ac_header in sys/thr.h
  12938. do :
  12939. ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
  12940. if test "x$ac_cv_header_sys_thr_h" = xyes; then :
  12941. cat >>confdefs.h <<_ACEOF
  12942. #define HAVE_SYS_THR_H 1
  12943. _ACEOF
  12944. fi
  12945. done
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  12947. $as_echo_n "checking for compiler atomic operations... " >&6; }
  12948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12949. /* end confdefs.h. */
  12950. int
  12951. main ()
  12952. {
  12953. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  12954. ;
  12955. return 0;
  12956. }
  12957. _ACEOF
  12958. if ac_fn_c_try_link "$LINENO"; then :
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12960. $as_echo "yes" >&6; }
  12961. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  12962. else
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12964. $as_echo "no" >&6; }
  12965. fi
  12966. rm -f core conftest.err conftest.$ac_objext \
  12967. conftest$ac_exeext conftest.$ac_ext
  12968. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  12970. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  12971. if test "$cross_compiling" = yes; then :
  12972. # It's unlikely an embedded system will have this.
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  12974. $as_echo "unknown" >&6; }
  12975. else
  12976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12977. /* end confdefs.h. */
  12978. #include <stdio.h>
  12979. int
  12980. main ()
  12981. {
  12982. printf("%s", NULL)
  12983. ;
  12984. return 0;
  12985. }
  12986. _ACEOF
  12987. if ac_fn_c_try_run "$LINENO"; then :
  12988. $as_echo "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  12989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12990. $as_echo "yes" >&6; }
  12991. else
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12993. $as_echo "no" >&6; }
  12994. fi
  12995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12996. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12997. fi
  12998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  12999. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  13000. if test "$cross_compiling" = yes; then :
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  13002. $as_echo "cross-compile" >&6; }
  13003. else
  13004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13005. /* end confdefs.h. */
  13006. #include <stdio.h>
  13007. #include <sys/select.h>
  13008. #include <sys/time.h>
  13009. #include <sys/resource.h>
  13010. #include <string.h>
  13011. #include <errno.h>
  13012. #include <stdlib.h>
  13013. #include <sys/types.h>
  13014. #include <sys/stat.h>
  13015. #include <fcntl.h>
  13016. #include <unistd.h>
  13017. int
  13018. main ()
  13019. {
  13020. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  13021. int fd0, fd1;
  13022. struct timeval tv = { 0, };
  13023. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  13024. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  13025. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  13026. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  13027. FD_SET(fd0, (fd_set *) &fds);
  13028. FD_SET(fd1, (fd_set *) &fds);
  13029. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  13030. exit(0)
  13031. ;
  13032. return 0;
  13033. }
  13034. _ACEOF
  13035. if ac_fn_c_try_run "$LINENO"; then :
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13037. $as_echo "yes" >&6; }
  13038. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  13039. else
  13040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13041. $as_echo "no" >&6; }
  13042. fi
  13043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13045. fi
  13046. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  13047. if test "$cross_compiling" = yes; then :
  13048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13050. as_fn_error $? "cannot run test program while cross compiling
  13051. See \`config.log' for more details" "$LINENO" 5; }
  13052. else
  13053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13054. /* end confdefs.h. */
  13055. #include <unistd.h>
  13056. #include <sys/types.h>
  13057. #include <stdlib.h>
  13058. int
  13059. main ()
  13060. {
  13061. if (getuid() != 0) { exit(1); }
  13062. ;
  13063. return 0;
  13064. }
  13065. _ACEOF
  13066. if ac_fn_c_try_run "$LINENO"; then :
  13067. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  13068. fi
  13069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13070. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13071. fi
  13072. fi
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  13074. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  13075. saved_CFLAGS="$CFLAGS"
  13076. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13077. if test "x" = "x"
  13078. then
  13079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13080. /* end confdefs.h. */
  13081. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  13082. int
  13083. main ()
  13084. {
  13085. ;
  13086. return 0;
  13087. }
  13088. _ACEOF
  13089. if ac_fn_c_try_compile "$LINENO"; then :
  13090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13091. $as_echo "yes" >&6; }
  13092. cat >>confdefs.h <<_ACEOF
  13093. #define HAVE_ATTRIBUTE_pure 1
  13094. _ACEOF
  13095. else
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13097. $as_echo "no" >&6; }
  13098. fi
  13099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13100. else
  13101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13102. /* end confdefs.h. */
  13103. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13104. int
  13105. main ()
  13106. {
  13107. ;
  13108. return 0;
  13109. }
  13110. _ACEOF
  13111. if ac_fn_c_try_compile "$LINENO"; then :
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13113. $as_echo "yes" >&6; }
  13114. cat >>confdefs.h <<_ACEOF
  13115. #define HAVE_ATTRIBUTE_pure 1
  13116. _ACEOF
  13117. else
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13119. $as_echo "no" >&6; }
  13120. fi
  13121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13122. fi
  13123. CFLAGS="$saved_CFLAGS"
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  13125. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  13126. saved_CFLAGS="$CFLAGS"
  13127. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13128. if test "x" = "x"
  13129. then
  13130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13131. /* end confdefs.h. */
  13132. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  13133. int
  13134. main ()
  13135. {
  13136. ;
  13137. return 0;
  13138. }
  13139. _ACEOF
  13140. if ac_fn_c_try_compile "$LINENO"; then :
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13142. $as_echo "yes" >&6; }
  13143. cat >>confdefs.h <<_ACEOF
  13144. #define HAVE_ATTRIBUTE_malloc 1
  13145. _ACEOF
  13146. else
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13148. $as_echo "no" >&6; }
  13149. fi
  13150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13151. else
  13152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13153. /* end confdefs.h. */
  13154. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13155. int
  13156. main ()
  13157. {
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_c_try_compile "$LINENO"; then :
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13164. $as_echo "yes" >&6; }
  13165. cat >>confdefs.h <<_ACEOF
  13166. #define HAVE_ATTRIBUTE_malloc 1
  13167. _ACEOF
  13168. else
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13170. $as_echo "no" >&6; }
  13171. fi
  13172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13173. fi
  13174. CFLAGS="$saved_CFLAGS"
  13175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  13176. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  13177. saved_CFLAGS="$CFLAGS"
  13178. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13179. if test "x" = "x"
  13180. then
  13181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13182. /* end confdefs.h. */
  13183. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  13184. int
  13185. main ()
  13186. {
  13187. ;
  13188. return 0;
  13189. }
  13190. _ACEOF
  13191. if ac_fn_c_try_compile "$LINENO"; then :
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13193. $as_echo "yes" >&6; }
  13194. cat >>confdefs.h <<_ACEOF
  13195. #define HAVE_ATTRIBUTE_const 1
  13196. _ACEOF
  13197. else
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13199. $as_echo "no" >&6; }
  13200. fi
  13201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13202. else
  13203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13204. /* end confdefs.h. */
  13205. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13206. int
  13207. main ()
  13208. {
  13209. ;
  13210. return 0;
  13211. }
  13212. _ACEOF
  13213. if ac_fn_c_try_compile "$LINENO"; then :
  13214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13215. $as_echo "yes" >&6; }
  13216. cat >>confdefs.h <<_ACEOF
  13217. #define HAVE_ATTRIBUTE_const 1
  13218. _ACEOF
  13219. else
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13221. $as_echo "no" >&6; }
  13222. fi
  13223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13224. fi
  13225. CFLAGS="$saved_CFLAGS"
  13226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  13227. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  13228. saved_CFLAGS="$CFLAGS"
  13229. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13230. if test "x" = "x"
  13231. then
  13232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13233. /* end confdefs.h. */
  13234. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  13235. int
  13236. main ()
  13237. {
  13238. ;
  13239. return 0;
  13240. }
  13241. _ACEOF
  13242. if ac_fn_c_try_compile "$LINENO"; then :
  13243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13244. $as_echo "yes" >&6; }
  13245. cat >>confdefs.h <<_ACEOF
  13246. #define HAVE_ATTRIBUTE_unused 1
  13247. _ACEOF
  13248. else
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13250. $as_echo "no" >&6; }
  13251. fi
  13252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13253. else
  13254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13255. /* end confdefs.h. */
  13256. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13257. int
  13258. main ()
  13259. {
  13260. ;
  13261. return 0;
  13262. }
  13263. _ACEOF
  13264. if ac_fn_c_try_compile "$LINENO"; then :
  13265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13266. $as_echo "yes" >&6; }
  13267. cat >>confdefs.h <<_ACEOF
  13268. #define HAVE_ATTRIBUTE_unused 1
  13269. _ACEOF
  13270. else
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13272. $as_echo "no" >&6; }
  13273. fi
  13274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13275. fi
  13276. CFLAGS="$saved_CFLAGS"
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  13278. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  13279. saved_CFLAGS="$CFLAGS"
  13280. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13281. if test "x" = "x"
  13282. then
  13283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13284. /* end confdefs.h. */
  13285. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  13286. int
  13287. main ()
  13288. {
  13289. ;
  13290. return 0;
  13291. }
  13292. _ACEOF
  13293. if ac_fn_c_try_compile "$LINENO"; then :
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13295. $as_echo "yes" >&6; }
  13296. cat >>confdefs.h <<_ACEOF
  13297. #define HAVE_ATTRIBUTE_always_inline 1
  13298. _ACEOF
  13299. else
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13301. $as_echo "no" >&6; }
  13302. fi
  13303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13304. else
  13305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13306. /* end confdefs.h. */
  13307. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13308. int
  13309. main ()
  13310. {
  13311. ;
  13312. return 0;
  13313. }
  13314. _ACEOF
  13315. if ac_fn_c_try_compile "$LINENO"; then :
  13316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13317. $as_echo "yes" >&6; }
  13318. cat >>confdefs.h <<_ACEOF
  13319. #define HAVE_ATTRIBUTE_always_inline 1
  13320. _ACEOF
  13321. else
  13322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13323. $as_echo "no" >&6; }
  13324. fi
  13325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13326. fi
  13327. CFLAGS="$saved_CFLAGS"
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  13329. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  13330. saved_CFLAGS="$CFLAGS"
  13331. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13332. if test "x" = "x"
  13333. then
  13334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13335. /* end confdefs.h. */
  13336. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  13337. int
  13338. main ()
  13339. {
  13340. ;
  13341. return 0;
  13342. }
  13343. _ACEOF
  13344. if ac_fn_c_try_compile "$LINENO"; then :
  13345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13346. $as_echo "yes" >&6; }
  13347. cat >>confdefs.h <<_ACEOF
  13348. #define HAVE_ATTRIBUTE_deprecated 1
  13349. _ACEOF
  13350. else
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13352. $as_echo "no" >&6; }
  13353. fi
  13354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13355. else
  13356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13357. /* end confdefs.h. */
  13358. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13359. int
  13360. main ()
  13361. {
  13362. ;
  13363. return 0;
  13364. }
  13365. _ACEOF
  13366. if ac_fn_c_try_compile "$LINENO"; then :
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13368. $as_echo "yes" >&6; }
  13369. cat >>confdefs.h <<_ACEOF
  13370. #define HAVE_ATTRIBUTE_deprecated 1
  13371. _ACEOF
  13372. else
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13374. $as_echo "no" >&6; }
  13375. fi
  13376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13377. fi
  13378. CFLAGS="$saved_CFLAGS"
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  13380. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  13381. saved_CFLAGS="$CFLAGS"
  13382. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13383. if test "x" = "x"
  13384. then
  13385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13386. /* end confdefs.h. */
  13387. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  13388. int
  13389. main ()
  13390. {
  13391. ;
  13392. return 0;
  13393. }
  13394. _ACEOF
  13395. if ac_fn_c_try_compile "$LINENO"; then :
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13397. $as_echo "yes" >&6; }
  13398. cat >>confdefs.h <<_ACEOF
  13399. #define HAVE_ATTRIBUTE_sentinel 1
  13400. _ACEOF
  13401. else
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13403. $as_echo "no" >&6; }
  13404. fi
  13405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13406. else
  13407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13408. /* end confdefs.h. */
  13409. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13410. int
  13411. main ()
  13412. {
  13413. ;
  13414. return 0;
  13415. }
  13416. _ACEOF
  13417. if ac_fn_c_try_compile "$LINENO"; then :
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13419. $as_echo "yes" >&6; }
  13420. cat >>confdefs.h <<_ACEOF
  13421. #define HAVE_ATTRIBUTE_sentinel 1
  13422. _ACEOF
  13423. else
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13425. $as_echo "no" >&6; }
  13426. fi
  13427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13428. fi
  13429. CFLAGS="$saved_CFLAGS"
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  13431. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  13432. saved_CFLAGS="$CFLAGS"
  13433. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13434. if test "x" = "x"
  13435. then
  13436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13437. /* end confdefs.h. */
  13438. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  13439. int
  13440. main ()
  13441. {
  13442. ;
  13443. return 0;
  13444. }
  13445. _ACEOF
  13446. if ac_fn_c_try_compile "$LINENO"; then :
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13448. $as_echo "yes" >&6; }
  13449. cat >>confdefs.h <<_ACEOF
  13450. #define HAVE_ATTRIBUTE_warn_unused_result 1
  13451. _ACEOF
  13452. else
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. $as_echo "no" >&6; }
  13455. fi
  13456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13457. else
  13458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13459. /* end confdefs.h. */
  13460. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13461. int
  13462. main ()
  13463. {
  13464. ;
  13465. return 0;
  13466. }
  13467. _ACEOF
  13468. if ac_fn_c_try_compile "$LINENO"; then :
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13470. $as_echo "yes" >&6; }
  13471. cat >>confdefs.h <<_ACEOF
  13472. #define HAVE_ATTRIBUTE_warn_unused_result 1
  13473. _ACEOF
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. fi
  13478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13479. fi
  13480. CFLAGS="$saved_CFLAGS"
  13481. # Support weak symbols on a platform specific basis. The Mac OS X
  13482. # (Darwin) support must be isolated from the other platforms because
  13483. # it has caused other platforms to fail.
  13484. #
  13485. case "${OSARCH}" in
  13486. darwin*)
  13487. # Allow weak symbol support on Darwin platforms only because there
  13488. # is active community support for it.
  13489. # However, Darwin seems to break weak symbols for each new version.
  13490. #
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak_import' support" >&5
  13492. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  13493. saved_CFLAGS="$CFLAGS"
  13494. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13495. PBX_WEAKREF=0
  13496. if test "x" = "x"
  13497. then
  13498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13499. /* end confdefs.h. */
  13500. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  13501. int
  13502. main ()
  13503. {
  13504. ;
  13505. return 0;
  13506. }
  13507. _ACEOF
  13508. if ac_fn_c_try_compile "$LINENO"; then :
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13510. $as_echo "yes" >&6; }
  13511. PBX_WEAKREF=1
  13512. cat >>confdefs.h <<_ACEOF
  13513. #define HAVE_ATTRIBUTE_weak_import 1
  13514. _ACEOF
  13515. else
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13517. $as_echo "no" >&6; }
  13518. fi
  13519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13520. else
  13521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13522. /* end confdefs.h. */
  13523. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13524. int
  13525. main ()
  13526. {
  13527. ;
  13528. return 0;
  13529. }
  13530. _ACEOF
  13531. if ac_fn_c_try_compile "$LINENO"; then :
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13533. $as_echo "yes" >&6; }
  13534. PBX_WEAKREF=1
  13535. cat >>confdefs.h <<_ACEOF
  13536. #define HAVE_ATTRIBUTE_weak_import 1
  13537. _ACEOF
  13538. else
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13540. $as_echo "no" >&6; }
  13541. fi
  13542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13543. fi
  13544. CFLAGS="$saved_CFLAGS"
  13545. # Several other platforms including Linux have GCC versions that
  13546. # define the weak attribute. However, this attribute is only
  13547. # setup for use in the code by Darwin.
  13548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak' support" >&5
  13549. $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
  13550. saved_CFLAGS="$CFLAGS"
  13551. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13552. PBX_WEAKREF=0
  13553. if test "x" = "x"
  13554. then
  13555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13556. /* end confdefs.h. */
  13557. void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
  13558. int
  13559. main ()
  13560. {
  13561. ;
  13562. return 0;
  13563. }
  13564. _ACEOF
  13565. if ac_fn_c_try_compile "$LINENO"; then :
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13567. $as_echo "yes" >&6; }
  13568. PBX_WEAKREF=1
  13569. cat >>confdefs.h <<_ACEOF
  13570. #define HAVE_ATTRIBUTE_weak 1
  13571. _ACEOF
  13572. else
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13574. $as_echo "no" >&6; }
  13575. fi
  13576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13577. else
  13578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13579. /* end confdefs.h. */
  13580. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13581. int
  13582. main ()
  13583. {
  13584. ;
  13585. return 0;
  13586. }
  13587. _ACEOF
  13588. if ac_fn_c_try_compile "$LINENO"; then :
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13590. $as_echo "yes" >&6; }
  13591. PBX_WEAKREF=1
  13592. cat >>confdefs.h <<_ACEOF
  13593. #define HAVE_ATTRIBUTE_weak 1
  13594. _ACEOF
  13595. else
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13597. $as_echo "no" >&6; }
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13600. fi
  13601. CFLAGS="$saved_CFLAGS"
  13602. ;;
  13603. linux-gnu)
  13604. # Primarily support weak symbols on Linux platforms.
  13605. #
  13606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  13607. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  13608. saved_CFLAGS="$CFLAGS"
  13609. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13610. PBX_WEAKREF=0
  13611. if test "xweakref("foo")" = "x"
  13612. then
  13613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13614. /* end confdefs.h. */
  13615. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  13616. int
  13617. main ()
  13618. {
  13619. ;
  13620. return 0;
  13621. }
  13622. _ACEOF
  13623. if ac_fn_c_try_compile "$LINENO"; then :
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13625. $as_echo "yes" >&6; }
  13626. PBX_WEAKREF=1
  13627. cat >>confdefs.h <<_ACEOF
  13628. #define HAVE_ATTRIBUTE_weakref 1
  13629. _ACEOF
  13630. else
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13632. $as_echo "no" >&6; }
  13633. fi
  13634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13635. else
  13636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13637. /* end confdefs.h. */
  13638. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  13639. int
  13640. main ()
  13641. {
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_compile "$LINENO"; then :
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13648. $as_echo "yes" >&6; }
  13649. PBX_WEAKREF=1
  13650. cat >>confdefs.h <<_ACEOF
  13651. #define HAVE_ATTRIBUTE_weakref 1
  13652. _ACEOF
  13653. else
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13655. $as_echo "no" >&6; }
  13656. fi
  13657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13658. fi
  13659. CFLAGS="$saved_CFLAGS"
  13660. ;;
  13661. *)
  13662. # Allow weak symbols on other platforms. However, any problems
  13663. # with this feature on other platforms must be fixed by the
  13664. # community.
  13665. #
  13666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  13667. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  13668. saved_CFLAGS="$CFLAGS"
  13669. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13670. PBX_WEAKREF=0
  13671. if test "xweakref("foo")" = "x"
  13672. then
  13673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13674. /* end confdefs.h. */
  13675. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  13676. int
  13677. main ()
  13678. {
  13679. ;
  13680. return 0;
  13681. }
  13682. _ACEOF
  13683. if ac_fn_c_try_compile "$LINENO"; then :
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13685. $as_echo "yes" >&6; }
  13686. PBX_WEAKREF=1
  13687. cat >>confdefs.h <<_ACEOF
  13688. #define HAVE_ATTRIBUTE_weakref 1
  13689. _ACEOF
  13690. else
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13692. $as_echo "no" >&6; }
  13693. fi
  13694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13695. else
  13696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13697. /* end confdefs.h. */
  13698. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  13699. int
  13700. main ()
  13701. {
  13702. ;
  13703. return 0;
  13704. }
  13705. _ACEOF
  13706. if ac_fn_c_try_compile "$LINENO"; then :
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13708. $as_echo "yes" >&6; }
  13709. PBX_WEAKREF=1
  13710. cat >>confdefs.h <<_ACEOF
  13711. #define HAVE_ATTRIBUTE_weakref 1
  13712. _ACEOF
  13713. else
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13715. $as_echo "no" >&6; }
  13716. fi
  13717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13718. fi
  13719. CFLAGS="$saved_CFLAGS"
  13720. ;;
  13721. esac
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  13723. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  13724. saved_CFLAGS="${CFLAGS}"
  13725. CFLAGS="${CFLAGS} -ffunction-sections"
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. int
  13729. main ()
  13730. {
  13731. int x = 1;
  13732. ;
  13733. return 0;
  13734. }
  13735. _ACEOF
  13736. if ac_fn_c_try_compile "$LINENO"; then :
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13738. $as_echo "yes" >&6; }
  13739. saved_LDFLAGS="${LDFLAGS}"
  13740. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  13742. $as_echo_n "checking for --gc-sections support... " >&6; }
  13743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13744. /* end confdefs.h. */
  13745. int
  13746. main ()
  13747. {
  13748. int x = 1;
  13749. ;
  13750. return 0;
  13751. }
  13752. _ACEOF
  13753. if ac_fn_c_try_link "$LINENO"; then :
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13755. $as_echo "yes" >&6; }
  13756. GC_CFLAGS="-ffunction-sections"
  13757. GC_LDFLAGS="-Wl,--gc-sections"
  13758. else
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13760. $as_echo "no" >&6; }
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext \
  13763. conftest$ac_exeext conftest.$ac_ext
  13764. LDFLAGS="${saved_LDFLAGS}"
  13765. else
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13767. $as_echo "no" >&6; }
  13768. fi
  13769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13770. CFLAGS="${saved_CFLAGS}"
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  13772. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  13773. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13775. $as_echo "yes" >&6; }
  13776. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  13777. else
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13779. $as_echo "no" >&6; }
  13780. AST_DECLARATION_AFTER_STATEMENT=
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
  13783. $as_echo_n "checking for -Wtrampolines support... " >&6; }
  13784. if $(${CC} -Wtrampolines -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13786. $as_echo "yes" >&6; }
  13787. AST_TRAMPOLINES=-Wtrampolines
  13788. else
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13790. $as_echo "no" >&6; }
  13791. AST_TRAMPOLINES=
  13792. fi
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  13794. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  13795. if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13797. $as_echo "yes" >&6; }
  13798. AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
  13799. else
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13801. $as_echo "no" >&6; }
  13802. AST_FORTIFY_SOURCE=
  13803. fi
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  13805. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  13806. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13808. $as_echo "yes" >&6; }
  13809. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  13810. else
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13812. $as_echo "no" >&6; }
  13813. AST_NO_STRICT_OVERFLOW=
  13814. fi
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  13816. $as_echo_n "checking for -Wshadow... " >&6; }
  13817. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13819. $as_echo "yes" >&6; }
  13820. AST_SHADOW_WARNINGS=-Wshadow
  13821. else
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13823. $as_echo "no" >&6; }
  13824. AST_SHADOW_WARNINGS=
  13825. fi
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
  13827. $as_echo_n "checking for -march=native support... " >&6; }
  13828. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13829. if test "${CONFIG_CFLAGS}" = ""; then
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13831. $as_echo "yes" >&6; }
  13832. AST_NATIVE_ARCH=1
  13833. else
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
  13835. $as_echo "user CFLAGS present" >&6; }
  13836. AST_NATIVE_ARCH=
  13837. fi
  13838. else
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13840. $as_echo "no" >&6; }
  13841. AST_NATIVE_ARCH=
  13842. fi
  13843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13844. /* end confdefs.h. */
  13845. int
  13846. main ()
  13847. {
  13848. #if defined(__clang__)
  13849. choke
  13850. #endif
  13851. ;
  13852. return 0;
  13853. }
  13854. _ACEOF
  13855. if ac_fn_c_try_link "$LINENO"; then :
  13856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fnested-functions" >&5
  13857. $as_echo_n "checking for gcc -fnested-functions... " >&6; }
  13858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13859. /* end confdefs.h. */
  13860. int
  13861. main ()
  13862. {
  13863. auto void foo(void); void foo(void) {}
  13864. ;
  13865. return 0;
  13866. }
  13867. _ACEOF
  13868. if ac_fn_c_try_compile "$LINENO"; then :
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13870. $as_echo "no" >&6; }
  13871. AST_NESTED_FUNCTIONS=
  13872. else
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13874. $as_echo "yes" >&6; }
  13875. AST_NESTED_FUNCTIONS=-fnested-functions
  13876. fi
  13877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13878. else
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
  13880. $as_echo_n "checking for clang -fblocks... " >&6; }
  13881. if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
  13882. AST_CLANG_BLOCKS_LIBS=""
  13883. AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13885. $as_echo "yes" >&6; }
  13886. elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
  13887. AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
  13888. AST_CLANG_BLOCKS="-fblocks"
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13890. $as_echo "yes" >&6; }
  13891. else
  13892. as_fn_error $? "\"BlocksRuntime is required for clang\"" "$LINENO" 5
  13893. fi
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext \
  13896. conftest$ac_exeext conftest.$ac_ext
  13897. # Check whether --enable-rpath was given.
  13898. if test "${enable_rpath+set}" = set; then :
  13899. enableval=$enable_rpath; case "${enableval}" in
  13900. y|ye|yes) check_rpath=yes ;;
  13901. n|no) check_rpath=no ;;
  13902. *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
  13903. esac
  13904. else
  13905. check_rpath=yes
  13906. fi
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  13908. $as_echo_n "checking whether to use rpath... " >&6; }
  13909. AST_RPATH=
  13910. if test "${check_rpath}" != yes; then
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
  13912. $as_echo "skipped" >&6; }
  13913. elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
  13914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  13915. $as_echo "not needed" >&6; }
  13916. else
  13917. case "${host_os}" in
  13918. darwin*)
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
  13920. $as_echo "not supported" >&6; }
  13921. # We set macosx_version_min to 10.4, which doesn't
  13922. # support rpath. However, we set install_name on our
  13923. # dylibs, so it's not strictly necessary.
  13924. ;;
  13925. *)
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
  13927. $as_echo "required" >&6; }
  13928. AST_RPATH="-Wl,-rpath,${libdir}"
  13929. ;;
  13930. esac
  13931. fi
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  13933. $as_echo_n "checking for sysinfo... " >&6; }
  13934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13935. /* end confdefs.h. */
  13936. #include <sys/sysinfo.h>
  13937. int
  13938. main ()
  13939. {
  13940. struct sysinfo sys_info; int uptime = sys_info.uptime
  13941. ;
  13942. return 0;
  13943. }
  13944. _ACEOF
  13945. if ac_fn_c_try_link "$LINENO"; then :
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13947. $as_echo "yes" >&6; }
  13948. $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
  13949. else
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13951. $as_echo "no" >&6; }
  13952. fi
  13953. rm -f core conftest.err conftest.$ac_objext \
  13954. conftest$ac_exeext conftest.$ac_ext
  13955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  13956. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  13957. if ${ac_cv_search_res_9_ninit+:} false; then :
  13958. $as_echo_n "(cached) " >&6
  13959. else
  13960. ac_func_search_save_LIBS=$LIBS
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. /* Override any GCC internal prototype to avoid an error.
  13964. Use char because int might match the return type of a GCC
  13965. builtin and then its argument prototype would still apply. */
  13966. #ifdef __cplusplus
  13967. extern "C"
  13968. #endif
  13969. char res_9_ninit ();
  13970. int
  13971. main ()
  13972. {
  13973. return res_9_ninit ();
  13974. ;
  13975. return 0;
  13976. }
  13977. _ACEOF
  13978. for ac_lib in '' resolv; do
  13979. if test -z "$ac_lib"; then
  13980. ac_res="none required"
  13981. else
  13982. ac_res=-l$ac_lib
  13983. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13984. fi
  13985. if ac_fn_c_try_link "$LINENO"; then :
  13986. ac_cv_search_res_9_ninit=$ac_res
  13987. fi
  13988. rm -f core conftest.err conftest.$ac_objext \
  13989. conftest$ac_exeext
  13990. if ${ac_cv_search_res_9_ninit+:} false; then :
  13991. break
  13992. fi
  13993. done
  13994. if ${ac_cv_search_res_9_ninit+:} false; then :
  13995. else
  13996. ac_cv_search_res_9_ninit=no
  13997. fi
  13998. rm conftest.$ac_ext
  13999. LIBS=$ac_func_search_save_LIBS
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  14002. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  14003. ac_res=$ac_cv_search_res_9_ninit
  14004. if test "$ac_res" != no; then :
  14005. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14006. fi
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  14008. $as_echo_n "checking for res_ninit... " >&6; }
  14009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14010. /* end confdefs.h. */
  14011. #ifdef HAVE_SYS_SOCKET_H
  14012. #include <sys/socket.h>
  14013. #endif
  14014. #ifdef HAVE_NETINET_IN_H
  14015. #include <netinet/in.h>
  14016. #endif
  14017. #ifdef HAVE_ARPA_NAMESER_H
  14018. #include <arpa/nameser.h>
  14019. #endif
  14020. #include <resolv.h>
  14021. int
  14022. main ()
  14023. {
  14024. int foo = res_ninit(NULL);
  14025. ;
  14026. return 0;
  14027. }
  14028. _ACEOF
  14029. if ac_fn_c_try_link "$LINENO"; then :
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14031. $as_echo "yes" >&6; }
  14032. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  14034. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  14035. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. ac_func_search_save_LIBS=$LIBS
  14039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14040. /* end confdefs.h. */
  14041. /* Override any GCC internal prototype to avoid an error.
  14042. Use char because int might match the return type of a GCC
  14043. builtin and then its argument prototype would still apply. */
  14044. #ifdef __cplusplus
  14045. extern "C"
  14046. #endif
  14047. char res_9_ndestroy ();
  14048. int
  14049. main ()
  14050. {
  14051. return res_9_ndestroy ();
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. for ac_lib in '' resolv; do
  14057. if test -z "$ac_lib"; then
  14058. ac_res="none required"
  14059. else
  14060. ac_res=-l$ac_lib
  14061. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14062. fi
  14063. if ac_fn_c_try_link "$LINENO"; then :
  14064. ac_cv_search_res_9_ndestroy=$ac_res
  14065. fi
  14066. rm -f core conftest.err conftest.$ac_objext \
  14067. conftest$ac_exeext
  14068. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14069. break
  14070. fi
  14071. done
  14072. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14073. else
  14074. ac_cv_search_res_9_ndestroy=no
  14075. fi
  14076. rm conftest.$ac_ext
  14077. LIBS=$ac_func_search_save_LIBS
  14078. fi
  14079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  14080. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  14081. ac_res=$ac_cv_search_res_9_ndestroy
  14082. if test "$ac_res" != no; then :
  14083. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14084. fi
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  14086. $as_echo_n "checking for res_ndestroy... " >&6; }
  14087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14088. /* end confdefs.h. */
  14089. #ifdef HAVE_SYS_SOCKET_H
  14090. #include <sys/socket.h>
  14091. #endif
  14092. #ifdef HAVE_NETINET_IN_H
  14093. #include <netinet/in.h>
  14094. #endif
  14095. #ifdef HAVE_ARPA_NAMESER_H
  14096. #include <arpa/nameser.h>
  14097. #endif
  14098. #include <resolv.h>
  14099. int
  14100. main ()
  14101. {
  14102. res_ndestroy(NULL);
  14103. ;
  14104. return 0;
  14105. }
  14106. _ACEOF
  14107. if ac_fn_c_try_link "$LINENO"; then :
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14109. $as_echo "yes" >&6; }
  14110. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  14111. else
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14113. $as_echo "no" >&6; }
  14114. fi
  14115. rm -f core conftest.err conftest.$ac_objext \
  14116. conftest$ac_exeext conftest.$ac_ext
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  14118. $as_echo_n "checking for library containing res_9_close... " >&6; }
  14119. if ${ac_cv_search_res_9_close+:} false; then :
  14120. $as_echo_n "(cached) " >&6
  14121. else
  14122. ac_func_search_save_LIBS=$LIBS
  14123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14124. /* end confdefs.h. */
  14125. /* Override any GCC internal prototype to avoid an error.
  14126. Use char because int might match the return type of a GCC
  14127. builtin and then its argument prototype would still apply. */
  14128. #ifdef __cplusplus
  14129. extern "C"
  14130. #endif
  14131. char res_9_close ();
  14132. int
  14133. main ()
  14134. {
  14135. return res_9_close ();
  14136. ;
  14137. return 0;
  14138. }
  14139. _ACEOF
  14140. for ac_lib in '' resolv; do
  14141. if test -z "$ac_lib"; then
  14142. ac_res="none required"
  14143. else
  14144. ac_res=-l$ac_lib
  14145. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14146. fi
  14147. if ac_fn_c_try_link "$LINENO"; then :
  14148. ac_cv_search_res_9_close=$ac_res
  14149. fi
  14150. rm -f core conftest.err conftest.$ac_objext \
  14151. conftest$ac_exeext
  14152. if ${ac_cv_search_res_9_close+:} false; then :
  14153. break
  14154. fi
  14155. done
  14156. if ${ac_cv_search_res_9_close+:} false; then :
  14157. else
  14158. ac_cv_search_res_9_close=no
  14159. fi
  14160. rm conftest.$ac_ext
  14161. LIBS=$ac_func_search_save_LIBS
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  14164. $as_echo "$ac_cv_search_res_9_close" >&6; }
  14165. ac_res=$ac_cv_search_res_9_close
  14166. if test "$ac_res" != no; then :
  14167. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14168. fi
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  14170. $as_echo_n "checking for res_close... " >&6; }
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. #ifdef HAVE_SYS_SOCKET_H
  14174. #include <sys/socket.h>
  14175. #endif
  14176. #ifdef HAVE_NETINET_IN_H
  14177. #include <netinet/in.h>
  14178. #endif
  14179. #ifdef HAVE_ARPA_NAMESER_H
  14180. #include <arpa/nameser.h>
  14181. #endif
  14182. #include <resolv.h>
  14183. int
  14184. main ()
  14185. {
  14186. res_close();
  14187. ;
  14188. return 0;
  14189. }
  14190. _ACEOF
  14191. if ac_fn_c_try_link "$LINENO"; then :
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14193. $as_echo "yes" >&6; }
  14194. $as_echo "#define HAVE_RES_CLOSE 1" >>confdefs.h
  14195. else
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14197. $as_echo "no" >&6; }
  14198. fi
  14199. rm -f core conftest.err conftest.$ac_objext \
  14200. conftest$ac_exeext conftest.$ac_ext
  14201. else
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14203. $as_echo "no" >&6; }
  14204. fi
  14205. rm -f core conftest.err conftest.$ac_objext \
  14206. conftest$ac_exeext conftest.$ac_ext
  14207. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  14209. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  14210. saved_cppflags="${CPPFLAGS}"
  14211. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  14212. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  14213. fi
  14214. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. #include <glob.h>
  14218. int
  14219. main ()
  14220. {
  14221. #if defined(GLOB_NOMAGIC)
  14222. int foo = 0;
  14223. #else
  14224. int foo = bar;
  14225. #endif
  14226. 0
  14227. ;
  14228. return 0;
  14229. }
  14230. _ACEOF
  14231. if ac_fn_c_try_compile "$LINENO"; then :
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14233. $as_echo "yes" >&6; }
  14234. PBX_GLOB_NOMAGIC=1
  14235. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  14236. else
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14238. $as_echo "no" >&6; }
  14239. fi
  14240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14241. CPPFLAGS="${saved_cppflags}"
  14242. fi
  14243. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  14245. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  14246. saved_cppflags="${CPPFLAGS}"
  14247. if test "x${GLOB_BRACE_DIR}" != "x"; then
  14248. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  14249. fi
  14250. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  14251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14252. /* end confdefs.h. */
  14253. #include <glob.h>
  14254. int
  14255. main ()
  14256. {
  14257. #if defined(GLOB_BRACE)
  14258. int foo = 0;
  14259. #else
  14260. int foo = bar;
  14261. #endif
  14262. 0
  14263. ;
  14264. return 0;
  14265. }
  14266. _ACEOF
  14267. if ac_fn_c_try_compile "$LINENO"; then :
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14269. $as_echo "yes" >&6; }
  14270. PBX_GLOB_BRACE=1
  14271. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  14272. else
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14274. $as_echo "no" >&6; }
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14277. CPPFLAGS="${saved_cppflags}"
  14278. fi
  14279. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  14281. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  14282. saved_cppflags="${CPPFLAGS}"
  14283. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  14284. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  14285. fi
  14286. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  14287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14288. /* end confdefs.h. */
  14289. #include <netinet/in.h>
  14290. int
  14291. main ()
  14292. {
  14293. #if defined(IP_MTU_DISCOVER)
  14294. int foo = 0;
  14295. #else
  14296. int foo = bar;
  14297. #endif
  14298. 0
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. if ac_fn_c_try_compile "$LINENO"; then :
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14305. $as_echo "yes" >&6; }
  14306. PBX_IP_MTU_DISCOVER=1
  14307. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  14308. else
  14309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14310. $as_echo "no" >&6; }
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14313. CPPFLAGS="${saved_cppflags}"
  14314. fi
  14315. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  14316. if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
  14317. cat >>confdefs.h <<_ACEOF
  14318. #define HAVE_OSX_ATOMICS 1
  14319. _ACEOF
  14320. fi
  14321. # The cast to long int works around a bug in the HP C Compiler
  14322. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14323. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14324. # This bug is HP SR number 8606223364.
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14326. $as_echo_n "checking size of int... " >&6; }
  14327. if ${ac_cv_sizeof_int+:} false; then :
  14328. $as_echo_n "(cached) " >&6
  14329. else
  14330. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14331. else
  14332. if test "$ac_cv_type_int" = yes; then
  14333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14335. as_fn_error 77 "cannot compute sizeof (int)
  14336. See \`config.log' for more details" "$LINENO" 5; }
  14337. else
  14338. ac_cv_sizeof_int=0
  14339. fi
  14340. fi
  14341. fi
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14343. $as_echo "$ac_cv_sizeof_int" >&6; }
  14344. cat >>confdefs.h <<_ACEOF
  14345. #define SIZEOF_INT $ac_cv_sizeof_int
  14346. _ACEOF
  14347. # The cast to long int works around a bug in the HP C Compiler
  14348. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14349. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14350. # This bug is HP SR number 8606223364.
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14352. $as_echo_n "checking size of long... " >&6; }
  14353. if ${ac_cv_sizeof_long+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14357. else
  14358. if test "$ac_cv_type_long" = yes; then
  14359. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14361. as_fn_error 77 "cannot compute sizeof (long)
  14362. See \`config.log' for more details" "$LINENO" 5; }
  14363. else
  14364. ac_cv_sizeof_long=0
  14365. fi
  14366. fi
  14367. fi
  14368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14369. $as_echo "$ac_cv_sizeof_long" >&6; }
  14370. cat >>confdefs.h <<_ACEOF
  14371. #define SIZEOF_LONG $ac_cv_sizeof_long
  14372. _ACEOF
  14373. # The cast to long int works around a bug in the HP C Compiler
  14374. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14375. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14376. # This bug is HP SR number 8606223364.
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  14378. $as_echo_n "checking size of long long... " >&6; }
  14379. if ${ac_cv_sizeof_long_long+:} false; then :
  14380. $as_echo_n "(cached) " >&6
  14381. else
  14382. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  14383. else
  14384. if test "$ac_cv_type_long_long" = yes; then
  14385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14387. as_fn_error 77 "cannot compute sizeof (long long)
  14388. See \`config.log' for more details" "$LINENO" 5; }
  14389. else
  14390. ac_cv_sizeof_long_long=0
  14391. fi
  14392. fi
  14393. fi
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  14395. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  14396. cat >>confdefs.h <<_ACEOF
  14397. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  14398. _ACEOF
  14399. # The cast to long int works around a bug in the HP C Compiler
  14400. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14401. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14402. # This bug is HP SR number 8606223364.
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  14404. $as_echo_n "checking size of char *... " >&6; }
  14405. if ${ac_cv_sizeof_char_p+:} false; then :
  14406. $as_echo_n "(cached) " >&6
  14407. else
  14408. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  14409. else
  14410. if test "$ac_cv_type_char_p" = yes; then
  14411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14413. as_fn_error 77 "cannot compute sizeof (char *)
  14414. See \`config.log' for more details" "$LINENO" 5; }
  14415. else
  14416. ac_cv_sizeof_char_p=0
  14417. fi
  14418. fi
  14419. fi
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  14421. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  14422. cat >>confdefs.h <<_ACEOF
  14423. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  14424. _ACEOF
  14425. # The cast to long int works around a bug in the HP C Compiler
  14426. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14427. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14428. # This bug is HP SR number 8606223364.
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14430. $as_echo_n "checking size of long... " >&6; }
  14431. if ${ac_cv_sizeof_long+:} false; then :
  14432. $as_echo_n "(cached) " >&6
  14433. else
  14434. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14435. else
  14436. if test "$ac_cv_type_long" = yes; then
  14437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14439. as_fn_error 77 "cannot compute sizeof (long)
  14440. See \`config.log' for more details" "$LINENO" 5; }
  14441. else
  14442. ac_cv_sizeof_long=0
  14443. fi
  14444. fi
  14445. fi
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14447. $as_echo "$ac_cv_sizeof_long" >&6; }
  14448. cat >>confdefs.h <<_ACEOF
  14449. #define SIZEOF_LONG $ac_cv_sizeof_long
  14450. _ACEOF
  14451. # The cast to long int works around a bug in the HP C Compiler
  14452. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14453. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14454. # This bug is HP SR number 8606223364.
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  14456. $as_echo_n "checking size of long long... " >&6; }
  14457. if ${ac_cv_sizeof_long_long+:} false; then :
  14458. $as_echo_n "(cached) " >&6
  14459. else
  14460. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  14461. else
  14462. if test "$ac_cv_type_long_long" = yes; then
  14463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14465. as_fn_error 77 "cannot compute sizeof (long long)
  14466. See \`config.log' for more details" "$LINENO" 5; }
  14467. else
  14468. ac_cv_sizeof_long_long=0
  14469. fi
  14470. fi
  14471. fi
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  14473. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  14474. cat >>confdefs.h <<_ACEOF
  14475. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  14476. _ACEOF
  14477. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  14478. fd_set foo;"; then :
  14479. fi
  14480. # This doesn't actually work; what it does is to use the variable set in the
  14481. # previous test as a cached value to set the right output variables.
  14482. # The cast to long int works around a bug in the HP C Compiler
  14483. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14484. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14485. # This bug is HP SR number 8606223364.
  14486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  14487. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  14488. if ${ac_cv_sizeof_fd_set_fds_bits+:} false; then :
  14489. $as_echo_n "(cached) " >&6
  14490. else
  14491. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"; then :
  14492. else
  14493. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  14494. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14496. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  14497. See \`config.log' for more details" "$LINENO" 5; }
  14498. else
  14499. ac_cv_sizeof_fd_set_fds_bits=0
  14500. fi
  14501. fi
  14502. fi
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  14504. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  14505. cat >>confdefs.h <<_ACEOF
  14506. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  14507. _ACEOF
  14508. # Set a type compatible with the previous. We cannot just use a generic type
  14509. # for these bits, because on big-endian systems, the bits won't match up
  14510. # correctly if the size is wrong.
  14511. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  14512. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  14513. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  14514. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  14515. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  14516. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  14517. fi ; fi ; fi
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  14519. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  14520. PBX_DLADDR=0
  14521. old_LIBS=${LIBS}
  14522. LIBS="${LIBS} -ldl"
  14523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14524. /* end confdefs.h. */
  14525. #define _GNU_SOURCE 1
  14526. #include <dlfcn.h>
  14527. int
  14528. main ()
  14529. {
  14530. dladdr((void *)0, (void *)0)
  14531. ;
  14532. return 0;
  14533. }
  14534. _ACEOF
  14535. if ac_fn_c_try_link "$LINENO"; then :
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14537. $as_echo "yes" >&6; }
  14538. PBX_DLADDR=1
  14539. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  14540. else
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14542. $as_echo "no" >&6; }
  14543. fi
  14544. rm -f core conftest.err conftest.$ac_objext \
  14545. conftest$ac_exeext conftest.$ac_ext
  14546. LIBS=${old_LIBS}
  14547. # PKGCONFIG is used in later tests
  14548. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14549. if test -n "$ac_tool_prefix"; then
  14550. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14551. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14553. $as_echo_n "checking for $ac_word... " >&6; }
  14554. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14555. $as_echo_n "(cached) " >&6
  14556. else
  14557. case $PKG_CONFIG in
  14558. [\\/]* | ?:[\\/]*)
  14559. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14560. ;;
  14561. *)
  14562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14563. for as_dir in $PATH
  14564. do
  14565. IFS=$as_save_IFS
  14566. test -z "$as_dir" && as_dir=.
  14567. for ac_exec_ext in '' $ac_executable_extensions; do
  14568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14569. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14571. break 2
  14572. fi
  14573. done
  14574. done
  14575. IFS=$as_save_IFS
  14576. ;;
  14577. esac
  14578. fi
  14579. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14580. if test -n "$PKG_CONFIG"; then
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14582. $as_echo "$PKG_CONFIG" >&6; }
  14583. else
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14585. $as_echo "no" >&6; }
  14586. fi
  14587. fi
  14588. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14589. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14590. # Extract the first word of "pkg-config", so it can be a program name with args.
  14591. set dummy pkg-config; ac_word=$2
  14592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14593. $as_echo_n "checking for $ac_word... " >&6; }
  14594. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14595. $as_echo_n "(cached) " >&6
  14596. else
  14597. case $ac_pt_PKG_CONFIG in
  14598. [\\/]* | ?:[\\/]*)
  14599. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14600. ;;
  14601. *)
  14602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14603. for as_dir in $PATH
  14604. do
  14605. IFS=$as_save_IFS
  14606. test -z "$as_dir" && as_dir=.
  14607. for ac_exec_ext in '' $ac_executable_extensions; do
  14608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14609. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14611. break 2
  14612. fi
  14613. done
  14614. done
  14615. IFS=$as_save_IFS
  14616. ;;
  14617. esac
  14618. fi
  14619. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14620. if test -n "$ac_pt_PKG_CONFIG"; then
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14622. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14623. else
  14624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14625. $as_echo "no" >&6; }
  14626. fi
  14627. if test "x$ac_pt_PKG_CONFIG" = x; then
  14628. PKG_CONFIG=""
  14629. else
  14630. case $cross_compiling:$ac_tool_warned in
  14631. yes:)
  14632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14634. ac_tool_warned=yes ;;
  14635. esac
  14636. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14637. fi
  14638. else
  14639. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14640. fi
  14641. fi
  14642. if test -n "$PKG_CONFIG"; then
  14643. _pkg_min_version=0.9.0
  14644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14645. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14646. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14648. $as_echo "yes" >&6; }
  14649. else
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14651. $as_echo "no" >&6; }
  14652. PKG_CONFIG=""
  14653. fi
  14654. fi
  14655. # do the package library checks now
  14656. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  14657. pbxlibdir=""
  14658. # if --with-ALSA=DIR has been specified, use it.
  14659. if test "x${ALSA_DIR}" != "x"; then
  14660. if test -d ${ALSA_DIR}/lib; then
  14661. pbxlibdir="-L${ALSA_DIR}/lib"
  14662. else
  14663. pbxlibdir="-L${ALSA_DIR}"
  14664. fi
  14665. fi
  14666. pbxfuncname="snd_spcm_init"
  14667. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14668. AST_ALSA_FOUND=yes
  14669. else
  14670. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14671. CFLAGS="${CFLAGS} "
  14672. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  14673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
  14674. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  14675. if eval \${$as_ac_Lib+:} false; then :
  14676. $as_echo_n "(cached) " >&6
  14677. else
  14678. ac_check_lib_save_LIBS=$LIBS
  14679. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  14680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14681. /* end confdefs.h. */
  14682. /* Override any GCC internal prototype to avoid an error.
  14683. Use char because int might match the return type of a GCC
  14684. builtin and then its argument prototype would still apply. */
  14685. #ifdef __cplusplus
  14686. extern "C"
  14687. #endif
  14688. char ${pbxfuncname} ();
  14689. int
  14690. main ()
  14691. {
  14692. return ${pbxfuncname} ();
  14693. ;
  14694. return 0;
  14695. }
  14696. _ACEOF
  14697. if ac_fn_c_try_link "$LINENO"; then :
  14698. eval "$as_ac_Lib=yes"
  14699. else
  14700. eval "$as_ac_Lib=no"
  14701. fi
  14702. rm -f core conftest.err conftest.$ac_objext \
  14703. conftest$ac_exeext conftest.$ac_ext
  14704. LIBS=$ac_check_lib_save_LIBS
  14705. fi
  14706. eval ac_res=\$$as_ac_Lib
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14708. $as_echo "$ac_res" >&6; }
  14709. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14710. AST_ALSA_FOUND=yes
  14711. else
  14712. AST_ALSA_FOUND=no
  14713. fi
  14714. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14715. fi
  14716. # now check for the header.
  14717. if test "${AST_ALSA_FOUND}" = "yes"; then
  14718. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  14719. # if --with-ALSA=DIR has been specified, use it.
  14720. if test "x${ALSA_DIR}" != "x"; then
  14721. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  14722. fi
  14723. ALSA_INCLUDE="${ALSA_INCLUDE} "
  14724. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  14725. ALSA_HEADER_FOUND="1"
  14726. else # check for the header
  14727. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14728. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  14729. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  14730. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  14731. ALSA_HEADER_FOUND=1
  14732. else
  14733. ALSA_HEADER_FOUND=0
  14734. fi
  14735. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14736. fi
  14737. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  14738. ALSA_LIB=""
  14739. ALSA_INCLUDE=""
  14740. else
  14741. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14742. ALSA_LIB=""
  14743. fi
  14744. PBX_ALSA=1
  14745. cat >>confdefs.h <<_ACEOF
  14746. #define HAVE_ALSA 1
  14747. _ACEOF
  14748. fi
  14749. fi
  14750. fi
  14751. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14752. pbxlibdir=""
  14753. # if --with-BFD=DIR has been specified, use it.
  14754. if test "x${BFD_DIR}" != "x"; then
  14755. if test -d ${BFD_DIR}/lib; then
  14756. pbxlibdir="-L${BFD_DIR}/lib"
  14757. else
  14758. pbxlibdir="-L${BFD_DIR}"
  14759. fi
  14760. fi
  14761. pbxfuncname="bfd_openr"
  14762. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14763. AST_BFD_FOUND=yes
  14764. else
  14765. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14766. CFLAGS="${CFLAGS} "
  14767. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14769. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14770. if eval \${$as_ac_Lib+:} false; then :
  14771. $as_echo_n "(cached) " >&6
  14772. else
  14773. ac_check_lib_save_LIBS=$LIBS
  14774. LIBS="-lbfd ${pbxlibdir} $LIBS"
  14775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14776. /* end confdefs.h. */
  14777. /* Override any GCC internal prototype to avoid an error.
  14778. Use char because int might match the return type of a GCC
  14779. builtin and then its argument prototype would still apply. */
  14780. #ifdef __cplusplus
  14781. extern "C"
  14782. #endif
  14783. char ${pbxfuncname} ();
  14784. int
  14785. main ()
  14786. {
  14787. return ${pbxfuncname} ();
  14788. ;
  14789. return 0;
  14790. }
  14791. _ACEOF
  14792. if ac_fn_c_try_link "$LINENO"; then :
  14793. eval "$as_ac_Lib=yes"
  14794. else
  14795. eval "$as_ac_Lib=no"
  14796. fi
  14797. rm -f core conftest.err conftest.$ac_objext \
  14798. conftest$ac_exeext conftest.$ac_ext
  14799. LIBS=$ac_check_lib_save_LIBS
  14800. fi
  14801. eval ac_res=\$$as_ac_Lib
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14803. $as_echo "$ac_res" >&6; }
  14804. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14805. AST_BFD_FOUND=yes
  14806. else
  14807. AST_BFD_FOUND=no
  14808. fi
  14809. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14810. fi
  14811. # now check for the header.
  14812. if test "${AST_BFD_FOUND}" = "yes"; then
  14813. BFD_LIB="${pbxlibdir} -lbfd "
  14814. # if --with-BFD=DIR has been specified, use it.
  14815. if test "x${BFD_DIR}" != "x"; then
  14816. BFD_INCLUDE="-I${BFD_DIR}/include"
  14817. fi
  14818. BFD_INCLUDE="${BFD_INCLUDE} "
  14819. if test "xbfd.h" = "x" ; then # no header, assume found
  14820. BFD_HEADER_FOUND="1"
  14821. else # check for the header
  14822. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14823. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  14824. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14825. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14826. BFD_HEADER_FOUND=1
  14827. else
  14828. BFD_HEADER_FOUND=0
  14829. fi
  14830. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14831. fi
  14832. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  14833. BFD_LIB=""
  14834. BFD_INCLUDE=""
  14835. else
  14836. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14837. BFD_LIB=""
  14838. fi
  14839. PBX_BFD=1
  14840. cat >>confdefs.h <<_ACEOF
  14841. #define HAVE_BFD 1
  14842. _ACEOF
  14843. fi
  14844. fi
  14845. fi
  14846. if test "${PBX_BFD}" = "0"; then
  14847. # Fedora/RedHat/CentOS require extra libraries
  14848. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14849. pbxlibdir=""
  14850. # if --with-BFD=DIR has been specified, use it.
  14851. if test "x${BFD_DIR}" != "x"; then
  14852. if test -d ${BFD_DIR}/lib; then
  14853. pbxlibdir="-L${BFD_DIR}/lib"
  14854. else
  14855. pbxlibdir="-L${BFD_DIR}"
  14856. fi
  14857. fi
  14858. pbxfuncname="bfd_check_format"
  14859. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14860. AST_BFD_FOUND=yes
  14861. else
  14862. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14863. CFLAGS="${CFLAGS} "
  14864. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14866. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14867. if eval \${$as_ac_Lib+:} false; then :
  14868. $as_echo_n "(cached) " >&6
  14869. else
  14870. ac_check_lib_save_LIBS=$LIBS
  14871. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. /* Override any GCC internal prototype to avoid an error.
  14875. Use char because int might match the return type of a GCC
  14876. builtin and then its argument prototype would still apply. */
  14877. #ifdef __cplusplus
  14878. extern "C"
  14879. #endif
  14880. char ${pbxfuncname} ();
  14881. int
  14882. main ()
  14883. {
  14884. return ${pbxfuncname} ();
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. if ac_fn_c_try_link "$LINENO"; then :
  14890. eval "$as_ac_Lib=yes"
  14891. else
  14892. eval "$as_ac_Lib=no"
  14893. fi
  14894. rm -f core conftest.err conftest.$ac_objext \
  14895. conftest$ac_exeext conftest.$ac_ext
  14896. LIBS=$ac_check_lib_save_LIBS
  14897. fi
  14898. eval ac_res=\$$as_ac_Lib
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14900. $as_echo "$ac_res" >&6; }
  14901. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14902. AST_BFD_FOUND=yes
  14903. else
  14904. AST_BFD_FOUND=no
  14905. fi
  14906. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14907. fi
  14908. # now check for the header.
  14909. if test "${AST_BFD_FOUND}" = "yes"; then
  14910. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  14911. # if --with-BFD=DIR has been specified, use it.
  14912. if test "x${BFD_DIR}" != "x"; then
  14913. BFD_INCLUDE="-I${BFD_DIR}/include"
  14914. fi
  14915. BFD_INCLUDE="${BFD_INCLUDE} "
  14916. if test "xbfd.h" = "x" ; then # no header, assume found
  14917. BFD_HEADER_FOUND="1"
  14918. else # check for the header
  14919. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14920. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  14921. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14922. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14923. BFD_HEADER_FOUND=1
  14924. else
  14925. BFD_HEADER_FOUND=0
  14926. fi
  14927. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14928. fi
  14929. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  14930. BFD_LIB=""
  14931. BFD_INCLUDE=""
  14932. else
  14933. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14934. BFD_LIB=""
  14935. fi
  14936. PBX_BFD=1
  14937. cat >>confdefs.h <<_ACEOF
  14938. #define HAVE_BFD 1
  14939. _ACEOF
  14940. fi
  14941. fi
  14942. fi
  14943. fi
  14944. if test "${PBX_BFD}" = "0"; then
  14945. # openSUSE requires -lz
  14946. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14947. pbxlibdir=""
  14948. # if --with-BFD=DIR has been specified, use it.
  14949. if test "x${BFD_DIR}" != "x"; then
  14950. if test -d ${BFD_DIR}/lib; then
  14951. pbxlibdir="-L${BFD_DIR}/lib"
  14952. else
  14953. pbxlibdir="-L${BFD_DIR}"
  14954. fi
  14955. fi
  14956. pbxfuncname="bfd_check_format"
  14957. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14958. AST_BFD_FOUND=yes
  14959. else
  14960. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14961. CFLAGS="${CFLAGS} "
  14962. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14964. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14965. if eval \${$as_ac_Lib+:} false; then :
  14966. $as_echo_n "(cached) " >&6
  14967. else
  14968. ac_check_lib_save_LIBS=$LIBS
  14969. LIBS="-lbfd ${pbxlibdir} -ldl -liberty -lz $LIBS"
  14970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14971. /* end confdefs.h. */
  14972. /* Override any GCC internal prototype to avoid an error.
  14973. Use char because int might match the return type of a GCC
  14974. builtin and then its argument prototype would still apply. */
  14975. #ifdef __cplusplus
  14976. extern "C"
  14977. #endif
  14978. char ${pbxfuncname} ();
  14979. int
  14980. main ()
  14981. {
  14982. return ${pbxfuncname} ();
  14983. ;
  14984. return 0;
  14985. }
  14986. _ACEOF
  14987. if ac_fn_c_try_link "$LINENO"; then :
  14988. eval "$as_ac_Lib=yes"
  14989. else
  14990. eval "$as_ac_Lib=no"
  14991. fi
  14992. rm -f core conftest.err conftest.$ac_objext \
  14993. conftest$ac_exeext conftest.$ac_ext
  14994. LIBS=$ac_check_lib_save_LIBS
  14995. fi
  14996. eval ac_res=\$$as_ac_Lib
  14997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14998. $as_echo "$ac_res" >&6; }
  14999. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15000. AST_BFD_FOUND=yes
  15001. else
  15002. AST_BFD_FOUND=no
  15003. fi
  15004. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15005. fi
  15006. # now check for the header.
  15007. if test "${AST_BFD_FOUND}" = "yes"; then
  15008. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
  15009. # if --with-BFD=DIR has been specified, use it.
  15010. if test "x${BFD_DIR}" != "x"; then
  15011. BFD_INCLUDE="-I${BFD_DIR}/include"
  15012. fi
  15013. BFD_INCLUDE="${BFD_INCLUDE} "
  15014. if test "xbfd.h" = "x" ; then # no header, assume found
  15015. BFD_HEADER_FOUND="1"
  15016. else # check for the header
  15017. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15018. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15019. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15020. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15021. BFD_HEADER_FOUND=1
  15022. else
  15023. BFD_HEADER_FOUND=0
  15024. fi
  15025. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15026. fi
  15027. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15028. BFD_LIB=""
  15029. BFD_INCLUDE=""
  15030. else
  15031. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15032. BFD_LIB=""
  15033. fi
  15034. PBX_BFD=1
  15035. cat >>confdefs.h <<_ACEOF
  15036. #define HAVE_BFD 1
  15037. _ACEOF
  15038. fi
  15039. fi
  15040. fi
  15041. fi
  15042. if test "x${OSARCH}" = "xlinux-gnu" ; then
  15043. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  15044. pbxlibdir=""
  15045. # if --with-CAP=DIR has been specified, use it.
  15046. if test "x${CAP_DIR}" != "x"; then
  15047. if test -d ${CAP_DIR}/lib; then
  15048. pbxlibdir="-L${CAP_DIR}/lib"
  15049. else
  15050. pbxlibdir="-L${CAP_DIR}"
  15051. fi
  15052. fi
  15053. pbxfuncname="cap_from_text"
  15054. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15055. AST_CAP_FOUND=yes
  15056. else
  15057. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15058. CFLAGS="${CFLAGS} "
  15059. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
  15061. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  15062. if eval \${$as_ac_Lib+:} false; then :
  15063. $as_echo_n "(cached) " >&6
  15064. else
  15065. ac_check_lib_save_LIBS=$LIBS
  15066. LIBS="-lcap ${pbxlibdir} $LIBS"
  15067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15068. /* end confdefs.h. */
  15069. /* Override any GCC internal prototype to avoid an error.
  15070. Use char because int might match the return type of a GCC
  15071. builtin and then its argument prototype would still apply. */
  15072. #ifdef __cplusplus
  15073. extern "C"
  15074. #endif
  15075. char ${pbxfuncname} ();
  15076. int
  15077. main ()
  15078. {
  15079. return ${pbxfuncname} ();
  15080. ;
  15081. return 0;
  15082. }
  15083. _ACEOF
  15084. if ac_fn_c_try_link "$LINENO"; then :
  15085. eval "$as_ac_Lib=yes"
  15086. else
  15087. eval "$as_ac_Lib=no"
  15088. fi
  15089. rm -f core conftest.err conftest.$ac_objext \
  15090. conftest$ac_exeext conftest.$ac_ext
  15091. LIBS=$ac_check_lib_save_LIBS
  15092. fi
  15093. eval ac_res=\$$as_ac_Lib
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15095. $as_echo "$ac_res" >&6; }
  15096. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15097. AST_CAP_FOUND=yes
  15098. else
  15099. AST_CAP_FOUND=no
  15100. fi
  15101. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15102. fi
  15103. # now check for the header.
  15104. if test "${AST_CAP_FOUND}" = "yes"; then
  15105. CAP_LIB="${pbxlibdir} -lcap "
  15106. # if --with-CAP=DIR has been specified, use it.
  15107. if test "x${CAP_DIR}" != "x"; then
  15108. CAP_INCLUDE="-I${CAP_DIR}/include"
  15109. fi
  15110. CAP_INCLUDE="${CAP_INCLUDE} "
  15111. if test "xsys/capability.h" = "x" ; then # no header, assume found
  15112. CAP_HEADER_FOUND="1"
  15113. else # check for the header
  15114. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15115. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  15116. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  15117. if test "x$ac_cv_header_sys_capability_h" = xyes; then :
  15118. CAP_HEADER_FOUND=1
  15119. else
  15120. CAP_HEADER_FOUND=0
  15121. fi
  15122. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15123. fi
  15124. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  15125. CAP_LIB=""
  15126. CAP_INCLUDE=""
  15127. else
  15128. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15129. CAP_LIB=""
  15130. fi
  15131. PBX_CAP=1
  15132. cat >>confdefs.h <<_ACEOF
  15133. #define HAVE_CAP 1
  15134. _ACEOF
  15135. fi
  15136. fi
  15137. fi
  15138. fi
  15139. if test "x${PBX_DAHDI}" != "x1"; then
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  15141. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  15142. saved_cppflags="${CPPFLAGS}"
  15143. if test "x${DAHDI_DIR}" != "x"; then
  15144. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15145. fi
  15146. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15148. /* end confdefs.h. */
  15149. #include <dahdi/user.h>
  15150. int
  15151. main ()
  15152. {
  15153. #if defined(DAHDI_RESET_COUNTERS)
  15154. int foo = 0;
  15155. #else
  15156. int foo = bar;
  15157. #endif
  15158. 0
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. if ac_fn_c_try_compile "$LINENO"; then :
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15165. $as_echo "yes" >&6; }
  15166. PBX_DAHDI=1
  15167. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15168. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  15169. else
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15171. $as_echo "no" >&6; }
  15172. fi
  15173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15174. CPPFLAGS="${saved_cppflags}"
  15175. fi
  15176. if test "x${PBX_DAHDI}" != "x1"; then
  15177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  15178. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  15179. saved_cppflags="${CPPFLAGS}"
  15180. if test "x${DAHDI_DIR}" != "x"; then
  15181. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15182. fi
  15183. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15185. /* end confdefs.h. */
  15186. #include <dahdi/user.h>
  15187. int
  15188. main ()
  15189. {
  15190. #if defined(DAHDI_DEFAULT_MTU_MRU)
  15191. int foo = 0;
  15192. #else
  15193. int foo = bar;
  15194. #endif
  15195. 0
  15196. ;
  15197. return 0;
  15198. }
  15199. _ACEOF
  15200. if ac_fn_c_try_compile "$LINENO"; then :
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15202. $as_echo "yes" >&6; }
  15203. PBX_DAHDI=1
  15204. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15205. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  15206. else
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15208. $as_echo "no" >&6; }
  15209. fi
  15210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15211. CPPFLAGS="${saved_cppflags}"
  15212. fi
  15213. if test "x${PBX_DAHDI}" != "x1"; then
  15214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  15215. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  15216. saved_cppflags="${CPPFLAGS}"
  15217. if test "x${DAHDI_DIR}" != "x"; then
  15218. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15219. fi
  15220. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15222. /* end confdefs.h. */
  15223. #include <dahdi/user.h>
  15224. int
  15225. main ()
  15226. {
  15227. #if defined(DAHDI_CODE)
  15228. int foo = 0;
  15229. #else
  15230. int foo = bar;
  15231. #endif
  15232. 0
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_compile "$LINENO"; then :
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15239. $as_echo "yes" >&6; }
  15240. PBX_DAHDI=1
  15241. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15242. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  15243. else
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15245. $as_echo "no" >&6; }
  15246. fi
  15247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15248. CPPFLAGS="${saved_cppflags}"
  15249. fi
  15250. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  15251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  15252. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  15253. saved_cppflags="${CPPFLAGS}"
  15254. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  15255. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  15256. fi
  15257. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  15258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15259. /* end confdefs.h. */
  15260. #include <dahdi/user.h>
  15261. int
  15262. main ()
  15263. {
  15264. #if defined(DAHDI_POLICY_HALF_FULL)
  15265. int foo = 0;
  15266. #else
  15267. int foo = bar;
  15268. #endif
  15269. 0
  15270. ;
  15271. return 0;
  15272. }
  15273. _ACEOF
  15274. if ac_fn_c_try_compile "$LINENO"; then :
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15276. $as_echo "yes" >&6; }
  15277. PBX_DAHDI_HALF_FULL=1
  15278. $as_echo "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  15279. else
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15281. $as_echo "no" >&6; }
  15282. fi
  15283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15284. CPPFLAGS="${saved_cppflags}"
  15285. fi
  15286. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  15287. if test "xenhanced dahdi vmwi support" != "x"; then
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  15289. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  15290. else
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  15292. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  15293. fi
  15294. saved_cppflags="${CPPFLAGS}"
  15295. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  15296. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  15297. fi
  15298. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  15299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15300. /* end confdefs.h. */
  15301. #include <dahdi/user.h>
  15302. int
  15303. main ()
  15304. {
  15305. struct dahdi_vmwi_info booger;
  15306. ;
  15307. return 0;
  15308. }
  15309. _ACEOF
  15310. if ac_fn_c_try_compile "$LINENO"; then :
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15312. $as_echo "yes" >&6; }
  15313. PBX_DAHDI_LINEREVERSE_VMWI=1
  15314. $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  15315. else
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15317. $as_echo "no" >&6; }
  15318. fi
  15319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15320. CPPFLAGS="${saved_cppflags}"
  15321. fi
  15322. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  15323. if test "x" != "x"; then
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  15325. $as_echo_n "checking for ... " >&6; }
  15326. else
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  15328. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  15329. fi
  15330. saved_cppflags="${CPPFLAGS}"
  15331. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  15332. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  15333. fi
  15334. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  15335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15336. /* end confdefs.h. */
  15337. #include <dahdi/user.h>
  15338. int
  15339. main ()
  15340. {
  15341. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  15342. ;
  15343. return 0;
  15344. }
  15345. _ACEOF
  15346. if ac_fn_c_try_compile "$LINENO"; then :
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15348. $as_echo "yes" >&6; }
  15349. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  15350. $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  15351. else
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15353. $as_echo "no" >&6; }
  15354. fi
  15355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15356. CPPFLAGS="${saved_cppflags}"
  15357. fi
  15358. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  15359. if test "xgetifaddrs() support" != "x"; then
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  15361. $as_echo_n "checking for getifaddrs() support... " >&6; }
  15362. else
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  15364. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  15365. fi
  15366. saved_cppflags="${CPPFLAGS}"
  15367. if test "x${GETIFADDRS_DIR}" != "x"; then
  15368. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  15369. fi
  15370. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  15371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15372. /* end confdefs.h. */
  15373. #include <ifaddrs.h>
  15374. int
  15375. main ()
  15376. {
  15377. struct ifaddrs *p; getifaddrs(&p);
  15378. ;
  15379. return 0;
  15380. }
  15381. _ACEOF
  15382. if ac_fn_c_try_compile "$LINENO"; then :
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15384. $as_echo "yes" >&6; }
  15385. PBX_GETIFADDRS=1
  15386. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  15387. else
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15389. $as_echo "no" >&6; }
  15390. fi
  15391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15392. CPPFLAGS="${saved_cppflags}"
  15393. fi
  15394. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  15395. if test "xtimerfd support" != "x"; then
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  15397. $as_echo_n "checking for timerfd support... " >&6; }
  15398. else
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
  15400. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  15401. fi
  15402. saved_cppflags="${CPPFLAGS}"
  15403. if test "x${TIMERFD_DIR}" != "x"; then
  15404. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  15405. fi
  15406. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  15407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15408. /* end confdefs.h. */
  15409. #include <sys/timerfd.h>
  15410. int
  15411. main ()
  15412. {
  15413. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  15414. ;
  15415. return 0;
  15416. }
  15417. _ACEOF
  15418. if ac_fn_c_try_compile "$LINENO"; then :
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15420. $as_echo "yes" >&6; }
  15421. PBX_TIMERFD=1
  15422. $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
  15423. else
  15424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15425. $as_echo "no" >&6; }
  15426. fi
  15427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15428. CPPFLAGS="${saved_cppflags}"
  15429. fi
  15430. GSM_INTERNAL="yes"
  15431. GSM_SYSTEM="yes"
  15432. if test "${USE_GSM}" != "no"; then
  15433. if test "${GSM_DIR}" = "internal"; then
  15434. GSM_SYSTEM="no"
  15435. elif test "${GSM_DIR}" != ""; then
  15436. GSM_INTERNAL="no"
  15437. fi
  15438. if test "${GSM_SYSTEM}" = "yes"; then
  15439. gsmlibdir=""
  15440. if test "x${GSM_DIR}" != "x"; then
  15441. if test -d ${GSM_DIR}/lib; then
  15442. gsmlibdir="-L${GSM_DIR}/lib"
  15443. else
  15444. gsmlibdir="-L${GSM_DIR}"
  15445. fi
  15446. fi
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  15448. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  15449. if ${ac_cv_lib_gsm_gsm_create+:} false; then :
  15450. $as_echo_n "(cached) " >&6
  15451. else
  15452. ac_check_lib_save_LIBS=$LIBS
  15453. LIBS="-lgsm ${gsmlibdir} $LIBS"
  15454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15455. /* end confdefs.h. */
  15456. /* Override any GCC internal prototype to avoid an error.
  15457. Use char because int might match the return type of a GCC
  15458. builtin and then its argument prototype would still apply. */
  15459. #ifdef __cplusplus
  15460. extern "C"
  15461. #endif
  15462. char gsm_create ();
  15463. int
  15464. main ()
  15465. {
  15466. return gsm_create ();
  15467. ;
  15468. return 0;
  15469. }
  15470. _ACEOF
  15471. if ac_fn_c_try_link "$LINENO"; then :
  15472. ac_cv_lib_gsm_gsm_create=yes
  15473. else
  15474. ac_cv_lib_gsm_gsm_create=no
  15475. fi
  15476. rm -f core conftest.err conftest.$ac_objext \
  15477. conftest$ac_exeext conftest.$ac_ext
  15478. LIBS=$ac_check_lib_save_LIBS
  15479. fi
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  15481. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  15482. if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
  15483. cat >>confdefs.h <<_ACEOF
  15484. #define HAVE_GSM 1
  15485. _ACEOF
  15486. fi
  15487. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  15488. if test "x${GSM_DIR}" != "x" ; then
  15489. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  15490. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  15491. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15492. GSM_HEADER_FOUND=1
  15493. else
  15494. GSM_HEADER_FOUND=0
  15495. fi
  15496. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  15497. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  15498. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15499. GSM_GSM_HEADER_FOUND=1
  15500. else
  15501. GSM_GSM_HEADER_FOUND=0
  15502. fi
  15503. else
  15504. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  15505. if test "x$ac_cv_header_gsm_h" = xyes; then :
  15506. GSM_HEADER_FOUND=1
  15507. else
  15508. GSM_HEADER_FOUND=0
  15509. fi
  15510. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  15511. if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
  15512. GSM_GSM_HEADER_FOUND=1
  15513. else
  15514. GSM_GSM_HEADER_FOUND=0
  15515. fi
  15516. fi
  15517. if test "${GSM_HEADER_FOUND}" = "0" ; then
  15518. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  15519. if test "x${GSM_MANDATORY}" = "xyes" ; then
  15520. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15521. $as_echo "$as_me: ***" >&6;}
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  15523. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  15525. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  15527. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  15528. exit 1
  15529. fi
  15530. fi
  15531. fi
  15532. GSM_OK=0
  15533. if test "${GSM_HEADER_FOUND}" = "1" ; then
  15534. cat >>confdefs.h <<_ACEOF
  15535. #define HAVE_GSM_HEADER 1
  15536. _ACEOF
  15537. GSM_OK=1
  15538. else
  15539. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  15540. cat >>confdefs.h <<_ACEOF
  15541. #define HAVE_GSM_GSM_HEADER 1
  15542. _ACEOF
  15543. GSM_OK=1
  15544. fi
  15545. fi
  15546. if test "${GSM_OK}" = "1" ; then
  15547. GSM_LIB="-lgsm"
  15548. if test "x${GSM_DIR}" != "x"; then
  15549. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  15550. GSM_INCLUDE="-I${GSM_DIR}/include"
  15551. fi
  15552. PBX_GSM=1
  15553. GSM_INTERNAL="no"
  15554. fi
  15555. fi
  15556. fi
  15557. if test "${GSM_INTERNAL}" = "yes"; then
  15558. PBX_GSM=1
  15559. cat >>confdefs.h <<_ACEOF
  15560. #define HAVE_GSM_HEADER 1
  15561. _ACEOF
  15562. fi
  15563. fi
  15564. ILBC_INTERNAL="yes"
  15565. ILBC_SYSTEM="yes"
  15566. if test "${USE_ILBC}" != "no"; then
  15567. if test "${ILBC_DIR}" = "internal"; then
  15568. ILBC_SYSTEM="no"
  15569. elif test "${ILBC_DIR}" != ""; then
  15570. ILBC_INTERNAL="no"
  15571. fi
  15572. if test "${ILBC_SYSTEM}" = "yes"; then
  15573. if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
  15574. pkg_failed=no
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ILBC" >&5
  15576. $as_echo_n "checking for ILBC... " >&6; }
  15577. if test -n "$ILBC_CFLAGS"; then
  15578. pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
  15579. elif test -n "$PKG_CONFIG"; then
  15580. if test -n "$PKG_CONFIG" && \
  15581. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  15582. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  15583. ac_status=$?
  15584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15585. test $ac_status = 0; }; then
  15586. pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
  15587. test "x$?" != "x0" && pkg_failed=yes
  15588. else
  15589. pkg_failed=yes
  15590. fi
  15591. else
  15592. pkg_failed=untried
  15593. fi
  15594. if test -n "$ILBC_LIBS"; then
  15595. pkg_cv_ILBC_LIBS="$ILBC_LIBS"
  15596. elif test -n "$PKG_CONFIG"; then
  15597. if test -n "$PKG_CONFIG" && \
  15598. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  15599. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  15600. ac_status=$?
  15601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15602. test $ac_status = 0; }; then
  15603. pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
  15604. test "x$?" != "x0" && pkg_failed=yes
  15605. else
  15606. pkg_failed=yes
  15607. fi
  15608. else
  15609. pkg_failed=untried
  15610. fi
  15611. if test $pkg_failed = yes; then
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15613. $as_echo "no" >&6; }
  15614. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15615. _pkg_short_errors_supported=yes
  15616. else
  15617. _pkg_short_errors_supported=no
  15618. fi
  15619. if test $_pkg_short_errors_supported = yes; then
  15620. ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
  15621. else
  15622. ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
  15623. fi
  15624. # Put the nasty error message in config.log where it belongs
  15625. echo "$ILBC_PKG_ERRORS" >&5
  15626. PBX_ILBC=0
  15627. elif test $pkg_failed = untried; then
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15629. $as_echo "no" >&6; }
  15630. PBX_ILBC=0
  15631. else
  15632. ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
  15633. ILBC_LIBS=$pkg_cv_ILBC_LIBS
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15635. $as_echo "yes" >&6; }
  15636. PBX_ILBC=1
  15637. ILBC_INCLUDE="$ILBC_CFLAGS"
  15638. ILBC_LIB="$ILBC_LIBS"
  15639. $as_echo "#define HAVE_ILBC 1" >>confdefs.h
  15640. fi
  15641. fi
  15642. if test "$PBX_ILBC" = "1"; then
  15643. ILBC_INTERNAL="no"
  15644. fi
  15645. fi
  15646. if test "${ILBC_INTERNAL}" = "yes"; then
  15647. PBX_ILBC=1
  15648. fi
  15649. fi
  15650. LIBEDIT_INTERNAL="yes"
  15651. LIBEDIT_SYSTEM="yes"
  15652. if test "${USE_LIBEDIT}" != "no"; then
  15653. if test "${LIBEDIT_DIR}" = "internal"; then
  15654. LIBEDIT_SYSTEM="no"
  15655. elif test "${LIBEDIT_DIR}" != ""; then
  15656. LIBEDIT_INTERNAL="no"
  15657. fi
  15658. if test "${LIBEDIT_SYSTEM}" = "yes"; then
  15659. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  15660. pkg_failed=no
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEDIT" >&5
  15662. $as_echo_n "checking for LIBEDIT... " >&6; }
  15663. if test -n "$LIBEDIT_CFLAGS"; then
  15664. pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
  15665. elif test -n "$PKG_CONFIG"; then
  15666. if test -n "$PKG_CONFIG" && \
  15667. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  15668. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  15669. ac_status=$?
  15670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15671. test $ac_status = 0; }; then
  15672. pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
  15673. test "x$?" != "x0" && pkg_failed=yes
  15674. else
  15675. pkg_failed=yes
  15676. fi
  15677. else
  15678. pkg_failed=untried
  15679. fi
  15680. if test -n "$LIBEDIT_LIBS"; then
  15681. pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
  15682. elif test -n "$PKG_CONFIG"; then
  15683. if test -n "$PKG_CONFIG" && \
  15684. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  15685. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  15686. ac_status=$?
  15687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15688. test $ac_status = 0; }; then
  15689. pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
  15690. test "x$?" != "x0" && pkg_failed=yes
  15691. else
  15692. pkg_failed=yes
  15693. fi
  15694. else
  15695. pkg_failed=untried
  15696. fi
  15697. if test $pkg_failed = yes; then
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15699. $as_echo "no" >&6; }
  15700. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15701. _pkg_short_errors_supported=yes
  15702. else
  15703. _pkg_short_errors_supported=no
  15704. fi
  15705. if test $_pkg_short_errors_supported = yes; then
  15706. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
  15707. else
  15708. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
  15709. fi
  15710. # Put the nasty error message in config.log where it belongs
  15711. echo "$LIBEDIT_PKG_ERRORS" >&5
  15712. PBX_LIBEDIT=0
  15713. elif test $pkg_failed = untried; then
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15715. $as_echo "no" >&6; }
  15716. PBX_LIBEDIT=0
  15717. else
  15718. LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
  15719. LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15721. $as_echo "yes" >&6; }
  15722. PBX_LIBEDIT=1
  15723. LIBEDIT_INCLUDE="$LIBEDIT_CFLAGS"
  15724. LIBEDIT_LIB="$LIBEDIT_LIBS"
  15725. $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
  15726. fi
  15727. fi
  15728. if test "$PBX_LIBEDIT" = "1"; then
  15729. LIBEDIT_INTERNAL="no"
  15730. fi
  15731. fi
  15732. if test "${LIBEDIT_INTERNAL}" = "yes"; then
  15733. PBX_LIBEDIT=1
  15734. fi
  15735. fi
  15736. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15737. pbxlibdir=""
  15738. # if --with-ICONV=DIR has been specified, use it.
  15739. if test "x${ICONV_DIR}" != "x"; then
  15740. if test -d ${ICONV_DIR}/lib; then
  15741. pbxlibdir="-L${ICONV_DIR}/lib"
  15742. else
  15743. pbxlibdir="-L${ICONV_DIR}"
  15744. fi
  15745. fi
  15746. pbxfuncname="iconv_open"
  15747. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15748. AST_ICONV_FOUND=yes
  15749. else
  15750. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15751. CFLAGS="${CFLAGS} "
  15752. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  15754. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  15755. if eval \${$as_ac_Lib+:} false; then :
  15756. $as_echo_n "(cached) " >&6
  15757. else
  15758. ac_check_lib_save_LIBS=$LIBS
  15759. LIBS="-liconv ${pbxlibdir} $LIBS"
  15760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15761. /* end confdefs.h. */
  15762. /* Override any GCC internal prototype to avoid an error.
  15763. Use char because int might match the return type of a GCC
  15764. builtin and then its argument prototype would still apply. */
  15765. #ifdef __cplusplus
  15766. extern "C"
  15767. #endif
  15768. char ${pbxfuncname} ();
  15769. int
  15770. main ()
  15771. {
  15772. return ${pbxfuncname} ();
  15773. ;
  15774. return 0;
  15775. }
  15776. _ACEOF
  15777. if ac_fn_c_try_link "$LINENO"; then :
  15778. eval "$as_ac_Lib=yes"
  15779. else
  15780. eval "$as_ac_Lib=no"
  15781. fi
  15782. rm -f core conftest.err conftest.$ac_objext \
  15783. conftest$ac_exeext conftest.$ac_ext
  15784. LIBS=$ac_check_lib_save_LIBS
  15785. fi
  15786. eval ac_res=\$$as_ac_Lib
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15788. $as_echo "$ac_res" >&6; }
  15789. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15790. AST_ICONV_FOUND=yes
  15791. else
  15792. AST_ICONV_FOUND=no
  15793. fi
  15794. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15795. fi
  15796. # now check for the header.
  15797. if test "${AST_ICONV_FOUND}" = "yes"; then
  15798. ICONV_LIB="${pbxlibdir} -liconv "
  15799. # if --with-ICONV=DIR has been specified, use it.
  15800. if test "x${ICONV_DIR}" != "x"; then
  15801. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15802. fi
  15803. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15804. if test "xiconv.h" = "x" ; then # no header, assume found
  15805. ICONV_HEADER_FOUND="1"
  15806. else # check for the header
  15807. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15808. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  15809. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  15810. if test "x$ac_cv_header_iconv_h" = xyes; then :
  15811. ICONV_HEADER_FOUND=1
  15812. else
  15813. ICONV_HEADER_FOUND=0
  15814. fi
  15815. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15816. fi
  15817. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  15818. ICONV_LIB=""
  15819. ICONV_INCLUDE=""
  15820. else
  15821. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15822. ICONV_LIB=""
  15823. fi
  15824. PBX_ICONV=1
  15825. cat >>confdefs.h <<_ACEOF
  15826. #define HAVE_ICONV 1
  15827. _ACEOF
  15828. fi
  15829. fi
  15830. fi
  15831. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  15832. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15833. pbxlibdir=""
  15834. # if --with-ICONV=DIR has been specified, use it.
  15835. if test "x${ICONV_DIR}" != "x"; then
  15836. if test -d ${ICONV_DIR}/lib; then
  15837. pbxlibdir="-L${ICONV_DIR}/lib"
  15838. else
  15839. pbxlibdir="-L${ICONV_DIR}"
  15840. fi
  15841. fi
  15842. pbxfuncname="libiconv_open"
  15843. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15844. AST_ICONV_FOUND=yes
  15845. else
  15846. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15847. CFLAGS="${CFLAGS} "
  15848. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  15850. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  15851. if eval \${$as_ac_Lib+:} false; then :
  15852. $as_echo_n "(cached) " >&6
  15853. else
  15854. ac_check_lib_save_LIBS=$LIBS
  15855. LIBS="-liconv ${pbxlibdir} $LIBS"
  15856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15857. /* end confdefs.h. */
  15858. /* Override any GCC internal prototype to avoid an error.
  15859. Use char because int might match the return type of a GCC
  15860. builtin and then its argument prototype would still apply. */
  15861. #ifdef __cplusplus
  15862. extern "C"
  15863. #endif
  15864. char ${pbxfuncname} ();
  15865. int
  15866. main ()
  15867. {
  15868. return ${pbxfuncname} ();
  15869. ;
  15870. return 0;
  15871. }
  15872. _ACEOF
  15873. if ac_fn_c_try_link "$LINENO"; then :
  15874. eval "$as_ac_Lib=yes"
  15875. else
  15876. eval "$as_ac_Lib=no"
  15877. fi
  15878. rm -f core conftest.err conftest.$ac_objext \
  15879. conftest$ac_exeext conftest.$ac_ext
  15880. LIBS=$ac_check_lib_save_LIBS
  15881. fi
  15882. eval ac_res=\$$as_ac_Lib
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15884. $as_echo "$ac_res" >&6; }
  15885. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15886. AST_ICONV_FOUND=yes
  15887. else
  15888. AST_ICONV_FOUND=no
  15889. fi
  15890. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15891. fi
  15892. # now check for the header.
  15893. if test "${AST_ICONV_FOUND}" = "yes"; then
  15894. ICONV_LIB="${pbxlibdir} -liconv "
  15895. # if --with-ICONV=DIR has been specified, use it.
  15896. if test "x${ICONV_DIR}" != "x"; then
  15897. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15898. fi
  15899. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15900. if test "xiconv.h" = "x" ; then # no header, assume found
  15901. ICONV_HEADER_FOUND="1"
  15902. else # check for the header
  15903. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15904. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  15905. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  15906. if test "x$ac_cv_header_iconv_h" = xyes; then :
  15907. ICONV_HEADER_FOUND=1
  15908. else
  15909. ICONV_HEADER_FOUND=0
  15910. fi
  15911. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15912. fi
  15913. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  15914. ICONV_LIB=""
  15915. ICONV_INCLUDE=""
  15916. else
  15917. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15918. ICONV_LIB=""
  15919. fi
  15920. PBX_ICONV=1
  15921. cat >>confdefs.h <<_ACEOF
  15922. #define HAVE_ICONV 1
  15923. _ACEOF
  15924. fi
  15925. fi
  15926. fi
  15927. # Some versions of Linux package iconv in glibc
  15928. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15929. pbxlibdir=""
  15930. # if --with-ICONV=DIR has been specified, use it.
  15931. if test "x${ICONV_DIR}" != "x"; then
  15932. if test -d ${ICONV_DIR}/lib; then
  15933. pbxlibdir="-L${ICONV_DIR}/lib"
  15934. else
  15935. pbxlibdir="-L${ICONV_DIR}"
  15936. fi
  15937. fi
  15938. pbxfuncname="iconv_close"
  15939. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15940. AST_ICONV_FOUND=yes
  15941. else
  15942. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15943. CFLAGS="${CFLAGS} "
  15944. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  15946. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  15947. if eval \${$as_ac_Lib+:} false; then :
  15948. $as_echo_n "(cached) " >&6
  15949. else
  15950. ac_check_lib_save_LIBS=$LIBS
  15951. LIBS="-lc ${pbxlibdir} $LIBS"
  15952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15953. /* end confdefs.h. */
  15954. /* Override any GCC internal prototype to avoid an error.
  15955. Use char because int might match the return type of a GCC
  15956. builtin and then its argument prototype would still apply. */
  15957. #ifdef __cplusplus
  15958. extern "C"
  15959. #endif
  15960. char ${pbxfuncname} ();
  15961. int
  15962. main ()
  15963. {
  15964. return ${pbxfuncname} ();
  15965. ;
  15966. return 0;
  15967. }
  15968. _ACEOF
  15969. if ac_fn_c_try_link "$LINENO"; then :
  15970. eval "$as_ac_Lib=yes"
  15971. else
  15972. eval "$as_ac_Lib=no"
  15973. fi
  15974. rm -f core conftest.err conftest.$ac_objext \
  15975. conftest$ac_exeext conftest.$ac_ext
  15976. LIBS=$ac_check_lib_save_LIBS
  15977. fi
  15978. eval ac_res=\$$as_ac_Lib
  15979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15980. $as_echo "$ac_res" >&6; }
  15981. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15982. AST_ICONV_FOUND=yes
  15983. else
  15984. AST_ICONV_FOUND=no
  15985. fi
  15986. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15987. fi
  15988. # now check for the header.
  15989. if test "${AST_ICONV_FOUND}" = "yes"; then
  15990. ICONV_LIB="${pbxlibdir} -lc "
  15991. # if --with-ICONV=DIR has been specified, use it.
  15992. if test "x${ICONV_DIR}" != "x"; then
  15993. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15994. fi
  15995. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15996. if test "xiconv.h" = "x" ; then # no header, assume found
  15997. ICONV_HEADER_FOUND="1"
  15998. else # check for the header
  15999. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16000. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16001. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16002. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16003. ICONV_HEADER_FOUND=1
  16004. else
  16005. ICONV_HEADER_FOUND=0
  16006. fi
  16007. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16008. fi
  16009. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16010. ICONV_LIB=""
  16011. ICONV_INCLUDE=""
  16012. else
  16013. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16014. ICONV_LIB=""
  16015. fi
  16016. PBX_ICONV=1
  16017. cat >>confdefs.h <<_ACEOF
  16018. #define HAVE_ICONV 1
  16019. _ACEOF
  16020. fi
  16021. fi
  16022. fi
  16023. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  16024. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  16025. pbxlibdir=""
  16026. # if --with-ICAL=DIR has been specified, use it.
  16027. if test "x${ICAL_DIR}" != "x"; then
  16028. if test -d ${ICAL_DIR}/lib; then
  16029. pbxlibdir="-L${ICAL_DIR}/lib"
  16030. else
  16031. pbxlibdir="-L${ICAL_DIR}"
  16032. fi
  16033. fi
  16034. pbxfuncname="icaltimezone_get_utc_timezone"
  16035. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16036. AST_ICAL_FOUND=yes
  16037. else
  16038. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16039. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16040. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
  16042. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  16043. if eval \${$as_ac_Lib+:} false; then :
  16044. $as_echo_n "(cached) " >&6
  16045. else
  16046. ac_check_lib_save_LIBS=$LIBS
  16047. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16049. /* end confdefs.h. */
  16050. /* Override any GCC internal prototype to avoid an error.
  16051. Use char because int might match the return type of a GCC
  16052. builtin and then its argument prototype would still apply. */
  16053. #ifdef __cplusplus
  16054. extern "C"
  16055. #endif
  16056. char ${pbxfuncname} ();
  16057. int
  16058. main ()
  16059. {
  16060. return ${pbxfuncname} ();
  16061. ;
  16062. return 0;
  16063. }
  16064. _ACEOF
  16065. if ac_fn_c_try_link "$LINENO"; then :
  16066. eval "$as_ac_Lib=yes"
  16067. else
  16068. eval "$as_ac_Lib=no"
  16069. fi
  16070. rm -f core conftest.err conftest.$ac_objext \
  16071. conftest$ac_exeext conftest.$ac_ext
  16072. LIBS=$ac_check_lib_save_LIBS
  16073. fi
  16074. eval ac_res=\$$as_ac_Lib
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16076. $as_echo "$ac_res" >&6; }
  16077. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16078. AST_ICAL_FOUND=yes
  16079. else
  16080. AST_ICAL_FOUND=no
  16081. fi
  16082. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16083. fi
  16084. # now check for the header.
  16085. if test "${AST_ICAL_FOUND}" = "yes"; then
  16086. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  16087. # if --with-ICAL=DIR has been specified, use it.
  16088. if test "x${ICAL_DIR}" != "x"; then
  16089. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  16090. fi
  16091. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  16092. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  16093. ICAL_HEADER_FOUND="1"
  16094. else # check for the header
  16095. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16096. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  16097. ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  16098. if test "x$ac_cv_header_libical_ical_h" = xyes; then :
  16099. ICAL_HEADER_FOUND=1
  16100. else
  16101. ICAL_HEADER_FOUND=0
  16102. fi
  16103. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16104. fi
  16105. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  16106. ICAL_LIB=""
  16107. ICAL_INCLUDE=""
  16108. else
  16109. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16110. ICAL_LIB=""
  16111. fi
  16112. PBX_ICAL=1
  16113. cat >>confdefs.h <<_ACEOF
  16114. #define HAVE_ICAL 1
  16115. _ACEOF
  16116. fi
  16117. fi
  16118. fi
  16119. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  16120. pbxlibdir=""
  16121. # if --with-IKSEMEL=DIR has been specified, use it.
  16122. if test "x${IKSEMEL_DIR}" != "x"; then
  16123. if test -d ${IKSEMEL_DIR}/lib; then
  16124. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  16125. else
  16126. pbxlibdir="-L${IKSEMEL_DIR}"
  16127. fi
  16128. fi
  16129. pbxfuncname="iks_start_sasl"
  16130. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16131. AST_IKSEMEL_FOUND=yes
  16132. else
  16133. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16134. CFLAGS="${CFLAGS} "
  16135. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
  16137. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  16138. if eval \${$as_ac_Lib+:} false; then :
  16139. $as_echo_n "(cached) " >&6
  16140. else
  16141. ac_check_lib_save_LIBS=$LIBS
  16142. LIBS="-liksemel ${pbxlibdir} $LIBS"
  16143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16144. /* end confdefs.h. */
  16145. /* Override any GCC internal prototype to avoid an error.
  16146. Use char because int might match the return type of a GCC
  16147. builtin and then its argument prototype would still apply. */
  16148. #ifdef __cplusplus
  16149. extern "C"
  16150. #endif
  16151. char ${pbxfuncname} ();
  16152. int
  16153. main ()
  16154. {
  16155. return ${pbxfuncname} ();
  16156. ;
  16157. return 0;
  16158. }
  16159. _ACEOF
  16160. if ac_fn_c_try_link "$LINENO"; then :
  16161. eval "$as_ac_Lib=yes"
  16162. else
  16163. eval "$as_ac_Lib=no"
  16164. fi
  16165. rm -f core conftest.err conftest.$ac_objext \
  16166. conftest$ac_exeext conftest.$ac_ext
  16167. LIBS=$ac_check_lib_save_LIBS
  16168. fi
  16169. eval ac_res=\$$as_ac_Lib
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16171. $as_echo "$ac_res" >&6; }
  16172. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16173. AST_IKSEMEL_FOUND=yes
  16174. else
  16175. AST_IKSEMEL_FOUND=no
  16176. fi
  16177. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16178. fi
  16179. # now check for the header.
  16180. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  16181. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  16182. # if --with-IKSEMEL=DIR has been specified, use it.
  16183. if test "x${IKSEMEL_DIR}" != "x"; then
  16184. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  16185. fi
  16186. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  16187. if test "xiksemel.h" = "x" ; then # no header, assume found
  16188. IKSEMEL_HEADER_FOUND="1"
  16189. else # check for the header
  16190. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16191. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  16192. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  16193. if test "x$ac_cv_header_iksemel_h" = xyes; then :
  16194. IKSEMEL_HEADER_FOUND=1
  16195. else
  16196. IKSEMEL_HEADER_FOUND=0
  16197. fi
  16198. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16199. fi
  16200. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  16201. IKSEMEL_LIB=""
  16202. IKSEMEL_INCLUDE=""
  16203. else
  16204. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16205. IKSEMEL_LIB=""
  16206. fi
  16207. PBX_IKSEMEL=1
  16208. cat >>confdefs.h <<_ACEOF
  16209. #define HAVE_IKSEMEL 1
  16210. _ACEOF
  16211. fi
  16212. fi
  16213. fi
  16214. if test "${USE_IMAP_TK}" != "no"; then
  16215. saved_cppflags="${CPPFLAGS}"
  16216. saved_libs="${LIBS}"
  16217. switch_to_system_on_failure="no"
  16218. if test "${IMAP_TK_DIR}" = ""; then
  16219. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  16220. switch_to_system_on_failure="yes"
  16221. fi
  16222. if test "${IMAP_TK_DIR}" != "system"; then
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  16224. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  16225. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  16226. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  16227. fi
  16228. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  16229. imap_include="-I${IMAP_TK_DIR}/c-client"
  16230. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16231. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16233. /* end confdefs.h. */
  16234. #include "c-client.h"
  16235. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16236. {
  16237. }
  16238. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16239. {
  16240. }
  16241. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16242. {
  16243. }
  16244. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16245. {
  16246. }
  16247. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16248. {
  16249. }
  16250. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16251. {
  16252. }
  16253. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16254. {
  16255. }
  16256. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16257. {
  16258. }
  16259. void mm_log (char *string,long errflg)
  16260. {
  16261. }
  16262. void mm_dlog (char *string)
  16263. {
  16264. }
  16265. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16266. {
  16267. }
  16268. void mm_critical (MAILSTREAM *stream)
  16269. {
  16270. }
  16271. void mm_nocritical (MAILSTREAM *stream)
  16272. {
  16273. }
  16274. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16275. {
  16276. }
  16277. void mm_fatal (char *string)
  16278. {
  16279. }
  16280. int
  16281. main ()
  16282. {
  16283. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16284. ;
  16285. return 0;
  16286. }
  16287. _ACEOF
  16288. if ac_fn_c_try_link "$LINENO"; then :
  16289. ac_cv_imap_tk="yes"
  16290. else
  16291. ac_cv_imap_tk="no"
  16292. fi
  16293. rm -f core conftest.err conftest.$ac_objext \
  16294. conftest$ac_exeext conftest.$ac_ext
  16295. if test "${ac_cv_imap_tk}" = "yes"; then
  16296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16297. /* end confdefs.h. */
  16298. #include "c-client.h"
  16299. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16300. {
  16301. }
  16302. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16303. {
  16304. }
  16305. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16306. {
  16307. }
  16308. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16309. {
  16310. }
  16311. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16312. {
  16313. }
  16314. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16315. {
  16316. }
  16317. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16318. {
  16319. }
  16320. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16321. {
  16322. }
  16323. void mm_log (char *string,long errflg)
  16324. {
  16325. }
  16326. void mm_dlog (char *string)
  16327. {
  16328. }
  16329. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16330. {
  16331. }
  16332. void mm_critical (MAILSTREAM *stream)
  16333. {
  16334. }
  16335. void mm_nocritical (MAILSTREAM *stream)
  16336. {
  16337. }
  16338. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16339. {
  16340. }
  16341. void mm_fatal (char *string)
  16342. {
  16343. }
  16344. int
  16345. main ()
  16346. {
  16347. long check = mail_expunge_full(NULL, "", 0);
  16348. ;
  16349. return 0;
  16350. }
  16351. _ACEOF
  16352. if ac_fn_c_try_link "$LINENO"; then :
  16353. ac_cv_imap_tk2006="yes"
  16354. else
  16355. ac_cv_imap_tk2006="no"
  16356. fi
  16357. rm -f core conftest.err conftest.$ac_objext \
  16358. conftest$ac_exeext conftest.$ac_ext
  16359. fi
  16360. CPPFLAGS="${saved_cppflags}"
  16361. LIBS="${saved_libs}"
  16362. if test "${ac_cv_imap_tk}" = "no"; then
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16364. $as_echo "no" >&6; }
  16365. if test "${switch_to_system_on_failure}" = "yes"; then
  16366. IMAP_TK_DIR="system"
  16367. else #This means they specified a directory. Search for a package installation there too
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  16369. $as_echo_n "checking for system c-client library...... " >&6; }
  16370. CPPFLAGS="${saved_cppflags}"
  16371. LIBS="${saved_libs}"
  16372. imap_include="-I${IMAP_TK_DIR}/include"
  16373. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  16374. imap_libs="-lc-client"
  16375. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16376. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  16377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16378. /* end confdefs.h. */
  16379. #include "c-client.h"
  16380. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16381. {
  16382. }
  16383. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16384. {
  16385. }
  16386. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16387. {
  16388. }
  16389. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16390. {
  16391. }
  16392. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16393. {
  16394. }
  16395. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16396. {
  16397. }
  16398. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16399. {
  16400. }
  16401. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16402. {
  16403. }
  16404. void mm_log (char *string,long errflg)
  16405. {
  16406. }
  16407. void mm_dlog (char *string)
  16408. {
  16409. }
  16410. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16411. {
  16412. }
  16413. void mm_critical (MAILSTREAM *stream)
  16414. {
  16415. }
  16416. void mm_nocritical (MAILSTREAM *stream)
  16417. {
  16418. }
  16419. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16420. {
  16421. }
  16422. void mm_fatal (char *string)
  16423. {
  16424. }
  16425. int
  16426. main ()
  16427. {
  16428. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16429. ;
  16430. return 0;
  16431. }
  16432. _ACEOF
  16433. if ac_fn_c_try_link "$LINENO"; then :
  16434. ac_cv_imap_tk="yes"
  16435. else
  16436. ac_cv_imap_tk="no"
  16437. fi
  16438. rm -f core conftest.err conftest.$ac_objext \
  16439. conftest$ac_exeext conftest.$ac_ext
  16440. if test "${ac_cv_imap_tk}" = "yes"; then
  16441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16442. /* end confdefs.h. */
  16443. #include "c-client.h"
  16444. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16445. {
  16446. }
  16447. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16448. {
  16449. }
  16450. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16451. {
  16452. }
  16453. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16454. {
  16455. }
  16456. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16457. {
  16458. }
  16459. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16460. {
  16461. }
  16462. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16463. {
  16464. }
  16465. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16466. {
  16467. }
  16468. void mm_log (char *string,long errflg)
  16469. {
  16470. }
  16471. void mm_dlog (char *string)
  16472. {
  16473. }
  16474. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16475. {
  16476. }
  16477. void mm_critical (MAILSTREAM *stream)
  16478. {
  16479. }
  16480. void mm_nocritical (MAILSTREAM *stream)
  16481. {
  16482. }
  16483. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16484. {
  16485. }
  16486. void mm_fatal (char *string)
  16487. {
  16488. }
  16489. int
  16490. main ()
  16491. {
  16492. long check = mail_expunge_full(NULL, "", 0);
  16493. ;
  16494. return 0;
  16495. }
  16496. _ACEOF
  16497. if ac_fn_c_try_link "$LINENO"; then :
  16498. ac_cv_imap_tk2006="yes"
  16499. else
  16500. ac_cv_imap_tk2006="no"
  16501. fi
  16502. rm -f core conftest.err conftest.$ac_objext \
  16503. conftest$ac_exeext conftest.$ac_ext
  16504. fi
  16505. fi
  16506. fi
  16507. fi
  16508. if test "${IMAP_TK_DIR}" = "system"; then
  16509. #We will enter here if user specified "system" or if any of above checks failed
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  16511. $as_echo_n "checking for system c-client library...... " >&6; }
  16512. CPPFLAGS="${saved_cppflags}"
  16513. LIBS="${saved_libs}"
  16514. imap_ldflags=""
  16515. imap_libs="-lc-client"
  16516. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  16517. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16518. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16520. /* end confdefs.h. */
  16521. #include <stdio.h>
  16522. #include <imap/c-client.h>
  16523. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16524. {
  16525. }
  16526. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16527. {
  16528. }
  16529. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16530. {
  16531. }
  16532. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16533. {
  16534. }
  16535. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16536. {
  16537. }
  16538. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16539. {
  16540. }
  16541. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16542. {
  16543. }
  16544. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16545. {
  16546. }
  16547. void mm_log (char *string,long errflg)
  16548. {
  16549. }
  16550. void mm_dlog (char *string)
  16551. {
  16552. }
  16553. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16554. {
  16555. }
  16556. void mm_critical (MAILSTREAM *stream)
  16557. {
  16558. }
  16559. void mm_nocritical (MAILSTREAM *stream)
  16560. {
  16561. }
  16562. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16563. {
  16564. }
  16565. void mm_fatal (char *string)
  16566. {
  16567. }
  16568. int
  16569. main ()
  16570. {
  16571. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16572. ;
  16573. return 0;
  16574. }
  16575. _ACEOF
  16576. if ac_fn_c_try_link "$LINENO"; then :
  16577. ac_cv_imap_tk="yes"
  16578. else
  16579. ac_cv_imap_tk="no"
  16580. fi
  16581. rm -f core conftest.err conftest.$ac_objext \
  16582. conftest$ac_exeext conftest.$ac_ext
  16583. if test "${ac_cv_imap_tk}" = "yes"; then
  16584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16585. /* end confdefs.h. */
  16586. #include <stdio.h>
  16587. #include <imap/c-client.h>
  16588. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16589. {
  16590. }
  16591. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16592. {
  16593. }
  16594. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16595. {
  16596. }
  16597. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16598. {
  16599. }
  16600. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16601. {
  16602. }
  16603. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16604. {
  16605. }
  16606. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16607. {
  16608. }
  16609. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16610. {
  16611. }
  16612. void mm_log (char *string,long errflg)
  16613. {
  16614. }
  16615. void mm_dlog (char *string)
  16616. {
  16617. }
  16618. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16619. {
  16620. }
  16621. void mm_critical (MAILSTREAM *stream)
  16622. {
  16623. }
  16624. void mm_nocritical (MAILSTREAM *stream)
  16625. {
  16626. }
  16627. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16628. {
  16629. }
  16630. void mm_fatal (char *string)
  16631. {
  16632. }
  16633. int
  16634. main ()
  16635. {
  16636. long check = mail_expunge_full(NULL, "", 0);
  16637. ;
  16638. return 0;
  16639. }
  16640. _ACEOF
  16641. if ac_fn_c_try_link "$LINENO"; then :
  16642. ac_cv_imap_tk2006="yes"
  16643. else
  16644. ac_cv_imap_tk2006="no"
  16645. fi
  16646. rm -f core conftest.err conftest.$ac_objext \
  16647. conftest$ac_exeext conftest.$ac_ext
  16648. else #looking in imap directory didn't work, try c-client
  16649. imap_ldflags=""
  16650. imap_libs="-lc-client"
  16651. imap_include="-DUSE_SYSTEM_CCLIENT"
  16652. CPPFLAGS="${saved_cppflags}"
  16653. LIBS="${saved_libs}"
  16654. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16655. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16657. /* end confdefs.h. */
  16658. #include <stdio.h>
  16659. #include <c-client/c-client.h>
  16660. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16661. {
  16662. }
  16663. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16664. {
  16665. }
  16666. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16667. {
  16668. }
  16669. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16670. {
  16671. }
  16672. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16673. {
  16674. }
  16675. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16676. {
  16677. }
  16678. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16679. {
  16680. }
  16681. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16682. {
  16683. }
  16684. void mm_log (char *string,long errflg)
  16685. {
  16686. }
  16687. void mm_dlog (char *string)
  16688. {
  16689. }
  16690. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16691. {
  16692. }
  16693. void mm_critical (MAILSTREAM *stream)
  16694. {
  16695. }
  16696. void mm_nocritical (MAILSTREAM *stream)
  16697. {
  16698. }
  16699. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16700. {
  16701. }
  16702. void mm_fatal (char *string)
  16703. {
  16704. }
  16705. int
  16706. main ()
  16707. {
  16708. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16709. ;
  16710. return 0;
  16711. }
  16712. _ACEOF
  16713. if ac_fn_c_try_link "$LINENO"; then :
  16714. ac_cv_imap_tk="yes"
  16715. else
  16716. ac_cv_imap_tk="no"
  16717. fi
  16718. rm -f core conftest.err conftest.$ac_objext \
  16719. conftest$ac_exeext conftest.$ac_ext
  16720. if test "${ac_cv_imap_tk}" = "yes"; then
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. #include <stdio.h>
  16724. #include <c-client/c-client.h>
  16725. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16726. {
  16727. }
  16728. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16729. {
  16730. }
  16731. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16732. {
  16733. }
  16734. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16735. {
  16736. }
  16737. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16738. {
  16739. }
  16740. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16741. {
  16742. }
  16743. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16744. {
  16745. }
  16746. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16747. {
  16748. }
  16749. void mm_log (char *string,long errflg)
  16750. {
  16751. }
  16752. void mm_dlog (char *string)
  16753. {
  16754. }
  16755. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16756. {
  16757. }
  16758. void mm_critical (MAILSTREAM *stream)
  16759. {
  16760. }
  16761. void mm_nocritical (MAILSTREAM *stream)
  16762. {
  16763. }
  16764. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16765. {
  16766. }
  16767. void mm_fatal (char *string)
  16768. {
  16769. }
  16770. int
  16771. main ()
  16772. {
  16773. long check = mail_expunge_full(NULL, "", 0);
  16774. ;
  16775. return 0;
  16776. }
  16777. _ACEOF
  16778. if ac_fn_c_try_link "$LINENO"; then :
  16779. ac_cv_imap_tk2006="yes"
  16780. else
  16781. ac_cv_imap_tk2006="no"
  16782. fi
  16783. rm -f core conftest.err conftest.$ac_objext \
  16784. conftest$ac_exeext conftest.$ac_ext
  16785. fi
  16786. fi
  16787. fi
  16788. if test "${ac_cv_imap_tk}" = "yes"; then
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16790. $as_echo "yes" >&6; }
  16791. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  16792. IMAP_TK_INCLUDE="${imap_include}"
  16793. PBX_IMAP_TK=1
  16794. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  16795. if test "${ac_cv_imap_tk2006}" = "yes"; then
  16796. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  16797. fi
  16798. else
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16800. $as_echo "no" >&6; }
  16801. fi
  16802. CPPFLAGS="${saved_cppflags}"
  16803. LIBS="${saved_libs}"
  16804. fi
  16805. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  16806. pbxlibdir=""
  16807. # if --with-IODBC=DIR has been specified, use it.
  16808. if test "x${IODBC_DIR}" != "x"; then
  16809. if test -d ${IODBC_DIR}/lib; then
  16810. pbxlibdir="-L${IODBC_DIR}/lib"
  16811. else
  16812. pbxlibdir="-L${IODBC_DIR}"
  16813. fi
  16814. fi
  16815. pbxfuncname="SQLConnect"
  16816. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16817. AST_IODBC_FOUND=yes
  16818. else
  16819. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16820. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16821. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
  16823. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  16824. if eval \${$as_ac_Lib+:} false; then :
  16825. $as_echo_n "(cached) " >&6
  16826. else
  16827. ac_check_lib_save_LIBS=$LIBS
  16828. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16830. /* end confdefs.h. */
  16831. /* Override any GCC internal prototype to avoid an error.
  16832. Use char because int might match the return type of a GCC
  16833. builtin and then its argument prototype would still apply. */
  16834. #ifdef __cplusplus
  16835. extern "C"
  16836. #endif
  16837. char ${pbxfuncname} ();
  16838. int
  16839. main ()
  16840. {
  16841. return ${pbxfuncname} ();
  16842. ;
  16843. return 0;
  16844. }
  16845. _ACEOF
  16846. if ac_fn_c_try_link "$LINENO"; then :
  16847. eval "$as_ac_Lib=yes"
  16848. else
  16849. eval "$as_ac_Lib=no"
  16850. fi
  16851. rm -f core conftest.err conftest.$ac_objext \
  16852. conftest$ac_exeext conftest.$ac_ext
  16853. LIBS=$ac_check_lib_save_LIBS
  16854. fi
  16855. eval ac_res=\$$as_ac_Lib
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16857. $as_echo "$ac_res" >&6; }
  16858. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16859. AST_IODBC_FOUND=yes
  16860. else
  16861. AST_IODBC_FOUND=no
  16862. fi
  16863. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16864. fi
  16865. # now check for the header.
  16866. if test "${AST_IODBC_FOUND}" = "yes"; then
  16867. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  16868. # if --with-IODBC=DIR has been specified, use it.
  16869. if test "x${IODBC_DIR}" != "x"; then
  16870. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  16871. fi
  16872. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  16873. if test "xsql.h" = "x" ; then # no header, assume found
  16874. IODBC_HEADER_FOUND="1"
  16875. else # check for the header
  16876. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16877. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  16878. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  16879. if test "x$ac_cv_header_sql_h" = xyes; then :
  16880. IODBC_HEADER_FOUND=1
  16881. else
  16882. IODBC_HEADER_FOUND=0
  16883. fi
  16884. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16885. fi
  16886. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  16887. IODBC_LIB=""
  16888. IODBC_INCLUDE=""
  16889. else
  16890. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16891. IODBC_LIB=""
  16892. fi
  16893. PBX_IODBC=1
  16894. cat >>confdefs.h <<_ACEOF
  16895. #define HAVE_IODBC 1
  16896. _ACEOF
  16897. fi
  16898. fi
  16899. fi
  16900. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  16901. pbxlibdir=""
  16902. # if --with-INOTIFY=DIR has been specified, use it.
  16903. if test "x${INOTIFY_DIR}" != "x"; then
  16904. if test -d ${INOTIFY_DIR}/lib; then
  16905. pbxlibdir="-L${INOTIFY_DIR}/lib"
  16906. else
  16907. pbxlibdir="-L${INOTIFY_DIR}"
  16908. fi
  16909. fi
  16910. pbxfuncname="inotify_init"
  16911. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16912. AST_INOTIFY_FOUND=yes
  16913. else
  16914. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16915. CFLAGS="${CFLAGS} "
  16916. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  16918. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  16919. if eval \${$as_ac_Lib+:} false; then :
  16920. $as_echo_n "(cached) " >&6
  16921. else
  16922. ac_check_lib_save_LIBS=$LIBS
  16923. LIBS="-lc ${pbxlibdir} $LIBS"
  16924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16925. /* end confdefs.h. */
  16926. /* Override any GCC internal prototype to avoid an error.
  16927. Use char because int might match the return type of a GCC
  16928. builtin and then its argument prototype would still apply. */
  16929. #ifdef __cplusplus
  16930. extern "C"
  16931. #endif
  16932. char ${pbxfuncname} ();
  16933. int
  16934. main ()
  16935. {
  16936. return ${pbxfuncname} ();
  16937. ;
  16938. return 0;
  16939. }
  16940. _ACEOF
  16941. if ac_fn_c_try_link "$LINENO"; then :
  16942. eval "$as_ac_Lib=yes"
  16943. else
  16944. eval "$as_ac_Lib=no"
  16945. fi
  16946. rm -f core conftest.err conftest.$ac_objext \
  16947. conftest$ac_exeext conftest.$ac_ext
  16948. LIBS=$ac_check_lib_save_LIBS
  16949. fi
  16950. eval ac_res=\$$as_ac_Lib
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16952. $as_echo "$ac_res" >&6; }
  16953. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16954. AST_INOTIFY_FOUND=yes
  16955. else
  16956. AST_INOTIFY_FOUND=no
  16957. fi
  16958. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16959. fi
  16960. # now check for the header.
  16961. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  16962. INOTIFY_LIB="${pbxlibdir} -lc "
  16963. # if --with-INOTIFY=DIR has been specified, use it.
  16964. if test "x${INOTIFY_DIR}" != "x"; then
  16965. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  16966. fi
  16967. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  16968. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  16969. INOTIFY_HEADER_FOUND="1"
  16970. else # check for the header
  16971. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16972. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  16973. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  16974. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  16975. INOTIFY_HEADER_FOUND=1
  16976. else
  16977. INOTIFY_HEADER_FOUND=0
  16978. fi
  16979. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16980. fi
  16981. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  16982. INOTIFY_LIB=""
  16983. INOTIFY_INCLUDE=""
  16984. else
  16985. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16986. INOTIFY_LIB=""
  16987. fi
  16988. PBX_INOTIFY=1
  16989. cat >>confdefs.h <<_ACEOF
  16990. #define HAVE_INOTIFY 1
  16991. _ACEOF
  16992. fi
  16993. fi
  16994. fi
  16995. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  16996. pbxlibdir=""
  16997. # if --with-JACK=DIR has been specified, use it.
  16998. if test "x${JACK_DIR}" != "x"; then
  16999. if test -d ${JACK_DIR}/lib; then
  17000. pbxlibdir="-L${JACK_DIR}/lib"
  17001. else
  17002. pbxlibdir="-L${JACK_DIR}"
  17003. fi
  17004. fi
  17005. pbxfuncname="jack_activate"
  17006. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17007. AST_JACK_FOUND=yes
  17008. else
  17009. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17010. CFLAGS="${CFLAGS} "
  17011. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
  17013. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  17014. if eval \${$as_ac_Lib+:} false; then :
  17015. $as_echo_n "(cached) " >&6
  17016. else
  17017. ac_check_lib_save_LIBS=$LIBS
  17018. LIBS="-ljack ${pbxlibdir} $LIBS"
  17019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17020. /* end confdefs.h. */
  17021. /* Override any GCC internal prototype to avoid an error.
  17022. Use char because int might match the return type of a GCC
  17023. builtin and then its argument prototype would still apply. */
  17024. #ifdef __cplusplus
  17025. extern "C"
  17026. #endif
  17027. char ${pbxfuncname} ();
  17028. int
  17029. main ()
  17030. {
  17031. return ${pbxfuncname} ();
  17032. ;
  17033. return 0;
  17034. }
  17035. _ACEOF
  17036. if ac_fn_c_try_link "$LINENO"; then :
  17037. eval "$as_ac_Lib=yes"
  17038. else
  17039. eval "$as_ac_Lib=no"
  17040. fi
  17041. rm -f core conftest.err conftest.$ac_objext \
  17042. conftest$ac_exeext conftest.$ac_ext
  17043. LIBS=$ac_check_lib_save_LIBS
  17044. fi
  17045. eval ac_res=\$$as_ac_Lib
  17046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17047. $as_echo "$ac_res" >&6; }
  17048. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17049. AST_JACK_FOUND=yes
  17050. else
  17051. AST_JACK_FOUND=no
  17052. fi
  17053. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17054. fi
  17055. # now check for the header.
  17056. if test "${AST_JACK_FOUND}" = "yes"; then
  17057. JACK_LIB="${pbxlibdir} -ljack "
  17058. # if --with-JACK=DIR has been specified, use it.
  17059. if test "x${JACK_DIR}" != "x"; then
  17060. JACK_INCLUDE="-I${JACK_DIR}/include"
  17061. fi
  17062. JACK_INCLUDE="${JACK_INCLUDE} "
  17063. if test "xjack/jack.h" = "x" ; then # no header, assume found
  17064. JACK_HEADER_FOUND="1"
  17065. else # check for the header
  17066. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17067. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  17068. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  17069. if test "x$ac_cv_header_jack_jack_h" = xyes; then :
  17070. JACK_HEADER_FOUND=1
  17071. else
  17072. JACK_HEADER_FOUND=0
  17073. fi
  17074. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17075. fi
  17076. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  17077. JACK_LIB=""
  17078. JACK_INCLUDE=""
  17079. else
  17080. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17081. JACK_LIB=""
  17082. fi
  17083. PBX_JACK=1
  17084. cat >>confdefs.h <<_ACEOF
  17085. #define HAVE_JACK 1
  17086. _ACEOF
  17087. fi
  17088. fi
  17089. fi
  17090. # BSD (and OS X) equivalent of inotify
  17091. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  17092. pbxlibdir=""
  17093. # if --with-KQUEUE=DIR has been specified, use it.
  17094. if test "x${KQUEUE_DIR}" != "x"; then
  17095. if test -d ${KQUEUE_DIR}/lib; then
  17096. pbxlibdir="-L${KQUEUE_DIR}/lib"
  17097. else
  17098. pbxlibdir="-L${KQUEUE_DIR}"
  17099. fi
  17100. fi
  17101. pbxfuncname="kqueue"
  17102. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17103. AST_KQUEUE_FOUND=yes
  17104. else
  17105. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17106. CFLAGS="${CFLAGS} "
  17107. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17109. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17110. if eval \${$as_ac_Lib+:} false; then :
  17111. $as_echo_n "(cached) " >&6
  17112. else
  17113. ac_check_lib_save_LIBS=$LIBS
  17114. LIBS="-lc ${pbxlibdir} $LIBS"
  17115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17116. /* end confdefs.h. */
  17117. /* Override any GCC internal prototype to avoid an error.
  17118. Use char because int might match the return type of a GCC
  17119. builtin and then its argument prototype would still apply. */
  17120. #ifdef __cplusplus
  17121. extern "C"
  17122. #endif
  17123. char ${pbxfuncname} ();
  17124. int
  17125. main ()
  17126. {
  17127. return ${pbxfuncname} ();
  17128. ;
  17129. return 0;
  17130. }
  17131. _ACEOF
  17132. if ac_fn_c_try_link "$LINENO"; then :
  17133. eval "$as_ac_Lib=yes"
  17134. else
  17135. eval "$as_ac_Lib=no"
  17136. fi
  17137. rm -f core conftest.err conftest.$ac_objext \
  17138. conftest$ac_exeext conftest.$ac_ext
  17139. LIBS=$ac_check_lib_save_LIBS
  17140. fi
  17141. eval ac_res=\$$as_ac_Lib
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17143. $as_echo "$ac_res" >&6; }
  17144. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17145. AST_KQUEUE_FOUND=yes
  17146. else
  17147. AST_KQUEUE_FOUND=no
  17148. fi
  17149. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17150. fi
  17151. # now check for the header.
  17152. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  17153. KQUEUE_LIB="${pbxlibdir} -lc "
  17154. # if --with-KQUEUE=DIR has been specified, use it.
  17155. if test "x${KQUEUE_DIR}" != "x"; then
  17156. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  17157. fi
  17158. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  17159. if test "xsys/event.h" = "x" ; then # no header, assume found
  17160. KQUEUE_HEADER_FOUND="1"
  17161. else # check for the header
  17162. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17163. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  17164. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  17165. if test "x$ac_cv_header_sys_event_h" = xyes; then :
  17166. KQUEUE_HEADER_FOUND=1
  17167. else
  17168. KQUEUE_HEADER_FOUND=0
  17169. fi
  17170. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17171. fi
  17172. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  17173. KQUEUE_LIB=""
  17174. KQUEUE_INCLUDE=""
  17175. else
  17176. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17177. KQUEUE_LIB=""
  17178. fi
  17179. PBX_KQUEUE=1
  17180. cat >>confdefs.h <<_ACEOF
  17181. #define HAVE_KQUEUE 1
  17182. _ACEOF
  17183. fi
  17184. fi
  17185. fi
  17186. # 64-bit version of kevent (from kqueue) on OS X
  17187. for ac_func in kevent64
  17188. do :
  17189. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  17190. if test "x$ac_cv_func_kevent64" = xyes; then :
  17191. cat >>confdefs.h <<_ACEOF
  17192. #define HAVE_KEVENT64 1
  17193. _ACEOF
  17194. fi
  17195. done
  17196. # Needed by unixodbc
  17197. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  17198. pbxlibdir=""
  17199. # if --with-LTDL=DIR has been specified, use it.
  17200. if test "x${LTDL_DIR}" != "x"; then
  17201. if test -d ${LTDL_DIR}/lib; then
  17202. pbxlibdir="-L${LTDL_DIR}/lib"
  17203. else
  17204. pbxlibdir="-L${LTDL_DIR}"
  17205. fi
  17206. fi
  17207. pbxfuncname="lt_dlinit"
  17208. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17209. AST_LTDL_FOUND=yes
  17210. else
  17211. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17212. CFLAGS="${CFLAGS} "
  17213. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
  17215. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  17216. if eval \${$as_ac_Lib+:} false; then :
  17217. $as_echo_n "(cached) " >&6
  17218. else
  17219. ac_check_lib_save_LIBS=$LIBS
  17220. LIBS="-lltdl ${pbxlibdir} $LIBS"
  17221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17222. /* end confdefs.h. */
  17223. /* Override any GCC internal prototype to avoid an error.
  17224. Use char because int might match the return type of a GCC
  17225. builtin and then its argument prototype would still apply. */
  17226. #ifdef __cplusplus
  17227. extern "C"
  17228. #endif
  17229. char ${pbxfuncname} ();
  17230. int
  17231. main ()
  17232. {
  17233. return ${pbxfuncname} ();
  17234. ;
  17235. return 0;
  17236. }
  17237. _ACEOF
  17238. if ac_fn_c_try_link "$LINENO"; then :
  17239. eval "$as_ac_Lib=yes"
  17240. else
  17241. eval "$as_ac_Lib=no"
  17242. fi
  17243. rm -f core conftest.err conftest.$ac_objext \
  17244. conftest$ac_exeext conftest.$ac_ext
  17245. LIBS=$ac_check_lib_save_LIBS
  17246. fi
  17247. eval ac_res=\$$as_ac_Lib
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17249. $as_echo "$ac_res" >&6; }
  17250. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17251. AST_LTDL_FOUND=yes
  17252. else
  17253. AST_LTDL_FOUND=no
  17254. fi
  17255. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17256. fi
  17257. # now check for the header.
  17258. if test "${AST_LTDL_FOUND}" = "yes"; then
  17259. LTDL_LIB="${pbxlibdir} -lltdl "
  17260. # if --with-LTDL=DIR has been specified, use it.
  17261. if test "x${LTDL_DIR}" != "x"; then
  17262. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  17263. fi
  17264. LTDL_INCLUDE="${LTDL_INCLUDE} "
  17265. if test "xltdl.h" = "x" ; then # no header, assume found
  17266. LTDL_HEADER_FOUND="1"
  17267. else # check for the header
  17268. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17269. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  17270. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  17271. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  17272. LTDL_HEADER_FOUND=1
  17273. else
  17274. LTDL_HEADER_FOUND=0
  17275. fi
  17276. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17277. fi
  17278. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  17279. LTDL_LIB=""
  17280. LTDL_INCLUDE=""
  17281. else
  17282. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17283. LTDL_LIB=""
  17284. fi
  17285. PBX_LTDL=1
  17286. cat >>confdefs.h <<_ACEOF
  17287. #define HAVE_LTDL 1
  17288. _ACEOF
  17289. fi
  17290. fi
  17291. fi
  17292. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  17293. pbxlibdir=""
  17294. # if --with-LDAP=DIR has been specified, use it.
  17295. if test "x${LDAP_DIR}" != "x"; then
  17296. if test -d ${LDAP_DIR}/lib; then
  17297. pbxlibdir="-L${LDAP_DIR}/lib"
  17298. else
  17299. pbxlibdir="-L${LDAP_DIR}"
  17300. fi
  17301. fi
  17302. pbxfuncname="ldap_initialize"
  17303. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17304. AST_LDAP_FOUND=yes
  17305. else
  17306. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17307. CFLAGS="${CFLAGS} "
  17308. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
  17310. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  17311. if eval \${$as_ac_Lib+:} false; then :
  17312. $as_echo_n "(cached) " >&6
  17313. else
  17314. ac_check_lib_save_LIBS=$LIBS
  17315. LIBS="-lldap ${pbxlibdir} $LIBS"
  17316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17317. /* end confdefs.h. */
  17318. /* Override any GCC internal prototype to avoid an error.
  17319. Use char because int might match the return type of a GCC
  17320. builtin and then its argument prototype would still apply. */
  17321. #ifdef __cplusplus
  17322. extern "C"
  17323. #endif
  17324. char ${pbxfuncname} ();
  17325. int
  17326. main ()
  17327. {
  17328. return ${pbxfuncname} ();
  17329. ;
  17330. return 0;
  17331. }
  17332. _ACEOF
  17333. if ac_fn_c_try_link "$LINENO"; then :
  17334. eval "$as_ac_Lib=yes"
  17335. else
  17336. eval "$as_ac_Lib=no"
  17337. fi
  17338. rm -f core conftest.err conftest.$ac_objext \
  17339. conftest$ac_exeext conftest.$ac_ext
  17340. LIBS=$ac_check_lib_save_LIBS
  17341. fi
  17342. eval ac_res=\$$as_ac_Lib
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17344. $as_echo "$ac_res" >&6; }
  17345. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17346. AST_LDAP_FOUND=yes
  17347. else
  17348. AST_LDAP_FOUND=no
  17349. fi
  17350. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17351. fi
  17352. # now check for the header.
  17353. if test "${AST_LDAP_FOUND}" = "yes"; then
  17354. LDAP_LIB="${pbxlibdir} -lldap "
  17355. # if --with-LDAP=DIR has been specified, use it.
  17356. if test "x${LDAP_DIR}" != "x"; then
  17357. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  17358. fi
  17359. LDAP_INCLUDE="${LDAP_INCLUDE} "
  17360. if test "xldap.h" = "x" ; then # no header, assume found
  17361. LDAP_HEADER_FOUND="1"
  17362. else # check for the header
  17363. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17364. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  17365. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  17366. if test "x$ac_cv_header_ldap_h" = xyes; then :
  17367. LDAP_HEADER_FOUND=1
  17368. else
  17369. LDAP_HEADER_FOUND=0
  17370. fi
  17371. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17372. fi
  17373. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  17374. LDAP_LIB=""
  17375. LDAP_INCLUDE=""
  17376. else
  17377. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17378. LDAP_LIB=""
  17379. fi
  17380. PBX_LDAP=1
  17381. cat >>confdefs.h <<_ACEOF
  17382. #define HAVE_LDAP 1
  17383. _ACEOF
  17384. fi
  17385. fi
  17386. fi
  17387. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  17388. pbxlibdir=""
  17389. # if --with-MISDN=DIR has been specified, use it.
  17390. if test "x${MISDN_DIR}" != "x"; then
  17391. if test -d ${MISDN_DIR}/lib; then
  17392. pbxlibdir="-L${MISDN_DIR}/lib"
  17393. else
  17394. pbxlibdir="-L${MISDN_DIR}"
  17395. fi
  17396. fi
  17397. pbxfuncname="mISDN_open"
  17398. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17399. AST_MISDN_FOUND=yes
  17400. else
  17401. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17402. CFLAGS="${CFLAGS} "
  17403. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
  17405. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  17406. if eval \${$as_ac_Lib+:} false; then :
  17407. $as_echo_n "(cached) " >&6
  17408. else
  17409. ac_check_lib_save_LIBS=$LIBS
  17410. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  17411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17412. /* end confdefs.h. */
  17413. /* Override any GCC internal prototype to avoid an error.
  17414. Use char because int might match the return type of a GCC
  17415. builtin and then its argument prototype would still apply. */
  17416. #ifdef __cplusplus
  17417. extern "C"
  17418. #endif
  17419. char ${pbxfuncname} ();
  17420. int
  17421. main ()
  17422. {
  17423. return ${pbxfuncname} ();
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. eval "$as_ac_Lib=yes"
  17430. else
  17431. eval "$as_ac_Lib=no"
  17432. fi
  17433. rm -f core conftest.err conftest.$ac_objext \
  17434. conftest$ac_exeext conftest.$ac_ext
  17435. LIBS=$ac_check_lib_save_LIBS
  17436. fi
  17437. eval ac_res=\$$as_ac_Lib
  17438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17439. $as_echo "$ac_res" >&6; }
  17440. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17441. AST_MISDN_FOUND=yes
  17442. else
  17443. AST_MISDN_FOUND=no
  17444. fi
  17445. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17446. fi
  17447. # now check for the header.
  17448. if test "${AST_MISDN_FOUND}" = "yes"; then
  17449. MISDN_LIB="${pbxlibdir} -lmISDN "
  17450. # if --with-MISDN=DIR has been specified, use it.
  17451. if test "x${MISDN_DIR}" != "x"; then
  17452. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  17453. fi
  17454. MISDN_INCLUDE="${MISDN_INCLUDE} "
  17455. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  17456. MISDN_HEADER_FOUND="1"
  17457. else # check for the header
  17458. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17459. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  17460. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  17461. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = xyes; then :
  17462. MISDN_HEADER_FOUND=1
  17463. else
  17464. MISDN_HEADER_FOUND=0
  17465. fi
  17466. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17467. fi
  17468. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  17469. MISDN_LIB=""
  17470. MISDN_INCLUDE=""
  17471. else
  17472. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17473. MISDN_LIB=""
  17474. fi
  17475. PBX_MISDN=1
  17476. cat >>confdefs.h <<_ACEOF
  17477. #define HAVE_MISDN 1
  17478. _ACEOF
  17479. fi
  17480. fi
  17481. fi
  17482. if test "${PBX_MISDN}" = 1; then
  17483. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  17484. pbxlibdir=""
  17485. # if --with-ISDNNET=DIR has been specified, use it.
  17486. if test "x${ISDNNET_DIR}" != "x"; then
  17487. if test -d ${ISDNNET_DIR}/lib; then
  17488. pbxlibdir="-L${ISDNNET_DIR}/lib"
  17489. else
  17490. pbxlibdir="-L${ISDNNET_DIR}"
  17491. fi
  17492. fi
  17493. pbxfuncname="init_manager"
  17494. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17495. AST_ISDNNET_FOUND=yes
  17496. else
  17497. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17498. CFLAGS="${CFLAGS} "
  17499. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
  17501. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  17502. if eval \${$as_ac_Lib+:} false; then :
  17503. $as_echo_n "(cached) " >&6
  17504. else
  17505. ac_check_lib_save_LIBS=$LIBS
  17506. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  17507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17508. /* end confdefs.h. */
  17509. /* Override any GCC internal prototype to avoid an error.
  17510. Use char because int might match the return type of a GCC
  17511. builtin and then its argument prototype would still apply. */
  17512. #ifdef __cplusplus
  17513. extern "C"
  17514. #endif
  17515. char ${pbxfuncname} ();
  17516. int
  17517. main ()
  17518. {
  17519. return ${pbxfuncname} ();
  17520. ;
  17521. return 0;
  17522. }
  17523. _ACEOF
  17524. if ac_fn_c_try_link "$LINENO"; then :
  17525. eval "$as_ac_Lib=yes"
  17526. else
  17527. eval "$as_ac_Lib=no"
  17528. fi
  17529. rm -f core conftest.err conftest.$ac_objext \
  17530. conftest$ac_exeext conftest.$ac_ext
  17531. LIBS=$ac_check_lib_save_LIBS
  17532. fi
  17533. eval ac_res=\$$as_ac_Lib
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17535. $as_echo "$ac_res" >&6; }
  17536. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17537. AST_ISDNNET_FOUND=yes
  17538. else
  17539. AST_ISDNNET_FOUND=no
  17540. fi
  17541. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17542. fi
  17543. # now check for the header.
  17544. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  17545. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  17546. # if --with-ISDNNET=DIR has been specified, use it.
  17547. if test "x${ISDNNET_DIR}" != "x"; then
  17548. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  17549. fi
  17550. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  17551. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  17552. ISDNNET_HEADER_FOUND="1"
  17553. else # check for the header
  17554. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17555. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  17556. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  17557. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = xyes; then :
  17558. ISDNNET_HEADER_FOUND=1
  17559. else
  17560. ISDNNET_HEADER_FOUND=0
  17561. fi
  17562. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17563. fi
  17564. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  17565. ISDNNET_LIB=""
  17566. ISDNNET_INCLUDE=""
  17567. else
  17568. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17569. ISDNNET_LIB=""
  17570. fi
  17571. PBX_ISDNNET=1
  17572. cat >>confdefs.h <<_ACEOF
  17573. #define HAVE_ISDNNET 1
  17574. _ACEOF
  17575. fi
  17576. fi
  17577. fi
  17578. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  17579. pbxlibdir=""
  17580. # if --with-SUPPSERV=DIR has been specified, use it.
  17581. if test "x${SUPPSERV_DIR}" != "x"; then
  17582. if test -d ${SUPPSERV_DIR}/lib; then
  17583. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  17584. else
  17585. pbxlibdir="-L${SUPPSERV_DIR}"
  17586. fi
  17587. fi
  17588. pbxfuncname="encodeFac"
  17589. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17590. AST_SUPPSERV_FOUND=yes
  17591. else
  17592. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17593. CFLAGS="${CFLAGS} "
  17594. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
  17596. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  17597. if eval \${$as_ac_Lib+:} false; then :
  17598. $as_echo_n "(cached) " >&6
  17599. else
  17600. ac_check_lib_save_LIBS=$LIBS
  17601. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  17602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17603. /* end confdefs.h. */
  17604. /* Override any GCC internal prototype to avoid an error.
  17605. Use char because int might match the return type of a GCC
  17606. builtin and then its argument prototype would still apply. */
  17607. #ifdef __cplusplus
  17608. extern "C"
  17609. #endif
  17610. char ${pbxfuncname} ();
  17611. int
  17612. main ()
  17613. {
  17614. return ${pbxfuncname} ();
  17615. ;
  17616. return 0;
  17617. }
  17618. _ACEOF
  17619. if ac_fn_c_try_link "$LINENO"; then :
  17620. eval "$as_ac_Lib=yes"
  17621. else
  17622. eval "$as_ac_Lib=no"
  17623. fi
  17624. rm -f core conftest.err conftest.$ac_objext \
  17625. conftest$ac_exeext conftest.$ac_ext
  17626. LIBS=$ac_check_lib_save_LIBS
  17627. fi
  17628. eval ac_res=\$$as_ac_Lib
  17629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17630. $as_echo "$ac_res" >&6; }
  17631. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17632. AST_SUPPSERV_FOUND=yes
  17633. else
  17634. AST_SUPPSERV_FOUND=no
  17635. fi
  17636. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17637. fi
  17638. # now check for the header.
  17639. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  17640. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  17641. # if --with-SUPPSERV=DIR has been specified, use it.
  17642. if test "x${SUPPSERV_DIR}" != "x"; then
  17643. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  17644. fi
  17645. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  17646. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  17647. SUPPSERV_HEADER_FOUND="1"
  17648. else # check for the header
  17649. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17650. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  17651. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  17652. if test "x$ac_cv_header_mISDNuser_suppserv_h" = xyes; then :
  17653. SUPPSERV_HEADER_FOUND=1
  17654. else
  17655. SUPPSERV_HEADER_FOUND=0
  17656. fi
  17657. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17658. fi
  17659. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  17660. SUPPSERV_LIB=""
  17661. SUPPSERV_INCLUDE=""
  17662. else
  17663. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17664. SUPPSERV_LIB=""
  17665. fi
  17666. PBX_SUPPSERV=1
  17667. cat >>confdefs.h <<_ACEOF
  17668. #define HAVE_SUPPSERV 1
  17669. _ACEOF
  17670. fi
  17671. fi
  17672. fi
  17673. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  17675. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  17676. saved_cppflags="${CPPFLAGS}"
  17677. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  17678. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  17679. fi
  17680. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  17681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17682. /* end confdefs.h. */
  17683. #include <mISDNuser/suppserv.h>
  17684. int
  17685. main ()
  17686. {
  17687. #if defined(Fac_RESULT)
  17688. int foo = 0;
  17689. #else
  17690. int foo = bar;
  17691. #endif
  17692. 0
  17693. ;
  17694. return 0;
  17695. }
  17696. _ACEOF
  17697. if ac_fn_c_try_compile "$LINENO"; then :
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17699. $as_echo "yes" >&6; }
  17700. PBX_MISDN_FAC_RESULT=1
  17701. $as_echo "#define HAVE_MISDN_FAC_RESULT 1" >>confdefs.h
  17702. else
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17704. $as_echo "no" >&6; }
  17705. fi
  17706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17707. CPPFLAGS="${saved_cppflags}"
  17708. fi
  17709. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  17711. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  17712. saved_cppflags="${CPPFLAGS}"
  17713. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  17714. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  17715. fi
  17716. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  17717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17718. /* end confdefs.h. */
  17719. #include <mISDNuser/suppserv.h>
  17720. int
  17721. main ()
  17722. {
  17723. #if defined(Fac_ERROR)
  17724. int foo = 0;
  17725. #else
  17726. int foo = bar;
  17727. #endif
  17728. 0
  17729. ;
  17730. return 0;
  17731. }
  17732. _ACEOF
  17733. if ac_fn_c_try_compile "$LINENO"; then :
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17735. $as_echo "yes" >&6; }
  17736. PBX_MISDN_FAC_ERROR=1
  17737. $as_echo "#define HAVE_MISDN_FAC_ERROR 1" >>confdefs.h
  17738. else
  17739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17740. $as_echo "no" >&6; }
  17741. fi
  17742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17743. CPPFLAGS="${saved_cppflags}"
  17744. fi
  17745. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  17746. if test "x$ac_cv_header_linux_mISDNdsp_h" = xyes; then :
  17747. cat >>confdefs.h <<_ACEOF
  17748. #define MISDN_1_2 1
  17749. _ACEOF
  17750. fi
  17751. ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
  17752. "
  17753. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = xyes; then :
  17754. else
  17755. PBX_MISDN=0
  17756. fi
  17757. fi
  17758. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  17759. PBX_MYSQLCLIENT=0
  17760. if test -n "$ac_tool_prefix"; then
  17761. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  17762. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  17763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17764. $as_echo_n "checking for $ac_word... " >&6; }
  17765. if ${ac_cv_path_CONFIG_MYSQLCLIENT+:} false; then :
  17766. $as_echo_n "(cached) " >&6
  17767. else
  17768. case $CONFIG_MYSQLCLIENT in
  17769. [\\/]* | ?:[\\/]*)
  17770. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  17771. ;;
  17772. *)
  17773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17774. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  17775. for as_dir in $as_dummy
  17776. do
  17777. IFS=$as_save_IFS
  17778. test -z "$as_dir" && as_dir=.
  17779. for ac_exec_ext in '' $ac_executable_extensions; do
  17780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17781. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  17782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17783. break 2
  17784. fi
  17785. done
  17786. done
  17787. IFS=$as_save_IFS
  17788. ;;
  17789. esac
  17790. fi
  17791. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  17792. if test -n "$CONFIG_MYSQLCLIENT"; then
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  17794. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  17795. else
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17797. $as_echo "no" >&6; }
  17798. fi
  17799. fi
  17800. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  17801. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  17802. # Extract the first word of "mysql_config", so it can be a program name with args.
  17803. set dummy mysql_config; ac_word=$2
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17805. $as_echo_n "checking for $ac_word... " >&6; }
  17806. if ${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+:} false; then :
  17807. $as_echo_n "(cached) " >&6
  17808. else
  17809. case $ac_pt_CONFIG_MYSQLCLIENT in
  17810. [\\/]* | ?:[\\/]*)
  17811. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  17812. ;;
  17813. *)
  17814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17815. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  17816. for as_dir in $as_dummy
  17817. do
  17818. IFS=$as_save_IFS
  17819. test -z "$as_dir" && as_dir=.
  17820. for ac_exec_ext in '' $ac_executable_extensions; do
  17821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17822. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  17823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17824. break 2
  17825. fi
  17826. done
  17827. done
  17828. IFS=$as_save_IFS
  17829. ;;
  17830. esac
  17831. fi
  17832. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  17833. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  17835. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  17836. else
  17837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17838. $as_echo "no" >&6; }
  17839. fi
  17840. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  17841. CONFIG_MYSQLCLIENT="No"
  17842. else
  17843. case $cross_compiling:$ac_tool_warned in
  17844. yes:)
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17847. ac_tool_warned=yes ;;
  17848. esac
  17849. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  17850. fi
  17851. else
  17852. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  17853. fi
  17854. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  17855. if test x"" = x ; then A=--cflags ; else A="" ; fi
  17856. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  17857. MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g")
  17858. if test x"" = x ; then A=--libs ; else A="" ; fi
  17859. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  17860. MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
  17861. if test x"" != x ; then
  17862. saved_cppflags="${CPPFLAGS}"
  17863. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  17864. saved_libs="${LIBS}"
  17865. LIBS=${MYSQLCLIENT_LIB}
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. int
  17869. main ()
  17870. {
  17871. ;
  17872. ;
  17873. return 0;
  17874. }
  17875. _ACEOF
  17876. if ac_fn_c_try_link "$LINENO"; then :
  17877. PBX_MYSQLCLIENT=1
  17878. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  17879. fi
  17880. rm -f core conftest.err conftest.$ac_objext \
  17881. conftest$ac_exeext conftest.$ac_ext
  17882. CPPFLAGS="${saved_cppflags}"
  17883. LIBS="${saved_libs}"
  17884. else
  17885. PBX_MYSQLCLIENT=1
  17886. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  17887. fi
  17888. fi
  17889. fi
  17890. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  17891. pbxlibdir=""
  17892. # if --with-NBS=DIR has been specified, use it.
  17893. if test "x${NBS_DIR}" != "x"; then
  17894. if test -d ${NBS_DIR}/lib; then
  17895. pbxlibdir="-L${NBS_DIR}/lib"
  17896. else
  17897. pbxlibdir="-L${NBS_DIR}"
  17898. fi
  17899. fi
  17900. pbxfuncname="nbs_connect"
  17901. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17902. AST_NBS_FOUND=yes
  17903. else
  17904. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17905. CFLAGS="${CFLAGS} "
  17906. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
  17908. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  17909. if eval \${$as_ac_Lib+:} false; then :
  17910. $as_echo_n "(cached) " >&6
  17911. else
  17912. ac_check_lib_save_LIBS=$LIBS
  17913. LIBS="-lnbs ${pbxlibdir} $LIBS"
  17914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17915. /* end confdefs.h. */
  17916. /* Override any GCC internal prototype to avoid an error.
  17917. Use char because int might match the return type of a GCC
  17918. builtin and then its argument prototype would still apply. */
  17919. #ifdef __cplusplus
  17920. extern "C"
  17921. #endif
  17922. char ${pbxfuncname} ();
  17923. int
  17924. main ()
  17925. {
  17926. return ${pbxfuncname} ();
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_link "$LINENO"; then :
  17932. eval "$as_ac_Lib=yes"
  17933. else
  17934. eval "$as_ac_Lib=no"
  17935. fi
  17936. rm -f core conftest.err conftest.$ac_objext \
  17937. conftest$ac_exeext conftest.$ac_ext
  17938. LIBS=$ac_check_lib_save_LIBS
  17939. fi
  17940. eval ac_res=\$$as_ac_Lib
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17942. $as_echo "$ac_res" >&6; }
  17943. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17944. AST_NBS_FOUND=yes
  17945. else
  17946. AST_NBS_FOUND=no
  17947. fi
  17948. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17949. fi
  17950. # now check for the header.
  17951. if test "${AST_NBS_FOUND}" = "yes"; then
  17952. NBS_LIB="${pbxlibdir} -lnbs "
  17953. # if --with-NBS=DIR has been specified, use it.
  17954. if test "x${NBS_DIR}" != "x"; then
  17955. NBS_INCLUDE="-I${NBS_DIR}/include"
  17956. fi
  17957. NBS_INCLUDE="${NBS_INCLUDE} "
  17958. if test "xnbs.h" = "x" ; then # no header, assume found
  17959. NBS_HEADER_FOUND="1"
  17960. else # check for the header
  17961. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17962. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  17963. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  17964. if test "x$ac_cv_header_nbs_h" = xyes; then :
  17965. NBS_HEADER_FOUND=1
  17966. else
  17967. NBS_HEADER_FOUND=0
  17968. fi
  17969. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17970. fi
  17971. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  17972. NBS_LIB=""
  17973. NBS_INCLUDE=""
  17974. else
  17975. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17976. NBS_LIB=""
  17977. fi
  17978. PBX_NBS=1
  17979. cat >>confdefs.h <<_ACEOF
  17980. #define HAVE_NBS 1
  17981. _ACEOF
  17982. fi
  17983. fi
  17984. fi
  17985. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  17986. PBX_NEON=0
  17987. if test -n "$ac_tool_prefix"; then
  17988. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  17989. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17991. $as_echo_n "checking for $ac_word... " >&6; }
  17992. if ${ac_cv_path_CONFIG_NEON+:} false; then :
  17993. $as_echo_n "(cached) " >&6
  17994. else
  17995. case $CONFIG_NEON in
  17996. [\\/]* | ?:[\\/]*)
  17997. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  17998. ;;
  17999. *)
  18000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18001. as_dummy="${NEON_DIR}/bin:$PATH"
  18002. for as_dir in $as_dummy
  18003. do
  18004. IFS=$as_save_IFS
  18005. test -z "$as_dir" && as_dir=.
  18006. for ac_exec_ext in '' $ac_executable_extensions; do
  18007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18008. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18010. break 2
  18011. fi
  18012. done
  18013. done
  18014. IFS=$as_save_IFS
  18015. ;;
  18016. esac
  18017. fi
  18018. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  18019. if test -n "$CONFIG_NEON"; then
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  18021. $as_echo "$CONFIG_NEON" >&6; }
  18022. else
  18023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18024. $as_echo "no" >&6; }
  18025. fi
  18026. fi
  18027. if test -z "$ac_cv_path_CONFIG_NEON"; then
  18028. ac_pt_CONFIG_NEON=$CONFIG_NEON
  18029. # Extract the first word of "neon-config", so it can be a program name with args.
  18030. set dummy neon-config; ac_word=$2
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18032. $as_echo_n "checking for $ac_word... " >&6; }
  18033. if ${ac_cv_path_ac_pt_CONFIG_NEON+:} false; then :
  18034. $as_echo_n "(cached) " >&6
  18035. else
  18036. case $ac_pt_CONFIG_NEON in
  18037. [\\/]* | ?:[\\/]*)
  18038. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  18039. ;;
  18040. *)
  18041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18042. as_dummy="${NEON_DIR}/bin:$PATH"
  18043. for as_dir in $as_dummy
  18044. do
  18045. IFS=$as_save_IFS
  18046. test -z "$as_dir" && as_dir=.
  18047. for ac_exec_ext in '' $ac_executable_extensions; do
  18048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18049. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18051. break 2
  18052. fi
  18053. done
  18054. done
  18055. IFS=$as_save_IFS
  18056. ;;
  18057. esac
  18058. fi
  18059. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  18060. if test -n "$ac_pt_CONFIG_NEON"; then
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  18062. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  18063. else
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18065. $as_echo "no" >&6; }
  18066. fi
  18067. if test "x$ac_pt_CONFIG_NEON" = x; then
  18068. CONFIG_NEON="No"
  18069. else
  18070. case $cross_compiling:$ac_tool_warned in
  18071. yes:)
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18073. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18074. ac_tool_warned=yes ;;
  18075. esac
  18076. CONFIG_NEON=$ac_pt_CONFIG_NEON
  18077. fi
  18078. else
  18079. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  18080. fi
  18081. if test ! "x${CONFIG_NEON}" = xNo; then
  18082. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18083. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  18084. NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g")
  18085. if test x"" = x ; then A=--libs ; else A="" ; fi
  18086. NEON_LIB=$(${CONFIG_NEON} $A)
  18087. NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
  18088. if test x"" != x ; then
  18089. saved_cppflags="${CPPFLAGS}"
  18090. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  18091. saved_libs="${LIBS}"
  18092. LIBS=${NEON_LIB}
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. int
  18096. main ()
  18097. {
  18098. ;
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_link "$LINENO"; then :
  18104. PBX_NEON=1
  18105. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext \
  18108. conftest$ac_exeext conftest.$ac_ext
  18109. CPPFLAGS="${saved_cppflags}"
  18110. LIBS="${saved_libs}"
  18111. else
  18112. PBX_NEON=1
  18113. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18114. fi
  18115. fi
  18116. fi
  18117. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  18118. PBX_NEON29=0
  18119. if test -n "$ac_tool_prefix"; then
  18120. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  18121. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  18122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18123. $as_echo_n "checking for $ac_word... " >&6; }
  18124. if ${ac_cv_path_CONFIG_NEON29+:} false; then :
  18125. $as_echo_n "(cached) " >&6
  18126. else
  18127. case $CONFIG_NEON29 in
  18128. [\\/]* | ?:[\\/]*)
  18129. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  18130. ;;
  18131. *)
  18132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18133. as_dummy="${NEON29_DIR}/bin:$PATH"
  18134. for as_dir in $as_dummy
  18135. do
  18136. IFS=$as_save_IFS
  18137. test -z "$as_dir" && as_dir=.
  18138. for ac_exec_ext in '' $ac_executable_extensions; do
  18139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18140. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18142. break 2
  18143. fi
  18144. done
  18145. done
  18146. IFS=$as_save_IFS
  18147. ;;
  18148. esac
  18149. fi
  18150. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  18151. if test -n "$CONFIG_NEON29"; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  18153. $as_echo "$CONFIG_NEON29" >&6; }
  18154. else
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18156. $as_echo "no" >&6; }
  18157. fi
  18158. fi
  18159. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  18160. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  18161. # Extract the first word of "neon-config", so it can be a program name with args.
  18162. set dummy neon-config; ac_word=$2
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18164. $as_echo_n "checking for $ac_word... " >&6; }
  18165. if ${ac_cv_path_ac_pt_CONFIG_NEON29+:} false; then :
  18166. $as_echo_n "(cached) " >&6
  18167. else
  18168. case $ac_pt_CONFIG_NEON29 in
  18169. [\\/]* | ?:[\\/]*)
  18170. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  18171. ;;
  18172. *)
  18173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18174. as_dummy="${NEON29_DIR}/bin:$PATH"
  18175. for as_dir in $as_dummy
  18176. do
  18177. IFS=$as_save_IFS
  18178. test -z "$as_dir" && as_dir=.
  18179. for ac_exec_ext in '' $ac_executable_extensions; do
  18180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18181. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18183. break 2
  18184. fi
  18185. done
  18186. done
  18187. IFS=$as_save_IFS
  18188. ;;
  18189. esac
  18190. fi
  18191. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  18192. if test -n "$ac_pt_CONFIG_NEON29"; then
  18193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  18194. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  18195. else
  18196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18197. $as_echo "no" >&6; }
  18198. fi
  18199. if test "x$ac_pt_CONFIG_NEON29" = x; then
  18200. CONFIG_NEON29="No"
  18201. else
  18202. case $cross_compiling:$ac_tool_warned in
  18203. yes:)
  18204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18206. ac_tool_warned=yes ;;
  18207. esac
  18208. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  18209. fi
  18210. else
  18211. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  18212. fi
  18213. if test ! "x${CONFIG_NEON29}" = xNo; then
  18214. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18215. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  18216. NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g")
  18217. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  18218. NEON29_LIB=$(${CONFIG_NEON29} $A)
  18219. NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
  18220. if test x"#include <ne_auth.h>" != x ; then
  18221. saved_cppflags="${CPPFLAGS}"
  18222. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  18223. saved_libs="${LIBS}"
  18224. LIBS=${NEON29_LIB}
  18225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18226. /* end confdefs.h. */
  18227. #include <ne_auth.h>
  18228. int
  18229. main ()
  18230. {
  18231. #ifndef NE_AUTH_NTLM
  18232. #error Need libneon >= 0.29.0
  18233. #endif;
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. if ac_fn_c_try_link "$LINENO"; then :
  18239. PBX_NEON29=1
  18240. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext \
  18243. conftest$ac_exeext conftest.$ac_ext
  18244. CPPFLAGS="${saved_cppflags}"
  18245. LIBS="${saved_libs}"
  18246. else
  18247. PBX_NEON29=1
  18248. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  18249. fi
  18250. fi
  18251. fi
  18252. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  18253. PBX_NETSNMP=0
  18254. if test -n "$ac_tool_prefix"; then
  18255. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  18256. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18258. $as_echo_n "checking for $ac_word... " >&6; }
  18259. if ${ac_cv_path_CONFIG_NETSNMP+:} false; then :
  18260. $as_echo_n "(cached) " >&6
  18261. else
  18262. case $CONFIG_NETSNMP in
  18263. [\\/]* | ?:[\\/]*)
  18264. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  18265. ;;
  18266. *)
  18267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18268. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  18269. for as_dir in $as_dummy
  18270. do
  18271. IFS=$as_save_IFS
  18272. test -z "$as_dir" && as_dir=.
  18273. for ac_exec_ext in '' $ac_executable_extensions; do
  18274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18275. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  18276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18277. break 2
  18278. fi
  18279. done
  18280. done
  18281. IFS=$as_save_IFS
  18282. ;;
  18283. esac
  18284. fi
  18285. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  18286. if test -n "$CONFIG_NETSNMP"; then
  18287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  18288. $as_echo "$CONFIG_NETSNMP" >&6; }
  18289. else
  18290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18291. $as_echo "no" >&6; }
  18292. fi
  18293. fi
  18294. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  18295. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  18296. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  18297. set dummy net-snmp-config; ac_word=$2
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18299. $as_echo_n "checking for $ac_word... " >&6; }
  18300. if ${ac_cv_path_ac_pt_CONFIG_NETSNMP+:} false; then :
  18301. $as_echo_n "(cached) " >&6
  18302. else
  18303. case $ac_pt_CONFIG_NETSNMP in
  18304. [\\/]* | ?:[\\/]*)
  18305. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  18306. ;;
  18307. *)
  18308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18309. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  18310. for as_dir in $as_dummy
  18311. do
  18312. IFS=$as_save_IFS
  18313. test -z "$as_dir" && as_dir=.
  18314. for ac_exec_ext in '' $ac_executable_extensions; do
  18315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18316. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  18317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18318. break 2
  18319. fi
  18320. done
  18321. done
  18322. IFS=$as_save_IFS
  18323. ;;
  18324. esac
  18325. fi
  18326. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  18327. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  18329. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  18330. else
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18332. $as_echo "no" >&6; }
  18333. fi
  18334. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  18335. CONFIG_NETSNMP="No"
  18336. else
  18337. case $cross_compiling:$ac_tool_warned in
  18338. yes:)
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18341. ac_tool_warned=yes ;;
  18342. esac
  18343. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  18344. fi
  18345. else
  18346. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  18347. fi
  18348. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  18349. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18350. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  18351. NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")
  18352. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  18353. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  18354. NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
  18355. if test x"#include <net-snmp/net-snmp-config.h>
  18356. #include <net-snmp/net-snmp-includes.h>
  18357. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  18358. saved_cppflags="${CPPFLAGS}"
  18359. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  18360. saved_libs="${LIBS}"
  18361. LIBS=${NETSNMP_LIB}
  18362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18363. /* end confdefs.h. */
  18364. #include <net-snmp/net-snmp-config.h>
  18365. #include <net-snmp/net-snmp-includes.h>
  18366. #include <net-snmp/agent/net-snmp-agent-includes.h>
  18367. int
  18368. main ()
  18369. {
  18370. int callback = snmp_register_callback(0, 0, NULL, NULL);
  18371. ;
  18372. return 0;
  18373. }
  18374. _ACEOF
  18375. if ac_fn_c_try_link "$LINENO"; then :
  18376. PBX_NETSNMP=1
  18377. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  18378. fi
  18379. rm -f core conftest.err conftest.$ac_objext \
  18380. conftest$ac_exeext conftest.$ac_ext
  18381. CPPFLAGS="${saved_cppflags}"
  18382. LIBS="${saved_libs}"
  18383. else
  18384. PBX_NETSNMP=1
  18385. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  18386. fi
  18387. fi
  18388. fi
  18389. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  18390. pbxlibdir=""
  18391. # if --with-NEWT=DIR has been specified, use it.
  18392. if test "x${NEWT_DIR}" != "x"; then
  18393. if test -d ${NEWT_DIR}/lib; then
  18394. pbxlibdir="-L${NEWT_DIR}/lib"
  18395. else
  18396. pbxlibdir="-L${NEWT_DIR}"
  18397. fi
  18398. fi
  18399. pbxfuncname="newtBell"
  18400. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18401. AST_NEWT_FOUND=yes
  18402. else
  18403. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18404. CFLAGS="${CFLAGS} "
  18405. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  18407. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  18408. if eval \${$as_ac_Lib+:} false; then :
  18409. $as_echo_n "(cached) " >&6
  18410. else
  18411. ac_check_lib_save_LIBS=$LIBS
  18412. LIBS="-lnewt ${pbxlibdir} $LIBS"
  18413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18414. /* end confdefs.h. */
  18415. /* Override any GCC internal prototype to avoid an error.
  18416. Use char because int might match the return type of a GCC
  18417. builtin and then its argument prototype would still apply. */
  18418. #ifdef __cplusplus
  18419. extern "C"
  18420. #endif
  18421. char ${pbxfuncname} ();
  18422. int
  18423. main ()
  18424. {
  18425. return ${pbxfuncname} ();
  18426. ;
  18427. return 0;
  18428. }
  18429. _ACEOF
  18430. if ac_fn_c_try_link "$LINENO"; then :
  18431. eval "$as_ac_Lib=yes"
  18432. else
  18433. eval "$as_ac_Lib=no"
  18434. fi
  18435. rm -f core conftest.err conftest.$ac_objext \
  18436. conftest$ac_exeext conftest.$ac_ext
  18437. LIBS=$ac_check_lib_save_LIBS
  18438. fi
  18439. eval ac_res=\$$as_ac_Lib
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18441. $as_echo "$ac_res" >&6; }
  18442. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18443. AST_NEWT_FOUND=yes
  18444. else
  18445. AST_NEWT_FOUND=no
  18446. fi
  18447. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18448. fi
  18449. # now check for the header.
  18450. if test "${AST_NEWT_FOUND}" = "yes"; then
  18451. NEWT_LIB="${pbxlibdir} -lnewt "
  18452. # if --with-NEWT=DIR has been specified, use it.
  18453. if test "x${NEWT_DIR}" != "x"; then
  18454. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  18455. fi
  18456. NEWT_INCLUDE="${NEWT_INCLUDE} "
  18457. if test "xnewt.h" = "x" ; then # no header, assume found
  18458. NEWT_HEADER_FOUND="1"
  18459. else # check for the header
  18460. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18461. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  18462. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  18463. if test "x$ac_cv_header_newt_h" = xyes; then :
  18464. NEWT_HEADER_FOUND=1
  18465. else
  18466. NEWT_HEADER_FOUND=0
  18467. fi
  18468. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18469. fi
  18470. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  18471. NEWT_LIB=""
  18472. NEWT_INCLUDE=""
  18473. else
  18474. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18475. NEWT_LIB=""
  18476. fi
  18477. PBX_NEWT=1
  18478. cat >>confdefs.h <<_ACEOF
  18479. #define HAVE_NEWT 1
  18480. _ACEOF
  18481. fi
  18482. fi
  18483. fi
  18484. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  18485. pbxlibdir=""
  18486. # if --with-UNIXODBC=DIR has been specified, use it.
  18487. if test "x${UNIXODBC_DIR}" != "x"; then
  18488. if test -d ${UNIXODBC_DIR}/lib; then
  18489. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  18490. else
  18491. pbxlibdir="-L${UNIXODBC_DIR}"
  18492. fi
  18493. fi
  18494. pbxfuncname="SQLConnect"
  18495. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18496. AST_UNIXODBC_FOUND=yes
  18497. else
  18498. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18499. CFLAGS="${CFLAGS} "
  18500. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
  18502. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  18503. if eval \${$as_ac_Lib+:} false; then :
  18504. $as_echo_n "(cached) " >&6
  18505. else
  18506. ac_check_lib_save_LIBS=$LIBS
  18507. LIBS="-lodbc ${pbxlibdir} $LIBS"
  18508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18509. /* end confdefs.h. */
  18510. /* Override any GCC internal prototype to avoid an error.
  18511. Use char because int might match the return type of a GCC
  18512. builtin and then its argument prototype would still apply. */
  18513. #ifdef __cplusplus
  18514. extern "C"
  18515. #endif
  18516. char ${pbxfuncname} ();
  18517. int
  18518. main ()
  18519. {
  18520. return ${pbxfuncname} ();
  18521. ;
  18522. return 0;
  18523. }
  18524. _ACEOF
  18525. if ac_fn_c_try_link "$LINENO"; then :
  18526. eval "$as_ac_Lib=yes"
  18527. else
  18528. eval "$as_ac_Lib=no"
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext \
  18531. conftest$ac_exeext conftest.$ac_ext
  18532. LIBS=$ac_check_lib_save_LIBS
  18533. fi
  18534. eval ac_res=\$$as_ac_Lib
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18536. $as_echo "$ac_res" >&6; }
  18537. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18538. AST_UNIXODBC_FOUND=yes
  18539. else
  18540. AST_UNIXODBC_FOUND=no
  18541. fi
  18542. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18543. fi
  18544. # now check for the header.
  18545. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  18546. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  18547. # if --with-UNIXODBC=DIR has been specified, use it.
  18548. if test "x${UNIXODBC_DIR}" != "x"; then
  18549. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  18550. fi
  18551. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  18552. if test "xsql.h" = "x" ; then # no header, assume found
  18553. UNIXODBC_HEADER_FOUND="1"
  18554. else # check for the header
  18555. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18556. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  18557. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  18558. if test "x$ac_cv_header_sql_h" = xyes; then :
  18559. UNIXODBC_HEADER_FOUND=1
  18560. else
  18561. UNIXODBC_HEADER_FOUND=0
  18562. fi
  18563. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18564. fi
  18565. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  18566. UNIXODBC_LIB=""
  18567. UNIXODBC_INCLUDE=""
  18568. else
  18569. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18570. UNIXODBC_LIB=""
  18571. fi
  18572. PBX_UNIXODBC=1
  18573. cat >>confdefs.h <<_ACEOF
  18574. #define HAVE_UNIXODBC 1
  18575. _ACEOF
  18576. fi
  18577. fi
  18578. fi
  18579. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  18580. pbxlibdir=""
  18581. # if --with-OGG=DIR has been specified, use it.
  18582. if test "x${OGG_DIR}" != "x"; then
  18583. if test -d ${OGG_DIR}/lib; then
  18584. pbxlibdir="-L${OGG_DIR}/lib"
  18585. else
  18586. pbxlibdir="-L${OGG_DIR}"
  18587. fi
  18588. fi
  18589. pbxfuncname="ogg_sync_init"
  18590. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18591. AST_OGG_FOUND=yes
  18592. else
  18593. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18594. CFLAGS="${CFLAGS} "
  18595. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
  18597. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  18598. if eval \${$as_ac_Lib+:} false; then :
  18599. $as_echo_n "(cached) " >&6
  18600. else
  18601. ac_check_lib_save_LIBS=$LIBS
  18602. LIBS="-logg ${pbxlibdir} $LIBS"
  18603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18604. /* end confdefs.h. */
  18605. /* Override any GCC internal prototype to avoid an error.
  18606. Use char because int might match the return type of a GCC
  18607. builtin and then its argument prototype would still apply. */
  18608. #ifdef __cplusplus
  18609. extern "C"
  18610. #endif
  18611. char ${pbxfuncname} ();
  18612. int
  18613. main ()
  18614. {
  18615. return ${pbxfuncname} ();
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. if ac_fn_c_try_link "$LINENO"; then :
  18621. eval "$as_ac_Lib=yes"
  18622. else
  18623. eval "$as_ac_Lib=no"
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext \
  18626. conftest$ac_exeext conftest.$ac_ext
  18627. LIBS=$ac_check_lib_save_LIBS
  18628. fi
  18629. eval ac_res=\$$as_ac_Lib
  18630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18631. $as_echo "$ac_res" >&6; }
  18632. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18633. AST_OGG_FOUND=yes
  18634. else
  18635. AST_OGG_FOUND=no
  18636. fi
  18637. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18638. fi
  18639. # now check for the header.
  18640. if test "${AST_OGG_FOUND}" = "yes"; then
  18641. OGG_LIB="${pbxlibdir} -logg "
  18642. # if --with-OGG=DIR has been specified, use it.
  18643. if test "x${OGG_DIR}" != "x"; then
  18644. OGG_INCLUDE="-I${OGG_DIR}/include"
  18645. fi
  18646. OGG_INCLUDE="${OGG_INCLUDE} "
  18647. if test "x" = "x" ; then # no header, assume found
  18648. OGG_HEADER_FOUND="1"
  18649. else # check for the header
  18650. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18651. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  18652. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  18653. if test "x$ac_cv_header_" = xyes; then :
  18654. OGG_HEADER_FOUND=1
  18655. else
  18656. OGG_HEADER_FOUND=0
  18657. fi
  18658. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18659. fi
  18660. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  18661. OGG_LIB=""
  18662. OGG_INCLUDE=""
  18663. else
  18664. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18665. OGG_LIB=""
  18666. fi
  18667. PBX_OGG=1
  18668. cat >>confdefs.h <<_ACEOF
  18669. #define HAVE_OGG 1
  18670. _ACEOF
  18671. fi
  18672. fi
  18673. fi
  18674. # Non-glibc platforms require libexecinfo for backtrace support
  18675. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  18676. pbxlibdir=""
  18677. # if --with-BKTR=DIR has been specified, use it.
  18678. if test "x${BKTR_DIR}" != "x"; then
  18679. if test -d ${BKTR_DIR}/lib; then
  18680. pbxlibdir="-L${BKTR_DIR}/lib"
  18681. else
  18682. pbxlibdir="-L${BKTR_DIR}"
  18683. fi
  18684. fi
  18685. pbxfuncname="backtrace"
  18686. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18687. AST_BKTR_FOUND=yes
  18688. else
  18689. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18690. CFLAGS="${CFLAGS} "
  18691. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  18692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
  18693. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  18694. if eval \${$as_ac_Lib+:} false; then :
  18695. $as_echo_n "(cached) " >&6
  18696. else
  18697. ac_check_lib_save_LIBS=$LIBS
  18698. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  18699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18700. /* end confdefs.h. */
  18701. /* Override any GCC internal prototype to avoid an error.
  18702. Use char because int might match the return type of a GCC
  18703. builtin and then its argument prototype would still apply. */
  18704. #ifdef __cplusplus
  18705. extern "C"
  18706. #endif
  18707. char ${pbxfuncname} ();
  18708. int
  18709. main ()
  18710. {
  18711. return ${pbxfuncname} ();
  18712. ;
  18713. return 0;
  18714. }
  18715. _ACEOF
  18716. if ac_fn_c_try_link "$LINENO"; then :
  18717. eval "$as_ac_Lib=yes"
  18718. else
  18719. eval "$as_ac_Lib=no"
  18720. fi
  18721. rm -f core conftest.err conftest.$ac_objext \
  18722. conftest$ac_exeext conftest.$ac_ext
  18723. LIBS=$ac_check_lib_save_LIBS
  18724. fi
  18725. eval ac_res=\$$as_ac_Lib
  18726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18727. $as_echo "$ac_res" >&6; }
  18728. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18729. AST_BKTR_FOUND=yes
  18730. else
  18731. AST_BKTR_FOUND=no
  18732. fi
  18733. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18734. fi
  18735. # now check for the header.
  18736. if test "${AST_BKTR_FOUND}" = "yes"; then
  18737. BKTR_LIB="${pbxlibdir} -lexecinfo "
  18738. # if --with-BKTR=DIR has been specified, use it.
  18739. if test "x${BKTR_DIR}" != "x"; then
  18740. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  18741. fi
  18742. BKTR_INCLUDE="${BKTR_INCLUDE} "
  18743. if test "xexecinfo.h" = "x" ; then # no header, assume found
  18744. BKTR_HEADER_FOUND="1"
  18745. else # check for the header
  18746. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18747. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  18748. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  18749. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  18750. BKTR_HEADER_FOUND=1
  18751. else
  18752. BKTR_HEADER_FOUND=0
  18753. fi
  18754. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18755. fi
  18756. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  18757. BKTR_LIB=""
  18758. BKTR_INCLUDE=""
  18759. else
  18760. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18761. BKTR_LIB=""
  18762. fi
  18763. PBX_BKTR=1
  18764. cat >>confdefs.h <<_ACEOF
  18765. #define HAVE_BKTR 1
  18766. _ACEOF
  18767. fi
  18768. fi
  18769. fi
  18770. # Linux, however, has backtrace directly in glibc
  18771. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  18772. pbxlibdir=""
  18773. # if --with-BKTR=DIR has been specified, use it.
  18774. if test "x${BKTR_DIR}" != "x"; then
  18775. if test -d ${BKTR_DIR}/lib; then
  18776. pbxlibdir="-L${BKTR_DIR}/lib"
  18777. else
  18778. pbxlibdir="-L${BKTR_DIR}"
  18779. fi
  18780. fi
  18781. pbxfuncname="backtrace"
  18782. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18783. AST_BKTR_FOUND=yes
  18784. else
  18785. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18786. CFLAGS="${CFLAGS} "
  18787. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  18789. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  18790. if eval \${$as_ac_Lib+:} false; then :
  18791. $as_echo_n "(cached) " >&6
  18792. else
  18793. ac_check_lib_save_LIBS=$LIBS
  18794. LIBS="-lc ${pbxlibdir} $LIBS"
  18795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18796. /* end confdefs.h. */
  18797. /* Override any GCC internal prototype to avoid an error.
  18798. Use char because int might match the return type of a GCC
  18799. builtin and then its argument prototype would still apply. */
  18800. #ifdef __cplusplus
  18801. extern "C"
  18802. #endif
  18803. char ${pbxfuncname} ();
  18804. int
  18805. main ()
  18806. {
  18807. return ${pbxfuncname} ();
  18808. ;
  18809. return 0;
  18810. }
  18811. _ACEOF
  18812. if ac_fn_c_try_link "$LINENO"; then :
  18813. eval "$as_ac_Lib=yes"
  18814. else
  18815. eval "$as_ac_Lib=no"
  18816. fi
  18817. rm -f core conftest.err conftest.$ac_objext \
  18818. conftest$ac_exeext conftest.$ac_ext
  18819. LIBS=$ac_check_lib_save_LIBS
  18820. fi
  18821. eval ac_res=\$$as_ac_Lib
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18823. $as_echo "$ac_res" >&6; }
  18824. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18825. AST_BKTR_FOUND=yes
  18826. else
  18827. AST_BKTR_FOUND=no
  18828. fi
  18829. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18830. fi
  18831. # now check for the header.
  18832. if test "${AST_BKTR_FOUND}" = "yes"; then
  18833. BKTR_LIB="${pbxlibdir} -lc "
  18834. # if --with-BKTR=DIR has been specified, use it.
  18835. if test "x${BKTR_DIR}" != "x"; then
  18836. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  18837. fi
  18838. BKTR_INCLUDE="${BKTR_INCLUDE} "
  18839. if test "xexecinfo.h" = "x" ; then # no header, assume found
  18840. BKTR_HEADER_FOUND="1"
  18841. else # check for the header
  18842. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18843. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  18844. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  18845. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  18846. BKTR_HEADER_FOUND=1
  18847. else
  18848. BKTR_HEADER_FOUND=0
  18849. fi
  18850. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18851. fi
  18852. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  18853. BKTR_LIB=""
  18854. BKTR_INCLUDE=""
  18855. else
  18856. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18857. BKTR_LIB=""
  18858. fi
  18859. PBX_BKTR=1
  18860. cat >>confdefs.h <<_ACEOF
  18861. #define HAVE_BKTR 1
  18862. _ACEOF
  18863. fi
  18864. fi
  18865. fi
  18866. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  18867. pbxlibdir=""
  18868. # if --with-BLUETOOTH=DIR has been specified, use it.
  18869. if test "x${BLUETOOTH_DIR}" != "x"; then
  18870. if test -d ${BLUETOOTH_DIR}/lib; then
  18871. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  18872. else
  18873. pbxlibdir="-L${BLUETOOTH_DIR}"
  18874. fi
  18875. fi
  18876. pbxfuncname="ba2str"
  18877. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18878. AST_BLUETOOTH_FOUND=yes
  18879. else
  18880. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18881. CFLAGS="${CFLAGS} "
  18882. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
  18884. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  18885. if eval \${$as_ac_Lib+:} false; then :
  18886. $as_echo_n "(cached) " >&6
  18887. else
  18888. ac_check_lib_save_LIBS=$LIBS
  18889. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  18890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18891. /* end confdefs.h. */
  18892. /* Override any GCC internal prototype to avoid an error.
  18893. Use char because int might match the return type of a GCC
  18894. builtin and then its argument prototype would still apply. */
  18895. #ifdef __cplusplus
  18896. extern "C"
  18897. #endif
  18898. char ${pbxfuncname} ();
  18899. int
  18900. main ()
  18901. {
  18902. return ${pbxfuncname} ();
  18903. ;
  18904. return 0;
  18905. }
  18906. _ACEOF
  18907. if ac_fn_c_try_link "$LINENO"; then :
  18908. eval "$as_ac_Lib=yes"
  18909. else
  18910. eval "$as_ac_Lib=no"
  18911. fi
  18912. rm -f core conftest.err conftest.$ac_objext \
  18913. conftest$ac_exeext conftest.$ac_ext
  18914. LIBS=$ac_check_lib_save_LIBS
  18915. fi
  18916. eval ac_res=\$$as_ac_Lib
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18918. $as_echo "$ac_res" >&6; }
  18919. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18920. AST_BLUETOOTH_FOUND=yes
  18921. else
  18922. AST_BLUETOOTH_FOUND=no
  18923. fi
  18924. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18925. fi
  18926. # now check for the header.
  18927. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  18928. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  18929. # if --with-BLUETOOTH=DIR has been specified, use it.
  18930. if test "x${BLUETOOTH_DIR}" != "x"; then
  18931. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  18932. fi
  18933. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  18934. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  18935. BLUETOOTH_HEADER_FOUND="1"
  18936. else # check for the header
  18937. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18938. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  18939. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  18940. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
  18941. BLUETOOTH_HEADER_FOUND=1
  18942. else
  18943. BLUETOOTH_HEADER_FOUND=0
  18944. fi
  18945. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18946. fi
  18947. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  18948. BLUETOOTH_LIB=""
  18949. BLUETOOTH_INCLUDE=""
  18950. else
  18951. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18952. BLUETOOTH_LIB=""
  18953. fi
  18954. PBX_BLUETOOTH=1
  18955. cat >>confdefs.h <<_ACEOF
  18956. #define HAVE_BLUETOOTH 1
  18957. _ACEOF
  18958. fi
  18959. fi
  18960. fi
  18961. # possible places for oss definitions
  18962. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  18963. pbxlibdir=""
  18964. # if --with-OSS=DIR has been specified, use it.
  18965. if test "x${OSS_DIR}" != "x"; then
  18966. if test -d ${OSS_DIR}/lib; then
  18967. pbxlibdir="-L${OSS_DIR}/lib"
  18968. else
  18969. pbxlibdir="-L${OSS_DIR}"
  18970. fi
  18971. fi
  18972. pbxfuncname=""
  18973. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18974. AST_OSS_FOUND=yes
  18975. else
  18976. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18977. CFLAGS="${CFLAGS} "
  18978. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  18980. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  18981. if eval \${$as_ac_Lib+:} false; then :
  18982. $as_echo_n "(cached) " >&6
  18983. else
  18984. ac_check_lib_save_LIBS=$LIBS
  18985. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  18986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18987. /* end confdefs.h. */
  18988. /* Override any GCC internal prototype to avoid an error.
  18989. Use char because int might match the return type of a GCC
  18990. builtin and then its argument prototype would still apply. */
  18991. #ifdef __cplusplus
  18992. extern "C"
  18993. #endif
  18994. char ${pbxfuncname} ();
  18995. int
  18996. main ()
  18997. {
  18998. return ${pbxfuncname} ();
  18999. ;
  19000. return 0;
  19001. }
  19002. _ACEOF
  19003. if ac_fn_c_try_link "$LINENO"; then :
  19004. eval "$as_ac_Lib=yes"
  19005. else
  19006. eval "$as_ac_Lib=no"
  19007. fi
  19008. rm -f core conftest.err conftest.$ac_objext \
  19009. conftest$ac_exeext conftest.$ac_ext
  19010. LIBS=$ac_check_lib_save_LIBS
  19011. fi
  19012. eval ac_res=\$$as_ac_Lib
  19013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19014. $as_echo "$ac_res" >&6; }
  19015. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19016. AST_OSS_FOUND=yes
  19017. else
  19018. AST_OSS_FOUND=no
  19019. fi
  19020. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19021. fi
  19022. # now check for the header.
  19023. if test "${AST_OSS_FOUND}" = "yes"; then
  19024. OSS_LIB="${pbxlibdir} -lossaudio "
  19025. # if --with-OSS=DIR has been specified, use it.
  19026. if test "x${OSS_DIR}" != "x"; then
  19027. OSS_INCLUDE="-I${OSS_DIR}/include"
  19028. fi
  19029. OSS_INCLUDE="${OSS_INCLUDE} "
  19030. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  19031. OSS_HEADER_FOUND="1"
  19032. else # check for the header
  19033. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19034. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19035. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  19036. if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
  19037. OSS_HEADER_FOUND=1
  19038. else
  19039. OSS_HEADER_FOUND=0
  19040. fi
  19041. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19042. fi
  19043. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19044. OSS_LIB=""
  19045. OSS_INCLUDE=""
  19046. else
  19047. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19048. OSS_LIB=""
  19049. fi
  19050. PBX_OSS=1
  19051. cat >>confdefs.h <<_ACEOF
  19052. #define HAVE_OSS 1
  19053. _ACEOF
  19054. fi
  19055. fi
  19056. fi
  19057. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19058. pbxlibdir=""
  19059. # if --with-OSS=DIR has been specified, use it.
  19060. if test "x${OSS_DIR}" != "x"; then
  19061. if test -d ${OSS_DIR}/lib; then
  19062. pbxlibdir="-L${OSS_DIR}/lib"
  19063. else
  19064. pbxlibdir="-L${OSS_DIR}"
  19065. fi
  19066. fi
  19067. pbxfuncname=""
  19068. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19069. AST_OSS_FOUND=yes
  19070. else
  19071. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19072. CFLAGS="${CFLAGS} "
  19073. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19075. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19076. if eval \${$as_ac_Lib+:} false; then :
  19077. $as_echo_n "(cached) " >&6
  19078. else
  19079. ac_check_lib_save_LIBS=$LIBS
  19080. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19082. /* end confdefs.h. */
  19083. /* Override any GCC internal prototype to avoid an error.
  19084. Use char because int might match the return type of a GCC
  19085. builtin and then its argument prototype would still apply. */
  19086. #ifdef __cplusplus
  19087. extern "C"
  19088. #endif
  19089. char ${pbxfuncname} ();
  19090. int
  19091. main ()
  19092. {
  19093. return ${pbxfuncname} ();
  19094. ;
  19095. return 0;
  19096. }
  19097. _ACEOF
  19098. if ac_fn_c_try_link "$LINENO"; then :
  19099. eval "$as_ac_Lib=yes"
  19100. else
  19101. eval "$as_ac_Lib=no"
  19102. fi
  19103. rm -f core conftest.err conftest.$ac_objext \
  19104. conftest$ac_exeext conftest.$ac_ext
  19105. LIBS=$ac_check_lib_save_LIBS
  19106. fi
  19107. eval ac_res=\$$as_ac_Lib
  19108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19109. $as_echo "$ac_res" >&6; }
  19110. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19111. AST_OSS_FOUND=yes
  19112. else
  19113. AST_OSS_FOUND=no
  19114. fi
  19115. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19116. fi
  19117. # now check for the header.
  19118. if test "${AST_OSS_FOUND}" = "yes"; then
  19119. OSS_LIB="${pbxlibdir} -lossaudio "
  19120. # if --with-OSS=DIR has been specified, use it.
  19121. if test "x${OSS_DIR}" != "x"; then
  19122. OSS_INCLUDE="-I${OSS_DIR}/include"
  19123. fi
  19124. OSS_INCLUDE="${OSS_INCLUDE} "
  19125. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  19126. OSS_HEADER_FOUND="1"
  19127. else # check for the header
  19128. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19129. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19130. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  19131. if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
  19132. OSS_HEADER_FOUND=1
  19133. else
  19134. OSS_HEADER_FOUND=0
  19135. fi
  19136. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19137. fi
  19138. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19139. OSS_LIB=""
  19140. OSS_INCLUDE=""
  19141. else
  19142. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19143. OSS_LIB=""
  19144. fi
  19145. PBX_OSS=1
  19146. cat >>confdefs.h <<_ACEOF
  19147. #define HAVE_OSS 1
  19148. _ACEOF
  19149. fi
  19150. fi
  19151. fi
  19152. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19153. pbxlibdir=""
  19154. # if --with-OSS=DIR has been specified, use it.
  19155. if test "x${OSS_DIR}" != "x"; then
  19156. if test -d ${OSS_DIR}/lib; then
  19157. pbxlibdir="-L${OSS_DIR}/lib"
  19158. else
  19159. pbxlibdir="-L${OSS_DIR}"
  19160. fi
  19161. fi
  19162. pbxfuncname="oss_ioctl_mixer"
  19163. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19164. AST_OSS_FOUND=yes
  19165. else
  19166. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19167. CFLAGS="${CFLAGS} "
  19168. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19170. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19171. if eval \${$as_ac_Lib+:} false; then :
  19172. $as_echo_n "(cached) " >&6
  19173. else
  19174. ac_check_lib_save_LIBS=$LIBS
  19175. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19177. /* end confdefs.h. */
  19178. /* Override any GCC internal prototype to avoid an error.
  19179. Use char because int might match the return type of a GCC
  19180. builtin and then its argument prototype would still apply. */
  19181. #ifdef __cplusplus
  19182. extern "C"
  19183. #endif
  19184. char ${pbxfuncname} ();
  19185. int
  19186. main ()
  19187. {
  19188. return ${pbxfuncname} ();
  19189. ;
  19190. return 0;
  19191. }
  19192. _ACEOF
  19193. if ac_fn_c_try_link "$LINENO"; then :
  19194. eval "$as_ac_Lib=yes"
  19195. else
  19196. eval "$as_ac_Lib=no"
  19197. fi
  19198. rm -f core conftest.err conftest.$ac_objext \
  19199. conftest$ac_exeext conftest.$ac_ext
  19200. LIBS=$ac_check_lib_save_LIBS
  19201. fi
  19202. eval ac_res=\$$as_ac_Lib
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19204. $as_echo "$ac_res" >&6; }
  19205. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19206. AST_OSS_FOUND=yes
  19207. else
  19208. AST_OSS_FOUND=no
  19209. fi
  19210. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19211. fi
  19212. # now check for the header.
  19213. if test "${AST_OSS_FOUND}" = "yes"; then
  19214. OSS_LIB="${pbxlibdir} -lossaudio "
  19215. # if --with-OSS=DIR has been specified, use it.
  19216. if test "x${OSS_DIR}" != "x"; then
  19217. OSS_INCLUDE="-I${OSS_DIR}/include"
  19218. fi
  19219. OSS_INCLUDE="${OSS_INCLUDE} "
  19220. if test "xsoundcard.h" = "x" ; then # no header, assume found
  19221. OSS_HEADER_FOUND="1"
  19222. else # check for the header
  19223. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19224. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19225. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  19226. if test "x$ac_cv_header_soundcard_h" = xyes; then :
  19227. OSS_HEADER_FOUND=1
  19228. else
  19229. OSS_HEADER_FOUND=0
  19230. fi
  19231. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19232. fi
  19233. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19234. OSS_LIB=""
  19235. OSS_INCLUDE=""
  19236. else
  19237. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19238. OSS_LIB=""
  19239. fi
  19240. PBX_OSS=1
  19241. cat >>confdefs.h <<_ACEOF
  19242. #define HAVE_OSS 1
  19243. _ACEOF
  19244. fi
  19245. fi
  19246. fi
  19247. PG_CONFIG=No
  19248. if test "${USE_PGSQL}" != "no"; then
  19249. if test "x${PGSQL_DIR}" != "x"; then
  19250. if test -n "$ac_tool_prefix"; then
  19251. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  19252. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19254. $as_echo_n "checking for $ac_word... " >&6; }
  19255. if ${ac_cv_path_PG_CONFIG+:} false; then :
  19256. $as_echo_n "(cached) " >&6
  19257. else
  19258. case $PG_CONFIG in
  19259. [\\/]* | ?:[\\/]*)
  19260. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  19261. ;;
  19262. *)
  19263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19264. for as_dir in ${PGSQL_DIR}/bin
  19265. do
  19266. IFS=$as_save_IFS
  19267. test -z "$as_dir" && as_dir=.
  19268. for ac_exec_ext in '' $ac_executable_extensions; do
  19269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19270. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19272. break 2
  19273. fi
  19274. done
  19275. done
  19276. IFS=$as_save_IFS
  19277. ;;
  19278. esac
  19279. fi
  19280. PG_CONFIG=$ac_cv_path_PG_CONFIG
  19281. if test -n "$PG_CONFIG"; then
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  19283. $as_echo "$PG_CONFIG" >&6; }
  19284. else
  19285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19286. $as_echo "no" >&6; }
  19287. fi
  19288. fi
  19289. if test -z "$ac_cv_path_PG_CONFIG"; then
  19290. ac_pt_PG_CONFIG=$PG_CONFIG
  19291. # Extract the first word of "pg_config", so it can be a program name with args.
  19292. set dummy pg_config; ac_word=$2
  19293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19294. $as_echo_n "checking for $ac_word... " >&6; }
  19295. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  19296. $as_echo_n "(cached) " >&6
  19297. else
  19298. case $ac_pt_PG_CONFIG in
  19299. [\\/]* | ?:[\\/]*)
  19300. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  19301. ;;
  19302. *)
  19303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19304. for as_dir in ${PGSQL_DIR}/bin
  19305. do
  19306. IFS=$as_save_IFS
  19307. test -z "$as_dir" && as_dir=.
  19308. for ac_exec_ext in '' $ac_executable_extensions; do
  19309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19310. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19312. break 2
  19313. fi
  19314. done
  19315. done
  19316. IFS=$as_save_IFS
  19317. ;;
  19318. esac
  19319. fi
  19320. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  19321. if test -n "$ac_pt_PG_CONFIG"; then
  19322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  19323. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  19324. else
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19326. $as_echo "no" >&6; }
  19327. fi
  19328. if test "x$ac_pt_PG_CONFIG" = x; then
  19329. PG_CONFIG="No"
  19330. else
  19331. case $cross_compiling:$ac_tool_warned in
  19332. yes:)
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19335. ac_tool_warned=yes ;;
  19336. esac
  19337. PG_CONFIG=$ac_pt_PG_CONFIG
  19338. fi
  19339. else
  19340. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  19341. fi
  19342. if test x"${PG_CONFIG}" = xNo; then
  19343. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19344. $as_echo "$as_me: ***" >&6;}
  19345. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  19346. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  19348. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  19349. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19350. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19351. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19352. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19353. exit 1
  19354. fi
  19355. else
  19356. if test -n "$ac_tool_prefix"; then
  19357. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  19358. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19360. $as_echo_n "checking for $ac_word... " >&6; }
  19361. if ${ac_cv_path_PG_CONFIG+:} false; then :
  19362. $as_echo_n "(cached) " >&6
  19363. else
  19364. case $PG_CONFIG in
  19365. [\\/]* | ?:[\\/]*)
  19366. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  19367. ;;
  19368. *)
  19369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19370. for as_dir in $PATH
  19371. do
  19372. IFS=$as_save_IFS
  19373. test -z "$as_dir" && as_dir=.
  19374. for ac_exec_ext in '' $ac_executable_extensions; do
  19375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19376. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19378. break 2
  19379. fi
  19380. done
  19381. done
  19382. IFS=$as_save_IFS
  19383. ;;
  19384. esac
  19385. fi
  19386. PG_CONFIG=$ac_cv_path_PG_CONFIG
  19387. if test -n "$PG_CONFIG"; then
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  19389. $as_echo "$PG_CONFIG" >&6; }
  19390. else
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19392. $as_echo "no" >&6; }
  19393. fi
  19394. fi
  19395. if test -z "$ac_cv_path_PG_CONFIG"; then
  19396. ac_pt_PG_CONFIG=$PG_CONFIG
  19397. # Extract the first word of "pg_config", so it can be a program name with args.
  19398. set dummy pg_config; ac_word=$2
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19400. $as_echo_n "checking for $ac_word... " >&6; }
  19401. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  19402. $as_echo_n "(cached) " >&6
  19403. else
  19404. case $ac_pt_PG_CONFIG in
  19405. [\\/]* | ?:[\\/]*)
  19406. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  19407. ;;
  19408. *)
  19409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19410. for as_dir in $PATH
  19411. do
  19412. IFS=$as_save_IFS
  19413. test -z "$as_dir" && as_dir=.
  19414. for ac_exec_ext in '' $ac_executable_extensions; do
  19415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19416. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19418. break 2
  19419. fi
  19420. done
  19421. done
  19422. IFS=$as_save_IFS
  19423. ;;
  19424. esac
  19425. fi
  19426. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  19427. if test -n "$ac_pt_PG_CONFIG"; then
  19428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  19429. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  19430. else
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19432. $as_echo "no" >&6; }
  19433. fi
  19434. if test "x$ac_pt_PG_CONFIG" = x; then
  19435. PG_CONFIG="No"
  19436. else
  19437. case $cross_compiling:$ac_tool_warned in
  19438. yes:)
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19441. ac_tool_warned=yes ;;
  19442. esac
  19443. PG_CONFIG=$ac_pt_PG_CONFIG
  19444. fi
  19445. else
  19446. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  19447. fi
  19448. fi
  19449. fi
  19450. if test "${PG_CONFIG}" != No; then
  19451. PGSQL_libdir=`${PG_CONFIG} --libdir`
  19452. PGSQL_includedir=`${PG_CONFIG} --includedir`
  19453. if test "x$?" != "x0" ; then
  19454. if test -n "${PGSQL_MANDATORY}" ; then
  19455. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19456. $as_echo "$as_me: ***" >&6;}
  19457. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  19458. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  19459. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19460. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19462. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19463. exit 1
  19464. fi
  19465. else
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  19467. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  19468. if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
  19469. $as_echo_n "(cached) " >&6
  19470. else
  19471. ac_check_lib_save_LIBS=$LIBS
  19472. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  19473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19474. /* end confdefs.h. */
  19475. /* Override any GCC internal prototype to avoid an error.
  19476. Use char because int might match the return type of a GCC
  19477. builtin and then its argument prototype would still apply. */
  19478. #ifdef __cplusplus
  19479. extern "C"
  19480. #endif
  19481. char PQescapeStringConn ();
  19482. int
  19483. main ()
  19484. {
  19485. return PQescapeStringConn ();
  19486. ;
  19487. return 0;
  19488. }
  19489. _ACEOF
  19490. if ac_fn_c_try_link "$LINENO"; then :
  19491. ac_cv_lib_pq_PQescapeStringConn=yes
  19492. else
  19493. ac_cv_lib_pq_PQescapeStringConn=no
  19494. fi
  19495. rm -f core conftest.err conftest.$ac_objext \
  19496. conftest$ac_exeext conftest.$ac_ext
  19497. LIBS=$ac_check_lib_save_LIBS
  19498. fi
  19499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  19500. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  19501. if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
  19502. cat >>confdefs.h <<_ACEOF
  19503. #define HAVE_PGSQL 1
  19504. _ACEOF
  19505. fi
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  19507. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  19508. old_CFLAGS=${CFLAGS}
  19509. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  19510. old_LDFLAGS=${LDFLAGS}
  19511. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  19512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19513. /* end confdefs.h. */
  19514. #include <libpq-fe.h>
  19515. int
  19516. main ()
  19517. {
  19518. const char *foo = pg_encoding_to_char(1)
  19519. ;
  19520. return 0;
  19521. }
  19522. _ACEOF
  19523. if ac_fn_c_try_link "$LINENO"; then :
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19525. $as_echo "yes" >&6; }
  19526. cat >>confdefs.h <<_ACEOF
  19527. #define HAVE_PGSQL_pg_encoding_to_char 1
  19528. _ACEOF
  19529. else
  19530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. $as_echo "no" >&6; }
  19532. fi
  19533. rm -f core conftest.err conftest.$ac_objext \
  19534. conftest$ac_exeext conftest.$ac_ext
  19535. CFLAGS=${old_CFLAGS}
  19536. LDFLAGS=${old_LDFLAGS}
  19537. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  19538. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  19539. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  19540. PBX_PGSQL=1
  19541. elif test -n "${PGSQL_MANDATORY}";
  19542. then
  19543. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19544. $as_echo "$as_me: ***" >&6;}
  19545. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  19546. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19548. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19549. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19550. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19551. exit 1
  19552. fi
  19553. fi
  19554. fi
  19555. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  19556. pbxlibdir=""
  19557. # if --with-POPT=DIR has been specified, use it.
  19558. if test "x${POPT_DIR}" != "x"; then
  19559. if test -d ${POPT_DIR}/lib; then
  19560. pbxlibdir="-L${POPT_DIR}/lib"
  19561. else
  19562. pbxlibdir="-L${POPT_DIR}"
  19563. fi
  19564. fi
  19565. pbxfuncname="poptStrerror"
  19566. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19567. AST_POPT_FOUND=yes
  19568. else
  19569. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19570. CFLAGS="${CFLAGS} "
  19571. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
  19573. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  19574. if eval \${$as_ac_Lib+:} false; then :
  19575. $as_echo_n "(cached) " >&6
  19576. else
  19577. ac_check_lib_save_LIBS=$LIBS
  19578. LIBS="-lpopt ${pbxlibdir} $LIBS"
  19579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19580. /* end confdefs.h. */
  19581. /* Override any GCC internal prototype to avoid an error.
  19582. Use char because int might match the return type of a GCC
  19583. builtin and then its argument prototype would still apply. */
  19584. #ifdef __cplusplus
  19585. extern "C"
  19586. #endif
  19587. char ${pbxfuncname} ();
  19588. int
  19589. main ()
  19590. {
  19591. return ${pbxfuncname} ();
  19592. ;
  19593. return 0;
  19594. }
  19595. _ACEOF
  19596. if ac_fn_c_try_link "$LINENO"; then :
  19597. eval "$as_ac_Lib=yes"
  19598. else
  19599. eval "$as_ac_Lib=no"
  19600. fi
  19601. rm -f core conftest.err conftest.$ac_objext \
  19602. conftest$ac_exeext conftest.$ac_ext
  19603. LIBS=$ac_check_lib_save_LIBS
  19604. fi
  19605. eval ac_res=\$$as_ac_Lib
  19606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19607. $as_echo "$ac_res" >&6; }
  19608. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19609. AST_POPT_FOUND=yes
  19610. else
  19611. AST_POPT_FOUND=no
  19612. fi
  19613. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19614. fi
  19615. # now check for the header.
  19616. if test "${AST_POPT_FOUND}" = "yes"; then
  19617. POPT_LIB="${pbxlibdir} -lpopt "
  19618. # if --with-POPT=DIR has been specified, use it.
  19619. if test "x${POPT_DIR}" != "x"; then
  19620. POPT_INCLUDE="-I${POPT_DIR}/include"
  19621. fi
  19622. POPT_INCLUDE="${POPT_INCLUDE} "
  19623. if test "xpopt.h" = "x" ; then # no header, assume found
  19624. POPT_HEADER_FOUND="1"
  19625. else # check for the header
  19626. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19627. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  19628. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  19629. if test "x$ac_cv_header_popt_h" = xyes; then :
  19630. POPT_HEADER_FOUND=1
  19631. else
  19632. POPT_HEADER_FOUND=0
  19633. fi
  19634. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19635. fi
  19636. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  19637. POPT_LIB=""
  19638. POPT_INCLUDE=""
  19639. else
  19640. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19641. POPT_LIB=""
  19642. fi
  19643. PBX_POPT=1
  19644. cat >>confdefs.h <<_ACEOF
  19645. #define HAVE_POPT 1
  19646. _ACEOF
  19647. fi
  19648. fi
  19649. fi
  19650. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  19651. pbxlibdir=""
  19652. # if --with-PORTAUDIO=DIR has been specified, use it.
  19653. if test "x${PORTAUDIO_DIR}" != "x"; then
  19654. if test -d ${PORTAUDIO_DIR}/lib; then
  19655. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  19656. else
  19657. pbxlibdir="-L${PORTAUDIO_DIR}"
  19658. fi
  19659. fi
  19660. pbxfuncname="Pa_GetDeviceCount"
  19661. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19662. AST_PORTAUDIO_FOUND=yes
  19663. else
  19664. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19665. CFLAGS="${CFLAGS} "
  19666. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
  19668. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  19669. if eval \${$as_ac_Lib+:} false; then :
  19670. $as_echo_n "(cached) " >&6
  19671. else
  19672. ac_check_lib_save_LIBS=$LIBS
  19673. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  19674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19675. /* end confdefs.h. */
  19676. /* Override any GCC internal prototype to avoid an error.
  19677. Use char because int might match the return type of a GCC
  19678. builtin and then its argument prototype would still apply. */
  19679. #ifdef __cplusplus
  19680. extern "C"
  19681. #endif
  19682. char ${pbxfuncname} ();
  19683. int
  19684. main ()
  19685. {
  19686. return ${pbxfuncname} ();
  19687. ;
  19688. return 0;
  19689. }
  19690. _ACEOF
  19691. if ac_fn_c_try_link "$LINENO"; then :
  19692. eval "$as_ac_Lib=yes"
  19693. else
  19694. eval "$as_ac_Lib=no"
  19695. fi
  19696. rm -f core conftest.err conftest.$ac_objext \
  19697. conftest$ac_exeext conftest.$ac_ext
  19698. LIBS=$ac_check_lib_save_LIBS
  19699. fi
  19700. eval ac_res=\$$as_ac_Lib
  19701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19702. $as_echo "$ac_res" >&6; }
  19703. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19704. AST_PORTAUDIO_FOUND=yes
  19705. else
  19706. AST_PORTAUDIO_FOUND=no
  19707. fi
  19708. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19709. fi
  19710. # now check for the header.
  19711. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  19712. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  19713. # if --with-PORTAUDIO=DIR has been specified, use it.
  19714. if test "x${PORTAUDIO_DIR}" != "x"; then
  19715. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  19716. fi
  19717. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  19718. if test "xportaudio.h" = "x" ; then # no header, assume found
  19719. PORTAUDIO_HEADER_FOUND="1"
  19720. else # check for the header
  19721. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19722. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  19723. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  19724. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  19725. PORTAUDIO_HEADER_FOUND=1
  19726. else
  19727. PORTAUDIO_HEADER_FOUND=0
  19728. fi
  19729. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19730. fi
  19731. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  19732. PORTAUDIO_LIB=""
  19733. PORTAUDIO_INCLUDE=""
  19734. else
  19735. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19736. PORTAUDIO_LIB=""
  19737. fi
  19738. PBX_PORTAUDIO=1
  19739. cat >>confdefs.h <<_ACEOF
  19740. #define HAVE_PORTAUDIO 1
  19741. _ACEOF
  19742. fi
  19743. fi
  19744. fi
  19745. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  19746. pbxlibdir=""
  19747. # if --with-PRI=DIR has been specified, use it.
  19748. if test "x${PRI_DIR}" != "x"; then
  19749. if test -d ${PRI_DIR}/lib; then
  19750. pbxlibdir="-L${PRI_DIR}/lib"
  19751. else
  19752. pbxlibdir="-L${PRI_DIR}"
  19753. fi
  19754. fi
  19755. pbxfuncname="pri_connected_line_update"
  19756. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19757. AST_PRI_FOUND=yes
  19758. else
  19759. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19760. CFLAGS="${CFLAGS} "
  19761. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19763. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19764. if eval \${$as_ac_Lib+:} false; then :
  19765. $as_echo_n "(cached) " >&6
  19766. else
  19767. ac_check_lib_save_LIBS=$LIBS
  19768. LIBS="-lpri ${pbxlibdir} $LIBS"
  19769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19770. /* end confdefs.h. */
  19771. /* Override any GCC internal prototype to avoid an error.
  19772. Use char because int might match the return type of a GCC
  19773. builtin and then its argument prototype would still apply. */
  19774. #ifdef __cplusplus
  19775. extern "C"
  19776. #endif
  19777. char ${pbxfuncname} ();
  19778. int
  19779. main ()
  19780. {
  19781. return ${pbxfuncname} ();
  19782. ;
  19783. return 0;
  19784. }
  19785. _ACEOF
  19786. if ac_fn_c_try_link "$LINENO"; then :
  19787. eval "$as_ac_Lib=yes"
  19788. else
  19789. eval "$as_ac_Lib=no"
  19790. fi
  19791. rm -f core conftest.err conftest.$ac_objext \
  19792. conftest$ac_exeext conftest.$ac_ext
  19793. LIBS=$ac_check_lib_save_LIBS
  19794. fi
  19795. eval ac_res=\$$as_ac_Lib
  19796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19797. $as_echo "$ac_res" >&6; }
  19798. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19799. AST_PRI_FOUND=yes
  19800. else
  19801. AST_PRI_FOUND=no
  19802. fi
  19803. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19804. fi
  19805. # now check for the header.
  19806. if test "${AST_PRI_FOUND}" = "yes"; then
  19807. PRI_LIB="${pbxlibdir} -lpri "
  19808. # if --with-PRI=DIR has been specified, use it.
  19809. if test "x${PRI_DIR}" != "x"; then
  19810. PRI_INCLUDE="-I${PRI_DIR}/include"
  19811. fi
  19812. PRI_INCLUDE="${PRI_INCLUDE} "
  19813. if test "xlibpri.h" = "x" ; then # no header, assume found
  19814. PRI_HEADER_FOUND="1"
  19815. else # check for the header
  19816. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19817. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  19818. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19819. if test "x$ac_cv_header_libpri_h" = xyes; then :
  19820. PRI_HEADER_FOUND=1
  19821. else
  19822. PRI_HEADER_FOUND=0
  19823. fi
  19824. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19825. fi
  19826. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  19827. PRI_LIB=""
  19828. PRI_INCLUDE=""
  19829. else
  19830. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19831. PRI_LIB=""
  19832. fi
  19833. PBX_PRI=1
  19834. cat >>confdefs.h <<_ACEOF
  19835. #define HAVE_PRI 1
  19836. _ACEOF
  19837. fi
  19838. fi
  19839. fi
  19840. if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
  19841. pbxlibdir=""
  19842. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  19843. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  19844. if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
  19845. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
  19846. else
  19847. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
  19848. fi
  19849. fi
  19850. pbxfuncname="pri_setup_ack"
  19851. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19852. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  19853. else
  19854. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19855. CFLAGS="${CFLAGS} "
  19856. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19858. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19859. if eval \${$as_ac_Lib+:} false; then :
  19860. $as_echo_n "(cached) " >&6
  19861. else
  19862. ac_check_lib_save_LIBS=$LIBS
  19863. LIBS="-lpri ${pbxlibdir} $LIBS"
  19864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19865. /* end confdefs.h. */
  19866. /* Override any GCC internal prototype to avoid an error.
  19867. Use char because int might match the return type of a GCC
  19868. builtin and then its argument prototype would still apply. */
  19869. #ifdef __cplusplus
  19870. extern "C"
  19871. #endif
  19872. char ${pbxfuncname} ();
  19873. int
  19874. main ()
  19875. {
  19876. return ${pbxfuncname} ();
  19877. ;
  19878. return 0;
  19879. }
  19880. _ACEOF
  19881. if ac_fn_c_try_link "$LINENO"; then :
  19882. eval "$as_ac_Lib=yes"
  19883. else
  19884. eval "$as_ac_Lib=no"
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext \
  19887. conftest$ac_exeext conftest.$ac_ext
  19888. LIBS=$ac_check_lib_save_LIBS
  19889. fi
  19890. eval ac_res=\$$as_ac_Lib
  19891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19892. $as_echo "$ac_res" >&6; }
  19893. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19894. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  19895. else
  19896. AST_PRI_SETUP_ACK_INBAND_FOUND=no
  19897. fi
  19898. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19899. fi
  19900. # now check for the header.
  19901. if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
  19902. PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
  19903. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  19904. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  19905. PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
  19906. fi
  19907. PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
  19908. if test "xlibpri.h" = "x" ; then # no header, assume found
  19909. PRI_SETUP_ACK_INBAND_HEADER_FOUND="1"
  19910. else # check for the header
  19911. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19912. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
  19913. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19914. if test "x$ac_cv_header_libpri_h" = xyes; then :
  19915. PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
  19916. else
  19917. PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
  19918. fi
  19919. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19920. fi
  19921. if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
  19922. PRI_SETUP_ACK_INBAND_LIB=""
  19923. PRI_SETUP_ACK_INBAND_INCLUDE=""
  19924. else
  19925. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19926. PRI_SETUP_ACK_INBAND_LIB=""
  19927. fi
  19928. PBX_PRI_SETUP_ACK_INBAND=1
  19929. cat >>confdefs.h <<_ACEOF
  19930. #define HAVE_PRI_SETUP_ACK_INBAND 1
  19931. _ACEOF
  19932. fi
  19933. fi
  19934. fi
  19935. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  19936. pbxlibdir=""
  19937. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  19938. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  19939. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  19940. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  19941. else
  19942. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  19943. fi
  19944. fi
  19945. pbxfuncname="pri_persistent_layer2_option"
  19946. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19947. AST_PRI_L2_PERSISTENCE_FOUND=yes
  19948. else
  19949. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19950. CFLAGS="${CFLAGS} "
  19951. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19953. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19954. if eval \${$as_ac_Lib+:} false; then :
  19955. $as_echo_n "(cached) " >&6
  19956. else
  19957. ac_check_lib_save_LIBS=$LIBS
  19958. LIBS="-lpri ${pbxlibdir} $LIBS"
  19959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19960. /* end confdefs.h. */
  19961. /* Override any GCC internal prototype to avoid an error.
  19962. Use char because int might match the return type of a GCC
  19963. builtin and then its argument prototype would still apply. */
  19964. #ifdef __cplusplus
  19965. extern "C"
  19966. #endif
  19967. char ${pbxfuncname} ();
  19968. int
  19969. main ()
  19970. {
  19971. return ${pbxfuncname} ();
  19972. ;
  19973. return 0;
  19974. }
  19975. _ACEOF
  19976. if ac_fn_c_try_link "$LINENO"; then :
  19977. eval "$as_ac_Lib=yes"
  19978. else
  19979. eval "$as_ac_Lib=no"
  19980. fi
  19981. rm -f core conftest.err conftest.$ac_objext \
  19982. conftest$ac_exeext conftest.$ac_ext
  19983. LIBS=$ac_check_lib_save_LIBS
  19984. fi
  19985. eval ac_res=\$$as_ac_Lib
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19987. $as_echo "$ac_res" >&6; }
  19988. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19989. AST_PRI_L2_PERSISTENCE_FOUND=yes
  19990. else
  19991. AST_PRI_L2_PERSISTENCE_FOUND=no
  19992. fi
  19993. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19994. fi
  19995. # now check for the header.
  19996. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  19997. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  19998. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  19999. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  20000. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  20001. fi
  20002. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  20003. if test "xlibpri.h" = "x" ; then # no header, assume found
  20004. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  20005. else # check for the header
  20006. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20007. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  20008. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20009. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20010. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  20011. else
  20012. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  20013. fi
  20014. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20015. fi
  20016. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  20017. PRI_L2_PERSISTENCE_LIB=""
  20018. PRI_L2_PERSISTENCE_INCLUDE=""
  20019. else
  20020. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20021. PRI_L2_PERSISTENCE_LIB=""
  20022. fi
  20023. PBX_PRI_L2_PERSISTENCE=1
  20024. cat >>confdefs.h <<_ACEOF
  20025. #define HAVE_PRI_L2_PERSISTENCE 1
  20026. _ACEOF
  20027. fi
  20028. fi
  20029. fi
  20030. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  20031. pbxlibdir=""
  20032. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  20033. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  20034. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  20035. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  20036. else
  20037. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  20038. fi
  20039. fi
  20040. pbxfuncname="pri_date_time_send_option"
  20041. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20042. AST_PRI_DATETIME_SEND_FOUND=yes
  20043. else
  20044. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20045. CFLAGS="${CFLAGS} "
  20046. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20048. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20049. if eval \${$as_ac_Lib+:} false; then :
  20050. $as_echo_n "(cached) " >&6
  20051. else
  20052. ac_check_lib_save_LIBS=$LIBS
  20053. LIBS="-lpri ${pbxlibdir} $LIBS"
  20054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20055. /* end confdefs.h. */
  20056. /* Override any GCC internal prototype to avoid an error.
  20057. Use char because int might match the return type of a GCC
  20058. builtin and then its argument prototype would still apply. */
  20059. #ifdef __cplusplus
  20060. extern "C"
  20061. #endif
  20062. char ${pbxfuncname} ();
  20063. int
  20064. main ()
  20065. {
  20066. return ${pbxfuncname} ();
  20067. ;
  20068. return 0;
  20069. }
  20070. _ACEOF
  20071. if ac_fn_c_try_link "$LINENO"; then :
  20072. eval "$as_ac_Lib=yes"
  20073. else
  20074. eval "$as_ac_Lib=no"
  20075. fi
  20076. rm -f core conftest.err conftest.$ac_objext \
  20077. conftest$ac_exeext conftest.$ac_ext
  20078. LIBS=$ac_check_lib_save_LIBS
  20079. fi
  20080. eval ac_res=\$$as_ac_Lib
  20081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20082. $as_echo "$ac_res" >&6; }
  20083. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20084. AST_PRI_DATETIME_SEND_FOUND=yes
  20085. else
  20086. AST_PRI_DATETIME_SEND_FOUND=no
  20087. fi
  20088. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20089. fi
  20090. # now check for the header.
  20091. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  20092. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  20093. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  20094. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  20095. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  20096. fi
  20097. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  20098. if test "xlibpri.h" = "x" ; then # no header, assume found
  20099. PRI_DATETIME_SEND_HEADER_FOUND="1"
  20100. else # check for the header
  20101. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20102. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  20103. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20104. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20105. PRI_DATETIME_SEND_HEADER_FOUND=1
  20106. else
  20107. PRI_DATETIME_SEND_HEADER_FOUND=0
  20108. fi
  20109. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20110. fi
  20111. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  20112. PRI_DATETIME_SEND_LIB=""
  20113. PRI_DATETIME_SEND_INCLUDE=""
  20114. else
  20115. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20116. PRI_DATETIME_SEND_LIB=""
  20117. fi
  20118. PBX_PRI_DATETIME_SEND=1
  20119. cat >>confdefs.h <<_ACEOF
  20120. #define HAVE_PRI_DATETIME_SEND 1
  20121. _ACEOF
  20122. fi
  20123. fi
  20124. fi
  20125. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  20126. pbxlibdir=""
  20127. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  20128. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  20129. if test -d ${PRI_MWI_V2_DIR}/lib; then
  20130. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  20131. else
  20132. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  20133. fi
  20134. fi
  20135. pbxfuncname="pri_mwi_indicate_v2"
  20136. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20137. AST_PRI_MWI_V2_FOUND=yes
  20138. else
  20139. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20140. CFLAGS="${CFLAGS} "
  20141. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20143. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20144. if eval \${$as_ac_Lib+:} false; then :
  20145. $as_echo_n "(cached) " >&6
  20146. else
  20147. ac_check_lib_save_LIBS=$LIBS
  20148. LIBS="-lpri ${pbxlibdir} $LIBS"
  20149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20150. /* end confdefs.h. */
  20151. /* Override any GCC internal prototype to avoid an error.
  20152. Use char because int might match the return type of a GCC
  20153. builtin and then its argument prototype would still apply. */
  20154. #ifdef __cplusplus
  20155. extern "C"
  20156. #endif
  20157. char ${pbxfuncname} ();
  20158. int
  20159. main ()
  20160. {
  20161. return ${pbxfuncname} ();
  20162. ;
  20163. return 0;
  20164. }
  20165. _ACEOF
  20166. if ac_fn_c_try_link "$LINENO"; then :
  20167. eval "$as_ac_Lib=yes"
  20168. else
  20169. eval "$as_ac_Lib=no"
  20170. fi
  20171. rm -f core conftest.err conftest.$ac_objext \
  20172. conftest$ac_exeext conftest.$ac_ext
  20173. LIBS=$ac_check_lib_save_LIBS
  20174. fi
  20175. eval ac_res=\$$as_ac_Lib
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20177. $as_echo "$ac_res" >&6; }
  20178. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20179. AST_PRI_MWI_V2_FOUND=yes
  20180. else
  20181. AST_PRI_MWI_V2_FOUND=no
  20182. fi
  20183. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20184. fi
  20185. # now check for the header.
  20186. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  20187. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  20188. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  20189. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  20190. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  20191. fi
  20192. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  20193. if test "xlibpri.h" = "x" ; then # no header, assume found
  20194. PRI_MWI_V2_HEADER_FOUND="1"
  20195. else # check for the header
  20196. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20197. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  20198. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20199. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20200. PRI_MWI_V2_HEADER_FOUND=1
  20201. else
  20202. PRI_MWI_V2_HEADER_FOUND=0
  20203. fi
  20204. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20205. fi
  20206. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  20207. PRI_MWI_V2_LIB=""
  20208. PRI_MWI_V2_INCLUDE=""
  20209. else
  20210. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20211. PRI_MWI_V2_LIB=""
  20212. fi
  20213. PBX_PRI_MWI_V2=1
  20214. cat >>confdefs.h <<_ACEOF
  20215. #define HAVE_PRI_MWI_V2 1
  20216. _ACEOF
  20217. fi
  20218. fi
  20219. fi
  20220. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  20221. pbxlibdir=""
  20222. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  20223. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  20224. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  20225. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  20226. else
  20227. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  20228. fi
  20229. fi
  20230. pbxfuncname="pri_display_text"
  20231. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20232. AST_PRI_DISPLAY_TEXT_FOUND=yes
  20233. else
  20234. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20235. CFLAGS="${CFLAGS} "
  20236. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20238. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20239. if eval \${$as_ac_Lib+:} false; then :
  20240. $as_echo_n "(cached) " >&6
  20241. else
  20242. ac_check_lib_save_LIBS=$LIBS
  20243. LIBS="-lpri ${pbxlibdir} $LIBS"
  20244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20245. /* end confdefs.h. */
  20246. /* Override any GCC internal prototype to avoid an error.
  20247. Use char because int might match the return type of a GCC
  20248. builtin and then its argument prototype would still apply. */
  20249. #ifdef __cplusplus
  20250. extern "C"
  20251. #endif
  20252. char ${pbxfuncname} ();
  20253. int
  20254. main ()
  20255. {
  20256. return ${pbxfuncname} ();
  20257. ;
  20258. return 0;
  20259. }
  20260. _ACEOF
  20261. if ac_fn_c_try_link "$LINENO"; then :
  20262. eval "$as_ac_Lib=yes"
  20263. else
  20264. eval "$as_ac_Lib=no"
  20265. fi
  20266. rm -f core conftest.err conftest.$ac_objext \
  20267. conftest$ac_exeext conftest.$ac_ext
  20268. LIBS=$ac_check_lib_save_LIBS
  20269. fi
  20270. eval ac_res=\$$as_ac_Lib
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20272. $as_echo "$ac_res" >&6; }
  20273. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20274. AST_PRI_DISPLAY_TEXT_FOUND=yes
  20275. else
  20276. AST_PRI_DISPLAY_TEXT_FOUND=no
  20277. fi
  20278. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20279. fi
  20280. # now check for the header.
  20281. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  20282. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  20283. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  20284. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  20285. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  20286. fi
  20287. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  20288. if test "xlibpri.h" = "x" ; then # no header, assume found
  20289. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  20290. else # check for the header
  20291. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20292. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  20293. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20294. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20295. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  20296. else
  20297. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  20298. fi
  20299. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20300. fi
  20301. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  20302. PRI_DISPLAY_TEXT_LIB=""
  20303. PRI_DISPLAY_TEXT_INCLUDE=""
  20304. else
  20305. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20306. PRI_DISPLAY_TEXT_LIB=""
  20307. fi
  20308. PBX_PRI_DISPLAY_TEXT=1
  20309. cat >>confdefs.h <<_ACEOF
  20310. #define HAVE_PRI_DISPLAY_TEXT 1
  20311. _ACEOF
  20312. fi
  20313. fi
  20314. fi
  20315. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  20316. pbxlibdir=""
  20317. # if --with-PRI_MWI=DIR has been specified, use it.
  20318. if test "x${PRI_MWI_DIR}" != "x"; then
  20319. if test -d ${PRI_MWI_DIR}/lib; then
  20320. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  20321. else
  20322. pbxlibdir="-L${PRI_MWI_DIR}"
  20323. fi
  20324. fi
  20325. pbxfuncname="pri_mwi_indicate"
  20326. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20327. AST_PRI_MWI_FOUND=yes
  20328. else
  20329. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20330. CFLAGS="${CFLAGS} "
  20331. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20333. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20334. if eval \${$as_ac_Lib+:} false; then :
  20335. $as_echo_n "(cached) " >&6
  20336. else
  20337. ac_check_lib_save_LIBS=$LIBS
  20338. LIBS="-lpri ${pbxlibdir} $LIBS"
  20339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20340. /* end confdefs.h. */
  20341. /* Override any GCC internal prototype to avoid an error.
  20342. Use char because int might match the return type of a GCC
  20343. builtin and then its argument prototype would still apply. */
  20344. #ifdef __cplusplus
  20345. extern "C"
  20346. #endif
  20347. char ${pbxfuncname} ();
  20348. int
  20349. main ()
  20350. {
  20351. return ${pbxfuncname} ();
  20352. ;
  20353. return 0;
  20354. }
  20355. _ACEOF
  20356. if ac_fn_c_try_link "$LINENO"; then :
  20357. eval "$as_ac_Lib=yes"
  20358. else
  20359. eval "$as_ac_Lib=no"
  20360. fi
  20361. rm -f core conftest.err conftest.$ac_objext \
  20362. conftest$ac_exeext conftest.$ac_ext
  20363. LIBS=$ac_check_lib_save_LIBS
  20364. fi
  20365. eval ac_res=\$$as_ac_Lib
  20366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20367. $as_echo "$ac_res" >&6; }
  20368. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20369. AST_PRI_MWI_FOUND=yes
  20370. else
  20371. AST_PRI_MWI_FOUND=no
  20372. fi
  20373. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20374. fi
  20375. # now check for the header.
  20376. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  20377. PRI_MWI_LIB="${pbxlibdir} -lpri "
  20378. # if --with-PRI_MWI=DIR has been specified, use it.
  20379. if test "x${PRI_MWI_DIR}" != "x"; then
  20380. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  20381. fi
  20382. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  20383. if test "xlibpri.h" = "x" ; then # no header, assume found
  20384. PRI_MWI_HEADER_FOUND="1"
  20385. else # check for the header
  20386. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20387. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  20388. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20389. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20390. PRI_MWI_HEADER_FOUND=1
  20391. else
  20392. PRI_MWI_HEADER_FOUND=0
  20393. fi
  20394. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20395. fi
  20396. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  20397. PRI_MWI_LIB=""
  20398. PRI_MWI_INCLUDE=""
  20399. else
  20400. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20401. PRI_MWI_LIB=""
  20402. fi
  20403. PBX_PRI_MWI=1
  20404. cat >>confdefs.h <<_ACEOF
  20405. #define HAVE_PRI_MWI 1
  20406. _ACEOF
  20407. fi
  20408. fi
  20409. fi
  20410. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  20411. pbxlibdir=""
  20412. # if --with-PRI_MCID=DIR has been specified, use it.
  20413. if test "x${PRI_MCID_DIR}" != "x"; then
  20414. if test -d ${PRI_MCID_DIR}/lib; then
  20415. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  20416. else
  20417. pbxlibdir="-L${PRI_MCID_DIR}"
  20418. fi
  20419. fi
  20420. pbxfuncname="pri_mcid_enable"
  20421. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20422. AST_PRI_MCID_FOUND=yes
  20423. else
  20424. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20425. CFLAGS="${CFLAGS} "
  20426. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20428. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20429. if eval \${$as_ac_Lib+:} false; then :
  20430. $as_echo_n "(cached) " >&6
  20431. else
  20432. ac_check_lib_save_LIBS=$LIBS
  20433. LIBS="-lpri ${pbxlibdir} $LIBS"
  20434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20435. /* end confdefs.h. */
  20436. /* Override any GCC internal prototype to avoid an error.
  20437. Use char because int might match the return type of a GCC
  20438. builtin and then its argument prototype would still apply. */
  20439. #ifdef __cplusplus
  20440. extern "C"
  20441. #endif
  20442. char ${pbxfuncname} ();
  20443. int
  20444. main ()
  20445. {
  20446. return ${pbxfuncname} ();
  20447. ;
  20448. return 0;
  20449. }
  20450. _ACEOF
  20451. if ac_fn_c_try_link "$LINENO"; then :
  20452. eval "$as_ac_Lib=yes"
  20453. else
  20454. eval "$as_ac_Lib=no"
  20455. fi
  20456. rm -f core conftest.err conftest.$ac_objext \
  20457. conftest$ac_exeext conftest.$ac_ext
  20458. LIBS=$ac_check_lib_save_LIBS
  20459. fi
  20460. eval ac_res=\$$as_ac_Lib
  20461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20462. $as_echo "$ac_res" >&6; }
  20463. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20464. AST_PRI_MCID_FOUND=yes
  20465. else
  20466. AST_PRI_MCID_FOUND=no
  20467. fi
  20468. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20469. fi
  20470. # now check for the header.
  20471. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  20472. PRI_MCID_LIB="${pbxlibdir} -lpri "
  20473. # if --with-PRI_MCID=DIR has been specified, use it.
  20474. if test "x${PRI_MCID_DIR}" != "x"; then
  20475. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  20476. fi
  20477. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  20478. if test "xlibpri.h" = "x" ; then # no header, assume found
  20479. PRI_MCID_HEADER_FOUND="1"
  20480. else # check for the header
  20481. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20482. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  20483. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20484. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20485. PRI_MCID_HEADER_FOUND=1
  20486. else
  20487. PRI_MCID_HEADER_FOUND=0
  20488. fi
  20489. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20490. fi
  20491. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  20492. PRI_MCID_LIB=""
  20493. PRI_MCID_INCLUDE=""
  20494. else
  20495. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20496. PRI_MCID_LIB=""
  20497. fi
  20498. PBX_PRI_MCID=1
  20499. cat >>confdefs.h <<_ACEOF
  20500. #define HAVE_PRI_MCID 1
  20501. _ACEOF
  20502. fi
  20503. fi
  20504. fi
  20505. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  20506. pbxlibdir=""
  20507. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  20508. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  20509. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  20510. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  20511. else
  20512. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  20513. fi
  20514. fi
  20515. pbxfuncname="pri_connect_ack_enable"
  20516. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20517. AST_PRI_CALL_WAITING_FOUND=yes
  20518. else
  20519. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20520. CFLAGS="${CFLAGS} "
  20521. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20523. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20524. if eval \${$as_ac_Lib+:} false; then :
  20525. $as_echo_n "(cached) " >&6
  20526. else
  20527. ac_check_lib_save_LIBS=$LIBS
  20528. LIBS="-lpri ${pbxlibdir} $LIBS"
  20529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20530. /* end confdefs.h. */
  20531. /* Override any GCC internal prototype to avoid an error.
  20532. Use char because int might match the return type of a GCC
  20533. builtin and then its argument prototype would still apply. */
  20534. #ifdef __cplusplus
  20535. extern "C"
  20536. #endif
  20537. char ${pbxfuncname} ();
  20538. int
  20539. main ()
  20540. {
  20541. return ${pbxfuncname} ();
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. if ac_fn_c_try_link "$LINENO"; then :
  20547. eval "$as_ac_Lib=yes"
  20548. else
  20549. eval "$as_ac_Lib=no"
  20550. fi
  20551. rm -f core conftest.err conftest.$ac_objext \
  20552. conftest$ac_exeext conftest.$ac_ext
  20553. LIBS=$ac_check_lib_save_LIBS
  20554. fi
  20555. eval ac_res=\$$as_ac_Lib
  20556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20557. $as_echo "$ac_res" >&6; }
  20558. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20559. AST_PRI_CALL_WAITING_FOUND=yes
  20560. else
  20561. AST_PRI_CALL_WAITING_FOUND=no
  20562. fi
  20563. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20564. fi
  20565. # now check for the header.
  20566. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  20567. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  20568. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  20569. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  20570. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  20571. fi
  20572. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  20573. if test "xlibpri.h" = "x" ; then # no header, assume found
  20574. PRI_CALL_WAITING_HEADER_FOUND="1"
  20575. else # check for the header
  20576. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20577. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  20578. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20579. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20580. PRI_CALL_WAITING_HEADER_FOUND=1
  20581. else
  20582. PRI_CALL_WAITING_HEADER_FOUND=0
  20583. fi
  20584. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20585. fi
  20586. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  20587. PRI_CALL_WAITING_LIB=""
  20588. PRI_CALL_WAITING_INCLUDE=""
  20589. else
  20590. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20591. PRI_CALL_WAITING_LIB=""
  20592. fi
  20593. PBX_PRI_CALL_WAITING=1
  20594. cat >>confdefs.h <<_ACEOF
  20595. #define HAVE_PRI_CALL_WAITING 1
  20596. _ACEOF
  20597. fi
  20598. fi
  20599. fi
  20600. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  20601. pbxlibdir=""
  20602. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  20603. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  20604. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  20605. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  20606. else
  20607. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  20608. fi
  20609. fi
  20610. pbxfuncname="pri_aoc_events_enable"
  20611. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20612. AST_PRI_AOC_EVENTS_FOUND=yes
  20613. else
  20614. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20615. CFLAGS="${CFLAGS} "
  20616. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20618. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20619. if eval \${$as_ac_Lib+:} false; then :
  20620. $as_echo_n "(cached) " >&6
  20621. else
  20622. ac_check_lib_save_LIBS=$LIBS
  20623. LIBS="-lpri ${pbxlibdir} $LIBS"
  20624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20625. /* end confdefs.h. */
  20626. /* Override any GCC internal prototype to avoid an error.
  20627. Use char because int might match the return type of a GCC
  20628. builtin and then its argument prototype would still apply. */
  20629. #ifdef __cplusplus
  20630. extern "C"
  20631. #endif
  20632. char ${pbxfuncname} ();
  20633. int
  20634. main ()
  20635. {
  20636. return ${pbxfuncname} ();
  20637. ;
  20638. return 0;
  20639. }
  20640. _ACEOF
  20641. if ac_fn_c_try_link "$LINENO"; then :
  20642. eval "$as_ac_Lib=yes"
  20643. else
  20644. eval "$as_ac_Lib=no"
  20645. fi
  20646. rm -f core conftest.err conftest.$ac_objext \
  20647. conftest$ac_exeext conftest.$ac_ext
  20648. LIBS=$ac_check_lib_save_LIBS
  20649. fi
  20650. eval ac_res=\$$as_ac_Lib
  20651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20652. $as_echo "$ac_res" >&6; }
  20653. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20654. AST_PRI_AOC_EVENTS_FOUND=yes
  20655. else
  20656. AST_PRI_AOC_EVENTS_FOUND=no
  20657. fi
  20658. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20659. fi
  20660. # now check for the header.
  20661. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  20662. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  20663. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  20664. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  20665. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  20666. fi
  20667. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  20668. if test "xlibpri.h" = "x" ; then # no header, assume found
  20669. PRI_AOC_EVENTS_HEADER_FOUND="1"
  20670. else # check for the header
  20671. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20672. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  20673. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20674. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20675. PRI_AOC_EVENTS_HEADER_FOUND=1
  20676. else
  20677. PRI_AOC_EVENTS_HEADER_FOUND=0
  20678. fi
  20679. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20680. fi
  20681. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  20682. PRI_AOC_EVENTS_LIB=""
  20683. PRI_AOC_EVENTS_INCLUDE=""
  20684. else
  20685. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20686. PRI_AOC_EVENTS_LIB=""
  20687. fi
  20688. PBX_PRI_AOC_EVENTS=1
  20689. cat >>confdefs.h <<_ACEOF
  20690. #define HAVE_PRI_AOC_EVENTS 1
  20691. _ACEOF
  20692. fi
  20693. fi
  20694. fi
  20695. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  20696. pbxlibdir=""
  20697. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  20698. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  20699. if test -d ${PRI_TRANSFER_DIR}/lib; then
  20700. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  20701. else
  20702. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  20703. fi
  20704. fi
  20705. pbxfuncname="pri_transfer_enable"
  20706. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20707. AST_PRI_TRANSFER_FOUND=yes
  20708. else
  20709. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20710. CFLAGS="${CFLAGS} "
  20711. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20713. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20714. if eval \${$as_ac_Lib+:} false; then :
  20715. $as_echo_n "(cached) " >&6
  20716. else
  20717. ac_check_lib_save_LIBS=$LIBS
  20718. LIBS="-lpri ${pbxlibdir} $LIBS"
  20719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20720. /* end confdefs.h. */
  20721. /* Override any GCC internal prototype to avoid an error.
  20722. Use char because int might match the return type of a GCC
  20723. builtin and then its argument prototype would still apply. */
  20724. #ifdef __cplusplus
  20725. extern "C"
  20726. #endif
  20727. char ${pbxfuncname} ();
  20728. int
  20729. main ()
  20730. {
  20731. return ${pbxfuncname} ();
  20732. ;
  20733. return 0;
  20734. }
  20735. _ACEOF
  20736. if ac_fn_c_try_link "$LINENO"; then :
  20737. eval "$as_ac_Lib=yes"
  20738. else
  20739. eval "$as_ac_Lib=no"
  20740. fi
  20741. rm -f core conftest.err conftest.$ac_objext \
  20742. conftest$ac_exeext conftest.$ac_ext
  20743. LIBS=$ac_check_lib_save_LIBS
  20744. fi
  20745. eval ac_res=\$$as_ac_Lib
  20746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20747. $as_echo "$ac_res" >&6; }
  20748. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20749. AST_PRI_TRANSFER_FOUND=yes
  20750. else
  20751. AST_PRI_TRANSFER_FOUND=no
  20752. fi
  20753. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20754. fi
  20755. # now check for the header.
  20756. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  20757. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  20758. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  20759. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  20760. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  20761. fi
  20762. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  20763. if test "xlibpri.h" = "x" ; then # no header, assume found
  20764. PRI_TRANSFER_HEADER_FOUND="1"
  20765. else # check for the header
  20766. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20767. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  20768. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20769. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20770. PRI_TRANSFER_HEADER_FOUND=1
  20771. else
  20772. PRI_TRANSFER_HEADER_FOUND=0
  20773. fi
  20774. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20775. fi
  20776. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  20777. PRI_TRANSFER_LIB=""
  20778. PRI_TRANSFER_INCLUDE=""
  20779. else
  20780. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20781. PRI_TRANSFER_LIB=""
  20782. fi
  20783. PBX_PRI_TRANSFER=1
  20784. cat >>confdefs.h <<_ACEOF
  20785. #define HAVE_PRI_TRANSFER 1
  20786. _ACEOF
  20787. fi
  20788. fi
  20789. fi
  20790. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  20791. pbxlibdir=""
  20792. # if --with-PRI_CCSS=DIR has been specified, use it.
  20793. if test "x${PRI_CCSS_DIR}" != "x"; then
  20794. if test -d ${PRI_CCSS_DIR}/lib; then
  20795. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  20796. else
  20797. pbxlibdir="-L${PRI_CCSS_DIR}"
  20798. fi
  20799. fi
  20800. pbxfuncname="pri_cc_enable"
  20801. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20802. AST_PRI_CCSS_FOUND=yes
  20803. else
  20804. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20805. CFLAGS="${CFLAGS} "
  20806. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20808. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20809. if eval \${$as_ac_Lib+:} false; then :
  20810. $as_echo_n "(cached) " >&6
  20811. else
  20812. ac_check_lib_save_LIBS=$LIBS
  20813. LIBS="-lpri ${pbxlibdir} $LIBS"
  20814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20815. /* end confdefs.h. */
  20816. /* Override any GCC internal prototype to avoid an error.
  20817. Use char because int might match the return type of a GCC
  20818. builtin and then its argument prototype would still apply. */
  20819. #ifdef __cplusplus
  20820. extern "C"
  20821. #endif
  20822. char ${pbxfuncname} ();
  20823. int
  20824. main ()
  20825. {
  20826. return ${pbxfuncname} ();
  20827. ;
  20828. return 0;
  20829. }
  20830. _ACEOF
  20831. if ac_fn_c_try_link "$LINENO"; then :
  20832. eval "$as_ac_Lib=yes"
  20833. else
  20834. eval "$as_ac_Lib=no"
  20835. fi
  20836. rm -f core conftest.err conftest.$ac_objext \
  20837. conftest$ac_exeext conftest.$ac_ext
  20838. LIBS=$ac_check_lib_save_LIBS
  20839. fi
  20840. eval ac_res=\$$as_ac_Lib
  20841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20842. $as_echo "$ac_res" >&6; }
  20843. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20844. AST_PRI_CCSS_FOUND=yes
  20845. else
  20846. AST_PRI_CCSS_FOUND=no
  20847. fi
  20848. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20849. fi
  20850. # now check for the header.
  20851. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  20852. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  20853. # if --with-PRI_CCSS=DIR has been specified, use it.
  20854. if test "x${PRI_CCSS_DIR}" != "x"; then
  20855. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  20856. fi
  20857. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  20858. if test "xlibpri.h" = "x" ; then # no header, assume found
  20859. PRI_CCSS_HEADER_FOUND="1"
  20860. else # check for the header
  20861. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20862. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  20863. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20864. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20865. PRI_CCSS_HEADER_FOUND=1
  20866. else
  20867. PRI_CCSS_HEADER_FOUND=0
  20868. fi
  20869. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20870. fi
  20871. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  20872. PRI_CCSS_LIB=""
  20873. PRI_CCSS_INCLUDE=""
  20874. else
  20875. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20876. PRI_CCSS_LIB=""
  20877. fi
  20878. PBX_PRI_CCSS=1
  20879. cat >>confdefs.h <<_ACEOF
  20880. #define HAVE_PRI_CCSS 1
  20881. _ACEOF
  20882. fi
  20883. fi
  20884. fi
  20885. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  20886. pbxlibdir=""
  20887. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  20888. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  20889. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  20890. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  20891. else
  20892. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  20893. fi
  20894. fi
  20895. pbxfuncname="pri_hangup_fix_enable"
  20896. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20897. AST_PRI_HANGUP_FIX_FOUND=yes
  20898. else
  20899. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20900. CFLAGS="${CFLAGS} "
  20901. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20903. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20904. if eval \${$as_ac_Lib+:} false; then :
  20905. $as_echo_n "(cached) " >&6
  20906. else
  20907. ac_check_lib_save_LIBS=$LIBS
  20908. LIBS="-lpri ${pbxlibdir} $LIBS"
  20909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20910. /* end confdefs.h. */
  20911. /* Override any GCC internal prototype to avoid an error.
  20912. Use char because int might match the return type of a GCC
  20913. builtin and then its argument prototype would still apply. */
  20914. #ifdef __cplusplus
  20915. extern "C"
  20916. #endif
  20917. char ${pbxfuncname} ();
  20918. int
  20919. main ()
  20920. {
  20921. return ${pbxfuncname} ();
  20922. ;
  20923. return 0;
  20924. }
  20925. _ACEOF
  20926. if ac_fn_c_try_link "$LINENO"; then :
  20927. eval "$as_ac_Lib=yes"
  20928. else
  20929. eval "$as_ac_Lib=no"
  20930. fi
  20931. rm -f core conftest.err conftest.$ac_objext \
  20932. conftest$ac_exeext conftest.$ac_ext
  20933. LIBS=$ac_check_lib_save_LIBS
  20934. fi
  20935. eval ac_res=\$$as_ac_Lib
  20936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20937. $as_echo "$ac_res" >&6; }
  20938. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20939. AST_PRI_HANGUP_FIX_FOUND=yes
  20940. else
  20941. AST_PRI_HANGUP_FIX_FOUND=no
  20942. fi
  20943. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20944. fi
  20945. # now check for the header.
  20946. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  20947. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  20948. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  20949. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  20950. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  20951. fi
  20952. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  20953. if test "xlibpri.h" = "x" ; then # no header, assume found
  20954. PRI_HANGUP_FIX_HEADER_FOUND="1"
  20955. else # check for the header
  20956. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20957. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  20958. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20959. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20960. PRI_HANGUP_FIX_HEADER_FOUND=1
  20961. else
  20962. PRI_HANGUP_FIX_HEADER_FOUND=0
  20963. fi
  20964. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20965. fi
  20966. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  20967. PRI_HANGUP_FIX_LIB=""
  20968. PRI_HANGUP_FIX_INCLUDE=""
  20969. else
  20970. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20971. PRI_HANGUP_FIX_LIB=""
  20972. fi
  20973. PBX_PRI_HANGUP_FIX=1
  20974. cat >>confdefs.h <<_ACEOF
  20975. #define HAVE_PRI_HANGUP_FIX 1
  20976. _ACEOF
  20977. fi
  20978. fi
  20979. fi
  20980. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  20981. pbxlibdir=""
  20982. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  20983. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  20984. if test -d ${PRI_SUBADDR_DIR}/lib; then
  20985. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  20986. else
  20987. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  20988. fi
  20989. fi
  20990. pbxfuncname="pri_sr_set_called_subaddress"
  20991. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20992. AST_PRI_SUBADDR_FOUND=yes
  20993. else
  20994. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20995. CFLAGS="${CFLAGS} "
  20996. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20998. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20999. if eval \${$as_ac_Lib+:} false; then :
  21000. $as_echo_n "(cached) " >&6
  21001. else
  21002. ac_check_lib_save_LIBS=$LIBS
  21003. LIBS="-lpri ${pbxlibdir} $LIBS"
  21004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21005. /* end confdefs.h. */
  21006. /* Override any GCC internal prototype to avoid an error.
  21007. Use char because int might match the return type of a GCC
  21008. builtin and then its argument prototype would still apply. */
  21009. #ifdef __cplusplus
  21010. extern "C"
  21011. #endif
  21012. char ${pbxfuncname} ();
  21013. int
  21014. main ()
  21015. {
  21016. return ${pbxfuncname} ();
  21017. ;
  21018. return 0;
  21019. }
  21020. _ACEOF
  21021. if ac_fn_c_try_link "$LINENO"; then :
  21022. eval "$as_ac_Lib=yes"
  21023. else
  21024. eval "$as_ac_Lib=no"
  21025. fi
  21026. rm -f core conftest.err conftest.$ac_objext \
  21027. conftest$ac_exeext conftest.$ac_ext
  21028. LIBS=$ac_check_lib_save_LIBS
  21029. fi
  21030. eval ac_res=\$$as_ac_Lib
  21031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21032. $as_echo "$ac_res" >&6; }
  21033. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21034. AST_PRI_SUBADDR_FOUND=yes
  21035. else
  21036. AST_PRI_SUBADDR_FOUND=no
  21037. fi
  21038. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21039. fi
  21040. # now check for the header.
  21041. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  21042. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  21043. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  21044. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  21045. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  21046. fi
  21047. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  21048. if test "xlibpri.h" = "x" ; then # no header, assume found
  21049. PRI_SUBADDR_HEADER_FOUND="1"
  21050. else # check for the header
  21051. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21052. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  21053. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21054. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21055. PRI_SUBADDR_HEADER_FOUND=1
  21056. else
  21057. PRI_SUBADDR_HEADER_FOUND=0
  21058. fi
  21059. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21060. fi
  21061. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  21062. PRI_SUBADDR_LIB=""
  21063. PRI_SUBADDR_INCLUDE=""
  21064. else
  21065. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21066. PRI_SUBADDR_LIB=""
  21067. fi
  21068. PBX_PRI_SUBADDR=1
  21069. cat >>confdefs.h <<_ACEOF
  21070. #define HAVE_PRI_SUBADDR 1
  21071. _ACEOF
  21072. fi
  21073. fi
  21074. fi
  21075. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  21076. pbxlibdir=""
  21077. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  21078. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  21079. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  21080. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  21081. else
  21082. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  21083. fi
  21084. fi
  21085. pbxfuncname="pri_hold_enable"
  21086. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21087. AST_PRI_CALL_HOLD_FOUND=yes
  21088. else
  21089. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21090. CFLAGS="${CFLAGS} "
  21091. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21093. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21094. if eval \${$as_ac_Lib+:} false; then :
  21095. $as_echo_n "(cached) " >&6
  21096. else
  21097. ac_check_lib_save_LIBS=$LIBS
  21098. LIBS="-lpri ${pbxlibdir} $LIBS"
  21099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21100. /* end confdefs.h. */
  21101. /* Override any GCC internal prototype to avoid an error.
  21102. Use char because int might match the return type of a GCC
  21103. builtin and then its argument prototype would still apply. */
  21104. #ifdef __cplusplus
  21105. extern "C"
  21106. #endif
  21107. char ${pbxfuncname} ();
  21108. int
  21109. main ()
  21110. {
  21111. return ${pbxfuncname} ();
  21112. ;
  21113. return 0;
  21114. }
  21115. _ACEOF
  21116. if ac_fn_c_try_link "$LINENO"; then :
  21117. eval "$as_ac_Lib=yes"
  21118. else
  21119. eval "$as_ac_Lib=no"
  21120. fi
  21121. rm -f core conftest.err conftest.$ac_objext \
  21122. conftest$ac_exeext conftest.$ac_ext
  21123. LIBS=$ac_check_lib_save_LIBS
  21124. fi
  21125. eval ac_res=\$$as_ac_Lib
  21126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21127. $as_echo "$ac_res" >&6; }
  21128. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21129. AST_PRI_CALL_HOLD_FOUND=yes
  21130. else
  21131. AST_PRI_CALL_HOLD_FOUND=no
  21132. fi
  21133. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21134. fi
  21135. # now check for the header.
  21136. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  21137. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  21138. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  21139. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  21140. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  21141. fi
  21142. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  21143. if test "xlibpri.h" = "x" ; then # no header, assume found
  21144. PRI_CALL_HOLD_HEADER_FOUND="1"
  21145. else # check for the header
  21146. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21147. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  21148. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21149. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21150. PRI_CALL_HOLD_HEADER_FOUND=1
  21151. else
  21152. PRI_CALL_HOLD_HEADER_FOUND=0
  21153. fi
  21154. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21155. fi
  21156. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  21157. PRI_CALL_HOLD_LIB=""
  21158. PRI_CALL_HOLD_INCLUDE=""
  21159. else
  21160. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21161. PRI_CALL_HOLD_LIB=""
  21162. fi
  21163. PBX_PRI_CALL_HOLD=1
  21164. cat >>confdefs.h <<_ACEOF
  21165. #define HAVE_PRI_CALL_HOLD 1
  21166. _ACEOF
  21167. fi
  21168. fi
  21169. fi
  21170. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  21171. pbxlibdir=""
  21172. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  21173. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  21174. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  21175. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  21176. else
  21177. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  21178. fi
  21179. fi
  21180. pbxfuncname="pri_reroute_enable"
  21181. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21182. AST_PRI_CALL_REROUTING_FOUND=yes
  21183. else
  21184. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21185. CFLAGS="${CFLAGS} "
  21186. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21188. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21189. if eval \${$as_ac_Lib+:} false; then :
  21190. $as_echo_n "(cached) " >&6
  21191. else
  21192. ac_check_lib_save_LIBS=$LIBS
  21193. LIBS="-lpri ${pbxlibdir} $LIBS"
  21194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21195. /* end confdefs.h. */
  21196. /* Override any GCC internal prototype to avoid an error.
  21197. Use char because int might match the return type of a GCC
  21198. builtin and then its argument prototype would still apply. */
  21199. #ifdef __cplusplus
  21200. extern "C"
  21201. #endif
  21202. char ${pbxfuncname} ();
  21203. int
  21204. main ()
  21205. {
  21206. return ${pbxfuncname} ();
  21207. ;
  21208. return 0;
  21209. }
  21210. _ACEOF
  21211. if ac_fn_c_try_link "$LINENO"; then :
  21212. eval "$as_ac_Lib=yes"
  21213. else
  21214. eval "$as_ac_Lib=no"
  21215. fi
  21216. rm -f core conftest.err conftest.$ac_objext \
  21217. conftest$ac_exeext conftest.$ac_ext
  21218. LIBS=$ac_check_lib_save_LIBS
  21219. fi
  21220. eval ac_res=\$$as_ac_Lib
  21221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21222. $as_echo "$ac_res" >&6; }
  21223. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21224. AST_PRI_CALL_REROUTING_FOUND=yes
  21225. else
  21226. AST_PRI_CALL_REROUTING_FOUND=no
  21227. fi
  21228. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21229. fi
  21230. # now check for the header.
  21231. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  21232. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  21233. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  21234. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  21235. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  21236. fi
  21237. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  21238. if test "xlibpri.h" = "x" ; then # no header, assume found
  21239. PRI_CALL_REROUTING_HEADER_FOUND="1"
  21240. else # check for the header
  21241. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21242. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  21243. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21244. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21245. PRI_CALL_REROUTING_HEADER_FOUND=1
  21246. else
  21247. PRI_CALL_REROUTING_HEADER_FOUND=0
  21248. fi
  21249. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21250. fi
  21251. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  21252. PRI_CALL_REROUTING_LIB=""
  21253. PRI_CALL_REROUTING_INCLUDE=""
  21254. else
  21255. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21256. PRI_CALL_REROUTING_LIB=""
  21257. fi
  21258. PBX_PRI_CALL_REROUTING=1
  21259. cat >>confdefs.h <<_ACEOF
  21260. #define HAVE_PRI_CALL_REROUTING 1
  21261. _ACEOF
  21262. fi
  21263. fi
  21264. fi
  21265. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  21266. pbxlibdir=""
  21267. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  21268. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  21269. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  21270. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  21271. else
  21272. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  21273. fi
  21274. fi
  21275. pbxfuncname="pri_sr_set_keypad_digits"
  21276. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21277. AST_PRI_SETUP_KEYPAD_FOUND=yes
  21278. else
  21279. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21280. CFLAGS="${CFLAGS} "
  21281. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21283. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21284. if eval \${$as_ac_Lib+:} false; then :
  21285. $as_echo_n "(cached) " >&6
  21286. else
  21287. ac_check_lib_save_LIBS=$LIBS
  21288. LIBS="-lpri ${pbxlibdir} $LIBS"
  21289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21290. /* end confdefs.h. */
  21291. /* Override any GCC internal prototype to avoid an error.
  21292. Use char because int might match the return type of a GCC
  21293. builtin and then its argument prototype would still apply. */
  21294. #ifdef __cplusplus
  21295. extern "C"
  21296. #endif
  21297. char ${pbxfuncname} ();
  21298. int
  21299. main ()
  21300. {
  21301. return ${pbxfuncname} ();
  21302. ;
  21303. return 0;
  21304. }
  21305. _ACEOF
  21306. if ac_fn_c_try_link "$LINENO"; then :
  21307. eval "$as_ac_Lib=yes"
  21308. else
  21309. eval "$as_ac_Lib=no"
  21310. fi
  21311. rm -f core conftest.err conftest.$ac_objext \
  21312. conftest$ac_exeext conftest.$ac_ext
  21313. LIBS=$ac_check_lib_save_LIBS
  21314. fi
  21315. eval ac_res=\$$as_ac_Lib
  21316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21317. $as_echo "$ac_res" >&6; }
  21318. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21319. AST_PRI_SETUP_KEYPAD_FOUND=yes
  21320. else
  21321. AST_PRI_SETUP_KEYPAD_FOUND=no
  21322. fi
  21323. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21324. fi
  21325. # now check for the header.
  21326. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  21327. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  21328. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  21329. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  21330. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  21331. fi
  21332. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  21333. if test "xlibpri.h" = "x" ; then # no header, assume found
  21334. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  21335. else # check for the header
  21336. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21337. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  21338. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21339. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21340. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  21341. else
  21342. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  21343. fi
  21344. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21345. fi
  21346. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  21347. PRI_SETUP_KEYPAD_LIB=""
  21348. PRI_SETUP_KEYPAD_INCLUDE=""
  21349. else
  21350. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21351. PRI_SETUP_KEYPAD_LIB=""
  21352. fi
  21353. PBX_PRI_SETUP_KEYPAD=1
  21354. cat >>confdefs.h <<_ACEOF
  21355. #define HAVE_PRI_SETUP_KEYPAD 1
  21356. _ACEOF
  21357. fi
  21358. fi
  21359. fi
  21360. # ------------------------------------v
  21361. # TODO: The code can be changed to always include these features now.
  21362. # These features will always be present if pri_connected_line_update is available.
  21363. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  21364. pbxlibdir=""
  21365. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  21366. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  21367. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  21368. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  21369. else
  21370. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  21371. fi
  21372. fi
  21373. pbxfuncname="pri_progress_with_cause"
  21374. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21375. AST_PRI_PROG_W_CAUSE_FOUND=yes
  21376. else
  21377. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21378. CFLAGS="${CFLAGS} "
  21379. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21381. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21382. if eval \${$as_ac_Lib+:} false; then :
  21383. $as_echo_n "(cached) " >&6
  21384. else
  21385. ac_check_lib_save_LIBS=$LIBS
  21386. LIBS="-lpri ${pbxlibdir} $LIBS"
  21387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21388. /* end confdefs.h. */
  21389. /* Override any GCC internal prototype to avoid an error.
  21390. Use char because int might match the return type of a GCC
  21391. builtin and then its argument prototype would still apply. */
  21392. #ifdef __cplusplus
  21393. extern "C"
  21394. #endif
  21395. char ${pbxfuncname} ();
  21396. int
  21397. main ()
  21398. {
  21399. return ${pbxfuncname} ();
  21400. ;
  21401. return 0;
  21402. }
  21403. _ACEOF
  21404. if ac_fn_c_try_link "$LINENO"; then :
  21405. eval "$as_ac_Lib=yes"
  21406. else
  21407. eval "$as_ac_Lib=no"
  21408. fi
  21409. rm -f core conftest.err conftest.$ac_objext \
  21410. conftest$ac_exeext conftest.$ac_ext
  21411. LIBS=$ac_check_lib_save_LIBS
  21412. fi
  21413. eval ac_res=\$$as_ac_Lib
  21414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21415. $as_echo "$ac_res" >&6; }
  21416. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21417. AST_PRI_PROG_W_CAUSE_FOUND=yes
  21418. else
  21419. AST_PRI_PROG_W_CAUSE_FOUND=no
  21420. fi
  21421. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21422. fi
  21423. # now check for the header.
  21424. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  21425. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  21426. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  21427. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  21428. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  21429. fi
  21430. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  21431. if test "xlibpri.h" = "x" ; then # no header, assume found
  21432. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  21433. else # check for the header
  21434. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21435. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  21436. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21437. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21438. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  21439. else
  21440. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  21441. fi
  21442. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21443. fi
  21444. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  21445. PRI_PROG_W_CAUSE_LIB=""
  21446. PRI_PROG_W_CAUSE_INCLUDE=""
  21447. else
  21448. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21449. PRI_PROG_W_CAUSE_LIB=""
  21450. fi
  21451. PBX_PRI_PROG_W_CAUSE=1
  21452. cat >>confdefs.h <<_ACEOF
  21453. #define HAVE_PRI_PROG_W_CAUSE 1
  21454. _ACEOF
  21455. fi
  21456. fi
  21457. fi
  21458. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  21459. pbxlibdir=""
  21460. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  21461. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  21462. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  21463. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  21464. else
  21465. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  21466. fi
  21467. fi
  21468. pbxfuncname="pri_set_inbanddisconnect"
  21469. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21470. AST_PRI_INBANDDISCONNECT_FOUND=yes
  21471. else
  21472. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21473. CFLAGS="${CFLAGS} "
  21474. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21476. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21477. if eval \${$as_ac_Lib+:} false; then :
  21478. $as_echo_n "(cached) " >&6
  21479. else
  21480. ac_check_lib_save_LIBS=$LIBS
  21481. LIBS="-lpri ${pbxlibdir} $LIBS"
  21482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21483. /* end confdefs.h. */
  21484. /* Override any GCC internal prototype to avoid an error.
  21485. Use char because int might match the return type of a GCC
  21486. builtin and then its argument prototype would still apply. */
  21487. #ifdef __cplusplus
  21488. extern "C"
  21489. #endif
  21490. char ${pbxfuncname} ();
  21491. int
  21492. main ()
  21493. {
  21494. return ${pbxfuncname} ();
  21495. ;
  21496. return 0;
  21497. }
  21498. _ACEOF
  21499. if ac_fn_c_try_link "$LINENO"; then :
  21500. eval "$as_ac_Lib=yes"
  21501. else
  21502. eval "$as_ac_Lib=no"
  21503. fi
  21504. rm -f core conftest.err conftest.$ac_objext \
  21505. conftest$ac_exeext conftest.$ac_ext
  21506. LIBS=$ac_check_lib_save_LIBS
  21507. fi
  21508. eval ac_res=\$$as_ac_Lib
  21509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21510. $as_echo "$ac_res" >&6; }
  21511. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21512. AST_PRI_INBANDDISCONNECT_FOUND=yes
  21513. else
  21514. AST_PRI_INBANDDISCONNECT_FOUND=no
  21515. fi
  21516. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21517. fi
  21518. # now check for the header.
  21519. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  21520. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  21521. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  21522. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  21523. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  21524. fi
  21525. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  21526. if test "xlibpri.h" = "x" ; then # no header, assume found
  21527. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  21528. else # check for the header
  21529. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21530. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  21531. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21532. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21533. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  21534. else
  21535. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  21536. fi
  21537. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21538. fi
  21539. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  21540. PRI_INBANDDISCONNECT_LIB=""
  21541. PRI_INBANDDISCONNECT_INCLUDE=""
  21542. else
  21543. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21544. PRI_INBANDDISCONNECT_LIB=""
  21545. fi
  21546. PBX_PRI_INBANDDISCONNECT=1
  21547. cat >>confdefs.h <<_ACEOF
  21548. #define HAVE_PRI_INBANDDISCONNECT 1
  21549. _ACEOF
  21550. fi
  21551. fi
  21552. fi
  21553. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  21554. pbxlibdir=""
  21555. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  21556. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  21557. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  21558. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  21559. else
  21560. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  21561. fi
  21562. fi
  21563. pbxfuncname="pri_maintenance_service"
  21564. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21565. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  21566. else
  21567. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21568. CFLAGS="${CFLAGS} "
  21569. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21571. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21572. if eval \${$as_ac_Lib+:} false; then :
  21573. $as_echo_n "(cached) " >&6
  21574. else
  21575. ac_check_lib_save_LIBS=$LIBS
  21576. LIBS="-lpri ${pbxlibdir} $LIBS"
  21577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21578. /* end confdefs.h. */
  21579. /* Override any GCC internal prototype to avoid an error.
  21580. Use char because int might match the return type of a GCC
  21581. builtin and then its argument prototype would still apply. */
  21582. #ifdef __cplusplus
  21583. extern "C"
  21584. #endif
  21585. char ${pbxfuncname} ();
  21586. int
  21587. main ()
  21588. {
  21589. return ${pbxfuncname} ();
  21590. ;
  21591. return 0;
  21592. }
  21593. _ACEOF
  21594. if ac_fn_c_try_link "$LINENO"; then :
  21595. eval "$as_ac_Lib=yes"
  21596. else
  21597. eval "$as_ac_Lib=no"
  21598. fi
  21599. rm -f core conftest.err conftest.$ac_objext \
  21600. conftest$ac_exeext conftest.$ac_ext
  21601. LIBS=$ac_check_lib_save_LIBS
  21602. fi
  21603. eval ac_res=\$$as_ac_Lib
  21604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21605. $as_echo "$ac_res" >&6; }
  21606. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21607. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  21608. else
  21609. AST_PRI_SERVICE_MESSAGES_FOUND=no
  21610. fi
  21611. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21612. fi
  21613. # now check for the header.
  21614. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  21615. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  21616. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  21617. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  21618. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  21619. fi
  21620. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  21621. if test "xlibpri.h" = "x" ; then # no header, assume found
  21622. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  21623. else # check for the header
  21624. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21625. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  21626. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21627. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21628. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  21629. else
  21630. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  21631. fi
  21632. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21633. fi
  21634. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  21635. PRI_SERVICE_MESSAGES_LIB=""
  21636. PRI_SERVICE_MESSAGES_INCLUDE=""
  21637. else
  21638. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21639. PRI_SERVICE_MESSAGES_LIB=""
  21640. fi
  21641. PBX_PRI_SERVICE_MESSAGES=1
  21642. cat >>confdefs.h <<_ACEOF
  21643. #define HAVE_PRI_SERVICE_MESSAGES 1
  21644. _ACEOF
  21645. fi
  21646. fi
  21647. fi
  21648. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  21649. pbxlibdir=""
  21650. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  21651. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  21652. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  21653. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  21654. else
  21655. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  21656. fi
  21657. fi
  21658. pbxfuncname="pri_sr_set_reversecharge"
  21659. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21660. AST_PRI_REVERSE_CHARGE_FOUND=yes
  21661. else
  21662. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21663. CFLAGS="${CFLAGS} "
  21664. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21666. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21667. if eval \${$as_ac_Lib+:} false; then :
  21668. $as_echo_n "(cached) " >&6
  21669. else
  21670. ac_check_lib_save_LIBS=$LIBS
  21671. LIBS="-lpri ${pbxlibdir} $LIBS"
  21672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21673. /* end confdefs.h. */
  21674. /* Override any GCC internal prototype to avoid an error.
  21675. Use char because int might match the return type of a GCC
  21676. builtin and then its argument prototype would still apply. */
  21677. #ifdef __cplusplus
  21678. extern "C"
  21679. #endif
  21680. char ${pbxfuncname} ();
  21681. int
  21682. main ()
  21683. {
  21684. return ${pbxfuncname} ();
  21685. ;
  21686. return 0;
  21687. }
  21688. _ACEOF
  21689. if ac_fn_c_try_link "$LINENO"; then :
  21690. eval "$as_ac_Lib=yes"
  21691. else
  21692. eval "$as_ac_Lib=no"
  21693. fi
  21694. rm -f core conftest.err conftest.$ac_objext \
  21695. conftest$ac_exeext conftest.$ac_ext
  21696. LIBS=$ac_check_lib_save_LIBS
  21697. fi
  21698. eval ac_res=\$$as_ac_Lib
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21700. $as_echo "$ac_res" >&6; }
  21701. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21702. AST_PRI_REVERSE_CHARGE_FOUND=yes
  21703. else
  21704. AST_PRI_REVERSE_CHARGE_FOUND=no
  21705. fi
  21706. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21707. fi
  21708. # now check for the header.
  21709. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  21710. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  21711. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  21712. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  21713. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  21714. fi
  21715. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  21716. if test "xlibpri.h" = "x" ; then # no header, assume found
  21717. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  21718. else # check for the header
  21719. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21720. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  21721. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21722. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21723. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  21724. else
  21725. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  21726. fi
  21727. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21728. fi
  21729. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  21730. PRI_REVERSE_CHARGE_LIB=""
  21731. PRI_REVERSE_CHARGE_INCLUDE=""
  21732. else
  21733. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21734. PRI_REVERSE_CHARGE_LIB=""
  21735. fi
  21736. PBX_PRI_REVERSE_CHARGE=1
  21737. cat >>confdefs.h <<_ACEOF
  21738. #define HAVE_PRI_REVERSE_CHARGE 1
  21739. _ACEOF
  21740. fi
  21741. fi
  21742. fi
  21743. # ------------------------------------^
  21744. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  21745. pbxlibdir=""
  21746. # if --with-RESAMPLE=DIR has been specified, use it.
  21747. if test "x${RESAMPLE_DIR}" != "x"; then
  21748. if test -d ${RESAMPLE_DIR}/lib; then
  21749. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  21750. else
  21751. pbxlibdir="-L${RESAMPLE_DIR}"
  21752. fi
  21753. fi
  21754. pbxfuncname="resample_open"
  21755. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21756. AST_RESAMPLE_FOUND=yes
  21757. else
  21758. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21759. CFLAGS="${CFLAGS} "
  21760. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  21761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
  21762. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  21763. if eval \${$as_ac_Lib+:} false; then :
  21764. $as_echo_n "(cached) " >&6
  21765. else
  21766. ac_check_lib_save_LIBS=$LIBS
  21767. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  21768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21769. /* end confdefs.h. */
  21770. /* Override any GCC internal prototype to avoid an error.
  21771. Use char because int might match the return type of a GCC
  21772. builtin and then its argument prototype would still apply. */
  21773. #ifdef __cplusplus
  21774. extern "C"
  21775. #endif
  21776. char ${pbxfuncname} ();
  21777. int
  21778. main ()
  21779. {
  21780. return ${pbxfuncname} ();
  21781. ;
  21782. return 0;
  21783. }
  21784. _ACEOF
  21785. if ac_fn_c_try_link "$LINENO"; then :
  21786. eval "$as_ac_Lib=yes"
  21787. else
  21788. eval "$as_ac_Lib=no"
  21789. fi
  21790. rm -f core conftest.err conftest.$ac_objext \
  21791. conftest$ac_exeext conftest.$ac_ext
  21792. LIBS=$ac_check_lib_save_LIBS
  21793. fi
  21794. eval ac_res=\$$as_ac_Lib
  21795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21796. $as_echo "$ac_res" >&6; }
  21797. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21798. AST_RESAMPLE_FOUND=yes
  21799. else
  21800. AST_RESAMPLE_FOUND=no
  21801. fi
  21802. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21803. fi
  21804. # now check for the header.
  21805. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  21806. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  21807. # if --with-RESAMPLE=DIR has been specified, use it.
  21808. if test "x${RESAMPLE_DIR}" != "x"; then
  21809. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  21810. fi
  21811. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  21812. if test "xlibresample.h" = "x" ; then # no header, assume found
  21813. RESAMPLE_HEADER_FOUND="1"
  21814. else # check for the header
  21815. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21816. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  21817. ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  21818. if test "x$ac_cv_header_libresample_h" = xyes; then :
  21819. RESAMPLE_HEADER_FOUND=1
  21820. else
  21821. RESAMPLE_HEADER_FOUND=0
  21822. fi
  21823. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21824. fi
  21825. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  21826. RESAMPLE_LIB=""
  21827. RESAMPLE_INCLUDE=""
  21828. else
  21829. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21830. RESAMPLE_LIB=""
  21831. fi
  21832. PBX_RESAMPLE=1
  21833. cat >>confdefs.h <<_ACEOF
  21834. #define HAVE_RESAMPLE 1
  21835. _ACEOF
  21836. fi
  21837. fi
  21838. fi
  21839. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21840. if test "xminimum version of SpanDSP" != "x"; then
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  21842. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  21843. else
  21844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
  21845. #if SPANDSP_RELEASE_DATE < 20080516
  21846. #error \"spandsp 0.0.5 or greater is required\"
  21847. #endif
  21848. \" compiles using spandsp/version.h" >&5
  21849. $as_echo_n "checking if \"
  21850. #if SPANDSP_RELEASE_DATE < 20080516
  21851. #error \"spandsp 0.0.5 or greater is required\"
  21852. #endif
  21853. \" compiles using spandsp/version.h... " >&6; }
  21854. fi
  21855. saved_cppflags="${CPPFLAGS}"
  21856. if test "x${SPANDSP_DIR}" != "x"; then
  21857. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  21858. fi
  21859. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  21860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21861. /* end confdefs.h. */
  21862. #include <spandsp/version.h>
  21863. int
  21864. main ()
  21865. {
  21866. #if SPANDSP_RELEASE_DATE < 20080516
  21867. #error "spandsp 0.0.5 or greater is required"
  21868. #endif
  21869. ;
  21870. ;
  21871. return 0;
  21872. }
  21873. _ACEOF
  21874. if ac_fn_c_try_compile "$LINENO"; then :
  21875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21876. $as_echo "yes" >&6; }
  21877. PBX_SPANDSP=1
  21878. $as_echo "#define HAVE_SPANDSP 1" >>confdefs.h
  21879. else
  21880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21881. $as_echo "no" >&6; }
  21882. fi
  21883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21884. CPPFLAGS="${saved_cppflags}"
  21885. fi
  21886. if test "x${PBX_SPANDSP}" = "x1" ; then
  21887. # We found the correct version in the header, now let's make sure it links
  21888. # properly, and that libtiff is available
  21889. PBX_SPANDSP=0
  21890. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21891. pbxlibdir=""
  21892. # if --with-SPANDSP=DIR has been specified, use it.
  21893. if test "x${SPANDSP_DIR}" != "x"; then
  21894. if test -d ${SPANDSP_DIR}/lib; then
  21895. pbxlibdir="-L${SPANDSP_DIR}/lib"
  21896. else
  21897. pbxlibdir="-L${SPANDSP_DIR}"
  21898. fi
  21899. fi
  21900. pbxfuncname="span_set_message_handler"
  21901. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21902. AST_SPANDSP_FOUND=yes
  21903. else
  21904. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21905. CFLAGS="${CFLAGS} "
  21906. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  21908. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  21909. if eval \${$as_ac_Lib+:} false; then :
  21910. $as_echo_n "(cached) " >&6
  21911. else
  21912. ac_check_lib_save_LIBS=$LIBS
  21913. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  21914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21915. /* end confdefs.h. */
  21916. /* Override any GCC internal prototype to avoid an error.
  21917. Use char because int might match the return type of a GCC
  21918. builtin and then its argument prototype would still apply. */
  21919. #ifdef __cplusplus
  21920. extern "C"
  21921. #endif
  21922. char ${pbxfuncname} ();
  21923. int
  21924. main ()
  21925. {
  21926. return ${pbxfuncname} ();
  21927. ;
  21928. return 0;
  21929. }
  21930. _ACEOF
  21931. if ac_fn_c_try_link "$LINENO"; then :
  21932. eval "$as_ac_Lib=yes"
  21933. else
  21934. eval "$as_ac_Lib=no"
  21935. fi
  21936. rm -f core conftest.err conftest.$ac_objext \
  21937. conftest$ac_exeext conftest.$ac_ext
  21938. LIBS=$ac_check_lib_save_LIBS
  21939. fi
  21940. eval ac_res=\$$as_ac_Lib
  21941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21942. $as_echo "$ac_res" >&6; }
  21943. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21944. AST_SPANDSP_FOUND=yes
  21945. else
  21946. AST_SPANDSP_FOUND=no
  21947. fi
  21948. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21949. fi
  21950. # now check for the header.
  21951. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  21952. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  21953. # if --with-SPANDSP=DIR has been specified, use it.
  21954. if test "x${SPANDSP_DIR}" != "x"; then
  21955. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  21956. fi
  21957. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  21958. if test "xspandsp.h" = "x" ; then # no header, assume found
  21959. SPANDSP_HEADER_FOUND="1"
  21960. else # check for the header
  21961. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21962. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  21963. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  21964. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  21965. SPANDSP_HEADER_FOUND=1
  21966. else
  21967. SPANDSP_HEADER_FOUND=0
  21968. fi
  21969. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21970. fi
  21971. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  21972. SPANDSP_LIB=""
  21973. SPANDSP_INCLUDE=""
  21974. else
  21975. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21976. SPANDSP_LIB=""
  21977. fi
  21978. PBX_SPANDSP=1
  21979. cat >>confdefs.h <<_ACEOF
  21980. #define HAVE_SPANDSP 1
  21981. _ACEOF
  21982. fi
  21983. fi
  21984. fi
  21985. fi
  21986. if test "x${PBX_SPANDSP}" = "x1" ; then
  21987. # We also need t38_terminal_init()
  21988. PBX_SPANDSP=0
  21989. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21990. pbxlibdir=""
  21991. # if --with-SPANDSP=DIR has been specified, use it.
  21992. if test "x${SPANDSP_DIR}" != "x"; then
  21993. if test -d ${SPANDSP_DIR}/lib; then
  21994. pbxlibdir="-L${SPANDSP_DIR}/lib"
  21995. else
  21996. pbxlibdir="-L${SPANDSP_DIR}"
  21997. fi
  21998. fi
  21999. pbxfuncname="t38_terminal_init"
  22000. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22001. AST_SPANDSP_FOUND=yes
  22002. else
  22003. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22004. CFLAGS="${CFLAGS} "
  22005. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  22006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  22007. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  22008. if eval \${$as_ac_Lib+:} false; then :
  22009. $as_echo_n "(cached) " >&6
  22010. else
  22011. ac_check_lib_save_LIBS=$LIBS
  22012. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  22013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22014. /* end confdefs.h. */
  22015. /* Override any GCC internal prototype to avoid an error.
  22016. Use char because int might match the return type of a GCC
  22017. builtin and then its argument prototype would still apply. */
  22018. #ifdef __cplusplus
  22019. extern "C"
  22020. #endif
  22021. char ${pbxfuncname} ();
  22022. int
  22023. main ()
  22024. {
  22025. return ${pbxfuncname} ();
  22026. ;
  22027. return 0;
  22028. }
  22029. _ACEOF
  22030. if ac_fn_c_try_link "$LINENO"; then :
  22031. eval "$as_ac_Lib=yes"
  22032. else
  22033. eval "$as_ac_Lib=no"
  22034. fi
  22035. rm -f core conftest.err conftest.$ac_objext \
  22036. conftest$ac_exeext conftest.$ac_ext
  22037. LIBS=$ac_check_lib_save_LIBS
  22038. fi
  22039. eval ac_res=\$$as_ac_Lib
  22040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22041. $as_echo "$ac_res" >&6; }
  22042. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22043. AST_SPANDSP_FOUND=yes
  22044. else
  22045. AST_SPANDSP_FOUND=no
  22046. fi
  22047. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22048. fi
  22049. # now check for the header.
  22050. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  22051. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  22052. # if --with-SPANDSP=DIR has been specified, use it.
  22053. if test "x${SPANDSP_DIR}" != "x"; then
  22054. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  22055. fi
  22056. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  22057. if test "xspandsp.h" = "x" ; then # no header, assume found
  22058. SPANDSP_HEADER_FOUND="1"
  22059. else # check for the header
  22060. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22061. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  22062. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  22063. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  22064. SPANDSP_HEADER_FOUND=1
  22065. else
  22066. SPANDSP_HEADER_FOUND=0
  22067. fi
  22068. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22069. fi
  22070. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  22071. SPANDSP_LIB=""
  22072. SPANDSP_INCLUDE=""
  22073. else
  22074. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22075. SPANDSP_LIB=""
  22076. fi
  22077. PBX_SPANDSP=1
  22078. cat >>confdefs.h <<_ACEOF
  22079. #define HAVE_SPANDSP 1
  22080. _ACEOF
  22081. fi
  22082. fi
  22083. fi
  22084. fi
  22085. # Check for libss7 v1.0 branch compatible version.
  22086. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  22087. pbxlibdir=""
  22088. # if --with-SS7=DIR has been specified, use it.
  22089. if test "x${SS7_DIR}" != "x"; then
  22090. if test -d ${SS7_DIR}/lib; then
  22091. pbxlibdir="-L${SS7_DIR}/lib"
  22092. else
  22093. pbxlibdir="-L${SS7_DIR}"
  22094. fi
  22095. fi
  22096. pbxfuncname="ss7_set_adjpc"
  22097. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22098. AST_SS7_FOUND=yes
  22099. else
  22100. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22101. CFLAGS="${CFLAGS} "
  22102. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  22103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
  22104. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  22105. if eval \${$as_ac_Lib+:} false; then :
  22106. $as_echo_n "(cached) " >&6
  22107. else
  22108. ac_check_lib_save_LIBS=$LIBS
  22109. LIBS="-lss7 ${pbxlibdir} $LIBS"
  22110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22111. /* end confdefs.h. */
  22112. /* Override any GCC internal prototype to avoid an error.
  22113. Use char because int might match the return type of a GCC
  22114. builtin and then its argument prototype would still apply. */
  22115. #ifdef __cplusplus
  22116. extern "C"
  22117. #endif
  22118. char ${pbxfuncname} ();
  22119. int
  22120. main ()
  22121. {
  22122. return ${pbxfuncname} ();
  22123. ;
  22124. return 0;
  22125. }
  22126. _ACEOF
  22127. if ac_fn_c_try_link "$LINENO"; then :
  22128. eval "$as_ac_Lib=yes"
  22129. else
  22130. eval "$as_ac_Lib=no"
  22131. fi
  22132. rm -f core conftest.err conftest.$ac_objext \
  22133. conftest$ac_exeext conftest.$ac_ext
  22134. LIBS=$ac_check_lib_save_LIBS
  22135. fi
  22136. eval ac_res=\$$as_ac_Lib
  22137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22138. $as_echo "$ac_res" >&6; }
  22139. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22140. AST_SS7_FOUND=yes
  22141. else
  22142. AST_SS7_FOUND=no
  22143. fi
  22144. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22145. fi
  22146. # now check for the header.
  22147. if test "${AST_SS7_FOUND}" = "yes"; then
  22148. SS7_LIB="${pbxlibdir} -lss7 "
  22149. # if --with-SS7=DIR has been specified, use it.
  22150. if test "x${SS7_DIR}" != "x"; then
  22151. SS7_INCLUDE="-I${SS7_DIR}/include"
  22152. fi
  22153. SS7_INCLUDE="${SS7_INCLUDE} "
  22154. if test "xlibss7.h" = "x" ; then # no header, assume found
  22155. SS7_HEADER_FOUND="1"
  22156. else # check for the header
  22157. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22158. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  22159. ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  22160. if test "x$ac_cv_header_libss7_h" = xyes; then :
  22161. SS7_HEADER_FOUND=1
  22162. else
  22163. SS7_HEADER_FOUND=0
  22164. fi
  22165. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22166. fi
  22167. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  22168. SS7_LIB=""
  22169. SS7_INCLUDE=""
  22170. else
  22171. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22172. SS7_LIB=""
  22173. fi
  22174. PBX_SS7=1
  22175. cat >>confdefs.h <<_ACEOF
  22176. #define HAVE_SS7 1
  22177. _ACEOF
  22178. fi
  22179. fi
  22180. fi
  22181. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  22182. pbxlibdir=""
  22183. # if --with-OPENR2=DIR has been specified, use it.
  22184. if test "x${OPENR2_DIR}" != "x"; then
  22185. if test -d ${OPENR2_DIR}/lib; then
  22186. pbxlibdir="-L${OPENR2_DIR}/lib"
  22187. else
  22188. pbxlibdir="-L${OPENR2_DIR}"
  22189. fi
  22190. fi
  22191. pbxfuncname="openr2_chan_new"
  22192. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22193. AST_OPENR2_FOUND=yes
  22194. else
  22195. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22196. CFLAGS="${CFLAGS} "
  22197. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  22198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
  22199. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  22200. if eval \${$as_ac_Lib+:} false; then :
  22201. $as_echo_n "(cached) " >&6
  22202. else
  22203. ac_check_lib_save_LIBS=$LIBS
  22204. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  22205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22206. /* end confdefs.h. */
  22207. /* Override any GCC internal prototype to avoid an error.
  22208. Use char because int might match the return type of a GCC
  22209. builtin and then its argument prototype would still apply. */
  22210. #ifdef __cplusplus
  22211. extern "C"
  22212. #endif
  22213. char ${pbxfuncname} ();
  22214. int
  22215. main ()
  22216. {
  22217. return ${pbxfuncname} ();
  22218. ;
  22219. return 0;
  22220. }
  22221. _ACEOF
  22222. if ac_fn_c_try_link "$LINENO"; then :
  22223. eval "$as_ac_Lib=yes"
  22224. else
  22225. eval "$as_ac_Lib=no"
  22226. fi
  22227. rm -f core conftest.err conftest.$ac_objext \
  22228. conftest$ac_exeext conftest.$ac_ext
  22229. LIBS=$ac_check_lib_save_LIBS
  22230. fi
  22231. eval ac_res=\$$as_ac_Lib
  22232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22233. $as_echo "$ac_res" >&6; }
  22234. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22235. AST_OPENR2_FOUND=yes
  22236. else
  22237. AST_OPENR2_FOUND=no
  22238. fi
  22239. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22240. fi
  22241. # now check for the header.
  22242. if test "${AST_OPENR2_FOUND}" = "yes"; then
  22243. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  22244. # if --with-OPENR2=DIR has been specified, use it.
  22245. if test "x${OPENR2_DIR}" != "x"; then
  22246. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  22247. fi
  22248. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  22249. if test "xopenr2.h" = "x" ; then # no header, assume found
  22250. OPENR2_HEADER_FOUND="1"
  22251. else # check for the header
  22252. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22253. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  22254. ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  22255. if test "x$ac_cv_header_openr2_h" = xyes; then :
  22256. OPENR2_HEADER_FOUND=1
  22257. else
  22258. OPENR2_HEADER_FOUND=0
  22259. fi
  22260. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22261. fi
  22262. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  22263. OPENR2_LIB=""
  22264. OPENR2_INCLUDE=""
  22265. else
  22266. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22267. OPENR2_LIB=""
  22268. fi
  22269. PBX_OPENR2=1
  22270. cat >>confdefs.h <<_ACEOF
  22271. #define HAVE_OPENR2 1
  22272. _ACEOF
  22273. fi
  22274. fi
  22275. fi
  22276. if test "${USE_PWLIB}" != "no"; then
  22277. if test -n "${PWLIB_DIR}"; then
  22278. PWLIBDIR="${PWLIB_DIR}"
  22279. fi
  22280. PWLIB_INCDIR=
  22281. PWLIB_LIBDIR=
  22282. ac_ext=cpp
  22283. ac_cpp='$CXXCPP $CPPFLAGS'
  22284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22287. if test "${PWLIBDIR:-unset}" != "unset" ; then
  22288. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  22289. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  22290. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22291. HAS_PWLIB=1
  22292. fi
  22293. fi
  22294. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  22295. if test "${OPENH323DIR:-unset}" != "unset"; then
  22296. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  22297. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  22298. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22299. HAS_PWLIB=1
  22300. fi
  22301. fi
  22302. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22303. PWLIBDIR="${OPENH323DIR}/../pwlib"
  22304. else
  22305. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  22306. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  22307. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22308. HAS_PWLIB=1
  22309. fi
  22310. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22311. PWLIBDIR="${HOME}/pwlib"
  22312. else
  22313. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  22314. if test "x$ac_cv_header__usr_local_include_ptlib_h" = xyes; then :
  22315. HAS_PWLIB=1
  22316. fi
  22317. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22318. # Extract the first word of "ptlib-config", so it can be a program name with args.
  22319. set dummy ptlib-config; ac_word=$2
  22320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22321. $as_echo_n "checking for $ac_word... " >&6; }
  22322. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  22323. $as_echo_n "(cached) " >&6
  22324. else
  22325. case $PTLIB_CONFIG in
  22326. [\\/]* | ?:[\\/]*)
  22327. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  22328. ;;
  22329. *)
  22330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22331. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  22332. do
  22333. IFS=$as_save_IFS
  22334. test -z "$as_dir" && as_dir=.
  22335. for ac_exec_ext in '' $ac_executable_extensions; do
  22336. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22337. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22339. break 2
  22340. fi
  22341. done
  22342. done
  22343. IFS=$as_save_IFS
  22344. ;;
  22345. esac
  22346. fi
  22347. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  22348. if test -n "$PTLIB_CONFIG"; then
  22349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  22350. $as_echo "$PTLIB_CONFIG" >&6; }
  22351. else
  22352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22353. $as_echo "no" >&6; }
  22354. fi
  22355. PWLIB_INCDIR="/usr/local/include"
  22356. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  22357. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22358. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  22359. fi
  22360. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22361. if test "x$LIB64" != "x"; then
  22362. PWLIB_LIBDIR="/usr/local/lib64"
  22363. else
  22364. PWLIB_LIBDIR="/usr/local/lib"
  22365. fi
  22366. fi
  22367. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  22368. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  22369. else
  22370. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  22371. if test "x$ac_cv_header__usr_include_ptlib_h" = xyes; then :
  22372. HAS_PWLIB=1
  22373. fi
  22374. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22375. # Extract the first word of "ptlib-config", so it can be a program name with args.
  22376. set dummy ptlib-config; ac_word=$2
  22377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22378. $as_echo_n "checking for $ac_word... " >&6; }
  22379. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  22380. $as_echo_n "(cached) " >&6
  22381. else
  22382. case $PTLIB_CONFIG in
  22383. [\\/]* | ?:[\\/]*)
  22384. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  22385. ;;
  22386. *)
  22387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22388. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  22389. do
  22390. IFS=$as_save_IFS
  22391. test -z "$as_dir" && as_dir=.
  22392. for ac_exec_ext in '' $ac_executable_extensions; do
  22393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22394. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22396. break 2
  22397. fi
  22398. done
  22399. done
  22400. IFS=$as_save_IFS
  22401. ;;
  22402. esac
  22403. fi
  22404. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  22405. if test -n "$PTLIB_CONFIG"; then
  22406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  22407. $as_echo "$PTLIB_CONFIG" >&6; }
  22408. else
  22409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22410. $as_echo "no" >&6; }
  22411. fi
  22412. PWLIB_INCDIR="/usr/include"
  22413. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  22414. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22415. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  22416. fi
  22417. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22418. if test "x$LIB64" != "x"; then
  22419. PWLIB_LIBDIR="/usr/lib64"
  22420. else
  22421. PWLIB_LIBDIR="/usr/lib"
  22422. fi
  22423. fi
  22424. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  22425. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  22426. fi
  22427. fi
  22428. fi
  22429. fi
  22430. fi
  22431. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  22432. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  22433. # exit
  22434. #fi
  22435. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22436. if test "${PWLIBDIR:-unset}" = "unset" ; then
  22437. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  22438. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  22439. else
  22440. echo "Cannot find ptlib-config - please install and try again"
  22441. exit
  22442. fi
  22443. fi
  22444. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  22445. PWLIBDIR="/usr/share/pwlib"
  22446. PWLIB_INCDIR="/usr/include"
  22447. if test "x$LIB64" != "x"; then
  22448. PWLIB_LIBDIR="/usr/lib64"
  22449. else
  22450. PWLIB_LIBDIR="/usr/lib"
  22451. fi
  22452. fi
  22453. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  22454. PWLIBDIR="/usr/local/share/pwlib"
  22455. PWLIB_INCDIR="/usr/local/include"
  22456. if test "x$LIB64" != "x"; then
  22457. PWLIB_LIBDIR="/usr/local/lib64"
  22458. else
  22459. PWLIB_LIBDIR="/usr/local/lib"
  22460. fi
  22461. fi
  22462. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  22463. PWLIB_INCDIR="${PWLIBDIR}/include"
  22464. fi
  22465. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22466. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  22467. fi
  22468. fi
  22469. ac_ext=c
  22470. ac_cpp='$CPP $CPPFLAGS'
  22471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22474. if test "xP[WT]LIB_VERSION" != "x"; then
  22475. VNAME="P[WT]LIB_VERSION"
  22476. else
  22477. VNAME="PWLIB_VERSION"
  22478. fi
  22479. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22480. PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  22481. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  22482. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  22483. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  22484. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  22485. PWLIB_REQ=$((1*10000+9*100+2))
  22486. if test "x" = "x"; then
  22487. PWLIB_MAX=9999999
  22488. else
  22489. PWLIB_MAX=$((*10000+*100+))
  22490. fi
  22491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  22492. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  22493. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  22494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22495. $as_echo "no" >&6; }
  22496. unset HAS_PWLIB
  22497. else
  22498. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  22499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22500. $as_echo "no" >&6; }
  22501. unset HAS_PWLIB
  22502. else
  22503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22504. $as_echo "yes" >&6; }
  22505. fi
  22506. fi
  22507. fi
  22508. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22509. PWLIB_OSTYPE=
  22510. case "$host_os" in
  22511. linux*) PWLIB_OSTYPE=linux ;
  22512. ;;
  22513. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  22514. ;;
  22515. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  22516. ENDLDLIBS="-lossaudio" ;
  22517. ;;
  22518. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  22519. ENDLDLIBS="-lossaudio" ;
  22520. ;;
  22521. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  22522. ;;
  22523. darwin* ) PWLIB_OSTYPE=Darwin ;
  22524. ;;
  22525. beos*) PWLIB_OSTYPE=beos ;
  22526. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  22527. ;;
  22528. cygwin*) PWLIB_OSTYPE=cygwin ;
  22529. ;;
  22530. mingw*) PWLIB_OSTYPE=mingw ;
  22531. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  22532. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  22533. ;;
  22534. * ) PWLIB_OSTYPE="$host_os" ;
  22535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  22536. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  22537. ;;
  22538. esac
  22539. PWLIB_MACHTYPE=
  22540. case "$host_cpu" in
  22541. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  22542. ;;
  22543. x86_64) PWLIB_MACHTYPE=x86_64 ;
  22544. P_64BIT=1 ;
  22545. LIB64=1 ;
  22546. ;;
  22547. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  22548. P_64BIT=1 ;
  22549. ;;
  22550. sparc ) PWLIB_MACHTYPE=sparc ;
  22551. ;;
  22552. powerpc ) PWLIB_MACHTYPE=ppc ;
  22553. ;;
  22554. ppc ) PWLIB_MACHTYPE=ppc ;
  22555. ;;
  22556. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  22557. P_64BIT=1 ;
  22558. LIB64=1 ;
  22559. ;;
  22560. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  22561. P_64BIT=1 ;
  22562. LIB64=1 ;
  22563. ;;
  22564. ia64) PWLIB_MACHTYPE=ia64 ;
  22565. P_64BIT=1 ;
  22566. ;;
  22567. s390x) PWLIB_MACHTYPE=s390x ;
  22568. P_64BIT=1 ;
  22569. LIB64=1 ;
  22570. ;;
  22571. s390) PWLIB_MACHTYPE=s390 ;
  22572. ;;
  22573. * ) PWLIB_MACHTYPE="$host_cpu";
  22574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  22575. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  22576. esac
  22577. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  22578. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  22579. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  22581. $as_echo_n "checking PWLib installation validity... " >&6; }
  22582. saved_cppflags="${CPPFLAGS}"
  22583. saved_libs="${LIBS}"
  22584. if test "${PWLIB_LIB:-unset}" != "unset"; then
  22585. LIBS="${LIBS} ${PWLIB_LIB} "
  22586. else
  22587. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  22588. fi
  22589. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  22590. ac_ext=cpp
  22591. ac_cpp='$CXXCPP $CPPFLAGS'
  22592. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22593. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22594. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22596. /* end confdefs.h. */
  22597. #include "ptlib.h"
  22598. int
  22599. main ()
  22600. {
  22601. int q = (int) PTime::IsDaylightSavings();
  22602. ;
  22603. return 0;
  22604. }
  22605. _ACEOF
  22606. if ac_fn_cxx_try_link "$LINENO"; then :
  22607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22608. $as_echo "yes" >&6; }
  22609. ac_cv_lib_PWLIB="yes"
  22610. else
  22611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22612. $as_echo "no" >&6; }
  22613. ac_cv_lib_PWLIB="no"
  22614. fi
  22615. rm -f core conftest.err conftest.$ac_objext \
  22616. conftest$ac_exeext conftest.$ac_ext
  22617. ac_ext=c
  22618. ac_cpp='$CPP $CPPFLAGS'
  22619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22622. LIBS="${saved_libs}"
  22623. CPPFLAGS="${saved_cppflags}"
  22624. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  22625. if test "${PWLIB_LIB:-undef}" = "undef"; then
  22626. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  22627. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  22628. else
  22629. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  22630. fi
  22631. fi
  22632. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  22633. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  22634. fi
  22635. PBX_PWLIB=1
  22636. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  22637. fi
  22638. fi
  22639. fi
  22640. fi
  22641. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  22642. if test -n "${OPENH323_DIR}"; then
  22643. OPENH323DIR="${OPENH323_DIR}"
  22644. fi
  22645. OPENH323_INCDIR=
  22646. OPENH323_LIBDIR=
  22647. ac_ext=cpp
  22648. ac_cpp='$CXXCPP $CPPFLAGS'
  22649. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22650. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22651. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22652. if test "${OPENH323DIR:-unset}" != "unset" ; then
  22653. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  22654. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  22655. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22656. HAS_OPENH323=1
  22657. fi
  22658. fi
  22659. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  22660. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  22661. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  22662. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22663. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  22664. fi
  22665. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22666. OPENH323DIR="${PWLIBDIR}/../openh323"
  22667. saved_cppflags="${CPPFLAGS}"
  22668. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  22669. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  22670. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  22671. "
  22672. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22673. else
  22674. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  22675. fi
  22676. CPPFLAGS="${saved_cppflags}"
  22677. else
  22678. saved_cppflags="${CPPFLAGS}"
  22679. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  22680. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  22681. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  22682. "
  22683. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22684. HAS_OPENH323=1
  22685. fi
  22686. CPPFLAGS="${saved_cppflags}"
  22687. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22688. OPENH323DIR="${HOME}/openh323"
  22689. else
  22690. saved_cppflags="${CPPFLAGS}"
  22691. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  22692. ac_fn_cxx_check_header_compile "$LINENO" "/usr/local/include/openh323/h323.h" "ac_cv_header__usr_local_include_openh323_h323_h" "#include <ptlib.h>
  22693. "
  22694. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = xyes; then :
  22695. HAS_OPENH323=1
  22696. fi
  22697. CPPFLAGS="${saved_cppflags}"
  22698. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22699. OPENH323DIR="/usr/local/share/openh323"
  22700. OPENH323_INCDIR="/usr/local/include/openh323"
  22701. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  22702. OPENH323_LIBDIR="/usr/local/lib64"
  22703. else
  22704. OPENH323_LIBDIR="/usr/local/lib"
  22705. fi
  22706. else
  22707. saved_cppflags="${CPPFLAGS}"
  22708. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  22709. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  22710. "
  22711. if test "x$ac_cv_header__usr_include_openh323_h323_h" = xyes; then :
  22712. HAS_OPENH323=1
  22713. fi
  22714. CPPFLAGS="${saved_cppflags}"
  22715. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22716. OPENH323DIR="/usr/share/openh323"
  22717. OPENH323_INCDIR="/usr/include/openh323"
  22718. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  22719. OPENH323_LIBDIR="/usr/lib64"
  22720. else
  22721. OPENH323_LIBDIR="/usr/lib"
  22722. fi
  22723. fi
  22724. fi
  22725. fi
  22726. fi
  22727. fi
  22728. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22729. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  22730. OPENH323_INCDIR="${OPENH323DIR}/include"
  22731. fi
  22732. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  22733. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  22734. fi
  22735. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  22736. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  22737. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  22738. fi
  22739. ac_ext=c
  22740. ac_cpp='$CPP $CPPFLAGS'
  22741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22744. if test "x" != "x"; then
  22745. VNAME=""
  22746. else
  22747. VNAME="OPENH323_VERSION"
  22748. fi
  22749. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22750. OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  22751. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  22752. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  22753. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  22754. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  22755. OPENH323_REQ=$((1*10000+17*100+3))
  22756. if test "x0" = "x"; then
  22757. OPENH323_MAX=9999999
  22758. else
  22759. OPENH323_MAX=$((1*10000+19*100+0))
  22760. fi
  22761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  22762. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  22763. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  22764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22765. $as_echo "no" >&6; }
  22766. unset HAS_OPENH323
  22767. else
  22768. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  22769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22770. $as_echo "no" >&6; }
  22771. unset HAS_OPENH323
  22772. else
  22773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22774. $as_echo "yes" >&6; }
  22775. fi
  22776. fi
  22777. fi
  22778. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  22780. $as_echo_n "checking OpenH323 build option... " >&6; }
  22781. OPENH323_SUFFIX=
  22782. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  22783. for pfx in $prefixes; do
  22784. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  22785. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  22786. if test -z "$files"; then
  22787. # check the default location
  22788. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  22789. fi
  22790. libfile=
  22791. if test -n "$files"; then
  22792. for f in $files; do
  22793. if test -f $f -a ! -L $f; then
  22794. libfile=`basename $f`
  22795. break;
  22796. fi
  22797. done
  22798. fi
  22799. if test -n "$libfile"; then
  22800. OPENH323_PREFIX=$pfx
  22801. break;
  22802. fi
  22803. done
  22804. if test "${libfile:-unset}" != "unset"; then
  22805. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  22806. fi
  22807. case "${OPENH323_SUFFIX}" in
  22808. n)
  22809. OPENH323_BUILD="notrace";;
  22810. r)
  22811. OPENH323_BUILD="opt";;
  22812. d)
  22813. OPENH323_BUILD="debug";;
  22814. *)
  22815. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  22816. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  22817. if test "x$notrace" = "x"; then
  22818. notrace="0"
  22819. fi
  22820. if test "$notrace" -ne 0; then
  22821. OPENH323_BUILD="notrace"
  22822. else
  22823. OPENH323_BUILD="opt"
  22824. fi
  22825. OPENH323_LIB="-l${OPENH323_PREFIX}"
  22826. else
  22827. OPENH323_BUILD="notrace"
  22828. fi
  22829. ;;
  22830. esac
  22831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  22832. $as_echo "${OPENH323_BUILD}" >&6; }
  22833. fi
  22834. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  22835. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  22837. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  22838. saved_cppflags="${CPPFLAGS}"
  22839. saved_libs="${LIBS}"
  22840. if test "${OPENH323_LIB:-unset}" != "unset"; then
  22841. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  22842. else
  22843. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  22844. fi
  22845. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  22846. ac_ext=cpp
  22847. ac_cpp='$CXXCPP $CPPFLAGS'
  22848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22852. /* end confdefs.h. */
  22853. #include "ptlib.h"
  22854. #include "h323.h"
  22855. #include "h323ep.h"
  22856. int
  22857. main ()
  22858. {
  22859. H323EndPoint ep = H323EndPoint();
  22860. ;
  22861. return 0;
  22862. }
  22863. _ACEOF
  22864. if ac_fn_cxx_try_link "$LINENO"; then :
  22865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22866. $as_echo "yes" >&6; }
  22867. ac_cv_lib_OPENH323="yes"
  22868. else
  22869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22870. $as_echo "no" >&6; }
  22871. ac_cv_lib_OPENH323="no"
  22872. fi
  22873. rm -f core conftest.err conftest.$ac_objext \
  22874. conftest$ac_exeext conftest.$ac_ext
  22875. ac_ext=c
  22876. ac_cpp='$CPP $CPPFLAGS'
  22877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22880. LIBS="${saved_libs}"
  22881. CPPFLAGS="${saved_cppflags}"
  22882. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  22883. if test "${OPENH323_LIB:-undef}" = "undef"; then
  22884. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  22885. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  22886. else
  22887. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  22888. fi
  22889. fi
  22890. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  22891. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  22892. fi
  22893. PBX_OPENH323=1
  22894. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  22895. fi
  22896. fi
  22897. fi
  22898. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  22899. pbxlibdir=""
  22900. # if --with-LUA=DIR has been specified, use it.
  22901. if test "x${LUA_DIR}" != "x"; then
  22902. if test -d ${LUA_DIR}/lib; then
  22903. pbxlibdir="-L${LUA_DIR}/lib"
  22904. else
  22905. pbxlibdir="-L${LUA_DIR}"
  22906. fi
  22907. fi
  22908. pbxfuncname="luaL_newstate"
  22909. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22910. AST_LUA_FOUND=yes
  22911. else
  22912. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22913. CFLAGS="${CFLAGS} "
  22914. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.2_${pbxfuncname}" | $as_tr_sh`
  22915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.2" >&5
  22916. $as_echo_n "checking for ${pbxfuncname} in -llua5.2... " >&6; }
  22917. if eval \${$as_ac_Lib+:} false; then :
  22918. $as_echo_n "(cached) " >&6
  22919. else
  22920. ac_check_lib_save_LIBS=$LIBS
  22921. LIBS="-llua5.2 ${pbxlibdir} -lm $LIBS"
  22922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22923. /* end confdefs.h. */
  22924. /* Override any GCC internal prototype to avoid an error.
  22925. Use char because int might match the return type of a GCC
  22926. builtin and then its argument prototype would still apply. */
  22927. #ifdef __cplusplus
  22928. extern "C"
  22929. #endif
  22930. char ${pbxfuncname} ();
  22931. int
  22932. main ()
  22933. {
  22934. return ${pbxfuncname} ();
  22935. ;
  22936. return 0;
  22937. }
  22938. _ACEOF
  22939. if ac_fn_c_try_link "$LINENO"; then :
  22940. eval "$as_ac_Lib=yes"
  22941. else
  22942. eval "$as_ac_Lib=no"
  22943. fi
  22944. rm -f core conftest.err conftest.$ac_objext \
  22945. conftest$ac_exeext conftest.$ac_ext
  22946. LIBS=$ac_check_lib_save_LIBS
  22947. fi
  22948. eval ac_res=\$$as_ac_Lib
  22949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22950. $as_echo "$ac_res" >&6; }
  22951. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22952. AST_LUA_FOUND=yes
  22953. else
  22954. AST_LUA_FOUND=no
  22955. fi
  22956. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22957. fi
  22958. # now check for the header.
  22959. if test "${AST_LUA_FOUND}" = "yes"; then
  22960. LUA_LIB="${pbxlibdir} -llua5.2 -lm"
  22961. # if --with-LUA=DIR has been specified, use it.
  22962. if test "x${LUA_DIR}" != "x"; then
  22963. LUA_INCLUDE="-I${LUA_DIR}/include"
  22964. fi
  22965. LUA_INCLUDE="${LUA_INCLUDE} "
  22966. if test "xlua5.2/lua.h" = "x" ; then # no header, assume found
  22967. LUA_HEADER_FOUND="1"
  22968. else # check for the header
  22969. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22970. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  22971. ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
  22972. if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
  22973. LUA_HEADER_FOUND=1
  22974. else
  22975. LUA_HEADER_FOUND=0
  22976. fi
  22977. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22978. fi
  22979. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  22980. LUA_LIB=""
  22981. LUA_INCLUDE=""
  22982. else
  22983. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22984. LUA_LIB=""
  22985. fi
  22986. PBX_LUA=1
  22987. cat >>confdefs.h <<_ACEOF
  22988. #define HAVE_LUA 1
  22989. _ACEOF
  22990. fi
  22991. fi
  22992. fi
  22993. if test "x${PBX_LUA}" = "x1" ; then
  22994. if test x"${LUA_DIR}" = x; then
  22995. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.2"
  22996. else
  22997. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.2"
  22998. fi
  22999. fi
  23000. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  23001. pbxlibdir=""
  23002. # if --with-LUA=DIR has been specified, use it.
  23003. if test "x${LUA_DIR}" != "x"; then
  23004. if test -d ${LUA_DIR}/lib; then
  23005. pbxlibdir="-L${LUA_DIR}/lib"
  23006. else
  23007. pbxlibdir="-L${LUA_DIR}"
  23008. fi
  23009. fi
  23010. pbxfuncname="luaL_newstate"
  23011. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23012. AST_LUA_FOUND=yes
  23013. else
  23014. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23015. CFLAGS="${CFLAGS} "
  23016. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  23017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
  23018. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  23019. if eval \${$as_ac_Lib+:} false; then :
  23020. $as_echo_n "(cached) " >&6
  23021. else
  23022. ac_check_lib_save_LIBS=$LIBS
  23023. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  23024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23025. /* end confdefs.h. */
  23026. /* Override any GCC internal prototype to avoid an error.
  23027. Use char because int might match the return type of a GCC
  23028. builtin and then its argument prototype would still apply. */
  23029. #ifdef __cplusplus
  23030. extern "C"
  23031. #endif
  23032. char ${pbxfuncname} ();
  23033. int
  23034. main ()
  23035. {
  23036. return ${pbxfuncname} ();
  23037. ;
  23038. return 0;
  23039. }
  23040. _ACEOF
  23041. if ac_fn_c_try_link "$LINENO"; then :
  23042. eval "$as_ac_Lib=yes"
  23043. else
  23044. eval "$as_ac_Lib=no"
  23045. fi
  23046. rm -f core conftest.err conftest.$ac_objext \
  23047. conftest$ac_exeext conftest.$ac_ext
  23048. LIBS=$ac_check_lib_save_LIBS
  23049. fi
  23050. eval ac_res=\$$as_ac_Lib
  23051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23052. $as_echo "$ac_res" >&6; }
  23053. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23054. AST_LUA_FOUND=yes
  23055. else
  23056. AST_LUA_FOUND=no
  23057. fi
  23058. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23059. fi
  23060. # now check for the header.
  23061. if test "${AST_LUA_FOUND}" = "yes"; then
  23062. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  23063. # if --with-LUA=DIR has been specified, use it.
  23064. if test "x${LUA_DIR}" != "x"; then
  23065. LUA_INCLUDE="-I${LUA_DIR}/include"
  23066. fi
  23067. LUA_INCLUDE="${LUA_INCLUDE} "
  23068. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  23069. LUA_HEADER_FOUND="1"
  23070. else # check for the header
  23071. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23072. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  23073. ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  23074. if test "x$ac_cv_header_lua5_1_lua_h" = xyes; then :
  23075. LUA_HEADER_FOUND=1
  23076. else
  23077. LUA_HEADER_FOUND=0
  23078. fi
  23079. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23080. fi
  23081. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  23082. LUA_LIB=""
  23083. LUA_INCLUDE=""
  23084. else
  23085. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23086. LUA_LIB=""
  23087. fi
  23088. PBX_LUA=1
  23089. cat >>confdefs.h <<_ACEOF
  23090. #define HAVE_LUA 1
  23091. _ACEOF
  23092. fi
  23093. fi
  23094. fi
  23095. if test "x${PBX_LUA}" = "x1" ; then
  23096. if test x"${LUA_DIR}" = x; then
  23097. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  23098. else
  23099. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  23100. fi
  23101. fi
  23102. # Some distributions (like SuSE) remove the 5.1 suffix.
  23103. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  23104. pbxlibdir=""
  23105. # if --with-LUA=DIR has been specified, use it.
  23106. if test "x${LUA_DIR}" != "x"; then
  23107. if test -d ${LUA_DIR}/lib; then
  23108. pbxlibdir="-L${LUA_DIR}/lib"
  23109. else
  23110. pbxlibdir="-L${LUA_DIR}"
  23111. fi
  23112. fi
  23113. pbxfuncname="luaL_openlib"
  23114. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23115. AST_LUA_FOUND=yes
  23116. else
  23117. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23118. CFLAGS="${CFLAGS} "
  23119. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  23120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
  23121. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  23122. if eval \${$as_ac_Lib+:} false; then :
  23123. $as_echo_n "(cached) " >&6
  23124. else
  23125. ac_check_lib_save_LIBS=$LIBS
  23126. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  23127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23128. /* end confdefs.h. */
  23129. /* Override any GCC internal prototype to avoid an error.
  23130. Use char because int might match the return type of a GCC
  23131. builtin and then its argument prototype would still apply. */
  23132. #ifdef __cplusplus
  23133. extern "C"
  23134. #endif
  23135. char ${pbxfuncname} ();
  23136. int
  23137. main ()
  23138. {
  23139. return ${pbxfuncname} ();
  23140. ;
  23141. return 0;
  23142. }
  23143. _ACEOF
  23144. if ac_fn_c_try_link "$LINENO"; then :
  23145. eval "$as_ac_Lib=yes"
  23146. else
  23147. eval "$as_ac_Lib=no"
  23148. fi
  23149. rm -f core conftest.err conftest.$ac_objext \
  23150. conftest$ac_exeext conftest.$ac_ext
  23151. LIBS=$ac_check_lib_save_LIBS
  23152. fi
  23153. eval ac_res=\$$as_ac_Lib
  23154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23155. $as_echo "$ac_res" >&6; }
  23156. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23157. AST_LUA_FOUND=yes
  23158. else
  23159. AST_LUA_FOUND=no
  23160. fi
  23161. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23162. fi
  23163. # now check for the header.
  23164. if test "${AST_LUA_FOUND}" = "yes"; then
  23165. LUA_LIB="${pbxlibdir} -llua -lm"
  23166. # if --with-LUA=DIR has been specified, use it.
  23167. if test "x${LUA_DIR}" != "x"; then
  23168. LUA_INCLUDE="-I${LUA_DIR}/include"
  23169. fi
  23170. LUA_INCLUDE="${LUA_INCLUDE} "
  23171. if test "xlua.h" = "x" ; then # no header, assume found
  23172. LUA_HEADER_FOUND="1"
  23173. else # check for the header
  23174. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23175. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  23176. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  23177. if test "x$ac_cv_header_lua_h" = xyes; then :
  23178. LUA_HEADER_FOUND=1
  23179. else
  23180. LUA_HEADER_FOUND=0
  23181. fi
  23182. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23183. fi
  23184. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  23185. LUA_LIB=""
  23186. LUA_INCLUDE=""
  23187. else
  23188. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23189. LUA_LIB=""
  23190. fi
  23191. PBX_LUA=1
  23192. cat >>confdefs.h <<_ACEOF
  23193. #define HAVE_LUA 1
  23194. _ACEOF
  23195. fi
  23196. fi
  23197. fi
  23198. # Accept either RADIUS client library, their APIs are fully compatible,
  23199. # just different header filenames and different SONAMEs
  23200. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  23201. pbxlibdir=""
  23202. # if --with-RADIUS=DIR has been specified, use it.
  23203. if test "x${RADIUS_DIR}" != "x"; then
  23204. if test -d ${RADIUS_DIR}/lib; then
  23205. pbxlibdir="-L${RADIUS_DIR}/lib"
  23206. else
  23207. pbxlibdir="-L${RADIUS_DIR}"
  23208. fi
  23209. fi
  23210. pbxfuncname="rc_read_config"
  23211. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23212. AST_RADIUS_FOUND=yes
  23213. else
  23214. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23215. CFLAGS="${CFLAGS} "
  23216. as_ac_Lib=`$as_echo "ac_cv_lib_freeradius-client_${pbxfuncname}" | $as_tr_sh`
  23217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lfreeradius-client" >&5
  23218. $as_echo_n "checking for ${pbxfuncname} in -lfreeradius-client... " >&6; }
  23219. if eval \${$as_ac_Lib+:} false; then :
  23220. $as_echo_n "(cached) " >&6
  23221. else
  23222. ac_check_lib_save_LIBS=$LIBS
  23223. LIBS="-lfreeradius-client ${pbxlibdir} $LIBS"
  23224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23225. /* end confdefs.h. */
  23226. /* Override any GCC internal prototype to avoid an error.
  23227. Use char because int might match the return type of a GCC
  23228. builtin and then its argument prototype would still apply. */
  23229. #ifdef __cplusplus
  23230. extern "C"
  23231. #endif
  23232. char ${pbxfuncname} ();
  23233. int
  23234. main ()
  23235. {
  23236. return ${pbxfuncname} ();
  23237. ;
  23238. return 0;
  23239. }
  23240. _ACEOF
  23241. if ac_fn_c_try_link "$LINENO"; then :
  23242. eval "$as_ac_Lib=yes"
  23243. else
  23244. eval "$as_ac_Lib=no"
  23245. fi
  23246. rm -f core conftest.err conftest.$ac_objext \
  23247. conftest$ac_exeext conftest.$ac_ext
  23248. LIBS=$ac_check_lib_save_LIBS
  23249. fi
  23250. eval ac_res=\$$as_ac_Lib
  23251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23252. $as_echo "$ac_res" >&6; }
  23253. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23254. AST_RADIUS_FOUND=yes
  23255. else
  23256. AST_RADIUS_FOUND=no
  23257. fi
  23258. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23259. fi
  23260. # now check for the header.
  23261. if test "${AST_RADIUS_FOUND}" = "yes"; then
  23262. RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
  23263. # if --with-RADIUS=DIR has been specified, use it.
  23264. if test "x${RADIUS_DIR}" != "x"; then
  23265. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  23266. fi
  23267. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  23268. if test "xfreeradius-client.h" = "x" ; then # no header, assume found
  23269. RADIUS_HEADER_FOUND="1"
  23270. else # check for the header
  23271. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23272. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  23273. ac_fn_c_check_header_mongrel "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
  23274. if test "x$ac_cv_header_freeradius_client_h" = xyes; then :
  23275. RADIUS_HEADER_FOUND=1
  23276. else
  23277. RADIUS_HEADER_FOUND=0
  23278. fi
  23279. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23280. fi
  23281. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  23282. RADIUS_LIB=""
  23283. RADIUS_INCLUDE=""
  23284. else
  23285. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23286. RADIUS_LIB=""
  23287. fi
  23288. PBX_RADIUS=1
  23289. cat >>confdefs.h <<_ACEOF
  23290. #define HAVE_RADIUS 1
  23291. _ACEOF
  23292. fi
  23293. fi
  23294. fi
  23295. if test "x${PBX_RADIUS}" = "x1"; then
  23296. $as_echo "#define FREERADIUS_CLIENT /**/" >>confdefs.h
  23297. else
  23298. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  23299. pbxlibdir=""
  23300. # if --with-RADIUS=DIR has been specified, use it.
  23301. if test "x${RADIUS_DIR}" != "x"; then
  23302. if test -d ${RADIUS_DIR}/lib; then
  23303. pbxlibdir="-L${RADIUS_DIR}/lib"
  23304. else
  23305. pbxlibdir="-L${RADIUS_DIR}"
  23306. fi
  23307. fi
  23308. pbxfuncname="rc_read_config"
  23309. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23310. AST_RADIUS_FOUND=yes
  23311. else
  23312. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23313. CFLAGS="${CFLAGS} "
  23314. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  23315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  23316. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  23317. if eval \${$as_ac_Lib+:} false; then :
  23318. $as_echo_n "(cached) " >&6
  23319. else
  23320. ac_check_lib_save_LIBS=$LIBS
  23321. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  23322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23323. /* end confdefs.h. */
  23324. /* Override any GCC internal prototype to avoid an error.
  23325. Use char because int might match the return type of a GCC
  23326. builtin and then its argument prototype would still apply. */
  23327. #ifdef __cplusplus
  23328. extern "C"
  23329. #endif
  23330. char ${pbxfuncname} ();
  23331. int
  23332. main ()
  23333. {
  23334. return ${pbxfuncname} ();
  23335. ;
  23336. return 0;
  23337. }
  23338. _ACEOF
  23339. if ac_fn_c_try_link "$LINENO"; then :
  23340. eval "$as_ac_Lib=yes"
  23341. else
  23342. eval "$as_ac_Lib=no"
  23343. fi
  23344. rm -f core conftest.err conftest.$ac_objext \
  23345. conftest$ac_exeext conftest.$ac_ext
  23346. LIBS=$ac_check_lib_save_LIBS
  23347. fi
  23348. eval ac_res=\$$as_ac_Lib
  23349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23350. $as_echo "$ac_res" >&6; }
  23351. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23352. AST_RADIUS_FOUND=yes
  23353. else
  23354. AST_RADIUS_FOUND=no
  23355. fi
  23356. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23357. fi
  23358. # now check for the header.
  23359. if test "${AST_RADIUS_FOUND}" = "yes"; then
  23360. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  23361. # if --with-RADIUS=DIR has been specified, use it.
  23362. if test "x${RADIUS_DIR}" != "x"; then
  23363. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  23364. fi
  23365. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  23366. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  23367. RADIUS_HEADER_FOUND="1"
  23368. else # check for the header
  23369. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23370. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  23371. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  23372. if test "x$ac_cv_header_radiusclient_ng_h" = xyes; then :
  23373. RADIUS_HEADER_FOUND=1
  23374. else
  23375. RADIUS_HEADER_FOUND=0
  23376. fi
  23377. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23378. fi
  23379. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  23380. RADIUS_LIB=""
  23381. RADIUS_INCLUDE=""
  23382. else
  23383. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23384. RADIUS_LIB=""
  23385. fi
  23386. PBX_RADIUS=1
  23387. cat >>confdefs.h <<_ACEOF
  23388. #define HAVE_RADIUS 1
  23389. _ACEOF
  23390. fi
  23391. fi
  23392. fi
  23393. fi
  23394. if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
  23395. pbxlibdir=""
  23396. # if --with-COROSYNC=DIR has been specified, use it.
  23397. if test "x${COROSYNC_DIR}" != "x"; then
  23398. if test -d ${COROSYNC_DIR}/lib; then
  23399. pbxlibdir="-L${COROSYNC_DIR}/lib"
  23400. else
  23401. pbxlibdir="-L${COROSYNC_DIR}"
  23402. fi
  23403. fi
  23404. pbxfuncname="cpg_join"
  23405. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23406. AST_COROSYNC_FOUND=yes
  23407. else
  23408. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23409. CFLAGS="${CFLAGS} "
  23410. as_ac_Lib=`$as_echo "ac_cv_lib_cpg_${pbxfuncname}" | $as_tr_sh`
  23411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcpg" >&5
  23412. $as_echo_n "checking for ${pbxfuncname} in -lcpg... " >&6; }
  23413. if eval \${$as_ac_Lib+:} false; then :
  23414. $as_echo_n "(cached) " >&6
  23415. else
  23416. ac_check_lib_save_LIBS=$LIBS
  23417. LIBS="-lcpg ${pbxlibdir} -lcfg $LIBS"
  23418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23419. /* end confdefs.h. */
  23420. /* Override any GCC internal prototype to avoid an error.
  23421. Use char because int might match the return type of a GCC
  23422. builtin and then its argument prototype would still apply. */
  23423. #ifdef __cplusplus
  23424. extern "C"
  23425. #endif
  23426. char ${pbxfuncname} ();
  23427. int
  23428. main ()
  23429. {
  23430. return ${pbxfuncname} ();
  23431. ;
  23432. return 0;
  23433. }
  23434. _ACEOF
  23435. if ac_fn_c_try_link "$LINENO"; then :
  23436. eval "$as_ac_Lib=yes"
  23437. else
  23438. eval "$as_ac_Lib=no"
  23439. fi
  23440. rm -f core conftest.err conftest.$ac_objext \
  23441. conftest$ac_exeext conftest.$ac_ext
  23442. LIBS=$ac_check_lib_save_LIBS
  23443. fi
  23444. eval ac_res=\$$as_ac_Lib
  23445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23446. $as_echo "$ac_res" >&6; }
  23447. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23448. AST_COROSYNC_FOUND=yes
  23449. else
  23450. AST_COROSYNC_FOUND=no
  23451. fi
  23452. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23453. fi
  23454. # now check for the header.
  23455. if test "${AST_COROSYNC_FOUND}" = "yes"; then
  23456. COROSYNC_LIB="${pbxlibdir} -lcpg -lcfg"
  23457. # if --with-COROSYNC=DIR has been specified, use it.
  23458. if test "x${COROSYNC_DIR}" != "x"; then
  23459. COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
  23460. fi
  23461. COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
  23462. if test "xcorosync/cpg.h" = "x" ; then # no header, assume found
  23463. COROSYNC_HEADER_FOUND="1"
  23464. else # check for the header
  23465. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23466. CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
  23467. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
  23468. if test "x$ac_cv_header_corosync_cpg_h" = xyes; then :
  23469. COROSYNC_HEADER_FOUND=1
  23470. else
  23471. COROSYNC_HEADER_FOUND=0
  23472. fi
  23473. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23474. fi
  23475. if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
  23476. COROSYNC_LIB=""
  23477. COROSYNC_INCLUDE=""
  23478. else
  23479. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23480. COROSYNC_LIB=""
  23481. fi
  23482. PBX_COROSYNC=1
  23483. cat >>confdefs.h <<_ACEOF
  23484. #define HAVE_COROSYNC 1
  23485. _ACEOF
  23486. fi
  23487. fi
  23488. fi
  23489. if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
  23490. pbxlibdir=""
  23491. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  23492. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  23493. if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
  23494. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
  23495. else
  23496. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
  23497. fi
  23498. fi
  23499. pbxfuncname="corosync_cfg_state_track"
  23500. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23501. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  23502. else
  23503. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23504. CFLAGS="${CFLAGS} "
  23505. as_ac_Lib=`$as_echo "ac_cv_lib_cfg_${pbxfuncname}" | $as_tr_sh`
  23506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcfg" >&5
  23507. $as_echo_n "checking for ${pbxfuncname} in -lcfg... " >&6; }
  23508. if eval \${$as_ac_Lib+:} false; then :
  23509. $as_echo_n "(cached) " >&6
  23510. else
  23511. ac_check_lib_save_LIBS=$LIBS
  23512. LIBS="-lcfg ${pbxlibdir} -lcfg $LIBS"
  23513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23514. /* end confdefs.h. */
  23515. /* Override any GCC internal prototype to avoid an error.
  23516. Use char because int might match the return type of a GCC
  23517. builtin and then its argument prototype would still apply. */
  23518. #ifdef __cplusplus
  23519. extern "C"
  23520. #endif
  23521. char ${pbxfuncname} ();
  23522. int
  23523. main ()
  23524. {
  23525. return ${pbxfuncname} ();
  23526. ;
  23527. return 0;
  23528. }
  23529. _ACEOF
  23530. if ac_fn_c_try_link "$LINENO"; then :
  23531. eval "$as_ac_Lib=yes"
  23532. else
  23533. eval "$as_ac_Lib=no"
  23534. fi
  23535. rm -f core conftest.err conftest.$ac_objext \
  23536. conftest$ac_exeext conftest.$ac_ext
  23537. LIBS=$ac_check_lib_save_LIBS
  23538. fi
  23539. eval ac_res=\$$as_ac_Lib
  23540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23541. $as_echo "$ac_res" >&6; }
  23542. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23543. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  23544. else
  23545. AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
  23546. fi
  23547. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23548. fi
  23549. # now check for the header.
  23550. if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
  23551. COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
  23552. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  23553. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  23554. COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
  23555. fi
  23556. COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
  23557. if test "xcorosync/cfg.h" = "x" ; then # no header, assume found
  23558. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND="1"
  23559. else # check for the header
  23560. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23561. CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
  23562. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
  23563. if test "x$ac_cv_header_corosync_cfg_h" = xyes; then :
  23564. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
  23565. else
  23566. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
  23567. fi
  23568. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23569. fi
  23570. if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
  23571. COROSYNC_CFG_STATE_TRACK_LIB=""
  23572. COROSYNC_CFG_STATE_TRACK_INCLUDE=""
  23573. else
  23574. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23575. COROSYNC_CFG_STATE_TRACK_LIB=""
  23576. fi
  23577. PBX_COROSYNC_CFG_STATE_TRACK=1
  23578. cat >>confdefs.h <<_ACEOF
  23579. #define HAVE_COROSYNC_CFG_STATE_TRACK 1
  23580. _ACEOF
  23581. fi
  23582. fi
  23583. fi
  23584. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  23585. pbxlibdir=""
  23586. # if --with-SPEEX=DIR has been specified, use it.
  23587. if test "x${SPEEX_DIR}" != "x"; then
  23588. if test -d ${SPEEX_DIR}/lib; then
  23589. pbxlibdir="-L${SPEEX_DIR}/lib"
  23590. else
  23591. pbxlibdir="-L${SPEEX_DIR}"
  23592. fi
  23593. fi
  23594. pbxfuncname="speex_encode"
  23595. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23596. AST_SPEEX_FOUND=yes
  23597. else
  23598. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23599. CFLAGS="${CFLAGS} "
  23600. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  23601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  23602. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  23603. if eval \${$as_ac_Lib+:} false; then :
  23604. $as_echo_n "(cached) " >&6
  23605. else
  23606. ac_check_lib_save_LIBS=$LIBS
  23607. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  23608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23609. /* end confdefs.h. */
  23610. /* Override any GCC internal prototype to avoid an error.
  23611. Use char because int might match the return type of a GCC
  23612. builtin and then its argument prototype would still apply. */
  23613. #ifdef __cplusplus
  23614. extern "C"
  23615. #endif
  23616. char ${pbxfuncname} ();
  23617. int
  23618. main ()
  23619. {
  23620. return ${pbxfuncname} ();
  23621. ;
  23622. return 0;
  23623. }
  23624. _ACEOF
  23625. if ac_fn_c_try_link "$LINENO"; then :
  23626. eval "$as_ac_Lib=yes"
  23627. else
  23628. eval "$as_ac_Lib=no"
  23629. fi
  23630. rm -f core conftest.err conftest.$ac_objext \
  23631. conftest$ac_exeext conftest.$ac_ext
  23632. LIBS=$ac_check_lib_save_LIBS
  23633. fi
  23634. eval ac_res=\$$as_ac_Lib
  23635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23636. $as_echo "$ac_res" >&6; }
  23637. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23638. AST_SPEEX_FOUND=yes
  23639. else
  23640. AST_SPEEX_FOUND=no
  23641. fi
  23642. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23643. fi
  23644. # now check for the header.
  23645. if test "${AST_SPEEX_FOUND}" = "yes"; then
  23646. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  23647. # if --with-SPEEX=DIR has been specified, use it.
  23648. if test "x${SPEEX_DIR}" != "x"; then
  23649. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  23650. fi
  23651. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  23652. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23653. SPEEX_HEADER_FOUND="1"
  23654. else # check for the header
  23655. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23656. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  23657. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23658. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23659. SPEEX_HEADER_FOUND=1
  23660. else
  23661. SPEEX_HEADER_FOUND=0
  23662. fi
  23663. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23664. fi
  23665. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  23666. SPEEX_LIB=""
  23667. SPEEX_INCLUDE=""
  23668. else
  23669. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23670. SPEEX_LIB=""
  23671. fi
  23672. PBX_SPEEX=1
  23673. cat >>confdefs.h <<_ACEOF
  23674. #define HAVE_SPEEX 1
  23675. _ACEOF
  23676. fi
  23677. fi
  23678. fi
  23679. # See if the main speex library contains the preprocess functions
  23680. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  23681. pbxlibdir=""
  23682. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  23683. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  23684. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  23685. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  23686. else
  23687. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  23688. fi
  23689. fi
  23690. pbxfuncname="speex_preprocess_ctl"
  23691. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23692. AST_SPEEX_PREPROCESS_FOUND=yes
  23693. else
  23694. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23695. CFLAGS="${CFLAGS} "
  23696. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  23697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  23698. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  23699. if eval \${$as_ac_Lib+:} false; then :
  23700. $as_echo_n "(cached) " >&6
  23701. else
  23702. ac_check_lib_save_LIBS=$LIBS
  23703. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  23704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23705. /* end confdefs.h. */
  23706. /* Override any GCC internal prototype to avoid an error.
  23707. Use char because int might match the return type of a GCC
  23708. builtin and then its argument prototype would still apply. */
  23709. #ifdef __cplusplus
  23710. extern "C"
  23711. #endif
  23712. char ${pbxfuncname} ();
  23713. int
  23714. main ()
  23715. {
  23716. return ${pbxfuncname} ();
  23717. ;
  23718. return 0;
  23719. }
  23720. _ACEOF
  23721. if ac_fn_c_try_link "$LINENO"; then :
  23722. eval "$as_ac_Lib=yes"
  23723. else
  23724. eval "$as_ac_Lib=no"
  23725. fi
  23726. rm -f core conftest.err conftest.$ac_objext \
  23727. conftest$ac_exeext conftest.$ac_ext
  23728. LIBS=$ac_check_lib_save_LIBS
  23729. fi
  23730. eval ac_res=\$$as_ac_Lib
  23731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23732. $as_echo "$ac_res" >&6; }
  23733. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23734. AST_SPEEX_PREPROCESS_FOUND=yes
  23735. else
  23736. AST_SPEEX_PREPROCESS_FOUND=no
  23737. fi
  23738. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23739. fi
  23740. # now check for the header.
  23741. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  23742. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  23743. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  23744. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  23745. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  23746. fi
  23747. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  23748. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23749. SPEEX_PREPROCESS_HEADER_FOUND="1"
  23750. else # check for the header
  23751. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23752. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  23753. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23754. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23755. SPEEX_PREPROCESS_HEADER_FOUND=1
  23756. else
  23757. SPEEX_PREPROCESS_HEADER_FOUND=0
  23758. fi
  23759. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23760. fi
  23761. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  23762. SPEEX_PREPROCESS_LIB=""
  23763. SPEEX_PREPROCESS_INCLUDE=""
  23764. else
  23765. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23766. SPEEX_PREPROCESS_LIB=""
  23767. fi
  23768. PBX_SPEEX_PREPROCESS=1
  23769. cat >>confdefs.h <<_ACEOF
  23770. #define HAVE_SPEEX_PREPROCESS 1
  23771. _ACEOF
  23772. fi
  23773. fi
  23774. fi
  23775. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  23776. PBX_SPEEX_PREPROCESS=1
  23777. fi
  23778. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  23779. pbxlibdir=""
  23780. # if --with-SPEEXDSP=DIR has been specified, use it.
  23781. if test "x${SPEEXDSP_DIR}" != "x"; then
  23782. if test -d ${SPEEXDSP_DIR}/lib; then
  23783. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  23784. else
  23785. pbxlibdir="-L${SPEEXDSP_DIR}"
  23786. fi
  23787. fi
  23788. pbxfuncname="speex_preprocess_ctl"
  23789. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23790. AST_SPEEXDSP_FOUND=yes
  23791. else
  23792. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23793. CFLAGS="${CFLAGS} "
  23794. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  23795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
  23796. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  23797. if eval \${$as_ac_Lib+:} false; then :
  23798. $as_echo_n "(cached) " >&6
  23799. else
  23800. ac_check_lib_save_LIBS=$LIBS
  23801. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  23802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23803. /* end confdefs.h. */
  23804. /* Override any GCC internal prototype to avoid an error.
  23805. Use char because int might match the return type of a GCC
  23806. builtin and then its argument prototype would still apply. */
  23807. #ifdef __cplusplus
  23808. extern "C"
  23809. #endif
  23810. char ${pbxfuncname} ();
  23811. int
  23812. main ()
  23813. {
  23814. return ${pbxfuncname} ();
  23815. ;
  23816. return 0;
  23817. }
  23818. _ACEOF
  23819. if ac_fn_c_try_link "$LINENO"; then :
  23820. eval "$as_ac_Lib=yes"
  23821. else
  23822. eval "$as_ac_Lib=no"
  23823. fi
  23824. rm -f core conftest.err conftest.$ac_objext \
  23825. conftest$ac_exeext conftest.$ac_ext
  23826. LIBS=$ac_check_lib_save_LIBS
  23827. fi
  23828. eval ac_res=\$$as_ac_Lib
  23829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23830. $as_echo "$ac_res" >&6; }
  23831. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23832. AST_SPEEXDSP_FOUND=yes
  23833. else
  23834. AST_SPEEXDSP_FOUND=no
  23835. fi
  23836. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23837. fi
  23838. # now check for the header.
  23839. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  23840. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  23841. # if --with-SPEEXDSP=DIR has been specified, use it.
  23842. if test "x${SPEEXDSP_DIR}" != "x"; then
  23843. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  23844. fi
  23845. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  23846. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23847. SPEEXDSP_HEADER_FOUND="1"
  23848. else # check for the header
  23849. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23850. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  23851. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23852. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23853. SPEEXDSP_HEADER_FOUND=1
  23854. else
  23855. SPEEXDSP_HEADER_FOUND=0
  23856. fi
  23857. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23858. fi
  23859. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  23860. SPEEXDSP_LIB=""
  23861. SPEEXDSP_INCLUDE=""
  23862. else
  23863. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23864. SPEEXDSP_LIB=""
  23865. fi
  23866. PBX_SPEEXDSP=1
  23867. cat >>confdefs.h <<_ACEOF
  23868. #define HAVE_SPEEXDSP 1
  23869. _ACEOF
  23870. fi
  23871. fi
  23872. fi
  23873. if test "${PBX_SPEEXDSP}" = 1; then
  23874. PBX_SPEEX_PREPROCESS=1
  23875. fi
  23876. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  23877. pbxlibdir=""
  23878. # if --with-SQLITE=DIR has been specified, use it.
  23879. if test "x${SQLITE_DIR}" != "x"; then
  23880. if test -d ${SQLITE_DIR}/lib; then
  23881. pbxlibdir="-L${SQLITE_DIR}/lib"
  23882. else
  23883. pbxlibdir="-L${SQLITE_DIR}"
  23884. fi
  23885. fi
  23886. pbxfuncname="sqlite_exec"
  23887. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23888. AST_SQLITE_FOUND=yes
  23889. else
  23890. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23891. CFLAGS="${CFLAGS} "
  23892. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  23893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
  23894. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  23895. if eval \${$as_ac_Lib+:} false; then :
  23896. $as_echo_n "(cached) " >&6
  23897. else
  23898. ac_check_lib_save_LIBS=$LIBS
  23899. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  23900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23901. /* end confdefs.h. */
  23902. /* Override any GCC internal prototype to avoid an error.
  23903. Use char because int might match the return type of a GCC
  23904. builtin and then its argument prototype would still apply. */
  23905. #ifdef __cplusplus
  23906. extern "C"
  23907. #endif
  23908. char ${pbxfuncname} ();
  23909. int
  23910. main ()
  23911. {
  23912. return ${pbxfuncname} ();
  23913. ;
  23914. return 0;
  23915. }
  23916. _ACEOF
  23917. if ac_fn_c_try_link "$LINENO"; then :
  23918. eval "$as_ac_Lib=yes"
  23919. else
  23920. eval "$as_ac_Lib=no"
  23921. fi
  23922. rm -f core conftest.err conftest.$ac_objext \
  23923. conftest$ac_exeext conftest.$ac_ext
  23924. LIBS=$ac_check_lib_save_LIBS
  23925. fi
  23926. eval ac_res=\$$as_ac_Lib
  23927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23928. $as_echo "$ac_res" >&6; }
  23929. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23930. AST_SQLITE_FOUND=yes
  23931. else
  23932. AST_SQLITE_FOUND=no
  23933. fi
  23934. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23935. fi
  23936. # now check for the header.
  23937. if test "${AST_SQLITE_FOUND}" = "yes"; then
  23938. SQLITE_LIB="${pbxlibdir} -lsqlite "
  23939. # if --with-SQLITE=DIR has been specified, use it.
  23940. if test "x${SQLITE_DIR}" != "x"; then
  23941. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  23942. fi
  23943. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  23944. if test "xsqlite.h" = "x" ; then # no header, assume found
  23945. SQLITE_HEADER_FOUND="1"
  23946. else # check for the header
  23947. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23948. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  23949. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  23950. if test "x$ac_cv_header_sqlite_h" = xyes; then :
  23951. SQLITE_HEADER_FOUND=1
  23952. else
  23953. SQLITE_HEADER_FOUND=0
  23954. fi
  23955. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23956. fi
  23957. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  23958. SQLITE_LIB=""
  23959. SQLITE_INCLUDE=""
  23960. else
  23961. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23962. SQLITE_LIB=""
  23963. fi
  23964. PBX_SQLITE=1
  23965. cat >>confdefs.h <<_ACEOF
  23966. #define HAVE_SQLITE 1
  23967. _ACEOF
  23968. fi
  23969. fi
  23970. fi
  23971. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  23972. pbxlibdir=""
  23973. # if --with-SQLITE3=DIR has been specified, use it.
  23974. if test "x${SQLITE3_DIR}" != "x"; then
  23975. if test -d ${SQLITE3_DIR}/lib; then
  23976. pbxlibdir="-L${SQLITE3_DIR}/lib"
  23977. else
  23978. pbxlibdir="-L${SQLITE3_DIR}"
  23979. fi
  23980. fi
  23981. pbxfuncname="sqlite3_open"
  23982. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23983. AST_SQLITE3_FOUND=yes
  23984. else
  23985. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23986. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  23987. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  23988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
  23989. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  23990. if eval \${$as_ac_Lib+:} false; then :
  23991. $as_echo_n "(cached) " >&6
  23992. else
  23993. ac_check_lib_save_LIBS=$LIBS
  23994. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  23995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23996. /* end confdefs.h. */
  23997. /* Override any GCC internal prototype to avoid an error.
  23998. Use char because int might match the return type of a GCC
  23999. builtin and then its argument prototype would still apply. */
  24000. #ifdef __cplusplus
  24001. extern "C"
  24002. #endif
  24003. char ${pbxfuncname} ();
  24004. int
  24005. main ()
  24006. {
  24007. return ${pbxfuncname} ();
  24008. ;
  24009. return 0;
  24010. }
  24011. _ACEOF
  24012. if ac_fn_c_try_link "$LINENO"; then :
  24013. eval "$as_ac_Lib=yes"
  24014. else
  24015. eval "$as_ac_Lib=no"
  24016. fi
  24017. rm -f core conftest.err conftest.$ac_objext \
  24018. conftest$ac_exeext conftest.$ac_ext
  24019. LIBS=$ac_check_lib_save_LIBS
  24020. fi
  24021. eval ac_res=\$$as_ac_Lib
  24022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24023. $as_echo "$ac_res" >&6; }
  24024. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24025. AST_SQLITE3_FOUND=yes
  24026. else
  24027. AST_SQLITE3_FOUND=no
  24028. fi
  24029. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24030. fi
  24031. # now check for the header.
  24032. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  24033. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  24034. # if --with-SQLITE3=DIR has been specified, use it.
  24035. if test "x${SQLITE3_DIR}" != "x"; then
  24036. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  24037. fi
  24038. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  24039. if test "xsqlite3.h" = "x" ; then # no header, assume found
  24040. SQLITE3_HEADER_FOUND="1"
  24041. else # check for the header
  24042. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24043. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  24044. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  24045. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  24046. SQLITE3_HEADER_FOUND=1
  24047. else
  24048. SQLITE3_HEADER_FOUND=0
  24049. fi
  24050. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24051. fi
  24052. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  24053. SQLITE3_LIB=""
  24054. SQLITE3_INCLUDE=""
  24055. else
  24056. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24057. SQLITE3_LIB=""
  24058. fi
  24059. PBX_SQLITE3=1
  24060. cat >>confdefs.h <<_ACEOF
  24061. #define HAVE_SQLITE3 1
  24062. _ACEOF
  24063. fi
  24064. fi
  24065. fi
  24066. if test "${PBX_SQLITE3}" != 1; then
  24067. as_fn_error $? "*** Asterisk now uses SQLite3 for the internal Asterisk database." "$LINENO" 5
  24068. as_fn_error $? "*** Please install the SQLite3 development package." "$LINENO" 5
  24069. exit 1
  24070. fi
  24071. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  24072. pbxlibdir=""
  24073. # if --with-CRYPTO=DIR has been specified, use it.
  24074. if test "x${CRYPTO_DIR}" != "x"; then
  24075. if test -d ${CRYPTO_DIR}/lib; then
  24076. pbxlibdir="-L${CRYPTO_DIR}/lib"
  24077. else
  24078. pbxlibdir="-L${CRYPTO_DIR}"
  24079. fi
  24080. fi
  24081. pbxfuncname="AES_encrypt"
  24082. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24083. AST_CRYPTO_FOUND=yes
  24084. else
  24085. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24086. CFLAGS="${CFLAGS} "
  24087. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  24088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
  24089. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  24090. if eval \${$as_ac_Lib+:} false; then :
  24091. $as_echo_n "(cached) " >&6
  24092. else
  24093. ac_check_lib_save_LIBS=$LIBS
  24094. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  24095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24096. /* end confdefs.h. */
  24097. /* Override any GCC internal prototype to avoid an error.
  24098. Use char because int might match the return type of a GCC
  24099. builtin and then its argument prototype would still apply. */
  24100. #ifdef __cplusplus
  24101. extern "C"
  24102. #endif
  24103. char ${pbxfuncname} ();
  24104. int
  24105. main ()
  24106. {
  24107. return ${pbxfuncname} ();
  24108. ;
  24109. return 0;
  24110. }
  24111. _ACEOF
  24112. if ac_fn_c_try_link "$LINENO"; then :
  24113. eval "$as_ac_Lib=yes"
  24114. else
  24115. eval "$as_ac_Lib=no"
  24116. fi
  24117. rm -f core conftest.err conftest.$ac_objext \
  24118. conftest$ac_exeext conftest.$ac_ext
  24119. LIBS=$ac_check_lib_save_LIBS
  24120. fi
  24121. eval ac_res=\$$as_ac_Lib
  24122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24123. $as_echo "$ac_res" >&6; }
  24124. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24125. AST_CRYPTO_FOUND=yes
  24126. else
  24127. AST_CRYPTO_FOUND=no
  24128. fi
  24129. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24130. fi
  24131. # now check for the header.
  24132. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  24133. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  24134. # if --with-CRYPTO=DIR has been specified, use it.
  24135. if test "x${CRYPTO_DIR}" != "x"; then
  24136. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  24137. fi
  24138. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  24139. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  24140. CRYPTO_HEADER_FOUND="1"
  24141. else # check for the header
  24142. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24143. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  24144. ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  24145. if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
  24146. CRYPTO_HEADER_FOUND=1
  24147. else
  24148. CRYPTO_HEADER_FOUND=0
  24149. fi
  24150. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24151. fi
  24152. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  24153. CRYPTO_LIB=""
  24154. CRYPTO_INCLUDE=""
  24155. else
  24156. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24157. CRYPTO_LIB=""
  24158. fi
  24159. PBX_CRYPTO=1
  24160. cat >>confdefs.h <<_ACEOF
  24161. #define HAVE_CRYPTO 1
  24162. _ACEOF
  24163. fi
  24164. fi
  24165. fi
  24166. if test "$PBX_CRYPTO" = "1";
  24167. then
  24168. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  24169. pbxlibdir=""
  24170. # if --with-OPENSSL=DIR has been specified, use it.
  24171. if test "x${OPENSSL_DIR}" != "x"; then
  24172. if test -d ${OPENSSL_DIR}/lib; then
  24173. pbxlibdir="-L${OPENSSL_DIR}/lib"
  24174. else
  24175. pbxlibdir="-L${OPENSSL_DIR}"
  24176. fi
  24177. fi
  24178. pbxfuncname="SSL_connect"
  24179. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24180. AST_OPENSSL_FOUND=yes
  24181. else
  24182. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24183. CFLAGS="${CFLAGS} "
  24184. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  24185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  24186. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  24187. if eval \${$as_ac_Lib+:} false; then :
  24188. $as_echo_n "(cached) " >&6
  24189. else
  24190. ac_check_lib_save_LIBS=$LIBS
  24191. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  24192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24193. /* end confdefs.h. */
  24194. /* Override any GCC internal prototype to avoid an error.
  24195. Use char because int might match the return type of a GCC
  24196. builtin and then its argument prototype would still apply. */
  24197. #ifdef __cplusplus
  24198. extern "C"
  24199. #endif
  24200. char ${pbxfuncname} ();
  24201. int
  24202. main ()
  24203. {
  24204. return ${pbxfuncname} ();
  24205. ;
  24206. return 0;
  24207. }
  24208. _ACEOF
  24209. if ac_fn_c_try_link "$LINENO"; then :
  24210. eval "$as_ac_Lib=yes"
  24211. else
  24212. eval "$as_ac_Lib=no"
  24213. fi
  24214. rm -f core conftest.err conftest.$ac_objext \
  24215. conftest$ac_exeext conftest.$ac_ext
  24216. LIBS=$ac_check_lib_save_LIBS
  24217. fi
  24218. eval ac_res=\$$as_ac_Lib
  24219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24220. $as_echo "$ac_res" >&6; }
  24221. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24222. AST_OPENSSL_FOUND=yes
  24223. else
  24224. AST_OPENSSL_FOUND=no
  24225. fi
  24226. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24227. fi
  24228. # now check for the header.
  24229. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  24230. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  24231. # if --with-OPENSSL=DIR has been specified, use it.
  24232. if test "x${OPENSSL_DIR}" != "x"; then
  24233. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  24234. fi
  24235. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  24236. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  24237. OPENSSL_HEADER_FOUND="1"
  24238. else # check for the header
  24239. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24240. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  24241. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  24242. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  24243. OPENSSL_HEADER_FOUND=1
  24244. else
  24245. OPENSSL_HEADER_FOUND=0
  24246. fi
  24247. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24248. fi
  24249. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  24250. OPENSSL_LIB=""
  24251. OPENSSL_INCLUDE=""
  24252. else
  24253. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24254. OPENSSL_LIB=""
  24255. fi
  24256. PBX_OPENSSL=1
  24257. cat >>confdefs.h <<_ACEOF
  24258. #define HAVE_OPENSSL 1
  24259. _ACEOF
  24260. fi
  24261. fi
  24262. fi
  24263. fi
  24264. if test "$PBX_OPENSSL" = "1";
  24265. then
  24266. # if OSPTK has not been checked and is not excluded
  24267. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  24268. # if --with-osptk=DIR has been specified, use it.
  24269. if test "x${OSPTK_DIR}" != "x"; then
  24270. osptk_cflags="-I${OSPTK_DIR}/include"
  24271. osptk_ldflags="-L${OSPTK_DIR}/lib"
  24272. else
  24273. osptk_cflags=""
  24274. osptk_ldflags=""
  24275. fi
  24276. # check for the header
  24277. osptk_saved_cppflags="${CPPFLAGS}"
  24278. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  24279. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  24280. if test "x$ac_cv_header_osp_osp_h" = xyes; then :
  24281. osptk_header_found=yes
  24282. else
  24283. osptk_header_found=no
  24284. fi
  24285. CPPFLAGS="${osptk_saved_cppflags}"
  24286. # check for the library
  24287. if test "${osptk_header_found}" = "yes"; then
  24288. osptk_extralibs="-lssl -lcrypto"
  24289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
  24290. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  24291. if ${ac_cv_lib_osptk_OSPPInit+:} false; then :
  24292. $as_echo_n "(cached) " >&6
  24293. else
  24294. ac_check_lib_save_LIBS=$LIBS
  24295. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  24296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24297. /* end confdefs.h. */
  24298. /* Override any GCC internal prototype to avoid an error.
  24299. Use char because int might match the return type of a GCC
  24300. builtin and then its argument prototype would still apply. */
  24301. #ifdef __cplusplus
  24302. extern "C"
  24303. #endif
  24304. char OSPPInit ();
  24305. int
  24306. main ()
  24307. {
  24308. return OSPPInit ();
  24309. ;
  24310. return 0;
  24311. }
  24312. _ACEOF
  24313. if ac_fn_c_try_link "$LINENO"; then :
  24314. ac_cv_lib_osptk_OSPPInit=yes
  24315. else
  24316. ac_cv_lib_osptk_OSPPInit=no
  24317. fi
  24318. rm -f core conftest.err conftest.$ac_objext \
  24319. conftest$ac_exeext conftest.$ac_ext
  24320. LIBS=$ac_check_lib_save_LIBS
  24321. fi
  24322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPInit" >&5
  24323. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  24324. if test "x$ac_cv_lib_osptk_OSPPInit" = xyes; then :
  24325. osptk_library_found=yes
  24326. else
  24327. osptk_library_found=no
  24328. fi
  24329. # check OSP Toolkit version
  24330. if test "${osptk_library_found}" = "yes"; then
  24331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  24332. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  24333. osptk_saved_cppflags="${CPPFLAGS}"
  24334. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  24335. if test "$cross_compiling" = yes; then :
  24336. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24338. as_fn_error $? "cannot run test program while cross compiling
  24339. See \`config.log' for more details" "$LINENO" 5; }
  24340. else
  24341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24342. /* end confdefs.h. */
  24343. #include <osp/osp.h>
  24344. int main(void) {
  24345. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  24346. int req = 4 * 10000 + 0 * 100 + 0;
  24347. return (ver < req) ? 1 : 0;
  24348. }
  24349. _ACEOF
  24350. if ac_fn_c_try_run "$LINENO"; then :
  24351. osptk_compatible=yes
  24352. else
  24353. osptk_compatible=no
  24354. fi
  24355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24356. conftest.$ac_objext conftest.beam conftest.$ac_ext
  24357. fi
  24358. CPPFLAGS="${osptk_saved_cppflags}"
  24359. if test "${osptk_compatible}" = "yes"; then
  24360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24361. $as_echo "yes" >&6; }
  24362. PBX_OSPTK=1
  24363. OSPTK_INCLUDE="${osptk_cflags}"
  24364. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  24365. cat >>confdefs.h <<_ACEOF
  24366. #define HAVE_OSPTK 1
  24367. _ACEOF
  24368. else
  24369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24370. $as_echo "no" >&6; }
  24371. fi
  24372. fi
  24373. fi
  24374. fi
  24375. if test "x${PBX_OPENSSL_SRTP}" != "x1" -a "${USE_OPENSSL_SRTP}" != "no"; then
  24376. pbxlibdir=""
  24377. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  24378. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  24379. if test -d ${OPENSSL_SRTP_DIR}/lib; then
  24380. pbxlibdir="-L${OPENSSL_SRTP_DIR}/lib"
  24381. else
  24382. pbxlibdir="-L${OPENSSL_SRTP_DIR}"
  24383. fi
  24384. fi
  24385. pbxfuncname="SSL_CTX_set_tlsext_use_srtp"
  24386. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24387. AST_OPENSSL_SRTP_FOUND=yes
  24388. else
  24389. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24390. CFLAGS="${CFLAGS} "
  24391. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  24392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  24393. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  24394. if eval \${$as_ac_Lib+:} false; then :
  24395. $as_echo_n "(cached) " >&6
  24396. else
  24397. ac_check_lib_save_LIBS=$LIBS
  24398. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  24399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24400. /* end confdefs.h. */
  24401. /* Override any GCC internal prototype to avoid an error.
  24402. Use char because int might match the return type of a GCC
  24403. builtin and then its argument prototype would still apply. */
  24404. #ifdef __cplusplus
  24405. extern "C"
  24406. #endif
  24407. char ${pbxfuncname} ();
  24408. int
  24409. main ()
  24410. {
  24411. return ${pbxfuncname} ();
  24412. ;
  24413. return 0;
  24414. }
  24415. _ACEOF
  24416. if ac_fn_c_try_link "$LINENO"; then :
  24417. eval "$as_ac_Lib=yes"
  24418. else
  24419. eval "$as_ac_Lib=no"
  24420. fi
  24421. rm -f core conftest.err conftest.$ac_objext \
  24422. conftest$ac_exeext conftest.$ac_ext
  24423. LIBS=$ac_check_lib_save_LIBS
  24424. fi
  24425. eval ac_res=\$$as_ac_Lib
  24426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24427. $as_echo "$ac_res" >&6; }
  24428. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24429. AST_OPENSSL_SRTP_FOUND=yes
  24430. else
  24431. AST_OPENSSL_SRTP_FOUND=no
  24432. fi
  24433. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24434. fi
  24435. # now check for the header.
  24436. if test "${AST_OPENSSL_SRTP_FOUND}" = "yes"; then
  24437. OPENSSL_SRTP_LIB="${pbxlibdir} -lssl -lcrypto"
  24438. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  24439. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  24440. OPENSSL_SRTP_INCLUDE="-I${OPENSSL_SRTP_DIR}/include"
  24441. fi
  24442. OPENSSL_SRTP_INCLUDE="${OPENSSL_SRTP_INCLUDE} "
  24443. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  24444. OPENSSL_SRTP_HEADER_FOUND="1"
  24445. else # check for the header
  24446. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24447. CPPFLAGS="${CPPFLAGS} ${OPENSSL_SRTP_INCLUDE}"
  24448. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  24449. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  24450. OPENSSL_SRTP_HEADER_FOUND=1
  24451. else
  24452. OPENSSL_SRTP_HEADER_FOUND=0
  24453. fi
  24454. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24455. fi
  24456. if test "x${OPENSSL_SRTP_HEADER_FOUND}" = "x0" ; then
  24457. OPENSSL_SRTP_LIB=""
  24458. OPENSSL_SRTP_INCLUDE=""
  24459. else
  24460. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24461. OPENSSL_SRTP_LIB=""
  24462. fi
  24463. PBX_OPENSSL_SRTP=1
  24464. cat >>confdefs.h <<_ACEOF
  24465. #define HAVE_OPENSSL_SRTP 1
  24466. _ACEOF
  24467. fi
  24468. fi
  24469. fi
  24470. fi
  24471. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  24472. pbxlibdir=""
  24473. # if --with-SRTP=DIR has been specified, use it.
  24474. if test "x${SRTP_DIR}" != "x"; then
  24475. if test -d ${SRTP_DIR}/lib; then
  24476. pbxlibdir="-L${SRTP_DIR}/lib"
  24477. else
  24478. pbxlibdir="-L${SRTP_DIR}"
  24479. fi
  24480. fi
  24481. pbxfuncname="srtp_init"
  24482. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24483. AST_SRTP_FOUND=yes
  24484. else
  24485. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24486. CFLAGS="${CFLAGS} "
  24487. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  24488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  24489. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  24490. if eval \${$as_ac_Lib+:} false; then :
  24491. $as_echo_n "(cached) " >&6
  24492. else
  24493. ac_check_lib_save_LIBS=$LIBS
  24494. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  24495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24496. /* end confdefs.h. */
  24497. /* Override any GCC internal prototype to avoid an error.
  24498. Use char because int might match the return type of a GCC
  24499. builtin and then its argument prototype would still apply. */
  24500. #ifdef __cplusplus
  24501. extern "C"
  24502. #endif
  24503. char ${pbxfuncname} ();
  24504. int
  24505. main ()
  24506. {
  24507. return ${pbxfuncname} ();
  24508. ;
  24509. return 0;
  24510. }
  24511. _ACEOF
  24512. if ac_fn_c_try_link "$LINENO"; then :
  24513. eval "$as_ac_Lib=yes"
  24514. else
  24515. eval "$as_ac_Lib=no"
  24516. fi
  24517. rm -f core conftest.err conftest.$ac_objext \
  24518. conftest$ac_exeext conftest.$ac_ext
  24519. LIBS=$ac_check_lib_save_LIBS
  24520. fi
  24521. eval ac_res=\$$as_ac_Lib
  24522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24523. $as_echo "$ac_res" >&6; }
  24524. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24525. AST_SRTP_FOUND=yes
  24526. else
  24527. AST_SRTP_FOUND=no
  24528. fi
  24529. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24530. fi
  24531. # now check for the header.
  24532. if test "${AST_SRTP_FOUND}" = "yes"; then
  24533. SRTP_LIB="${pbxlibdir} -lsrtp "
  24534. # if --with-SRTP=DIR has been specified, use it.
  24535. if test "x${SRTP_DIR}" != "x"; then
  24536. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  24537. fi
  24538. SRTP_INCLUDE="${SRTP_INCLUDE} "
  24539. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  24540. SRTP_HEADER_FOUND="1"
  24541. else # check for the header
  24542. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24543. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  24544. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  24545. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  24546. SRTP_HEADER_FOUND=1
  24547. else
  24548. SRTP_HEADER_FOUND=0
  24549. fi
  24550. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24551. fi
  24552. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  24553. SRTP_LIB=""
  24554. SRTP_INCLUDE=""
  24555. else
  24556. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24557. SRTP_LIB=""
  24558. fi
  24559. PBX_SRTP=1
  24560. cat >>confdefs.h <<_ACEOF
  24561. #define HAVE_SRTP 1
  24562. _ACEOF
  24563. fi
  24564. fi
  24565. fi
  24566. if test "$PBX_SRTP" = "1";
  24567. then
  24568. saved_libs="${LIBS}"
  24569. saved_ldflags="${LDFLAGS}"
  24570. saved_cflags="${CFLAGS}"
  24571. LIBS="${LIBS} ${SRTP_LIB}"
  24572. LDFLAGS="${LDFLAGS} -shared -fPIC"
  24573. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  24574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  24575. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  24576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24577. /* end confdefs.h. */
  24578. #include <srtp/srtp.h>
  24579. int
  24580. main ()
  24581. {
  24582. srtp_init();
  24583. ;
  24584. return 0;
  24585. }
  24586. _ACEOF
  24587. if ac_fn_c_try_link "$LINENO"; then :
  24588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24589. $as_echo "yes" >&6; }
  24590. else
  24591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24592. $as_echo "no" >&6; }
  24593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  24594. $as_echo "$as_me: WARNING: ***" >&2;}
  24595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
  24596. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  24597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  24598. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  24599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  24600. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  24601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
  24602. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  24603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp" >&5
  24604. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  24605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  24606. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  24607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  24608. $as_echo "$as_me: WARNING: ***" >&2;}
  24609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  24610. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  24611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  24612. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  24613. exit 1
  24614. fi
  24615. rm -f core conftest.err conftest.$ac_objext \
  24616. conftest$ac_exeext conftest.$ac_ext
  24617. LIBS="${saved_libs}"
  24618. LDFLAGS="${saved_ldflags}"
  24619. CFLAGS="${saved_cflags}"
  24620. fi
  24621. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  24622. pbxlibdir=""
  24623. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  24624. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  24625. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  24626. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  24627. else
  24628. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  24629. fi
  24630. fi
  24631. pbxfuncname="srtp_shutdown"
  24632. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24633. AST_SRTP_SHUTDOWN_FOUND=yes
  24634. else
  24635. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24636. CFLAGS="${CFLAGS} "
  24637. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  24638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  24639. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  24640. if eval \${$as_ac_Lib+:} false; then :
  24641. $as_echo_n "(cached) " >&6
  24642. else
  24643. ac_check_lib_save_LIBS=$LIBS
  24644. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  24645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24646. /* end confdefs.h. */
  24647. /* Override any GCC internal prototype to avoid an error.
  24648. Use char because int might match the return type of a GCC
  24649. builtin and then its argument prototype would still apply. */
  24650. #ifdef __cplusplus
  24651. extern "C"
  24652. #endif
  24653. char ${pbxfuncname} ();
  24654. int
  24655. main ()
  24656. {
  24657. return ${pbxfuncname} ();
  24658. ;
  24659. return 0;
  24660. }
  24661. _ACEOF
  24662. if ac_fn_c_try_link "$LINENO"; then :
  24663. eval "$as_ac_Lib=yes"
  24664. else
  24665. eval "$as_ac_Lib=no"
  24666. fi
  24667. rm -f core conftest.err conftest.$ac_objext \
  24668. conftest$ac_exeext conftest.$ac_ext
  24669. LIBS=$ac_check_lib_save_LIBS
  24670. fi
  24671. eval ac_res=\$$as_ac_Lib
  24672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24673. $as_echo "$ac_res" >&6; }
  24674. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24675. AST_SRTP_SHUTDOWN_FOUND=yes
  24676. else
  24677. AST_SRTP_SHUTDOWN_FOUND=no
  24678. fi
  24679. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24680. fi
  24681. # now check for the header.
  24682. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  24683. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
  24684. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  24685. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  24686. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  24687. fi
  24688. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  24689. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  24690. SRTP_SHUTDOWN_HEADER_FOUND="1"
  24691. else # check for the header
  24692. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24693. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  24694. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  24695. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  24696. SRTP_SHUTDOWN_HEADER_FOUND=1
  24697. else
  24698. SRTP_SHUTDOWN_HEADER_FOUND=0
  24699. fi
  24700. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24701. fi
  24702. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  24703. SRTP_SHUTDOWN_LIB=""
  24704. SRTP_SHUTDOWN_INCLUDE=""
  24705. else
  24706. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24707. SRTP_SHUTDOWN_LIB=""
  24708. fi
  24709. PBX_SRTP_SHUTDOWN=1
  24710. cat >>confdefs.h <<_ACEOF
  24711. #define HAVE_SRTP_SHUTDOWN 1
  24712. _ACEOF
  24713. fi
  24714. fi
  24715. fi
  24716. for ver in 2.0 2.2 2.4 2.6; do
  24717. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  24718. pkg_failed=no
  24719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMIME" >&5
  24720. $as_echo_n "checking for GMIME... " >&6; }
  24721. if test -n "$GMIME_CFLAGS"; then
  24722. pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
  24723. elif test -n "$PKG_CONFIG"; then
  24724. if test -n "$PKG_CONFIG" && \
  24725. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  24726. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  24727. ac_status=$?
  24728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24729. test $ac_status = 0; }; then
  24730. pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
  24731. test "x$?" != "x0" && pkg_failed=yes
  24732. else
  24733. pkg_failed=yes
  24734. fi
  24735. else
  24736. pkg_failed=untried
  24737. fi
  24738. if test -n "$GMIME_LIBS"; then
  24739. pkg_cv_GMIME_LIBS="$GMIME_LIBS"
  24740. elif test -n "$PKG_CONFIG"; then
  24741. if test -n "$PKG_CONFIG" && \
  24742. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  24743. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  24744. ac_status=$?
  24745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24746. test $ac_status = 0; }; then
  24747. pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
  24748. test "x$?" != "x0" && pkg_failed=yes
  24749. else
  24750. pkg_failed=yes
  24751. fi
  24752. else
  24753. pkg_failed=untried
  24754. fi
  24755. if test $pkg_failed = yes; then
  24756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24757. $as_echo "no" >&6; }
  24758. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24759. _pkg_short_errors_supported=yes
  24760. else
  24761. _pkg_short_errors_supported=no
  24762. fi
  24763. if test $_pkg_short_errors_supported = yes; then
  24764. GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
  24765. else
  24766. GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
  24767. fi
  24768. # Put the nasty error message in config.log where it belongs
  24769. echo "$GMIME_PKG_ERRORS" >&5
  24770. PBX_GMIME=0
  24771. elif test $pkg_failed = untried; then
  24772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24773. $as_echo "no" >&6; }
  24774. PBX_GMIME=0
  24775. else
  24776. GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
  24777. GMIME_LIBS=$pkg_cv_GMIME_LIBS
  24778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24779. $as_echo "yes" >&6; }
  24780. PBX_GMIME=1
  24781. GMIME_INCLUDE="$GMIME_CFLAGS"
  24782. GMIME_LIB="$GMIME_LIBS"
  24783. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  24784. fi
  24785. fi
  24786. if test "$PBX_GMIME" = 1; then
  24787. break;
  24788. fi
  24789. done
  24790. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  24791. pbxlibdir=""
  24792. # if --with-HOARD=DIR has been specified, use it.
  24793. if test "x${HOARD_DIR}" != "x"; then
  24794. if test -d ${HOARD_DIR}/lib; then
  24795. pbxlibdir="-L${HOARD_DIR}/lib"
  24796. else
  24797. pbxlibdir="-L${HOARD_DIR}"
  24798. fi
  24799. fi
  24800. pbxfuncname="malloc"
  24801. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24802. AST_HOARD_FOUND=yes
  24803. else
  24804. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24805. CFLAGS="${CFLAGS} "
  24806. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  24807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
  24808. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  24809. if eval \${$as_ac_Lib+:} false; then :
  24810. $as_echo_n "(cached) " >&6
  24811. else
  24812. ac_check_lib_save_LIBS=$LIBS
  24813. LIBS="-lhoard ${pbxlibdir} $LIBS"
  24814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24815. /* end confdefs.h. */
  24816. /* Override any GCC internal prototype to avoid an error.
  24817. Use char because int might match the return type of a GCC
  24818. builtin and then its argument prototype would still apply. */
  24819. #ifdef __cplusplus
  24820. extern "C"
  24821. #endif
  24822. char ${pbxfuncname} ();
  24823. int
  24824. main ()
  24825. {
  24826. return ${pbxfuncname} ();
  24827. ;
  24828. return 0;
  24829. }
  24830. _ACEOF
  24831. if ac_fn_c_try_link "$LINENO"; then :
  24832. eval "$as_ac_Lib=yes"
  24833. else
  24834. eval "$as_ac_Lib=no"
  24835. fi
  24836. rm -f core conftest.err conftest.$ac_objext \
  24837. conftest$ac_exeext conftest.$ac_ext
  24838. LIBS=$ac_check_lib_save_LIBS
  24839. fi
  24840. eval ac_res=\$$as_ac_Lib
  24841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24842. $as_echo "$ac_res" >&6; }
  24843. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24844. AST_HOARD_FOUND=yes
  24845. else
  24846. AST_HOARD_FOUND=no
  24847. fi
  24848. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24849. fi
  24850. # now check for the header.
  24851. if test "${AST_HOARD_FOUND}" = "yes"; then
  24852. HOARD_LIB="${pbxlibdir} -lhoard "
  24853. # if --with-HOARD=DIR has been specified, use it.
  24854. if test "x${HOARD_DIR}" != "x"; then
  24855. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  24856. fi
  24857. HOARD_INCLUDE="${HOARD_INCLUDE} "
  24858. if test "x" = "x" ; then # no header, assume found
  24859. HOARD_HEADER_FOUND="1"
  24860. else # check for the header
  24861. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24862. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  24863. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  24864. if test "x$ac_cv_header_" = xyes; then :
  24865. HOARD_HEADER_FOUND=1
  24866. else
  24867. HOARD_HEADER_FOUND=0
  24868. fi
  24869. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24870. fi
  24871. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  24872. HOARD_LIB=""
  24873. HOARD_INCLUDE=""
  24874. else
  24875. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24876. HOARD_LIB=""
  24877. fi
  24878. PBX_HOARD=1
  24879. cat >>confdefs.h <<_ACEOF
  24880. #define HAVE_HOARD 1
  24881. _ACEOF
  24882. fi
  24883. fi
  24884. fi
  24885. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  24886. pbxlibdir=""
  24887. # if --with-FREETDS=DIR has been specified, use it.
  24888. if test "x${FREETDS_DIR}" != "x"; then
  24889. if test -d ${FREETDS_DIR}/lib; then
  24890. pbxlibdir="-L${FREETDS_DIR}/lib"
  24891. else
  24892. pbxlibdir="-L${FREETDS_DIR}"
  24893. fi
  24894. fi
  24895. pbxfuncname="dbinit"
  24896. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24897. AST_FREETDS_FOUND=yes
  24898. else
  24899. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24900. CFLAGS="${CFLAGS} "
  24901. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  24902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
  24903. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  24904. if eval \${$as_ac_Lib+:} false; then :
  24905. $as_echo_n "(cached) " >&6
  24906. else
  24907. ac_check_lib_save_LIBS=$LIBS
  24908. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  24909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24910. /* end confdefs.h. */
  24911. /* Override any GCC internal prototype to avoid an error.
  24912. Use char because int might match the return type of a GCC
  24913. builtin and then its argument prototype would still apply. */
  24914. #ifdef __cplusplus
  24915. extern "C"
  24916. #endif
  24917. char ${pbxfuncname} ();
  24918. int
  24919. main ()
  24920. {
  24921. return ${pbxfuncname} ();
  24922. ;
  24923. return 0;
  24924. }
  24925. _ACEOF
  24926. if ac_fn_c_try_link "$LINENO"; then :
  24927. eval "$as_ac_Lib=yes"
  24928. else
  24929. eval "$as_ac_Lib=no"
  24930. fi
  24931. rm -f core conftest.err conftest.$ac_objext \
  24932. conftest$ac_exeext conftest.$ac_ext
  24933. LIBS=$ac_check_lib_save_LIBS
  24934. fi
  24935. eval ac_res=\$$as_ac_Lib
  24936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24937. $as_echo "$ac_res" >&6; }
  24938. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24939. AST_FREETDS_FOUND=yes
  24940. else
  24941. AST_FREETDS_FOUND=no
  24942. fi
  24943. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24944. fi
  24945. # now check for the header.
  24946. if test "${AST_FREETDS_FOUND}" = "yes"; then
  24947. FREETDS_LIB="${pbxlibdir} -lsybdb "
  24948. # if --with-FREETDS=DIR has been specified, use it.
  24949. if test "x${FREETDS_DIR}" != "x"; then
  24950. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  24951. fi
  24952. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  24953. if test "xsybdb.h" = "x" ; then # no header, assume found
  24954. FREETDS_HEADER_FOUND="1"
  24955. else # check for the header
  24956. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24957. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  24958. ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  24959. if test "x$ac_cv_header_sybdb_h" = xyes; then :
  24960. FREETDS_HEADER_FOUND=1
  24961. else
  24962. FREETDS_HEADER_FOUND=0
  24963. fi
  24964. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24965. fi
  24966. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  24967. FREETDS_LIB=""
  24968. FREETDS_INCLUDE=""
  24969. else
  24970. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24971. FREETDS_LIB=""
  24972. fi
  24973. PBX_FREETDS=1
  24974. cat >>confdefs.h <<_ACEOF
  24975. #define HAVE_FREETDS 1
  24976. _ACEOF
  24977. fi
  24978. fi
  24979. fi
  24980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  24981. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  24982. if ${ac_cv_lib_tonezone_tone_zone_find_by_num+:} false; then :
  24983. $as_echo_n "(cached) " >&6
  24984. else
  24985. ac_check_lib_save_LIBS=$LIBS
  24986. LIBS="-ltonezone $LIBS"
  24987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24988. /* end confdefs.h. */
  24989. /* Override any GCC internal prototype to avoid an error.
  24990. Use char because int might match the return type of a GCC
  24991. builtin and then its argument prototype would still apply. */
  24992. #ifdef __cplusplus
  24993. extern "C"
  24994. #endif
  24995. char tone_zone_find_by_num ();
  24996. int
  24997. main ()
  24998. {
  24999. return tone_zone_find_by_num ();
  25000. ;
  25001. return 0;
  25002. }
  25003. _ACEOF
  25004. if ac_fn_c_try_link "$LINENO"; then :
  25005. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  25006. else
  25007. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  25008. fi
  25009. rm -f core conftest.err conftest.$ac_objext \
  25010. conftest$ac_exeext conftest.$ac_ext
  25011. LIBS=$ac_check_lib_save_LIBS
  25012. fi
  25013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  25014. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  25015. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes; then :
  25016. tonezone_does_not_need_lm=yes
  25017. else
  25018. tonezone_does_not_need_lm=no
  25019. fi
  25020. if test "${tonezone_does_not_need_lm}" = "no" ; then
  25021. tonezone_extra="-lm"
  25022. fi
  25023. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  25024. pbxlibdir=""
  25025. # if --with-TONEZONE=DIR has been specified, use it.
  25026. if test "x${TONEZONE_DIR}" != "x"; then
  25027. if test -d ${TONEZONE_DIR}/lib; then
  25028. pbxlibdir="-L${TONEZONE_DIR}/lib"
  25029. else
  25030. pbxlibdir="-L${TONEZONE_DIR}"
  25031. fi
  25032. fi
  25033. pbxfuncname="tone_zone_find"
  25034. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25035. AST_TONEZONE_FOUND=yes
  25036. else
  25037. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25038. CFLAGS="${CFLAGS} "
  25039. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  25040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
  25041. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  25042. if eval \${$as_ac_Lib+:} false; then :
  25043. $as_echo_n "(cached) " >&6
  25044. else
  25045. ac_check_lib_save_LIBS=$LIBS
  25046. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  25047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25048. /* end confdefs.h. */
  25049. /* Override any GCC internal prototype to avoid an error.
  25050. Use char because int might match the return type of a GCC
  25051. builtin and then its argument prototype would still apply. */
  25052. #ifdef __cplusplus
  25053. extern "C"
  25054. #endif
  25055. char ${pbxfuncname} ();
  25056. int
  25057. main ()
  25058. {
  25059. return ${pbxfuncname} ();
  25060. ;
  25061. return 0;
  25062. }
  25063. _ACEOF
  25064. if ac_fn_c_try_link "$LINENO"; then :
  25065. eval "$as_ac_Lib=yes"
  25066. else
  25067. eval "$as_ac_Lib=no"
  25068. fi
  25069. rm -f core conftest.err conftest.$ac_objext \
  25070. conftest$ac_exeext conftest.$ac_ext
  25071. LIBS=$ac_check_lib_save_LIBS
  25072. fi
  25073. eval ac_res=\$$as_ac_Lib
  25074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25075. $as_echo "$ac_res" >&6; }
  25076. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25077. AST_TONEZONE_FOUND=yes
  25078. else
  25079. AST_TONEZONE_FOUND=no
  25080. fi
  25081. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25082. fi
  25083. # now check for the header.
  25084. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  25085. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  25086. # if --with-TONEZONE=DIR has been specified, use it.
  25087. if test "x${TONEZONE_DIR}" != "x"; then
  25088. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  25089. fi
  25090. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  25091. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  25092. TONEZONE_HEADER_FOUND="1"
  25093. else # check for the header
  25094. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25095. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  25096. ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  25097. if test "x$ac_cv_header_dahdi_tonezone_h" = xyes; then :
  25098. TONEZONE_HEADER_FOUND=1
  25099. else
  25100. TONEZONE_HEADER_FOUND=0
  25101. fi
  25102. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25103. fi
  25104. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  25105. TONEZONE_LIB=""
  25106. TONEZONE_INCLUDE=""
  25107. else
  25108. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25109. TONEZONE_LIB=""
  25110. fi
  25111. PBX_TONEZONE=1
  25112. cat >>confdefs.h <<_ACEOF
  25113. #define HAVE_TONEZONE 1
  25114. _ACEOF
  25115. fi
  25116. fi
  25117. fi
  25118. if test "x${PBX_UUID}" != "x1" -a "${USE_UUID}" != "no"; then
  25119. pbxlibdir=""
  25120. # if --with-UUID=DIR has been specified, use it.
  25121. if test "x${UUID_DIR}" != "x"; then
  25122. if test -d ${UUID_DIR}/lib; then
  25123. pbxlibdir="-L${UUID_DIR}/lib"
  25124. else
  25125. pbxlibdir="-L${UUID_DIR}"
  25126. fi
  25127. fi
  25128. pbxfuncname="uuid_generate_random"
  25129. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25130. AST_UUID_FOUND=yes
  25131. else
  25132. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25133. CFLAGS="${CFLAGS} "
  25134. as_ac_Lib=`$as_echo "ac_cv_lib_uuid_${pbxfuncname}" | $as_tr_sh`
  25135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luuid" >&5
  25136. $as_echo_n "checking for ${pbxfuncname} in -luuid... " >&6; }
  25137. if eval \${$as_ac_Lib+:} false; then :
  25138. $as_echo_n "(cached) " >&6
  25139. else
  25140. ac_check_lib_save_LIBS=$LIBS
  25141. LIBS="-luuid ${pbxlibdir} $LIBS"
  25142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25143. /* end confdefs.h. */
  25144. /* Override any GCC internal prototype to avoid an error.
  25145. Use char because int might match the return type of a GCC
  25146. builtin and then its argument prototype would still apply. */
  25147. #ifdef __cplusplus
  25148. extern "C"
  25149. #endif
  25150. char ${pbxfuncname} ();
  25151. int
  25152. main ()
  25153. {
  25154. return ${pbxfuncname} ();
  25155. ;
  25156. return 0;
  25157. }
  25158. _ACEOF
  25159. if ac_fn_c_try_link "$LINENO"; then :
  25160. eval "$as_ac_Lib=yes"
  25161. else
  25162. eval "$as_ac_Lib=no"
  25163. fi
  25164. rm -f core conftest.err conftest.$ac_objext \
  25165. conftest$ac_exeext conftest.$ac_ext
  25166. LIBS=$ac_check_lib_save_LIBS
  25167. fi
  25168. eval ac_res=\$$as_ac_Lib
  25169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25170. $as_echo "$ac_res" >&6; }
  25171. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25172. AST_UUID_FOUND=yes
  25173. else
  25174. AST_UUID_FOUND=no
  25175. fi
  25176. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25177. fi
  25178. # now check for the header.
  25179. if test "${AST_UUID_FOUND}" = "yes"; then
  25180. UUID_LIB="${pbxlibdir} -luuid "
  25181. # if --with-UUID=DIR has been specified, use it.
  25182. if test "x${UUID_DIR}" != "x"; then
  25183. UUID_INCLUDE="-I${UUID_DIR}/include"
  25184. fi
  25185. UUID_INCLUDE="${UUID_INCLUDE} "
  25186. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  25187. UUID_HEADER_FOUND="1"
  25188. else # check for the header
  25189. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25190. CPPFLAGS="${CPPFLAGS} ${UUID_INCLUDE}"
  25191. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  25192. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  25193. UUID_HEADER_FOUND=1
  25194. else
  25195. UUID_HEADER_FOUND=0
  25196. fi
  25197. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25198. fi
  25199. if test "x${UUID_HEADER_FOUND}" = "x0" ; then
  25200. UUID_LIB=""
  25201. UUID_INCLUDE=""
  25202. else
  25203. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25204. UUID_LIB=""
  25205. fi
  25206. PBX_UUID=1
  25207. cat >>confdefs.h <<_ACEOF
  25208. #define HAVE_UUID 1
  25209. _ACEOF
  25210. fi
  25211. fi
  25212. fi
  25213. if test "${OSARCH}" = "OpenBSD";
  25214. then
  25215. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  25216. pbxlibdir=""
  25217. # if --with-VORBIS=DIR has been specified, use it.
  25218. if test "x${VORBIS_DIR}" != "x"; then
  25219. if test -d ${VORBIS_DIR}/lib; then
  25220. pbxlibdir="-L${VORBIS_DIR}/lib"
  25221. else
  25222. pbxlibdir="-L${VORBIS_DIR}"
  25223. fi
  25224. fi
  25225. pbxfuncname="vorbis_info_init"
  25226. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25227. AST_VORBIS_FOUND=yes
  25228. else
  25229. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25230. CFLAGS="${CFLAGS} "
  25231. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  25232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  25233. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  25234. if eval \${$as_ac_Lib+:} false; then :
  25235. $as_echo_n "(cached) " >&6
  25236. else
  25237. ac_check_lib_save_LIBS=$LIBS
  25238. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  25239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25240. /* end confdefs.h. */
  25241. /* Override any GCC internal prototype to avoid an error.
  25242. Use char because int might match the return type of a GCC
  25243. builtin and then its argument prototype would still apply. */
  25244. #ifdef __cplusplus
  25245. extern "C"
  25246. #endif
  25247. char ${pbxfuncname} ();
  25248. int
  25249. main ()
  25250. {
  25251. return ${pbxfuncname} ();
  25252. ;
  25253. return 0;
  25254. }
  25255. _ACEOF
  25256. if ac_fn_c_try_link "$LINENO"; then :
  25257. eval "$as_ac_Lib=yes"
  25258. else
  25259. eval "$as_ac_Lib=no"
  25260. fi
  25261. rm -f core conftest.err conftest.$ac_objext \
  25262. conftest$ac_exeext conftest.$ac_ext
  25263. LIBS=$ac_check_lib_save_LIBS
  25264. fi
  25265. eval ac_res=\$$as_ac_Lib
  25266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25267. $as_echo "$ac_res" >&6; }
  25268. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25269. AST_VORBIS_FOUND=yes
  25270. else
  25271. AST_VORBIS_FOUND=no
  25272. fi
  25273. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25274. fi
  25275. # now check for the header.
  25276. if test "${AST_VORBIS_FOUND}" = "yes"; then
  25277. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  25278. # if --with-VORBIS=DIR has been specified, use it.
  25279. if test "x${VORBIS_DIR}" != "x"; then
  25280. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  25281. fi
  25282. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  25283. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  25284. VORBIS_HEADER_FOUND="1"
  25285. else # check for the header
  25286. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25287. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  25288. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  25289. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  25290. VORBIS_HEADER_FOUND=1
  25291. else
  25292. VORBIS_HEADER_FOUND=0
  25293. fi
  25294. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25295. fi
  25296. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  25297. VORBIS_LIB=""
  25298. VORBIS_INCLUDE=""
  25299. else
  25300. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25301. VORBIS_LIB=""
  25302. fi
  25303. PBX_VORBIS=1
  25304. cat >>confdefs.h <<_ACEOF
  25305. #define HAVE_VORBIS 1
  25306. _ACEOF
  25307. fi
  25308. fi
  25309. fi
  25310. else
  25311. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  25312. pbxlibdir=""
  25313. # if --with-VORBIS=DIR has been specified, use it.
  25314. if test "x${VORBIS_DIR}" != "x"; then
  25315. if test -d ${VORBIS_DIR}/lib; then
  25316. pbxlibdir="-L${VORBIS_DIR}/lib"
  25317. else
  25318. pbxlibdir="-L${VORBIS_DIR}"
  25319. fi
  25320. fi
  25321. pbxfuncname="vorbis_info_init"
  25322. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25323. AST_VORBIS_FOUND=yes
  25324. else
  25325. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25326. CFLAGS="${CFLAGS} "
  25327. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  25328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  25329. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  25330. if eval \${$as_ac_Lib+:} false; then :
  25331. $as_echo_n "(cached) " >&6
  25332. else
  25333. ac_check_lib_save_LIBS=$LIBS
  25334. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  25335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25336. /* end confdefs.h. */
  25337. /* Override any GCC internal prototype to avoid an error.
  25338. Use char because int might match the return type of a GCC
  25339. builtin and then its argument prototype would still apply. */
  25340. #ifdef __cplusplus
  25341. extern "C"
  25342. #endif
  25343. char ${pbxfuncname} ();
  25344. int
  25345. main ()
  25346. {
  25347. return ${pbxfuncname} ();
  25348. ;
  25349. return 0;
  25350. }
  25351. _ACEOF
  25352. if ac_fn_c_try_link "$LINENO"; then :
  25353. eval "$as_ac_Lib=yes"
  25354. else
  25355. eval "$as_ac_Lib=no"
  25356. fi
  25357. rm -f core conftest.err conftest.$ac_objext \
  25358. conftest$ac_exeext conftest.$ac_ext
  25359. LIBS=$ac_check_lib_save_LIBS
  25360. fi
  25361. eval ac_res=\$$as_ac_Lib
  25362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25363. $as_echo "$ac_res" >&6; }
  25364. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25365. AST_VORBIS_FOUND=yes
  25366. else
  25367. AST_VORBIS_FOUND=no
  25368. fi
  25369. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25370. fi
  25371. # now check for the header.
  25372. if test "${AST_VORBIS_FOUND}" = "yes"; then
  25373. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  25374. # if --with-VORBIS=DIR has been specified, use it.
  25375. if test "x${VORBIS_DIR}" != "x"; then
  25376. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  25377. fi
  25378. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  25379. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  25380. VORBIS_HEADER_FOUND="1"
  25381. else # check for the header
  25382. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25383. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  25384. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  25385. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  25386. VORBIS_HEADER_FOUND=1
  25387. else
  25388. VORBIS_HEADER_FOUND=0
  25389. fi
  25390. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25391. fi
  25392. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  25393. VORBIS_LIB=""
  25394. VORBIS_INCLUDE=""
  25395. else
  25396. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25397. VORBIS_LIB=""
  25398. fi
  25399. PBX_VORBIS=1
  25400. cat >>confdefs.h <<_ACEOF
  25401. #define HAVE_VORBIS 1
  25402. _ACEOF
  25403. fi
  25404. fi
  25405. fi
  25406. fi
  25407. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  25408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  25409. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  25410. saved_cppflags="${CPPFLAGS}"
  25411. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  25412. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  25413. fi
  25414. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  25415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25416. /* end confdefs.h. */
  25417. #include <vorbis/vorbisfile.h>
  25418. int
  25419. main ()
  25420. {
  25421. #if !defined(OV_CALLBACKS_NOCLOSE)
  25422. (void) OV_CALLBACKS_NOCLOSE;
  25423. #endif
  25424. ;
  25425. return 0;
  25426. }
  25427. _ACEOF
  25428. if ac_fn_c_try_compile "$LINENO"; then :
  25429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25430. $as_echo "yes" >&6; }
  25431. PBX_VORBIS_OPEN_CALLBACKS=1
  25432. $as_echo "#define HAVE_VORBIS_OPEN_CALLBACKS 1" >>confdefs.h
  25433. else
  25434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25435. $as_echo "no" >&6; }
  25436. fi
  25437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25438. CPPFLAGS="${saved_cppflags}"
  25439. fi
  25440. ac_ext=cpp
  25441. ac_cpp='$CXXCPP $CPPFLAGS'
  25442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25445. if test "${USE_VPB}" != "no"; then
  25446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  25447. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  25448. saved_libs="${LIBS}"
  25449. saved_cppflags="${CPPFLAGS}"
  25450. if test "x${VPB_DIR}" != "x"; then
  25451. if test -d ${VPB_DIR}/lib; then
  25452. vpblibdir=${VPB_DIR}/lib
  25453. else
  25454. vpblibdir=${VPB_DIR}
  25455. fi
  25456. LIBS="${LIBS} -L${vpblibdir}"
  25457. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  25458. fi
  25459. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  25460. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  25461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25462. /* end confdefs.h. */
  25463. #include <vpbapi.h>
  25464. int
  25465. main ()
  25466. {
  25467. int q = vpb_open(0,0);
  25468. ;
  25469. return 0;
  25470. }
  25471. _ACEOF
  25472. if ac_fn_cxx_try_link "$LINENO"; then :
  25473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25474. $as_echo "yes" >&6; }
  25475. ac_cv_lib_vpb_vpb_open="yes"
  25476. else
  25477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25478. $as_echo "no" >&6; }
  25479. ac_cv_lib_vpb_vpb_open="no"
  25480. fi
  25481. rm -f core conftest.err conftest.$ac_objext \
  25482. conftest$ac_exeext conftest.$ac_ext
  25483. LIBS="${saved_libs}"
  25484. CPPFLAGS="${saved_cppflags}"
  25485. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  25486. VPB_LIB="-lvpb"
  25487. if test "${VPB_DIR}" != ""; then
  25488. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  25489. VPB_INCLUDE="-I${VPB_DIR}/include"
  25490. fi
  25491. PBX_VPB=1
  25492. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  25493. fi
  25494. fi
  25495. ac_ext=c
  25496. ac_cpp='$CPP $CPPFLAGS'
  25497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25500. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  25501. pbxlibdir=""
  25502. # if --with-ZLIB=DIR has been specified, use it.
  25503. if test "x${ZLIB_DIR}" != "x"; then
  25504. if test -d ${ZLIB_DIR}/lib; then
  25505. pbxlibdir="-L${ZLIB_DIR}/lib"
  25506. else
  25507. pbxlibdir="-L${ZLIB_DIR}"
  25508. fi
  25509. fi
  25510. pbxfuncname="compress"
  25511. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25512. AST_ZLIB_FOUND=yes
  25513. else
  25514. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25515. CFLAGS="${CFLAGS} "
  25516. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  25517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
  25518. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  25519. if eval \${$as_ac_Lib+:} false; then :
  25520. $as_echo_n "(cached) " >&6
  25521. else
  25522. ac_check_lib_save_LIBS=$LIBS
  25523. LIBS="-lz ${pbxlibdir} $LIBS"
  25524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25525. /* end confdefs.h. */
  25526. /* Override any GCC internal prototype to avoid an error.
  25527. Use char because int might match the return type of a GCC
  25528. builtin and then its argument prototype would still apply. */
  25529. #ifdef __cplusplus
  25530. extern "C"
  25531. #endif
  25532. char ${pbxfuncname} ();
  25533. int
  25534. main ()
  25535. {
  25536. return ${pbxfuncname} ();
  25537. ;
  25538. return 0;
  25539. }
  25540. _ACEOF
  25541. if ac_fn_c_try_link "$LINENO"; then :
  25542. eval "$as_ac_Lib=yes"
  25543. else
  25544. eval "$as_ac_Lib=no"
  25545. fi
  25546. rm -f core conftest.err conftest.$ac_objext \
  25547. conftest$ac_exeext conftest.$ac_ext
  25548. LIBS=$ac_check_lib_save_LIBS
  25549. fi
  25550. eval ac_res=\$$as_ac_Lib
  25551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25552. $as_echo "$ac_res" >&6; }
  25553. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25554. AST_ZLIB_FOUND=yes
  25555. else
  25556. AST_ZLIB_FOUND=no
  25557. fi
  25558. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25559. fi
  25560. # now check for the header.
  25561. if test "${AST_ZLIB_FOUND}" = "yes"; then
  25562. ZLIB_LIB="${pbxlibdir} -lz "
  25563. # if --with-ZLIB=DIR has been specified, use it.
  25564. if test "x${ZLIB_DIR}" != "x"; then
  25565. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  25566. fi
  25567. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  25568. if test "xzlib.h" = "x" ; then # no header, assume found
  25569. ZLIB_HEADER_FOUND="1"
  25570. else # check for the header
  25571. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25572. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  25573. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  25574. if test "x$ac_cv_header_zlib_h" = xyes; then :
  25575. ZLIB_HEADER_FOUND=1
  25576. else
  25577. ZLIB_HEADER_FOUND=0
  25578. fi
  25579. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25580. fi
  25581. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  25582. ZLIB_LIB=""
  25583. ZLIB_INCLUDE=""
  25584. else
  25585. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25586. ZLIB_LIB=""
  25587. fi
  25588. PBX_ZLIB=1
  25589. cat >>confdefs.h <<_ACEOF
  25590. #define HAVE_ZLIB 1
  25591. _ACEOF
  25592. fi
  25593. fi
  25594. fi
  25595. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  25596. # Does ODBC support wide characters?
  25597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  25598. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  25599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25600. /* end confdefs.h. */
  25601. #include <sql.h>
  25602. #include <sqlext.h>
  25603. int
  25604. main ()
  25605. {
  25606. int foo = SQL_WCHAR
  25607. ;
  25608. return 0;
  25609. }
  25610. _ACEOF
  25611. if ac_fn_c_try_link "$LINENO"; then :
  25612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25613. $as_echo "yes" >&6; }
  25614. $as_echo "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  25615. else
  25616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25617. $as_echo "no" >&6; }
  25618. fi
  25619. rm -f core conftest.err conftest.$ac_objext \
  25620. conftest$ac_exeext conftest.$ac_ext
  25621. fi
  25622. ac_fn_c_check_header_mongrel "$LINENO" "h323.h" "ac_cv_header_h323_h" "$ac_includes_default"
  25623. if test "x$ac_cv_header_h323_h" = xyes; then :
  25624. PBX_H323=1
  25625. else
  25626. PBX_H323=0
  25627. fi
  25628. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  25629. if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
  25630. cat >>confdefs.h <<_ACEOF
  25631. #define HAVE_LINUX_COMPILER_H 1
  25632. _ACEOF
  25633. fi
  25634. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  25635. #include <linux/version.h>
  25636. #ifdef HAVE_LINUX_COMPILER_H
  25637. #include <linux/compiler.h>
  25638. #endif
  25639. "
  25640. if test "x$ac_cv_header_linux_ixjuser_h" = xyes; then :
  25641. PBX_IXJUSER=1
  25642. else
  25643. PBX_IXJUSER=0
  25644. fi
  25645. # Used in res/res_pktccops
  25646. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  25647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  25648. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  25649. saved_cppflags="${CPPFLAGS}"
  25650. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  25651. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  25652. fi
  25653. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  25654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25655. /* end confdefs.h. */
  25656. #include <sys/socket.h>
  25657. int
  25658. main ()
  25659. {
  25660. #if defined(MSG_NOSIGNAL)
  25661. int foo = 0;
  25662. #else
  25663. int foo = bar;
  25664. #endif
  25665. 0
  25666. ;
  25667. return 0;
  25668. }
  25669. _ACEOF
  25670. if ac_fn_c_try_compile "$LINENO"; then :
  25671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25672. $as_echo "yes" >&6; }
  25673. PBX_MSG_NOSIGNAL=1
  25674. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  25675. else
  25676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25677. $as_echo "no" >&6; }
  25678. fi
  25679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25680. CPPFLAGS="${saved_cppflags}"
  25681. fi
  25682. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  25683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  25684. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  25685. saved_cppflags="${CPPFLAGS}"
  25686. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  25687. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  25688. fi
  25689. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  25690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25691. /* end confdefs.h. */
  25692. #include <sys/socket.h>
  25693. int
  25694. main ()
  25695. {
  25696. #if defined(SO_NOSIGPIPE)
  25697. int foo = 0;
  25698. #else
  25699. int foo = bar;
  25700. #endif
  25701. 0
  25702. ;
  25703. return 0;
  25704. }
  25705. _ACEOF
  25706. if ac_fn_c_try_compile "$LINENO"; then :
  25707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25708. $as_echo "yes" >&6; }
  25709. PBX_SO_NOSIGPIPE=1
  25710. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  25711. else
  25712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25713. $as_echo "no" >&6; }
  25714. fi
  25715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25716. CPPFLAGS="${saved_cppflags}"
  25717. fi
  25718. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  25719. PBX_SDL=0
  25720. if test -n "$ac_tool_prefix"; then
  25721. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  25722. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  25723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25724. $as_echo_n "checking for $ac_word... " >&6; }
  25725. if ${ac_cv_path_CONFIG_SDL+:} false; then :
  25726. $as_echo_n "(cached) " >&6
  25727. else
  25728. case $CONFIG_SDL in
  25729. [\\/]* | ?:[\\/]*)
  25730. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  25731. ;;
  25732. *)
  25733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25734. as_dummy="${SDL_DIR}/bin:$PATH"
  25735. for as_dir in $as_dummy
  25736. do
  25737. IFS=$as_save_IFS
  25738. test -z "$as_dir" && as_dir=.
  25739. for ac_exec_ext in '' $ac_executable_extensions; do
  25740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25741. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  25742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25743. break 2
  25744. fi
  25745. done
  25746. done
  25747. IFS=$as_save_IFS
  25748. ;;
  25749. esac
  25750. fi
  25751. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  25752. if test -n "$CONFIG_SDL"; then
  25753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  25754. $as_echo "$CONFIG_SDL" >&6; }
  25755. else
  25756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25757. $as_echo "no" >&6; }
  25758. fi
  25759. fi
  25760. if test -z "$ac_cv_path_CONFIG_SDL"; then
  25761. ac_pt_CONFIG_SDL=$CONFIG_SDL
  25762. # Extract the first word of "sdl-config", so it can be a program name with args.
  25763. set dummy sdl-config; ac_word=$2
  25764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25765. $as_echo_n "checking for $ac_word... " >&6; }
  25766. if ${ac_cv_path_ac_pt_CONFIG_SDL+:} false; then :
  25767. $as_echo_n "(cached) " >&6
  25768. else
  25769. case $ac_pt_CONFIG_SDL in
  25770. [\\/]* | ?:[\\/]*)
  25771. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  25772. ;;
  25773. *)
  25774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25775. as_dummy="${SDL_DIR}/bin:$PATH"
  25776. for as_dir in $as_dummy
  25777. do
  25778. IFS=$as_save_IFS
  25779. test -z "$as_dir" && as_dir=.
  25780. for ac_exec_ext in '' $ac_executable_extensions; do
  25781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25782. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  25783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25784. break 2
  25785. fi
  25786. done
  25787. done
  25788. IFS=$as_save_IFS
  25789. ;;
  25790. esac
  25791. fi
  25792. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  25793. if test -n "$ac_pt_CONFIG_SDL"; then
  25794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  25795. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  25796. else
  25797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25798. $as_echo "no" >&6; }
  25799. fi
  25800. if test "x$ac_pt_CONFIG_SDL" = x; then
  25801. CONFIG_SDL="No"
  25802. else
  25803. case $cross_compiling:$ac_tool_warned in
  25804. yes:)
  25805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25807. ac_tool_warned=yes ;;
  25808. esac
  25809. CONFIG_SDL=$ac_pt_CONFIG_SDL
  25810. fi
  25811. else
  25812. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  25813. fi
  25814. if test ! "x${CONFIG_SDL}" = xNo; then
  25815. if test x"" = x ; then A=--cflags ; else A="" ; fi
  25816. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  25817. SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g")
  25818. if test x"" = x ; then A=--libs ; else A="" ; fi
  25819. SDL_LIB=$(${CONFIG_SDL} $A)
  25820. SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
  25821. if test x"" != x ; then
  25822. saved_cppflags="${CPPFLAGS}"
  25823. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  25824. saved_libs="${LIBS}"
  25825. LIBS=${SDL_LIB}
  25826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25827. /* end confdefs.h. */
  25828. int
  25829. main ()
  25830. {
  25831. ;
  25832. ;
  25833. return 0;
  25834. }
  25835. _ACEOF
  25836. if ac_fn_c_try_link "$LINENO"; then :
  25837. PBX_SDL=1
  25838. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  25839. fi
  25840. rm -f core conftest.err conftest.$ac_objext \
  25841. conftest$ac_exeext conftest.$ac_ext
  25842. CPPFLAGS="${saved_cppflags}"
  25843. LIBS="${saved_libs}"
  25844. else
  25845. PBX_SDL=1
  25846. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  25847. fi
  25848. fi
  25849. fi
  25850. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  25851. pbxlibdir=""
  25852. # if --with-SDL_IMAGE=DIR has been specified, use it.
  25853. if test "x${SDL_IMAGE_DIR}" != "x"; then
  25854. if test -d ${SDL_IMAGE_DIR}/lib; then
  25855. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  25856. else
  25857. pbxlibdir="-L${SDL_IMAGE_DIR}"
  25858. fi
  25859. fi
  25860. pbxfuncname="IMG_Load"
  25861. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25862. AST_SDL_IMAGE_FOUND=yes
  25863. else
  25864. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25865. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  25866. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  25867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
  25868. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  25869. if eval \${$as_ac_Lib+:} false; then :
  25870. $as_echo_n "(cached) " >&6
  25871. else
  25872. ac_check_lib_save_LIBS=$LIBS
  25873. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  25874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25875. /* end confdefs.h. */
  25876. /* Override any GCC internal prototype to avoid an error.
  25877. Use char because int might match the return type of a GCC
  25878. builtin and then its argument prototype would still apply. */
  25879. #ifdef __cplusplus
  25880. extern "C"
  25881. #endif
  25882. char ${pbxfuncname} ();
  25883. int
  25884. main ()
  25885. {
  25886. return ${pbxfuncname} ();
  25887. ;
  25888. return 0;
  25889. }
  25890. _ACEOF
  25891. if ac_fn_c_try_link "$LINENO"; then :
  25892. eval "$as_ac_Lib=yes"
  25893. else
  25894. eval "$as_ac_Lib=no"
  25895. fi
  25896. rm -f core conftest.err conftest.$ac_objext \
  25897. conftest$ac_exeext conftest.$ac_ext
  25898. LIBS=$ac_check_lib_save_LIBS
  25899. fi
  25900. eval ac_res=\$$as_ac_Lib
  25901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25902. $as_echo "$ac_res" >&6; }
  25903. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25904. AST_SDL_IMAGE_FOUND=yes
  25905. else
  25906. AST_SDL_IMAGE_FOUND=no
  25907. fi
  25908. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25909. fi
  25910. # now check for the header.
  25911. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  25912. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  25913. # if --with-SDL_IMAGE=DIR has been specified, use it.
  25914. if test "x${SDL_IMAGE_DIR}" != "x"; then
  25915. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  25916. fi
  25917. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  25918. if test "xSDL_image.h" = "x" ; then # no header, assume found
  25919. SDL_IMAGE_HEADER_FOUND="1"
  25920. else # check for the header
  25921. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25922. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  25923. ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  25924. if test "x$ac_cv_header_SDL_image_h" = xyes; then :
  25925. SDL_IMAGE_HEADER_FOUND=1
  25926. else
  25927. SDL_IMAGE_HEADER_FOUND=0
  25928. fi
  25929. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25930. fi
  25931. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  25932. SDL_IMAGE_LIB=""
  25933. SDL_IMAGE_INCLUDE=""
  25934. else
  25935. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25936. SDL_IMAGE_LIB=""
  25937. fi
  25938. PBX_SDL_IMAGE=1
  25939. cat >>confdefs.h <<_ACEOF
  25940. #define HAVE_SDL_IMAGE 1
  25941. _ACEOF
  25942. fi
  25943. fi
  25944. fi
  25945. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  25946. pbxlibdir=""
  25947. # if --with-FFMPEG=DIR has been specified, use it.
  25948. if test "x${FFMPEG_DIR}" != "x"; then
  25949. if test -d ${FFMPEG_DIR}/lib; then
  25950. pbxlibdir="-L${FFMPEG_DIR}/lib"
  25951. else
  25952. pbxlibdir="-L${FFMPEG_DIR}"
  25953. fi
  25954. fi
  25955. pbxfuncname="sws_getContext"
  25956. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25957. AST_FFMPEG_FOUND=yes
  25958. else
  25959. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25960. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  25961. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  25962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
  25963. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  25964. if eval \${$as_ac_Lib+:} false; then :
  25965. $as_echo_n "(cached) " >&6
  25966. else
  25967. ac_check_lib_save_LIBS=$LIBS
  25968. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  25969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25970. /* end confdefs.h. */
  25971. /* Override any GCC internal prototype to avoid an error.
  25972. Use char because int might match the return type of a GCC
  25973. builtin and then its argument prototype would still apply. */
  25974. #ifdef __cplusplus
  25975. extern "C"
  25976. #endif
  25977. char ${pbxfuncname} ();
  25978. int
  25979. main ()
  25980. {
  25981. return ${pbxfuncname} ();
  25982. ;
  25983. return 0;
  25984. }
  25985. _ACEOF
  25986. if ac_fn_c_try_link "$LINENO"; then :
  25987. eval "$as_ac_Lib=yes"
  25988. else
  25989. eval "$as_ac_Lib=no"
  25990. fi
  25991. rm -f core conftest.err conftest.$ac_objext \
  25992. conftest$ac_exeext conftest.$ac_ext
  25993. LIBS=$ac_check_lib_save_LIBS
  25994. fi
  25995. eval ac_res=\$$as_ac_Lib
  25996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25997. $as_echo "$ac_res" >&6; }
  25998. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25999. AST_FFMPEG_FOUND=yes
  26000. else
  26001. AST_FFMPEG_FOUND=no
  26002. fi
  26003. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26004. fi
  26005. # now check for the header.
  26006. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  26007. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  26008. # if --with-FFMPEG=DIR has been specified, use it.
  26009. if test "x${FFMPEG_DIR}" != "x"; then
  26010. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  26011. fi
  26012. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  26013. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  26014. FFMPEG_HEADER_FOUND="1"
  26015. else # check for the header
  26016. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26017. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  26018. ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  26019. if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
  26020. FFMPEG_HEADER_FOUND=1
  26021. else
  26022. FFMPEG_HEADER_FOUND=0
  26023. fi
  26024. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26025. fi
  26026. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  26027. FFMPEG_LIB=""
  26028. FFMPEG_INCLUDE=""
  26029. else
  26030. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26031. FFMPEG_LIB=""
  26032. fi
  26033. PBX_FFMPEG=1
  26034. cat >>confdefs.h <<_ACEOF
  26035. #define HAVE_FFMPEG 1
  26036. _ACEOF
  26037. fi
  26038. fi
  26039. fi
  26040. # possible places for video4linux version 1
  26041. ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  26042. if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
  26043. cat >>confdefs.h <<_ACEOF
  26044. #define HAVE_VIDEODEV_H 1
  26045. _ACEOF
  26046. fi
  26047. # possible places for X11
  26048. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  26049. pbxlibdir=""
  26050. # if --with-X11=DIR has been specified, use it.
  26051. if test "x${X11_DIR}" != "x"; then
  26052. if test -d ${X11_DIR}/lib; then
  26053. pbxlibdir="-L${X11_DIR}/lib"
  26054. else
  26055. pbxlibdir="-L${X11_DIR}"
  26056. fi
  26057. fi
  26058. pbxfuncname="XOpenDisplay"
  26059. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26060. AST_X11_FOUND=yes
  26061. else
  26062. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26063. CFLAGS="${CFLAGS} "
  26064. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  26065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  26066. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  26067. if eval \${$as_ac_Lib+:} false; then :
  26068. $as_echo_n "(cached) " >&6
  26069. else
  26070. ac_check_lib_save_LIBS=$LIBS
  26071. LIBS="-lX11 ${pbxlibdir} $LIBS"
  26072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26073. /* end confdefs.h. */
  26074. /* Override any GCC internal prototype to avoid an error.
  26075. Use char because int might match the return type of a GCC
  26076. builtin and then its argument prototype would still apply. */
  26077. #ifdef __cplusplus
  26078. extern "C"
  26079. #endif
  26080. char ${pbxfuncname} ();
  26081. int
  26082. main ()
  26083. {
  26084. return ${pbxfuncname} ();
  26085. ;
  26086. return 0;
  26087. }
  26088. _ACEOF
  26089. if ac_fn_c_try_link "$LINENO"; then :
  26090. eval "$as_ac_Lib=yes"
  26091. else
  26092. eval "$as_ac_Lib=no"
  26093. fi
  26094. rm -f core conftest.err conftest.$ac_objext \
  26095. conftest$ac_exeext conftest.$ac_ext
  26096. LIBS=$ac_check_lib_save_LIBS
  26097. fi
  26098. eval ac_res=\$$as_ac_Lib
  26099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26100. $as_echo "$ac_res" >&6; }
  26101. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26102. AST_X11_FOUND=yes
  26103. else
  26104. AST_X11_FOUND=no
  26105. fi
  26106. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26107. fi
  26108. # now check for the header.
  26109. if test "${AST_X11_FOUND}" = "yes"; then
  26110. X11_LIB="${pbxlibdir} -lX11 "
  26111. # if --with-X11=DIR has been specified, use it.
  26112. if test "x${X11_DIR}" != "x"; then
  26113. X11_INCLUDE="-I${X11_DIR}/include"
  26114. fi
  26115. X11_INCLUDE="${X11_INCLUDE} "
  26116. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  26117. X11_HEADER_FOUND="1"
  26118. else # check for the header
  26119. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26120. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  26121. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  26122. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  26123. X11_HEADER_FOUND=1
  26124. else
  26125. X11_HEADER_FOUND=0
  26126. fi
  26127. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26128. fi
  26129. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  26130. X11_LIB=""
  26131. X11_INCLUDE=""
  26132. else
  26133. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26134. X11_LIB=""
  26135. fi
  26136. PBX_X11=1
  26137. cat >>confdefs.h <<_ACEOF
  26138. #define HAVE_X11 1
  26139. _ACEOF
  26140. cat >>confdefs.h <<_ACEOF
  26141. #define HAVE_X11_VERSION standard_path
  26142. _ACEOF
  26143. fi
  26144. fi
  26145. fi
  26146. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  26147. pbxlibdir=""
  26148. # if --with-X11=DIR has been specified, use it.
  26149. if test "x${X11_DIR}" != "x"; then
  26150. if test -d ${X11_DIR}/lib; then
  26151. pbxlibdir="-L${X11_DIR}/lib"
  26152. else
  26153. pbxlibdir="-L${X11_DIR}"
  26154. fi
  26155. fi
  26156. pbxfuncname="XOpenDisplay"
  26157. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26158. AST_X11_FOUND=yes
  26159. else
  26160. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26161. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  26162. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  26163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  26164. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  26165. if eval \${$as_ac_Lib+:} false; then :
  26166. $as_echo_n "(cached) " >&6
  26167. else
  26168. ac_check_lib_save_LIBS=$LIBS
  26169. LIBS="-lX11 ${pbxlibdir} $LIBS"
  26170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26171. /* end confdefs.h. */
  26172. /* Override any GCC internal prototype to avoid an error.
  26173. Use char because int might match the return type of a GCC
  26174. builtin and then its argument prototype would still apply. */
  26175. #ifdef __cplusplus
  26176. extern "C"
  26177. #endif
  26178. char ${pbxfuncname} ();
  26179. int
  26180. main ()
  26181. {
  26182. return ${pbxfuncname} ();
  26183. ;
  26184. return 0;
  26185. }
  26186. _ACEOF
  26187. if ac_fn_c_try_link "$LINENO"; then :
  26188. eval "$as_ac_Lib=yes"
  26189. else
  26190. eval "$as_ac_Lib=no"
  26191. fi
  26192. rm -f core conftest.err conftest.$ac_objext \
  26193. conftest$ac_exeext conftest.$ac_ext
  26194. LIBS=$ac_check_lib_save_LIBS
  26195. fi
  26196. eval ac_res=\$$as_ac_Lib
  26197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26198. $as_echo "$ac_res" >&6; }
  26199. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26200. AST_X11_FOUND=yes
  26201. else
  26202. AST_X11_FOUND=no
  26203. fi
  26204. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26205. fi
  26206. # now check for the header.
  26207. if test "${AST_X11_FOUND}" = "yes"; then
  26208. X11_LIB="${pbxlibdir} -lX11 "
  26209. # if --with-X11=DIR has been specified, use it.
  26210. if test "x${X11_DIR}" != "x"; then
  26211. X11_INCLUDE="-I${X11_DIR}/include"
  26212. fi
  26213. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  26214. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  26215. X11_HEADER_FOUND="1"
  26216. else # check for the header
  26217. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26218. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  26219. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  26220. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  26221. X11_HEADER_FOUND=1
  26222. else
  26223. X11_HEADER_FOUND=0
  26224. fi
  26225. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26226. fi
  26227. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  26228. X11_LIB=""
  26229. X11_INCLUDE=""
  26230. else
  26231. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26232. X11_LIB=""
  26233. fi
  26234. PBX_X11=1
  26235. cat >>confdefs.h <<_ACEOF
  26236. #define HAVE_X11 1
  26237. _ACEOF
  26238. cat >>confdefs.h <<_ACEOF
  26239. #define HAVE_X11_VERSION X11R6
  26240. _ACEOF
  26241. fi
  26242. fi
  26243. fi
  26244. PBX_LAUNCHD=0
  26245. if test "${cross_compiling}" = "no";
  26246. then
  26247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  26248. $as_echo_n "checking for /sbin/launchd... " >&6; }
  26249. if ${ac_cv_file__sbin_launchd+:} false; then :
  26250. $as_echo_n "(cached) " >&6
  26251. else
  26252. test "$cross_compiling" = yes &&
  26253. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  26254. if test -r "/sbin/launchd"; then
  26255. ac_cv_file__sbin_launchd=yes
  26256. else
  26257. ac_cv_file__sbin_launchd=no
  26258. fi
  26259. fi
  26260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  26261. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  26262. if test "x$ac_cv_file__sbin_launchd" = xyes; then :
  26263. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  26264. fi
  26265. if test "${HAVE_SBIN_LAUNCHD}" = 1; then
  26266. PBX_LAUNCHD=1
  26267. fi
  26268. fi
  26269. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  26270. pkg_failed=no
  26271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
  26272. $as_echo_n "checking for GTK2... " >&6; }
  26273. if test -n "$GTK2_CFLAGS"; then
  26274. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  26275. elif test -n "$PKG_CONFIG"; then
  26276. if test -n "$PKG_CONFIG" && \
  26277. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  26278. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  26279. ac_status=$?
  26280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26281. test $ac_status = 0; }; then
  26282. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  26283. test "x$?" != "x0" && pkg_failed=yes
  26284. else
  26285. pkg_failed=yes
  26286. fi
  26287. else
  26288. pkg_failed=untried
  26289. fi
  26290. if test -n "$GTK2_LIBS"; then
  26291. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  26292. elif test -n "$PKG_CONFIG"; then
  26293. if test -n "$PKG_CONFIG" && \
  26294. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  26295. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  26296. ac_status=$?
  26297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26298. test $ac_status = 0; }; then
  26299. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  26300. test "x$?" != "x0" && pkg_failed=yes
  26301. else
  26302. pkg_failed=yes
  26303. fi
  26304. else
  26305. pkg_failed=untried
  26306. fi
  26307. if test $pkg_failed = yes; then
  26308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26309. $as_echo "no" >&6; }
  26310. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26311. _pkg_short_errors_supported=yes
  26312. else
  26313. _pkg_short_errors_supported=no
  26314. fi
  26315. if test $_pkg_short_errors_supported = yes; then
  26316. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  26317. else
  26318. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  26319. fi
  26320. # Put the nasty error message in config.log where it belongs
  26321. echo "$GTK2_PKG_ERRORS" >&5
  26322. PBX_GTK2=0
  26323. elif test $pkg_failed = untried; then
  26324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26325. $as_echo "no" >&6; }
  26326. PBX_GTK2=0
  26327. else
  26328. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  26329. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  26330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26331. $as_echo "yes" >&6; }
  26332. PBX_GTK2=1
  26333. GTK2_INCLUDE="$GTK2_CFLAGS"
  26334. GTK2_LIB="$GTK2_LIBS"
  26335. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  26336. fi
  26337. fi
  26338. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  26339. # or iODBC
  26340. PBX_GENERIC_ODBC=0
  26341. if test "${PBX_UNIXODBC}" = 1; then
  26342. PBX_GENERIC_ODBC=1
  26343. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  26344. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  26345. elif test "${PBX_IODBC}" = 1; then
  26346. PBX_GENERIC_ODBC=1
  26347. GENERIC_ODBC_LIB="${IODBC_LIB}"
  26348. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  26349. fi
  26350. PBX_SYSLOG=0
  26351. if test "${ac_cv_header_syslog_h}" = "yes"; then
  26352. # syslog facilities
  26353. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  26354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  26355. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  26356. saved_cppflags="${CPPFLAGS}"
  26357. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  26358. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  26359. fi
  26360. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  26361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26362. /* end confdefs.h. */
  26363. #include <syslog.h>
  26364. int
  26365. main ()
  26366. {
  26367. #if defined(LOG_AUTH)
  26368. int foo = 0;
  26369. #else
  26370. int foo = bar;
  26371. #endif
  26372. 0
  26373. ;
  26374. return 0;
  26375. }
  26376. _ACEOF
  26377. if ac_fn_c_try_compile "$LINENO"; then :
  26378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26379. $as_echo "yes" >&6; }
  26380. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  26381. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  26382. else
  26383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26384. $as_echo "no" >&6; }
  26385. fi
  26386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26387. CPPFLAGS="${saved_cppflags}"
  26388. fi
  26389. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  26390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  26391. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  26392. saved_cppflags="${CPPFLAGS}"
  26393. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  26394. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  26395. fi
  26396. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  26397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26398. /* end confdefs.h. */
  26399. #include <syslog.h>
  26400. int
  26401. main ()
  26402. {
  26403. #if defined(LOG_AUTHPRIV)
  26404. int foo = 0;
  26405. #else
  26406. int foo = bar;
  26407. #endif
  26408. 0
  26409. ;
  26410. return 0;
  26411. }
  26412. _ACEOF
  26413. if ac_fn_c_try_compile "$LINENO"; then :
  26414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26415. $as_echo "yes" >&6; }
  26416. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  26417. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  26418. else
  26419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26420. $as_echo "no" >&6; }
  26421. fi
  26422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26423. CPPFLAGS="${saved_cppflags}"
  26424. fi
  26425. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  26426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  26427. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  26428. saved_cppflags="${CPPFLAGS}"
  26429. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  26430. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  26431. fi
  26432. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  26433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26434. /* end confdefs.h. */
  26435. #include <syslog.h>
  26436. int
  26437. main ()
  26438. {
  26439. #if defined(LOG_CRON)
  26440. int foo = 0;
  26441. #else
  26442. int foo = bar;
  26443. #endif
  26444. 0
  26445. ;
  26446. return 0;
  26447. }
  26448. _ACEOF
  26449. if ac_fn_c_try_compile "$LINENO"; then :
  26450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26451. $as_echo "yes" >&6; }
  26452. PBX_SYSLOG_FACILITY_LOG_CRON=1
  26453. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  26454. else
  26455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26456. $as_echo "no" >&6; }
  26457. fi
  26458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26459. CPPFLAGS="${saved_cppflags}"
  26460. fi
  26461. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  26462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  26463. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  26464. saved_cppflags="${CPPFLAGS}"
  26465. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  26466. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  26467. fi
  26468. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  26469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26470. /* end confdefs.h. */
  26471. #include <syslog.h>
  26472. int
  26473. main ()
  26474. {
  26475. #if defined(LOG_DAEMON)
  26476. int foo = 0;
  26477. #else
  26478. int foo = bar;
  26479. #endif
  26480. 0
  26481. ;
  26482. return 0;
  26483. }
  26484. _ACEOF
  26485. if ac_fn_c_try_compile "$LINENO"; then :
  26486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26487. $as_echo "yes" >&6; }
  26488. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  26489. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  26490. else
  26491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26492. $as_echo "no" >&6; }
  26493. fi
  26494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26495. CPPFLAGS="${saved_cppflags}"
  26496. fi
  26497. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  26498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  26499. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  26500. saved_cppflags="${CPPFLAGS}"
  26501. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  26502. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  26503. fi
  26504. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  26505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26506. /* end confdefs.h. */
  26507. #include <syslog.h>
  26508. int
  26509. main ()
  26510. {
  26511. #if defined(LOG_FTP)
  26512. int foo = 0;
  26513. #else
  26514. int foo = bar;
  26515. #endif
  26516. 0
  26517. ;
  26518. return 0;
  26519. }
  26520. _ACEOF
  26521. if ac_fn_c_try_compile "$LINENO"; then :
  26522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26523. $as_echo "yes" >&6; }
  26524. PBX_SYSLOG_FACILITY_LOG_FTP=1
  26525. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  26526. else
  26527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26528. $as_echo "no" >&6; }
  26529. fi
  26530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26531. CPPFLAGS="${saved_cppflags}"
  26532. fi
  26533. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  26534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  26535. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  26536. saved_cppflags="${CPPFLAGS}"
  26537. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  26538. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  26539. fi
  26540. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  26541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26542. /* end confdefs.h. */
  26543. #include <syslog.h>
  26544. int
  26545. main ()
  26546. {
  26547. #if defined(LOG_KERN)
  26548. int foo = 0;
  26549. #else
  26550. int foo = bar;
  26551. #endif
  26552. 0
  26553. ;
  26554. return 0;
  26555. }
  26556. _ACEOF
  26557. if ac_fn_c_try_compile "$LINENO"; then :
  26558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26559. $as_echo "yes" >&6; }
  26560. PBX_SYSLOG_FACILITY_LOG_KERN=1
  26561. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  26562. else
  26563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26564. $as_echo "no" >&6; }
  26565. fi
  26566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26567. CPPFLAGS="${saved_cppflags}"
  26568. fi
  26569. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  26570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  26571. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  26572. saved_cppflags="${CPPFLAGS}"
  26573. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  26574. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  26575. fi
  26576. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  26577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26578. /* end confdefs.h. */
  26579. #include <syslog.h>
  26580. int
  26581. main ()
  26582. {
  26583. #if defined(LOG_LPR)
  26584. int foo = 0;
  26585. #else
  26586. int foo = bar;
  26587. #endif
  26588. 0
  26589. ;
  26590. return 0;
  26591. }
  26592. _ACEOF
  26593. if ac_fn_c_try_compile "$LINENO"; then :
  26594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26595. $as_echo "yes" >&6; }
  26596. PBX_SYSLOG_FACILITY_LOG_LPR=1
  26597. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  26598. else
  26599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26600. $as_echo "no" >&6; }
  26601. fi
  26602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26603. CPPFLAGS="${saved_cppflags}"
  26604. fi
  26605. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  26606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  26607. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  26608. saved_cppflags="${CPPFLAGS}"
  26609. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  26610. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  26611. fi
  26612. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  26613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26614. /* end confdefs.h. */
  26615. #include <syslog.h>
  26616. int
  26617. main ()
  26618. {
  26619. #if defined(LOG_MAIL)
  26620. int foo = 0;
  26621. #else
  26622. int foo = bar;
  26623. #endif
  26624. 0
  26625. ;
  26626. return 0;
  26627. }
  26628. _ACEOF
  26629. if ac_fn_c_try_compile "$LINENO"; then :
  26630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26631. $as_echo "yes" >&6; }
  26632. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  26633. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  26634. else
  26635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26636. $as_echo "no" >&6; }
  26637. fi
  26638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26639. CPPFLAGS="${saved_cppflags}"
  26640. fi
  26641. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  26642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  26643. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  26644. saved_cppflags="${CPPFLAGS}"
  26645. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  26646. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  26647. fi
  26648. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  26649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26650. /* end confdefs.h. */
  26651. #include <syslog.h>
  26652. int
  26653. main ()
  26654. {
  26655. #if defined(LOG_NEWS)
  26656. int foo = 0;
  26657. #else
  26658. int foo = bar;
  26659. #endif
  26660. 0
  26661. ;
  26662. return 0;
  26663. }
  26664. _ACEOF
  26665. if ac_fn_c_try_compile "$LINENO"; then :
  26666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26667. $as_echo "yes" >&6; }
  26668. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  26669. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  26670. else
  26671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26672. $as_echo "no" >&6; }
  26673. fi
  26674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26675. CPPFLAGS="${saved_cppflags}"
  26676. fi
  26677. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  26678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  26679. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  26680. saved_cppflags="${CPPFLAGS}"
  26681. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  26682. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  26683. fi
  26684. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  26685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26686. /* end confdefs.h. */
  26687. #include <syslog.h>
  26688. int
  26689. main ()
  26690. {
  26691. #if defined(LOG_SYSLOG)
  26692. int foo = 0;
  26693. #else
  26694. int foo = bar;
  26695. #endif
  26696. 0
  26697. ;
  26698. return 0;
  26699. }
  26700. _ACEOF
  26701. if ac_fn_c_try_compile "$LINENO"; then :
  26702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26703. $as_echo "yes" >&6; }
  26704. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  26705. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  26706. else
  26707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26708. $as_echo "no" >&6; }
  26709. fi
  26710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26711. CPPFLAGS="${saved_cppflags}"
  26712. fi
  26713. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  26714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  26715. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  26716. saved_cppflags="${CPPFLAGS}"
  26717. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  26718. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  26719. fi
  26720. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  26721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26722. /* end confdefs.h. */
  26723. #include <syslog.h>
  26724. int
  26725. main ()
  26726. {
  26727. #if defined(LOG_UUCP)
  26728. int foo = 0;
  26729. #else
  26730. int foo = bar;
  26731. #endif
  26732. 0
  26733. ;
  26734. return 0;
  26735. }
  26736. _ACEOF
  26737. if ac_fn_c_try_compile "$LINENO"; then :
  26738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26739. $as_echo "yes" >&6; }
  26740. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  26741. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  26742. else
  26743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26744. $as_echo "no" >&6; }
  26745. fi
  26746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26747. CPPFLAGS="${saved_cppflags}"
  26748. fi
  26749. PBX_SYSLOG=1
  26750. fi
  26751. if test -f makeopts; then
  26752. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  26753. else
  26754. touch makeopts.acbak
  26755. fi
  26756. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  26757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  26758. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  26759. err=0;
  26760. for i in ${ac_mandatory_list}; do
  26761. eval "a=\${PBX_$i}"
  26762. if test "x${a}" = "x1" ; then continue; fi
  26763. if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  26764. $as_echo "fail" >&6; } ; fi
  26765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  26766. $as_echo "" >&6; }
  26767. eval "a=\${${i}_OPTION}"
  26768. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  26769. $as_echo "$as_me: ***" >&6;}
  26770. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  26771. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  26772. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  26773. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  26774. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  26775. $as_echo "$as_me: *** including --without-${a}." >&6;}
  26776. err=1
  26777. done
  26778. if test $err = 1 ; then exit 1; fi
  26779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  26780. $as_echo "ok" >&6; }
  26781. if test -f build_tools/menuselect-deps; then
  26782. # extract old values of all PBX_ variables from menuselect-deps
  26783. # and preserve them so that menuselect can determine whether
  26784. # any previously-met dependencies are no longer met and warn
  26785. # the user appropriately
  26786. while IFS="=:" read var val old_val; do
  26787. eval "PBX_${var}=\${PBX_${var}}:${val}"
  26788. done < build_tools/menuselect-deps
  26789. fi
  26790. cat >confcache <<\_ACEOF
  26791. # This file is a shell script that caches the results of configure
  26792. # tests run on this system so they can be shared between configure
  26793. # scripts and configure runs, see configure's option --config-cache.
  26794. # It is not useful on other systems. If it contains results you don't
  26795. # want to keep, you may remove or edit it.
  26796. #
  26797. # config.status only pays attention to the cache file if you give it
  26798. # the --recheck option to rerun configure.
  26799. #
  26800. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26801. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26802. # following values.
  26803. _ACEOF
  26804. # The following way of writing the cache mishandles newlines in values,
  26805. # but we know of no workaround that is simple, portable, and efficient.
  26806. # So, we kill variables containing newlines.
  26807. # Ultrix sh set writes to stderr and can't be redirected directly,
  26808. # and sets the high bit in the cache file unless we assign to the vars.
  26809. (
  26810. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26811. eval ac_val=\$$ac_var
  26812. case $ac_val in #(
  26813. *${as_nl}*)
  26814. case $ac_var in #(
  26815. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26816. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26817. esac
  26818. case $ac_var in #(
  26819. _ | IFS | as_nl) ;; #(
  26820. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26821. *) { eval $ac_var=; unset $ac_var;} ;;
  26822. esac ;;
  26823. esac
  26824. done
  26825. (set) 2>&1 |
  26826. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26827. *${as_nl}ac_space=\ *)
  26828. # `set' does not quote correctly, so add quotes: double-quote
  26829. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26830. sed -n \
  26831. "s/'/'\\\\''/g;
  26832. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26833. ;; #(
  26834. *)
  26835. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26836. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26837. ;;
  26838. esac |
  26839. sort
  26840. ) |
  26841. sed '
  26842. /^ac_cv_env_/b end
  26843. t clear
  26844. :clear
  26845. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  26846. t end
  26847. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26848. :end' >>confcache
  26849. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26850. if test -w "$cache_file"; then
  26851. if test "x$cache_file" != "x/dev/null"; then
  26852. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26853. $as_echo "$as_me: updating cache $cache_file" >&6;}
  26854. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26855. cat confcache >"$cache_file"
  26856. else
  26857. case $cache_file in #(
  26858. */* | ?:*)
  26859. mv -f confcache "$cache_file"$$ &&
  26860. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26861. *)
  26862. mv -f confcache "$cache_file" ;;
  26863. esac
  26864. fi
  26865. fi
  26866. else
  26867. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26868. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  26869. fi
  26870. fi
  26871. rm -f confcache
  26872. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26873. # Let make expand exec_prefix.
  26874. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26875. DEFS=-DHAVE_CONFIG_H
  26876. ac_libobjs=
  26877. ac_ltlibobjs=
  26878. U=
  26879. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26880. # 1. Remove the extension, and $U if already installed.
  26881. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26882. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  26883. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26884. # will be set to the directory where LIBOBJS objects are built.
  26885. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26886. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26887. done
  26888. LIBOBJS=$ac_libobjs
  26889. LTLIBOBJS=$ac_ltlibobjs
  26890. : "${CONFIG_STATUS=./config.status}"
  26891. ac_write_fail=0
  26892. ac_clean_files_save=$ac_clean_files
  26893. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26894. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26895. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  26896. as_write_fail=0
  26897. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26898. #! $SHELL
  26899. # Generated by $as_me.
  26900. # Run this file to recreate the current configuration.
  26901. # Compiler output produced by configure, useful for debugging
  26902. # configure, is in config.log if it exists.
  26903. debug=false
  26904. ac_cs_recheck=false
  26905. ac_cs_silent=false
  26906. SHELL=\${CONFIG_SHELL-$SHELL}
  26907. export SHELL
  26908. _ASEOF
  26909. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26910. ## -------------------- ##
  26911. ## M4sh Initialization. ##
  26912. ## -------------------- ##
  26913. # Be more Bourne compatible
  26914. DUALCASE=1; export DUALCASE # for MKS sh
  26915. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26916. emulate sh
  26917. NULLCMD=:
  26918. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26919. # is contrary to our usage. Disable this feature.
  26920. alias -g '${1+"$@"}'='"$@"'
  26921. setopt NO_GLOB_SUBST
  26922. else
  26923. case `(set -o) 2>/dev/null` in #(
  26924. *posix*) :
  26925. set -o posix ;; #(
  26926. *) :
  26927. ;;
  26928. esac
  26929. fi
  26930. as_nl='
  26931. '
  26932. export as_nl
  26933. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  26934. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  26935. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  26936. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  26937. # Prefer a ksh shell builtin over an external printf program on Solaris,
  26938. # but without wasting forks for bash or zsh.
  26939. if test -z "$BASH_VERSION$ZSH_VERSION" \
  26940. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  26941. as_echo='print -r --'
  26942. as_echo_n='print -rn --'
  26943. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  26944. as_echo='printf %s\n'
  26945. as_echo_n='printf %s'
  26946. else
  26947. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  26948. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  26949. as_echo_n='/usr/ucb/echo -n'
  26950. else
  26951. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  26952. as_echo_n_body='eval
  26953. arg=$1;
  26954. case $arg in #(
  26955. *"$as_nl"*)
  26956. expr "X$arg" : "X\\(.*\\)$as_nl";
  26957. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  26958. esac;
  26959. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  26960. '
  26961. export as_echo_n_body
  26962. as_echo_n='sh -c $as_echo_n_body as_echo'
  26963. fi
  26964. export as_echo_body
  26965. as_echo='sh -c $as_echo_body as_echo'
  26966. fi
  26967. # The user is always right.
  26968. if test "${PATH_SEPARATOR+set}" != set; then
  26969. PATH_SEPARATOR=:
  26970. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26971. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26972. PATH_SEPARATOR=';'
  26973. }
  26974. fi
  26975. # IFS
  26976. # We need space, tab and new line, in precisely that order. Quoting is
  26977. # there to prevent editors from complaining about space-tab.
  26978. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  26979. # splitting by setting IFS to empty value.)
  26980. IFS=" "" $as_nl"
  26981. # Find who we are. Look in the path if we contain no directory separator.
  26982. as_myself=
  26983. case $0 in #((
  26984. *[\\/]* ) as_myself=$0 ;;
  26985. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26986. for as_dir in $PATH
  26987. do
  26988. IFS=$as_save_IFS
  26989. test -z "$as_dir" && as_dir=.
  26990. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  26991. done
  26992. IFS=$as_save_IFS
  26993. ;;
  26994. esac
  26995. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26996. # in which case we are not to be found in the path.
  26997. if test "x$as_myself" = x; then
  26998. as_myself=$0
  26999. fi
  27000. if test ! -f "$as_myself"; then
  27001. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  27002. exit 1
  27003. fi
  27004. # Unset variables that we do not need and which cause bugs (e.g. in
  27005. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  27006. # suppresses any "Segmentation fault" message there. '((' could
  27007. # trigger a bug in pdksh 5.2.14.
  27008. for as_var in BASH_ENV ENV MAIL MAILPATH
  27009. do eval test x\${$as_var+set} = xset \
  27010. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  27011. done
  27012. PS1='$ '
  27013. PS2='> '
  27014. PS4='+ '
  27015. # NLS nuisances.
  27016. LC_ALL=C
  27017. export LC_ALL
  27018. LANGUAGE=C
  27019. export LANGUAGE
  27020. # CDPATH.
  27021. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27022. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  27023. # ----------------------------------------
  27024. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  27025. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  27026. # script with STATUS, using 1 if that was 0.
  27027. as_fn_error ()
  27028. {
  27029. as_status=$1; test $as_status -eq 0 && as_status=1
  27030. if test "$4"; then
  27031. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  27032. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  27033. fi
  27034. $as_echo "$as_me: error: $2" >&2
  27035. as_fn_exit $as_status
  27036. } # as_fn_error
  27037. # as_fn_set_status STATUS
  27038. # -----------------------
  27039. # Set $? to STATUS, without forking.
  27040. as_fn_set_status ()
  27041. {
  27042. return $1
  27043. } # as_fn_set_status
  27044. # as_fn_exit STATUS
  27045. # -----------------
  27046. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  27047. as_fn_exit ()
  27048. {
  27049. set +e
  27050. as_fn_set_status $1
  27051. exit $1
  27052. } # as_fn_exit
  27053. # as_fn_unset VAR
  27054. # ---------------
  27055. # Portably unset VAR.
  27056. as_fn_unset ()
  27057. {
  27058. { eval $1=; unset $1;}
  27059. }
  27060. as_unset=as_fn_unset
  27061. # as_fn_append VAR VALUE
  27062. # ----------------------
  27063. # Append the text in VALUE to the end of the definition contained in VAR. Take
  27064. # advantage of any shell optimizations that allow amortized linear growth over
  27065. # repeated appends, instead of the typical quadratic growth present in naive
  27066. # implementations.
  27067. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  27068. eval 'as_fn_append ()
  27069. {
  27070. eval $1+=\$2
  27071. }'
  27072. else
  27073. as_fn_append ()
  27074. {
  27075. eval $1=\$$1\$2
  27076. }
  27077. fi # as_fn_append
  27078. # as_fn_arith ARG...
  27079. # ------------------
  27080. # Perform arithmetic evaluation on the ARGs, and store the result in the
  27081. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  27082. # must be portable across $(()) and expr.
  27083. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  27084. eval 'as_fn_arith ()
  27085. {
  27086. as_val=$(( $* ))
  27087. }'
  27088. else
  27089. as_fn_arith ()
  27090. {
  27091. as_val=`expr "$@" || test $? -eq 1`
  27092. }
  27093. fi # as_fn_arith
  27094. if expr a : '\(a\)' >/dev/null 2>&1 &&
  27095. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  27096. as_expr=expr
  27097. else
  27098. as_expr=false
  27099. fi
  27100. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  27101. as_basename=basename
  27102. else
  27103. as_basename=false
  27104. fi
  27105. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  27106. as_dirname=dirname
  27107. else
  27108. as_dirname=false
  27109. fi
  27110. as_me=`$as_basename -- "$0" ||
  27111. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27112. X"$0" : 'X\(//\)$' \| \
  27113. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  27114. $as_echo X/"$0" |
  27115. sed '/^.*\/\([^/][^/]*\)\/*$/{
  27116. s//\1/
  27117. q
  27118. }
  27119. /^X\/\(\/\/\)$/{
  27120. s//\1/
  27121. q
  27122. }
  27123. /^X\/\(\/\).*/{
  27124. s//\1/
  27125. q
  27126. }
  27127. s/.*/./; q'`
  27128. # Avoid depending upon Character Ranges.
  27129. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27130. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27131. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27132. as_cr_digits='0123456789'
  27133. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27134. ECHO_C= ECHO_N= ECHO_T=
  27135. case `echo -n x` in #(((((
  27136. -n*)
  27137. case `echo 'xy\c'` in
  27138. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  27139. xy) ECHO_C='\c';;
  27140. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  27141. ECHO_T=' ';;
  27142. esac;;
  27143. *)
  27144. ECHO_N='-n';;
  27145. esac
  27146. rm -f conf$$ conf$$.exe conf$$.file
  27147. if test -d conf$$.dir; then
  27148. rm -f conf$$.dir/conf$$.file
  27149. else
  27150. rm -f conf$$.dir
  27151. mkdir conf$$.dir 2>/dev/null
  27152. fi
  27153. if (echo >conf$$.file) 2>/dev/null; then
  27154. if ln -s conf$$.file conf$$ 2>/dev/null; then
  27155. as_ln_s='ln -s'
  27156. # ... but there are two gotchas:
  27157. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  27158. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  27159. # In both cases, we have to default to `cp -pR'.
  27160. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  27161. as_ln_s='cp -pR'
  27162. elif ln conf$$.file conf$$ 2>/dev/null; then
  27163. as_ln_s=ln
  27164. else
  27165. as_ln_s='cp -pR'
  27166. fi
  27167. else
  27168. as_ln_s='cp -pR'
  27169. fi
  27170. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  27171. rmdir conf$$.dir 2>/dev/null
  27172. # as_fn_mkdir_p
  27173. # -------------
  27174. # Create "$as_dir" as a directory, including parents if necessary.
  27175. as_fn_mkdir_p ()
  27176. {
  27177. case $as_dir in #(
  27178. -*) as_dir=./$as_dir;;
  27179. esac
  27180. test -d "$as_dir" || eval $as_mkdir_p || {
  27181. as_dirs=
  27182. while :; do
  27183. case $as_dir in #(
  27184. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  27185. *) as_qdir=$as_dir;;
  27186. esac
  27187. as_dirs="'$as_qdir' $as_dirs"
  27188. as_dir=`$as_dirname -- "$as_dir" ||
  27189. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27190. X"$as_dir" : 'X\(//\)[^/]' \| \
  27191. X"$as_dir" : 'X\(//\)$' \| \
  27192. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  27193. $as_echo X"$as_dir" |
  27194. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27195. s//\1/
  27196. q
  27197. }
  27198. /^X\(\/\/\)[^/].*/{
  27199. s//\1/
  27200. q
  27201. }
  27202. /^X\(\/\/\)$/{
  27203. s//\1/
  27204. q
  27205. }
  27206. /^X\(\/\).*/{
  27207. s//\1/
  27208. q
  27209. }
  27210. s/.*/./; q'`
  27211. test -d "$as_dir" && break
  27212. done
  27213. test -z "$as_dirs" || eval "mkdir $as_dirs"
  27214. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  27215. } # as_fn_mkdir_p
  27216. if mkdir -p . 2>/dev/null; then
  27217. as_mkdir_p='mkdir -p "$as_dir"'
  27218. else
  27219. test -d ./-p && rmdir ./-p
  27220. as_mkdir_p=false
  27221. fi
  27222. # as_fn_executable_p FILE
  27223. # -----------------------
  27224. # Test if FILE is an executable regular file.
  27225. as_fn_executable_p ()
  27226. {
  27227. test -f "$1" && test -x "$1"
  27228. } # as_fn_executable_p
  27229. as_test_x='test -x'
  27230. as_executable_p=as_fn_executable_p
  27231. # Sed expression to map a string onto a valid CPP name.
  27232. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27233. # Sed expression to map a string onto a valid variable name.
  27234. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27235. exec 6>&1
  27236. ## ----------------------------------- ##
  27237. ## Main body of $CONFIG_STATUS script. ##
  27238. ## ----------------------------------- ##
  27239. _ASEOF
  27240. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  27241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27242. # Save the log message, to keep $0 and so on meaningful, and to
  27243. # report actual input values of CONFIG_FILES etc. instead of their
  27244. # values after options handling.
  27245. ac_log="
  27246. This file was extended by asterisk $as_me trunk, which was
  27247. generated by GNU Autoconf 2.69. Invocation command line was
  27248. CONFIG_FILES = $CONFIG_FILES
  27249. CONFIG_HEADERS = $CONFIG_HEADERS
  27250. CONFIG_LINKS = $CONFIG_LINKS
  27251. CONFIG_COMMANDS = $CONFIG_COMMANDS
  27252. $ $0 $@
  27253. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  27254. "
  27255. _ACEOF
  27256. case $ac_config_files in *"
  27257. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  27258. esac
  27259. case $ac_config_headers in *"
  27260. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  27261. esac
  27262. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27263. # Files that config.status was made for.
  27264. config_files="$ac_config_files"
  27265. config_headers="$ac_config_headers"
  27266. _ACEOF
  27267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27268. ac_cs_usage="\
  27269. \`$as_me' instantiates files and other configuration actions
  27270. from templates according to the current configuration. Unless the files
  27271. and actions are specified as TAGs, all are instantiated by default.
  27272. Usage: $0 [OPTION]... [TAG]...
  27273. -h, --help print this help, then exit
  27274. -V, --version print version number and configuration settings, then exit
  27275. --config print configuration, then exit
  27276. -q, --quiet, --silent
  27277. do not print progress messages
  27278. -d, --debug don't remove temporary files
  27279. --recheck update $as_me by reconfiguring in the same conditions
  27280. --file=FILE[:TEMPLATE]
  27281. instantiate the configuration file FILE
  27282. --header=FILE[:TEMPLATE]
  27283. instantiate the configuration header FILE
  27284. Configuration files:
  27285. $config_files
  27286. Configuration headers:
  27287. $config_headers
  27288. Report bugs to <https://issues.asterisk.org>."
  27289. _ACEOF
  27290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27291. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  27292. ac_cs_version="\\
  27293. asterisk config.status trunk
  27294. configured by $0, generated by GNU Autoconf 2.69,
  27295. with options \\"\$ac_cs_config\\"
  27296. Copyright (C) 2012 Free Software Foundation, Inc.
  27297. This config.status script is free software; the Free Software Foundation
  27298. gives unlimited permission to copy, distribute and modify it."
  27299. ac_pwd='$ac_pwd'
  27300. srcdir='$srcdir'
  27301. INSTALL='$INSTALL'
  27302. AWK='$AWK'
  27303. test -n "\$AWK" || AWK=awk
  27304. _ACEOF
  27305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27306. # The default lists apply if the user does not specify any file.
  27307. ac_need_defaults=:
  27308. while test $# != 0
  27309. do
  27310. case $1 in
  27311. --*=?*)
  27312. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27313. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  27314. ac_shift=:
  27315. ;;
  27316. --*=)
  27317. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27318. ac_optarg=
  27319. ac_shift=:
  27320. ;;
  27321. *)
  27322. ac_option=$1
  27323. ac_optarg=$2
  27324. ac_shift=shift
  27325. ;;
  27326. esac
  27327. case $ac_option in
  27328. # Handling of the options.
  27329. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27330. ac_cs_recheck=: ;;
  27331. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  27332. $as_echo "$ac_cs_version"; exit ;;
  27333. --config | --confi | --conf | --con | --co | --c )
  27334. $as_echo "$ac_cs_config"; exit ;;
  27335. --debug | --debu | --deb | --de | --d | -d )
  27336. debug=: ;;
  27337. --file | --fil | --fi | --f )
  27338. $ac_shift
  27339. case $ac_optarg in
  27340. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27341. '') as_fn_error $? "missing file argument" ;;
  27342. esac
  27343. as_fn_append CONFIG_FILES " '$ac_optarg'"
  27344. ac_need_defaults=false;;
  27345. --header | --heade | --head | --hea )
  27346. $ac_shift
  27347. case $ac_optarg in
  27348. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27349. esac
  27350. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  27351. ac_need_defaults=false;;
  27352. --he | --h)
  27353. # Conflict between --help and --header
  27354. as_fn_error $? "ambiguous option: \`$1'
  27355. Try \`$0 --help' for more information.";;
  27356. --help | --hel | -h )
  27357. $as_echo "$ac_cs_usage"; exit ;;
  27358. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27359. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27360. ac_cs_silent=: ;;
  27361. # This is an error.
  27362. -*) as_fn_error $? "unrecognized option: \`$1'
  27363. Try \`$0 --help' for more information." ;;
  27364. *) as_fn_append ac_config_targets " $1"
  27365. ac_need_defaults=false ;;
  27366. esac
  27367. shift
  27368. done
  27369. ac_configure_extra_args=
  27370. if $ac_cs_silent; then
  27371. exec 6>/dev/null
  27372. ac_configure_extra_args="$ac_configure_extra_args --silent"
  27373. fi
  27374. _ACEOF
  27375. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27376. if \$ac_cs_recheck; then
  27377. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27378. shift
  27379. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  27380. CONFIG_SHELL='$SHELL'
  27381. export CONFIG_SHELL
  27382. exec "\$@"
  27383. fi
  27384. _ACEOF
  27385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27386. exec 5>>config.log
  27387. {
  27388. echo
  27389. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27390. ## Running $as_me. ##
  27391. _ASBOX
  27392. $as_echo "$ac_log"
  27393. } >&5
  27394. _ACEOF
  27395. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27396. _ACEOF
  27397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27398. # Handling of arguments.
  27399. for ac_config_target in $ac_config_targets
  27400. do
  27401. case $ac_config_target in
  27402. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  27403. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  27404. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  27405. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  27406. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27407. esac
  27408. done
  27409. # If the user did not use the arguments to specify the items to instantiate,
  27410. # then the envvar interface is used. Set only those that are not.
  27411. # We use the long form for the default assignment because of an extremely
  27412. # bizarre bug on SunOS 4.1.3.
  27413. if $ac_need_defaults; then
  27414. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27415. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  27416. fi
  27417. # Have a temporary directory for convenience. Make it in the build tree
  27418. # simply because there is no reason against having it here, and in addition,
  27419. # creating and moving files from /tmp can sometimes cause problems.
  27420. # Hook for its removal unless debugging.
  27421. # Note that there is a small window in which the directory will not be cleaned:
  27422. # after its creation but before its name has been assigned to `$tmp'.
  27423. $debug ||
  27424. {
  27425. tmp= ac_tmp=
  27426. trap 'exit_status=$?
  27427. : "${ac_tmp:=$tmp}"
  27428. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27429. ' 0
  27430. trap 'as_fn_exit 1' 1 2 13 15
  27431. }
  27432. # Create a (secure) tmp directory for tmp files.
  27433. {
  27434. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27435. test -d "$tmp"
  27436. } ||
  27437. {
  27438. tmp=./conf$$-$RANDOM
  27439. (umask 077 && mkdir "$tmp")
  27440. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27441. ac_tmp=$tmp
  27442. # Set up the scripts for CONFIG_FILES section.
  27443. # No need to generate them if there are no CONFIG_FILES.
  27444. # This happens for instance with `./config.status config.h'.
  27445. if test -n "$CONFIG_FILES"; then
  27446. ac_cr=`echo X | tr X '\015'`
  27447. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27448. # But we know of no other shell where ac_cr would be empty at this
  27449. # point, so we can use a bashism as a fallback.
  27450. if test "x$ac_cr" = x; then
  27451. eval ac_cr=\$\'\\r\'
  27452. fi
  27453. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27454. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27455. ac_cs_awk_cr='\\r'
  27456. else
  27457. ac_cs_awk_cr=$ac_cr
  27458. fi
  27459. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27460. _ACEOF
  27461. {
  27462. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27463. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27464. echo "_ACEOF"
  27465. } >conf$$subs.sh ||
  27466. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27467. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27468. ac_delim='%!_!# '
  27469. for ac_last_try in false false false false false :; do
  27470. . ./conf$$subs.sh ||
  27471. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27472. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27473. if test $ac_delim_n = $ac_delim_num; then
  27474. break
  27475. elif $ac_last_try; then
  27476. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27477. else
  27478. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27479. fi
  27480. done
  27481. rm -f conf$$subs.sh
  27482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27483. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27484. _ACEOF
  27485. sed -n '
  27486. h
  27487. s/^/S["/; s/!.*/"]=/
  27488. p
  27489. g
  27490. s/^[^!]*!//
  27491. :repl
  27492. t repl
  27493. s/'"$ac_delim"'$//
  27494. t delim
  27495. :nl
  27496. h
  27497. s/\(.\{148\}\)..*/\1/
  27498. t more1
  27499. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27500. p
  27501. n
  27502. b repl
  27503. :more1
  27504. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27505. p
  27506. g
  27507. s/.\{148\}//
  27508. t nl
  27509. :delim
  27510. h
  27511. s/\(.\{148\}\)..*/\1/
  27512. t more2
  27513. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27514. p
  27515. b
  27516. :more2
  27517. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27518. p
  27519. g
  27520. s/.\{148\}//
  27521. t delim
  27522. ' <conf$$subs.awk | sed '
  27523. /^[^""]/{
  27524. N
  27525. s/\n//
  27526. }
  27527. ' >>$CONFIG_STATUS || ac_write_fail=1
  27528. rm -f conf$$subs.awk
  27529. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27530. _ACAWK
  27531. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27532. for (key in S) S_is_set[key] = 1
  27533. FS = ""
  27534. }
  27535. {
  27536. line = $ 0
  27537. nfields = split(line, field, "@")
  27538. substed = 0
  27539. len = length(field[1])
  27540. for (i = 2; i < nfields; i++) {
  27541. key = field[i]
  27542. keylen = length(key)
  27543. if (S_is_set[key]) {
  27544. value = S[key]
  27545. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27546. len += length(value) + length(field[++i])
  27547. substed = 1
  27548. } else
  27549. len += 1 + keylen
  27550. }
  27551. print line
  27552. }
  27553. _ACAWK
  27554. _ACEOF
  27555. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27556. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27557. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27558. else
  27559. cat
  27560. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27561. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27562. _ACEOF
  27563. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27564. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27565. # trailing colons and then remove the whole line if VPATH becomes empty
  27566. # (actually we leave an empty line to preserve line numbers).
  27567. if test "x$srcdir" = x.; then
  27568. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27569. h
  27570. s///
  27571. s/^/:/
  27572. s/[ ]*$/:/
  27573. s/:\$(srcdir):/:/g
  27574. s/:\${srcdir}:/:/g
  27575. s/:@srcdir@:/:/g
  27576. s/^:*//
  27577. s/:*$//
  27578. x
  27579. s/\(=[ ]*\).*/\1/
  27580. G
  27581. s/\n//
  27582. s/^[^=]*=[ ]*$//
  27583. }'
  27584. fi
  27585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27586. fi # test -n "$CONFIG_FILES"
  27587. # Set up the scripts for CONFIG_HEADERS section.
  27588. # No need to generate them if there are no CONFIG_HEADERS.
  27589. # This happens for instance with `./config.status Makefile'.
  27590. if test -n "$CONFIG_HEADERS"; then
  27591. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27592. BEGIN {
  27593. _ACEOF
  27594. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27595. # here-document in config.status, that substitutes the proper values into
  27596. # config.h.in to produce config.h.
  27597. # Create a delimiter string that does not exist in confdefs.h, to ease
  27598. # handling of long lines.
  27599. ac_delim='%!_!# '
  27600. for ac_last_try in false false :; do
  27601. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27602. if test -z "$ac_tt"; then
  27603. break
  27604. elif $ac_last_try; then
  27605. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27606. else
  27607. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27608. fi
  27609. done
  27610. # For the awk script, D is an array of macro values keyed by name,
  27611. # likewise P contains macro parameters if any. Preserve backslash
  27612. # newline sequences.
  27613. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27614. sed -n '
  27615. s/.\{148\}/&'"$ac_delim"'/g
  27616. t rset
  27617. :rset
  27618. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27619. t def
  27620. d
  27621. :def
  27622. s/\\$//
  27623. t bsnl
  27624. s/["\\]/\\&/g
  27625. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27626. D["\1"]=" \3"/p
  27627. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27628. d
  27629. :bsnl
  27630. s/["\\]/\\&/g
  27631. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27632. D["\1"]=" \3\\\\\\n"\\/p
  27633. t cont
  27634. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27635. t cont
  27636. d
  27637. :cont
  27638. n
  27639. s/.\{148\}/&'"$ac_delim"'/g
  27640. t clear
  27641. :clear
  27642. s/\\$//
  27643. t bsnlc
  27644. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27645. d
  27646. :bsnlc
  27647. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27648. b cont
  27649. ' <confdefs.h | sed '
  27650. s/'"$ac_delim"'/"\\\
  27651. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27652. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27653. for (key in D) D_is_set[key] = 1
  27654. FS = ""
  27655. }
  27656. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27657. line = \$ 0
  27658. split(line, arg, " ")
  27659. if (arg[1] == "#") {
  27660. defundef = arg[2]
  27661. mac1 = arg[3]
  27662. } else {
  27663. defundef = substr(arg[1], 2)
  27664. mac1 = arg[2]
  27665. }
  27666. split(mac1, mac2, "(") #)
  27667. macro = mac2[1]
  27668. prefix = substr(line, 1, index(line, defundef) - 1)
  27669. if (D_is_set[macro]) {
  27670. # Preserve the white space surrounding the "#".
  27671. print prefix "define", macro P[macro] D[macro]
  27672. next
  27673. } else {
  27674. # Replace #undef with comments. This is necessary, for example,
  27675. # in the case of _POSIX_SOURCE, which is predefined and required
  27676. # on some systems where configure will not decide to define it.
  27677. if (defundef == "undef") {
  27678. print "/*", prefix defundef, macro, "*/"
  27679. next
  27680. }
  27681. }
  27682. }
  27683. { print }
  27684. _ACAWK
  27685. _ACEOF
  27686. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27687. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27688. fi # test -n "$CONFIG_HEADERS"
  27689. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  27690. shift
  27691. for ac_tag
  27692. do
  27693. case $ac_tag in
  27694. :[FHLC]) ac_mode=$ac_tag; continue;;
  27695. esac
  27696. case $ac_mode$ac_tag in
  27697. :[FHL]*:*);;
  27698. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27699. :[FH]-) ac_tag=-:-;;
  27700. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27701. esac
  27702. ac_save_IFS=$IFS
  27703. IFS=:
  27704. set x $ac_tag
  27705. IFS=$ac_save_IFS
  27706. shift
  27707. ac_file=$1
  27708. shift
  27709. case $ac_mode in
  27710. :L) ac_source=$1;;
  27711. :[FH])
  27712. ac_file_inputs=
  27713. for ac_f
  27714. do
  27715. case $ac_f in
  27716. -) ac_f="$ac_tmp/stdin";;
  27717. *) # Look for the file first in the build tree, then in the source tree
  27718. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27719. # because $ac_f cannot contain `:'.
  27720. test -f "$ac_f" ||
  27721. case $ac_f in
  27722. [\\/$]*) false;;
  27723. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27724. esac ||
  27725. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27726. esac
  27727. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27728. as_fn_append ac_file_inputs " '$ac_f'"
  27729. done
  27730. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27731. # use $as_me), people would be surprised to read:
  27732. # /* config.h. Generated by config.status. */
  27733. configure_input='Generated from '`
  27734. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27735. `' by configure.'
  27736. if test x"$ac_file" != x-; then
  27737. configure_input="$ac_file. $configure_input"
  27738. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27739. $as_echo "$as_me: creating $ac_file" >&6;}
  27740. fi
  27741. # Neutralize special characters interpreted by sed in replacement strings.
  27742. case $configure_input in #(
  27743. *\&* | *\|* | *\\* )
  27744. ac_sed_conf_input=`$as_echo "$configure_input" |
  27745. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27746. *) ac_sed_conf_input=$configure_input;;
  27747. esac
  27748. case $ac_tag in
  27749. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27750. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27751. esac
  27752. ;;
  27753. esac
  27754. ac_dir=`$as_dirname -- "$ac_file" ||
  27755. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27756. X"$ac_file" : 'X\(//\)[^/]' \| \
  27757. X"$ac_file" : 'X\(//\)$' \| \
  27758. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27759. $as_echo X"$ac_file" |
  27760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27761. s//\1/
  27762. q
  27763. }
  27764. /^X\(\/\/\)[^/].*/{
  27765. s//\1/
  27766. q
  27767. }
  27768. /^X\(\/\/\)$/{
  27769. s//\1/
  27770. q
  27771. }
  27772. /^X\(\/\).*/{
  27773. s//\1/
  27774. q
  27775. }
  27776. s/.*/./; q'`
  27777. as_dir="$ac_dir"; as_fn_mkdir_p
  27778. ac_builddir=.
  27779. case "$ac_dir" in
  27780. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27781. *)
  27782. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  27783. # A ".." for each directory in $ac_dir_suffix.
  27784. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27785. case $ac_top_builddir_sub in
  27786. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27787. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27788. esac ;;
  27789. esac
  27790. ac_abs_top_builddir=$ac_pwd
  27791. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27792. # for backward compatibility:
  27793. ac_top_builddir=$ac_top_build_prefix
  27794. case $srcdir in
  27795. .) # We are building in place.
  27796. ac_srcdir=.
  27797. ac_top_srcdir=$ac_top_builddir_sub
  27798. ac_abs_top_srcdir=$ac_pwd ;;
  27799. [\\/]* | ?:[\\/]* ) # Absolute name.
  27800. ac_srcdir=$srcdir$ac_dir_suffix;
  27801. ac_top_srcdir=$srcdir
  27802. ac_abs_top_srcdir=$srcdir ;;
  27803. *) # Relative name.
  27804. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27805. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27806. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27807. esac
  27808. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27809. case $ac_mode in
  27810. :F)
  27811. #
  27812. # CONFIG_FILE
  27813. #
  27814. case $INSTALL in
  27815. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27816. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27817. esac
  27818. _ACEOF
  27819. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27820. # If the template does not know about datarootdir, expand it.
  27821. # FIXME: This hack should be removed a few years after 2.60.
  27822. ac_datarootdir_hack=; ac_datarootdir_seen=
  27823. ac_sed_dataroot='
  27824. /datarootdir/ {
  27825. p
  27826. q
  27827. }
  27828. /@datadir@/p
  27829. /@docdir@/p
  27830. /@infodir@/p
  27831. /@localedir@/p
  27832. /@mandir@/p'
  27833. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27834. *datarootdir*) ac_datarootdir_seen=yes;;
  27835. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27837. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27838. _ACEOF
  27839. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27840. ac_datarootdir_hack='
  27841. s&@datadir@&$datadir&g
  27842. s&@docdir@&$docdir&g
  27843. s&@infodir@&$infodir&g
  27844. s&@localedir@&$localedir&g
  27845. s&@mandir@&$mandir&g
  27846. s&\\\${datarootdir}&$datarootdir&g' ;;
  27847. esac
  27848. _ACEOF
  27849. # Neutralize VPATH when `$srcdir' = `.'.
  27850. # Shell code in configure.ac might set extrasub.
  27851. # FIXME: do we really want to maintain this feature?
  27852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27853. ac_sed_extra="$ac_vpsub
  27854. $extrasub
  27855. _ACEOF
  27856. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27857. :t
  27858. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27859. s|@configure_input@|$ac_sed_conf_input|;t t
  27860. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27861. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27862. s&@srcdir@&$ac_srcdir&;t t
  27863. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27864. s&@top_srcdir@&$ac_top_srcdir&;t t
  27865. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27866. s&@builddir@&$ac_builddir&;t t
  27867. s&@abs_builddir@&$ac_abs_builddir&;t t
  27868. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27869. s&@INSTALL@&$ac_INSTALL&;t t
  27870. $ac_datarootdir_hack
  27871. "
  27872. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27873. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27874. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27875. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27876. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27877. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27879. which seems to be undefined. Please make sure it is defined" >&5
  27880. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27881. which seems to be undefined. Please make sure it is defined" >&2;}
  27882. rm -f "$ac_tmp/stdin"
  27883. case $ac_file in
  27884. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27885. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27886. esac \
  27887. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27888. ;;
  27889. :H)
  27890. #
  27891. # CONFIG_HEADER
  27892. #
  27893. if test x"$ac_file" != x-; then
  27894. {
  27895. $as_echo "/* $configure_input */" \
  27896. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27897. } >"$ac_tmp/config.h" \
  27898. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27899. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27900. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27901. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  27902. else
  27903. rm -f "$ac_file"
  27904. mv "$ac_tmp/config.h" "$ac_file" \
  27905. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27906. fi
  27907. else
  27908. $as_echo "/* $configure_input */" \
  27909. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27910. || as_fn_error $? "could not create -" "$LINENO" 5
  27911. fi
  27912. ;;
  27913. esac
  27914. done # for ac_tag
  27915. as_fn_exit 0
  27916. _ACEOF
  27917. ac_clean_files=$ac_clean_files_save
  27918. test $ac_write_fail = 0 ||
  27919. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27920. # configure is writing to config.log, and then calls config.status.
  27921. # config.status does its own redirection, appending to config.log.
  27922. # Unfortunately, on DOS this fails, as config.log is still kept open
  27923. # by configure, so config.status won't be able to write to it; its
  27924. # output is simply discarded. So we exec the FD to /dev/null,
  27925. # effectively closing config.log, so it can be properly (re)opened and
  27926. # appended to by config.status. When coming back to configure, we
  27927. # need to make the FD available again.
  27928. if test "$no_create" != yes; then
  27929. ac_cs_success=:
  27930. ac_config_status_args=
  27931. test "$silent" = yes &&
  27932. ac_config_status_args="$ac_config_status_args --quiet"
  27933. exec 5>/dev/null
  27934. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27935. exec 5>>config.log
  27936. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27937. # would make configure fail if this is the last instruction.
  27938. $ac_cs_success || as_fn_exit 1
  27939. fi
  27940. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27942. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27943. fi
  27944. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  27945. if test "x${ac_cv_path_CMP}" = "x:"; then
  27946. ( cd `pwd`/menuselect && ./configure )
  27947. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  27948. ( cd `pwd`/menuselect && ./configure )
  27949. fi ; fi
  27950. rm makeopts.acbak makeopts.acbak2
  27951. if test "x${silent}" != "xyes" ; then
  27952. echo
  27953. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  27954. echo " .\$7\$7.. .7\$\$7:. "
  27955. echo " .\$\$:. ,\$7.7 "
  27956. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  27957. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  27958. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  27959. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  27960. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  27961. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  27962. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  27963. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  27964. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  27965. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  27966. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  27967. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  27968. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  27969. echo " \$\$\$\$\$ \$\$\$ "
  27970. echo " \$\$\$\$7. \$\$ (TM) "
  27971. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  27972. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  27973. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  27974. echo
  27975. fi
  27976. if test "x${AST_IODBC_FOUND}" = "xyes"; then
  27977. echo "WARNING: iodbc libs/headers found!"
  27978. echo
  27979. echo " If you plan to use ODBC functionality, you should consider"
  27980. echo " switching to unixodbc instead."
  27981. echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
  27982. echo
  27983. fi
  27984. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  27985. $as_echo "$as_me: Package configured for: " >&6;}
  27986. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  27987. $as_echo "$as_me: OS type : $host_os" >&6;}
  27988. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  27989. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  27990. { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  27991. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  27992. { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  27993. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  27994. if test "${cross_compiling}" = "yes"; then
  27995. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  27996. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  27997. fi