configure 894 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132
  1. #! /bin/sh
  2. # From configure.ac Revision: 432281 .
  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. GMIME_LIBS
  603. GMIME_CFLAGS
  604. OPENH323_BUILD
  605. OPENH323_SUFFIX
  606. OPENH323_LIBDIR
  607. OPENH323_INCDIR
  608. OPENH323DIR
  609. PWLIB_PLATFORM
  610. PWLIB_LIBDIR
  611. PWLIB_INCDIR
  612. PWLIBDIR
  613. PTLIB_CONFIG
  614. PJPROJECT_LIBS
  615. PJPROJECT_CFLAGS
  616. PG_CONFIG
  617. CONFIG_NETSNMP
  618. CONFIG_NEON29
  619. CONFIG_NEON
  620. CONFIG_MYSQLCLIENT
  621. PBX_MISDN_FAC_ERROR
  622. PBX_MISDN_FAC_RESULT
  623. LIBEDIT_LIBS
  624. LIBEDIT_CFLAGS
  625. LIBEDIT_INTERNAL
  626. ILBC_LIBS
  627. ILBC_CFLAGS
  628. ILBC_INTERNAL
  629. GSM_INTERNAL
  630. PBX_DAHDI_HALF_FULL
  631. PKG_CONFIG_LIBDIR
  632. PKG_CONFIG_PATH
  633. PKG_CONFIG
  634. PBX_DLADDR
  635. PBX_IP_MTU_DISCOVER
  636. PBX_RTLD_NOLOAD
  637. PBX_GLOB_BRACE
  638. PBX_GLOB_NOMAGIC
  639. AST_RPATH
  640. AST_CLANG_BLOCKS
  641. AST_CLANG_BLOCKS_LIBS
  642. AST_NESTED_FUNCTIONS
  643. AST_NATIVE_ARCH
  644. AST_SHADOW_WARNINGS
  645. AST_NO_STRICT_OVERFLOW
  646. AST_FORTIFY_SOURCE
  647. AST_TRAMPOLINES
  648. AST_DECLARATION_AFTER_STATEMENT
  649. GC_LDFLAGS
  650. GC_CFLAGS
  651. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  652. PBX_PTHREAD_RWLOCK_INITIALIZER
  653. AST_ASTERISKSSL
  654. HAS_POLL
  655. PBX_DYNAMIC_LIST
  656. POW_LIB
  657. PBX_WORKING_FORK
  658. LIBOBJS
  659. CONFIG_LIBXML2
  660. UUID_LIB
  661. UUID_INCLUDE
  662. EDITLINE_LIB
  663. ALLOCA
  664. PBX_ZLIB
  665. ZLIB_DIR
  666. ZLIB_INCLUDE
  667. ZLIB_LIB
  668. PBX_X11
  669. X11_DIR
  670. X11_INCLUDE
  671. X11_LIB
  672. PBX_VPB
  673. VPB_DIR
  674. VPB_INCLUDE
  675. VPB_LIB
  676. PBX_VORBIS
  677. VORBIS_DIR
  678. VORBIS_INCLUDE
  679. VORBIS_LIB
  680. PBX_UNIXODBC
  681. UNIXODBC_DIR
  682. UNIXODBC_INCLUDE
  683. UNIXODBC_LIB
  684. PBX_TONEZONE
  685. TONEZONE_DIR
  686. TONEZONE_INCLUDE
  687. TONEZONE_LIB
  688. PBX_TINFO
  689. TINFO_DIR
  690. TINFO_INCLUDE
  691. TINFO_LIB
  692. PBX_TIMERFD
  693. TIMERFD_DIR
  694. TIMERFD_INCLUDE
  695. TIMERFD_LIB
  696. PBX_TERMCAP
  697. TERMCAP_DIR
  698. TERMCAP_INCLUDE
  699. TERMCAP_LIB
  700. PBX_FREETDS
  701. FREETDS_DIR
  702. FREETDS_INCLUDE
  703. FREETDS_LIB
  704. PBX_SUPPSERV
  705. SUPPSERV_DIR
  706. SUPPSERV_INCLUDE
  707. SUPPSERV_LIB
  708. PBX_OPENSSL
  709. OPENSSL_DIR
  710. OPENSSL_INCLUDE
  711. OPENSSL_LIB
  712. PBX_SRTP_SHUTDOWN
  713. SRTP_SHUTDOWN_DIR
  714. SRTP_SHUTDOWN_INCLUDE
  715. SRTP_SHUTDOWN_LIB
  716. PBX_SRTP
  717. SRTP_DIR
  718. SRTP_INCLUDE
  719. SRTP_LIB
  720. PBX_SQLITE3
  721. SQLITE3_DIR
  722. SQLITE3_INCLUDE
  723. SQLITE3_LIB
  724. PBX_SQLITE
  725. SQLITE_DIR
  726. SQLITE_INCLUDE
  727. SQLITE_LIB
  728. PBX_SPEEXDSP
  729. SPEEXDSP_DIR
  730. SPEEXDSP_INCLUDE
  731. SPEEXDSP_LIB
  732. PBX_SPEEX_PREPROCESS
  733. SPEEX_PREPROCESS_DIR
  734. SPEEX_PREPROCESS_INCLUDE
  735. SPEEX_PREPROCESS_LIB
  736. PBX_SPEEX
  737. SPEEX_DIR
  738. SPEEX_INCLUDE
  739. SPEEX_LIB
  740. PBX_SS7
  741. SS7_DIR
  742. SS7_INCLUDE
  743. SS7_LIB
  744. PBX_SPANDSP
  745. SPANDSP_DIR
  746. SPANDSP_INCLUDE
  747. SPANDSP_LIB
  748. SOUNDS_CACHE_DIR
  749. PBX_SDL_IMAGE
  750. SDL_IMAGE_DIR
  751. SDL_IMAGE_INCLUDE
  752. SDL_IMAGE_LIB
  753. PBX_SDL
  754. SDL_DIR
  755. SDL_INCLUDE
  756. SDL_LIB
  757. PBX_RESAMPLE
  758. RESAMPLE_DIR
  759. RESAMPLE_INCLUDE
  760. RESAMPLE_LIB
  761. PBX_RADIUS
  762. RADIUS_DIR
  763. RADIUS_INCLUDE
  764. RADIUS_LIB
  765. PBX_PWLIB
  766. PWLIB_DIR
  767. PWLIB_INCLUDE
  768. PWLIB_LIB
  769. PBX_PRI_REVERSE_CHARGE
  770. PRI_REVERSE_CHARGE_DIR
  771. PRI_REVERSE_CHARGE_INCLUDE
  772. PRI_REVERSE_CHARGE_LIB
  773. PBX_PRI_SERVICE_MESSAGES
  774. PRI_SERVICE_MESSAGES_DIR
  775. PRI_SERVICE_MESSAGES_INCLUDE
  776. PRI_SERVICE_MESSAGES_LIB
  777. PBX_PRI_PROG_W_CAUSE
  778. PRI_PROG_W_CAUSE_DIR
  779. PRI_PROG_W_CAUSE_INCLUDE
  780. PRI_PROG_W_CAUSE_LIB
  781. PBX_PRI_INBANDDISCONNECT
  782. PRI_INBANDDISCONNECT_DIR
  783. PRI_INBANDDISCONNECT_INCLUDE
  784. PRI_INBANDDISCONNECT_LIB
  785. PBX_PRI_SETUP_KEYPAD
  786. PRI_SETUP_KEYPAD_DIR
  787. PRI_SETUP_KEYPAD_INCLUDE
  788. PRI_SETUP_KEYPAD_LIB
  789. PBX_PRI_CALL_REROUTING
  790. PRI_CALL_REROUTING_DIR
  791. PRI_CALL_REROUTING_INCLUDE
  792. PRI_CALL_REROUTING_LIB
  793. PBX_PRI_CALL_HOLD
  794. PRI_CALL_HOLD_DIR
  795. PRI_CALL_HOLD_INCLUDE
  796. PRI_CALL_HOLD_LIB
  797. PBX_PRI_SUBADDR
  798. PRI_SUBADDR_DIR
  799. PRI_SUBADDR_INCLUDE
  800. PRI_SUBADDR_LIB
  801. PBX_PRI_HANGUP_FIX
  802. PRI_HANGUP_FIX_DIR
  803. PRI_HANGUP_FIX_INCLUDE
  804. PRI_HANGUP_FIX_LIB
  805. PBX_PRI_CCSS
  806. PRI_CCSS_DIR
  807. PRI_CCSS_INCLUDE
  808. PRI_CCSS_LIB
  809. PBX_PRI_TRANSFER
  810. PRI_TRANSFER_DIR
  811. PRI_TRANSFER_INCLUDE
  812. PRI_TRANSFER_LIB
  813. PBX_PRI_AOC_EVENTS
  814. PRI_AOC_EVENTS_DIR
  815. PRI_AOC_EVENTS_INCLUDE
  816. PRI_AOC_EVENTS_LIB
  817. PBX_PRI_CALL_WAITING
  818. PRI_CALL_WAITING_DIR
  819. PRI_CALL_WAITING_INCLUDE
  820. PRI_CALL_WAITING_LIB
  821. PBX_PRI_MCID
  822. PRI_MCID_DIR
  823. PRI_MCID_INCLUDE
  824. PRI_MCID_LIB
  825. PBX_PRI_MWI
  826. PRI_MWI_DIR
  827. PRI_MWI_INCLUDE
  828. PRI_MWI_LIB
  829. PBX_PRI_DISPLAY_TEXT
  830. PRI_DISPLAY_TEXT_DIR
  831. PRI_DISPLAY_TEXT_INCLUDE
  832. PRI_DISPLAY_TEXT_LIB
  833. PBX_PRI_MWI_V2
  834. PRI_MWI_V2_DIR
  835. PRI_MWI_V2_INCLUDE
  836. PRI_MWI_V2_LIB
  837. PBX_PRI_DATETIME_SEND
  838. PRI_DATETIME_SEND_DIR
  839. PRI_DATETIME_SEND_INCLUDE
  840. PRI_DATETIME_SEND_LIB
  841. PBX_PRI_L2_PERSISTENCE
  842. PRI_L2_PERSISTENCE_DIR
  843. PRI_L2_PERSISTENCE_INCLUDE
  844. PRI_L2_PERSISTENCE_LIB
  845. PBX_PRI_SETUP_ACK_INBAND
  846. PRI_SETUP_ACK_INBAND_DIR
  847. PRI_SETUP_ACK_INBAND_INCLUDE
  848. PRI_SETUP_ACK_INBAND_LIB
  849. PBX_PRI
  850. PRI_DIR
  851. PRI_INCLUDE
  852. PRI_LIB
  853. PBX_PORTAUDIO
  854. PORTAUDIO_DIR
  855. PORTAUDIO_INCLUDE
  856. PORTAUDIO_LIB
  857. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2
  858. PJ_SSL_CERT_LOAD_FROM_FILES2_DIR
  859. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE
  860. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB
  861. PBX_PJSIP_GET_DEST_INFO
  862. PJSIP_GET_DEST_INFO_DIR
  863. PJSIP_GET_DEST_INFO_INCLUDE
  864. PJSIP_GET_DEST_INFO_LIB
  865. PBX_PJSIP_REPLACE_MEDIA_STREAM
  866. PJSIP_REPLACE_MEDIA_STREAM_DIR
  867. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
  868. PJSIP_REPLACE_MEDIA_STREAM_LIB
  869. PBX_PJ_TRANSACTION_GRP_LOCK
  870. PJ_TRANSACTION_GRP_LOCK_DIR
  871. PJ_TRANSACTION_GRP_LOCK_INCLUDE
  872. PJ_TRANSACTION_GRP_LOCK_LIB
  873. PBX_POPT
  874. POPT_DIR
  875. POPT_INCLUDE
  876. POPT_LIB
  877. PBX_PJPROJECT
  878. PJPROJECT_DIR
  879. PJPROJECT_INCLUDE
  880. PJPROJECT_LIB
  881. PBX_PGSQL
  882. PGSQL_DIR
  883. PGSQL_INCLUDE
  884. PGSQL_LIB
  885. PBX_OSS
  886. OSS_DIR
  887. OSS_INCLUDE
  888. OSS_LIB
  889. PBX_OSPTK
  890. OSPTK_DIR
  891. OSPTK_INCLUDE
  892. OSPTK_LIB
  893. PBX_OPUS
  894. OPUS_DIR
  895. OPUS_INCLUDE
  896. OPUS_LIB
  897. PBX_OPENR2
  898. OPENR2_DIR
  899. OPENR2_INCLUDE
  900. OPENR2_LIB
  901. PBX_OGG
  902. OGG_DIR
  903. OGG_INCLUDE
  904. OGG_LIB
  905. PBX_NEWT
  906. NEWT_DIR
  907. NEWT_INCLUDE
  908. NEWT_LIB
  909. PBX_NETSNMP
  910. NETSNMP_DIR
  911. NETSNMP_INCLUDE
  912. NETSNMP_LIB
  913. PBX_NEON29
  914. NEON29_DIR
  915. NEON29_INCLUDE
  916. NEON29_LIB
  917. PBX_NEON
  918. NEON_DIR
  919. NEON_INCLUDE
  920. NEON_LIB
  921. PBX_NCURSES
  922. NCURSES_DIR
  923. NCURSES_INCLUDE
  924. NCURSES_LIB
  925. PBX_NBS
  926. NBS_DIR
  927. NBS_INCLUDE
  928. NBS_LIB
  929. PBX_MYSQLCLIENT
  930. MYSQLCLIENT_DIR
  931. MYSQLCLIENT_INCLUDE
  932. MYSQLCLIENT_LIB
  933. PBX_MISDN
  934. MISDN_DIR
  935. MISDN_INCLUDE
  936. MISDN_LIB
  937. PBX_LUA
  938. LUA_DIR
  939. LUA_INCLUDE
  940. LUA_LIB
  941. PBX_LTDL
  942. LTDL_DIR
  943. LTDL_INCLUDE
  944. LTDL_LIB
  945. PBX_LIBXSLT_CLEANUP
  946. LIBXSLT_CLEANUP_DIR
  947. LIBXSLT_CLEANUP_INCLUDE
  948. LIBXSLT_CLEANUP_LIB
  949. PBX_LIBXSLT
  950. LIBXSLT_DIR
  951. LIBXSLT_INCLUDE
  952. LIBXSLT_LIB
  953. PBX_LIBXML2
  954. LIBXML2_DIR
  955. LIBXML2_INCLUDE
  956. LIBXML2_LIB
  957. PBX_LIBEDIT
  958. LIBEDIT_DIR
  959. LIBEDIT_INCLUDE
  960. LIBEDIT_LIB
  961. CURL_LIB
  962. CURL_INCLUDE
  963. _libcurl_config
  964. PBX_CURL
  965. PBX_LDAP
  966. LDAP_DIR
  967. LDAP_INCLUDE
  968. LDAP_LIB
  969. PBX_KQUEUE
  970. KQUEUE_DIR
  971. KQUEUE_INCLUDE
  972. KQUEUE_LIB
  973. PBX_URIPARSER
  974. URIPARSER_DIR
  975. URIPARSER_INCLUDE
  976. URIPARSER_LIB
  977. PBX_JANSSON
  978. JANSSON_DIR
  979. JANSSON_INCLUDE
  980. JANSSON_LIB
  981. PBX_JACK
  982. JACK_DIR
  983. JACK_INCLUDE
  984. JACK_LIB
  985. PBX_ISDNNET
  986. ISDNNET_DIR
  987. ISDNNET_INCLUDE
  988. ISDNNET_LIB
  989. PBX_IODBC
  990. IODBC_DIR
  991. IODBC_INCLUDE
  992. IODBC_LIB
  993. PBX_INOTIFY
  994. INOTIFY_DIR
  995. INOTIFY_INCLUDE
  996. INOTIFY_LIB
  997. PBX_IMAP_TK
  998. IMAP_TK_DIR
  999. IMAP_TK_INCLUDE
  1000. IMAP_TK_LIB
  1001. PBX_IKSEMEL
  1002. IKSEMEL_DIR
  1003. IKSEMEL_INCLUDE
  1004. IKSEMEL_LIB
  1005. PBX_ICONV
  1006. ICONV_DIR
  1007. ICONV_INCLUDE
  1008. ICONV_LIB
  1009. PBX_ICAL
  1010. ICAL_DIR
  1011. ICAL_INCLUDE
  1012. ICAL_LIB
  1013. PBX_HOARD
  1014. HOARD_DIR
  1015. HOARD_INCLUDE
  1016. HOARD_LIB
  1017. PBX_OPENH323
  1018. OPENH323_DIR
  1019. OPENH323_INCLUDE
  1020. OPENH323_LIB
  1021. PBX_GMIME
  1022. GMIME_DIR
  1023. GMIME_INCLUDE
  1024. GMIME_LIB
  1025. PBX_GTK2
  1026. GTK2_DIR
  1027. GTK2_INCLUDE
  1028. GTK2_LIB
  1029. PBX_ILBC
  1030. ILBC_DIR
  1031. ILBC_INCLUDE
  1032. ILBC_LIB
  1033. PBX_GSM
  1034. GSM_DIR
  1035. GSM_INCLUDE
  1036. GSM_LIB
  1037. PBX_FFMPEG
  1038. FFMPEG_DIR
  1039. FFMPEG_INCLUDE
  1040. FFMPEG_LIB
  1041. PBX_DAHDI
  1042. DAHDI_DIR
  1043. DAHDI_INCLUDE
  1044. DAHDI_LIB
  1045. PBX_OPENSSL_EC
  1046. OPENSSL_EC_DIR
  1047. OPENSSL_EC_INCLUDE
  1048. OPENSSL_EC_LIB
  1049. PBX_OPENSSL_SRTP
  1050. OPENSSL_SRTP_DIR
  1051. OPENSSL_SRTP_INCLUDE
  1052. OPENSSL_SRTP_LIB
  1053. PBX_CRYPTO
  1054. CRYPTO_DIR
  1055. CRYPTO_INCLUDE
  1056. CRYPTO_LIB
  1057. PBX_CRYPT
  1058. CRYPT_DIR
  1059. CRYPT_INCLUDE
  1060. CRYPT_LIB
  1061. PBX_CURSES
  1062. CURSES_DIR
  1063. CURSES_INCLUDE
  1064. CURSES_LIB
  1065. PBX_COROSYNC_CFG_STATE_TRACK
  1066. COROSYNC_CFG_STATE_TRACK_DIR
  1067. COROSYNC_CFG_STATE_TRACK_INCLUDE
  1068. COROSYNC_CFG_STATE_TRACK_LIB
  1069. PBX_COROSYNC
  1070. COROSYNC_DIR
  1071. COROSYNC_INCLUDE
  1072. COROSYNC_LIB
  1073. PBX_CAP
  1074. CAP_DIR
  1075. CAP_INCLUDE
  1076. CAP_LIB
  1077. PBX_BLUETOOTH
  1078. BLUETOOTH_DIR
  1079. BLUETOOTH_INCLUDE
  1080. BLUETOOTH_LIB
  1081. PBX_BKTR
  1082. BKTR_DIR
  1083. BKTR_INCLUDE
  1084. BKTR_LIB
  1085. PBX_BFD
  1086. BFD_DIR
  1087. BFD_INCLUDE
  1088. BFD_LIB
  1089. PBX_ALSA
  1090. ALSA_DIR
  1091. ALSA_INCLUDE
  1092. ALSA_LIB
  1093. AST_CODE_COVERAGE
  1094. AST_DEVMODE_STRICT
  1095. AST_DEVMODE
  1096. NOISY_BUILD
  1097. PTHREAD_CFLAGS
  1098. PTHREAD_LIBS
  1099. PTHREAD_CC
  1100. acx_pthread_config
  1101. MD5
  1102. SOXMIX
  1103. PBX_FLEX
  1104. PBX_BISON
  1105. OPENSSL
  1106. SHA1SUM
  1107. LDCONFIG
  1108. DOWNLOAD
  1109. FETCH
  1110. GIT
  1111. XMLSTARLET
  1112. XMLLINT
  1113. KPATHSEA
  1114. CATDVI
  1115. RUBBER
  1116. CURL
  1117. WGET
  1118. DOT
  1119. DOXYGEN
  1120. LN
  1121. DIRNAME
  1122. BASENAME
  1123. COMPRESS
  1124. FIND
  1125. PYTHON
  1126. FLEX
  1127. CMP
  1128. BISON
  1129. GNU_LD
  1130. ac_ct_AR
  1131. AR
  1132. ac_ct_STRIP
  1133. STRIP
  1134. GNU_MAKE
  1135. LN_S
  1136. INSTALL_DATA
  1137. INSTALL_SCRIPT
  1138. INSTALL_PROGRAM
  1139. AWK
  1140. SED
  1141. CXXCPP
  1142. ac_ct_CXX
  1143. CXXFLAGS
  1144. RANLIB
  1145. LD
  1146. CXX
  1147. PBX_OSREV
  1148. UNAME
  1149. CONFIG_SIGNED_CHAR
  1150. PBX_WINARCH
  1151. OSARCH
  1152. HOST_OS
  1153. HOST_VENDOR
  1154. HOST_CPU
  1155. HOST_PLATFORM
  1156. BUILD_OS
  1157. BUILD_VENDOR
  1158. BUILD_CPU
  1159. BUILD_PLATFORM
  1160. astvarrundir
  1161. astlogdir
  1162. astspooldir
  1163. astkeydir
  1164. astdbdir
  1165. astdatadir
  1166. astvarlibdir
  1167. astmandir
  1168. astmoddir
  1169. astlibdir
  1170. astheaderdir
  1171. astetcdir
  1172. astsbindir
  1173. EGREP
  1174. GREP
  1175. CPP
  1176. OBJEXT
  1177. EXEEXT
  1178. ac_ct_CC
  1179. CPPFLAGS
  1180. LDFLAGS
  1181. CFLAGS
  1182. CC
  1183. CONFIG_LDFLAGS
  1184. CONFIG_CFLAGS
  1185. host_os
  1186. host_vendor
  1187. host_cpu
  1188. host
  1189. build_os
  1190. build_vendor
  1191. build_cpu
  1192. build
  1193. target_alias
  1194. host_alias
  1195. build_alias
  1196. LIBS
  1197. ECHO_T
  1198. ECHO_N
  1199. ECHO_C
  1200. DEFS
  1201. mandir
  1202. localedir
  1203. libdir
  1204. psdir
  1205. pdfdir
  1206. dvidir
  1207. htmldir
  1208. infodir
  1209. docdir
  1210. oldincludedir
  1211. includedir
  1212. localstatedir
  1213. sharedstatedir
  1214. sysconfdir
  1215. datadir
  1216. datarootdir
  1217. libexecdir
  1218. sbindir
  1219. bindir
  1220. program_transform_name
  1221. prefix
  1222. exec_prefix
  1223. PACKAGE_URL
  1224. PACKAGE_BUGREPORT
  1225. PACKAGE_STRING
  1226. PACKAGE_VERSION
  1227. PACKAGE_TARNAME
  1228. PACKAGE_NAME
  1229. PATH_SEPARATOR
  1230. SHELL'
  1231. ac_subst_files=''
  1232. ac_user_opts='
  1233. enable_option_checking
  1234. with_gnu_ld
  1235. enable_dev_mode
  1236. enable_coverage
  1237. with_asound
  1238. with_bfd
  1239. with_execinfo
  1240. with_bluetooth
  1241. with_cap
  1242. with_cpg
  1243. with_curses
  1244. with_crypt
  1245. with_crypto
  1246. with_dahdi
  1247. with_avcodec
  1248. with_gsm
  1249. with_ilbc
  1250. with_gtk2
  1251. with_gmime
  1252. with_h323
  1253. with_hoard
  1254. with_ical
  1255. with_iconv
  1256. with_iksemel
  1257. with_imap
  1258. with_inotify
  1259. with_iodbc
  1260. with_isdnnet
  1261. with_jack
  1262. with_jansson
  1263. with_uriparser
  1264. with_kqueue
  1265. with_ldap
  1266. with_libcurl
  1267. with_libedit
  1268. with_libxml2
  1269. with_libxslt
  1270. with_ltdl
  1271. with_lua
  1272. with_misdn
  1273. with_mysqlclient
  1274. with_nbs
  1275. with_ncurses
  1276. with_neon
  1277. with_neon29
  1278. with_netsnmp
  1279. with_newt
  1280. with_ogg
  1281. with_openr2
  1282. with_opus
  1283. with_osptk
  1284. with_oss
  1285. with_postgres
  1286. with_pjproject
  1287. with_popt
  1288. with_portaudio
  1289. with_pri
  1290. with_pwlib
  1291. with_radius
  1292. with_resample
  1293. with_sdl
  1294. with_SDL_image
  1295. with_sounds_cache
  1296. with_spandsp
  1297. with_ss7
  1298. with_speex
  1299. with_speexdsp
  1300. with_sqlite
  1301. with_sqlite3
  1302. with_srtp
  1303. with_ssl
  1304. with_suppserv
  1305. with_tds
  1306. with_termcap
  1307. with_timerfd
  1308. with_tinfo
  1309. with_tonezone
  1310. with_unixodbc
  1311. with_vorbis
  1312. with_vpb
  1313. with_x11
  1314. with_z
  1315. enable_xmldoc
  1316. enable_largefile
  1317. enable_internal_poll
  1318. enable_asteriskssl
  1319. enable_rpath
  1320. '
  1321. ac_precious_vars='build_alias
  1322. host_alias
  1323. target_alias
  1324. CC
  1325. CFLAGS
  1326. LDFLAGS
  1327. LIBS
  1328. CPPFLAGS
  1329. CPP
  1330. CXX
  1331. CXXFLAGS
  1332. CCC
  1333. CXXCPP
  1334. PKG_CONFIG
  1335. PKG_CONFIG_PATH
  1336. PKG_CONFIG_LIBDIR
  1337. ILBC_CFLAGS
  1338. ILBC_LIBS
  1339. LIBEDIT_CFLAGS
  1340. LIBEDIT_LIBS
  1341. PJPROJECT_CFLAGS
  1342. PJPROJECT_LIBS
  1343. GMIME_CFLAGS
  1344. GMIME_LIBS
  1345. GTK2_CFLAGS
  1346. GTK2_LIBS'
  1347. # Initialize some variables set by options.
  1348. ac_init_help=
  1349. ac_init_version=false
  1350. ac_unrecognized_opts=
  1351. ac_unrecognized_sep=
  1352. # The variables have the same names as the options, with
  1353. # dashes changed to underlines.
  1354. cache_file=/dev/null
  1355. exec_prefix=NONE
  1356. no_create=
  1357. no_recursion=
  1358. prefix=NONE
  1359. program_prefix=NONE
  1360. program_suffix=NONE
  1361. program_transform_name=s,x,x,
  1362. silent=
  1363. site=
  1364. srcdir=
  1365. verbose=
  1366. x_includes=NONE
  1367. x_libraries=NONE
  1368. # Installation directory options.
  1369. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1370. # and all the variables that are supposed to be based on exec_prefix
  1371. # by default will actually change.
  1372. # Use braces instead of parens because sh, perl, etc. also accept them.
  1373. # (The list follows the same order as the GNU Coding Standards.)
  1374. bindir='${exec_prefix}/bin'
  1375. sbindir='${exec_prefix}/sbin'
  1376. libexecdir='${exec_prefix}/libexec'
  1377. datarootdir='${prefix}/share'
  1378. datadir='${datarootdir}'
  1379. sysconfdir='${prefix}/etc'
  1380. sharedstatedir='${prefix}/com'
  1381. localstatedir='${prefix}/var'
  1382. includedir='${prefix}/include'
  1383. oldincludedir='/usr/include'
  1384. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1385. infodir='${datarootdir}/info'
  1386. htmldir='${docdir}'
  1387. dvidir='${docdir}'
  1388. pdfdir='${docdir}'
  1389. psdir='${docdir}'
  1390. libdir='${exec_prefix}/lib'
  1391. localedir='${datarootdir}/locale'
  1392. mandir='${datarootdir}/man'
  1393. ac_prev=
  1394. ac_dashdash=
  1395. for ac_option
  1396. do
  1397. # If the previous option needs an argument, assign it.
  1398. if test -n "$ac_prev"; then
  1399. eval $ac_prev=\$ac_option
  1400. ac_prev=
  1401. continue
  1402. fi
  1403. case $ac_option in
  1404. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1405. *=) ac_optarg= ;;
  1406. *) ac_optarg=yes ;;
  1407. esac
  1408. # Accept the important Cygnus configure options, so we can diagnose typos.
  1409. case $ac_dashdash$ac_option in
  1410. --)
  1411. ac_dashdash=yes ;;
  1412. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1413. ac_prev=bindir ;;
  1414. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1415. bindir=$ac_optarg ;;
  1416. -build | --build | --buil | --bui | --bu)
  1417. ac_prev=build_alias ;;
  1418. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1419. build_alias=$ac_optarg ;;
  1420. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1421. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1422. ac_prev=cache_file ;;
  1423. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1424. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1425. cache_file=$ac_optarg ;;
  1426. --config-cache | -C)
  1427. cache_file=config.cache ;;
  1428. -datadir | --datadir | --datadi | --datad)
  1429. ac_prev=datadir ;;
  1430. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1431. datadir=$ac_optarg ;;
  1432. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1433. | --dataroo | --dataro | --datar)
  1434. ac_prev=datarootdir ;;
  1435. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1436. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1437. datarootdir=$ac_optarg ;;
  1438. -disable-* | --disable-*)
  1439. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1440. # Reject names that are not valid shell variable names.
  1441. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1442. as_fn_error $? "invalid feature name: $ac_useropt"
  1443. ac_useropt_orig=$ac_useropt
  1444. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1445. case $ac_user_opts in
  1446. *"
  1447. "enable_$ac_useropt"
  1448. "*) ;;
  1449. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1450. ac_unrecognized_sep=', ';;
  1451. esac
  1452. eval enable_$ac_useropt=no ;;
  1453. -docdir | --docdir | --docdi | --doc | --do)
  1454. ac_prev=docdir ;;
  1455. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1456. docdir=$ac_optarg ;;
  1457. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1458. ac_prev=dvidir ;;
  1459. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1460. dvidir=$ac_optarg ;;
  1461. -enable-* | --enable-*)
  1462. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1463. # Reject names that are not valid shell variable names.
  1464. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1465. as_fn_error $? "invalid feature name: $ac_useropt"
  1466. ac_useropt_orig=$ac_useropt
  1467. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1468. case $ac_user_opts in
  1469. *"
  1470. "enable_$ac_useropt"
  1471. "*) ;;
  1472. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1473. ac_unrecognized_sep=', ';;
  1474. esac
  1475. eval enable_$ac_useropt=\$ac_optarg ;;
  1476. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1477. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1478. | --exec | --exe | --ex)
  1479. ac_prev=exec_prefix ;;
  1480. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1481. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1482. | --exec=* | --exe=* | --ex=*)
  1483. exec_prefix=$ac_optarg ;;
  1484. -gas | --gas | --ga | --g)
  1485. # Obsolete; use --with-gas.
  1486. with_gas=yes ;;
  1487. -help | --help | --hel | --he | -h)
  1488. ac_init_help=long ;;
  1489. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1490. ac_init_help=recursive ;;
  1491. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1492. ac_init_help=short ;;
  1493. -host | --host | --hos | --ho)
  1494. ac_prev=host_alias ;;
  1495. -host=* | --host=* | --hos=* | --ho=*)
  1496. host_alias=$ac_optarg ;;
  1497. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1498. ac_prev=htmldir ;;
  1499. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1500. | --ht=*)
  1501. htmldir=$ac_optarg ;;
  1502. -includedir | --includedir | --includedi | --included | --include \
  1503. | --includ | --inclu | --incl | --inc)
  1504. ac_prev=includedir ;;
  1505. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1506. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1507. includedir=$ac_optarg ;;
  1508. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1509. ac_prev=infodir ;;
  1510. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1511. infodir=$ac_optarg ;;
  1512. -libdir | --libdir | --libdi | --libd)
  1513. ac_prev=libdir ;;
  1514. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1515. libdir=$ac_optarg ;;
  1516. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1517. | --libexe | --libex | --libe)
  1518. ac_prev=libexecdir ;;
  1519. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1520. | --libexe=* | --libex=* | --libe=*)
  1521. libexecdir=$ac_optarg ;;
  1522. -localedir | --localedir | --localedi | --localed | --locale)
  1523. ac_prev=localedir ;;
  1524. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1525. localedir=$ac_optarg ;;
  1526. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1527. | --localstate | --localstat | --localsta | --localst | --locals)
  1528. ac_prev=localstatedir ;;
  1529. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1530. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1531. localstatedir=$ac_optarg ;;
  1532. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1533. ac_prev=mandir ;;
  1534. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1535. mandir=$ac_optarg ;;
  1536. -nfp | --nfp | --nf)
  1537. # Obsolete; use --without-fp.
  1538. with_fp=no ;;
  1539. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1540. | --no-cr | --no-c | -n)
  1541. no_create=yes ;;
  1542. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1543. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1544. no_recursion=yes ;;
  1545. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1546. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1547. | --oldin | --oldi | --old | --ol | --o)
  1548. ac_prev=oldincludedir ;;
  1549. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1550. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1551. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1552. oldincludedir=$ac_optarg ;;
  1553. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1554. ac_prev=prefix ;;
  1555. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1556. prefix=$ac_optarg ;;
  1557. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1558. | --program-pre | --program-pr | --program-p)
  1559. ac_prev=program_prefix ;;
  1560. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1561. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1562. program_prefix=$ac_optarg ;;
  1563. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1564. | --program-suf | --program-su | --program-s)
  1565. ac_prev=program_suffix ;;
  1566. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1567. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1568. program_suffix=$ac_optarg ;;
  1569. -program-transform-name | --program-transform-name \
  1570. | --program-transform-nam | --program-transform-na \
  1571. | --program-transform-n | --program-transform- \
  1572. | --program-transform | --program-transfor \
  1573. | --program-transfo | --program-transf \
  1574. | --program-trans | --program-tran \
  1575. | --progr-tra | --program-tr | --program-t)
  1576. ac_prev=program_transform_name ;;
  1577. -program-transform-name=* | --program-transform-name=* \
  1578. | --program-transform-nam=* | --program-transform-na=* \
  1579. | --program-transform-n=* | --program-transform-=* \
  1580. | --program-transform=* | --program-transfor=* \
  1581. | --program-transfo=* | --program-transf=* \
  1582. | --program-trans=* | --program-tran=* \
  1583. | --progr-tra=* | --program-tr=* | --program-t=*)
  1584. program_transform_name=$ac_optarg ;;
  1585. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1586. ac_prev=pdfdir ;;
  1587. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1588. pdfdir=$ac_optarg ;;
  1589. -psdir | --psdir | --psdi | --psd | --ps)
  1590. ac_prev=psdir ;;
  1591. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1592. psdir=$ac_optarg ;;
  1593. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1594. | -silent | --silent | --silen | --sile | --sil)
  1595. silent=yes ;;
  1596. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1597. ac_prev=sbindir ;;
  1598. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1599. | --sbi=* | --sb=*)
  1600. sbindir=$ac_optarg ;;
  1601. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1602. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1603. | --sharedst | --shareds | --shared | --share | --shar \
  1604. | --sha | --sh)
  1605. ac_prev=sharedstatedir ;;
  1606. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1607. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1608. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1609. | --sha=* | --sh=*)
  1610. sharedstatedir=$ac_optarg ;;
  1611. -site | --site | --sit)
  1612. ac_prev=site ;;
  1613. -site=* | --site=* | --sit=*)
  1614. site=$ac_optarg ;;
  1615. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1616. ac_prev=srcdir ;;
  1617. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1618. srcdir=$ac_optarg ;;
  1619. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1620. | --syscon | --sysco | --sysc | --sys | --sy)
  1621. ac_prev=sysconfdir ;;
  1622. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1623. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1624. sysconfdir=$ac_optarg ;;
  1625. -target | --target | --targe | --targ | --tar | --ta | --t)
  1626. ac_prev=target_alias ;;
  1627. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1628. target_alias=$ac_optarg ;;
  1629. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1630. verbose=yes ;;
  1631. -version | --version | --versio | --versi | --vers | -V)
  1632. ac_init_version=: ;;
  1633. -with-* | --with-*)
  1634. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1635. # Reject names that are not valid shell variable names.
  1636. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1637. as_fn_error $? "invalid package name: $ac_useropt"
  1638. ac_useropt_orig=$ac_useropt
  1639. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1640. case $ac_user_opts in
  1641. *"
  1642. "with_$ac_useropt"
  1643. "*) ;;
  1644. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1645. ac_unrecognized_sep=', ';;
  1646. esac
  1647. eval with_$ac_useropt=\$ac_optarg ;;
  1648. -without-* | --without-*)
  1649. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1650. # Reject names that are not valid shell variable names.
  1651. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1652. as_fn_error $? "invalid package name: $ac_useropt"
  1653. ac_useropt_orig=$ac_useropt
  1654. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1655. case $ac_user_opts in
  1656. *"
  1657. "with_$ac_useropt"
  1658. "*) ;;
  1659. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1660. ac_unrecognized_sep=', ';;
  1661. esac
  1662. eval with_$ac_useropt=no ;;
  1663. --x)
  1664. # Obsolete; use --with-x.
  1665. with_x=yes ;;
  1666. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1667. | --x-incl | --x-inc | --x-in | --x-i)
  1668. ac_prev=x_includes ;;
  1669. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1670. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1671. x_includes=$ac_optarg ;;
  1672. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1673. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1674. ac_prev=x_libraries ;;
  1675. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1676. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1677. x_libraries=$ac_optarg ;;
  1678. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1679. Try \`$0 --help' for more information"
  1680. ;;
  1681. *=*)
  1682. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1683. # Reject names that are not valid shell variable names.
  1684. case $ac_envvar in #(
  1685. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1686. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1687. esac
  1688. eval $ac_envvar=\$ac_optarg
  1689. export $ac_envvar ;;
  1690. *)
  1691. # FIXME: should be removed in autoconf 3.0.
  1692. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1693. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1694. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1695. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1696. ;;
  1697. esac
  1698. done
  1699. if test -n "$ac_prev"; then
  1700. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1701. as_fn_error $? "missing argument to $ac_option"
  1702. fi
  1703. if test -n "$ac_unrecognized_opts"; then
  1704. case $enable_option_checking in
  1705. no) ;;
  1706. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1707. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1708. esac
  1709. fi
  1710. # Check all directory arguments for consistency.
  1711. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1712. datadir sysconfdir sharedstatedir localstatedir includedir \
  1713. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1714. libdir localedir mandir
  1715. do
  1716. eval ac_val=\$$ac_var
  1717. # Remove trailing slashes.
  1718. case $ac_val in
  1719. */ )
  1720. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1721. eval $ac_var=\$ac_val;;
  1722. esac
  1723. # Be sure to have absolute directory names.
  1724. case $ac_val in
  1725. [\\/$]* | ?:[\\/]* ) continue;;
  1726. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1727. esac
  1728. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1729. done
  1730. # There might be people who depend on the old broken behavior: `$host'
  1731. # used to hold the argument of --host etc.
  1732. # FIXME: To remove some day.
  1733. build=$build_alias
  1734. host=$host_alias
  1735. target=$target_alias
  1736. # FIXME: To remove some day.
  1737. if test "x$host_alias" != x; then
  1738. if test "x$build_alias" = x; then
  1739. cross_compiling=maybe
  1740. elif test "x$build_alias" != "x$host_alias"; then
  1741. cross_compiling=yes
  1742. fi
  1743. fi
  1744. ac_tool_prefix=
  1745. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1746. test "$silent" = yes && exec 6>/dev/null
  1747. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1748. ac_ls_di=`ls -di .` &&
  1749. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1750. as_fn_error $? "working directory cannot be determined"
  1751. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1752. as_fn_error $? "pwd does not report name of working directory"
  1753. # Find the source files, if location was not specified.
  1754. if test -z "$srcdir"; then
  1755. ac_srcdir_defaulted=yes
  1756. # Try the directory containing this script, then the parent directory.
  1757. ac_confdir=`$as_dirname -- "$as_myself" ||
  1758. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1759. X"$as_myself" : 'X\(//\)[^/]' \| \
  1760. X"$as_myself" : 'X\(//\)$' \| \
  1761. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1762. $as_echo X"$as_myself" |
  1763. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1764. s//\1/
  1765. q
  1766. }
  1767. /^X\(\/\/\)[^/].*/{
  1768. s//\1/
  1769. q
  1770. }
  1771. /^X\(\/\/\)$/{
  1772. s//\1/
  1773. q
  1774. }
  1775. /^X\(\/\).*/{
  1776. s//\1/
  1777. q
  1778. }
  1779. s/.*/./; q'`
  1780. srcdir=$ac_confdir
  1781. if test ! -r "$srcdir/$ac_unique_file"; then
  1782. srcdir=..
  1783. fi
  1784. else
  1785. ac_srcdir_defaulted=no
  1786. fi
  1787. if test ! -r "$srcdir/$ac_unique_file"; then
  1788. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1789. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1790. fi
  1791. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1792. ac_abs_confdir=`(
  1793. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1794. pwd)`
  1795. # When building in place, set srcdir=.
  1796. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1797. srcdir=.
  1798. fi
  1799. # Remove unnecessary trailing slashes from srcdir.
  1800. # Double slashes in file names in object file debugging info
  1801. # mess up M-x gdb in Emacs.
  1802. case $srcdir in
  1803. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1804. esac
  1805. for ac_var in $ac_precious_vars; do
  1806. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1807. eval ac_env_${ac_var}_value=\$${ac_var}
  1808. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1809. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1810. done
  1811. #
  1812. # Report the --help message.
  1813. #
  1814. if test "$ac_init_help" = "long"; then
  1815. # Omit some internal or obsolete options to make the list less imposing.
  1816. # This message is too long to be a string in the A/UX 3.1 sh.
  1817. cat <<_ACEOF
  1818. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1819. Usage: $0 [OPTION]... [VAR=VALUE]...
  1820. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1821. VAR=VALUE. See below for descriptions of some of the useful variables.
  1822. Defaults for the options are specified in brackets.
  1823. Configuration:
  1824. -h, --help display this help and exit
  1825. --help=short display options specific to this package
  1826. --help=recursive display the short help of all the included packages
  1827. -V, --version display version information and exit
  1828. -q, --quiet, --silent do not print \`checking ...' messages
  1829. --cache-file=FILE cache test results in FILE [disabled]
  1830. -C, --config-cache alias for \`--cache-file=config.cache'
  1831. -n, --no-create do not create output files
  1832. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1833. Installation directories:
  1834. --prefix=PREFIX install architecture-independent files in PREFIX
  1835. [$ac_default_prefix]
  1836. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1837. [PREFIX]
  1838. By default, \`make install' will install all the files in
  1839. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1840. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1841. for instance \`--prefix=\$HOME'.
  1842. For better control, use the options below.
  1843. Fine tuning of the installation directories:
  1844. --bindir=DIR user executables [EPREFIX/bin]
  1845. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1846. --libexecdir=DIR program executables [EPREFIX/libexec]
  1847. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1848. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1849. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1850. --libdir=DIR object code libraries [EPREFIX/lib]
  1851. --includedir=DIR C header files [PREFIX/include]
  1852. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1853. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1854. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1855. --infodir=DIR info documentation [DATAROOTDIR/info]
  1856. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1857. --mandir=DIR man documentation [DATAROOTDIR/man]
  1858. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1859. --htmldir=DIR html documentation [DOCDIR]
  1860. --dvidir=DIR dvi documentation [DOCDIR]
  1861. --pdfdir=DIR pdf documentation [DOCDIR]
  1862. --psdir=DIR ps documentation [DOCDIR]
  1863. _ACEOF
  1864. cat <<\_ACEOF
  1865. System types:
  1866. --build=BUILD configure for building on BUILD [guessed]
  1867. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1868. _ACEOF
  1869. fi
  1870. if test -n "$ac_init_help"; then
  1871. case $ac_init_help in
  1872. short | recursive ) echo "Configuration of asterisk trunk:";;
  1873. esac
  1874. cat <<\_ACEOF
  1875. Optional Features:
  1876. --disable-option-checking ignore unrecognized --enable/--with options
  1877. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1878. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1879. --enable-dev-mode Turn on developer mode
  1880. --enable-coverage Turn on code coverage tracking (for gcov)
  1881. --disable-xmldoc Explicitly disable XML documentation
  1882. --disable-largefile omit support for large files
  1883. --enable-internal-poll Use Asterisk's poll implementation
  1884. --disable-asteriskssl Disable Asterisk's SSL wrapper library
  1885. --disable-rpath Disables rpath linker option checking
  1886. Optional Packages:
  1887. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1888. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1889. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1890. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1891. --with-bfd=PATH use Debug symbol decoding files in PATH
  1892. --with-execinfo=PATH use Stack Backtrace files in PATH
  1893. --with-bluetooth=PATH use Bluetooth files in PATH
  1894. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1895. --with-cpg=PATH use Corosync files in PATH
  1896. --with-curses=PATH use curses files in PATH
  1897. --with-crypt=PATH use password and data encryption files in PATH
  1898. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1899. --with-dahdi=PATH use DAHDI files in PATH
  1900. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1901. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1902. otherwise
  1903. --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
  1904. otherwise
  1905. --with-gtk2=PATH use gtk2 files in PATH
  1906. --with-gmime=PATH use GMime files in PATH
  1907. --with-h323=PATH use OpenH323 files in PATH
  1908. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1909. --with-ical=PATH use iCal files in PATH
  1910. --with-iconv=PATH use Iconv files in PATH
  1911. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1912. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1913. --with-inotify=PATH use inotify support files in PATH
  1914. --with-iodbc=PATH use iODBC files in PATH
  1915. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1916. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1917. --with-jansson=PATH use Jansson JSON library files in PATH
  1918. --with-uriparser=PATH use uriparser library files in PATH
  1919. --with-kqueue=PATH use kqueue support files in PATH
  1920. --with-ldap=PATH use OpenLDAP files in PATH
  1921. --with-libcurl=DIR look for the curl library in DIR
  1922. --with-libedit=PATH use NetBSD Editline library files in PATH, use
  1923. 'internal' Editline otherwise
  1924. --with-libxml2=PATH use LibXML2 files in PATH
  1925. --with-libxslt=PATH use LibXSLT files in PATH
  1926. --with-ltdl=PATH use libtool files in PATH
  1927. --with-lua=PATH use Lua files in PATH
  1928. --with-misdn=PATH use mISDN user files in PATH
  1929. --with-mysqlclient=PATH use MySQL client files in PATH
  1930. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1931. --with-ncurses=PATH use ncurses files in PATH
  1932. --with-neon=PATH use neon files in PATH
  1933. --with-neon29=PATH use neon29 files in PATH
  1934. --with-netsnmp=PATH use Net-SNMP files in PATH
  1935. --with-newt=PATH use newt files in PATH
  1936. --with-ogg=PATH use OGG files in PATH
  1937. --with-openr2=PATH use MFR2 files in PATH
  1938. --with-opus=PATH use Opus files in PATH
  1939. --with-osptk=PATH use OSP Toolkit files in PATH
  1940. --with-oss=PATH use Open Sound System files in PATH
  1941. --with-postgres=PATH use PostgreSQL files in PATH
  1942. --with-pjproject=PATH use PJPROJECT files in PATH
  1943. --with-popt=PATH use popt files in PATH
  1944. --with-portaudio=PATH use PortAudio files in PATH
  1945. --with-pri=PATH use ISDN PRI files in PATH
  1946. --with-pwlib=PATH use PWlib files in PATH
  1947. --with-radius=PATH use Radius Client files in PATH
  1948. --with-resample=PATH use LIBRESAMPLE files in PATH
  1949. --with-sdl=PATH use Sdl files in PATH
  1950. --with-SDL_image=PATH use Sdl Image files in PATH
  1951. --with-sounds-cache=PATH
  1952. use cached sound tarfiles in PATH
  1953. --with-spandsp=PATH use SPANDSP files in PATH
  1954. --with-ss7=PATH use ISDN SS7 files in PATH
  1955. --with-speex=PATH use Speex files in PATH
  1956. --with-speex=PATH use Speex preprocess routines files in PATH
  1957. --with-speexdsp=PATH use SpeexDSP files in PATH
  1958. --with-sqlite=PATH use SQLite files in PATH
  1959. --with-sqlite3=PATH use SQLite files in PATH
  1960. --with-srtp=PATH use Secure RTP files in PATH
  1961. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1962. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1963. --with-tds=PATH use FreeTDS files in PATH
  1964. --with-termcap=PATH use Termcap files in PATH
  1965. --with-timerfd=PATH use timerfd files in PATH
  1966. --with-tinfo=PATH use Term Info files in PATH
  1967. --with-tonezone=PATH use tonezone files in PATH
  1968. --with-unixodbc=PATH use unixODBC files in PATH
  1969. --with-vorbis=PATH use Vorbis files in PATH
  1970. --with-vpb=PATH use Voicetronix API files in PATH
  1971. --with-x11=PATH use X11 files in PATH
  1972. --with-z=PATH use zlib compression files in PATH
  1973. Some influential environment variables:
  1974. CC C compiler command
  1975. CFLAGS C compiler flags
  1976. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1977. nonstandard directory <lib dir>
  1978. LIBS libraries to pass to the linker, e.g. -l<library>
  1979. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1980. you have headers in a nonstandard directory <include dir>
  1981. CPP C preprocessor
  1982. CXX C++ compiler command
  1983. CXXFLAGS C++ compiler flags
  1984. CXXCPP C++ preprocessor
  1985. PKG_CONFIG path to pkg-config utility
  1986. PKG_CONFIG_PATH
  1987. directories to add to pkg-config's search path
  1988. PKG_CONFIG_LIBDIR
  1989. path overriding pkg-config's built-in search path
  1990. ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
  1991. ILBC_LIBS linker flags for ILBC, overriding pkg-config
  1992. LIBEDIT_CFLAGS
  1993. C compiler flags for LIBEDIT, overriding pkg-config
  1994. LIBEDIT_LIBS
  1995. linker flags for LIBEDIT, overriding pkg-config
  1996. PJPROJECT_CFLAGS
  1997. C compiler flags for PJPROJECT, overriding pkg-config
  1998. PJPROJECT_LIBS
  1999. linker flags for PJPROJECT, overriding pkg-config
  2000. GMIME_CFLAGS
  2001. C compiler flags for GMIME, overriding pkg-config
  2002. GMIME_LIBS linker flags for GMIME, overriding pkg-config
  2003. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  2004. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  2005. Use these variables to override the choices made by `configure' or to help
  2006. it to find libraries and programs with nonstandard names/locations.
  2007. Report bugs to <https://issues.asterisk.org>.
  2008. _ACEOF
  2009. ac_status=$?
  2010. fi
  2011. if test "$ac_init_help" = "recursive"; then
  2012. # If there are subdirs, report their specific --help.
  2013. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2014. test -d "$ac_dir" ||
  2015. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2016. continue
  2017. ac_builddir=.
  2018. case "$ac_dir" in
  2019. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2020. *)
  2021. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2022. # A ".." for each directory in $ac_dir_suffix.
  2023. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2024. case $ac_top_builddir_sub in
  2025. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2026. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2027. esac ;;
  2028. esac
  2029. ac_abs_top_builddir=$ac_pwd
  2030. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2031. # for backward compatibility:
  2032. ac_top_builddir=$ac_top_build_prefix
  2033. case $srcdir in
  2034. .) # We are building in place.
  2035. ac_srcdir=.
  2036. ac_top_srcdir=$ac_top_builddir_sub
  2037. ac_abs_top_srcdir=$ac_pwd ;;
  2038. [\\/]* | ?:[\\/]* ) # Absolute name.
  2039. ac_srcdir=$srcdir$ac_dir_suffix;
  2040. ac_top_srcdir=$srcdir
  2041. ac_abs_top_srcdir=$srcdir ;;
  2042. *) # Relative name.
  2043. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2044. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2045. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2046. esac
  2047. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2048. cd "$ac_dir" || { ac_status=$?; continue; }
  2049. # Check for guested configure.
  2050. if test -f "$ac_srcdir/configure.gnu"; then
  2051. echo &&
  2052. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2053. elif test -f "$ac_srcdir/configure"; then
  2054. echo &&
  2055. $SHELL "$ac_srcdir/configure" --help=recursive
  2056. else
  2057. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2058. fi || ac_status=$?
  2059. cd "$ac_pwd" || { ac_status=$?; break; }
  2060. done
  2061. fi
  2062. test -n "$ac_init_help" && exit $ac_status
  2063. if $ac_init_version; then
  2064. cat <<\_ACEOF
  2065. asterisk configure trunk
  2066. generated by GNU Autoconf 2.69
  2067. Copyright (C) 2012 Free Software Foundation, Inc.
  2068. This configure script is free software; the Free Software Foundation
  2069. gives unlimited permission to copy, distribute and modify it.
  2070. "Asterisk"
  2071. _ACEOF
  2072. exit
  2073. fi
  2074. ## ------------------------ ##
  2075. ## Autoconf initialization. ##
  2076. ## ------------------------ ##
  2077. # ac_fn_c_try_compile LINENO
  2078. # --------------------------
  2079. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2080. ac_fn_c_try_compile ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. rm -f conftest.$ac_objext
  2084. if { { ac_try="$ac_compile"
  2085. case "(($ac_try" in
  2086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2087. *) ac_try_echo=$ac_try;;
  2088. esac
  2089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2090. $as_echo "$ac_try_echo"; } >&5
  2091. (eval "$ac_compile") 2>conftest.err
  2092. ac_status=$?
  2093. if test -s conftest.err; then
  2094. grep -v '^ *+' conftest.err >conftest.er1
  2095. cat conftest.er1 >&5
  2096. mv -f conftest.er1 conftest.err
  2097. fi
  2098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2099. test $ac_status = 0; } && {
  2100. test -z "$ac_c_werror_flag" ||
  2101. test ! -s conftest.err
  2102. } && test -s conftest.$ac_objext; then :
  2103. ac_retval=0
  2104. else
  2105. $as_echo "$as_me: failed program was:" >&5
  2106. sed 's/^/| /' conftest.$ac_ext >&5
  2107. ac_retval=1
  2108. fi
  2109. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2110. as_fn_set_status $ac_retval
  2111. } # ac_fn_c_try_compile
  2112. # ac_fn_c_try_cpp LINENO
  2113. # ----------------------
  2114. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2115. ac_fn_c_try_cpp ()
  2116. {
  2117. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2118. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2119. case "(($ac_try" in
  2120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2121. *) ac_try_echo=$ac_try;;
  2122. esac
  2123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2124. $as_echo "$ac_try_echo"; } >&5
  2125. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2126. ac_status=$?
  2127. if test -s conftest.err; then
  2128. grep -v '^ *+' conftest.err >conftest.er1
  2129. cat conftest.er1 >&5
  2130. mv -f conftest.er1 conftest.err
  2131. fi
  2132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2133. test $ac_status = 0; } > conftest.i && {
  2134. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2135. test ! -s conftest.err
  2136. }; then :
  2137. ac_retval=0
  2138. else
  2139. $as_echo "$as_me: failed program was:" >&5
  2140. sed 's/^/| /' conftest.$ac_ext >&5
  2141. ac_retval=1
  2142. fi
  2143. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2144. as_fn_set_status $ac_retval
  2145. } # ac_fn_c_try_cpp
  2146. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2147. # -------------------------------------------------------
  2148. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2149. # the include files in INCLUDES and setting the cache variable VAR
  2150. # accordingly.
  2151. ac_fn_c_check_header_mongrel ()
  2152. {
  2153. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2154. if eval \${$3+:} false; then :
  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. fi
  2160. eval ac_res=\$$3
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2162. $as_echo "$ac_res" >&6; }
  2163. else
  2164. # Is the header compilable?
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2166. $as_echo_n "checking $2 usability... " >&6; }
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $4
  2170. #include <$2>
  2171. _ACEOF
  2172. if ac_fn_c_try_compile "$LINENO"; then :
  2173. ac_header_compiler=yes
  2174. else
  2175. ac_header_compiler=no
  2176. fi
  2177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2179. $as_echo "$ac_header_compiler" >&6; }
  2180. # Is the header present?
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2182. $as_echo_n "checking $2 presence... " >&6; }
  2183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2184. /* end confdefs.h. */
  2185. #include <$2>
  2186. _ACEOF
  2187. if ac_fn_c_try_cpp "$LINENO"; then :
  2188. ac_header_preproc=yes
  2189. else
  2190. ac_header_preproc=no
  2191. fi
  2192. rm -f conftest.err conftest.i conftest.$ac_ext
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2194. $as_echo "$ac_header_preproc" >&6; }
  2195. # So? What about this header?
  2196. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2197. yes:no: )
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2199. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2201. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2202. ;;
  2203. no:yes:* )
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2205. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2207. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2209. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2211. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2213. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2214. ( $as_echo "## ------------------------------------------ ##
  2215. ## Report this to https://issues.asterisk.org ##
  2216. ## ------------------------------------------ ##"
  2217. ) | sed "s/^/$as_me: WARNING: /" >&2
  2218. ;;
  2219. esac
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2221. $as_echo_n "checking for $2... " >&6; }
  2222. if eval \${$3+:} false; then :
  2223. $as_echo_n "(cached) " >&6
  2224. else
  2225. eval "$3=\$ac_header_compiler"
  2226. fi
  2227. eval ac_res=\$$3
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2229. $as_echo "$ac_res" >&6; }
  2230. fi
  2231. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2232. } # ac_fn_c_check_header_mongrel
  2233. # ac_fn_c_try_run LINENO
  2234. # ----------------------
  2235. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2236. # that executables *can* be run.
  2237. ac_fn_c_try_run ()
  2238. {
  2239. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2240. if { { ac_try="$ac_link"
  2241. case "(($ac_try" in
  2242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2243. *) ac_try_echo=$ac_try;;
  2244. esac
  2245. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2246. $as_echo "$ac_try_echo"; } >&5
  2247. (eval "$ac_link") 2>&5
  2248. ac_status=$?
  2249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2250. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2251. { { case "(($ac_try" in
  2252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2253. *) ac_try_echo=$ac_try;;
  2254. esac
  2255. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2256. $as_echo "$ac_try_echo"; } >&5
  2257. (eval "$ac_try") 2>&5
  2258. ac_status=$?
  2259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2260. test $ac_status = 0; }; }; then :
  2261. ac_retval=0
  2262. else
  2263. $as_echo "$as_me: program exited with status $ac_status" >&5
  2264. $as_echo "$as_me: failed program was:" >&5
  2265. sed 's/^/| /' conftest.$ac_ext >&5
  2266. ac_retval=$ac_status
  2267. fi
  2268. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2269. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2270. as_fn_set_status $ac_retval
  2271. } # ac_fn_c_try_run
  2272. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2273. # -------------------------------------------------------
  2274. # Tests whether HEADER exists and can be compiled using the include files in
  2275. # INCLUDES, setting the cache variable VAR accordingly.
  2276. ac_fn_c_check_header_compile ()
  2277. {
  2278. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2280. $as_echo_n "checking for $2... " >&6; }
  2281. if eval \${$3+:} false; then :
  2282. $as_echo_n "(cached) " >&6
  2283. else
  2284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2285. /* end confdefs.h. */
  2286. $4
  2287. #include <$2>
  2288. _ACEOF
  2289. if ac_fn_c_try_compile "$LINENO"; then :
  2290. eval "$3=yes"
  2291. else
  2292. eval "$3=no"
  2293. fi
  2294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2295. fi
  2296. eval ac_res=\$$3
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2298. $as_echo "$ac_res" >&6; }
  2299. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2300. } # ac_fn_c_check_header_compile
  2301. # ac_fn_cxx_try_compile LINENO
  2302. # ----------------------------
  2303. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2304. ac_fn_cxx_try_compile ()
  2305. {
  2306. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2307. rm -f conftest.$ac_objext
  2308. if { { ac_try="$ac_compile"
  2309. case "(($ac_try" in
  2310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2311. *) ac_try_echo=$ac_try;;
  2312. esac
  2313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2314. $as_echo "$ac_try_echo"; } >&5
  2315. (eval "$ac_compile") 2>conftest.err
  2316. ac_status=$?
  2317. if test -s conftest.err; then
  2318. grep -v '^ *+' conftest.err >conftest.er1
  2319. cat conftest.er1 >&5
  2320. mv -f conftest.er1 conftest.err
  2321. fi
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2323. test $ac_status = 0; } && {
  2324. test -z "$ac_cxx_werror_flag" ||
  2325. test ! -s conftest.err
  2326. } && test -s conftest.$ac_objext; then :
  2327. ac_retval=0
  2328. else
  2329. $as_echo "$as_me: failed program was:" >&5
  2330. sed 's/^/| /' conftest.$ac_ext >&5
  2331. ac_retval=1
  2332. fi
  2333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2334. as_fn_set_status $ac_retval
  2335. } # ac_fn_cxx_try_compile
  2336. # ac_fn_cxx_try_cpp LINENO
  2337. # ------------------------
  2338. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2339. ac_fn_cxx_try_cpp ()
  2340. {
  2341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2342. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2343. case "(($ac_try" in
  2344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2345. *) ac_try_echo=$ac_try;;
  2346. esac
  2347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2348. $as_echo "$ac_try_echo"; } >&5
  2349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2350. ac_status=$?
  2351. if test -s conftest.err; then
  2352. grep -v '^ *+' conftest.err >conftest.er1
  2353. cat conftest.er1 >&5
  2354. mv -f conftest.er1 conftest.err
  2355. fi
  2356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2357. test $ac_status = 0; } > conftest.i && {
  2358. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2359. test ! -s conftest.err
  2360. }; then :
  2361. ac_retval=0
  2362. else
  2363. $as_echo "$as_me: failed program was:" >&5
  2364. sed 's/^/| /' conftest.$ac_ext >&5
  2365. ac_retval=1
  2366. fi
  2367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2368. as_fn_set_status $ac_retval
  2369. } # ac_fn_cxx_try_cpp
  2370. # ac_fn_c_try_link LINENO
  2371. # -----------------------
  2372. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2373. ac_fn_c_try_link ()
  2374. {
  2375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2376. rm -f conftest.$ac_objext conftest$ac_exeext
  2377. if { { ac_try="$ac_link"
  2378. case "(($ac_try" in
  2379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2380. *) ac_try_echo=$ac_try;;
  2381. esac
  2382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2383. $as_echo "$ac_try_echo"; } >&5
  2384. (eval "$ac_link") 2>conftest.err
  2385. ac_status=$?
  2386. if test -s conftest.err; then
  2387. grep -v '^ *+' conftest.err >conftest.er1
  2388. cat conftest.er1 >&5
  2389. mv -f conftest.er1 conftest.err
  2390. fi
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2392. test $ac_status = 0; } && {
  2393. test -z "$ac_c_werror_flag" ||
  2394. test ! -s conftest.err
  2395. } && test -s conftest$ac_exeext && {
  2396. test "$cross_compiling" = yes ||
  2397. test -x conftest$ac_exeext
  2398. }; then :
  2399. ac_retval=0
  2400. else
  2401. $as_echo "$as_me: failed program was:" >&5
  2402. sed 's/^/| /' conftest.$ac_ext >&5
  2403. ac_retval=1
  2404. fi
  2405. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2406. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2407. # interfere with the next link command; also delete a directory that is
  2408. # left behind by Apple's compiler. We do this before executing the actions.
  2409. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2411. as_fn_set_status $ac_retval
  2412. } # ac_fn_c_try_link
  2413. # ac_fn_c_check_func LINENO FUNC VAR
  2414. # ----------------------------------
  2415. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2416. ac_fn_c_check_func ()
  2417. {
  2418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2420. $as_echo_n "checking for $2... " >&6; }
  2421. if eval \${$3+:} false; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2425. /* end confdefs.h. */
  2426. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2427. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2428. #define $2 innocuous_$2
  2429. /* System header to define __stub macros and hopefully few prototypes,
  2430. which can conflict with char $2 (); below.
  2431. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2432. <limits.h> exists even on freestanding compilers. */
  2433. #ifdef __STDC__
  2434. # include <limits.h>
  2435. #else
  2436. # include <assert.h>
  2437. #endif
  2438. #undef $2
  2439. /* Override any GCC internal prototype to avoid an error.
  2440. Use char because int might match the return type of a GCC
  2441. builtin and then its argument prototype would still apply. */
  2442. #ifdef __cplusplus
  2443. extern "C"
  2444. #endif
  2445. char $2 ();
  2446. /* The GNU C library defines this for functions which it implements
  2447. to always fail with ENOSYS. Some functions are actually named
  2448. something starting with __ and the normal name is an alias. */
  2449. #if defined __stub_$2 || defined __stub___$2
  2450. choke me
  2451. #endif
  2452. int
  2453. main ()
  2454. {
  2455. return $2 ();
  2456. ;
  2457. return 0;
  2458. }
  2459. _ACEOF
  2460. if ac_fn_c_try_link "$LINENO"; then :
  2461. eval "$3=yes"
  2462. else
  2463. eval "$3=no"
  2464. fi
  2465. rm -f core conftest.err conftest.$ac_objext \
  2466. conftest$ac_exeext conftest.$ac_ext
  2467. fi
  2468. eval ac_res=\$$3
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2470. $as_echo "$ac_res" >&6; }
  2471. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2472. } # ac_fn_c_check_func
  2473. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2474. # -------------------------------------------
  2475. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2476. # variable VAR accordingly.
  2477. ac_fn_c_check_type ()
  2478. {
  2479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2481. $as_echo_n "checking for $2... " >&6; }
  2482. if eval \${$3+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. eval "$3=no"
  2486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2487. /* end confdefs.h. */
  2488. $4
  2489. int
  2490. main ()
  2491. {
  2492. if (sizeof ($2))
  2493. return 0;
  2494. ;
  2495. return 0;
  2496. }
  2497. _ACEOF
  2498. if ac_fn_c_try_compile "$LINENO"; then :
  2499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2500. /* end confdefs.h. */
  2501. $4
  2502. int
  2503. main ()
  2504. {
  2505. if (sizeof (($2)))
  2506. return 0;
  2507. ;
  2508. return 0;
  2509. }
  2510. _ACEOF
  2511. if ac_fn_c_try_compile "$LINENO"; then :
  2512. else
  2513. eval "$3=yes"
  2514. fi
  2515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2516. fi
  2517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2518. fi
  2519. eval ac_res=\$$3
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2521. $as_echo "$ac_res" >&6; }
  2522. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2523. } # ac_fn_c_check_type
  2524. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2525. # ----------------------------------------------------
  2526. # Tries to find if the field MEMBER exists in type AGGR, after including
  2527. # INCLUDES, setting cache variable VAR accordingly.
  2528. ac_fn_c_check_member ()
  2529. {
  2530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2532. $as_echo_n "checking for $2.$3... " >&6; }
  2533. if eval \${$4+:} false; then :
  2534. $as_echo_n "(cached) " >&6
  2535. else
  2536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2537. /* end confdefs.h. */
  2538. $5
  2539. int
  2540. main ()
  2541. {
  2542. static $2 ac_aggr;
  2543. if (ac_aggr.$3)
  2544. return 0;
  2545. ;
  2546. return 0;
  2547. }
  2548. _ACEOF
  2549. if ac_fn_c_try_compile "$LINENO"; then :
  2550. eval "$4=yes"
  2551. else
  2552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2553. /* end confdefs.h. */
  2554. $5
  2555. int
  2556. main ()
  2557. {
  2558. static $2 ac_aggr;
  2559. if (sizeof ac_aggr.$3)
  2560. return 0;
  2561. ;
  2562. return 0;
  2563. }
  2564. _ACEOF
  2565. if ac_fn_c_try_compile "$LINENO"; then :
  2566. eval "$4=yes"
  2567. else
  2568. eval "$4=no"
  2569. fi
  2570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2571. fi
  2572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2573. fi
  2574. eval ac_res=\$$4
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2576. $as_echo "$ac_res" >&6; }
  2577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2578. } # ac_fn_c_check_member
  2579. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2580. # --------------------------------------------
  2581. # Tries to find the compile-time value of EXPR in a program that includes
  2582. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2583. # computed
  2584. ac_fn_c_compute_int ()
  2585. {
  2586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2587. if test "$cross_compiling" = yes; then
  2588. # Depending upon the size, compute the lo and hi bounds.
  2589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end confdefs.h. */
  2591. $4
  2592. int
  2593. main ()
  2594. {
  2595. static int test_array [1 - 2 * !(($2) >= 0)];
  2596. test_array [0] = 0;
  2597. return test_array [0];
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. if ac_fn_c_try_compile "$LINENO"; then :
  2603. ac_lo=0 ac_mid=0
  2604. while :; do
  2605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2606. /* end confdefs.h. */
  2607. $4
  2608. int
  2609. main ()
  2610. {
  2611. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2612. test_array [0] = 0;
  2613. return test_array [0];
  2614. ;
  2615. return 0;
  2616. }
  2617. _ACEOF
  2618. if ac_fn_c_try_compile "$LINENO"; then :
  2619. ac_hi=$ac_mid; break
  2620. else
  2621. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2622. if test $ac_lo -le $ac_mid; then
  2623. ac_lo= ac_hi=
  2624. break
  2625. fi
  2626. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2627. fi
  2628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2629. done
  2630. else
  2631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2632. /* end confdefs.h. */
  2633. $4
  2634. int
  2635. main ()
  2636. {
  2637. static int test_array [1 - 2 * !(($2) < 0)];
  2638. test_array [0] = 0;
  2639. return test_array [0];
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. if ac_fn_c_try_compile "$LINENO"; then :
  2645. ac_hi=-1 ac_mid=-1
  2646. while :; do
  2647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2648. /* end confdefs.h. */
  2649. $4
  2650. int
  2651. main ()
  2652. {
  2653. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2654. test_array [0] = 0;
  2655. return test_array [0];
  2656. ;
  2657. return 0;
  2658. }
  2659. _ACEOF
  2660. if ac_fn_c_try_compile "$LINENO"; then :
  2661. ac_lo=$ac_mid; break
  2662. else
  2663. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2664. if test $ac_mid -le $ac_hi; then
  2665. ac_lo= ac_hi=
  2666. break
  2667. fi
  2668. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2669. fi
  2670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. done
  2672. else
  2673. ac_lo= ac_hi=
  2674. fi
  2675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2676. fi
  2677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2678. # Binary search between lo and hi bounds.
  2679. while test "x$ac_lo" != "x$ac_hi"; do
  2680. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2682. /* end confdefs.h. */
  2683. $4
  2684. int
  2685. main ()
  2686. {
  2687. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2688. test_array [0] = 0;
  2689. return test_array [0];
  2690. ;
  2691. return 0;
  2692. }
  2693. _ACEOF
  2694. if ac_fn_c_try_compile "$LINENO"; then :
  2695. ac_hi=$ac_mid
  2696. else
  2697. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2698. fi
  2699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2700. done
  2701. case $ac_lo in #((
  2702. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2703. '') ac_retval=1 ;;
  2704. esac
  2705. else
  2706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2707. /* end confdefs.h. */
  2708. $4
  2709. static long int longval () { return $2; }
  2710. static unsigned long int ulongval () { return $2; }
  2711. #include <stdio.h>
  2712. #include <stdlib.h>
  2713. int
  2714. main ()
  2715. {
  2716. FILE *f = fopen ("conftest.val", "w");
  2717. if (! f)
  2718. return 1;
  2719. if (($2) < 0)
  2720. {
  2721. long int i = longval ();
  2722. if (i != ($2))
  2723. return 1;
  2724. fprintf (f, "%ld", i);
  2725. }
  2726. else
  2727. {
  2728. unsigned long int i = ulongval ();
  2729. if (i != ($2))
  2730. return 1;
  2731. fprintf (f, "%lu", i);
  2732. }
  2733. /* Do not output a trailing newline, as this causes \r\n confusion
  2734. on some platforms. */
  2735. return ferror (f) || fclose (f) != 0;
  2736. ;
  2737. return 0;
  2738. }
  2739. _ACEOF
  2740. if ac_fn_c_try_run "$LINENO"; then :
  2741. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2742. else
  2743. ac_retval=1
  2744. fi
  2745. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2746. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2747. rm -f conftest.val
  2748. fi
  2749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2750. as_fn_set_status $ac_retval
  2751. } # ac_fn_c_compute_int
  2752. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2753. # ---------------------------------------------------------
  2754. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2755. # the include files in INCLUDES and setting the cache variable VAR
  2756. # accordingly.
  2757. ac_fn_cxx_check_header_mongrel ()
  2758. {
  2759. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2760. if eval \${$3+:} false; then :
  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. fi
  2766. eval ac_res=\$$3
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2768. $as_echo "$ac_res" >&6; }
  2769. else
  2770. # Is the header compilable?
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2772. $as_echo_n "checking $2 usability... " >&6; }
  2773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2774. /* end confdefs.h. */
  2775. $4
  2776. #include <$2>
  2777. _ACEOF
  2778. if ac_fn_cxx_try_compile "$LINENO"; then :
  2779. ac_header_compiler=yes
  2780. else
  2781. ac_header_compiler=no
  2782. fi
  2783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2785. $as_echo "$ac_header_compiler" >&6; }
  2786. # Is the header present?
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2788. $as_echo_n "checking $2 presence... " >&6; }
  2789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2790. /* end confdefs.h. */
  2791. #include <$2>
  2792. _ACEOF
  2793. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2794. ac_header_preproc=yes
  2795. else
  2796. ac_header_preproc=no
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2800. $as_echo "$ac_header_preproc" >&6; }
  2801. # So? What about this header?
  2802. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2803. yes:no: )
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2805. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2807. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2808. ;;
  2809. no:yes:* )
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2811. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2813. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2815. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2817. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2819. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2820. ( $as_echo "## ------------------------------------------ ##
  2821. ## Report this to https://issues.asterisk.org ##
  2822. ## ------------------------------------------ ##"
  2823. ) | sed "s/^/$as_me: WARNING: /" >&2
  2824. ;;
  2825. esac
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2827. $as_echo_n "checking for $2... " >&6; }
  2828. if eval \${$3+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. eval "$3=\$ac_header_compiler"
  2832. fi
  2833. eval ac_res=\$$3
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2835. $as_echo "$ac_res" >&6; }
  2836. fi
  2837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2838. } # ac_fn_cxx_check_header_mongrel
  2839. # ac_fn_cxx_try_link LINENO
  2840. # -------------------------
  2841. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2842. ac_fn_cxx_try_link ()
  2843. {
  2844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2845. rm -f conftest.$ac_objext conftest$ac_exeext
  2846. if { { ac_try="$ac_link"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2852. $as_echo "$ac_try_echo"; } >&5
  2853. (eval "$ac_link") 2>conftest.err
  2854. ac_status=$?
  2855. if test -s conftest.err; then
  2856. grep -v '^ *+' conftest.err >conftest.er1
  2857. cat conftest.er1 >&5
  2858. mv -f conftest.er1 conftest.err
  2859. fi
  2860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2861. test $ac_status = 0; } && {
  2862. test -z "$ac_cxx_werror_flag" ||
  2863. test ! -s conftest.err
  2864. } && test -s conftest$ac_exeext && {
  2865. test "$cross_compiling" = yes ||
  2866. test -x conftest$ac_exeext
  2867. }; then :
  2868. ac_retval=0
  2869. else
  2870. $as_echo "$as_me: failed program was:" >&5
  2871. sed 's/^/| /' conftest.$ac_ext >&5
  2872. ac_retval=1
  2873. fi
  2874. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2875. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2876. # interfere with the next link command; also delete a directory that is
  2877. # left behind by Apple's compiler. We do this before executing the actions.
  2878. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2879. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2880. as_fn_set_status $ac_retval
  2881. } # ac_fn_cxx_try_link
  2882. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2883. # ---------------------------------------------------------
  2884. # Tests whether HEADER exists and can be compiled using the include files in
  2885. # INCLUDES, setting the cache variable VAR accordingly.
  2886. ac_fn_cxx_check_header_compile ()
  2887. {
  2888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2890. $as_echo_n "checking for $2... " >&6; }
  2891. if eval \${$3+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. $4
  2897. #include <$2>
  2898. _ACEOF
  2899. if ac_fn_cxx_try_compile "$LINENO"; then :
  2900. eval "$3=yes"
  2901. else
  2902. eval "$3=no"
  2903. fi
  2904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2905. fi
  2906. eval ac_res=\$$3
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2908. $as_echo "$ac_res" >&6; }
  2909. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2910. } # ac_fn_cxx_check_header_compile
  2911. cat >config.log <<_ACEOF
  2912. This file contains any messages produced by compilers while
  2913. running configure, to aid debugging if configure makes a mistake.
  2914. It was created by asterisk $as_me trunk, which was
  2915. generated by GNU Autoconf 2.69. Invocation command line was
  2916. $ $0 $@
  2917. _ACEOF
  2918. exec 5>>config.log
  2919. {
  2920. cat <<_ASUNAME
  2921. ## --------- ##
  2922. ## Platform. ##
  2923. ## --------- ##
  2924. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2925. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2926. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2927. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2928. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2929. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2930. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2931. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2932. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2933. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2934. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2935. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2936. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2937. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2938. _ASUNAME
  2939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2940. for as_dir in $PATH
  2941. do
  2942. IFS=$as_save_IFS
  2943. test -z "$as_dir" && as_dir=.
  2944. $as_echo "PATH: $as_dir"
  2945. done
  2946. IFS=$as_save_IFS
  2947. } >&5
  2948. cat >&5 <<_ACEOF
  2949. ## ----------- ##
  2950. ## Core tests. ##
  2951. ## ----------- ##
  2952. _ACEOF
  2953. # Keep a trace of the command line.
  2954. # Strip out --no-create and --no-recursion so they do not pile up.
  2955. # Strip out --silent because we don't want to record it for future runs.
  2956. # Also quote any args containing shell meta-characters.
  2957. # Make two passes to allow for proper duplicate-argument suppression.
  2958. ac_configure_args=
  2959. ac_configure_args0=
  2960. ac_configure_args1=
  2961. ac_must_keep_next=false
  2962. for ac_pass in 1 2
  2963. do
  2964. for ac_arg
  2965. do
  2966. case $ac_arg in
  2967. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2969. | -silent | --silent | --silen | --sile | --sil)
  2970. continue ;;
  2971. *\'*)
  2972. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2973. esac
  2974. case $ac_pass in
  2975. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2976. 2)
  2977. as_fn_append ac_configure_args1 " '$ac_arg'"
  2978. if test $ac_must_keep_next = true; then
  2979. ac_must_keep_next=false # Got value, back to normal.
  2980. else
  2981. case $ac_arg in
  2982. *=* | --config-cache | -C | -disable-* | --disable-* \
  2983. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2984. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2985. | -with-* | --with-* | -without-* | --without-* | --x)
  2986. case "$ac_configure_args0 " in
  2987. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2988. esac
  2989. ;;
  2990. -* ) ac_must_keep_next=true ;;
  2991. esac
  2992. fi
  2993. as_fn_append ac_configure_args " '$ac_arg'"
  2994. ;;
  2995. esac
  2996. done
  2997. done
  2998. { ac_configure_args0=; unset ac_configure_args0;}
  2999. { ac_configure_args1=; unset ac_configure_args1;}
  3000. # When interrupted or exit'd, cleanup temporary files, and complete
  3001. # config.log. We remove comments because anyway the quotes in there
  3002. # would cause problems or look ugly.
  3003. # WARNING: Use '\'' to represent an apostrophe within the trap.
  3004. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  3005. trap 'exit_status=$?
  3006. # Save into config.log some information that might help in debugging.
  3007. {
  3008. echo
  3009. $as_echo "## ---------------- ##
  3010. ## Cache variables. ##
  3011. ## ---------------- ##"
  3012. echo
  3013. # The following way of writing the cache mishandles newlines in values,
  3014. (
  3015. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3016. eval ac_val=\$$ac_var
  3017. case $ac_val in #(
  3018. *${as_nl}*)
  3019. case $ac_var in #(
  3020. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3021. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3022. esac
  3023. case $ac_var in #(
  3024. _ | IFS | as_nl) ;; #(
  3025. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3026. *) { eval $ac_var=; unset $ac_var;} ;;
  3027. esac ;;
  3028. esac
  3029. done
  3030. (set) 2>&1 |
  3031. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  3032. *${as_nl}ac_space=\ *)
  3033. sed -n \
  3034. "s/'\''/'\''\\\\'\'''\''/g;
  3035. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3036. ;; #(
  3037. *)
  3038. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3039. ;;
  3040. esac |
  3041. sort
  3042. )
  3043. echo
  3044. $as_echo "## ----------------- ##
  3045. ## Output variables. ##
  3046. ## ----------------- ##"
  3047. echo
  3048. for ac_var in $ac_subst_vars
  3049. do
  3050. eval ac_val=\$$ac_var
  3051. case $ac_val in
  3052. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3053. esac
  3054. $as_echo "$ac_var='\''$ac_val'\''"
  3055. done | sort
  3056. echo
  3057. if test -n "$ac_subst_files"; then
  3058. $as_echo "## ------------------- ##
  3059. ## File substitutions. ##
  3060. ## ------------------- ##"
  3061. echo
  3062. for ac_var in $ac_subst_files
  3063. do
  3064. eval ac_val=\$$ac_var
  3065. case $ac_val in
  3066. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3067. esac
  3068. $as_echo "$ac_var='\''$ac_val'\''"
  3069. done | sort
  3070. echo
  3071. fi
  3072. if test -s confdefs.h; then
  3073. $as_echo "## ----------- ##
  3074. ## confdefs.h. ##
  3075. ## ----------- ##"
  3076. echo
  3077. cat confdefs.h
  3078. echo
  3079. fi
  3080. test "$ac_signal" != 0 &&
  3081. $as_echo "$as_me: caught signal $ac_signal"
  3082. $as_echo "$as_me: exit $exit_status"
  3083. } >&5
  3084. rm -f core *.core core.conftest.* &&
  3085. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3086. exit $exit_status
  3087. ' 0
  3088. for ac_signal in 1 2 13 15; do
  3089. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3090. done
  3091. ac_signal=0
  3092. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3093. rm -f -r conftest* confdefs.h
  3094. $as_echo "/* confdefs.h */" > confdefs.h
  3095. # Predefined preprocessor variables.
  3096. cat >>confdefs.h <<_ACEOF
  3097. #define PACKAGE_NAME "$PACKAGE_NAME"
  3098. _ACEOF
  3099. cat >>confdefs.h <<_ACEOF
  3100. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3101. _ACEOF
  3102. cat >>confdefs.h <<_ACEOF
  3103. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3104. _ACEOF
  3105. cat >>confdefs.h <<_ACEOF
  3106. #define PACKAGE_STRING "$PACKAGE_STRING"
  3107. _ACEOF
  3108. cat >>confdefs.h <<_ACEOF
  3109. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3110. _ACEOF
  3111. cat >>confdefs.h <<_ACEOF
  3112. #define PACKAGE_URL "$PACKAGE_URL"
  3113. _ACEOF
  3114. # Let the site file select an alternate cache file if it wants to.
  3115. # Prefer an explicitly selected file to automatically selected ones.
  3116. ac_site_file1=NONE
  3117. ac_site_file2=NONE
  3118. if test -n "$CONFIG_SITE"; then
  3119. # We do not want a PATH search for config.site.
  3120. case $CONFIG_SITE in #((
  3121. -*) ac_site_file1=./$CONFIG_SITE;;
  3122. */*) ac_site_file1=$CONFIG_SITE;;
  3123. *) ac_site_file1=./$CONFIG_SITE;;
  3124. esac
  3125. elif test "x$prefix" != xNONE; then
  3126. ac_site_file1=$prefix/share/config.site
  3127. ac_site_file2=$prefix/etc/config.site
  3128. else
  3129. ac_site_file1=$ac_default_prefix/share/config.site
  3130. ac_site_file2=$ac_default_prefix/etc/config.site
  3131. fi
  3132. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3133. do
  3134. test "x$ac_site_file" = xNONE && continue
  3135. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3137. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3138. sed 's/^/| /' "$ac_site_file" >&5
  3139. . "$ac_site_file" \
  3140. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "failed to load site script $ac_site_file
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. done
  3146. if test -r "$cache_file"; then
  3147. # Some versions of bash will fail to source /dev/null (special files
  3148. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3149. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3151. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3152. case $cache_file in
  3153. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3154. *) . "./$cache_file";;
  3155. esac
  3156. fi
  3157. else
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3159. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3160. >$cache_file
  3161. fi
  3162. as_fn_append ac_header_list " stdlib.h"
  3163. as_fn_append ac_header_list " unistd.h"
  3164. as_fn_append ac_header_list " sys/param.h"
  3165. as_fn_append ac_header_list " utime.h"
  3166. # Check that the precious variables saved in the cache have kept the same
  3167. # value.
  3168. ac_cache_corrupted=false
  3169. for ac_var in $ac_precious_vars; do
  3170. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3171. eval ac_new_set=\$ac_env_${ac_var}_set
  3172. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3173. eval ac_new_val=\$ac_env_${ac_var}_value
  3174. case $ac_old_set,$ac_new_set in
  3175. set,)
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3177. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3178. ac_cache_corrupted=: ;;
  3179. ,set)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3181. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3182. ac_cache_corrupted=: ;;
  3183. ,);;
  3184. *)
  3185. if test "x$ac_old_val" != "x$ac_new_val"; then
  3186. # differences in whitespace do not lead to failure.
  3187. ac_old_val_w=`echo x $ac_old_val`
  3188. ac_new_val_w=`echo x $ac_new_val`
  3189. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3191. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3192. ac_cache_corrupted=:
  3193. else
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3195. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3196. eval $ac_var=\$ac_old_val
  3197. fi
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3199. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3201. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3202. fi;;
  3203. esac
  3204. # Pass precious variables to config.status.
  3205. if test "$ac_new_set" = set; then
  3206. case $ac_new_val in
  3207. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3208. *) ac_arg=$ac_var=$ac_new_val ;;
  3209. esac
  3210. case " $ac_configure_args " in
  3211. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3212. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3213. esac
  3214. fi
  3215. done
  3216. if $ac_cache_corrupted; then
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3220. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3221. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3222. fi
  3223. ## -------------------- ##
  3224. ## Main body of script. ##
  3225. ## -------------------- ##
  3226. ac_ext=c
  3227. ac_cpp='$CPP $CPPFLAGS'
  3228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3231. # cross-compile macros
  3232. ac_aux_dir=
  3233. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3234. if test -f "$ac_dir/install-sh"; then
  3235. ac_aux_dir=$ac_dir
  3236. ac_install_sh="$ac_aux_dir/install-sh -c"
  3237. break
  3238. elif test -f "$ac_dir/install.sh"; then
  3239. ac_aux_dir=$ac_dir
  3240. ac_install_sh="$ac_aux_dir/install.sh -c"
  3241. break
  3242. elif test -f "$ac_dir/shtool"; then
  3243. ac_aux_dir=$ac_dir
  3244. ac_install_sh="$ac_aux_dir/shtool install -c"
  3245. break
  3246. fi
  3247. done
  3248. if test -z "$ac_aux_dir"; then
  3249. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3250. fi
  3251. # These three variables are undocumented and unsupported,
  3252. # and are intended to be withdrawn in a future Autoconf release.
  3253. # They can cause serious problems if a builder's source tree is in a directory
  3254. # whose full name contains unusual characters.
  3255. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3256. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3257. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3258. # Make sure we can run config.sub.
  3259. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3260. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3262. $as_echo_n "checking build system type... " >&6; }
  3263. if ${ac_cv_build+:} false; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. ac_build_alias=$build_alias
  3267. test "x$ac_build_alias" = x &&
  3268. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3269. test "x$ac_build_alias" = x &&
  3270. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3271. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3272. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3275. $as_echo "$ac_cv_build" >&6; }
  3276. case $ac_cv_build in
  3277. *-*-*) ;;
  3278. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3279. esac
  3280. build=$ac_cv_build
  3281. ac_save_IFS=$IFS; IFS='-'
  3282. set x $ac_cv_build
  3283. shift
  3284. build_cpu=$1
  3285. build_vendor=$2
  3286. shift; shift
  3287. # Remember, the first character of IFS is used to create $*,
  3288. # except with old shells:
  3289. build_os=$*
  3290. IFS=$ac_save_IFS
  3291. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3293. $as_echo_n "checking host system type... " >&6; }
  3294. if ${ac_cv_host+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. if test "x$host_alias" = x; then
  3298. ac_cv_host=$ac_cv_build
  3299. else
  3300. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3301. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3302. fi
  3303. fi
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3305. $as_echo "$ac_cv_host" >&6; }
  3306. case $ac_cv_host in
  3307. *-*-*) ;;
  3308. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3309. esac
  3310. host=$ac_cv_host
  3311. ac_save_IFS=$IFS; IFS='-'
  3312. set x $ac_cv_host
  3313. shift
  3314. host_cpu=$1
  3315. host_vendor=$2
  3316. shift; shift
  3317. # Remember, the first character of IFS is used to create $*,
  3318. # except with old shells:
  3319. host_os=$*
  3320. IFS=$ac_save_IFS
  3321. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3322. # check existence of the package
  3323. ac_aux_dir=
  3324. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  3325. if test -f "$ac_dir/install-sh"; then
  3326. ac_aux_dir=$ac_dir
  3327. ac_install_sh="$ac_aux_dir/install-sh -c"
  3328. break
  3329. elif test -f "$ac_dir/install.sh"; then
  3330. ac_aux_dir=$ac_dir
  3331. ac_install_sh="$ac_aux_dir/install.sh -c"
  3332. break
  3333. elif test -f "$ac_dir/shtool"; then
  3334. ac_aux_dir=$ac_dir
  3335. ac_install_sh="$ac_aux_dir/shtool install -c"
  3336. break
  3337. fi
  3338. done
  3339. if test -z "$ac_aux_dir"; then
  3340. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  3341. fi
  3342. # These three variables are undocumented and unsupported,
  3343. # and are intended to be withdrawn in a future Autoconf release.
  3344. # They can cause serious problems if a builder's source tree is in a directory
  3345. # whose full name contains unusual characters.
  3346. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3347. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3348. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3349. # preserve any CFLAGS or LDFLAGS that may be set
  3350. # NOTE: This must be done before calling any macros that end up
  3351. # calling AC_PROG_CC or the like, since they will set a default
  3352. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3353. # we don't want those default flags to be carried over into the
  3354. # rest of the build system since we have other means of controlling
  3355. # debugging symbol generation and optimization.
  3356. CONFIG_CFLAGS="${CFLAGS}"
  3357. CONFIG_LDFLAGS="${LDFLAGS}"
  3358. # specify output header file
  3359. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3360. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3361. # other macro that uses the C compiler, or the default order will be used.
  3362. ac_ext=c
  3363. ac_cpp='$CPP $CPPFLAGS'
  3364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3367. if test -n "$ac_tool_prefix"; then
  3368. for ac_prog in gcc cc
  3369. do
  3370. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3371. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373. $as_echo_n "checking for $ac_word... " >&6; }
  3374. if ${ac_cv_prog_CC+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. if test -n "$CC"; then
  3378. ac_cv_prog_CC="$CC" # Let the user override the test.
  3379. else
  3380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381. for as_dir in $PATH
  3382. do
  3383. IFS=$as_save_IFS
  3384. test -z "$as_dir" && as_dir=.
  3385. for ac_exec_ext in '' $ac_executable_extensions; do
  3386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3387. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. fi
  3395. fi
  3396. CC=$ac_cv_prog_CC
  3397. if test -n "$CC"; then
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3399. $as_echo "$CC" >&6; }
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. fi
  3404. test -n "$CC" && break
  3405. done
  3406. fi
  3407. if test -z "$CC"; then
  3408. ac_ct_CC=$CC
  3409. for ac_prog in gcc cc
  3410. do
  3411. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3412. set dummy $ac_prog; ac_word=$2
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3414. $as_echo_n "checking for $ac_word... " >&6; }
  3415. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. if test -n "$ac_ct_CC"; then
  3419. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3420. else
  3421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3422. for as_dir in $PATH
  3423. do
  3424. IFS=$as_save_IFS
  3425. test -z "$as_dir" && as_dir=.
  3426. for ac_exec_ext in '' $ac_executable_extensions; do
  3427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3428. ac_cv_prog_ac_ct_CC="$ac_prog"
  3429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3430. break 2
  3431. fi
  3432. done
  3433. done
  3434. IFS=$as_save_IFS
  3435. fi
  3436. fi
  3437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3438. if test -n "$ac_ct_CC"; then
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3440. $as_echo "$ac_ct_CC" >&6; }
  3441. else
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3443. $as_echo "no" >&6; }
  3444. fi
  3445. test -n "$ac_ct_CC" && break
  3446. done
  3447. if test "x$ac_ct_CC" = x; then
  3448. CC=""
  3449. else
  3450. case $cross_compiling:$ac_tool_warned in
  3451. yes:)
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3454. ac_tool_warned=yes ;;
  3455. esac
  3456. CC=$ac_ct_CC
  3457. fi
  3458. fi
  3459. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3460. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3461. as_fn_error $? "no acceptable C compiler found in \$PATH
  3462. See \`config.log' for more details" "$LINENO" 5; }
  3463. # Provide some information about the compiler.
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3465. set X $ac_compile
  3466. ac_compiler=$2
  3467. for ac_option in --version -v -V -qversion; do
  3468. { { ac_try="$ac_compiler $ac_option >&5"
  3469. case "(($ac_try" in
  3470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471. *) ac_try_echo=$ac_try;;
  3472. esac
  3473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3474. $as_echo "$ac_try_echo"; } >&5
  3475. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3476. ac_status=$?
  3477. if test -s conftest.err; then
  3478. sed '10a\
  3479. ... rest of stderr output deleted ...
  3480. 10q' conftest.err >conftest.er1
  3481. cat conftest.er1 >&5
  3482. fi
  3483. rm -f conftest.er1 conftest.err
  3484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3485. test $ac_status = 0; }
  3486. done
  3487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3488. /* end confdefs.h. */
  3489. int
  3490. main ()
  3491. {
  3492. ;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. ac_clean_files_save=$ac_clean_files
  3497. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3498. # Try to create an executable without -o first, disregard a.out.
  3499. # It will help us diagnose broken compilers, and finding out an intuition
  3500. # of exeext.
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3502. $as_echo_n "checking whether the C compiler works... " >&6; }
  3503. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3504. # The possible output files:
  3505. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3506. ac_rmfiles=
  3507. for ac_file in $ac_files
  3508. do
  3509. case $ac_file in
  3510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3511. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3512. esac
  3513. done
  3514. rm -f $ac_rmfiles
  3515. if { { ac_try="$ac_link_default"
  3516. case "(($ac_try" in
  3517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518. *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3521. $as_echo "$ac_try_echo"; } >&5
  3522. (eval "$ac_link_default") 2>&5
  3523. ac_status=$?
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3525. test $ac_status = 0; }; then :
  3526. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3527. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3528. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3529. # so that the user can short-circuit this test for compilers unknown to
  3530. # Autoconf.
  3531. for ac_file in $ac_files ''
  3532. 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. ;;
  3537. [ab].out )
  3538. # We found the default executable, but exeext='' is most
  3539. # certainly right.
  3540. break;;
  3541. *.* )
  3542. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3543. then :; else
  3544. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3545. fi
  3546. # We set ac_cv_exeext here because the later test for it is not
  3547. # safe: cross compilers may not add the suffix if given an `-o'
  3548. # argument, so we may need to know it at that point already.
  3549. # Even if this section looks crufty: it has the advantage of
  3550. # actually working.
  3551. break;;
  3552. * )
  3553. break;;
  3554. esac
  3555. done
  3556. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3557. else
  3558. ac_file=''
  3559. fi
  3560. if test -z "$ac_file"; then :
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. $as_echo "no" >&6; }
  3563. $as_echo "$as_me: failed program was:" >&5
  3564. sed 's/^/| /' conftest.$ac_ext >&5
  3565. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3566. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3567. as_fn_error 77 "C compiler cannot create executables
  3568. See \`config.log' for more details" "$LINENO" 5; }
  3569. else
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3571. $as_echo "yes" >&6; }
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3574. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3576. $as_echo "$ac_file" >&6; }
  3577. ac_exeext=$ac_cv_exeext
  3578. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3579. ac_clean_files=$ac_clean_files_save
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3581. $as_echo_n "checking for suffix of executables... " >&6; }
  3582. if { { ac_try="$ac_link"
  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_link") 2>&5
  3590. ac_status=$?
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3592. test $ac_status = 0; }; then :
  3593. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3594. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3595. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3596. # `rm'.
  3597. for ac_file in conftest.exe conftest conftest.*; do
  3598. test -f "$ac_file" || continue
  3599. case $ac_file in
  3600. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3601. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3602. break;;
  3603. * ) break;;
  3604. esac
  3605. done
  3606. else
  3607. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3608. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3609. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3610. See \`config.log' for more details" "$LINENO" 5; }
  3611. fi
  3612. rm -f conftest conftest$ac_cv_exeext
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3614. $as_echo "$ac_cv_exeext" >&6; }
  3615. rm -f conftest.$ac_ext
  3616. EXEEXT=$ac_cv_exeext
  3617. ac_exeext=$EXEEXT
  3618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3619. /* end confdefs.h. */
  3620. #include <stdio.h>
  3621. int
  3622. main ()
  3623. {
  3624. FILE *f = fopen ("conftest.out", "w");
  3625. return ferror (f) || fclose (f) != 0;
  3626. ;
  3627. return 0;
  3628. }
  3629. _ACEOF
  3630. ac_clean_files="$ac_clean_files conftest.out"
  3631. # Check that the compiler produces executables we can run. If not, either
  3632. # the compiler is broken, or we cross compile.
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3634. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3635. if test "$cross_compiling" != yes; then
  3636. { { ac_try="$ac_link"
  3637. case "(($ac_try" in
  3638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3639. *) ac_try_echo=$ac_try;;
  3640. esac
  3641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3642. $as_echo "$ac_try_echo"; } >&5
  3643. (eval "$ac_link") 2>&5
  3644. ac_status=$?
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }
  3647. if { ac_try='./conftest$ac_cv_exeext'
  3648. { { case "(($ac_try" in
  3649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3650. *) ac_try_echo=$ac_try;;
  3651. esac
  3652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3653. $as_echo "$ac_try_echo"; } >&5
  3654. (eval "$ac_try") 2>&5
  3655. ac_status=$?
  3656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3657. test $ac_status = 0; }; }; then
  3658. cross_compiling=no
  3659. else
  3660. if test "$cross_compiling" = maybe; then
  3661. cross_compiling=yes
  3662. else
  3663. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3664. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3665. as_fn_error $? "cannot run C compiled programs.
  3666. If you meant to cross compile, use \`--host'.
  3667. See \`config.log' for more details" "$LINENO" 5; }
  3668. fi
  3669. fi
  3670. fi
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3672. $as_echo "$cross_compiling" >&6; }
  3673. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3674. ac_clean_files=$ac_clean_files_save
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3676. $as_echo_n "checking for suffix of object files... " >&6; }
  3677. if ${ac_cv_objext+:} false; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3681. /* end confdefs.h. */
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. rm -f conftest.o conftest.obj
  3690. if { { ac_try="$ac_compile"
  3691. case "(($ac_try" in
  3692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3693. *) ac_try_echo=$ac_try;;
  3694. esac
  3695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3696. $as_echo "$ac_try_echo"; } >&5
  3697. (eval "$ac_compile") 2>&5
  3698. ac_status=$?
  3699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3700. test $ac_status = 0; }; then :
  3701. for ac_file in conftest.o conftest.obj conftest.*; do
  3702. test -f "$ac_file" || continue;
  3703. case $ac_file in
  3704. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3705. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3706. break;;
  3707. esac
  3708. done
  3709. else
  3710. $as_echo "$as_me: failed program was:" >&5
  3711. sed 's/^/| /' conftest.$ac_ext >&5
  3712. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3714. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3715. See \`config.log' for more details" "$LINENO" 5; }
  3716. fi
  3717. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3718. fi
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3720. $as_echo "$ac_cv_objext" >&6; }
  3721. OBJEXT=$ac_cv_objext
  3722. ac_objext=$OBJEXT
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3724. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3725. if ${ac_cv_c_compiler_gnu+:} false; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. #ifndef __GNUC__
  3734. choke me
  3735. #endif
  3736. ;
  3737. return 0;
  3738. }
  3739. _ACEOF
  3740. if ac_fn_c_try_compile "$LINENO"; then :
  3741. ac_compiler_gnu=yes
  3742. else
  3743. ac_compiler_gnu=no
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3749. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3750. if test $ac_compiler_gnu = yes; then
  3751. GCC=yes
  3752. else
  3753. GCC=
  3754. fi
  3755. ac_test_CFLAGS=${CFLAGS+set}
  3756. ac_save_CFLAGS=$CFLAGS
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3758. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3759. if ${ac_cv_prog_cc_g+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. ac_save_c_werror_flag=$ac_c_werror_flag
  3763. ac_c_werror_flag=yes
  3764. ac_cv_prog_cc_g=no
  3765. CFLAGS="-g"
  3766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3767. /* end confdefs.h. */
  3768. int
  3769. main ()
  3770. {
  3771. ;
  3772. return 0;
  3773. }
  3774. _ACEOF
  3775. if ac_fn_c_try_compile "$LINENO"; then :
  3776. ac_cv_prog_cc_g=yes
  3777. else
  3778. CFLAGS=""
  3779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3780. /* end confdefs.h. */
  3781. int
  3782. main ()
  3783. {
  3784. ;
  3785. return 0;
  3786. }
  3787. _ACEOF
  3788. if ac_fn_c_try_compile "$LINENO"; then :
  3789. else
  3790. ac_c_werror_flag=$ac_save_c_werror_flag
  3791. CFLAGS="-g"
  3792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3793. /* end confdefs.h. */
  3794. int
  3795. main ()
  3796. {
  3797. ;
  3798. return 0;
  3799. }
  3800. _ACEOF
  3801. if ac_fn_c_try_compile "$LINENO"; then :
  3802. ac_cv_prog_cc_g=yes
  3803. fi
  3804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3805. fi
  3806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3807. fi
  3808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3809. ac_c_werror_flag=$ac_save_c_werror_flag
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3812. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3813. if test "$ac_test_CFLAGS" = set; then
  3814. CFLAGS=$ac_save_CFLAGS
  3815. elif test $ac_cv_prog_cc_g = yes; then
  3816. if test "$GCC" = yes; then
  3817. CFLAGS="-g -O2"
  3818. else
  3819. CFLAGS="-g"
  3820. fi
  3821. else
  3822. if test "$GCC" = yes; then
  3823. CFLAGS="-O2"
  3824. else
  3825. CFLAGS=
  3826. fi
  3827. fi
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3829. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3830. if ${ac_cv_prog_cc_c89+:} false; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. ac_cv_prog_cc_c89=no
  3834. ac_save_CC=$CC
  3835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3836. /* end confdefs.h. */
  3837. #include <stdarg.h>
  3838. #include <stdio.h>
  3839. struct stat;
  3840. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3841. struct buf { int x; };
  3842. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3843. static char *e (p, i)
  3844. char **p;
  3845. int i;
  3846. {
  3847. return p[i];
  3848. }
  3849. static char *f (char * (*g) (char **, int), char **p, ...)
  3850. {
  3851. char *s;
  3852. va_list v;
  3853. va_start (v,p);
  3854. s = g (p, va_arg (v,int));
  3855. va_end (v);
  3856. return s;
  3857. }
  3858. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3859. function prototypes and stuff, but not '\xHH' hex character constants.
  3860. These don't provoke an error unfortunately, instead are silently treated
  3861. as 'x'. The following induces an error, until -std is added to get
  3862. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3863. array size at least. It's necessary to write '\x00'==0 to get something
  3864. that's true only with -std. */
  3865. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3866. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3867. inside strings and character constants. */
  3868. #define FOO(x) 'x'
  3869. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3870. int test (int i, double x);
  3871. struct s1 {int (*f) (int a);};
  3872. struct s2 {int (*f) (double a);};
  3873. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3874. int argc;
  3875. char **argv;
  3876. int
  3877. main ()
  3878. {
  3879. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3880. ;
  3881. return 0;
  3882. }
  3883. _ACEOF
  3884. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3885. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3886. do
  3887. CC="$ac_save_CC $ac_arg"
  3888. if ac_fn_c_try_compile "$LINENO"; then :
  3889. ac_cv_prog_cc_c89=$ac_arg
  3890. fi
  3891. rm -f core conftest.err conftest.$ac_objext
  3892. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3893. done
  3894. rm -f conftest.$ac_ext
  3895. CC=$ac_save_CC
  3896. fi
  3897. # AC_CACHE_VAL
  3898. case "x$ac_cv_prog_cc_c89" in
  3899. x)
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3901. $as_echo "none needed" >&6; } ;;
  3902. xno)
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3904. $as_echo "unsupported" >&6; } ;;
  3905. *)
  3906. CC="$CC $ac_cv_prog_cc_c89"
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3908. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3909. esac
  3910. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3911. fi
  3912. ac_ext=c
  3913. ac_cpp='$CPP $CPPFLAGS'
  3914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3917. ac_ext=c
  3918. ac_cpp='$CPP $CPPFLAGS'
  3919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3923. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3924. # On Suns, sometimes $CPP names a directory.
  3925. if test -n "$CPP" && test -d "$CPP"; then
  3926. CPP=
  3927. fi
  3928. if test -z "$CPP"; then
  3929. if ${ac_cv_prog_CPP+:} false; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. # Double quotes because CPP needs to be expanded
  3933. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3934. do
  3935. ac_preproc_ok=false
  3936. for ac_c_preproc_warn_flag in '' yes
  3937. do
  3938. # Use a header file that comes with gcc, so configuring glibc
  3939. # with a fresh cross-compiler works.
  3940. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3941. # <limits.h> exists even on freestanding compilers.
  3942. # On the NeXT, cc -E runs the code through the compiler's parser,
  3943. # not just through cpp. "Syntax error" is here to catch this case.
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. #ifdef __STDC__
  3947. # include <limits.h>
  3948. #else
  3949. # include <assert.h>
  3950. #endif
  3951. Syntax error
  3952. _ACEOF
  3953. if ac_fn_c_try_cpp "$LINENO"; then :
  3954. else
  3955. # Broken: fails on valid input.
  3956. continue
  3957. fi
  3958. rm -f conftest.err conftest.i conftest.$ac_ext
  3959. # OK, works on sane cases. Now check whether nonexistent headers
  3960. # can be detected and how.
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. #include <ac_nonexistent.h>
  3964. _ACEOF
  3965. if ac_fn_c_try_cpp "$LINENO"; then :
  3966. # Broken: success on invalid input.
  3967. continue
  3968. else
  3969. # Passes both tests.
  3970. ac_preproc_ok=:
  3971. break
  3972. fi
  3973. rm -f conftest.err conftest.i conftest.$ac_ext
  3974. done
  3975. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3976. rm -f conftest.i conftest.err conftest.$ac_ext
  3977. if $ac_preproc_ok; then :
  3978. break
  3979. fi
  3980. done
  3981. ac_cv_prog_CPP=$CPP
  3982. fi
  3983. CPP=$ac_cv_prog_CPP
  3984. else
  3985. ac_cv_prog_CPP=$CPP
  3986. fi
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3988. $as_echo "$CPP" >&6; }
  3989. ac_preproc_ok=false
  3990. for ac_c_preproc_warn_flag in '' yes
  3991. do
  3992. # Use a header file that comes with gcc, so configuring glibc
  3993. # with a fresh cross-compiler works.
  3994. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3995. # <limits.h> exists even on freestanding compilers.
  3996. # On the NeXT, cc -E runs the code through the compiler's parser,
  3997. # not just through cpp. "Syntax error" is here to catch this case.
  3998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3999. /* end confdefs.h. */
  4000. #ifdef __STDC__
  4001. # include <limits.h>
  4002. #else
  4003. # include <assert.h>
  4004. #endif
  4005. Syntax error
  4006. _ACEOF
  4007. if ac_fn_c_try_cpp "$LINENO"; then :
  4008. else
  4009. # Broken: fails on valid input.
  4010. continue
  4011. fi
  4012. rm -f conftest.err conftest.i conftest.$ac_ext
  4013. # OK, works on sane cases. Now check whether nonexistent headers
  4014. # can be detected and how.
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. #include <ac_nonexistent.h>
  4018. _ACEOF
  4019. if ac_fn_c_try_cpp "$LINENO"; then :
  4020. # Broken: success on invalid input.
  4021. continue
  4022. else
  4023. # Passes both tests.
  4024. ac_preproc_ok=:
  4025. break
  4026. fi
  4027. rm -f conftest.err conftest.i conftest.$ac_ext
  4028. done
  4029. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4030. rm -f conftest.i conftest.err conftest.$ac_ext
  4031. if $ac_preproc_ok; then :
  4032. else
  4033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4035. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4036. See \`config.log' for more details" "$LINENO" 5; }
  4037. fi
  4038. ac_ext=c
  4039. ac_cpp='$CPP $CPPFLAGS'
  4040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4044. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4045. if ${ac_cv_path_GREP+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. if test -z "$GREP"; then
  4049. ac_path_GREP_found=false
  4050. # Loop through the user's path and test for each of PROGNAME-LIST
  4051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4052. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4053. do
  4054. IFS=$as_save_IFS
  4055. test -z "$as_dir" && as_dir=.
  4056. for ac_prog in grep ggrep; do
  4057. for ac_exec_ext in '' $ac_executable_extensions; do
  4058. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4059. as_fn_executable_p "$ac_path_GREP" || continue
  4060. # Check for GNU ac_path_GREP and select it if it is found.
  4061. # Check for GNU $ac_path_GREP
  4062. case `"$ac_path_GREP" --version 2>&1` in
  4063. *GNU*)
  4064. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4065. *)
  4066. ac_count=0
  4067. $as_echo_n 0123456789 >"conftest.in"
  4068. while :
  4069. do
  4070. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4071. mv "conftest.tmp" "conftest.in"
  4072. cp "conftest.in" "conftest.nl"
  4073. $as_echo 'GREP' >> "conftest.nl"
  4074. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4075. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4076. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4077. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4078. # Best one so far, save it but keep looking for a better one
  4079. ac_cv_path_GREP="$ac_path_GREP"
  4080. ac_path_GREP_max=$ac_count
  4081. fi
  4082. # 10*(2^10) chars as input seems more than enough
  4083. test $ac_count -gt 10 && break
  4084. done
  4085. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4086. esac
  4087. $ac_path_GREP_found && break 3
  4088. done
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. if test -z "$ac_cv_path_GREP"; then
  4093. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4094. fi
  4095. else
  4096. ac_cv_path_GREP=$GREP
  4097. fi
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4100. $as_echo "$ac_cv_path_GREP" >&6; }
  4101. GREP="$ac_cv_path_GREP"
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4103. $as_echo_n "checking for egrep... " >&6; }
  4104. if ${ac_cv_path_EGREP+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4108. then ac_cv_path_EGREP="$GREP -E"
  4109. else
  4110. if test -z "$EGREP"; then
  4111. ac_path_EGREP_found=false
  4112. # Loop through the user's path and test for each of PROGNAME-LIST
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_prog in egrep; do
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4121. as_fn_executable_p "$ac_path_EGREP" || continue
  4122. # Check for GNU ac_path_EGREP and select it if it is found.
  4123. # Check for GNU $ac_path_EGREP
  4124. case `"$ac_path_EGREP" --version 2>&1` in
  4125. *GNU*)
  4126. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4127. *)
  4128. ac_count=0
  4129. $as_echo_n 0123456789 >"conftest.in"
  4130. while :
  4131. do
  4132. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4133. mv "conftest.tmp" "conftest.in"
  4134. cp "conftest.in" "conftest.nl"
  4135. $as_echo 'EGREP' >> "conftest.nl"
  4136. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4137. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4138. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4139. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4140. # Best one so far, save it but keep looking for a better one
  4141. ac_cv_path_EGREP="$ac_path_EGREP"
  4142. ac_path_EGREP_max=$ac_count
  4143. fi
  4144. # 10*(2^10) chars as input seems more than enough
  4145. test $ac_count -gt 10 && break
  4146. done
  4147. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4148. esac
  4149. $ac_path_EGREP_found && break 3
  4150. done
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. if test -z "$ac_cv_path_EGREP"; then
  4155. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4156. fi
  4157. else
  4158. ac_cv_path_EGREP=$EGREP
  4159. fi
  4160. fi
  4161. fi
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4163. $as_echo "$ac_cv_path_EGREP" >&6; }
  4164. EGREP="$ac_cv_path_EGREP"
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4166. $as_echo_n "checking for ANSI C header files... " >&6; }
  4167. if ${ac_cv_header_stdc+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. #include <stdlib.h>
  4173. #include <stdarg.h>
  4174. #include <string.h>
  4175. #include <float.h>
  4176. int
  4177. main ()
  4178. {
  4179. ;
  4180. return 0;
  4181. }
  4182. _ACEOF
  4183. if ac_fn_c_try_compile "$LINENO"; then :
  4184. ac_cv_header_stdc=yes
  4185. else
  4186. ac_cv_header_stdc=no
  4187. fi
  4188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4189. if test $ac_cv_header_stdc = yes; then
  4190. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4192. /* end confdefs.h. */
  4193. #include <string.h>
  4194. _ACEOF
  4195. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4196. $EGREP "memchr" >/dev/null 2>&1; then :
  4197. else
  4198. ac_cv_header_stdc=no
  4199. fi
  4200. rm -f conftest*
  4201. fi
  4202. if test $ac_cv_header_stdc = yes; then
  4203. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. #include <stdlib.h>
  4207. _ACEOF
  4208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4209. $EGREP "free" >/dev/null 2>&1; then :
  4210. else
  4211. ac_cv_header_stdc=no
  4212. fi
  4213. rm -f conftest*
  4214. fi
  4215. if test $ac_cv_header_stdc = yes; then
  4216. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4217. if test "$cross_compiling" = yes; then :
  4218. :
  4219. else
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. #include <ctype.h>
  4223. #include <stdlib.h>
  4224. #if ((' ' & 0x0FF) == 0x020)
  4225. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4226. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4227. #else
  4228. # define ISLOWER(c) \
  4229. (('a' <= (c) && (c) <= 'i') \
  4230. || ('j' <= (c) && (c) <= 'r') \
  4231. || ('s' <= (c) && (c) <= 'z'))
  4232. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4233. #endif
  4234. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4235. int
  4236. main ()
  4237. {
  4238. int i;
  4239. for (i = 0; i < 256; i++)
  4240. if (XOR (islower (i), ISLOWER (i))
  4241. || toupper (i) != TOUPPER (i))
  4242. return 2;
  4243. return 0;
  4244. }
  4245. _ACEOF
  4246. if ac_fn_c_try_run "$LINENO"; then :
  4247. else
  4248. ac_cv_header_stdc=no
  4249. fi
  4250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4251. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4252. fi
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4256. $as_echo "$ac_cv_header_stdc" >&6; }
  4257. if test $ac_cv_header_stdc = yes; then
  4258. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4259. fi
  4260. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4261. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4262. inttypes.h stdint.h unistd.h
  4263. do :
  4264. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4265. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4266. "
  4267. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4268. cat >>confdefs.h <<_ACEOF
  4269. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4270. _ACEOF
  4271. fi
  4272. done
  4273. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4274. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4275. MINIX=yes
  4276. else
  4277. MINIX=
  4278. fi
  4279. if test "$MINIX" = yes; then
  4280. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4281. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4282. $as_echo "#define _MINIX 1" >>confdefs.h
  4283. fi
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4285. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4286. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4290. /* end confdefs.h. */
  4291. # define __EXTENSIONS__ 1
  4292. $ac_includes_default
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_cv_safe_to_define___extensions__=yes
  4302. else
  4303. ac_cv_safe_to_define___extensions__=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. fi
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4308. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4309. test $ac_cv_safe_to_define___extensions__ = yes &&
  4310. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4311. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4312. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4313. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4314. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4315. # System default paths
  4316. astsbindir='${sbindir}'
  4317. astetcdir='${sysconfdir}/asterisk'
  4318. astheaderdir='${includedir}/asterisk'
  4319. astlibdir='${libdir}'
  4320. astmoddir='${libdir}/asterisk/modules'
  4321. astmandir='${mandir}'
  4322. astvarlibdir='${localstatedir}/lib/asterisk'
  4323. astdatadir='${astvarlibdir}'
  4324. astdbdir='${astvarlibdir}'
  4325. astkeydir='${astvarlibdir}'
  4326. astspooldir='${localstatedir}/spool/asterisk'
  4327. astlogdir='${localstatedir}/log/asterisk'
  4328. astvarrundir='${localstatedir}/run/asterisk'
  4329. case "${host_os}" in
  4330. *bsd*)
  4331. if test ${prefix} = 'NONE'; then
  4332. astvarlibdir='${prefix}/share/asterisk'
  4333. astdbdir='${localstatedir}/db/asterisk'
  4334. fi
  4335. ;;
  4336. darwin*)
  4337. if test ${prefix} = 'NONE'; then
  4338. astvarrundir='/Library/Application Support/Asterisk/Run'
  4339. fi
  4340. ;;
  4341. esac
  4342. case "${host_os}" in
  4343. freebsd*)
  4344. ac_default_prefix=/usr/local
  4345. CPPFLAGS=-I/usr/local/include
  4346. LDFLAGS=-L/usr/local/lib
  4347. ;;
  4348. openbsd*)
  4349. ac_default_prefix=/usr/local
  4350. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4351. if test ${sysconfdir} = '${prefix}/etc'; then
  4352. astetcdir=/etc/asterisk
  4353. fi
  4354. if test ${mandir} = '${prefix}/man'; then
  4355. astmandir=/usr/share/man
  4356. fi
  4357. fi
  4358. CPPFLAGS=-I/usr/local/include
  4359. LDFLAGS=-L/usr/local/lib
  4360. ;;
  4361. darwin*)
  4362. ac_default_prefix=/usr/local
  4363. if test ${prefix} = 'NONE'; then
  4364. astmoddir='/Library/Application Support/Asterisk/Modules'
  4365. astvarlibdir='/Library/Application Support/Asterisk'
  4366. astlogdir=/Library/Logs/Asterisk
  4367. astvarrundir='/Library/Application Support/Asterisk/Run'
  4368. fi
  4369. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4370. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4371. ;;
  4372. solaris*)
  4373. if test ${prefix} = 'NONE'; then
  4374. astetcdir=/var/etc/asterisk
  4375. astsbindir=/opt/asterisk/sbin
  4376. astlibdir=/opt/asterisk/lib
  4377. astmoddir=/opt/asterisk/lib/modules
  4378. astheaderdir=/opt/asterisk/include
  4379. astmandir=/opt/asterisk/man
  4380. astvarlibdir=/var/opt/asterisk
  4381. astspooldir=/var/spool/asterisk
  4382. astlogdir=/var/log/asterisk
  4383. astvarrundir=/var/run/asterisk
  4384. fi
  4385. ;;
  4386. *)
  4387. ac_default_prefix=/usr
  4388. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4389. if test ${sysconfdir} = '${prefix}/etc'; then
  4390. sysconfdir=/etc
  4391. fi
  4392. if test ${mandir} = '${prefix}/man'; then
  4393. mandir=/usr/share/man
  4394. fi
  4395. fi
  4396. ;;
  4397. esac
  4398. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4399. if test ${localstatedir} = '${prefix}/var'; then
  4400. localstatedir=/var
  4401. fi
  4402. fi
  4403. BUILD_PLATFORM=${build}
  4404. BUILD_CPU=${build_cpu}
  4405. BUILD_VENDOR=${build_vendor}
  4406. BUILD_OS=${build_os}
  4407. HOST_PLATFORM=${host}
  4408. HOST_CPU=${host_cpu}
  4409. HOST_VENDOR=${host_vendor}
  4410. HOST_OS=${host_os}
  4411. PBX_WINARCH=0
  4412. case "${host_os}" in
  4413. freebsd*)
  4414. OSARCH=FreeBSD
  4415. ;;
  4416. netbsd*)
  4417. OSARCH=NetBSD
  4418. ;;
  4419. openbsd*)
  4420. OSARCH=OpenBSD
  4421. ;;
  4422. solaris*)
  4423. OSARCH=SunOS
  4424. ;;
  4425. mingw32)
  4426. OSARCH=mingw32
  4427. PBX_WINARCH=1
  4428. ;;
  4429. cygwin)
  4430. OSARCH=cygwin
  4431. PBX_WINARCH=1
  4432. ;;
  4433. linux-gnueabi* | linux-gnuspe)
  4434. OSARCH=linux-gnu
  4435. ;;
  4436. kfreebsd*-gnu)
  4437. OSARCH=kfreebsd-gnu
  4438. ;;
  4439. *)
  4440. OSARCH=${host_os}
  4441. ;;
  4442. esac
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  4444. $as_echo_n "checking whether char is unsigned... " >&6; }
  4445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4446. /* end confdefs.h. */
  4447. #include <limits.h>
  4448. #if CHAR_MIN == 0
  4449. #error
  4450. #endif
  4451. _ACEOF
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. CONFIG_SIGNED_CHAR=""
  4456. else
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4458. $as_echo "yes" >&6; }
  4459. CONFIG_SIGNED_CHAR="-fsigned-char"
  4460. fi
  4461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4462. # check for uname
  4463. if test -n "$ac_tool_prefix"; then
  4464. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4465. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4467. $as_echo_n "checking for $ac_word... " >&6; }
  4468. if ${ac_cv_path_UNAME+:} false; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. case $UNAME in
  4472. [\\/]* | ?:[\\/]*)
  4473. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4474. ;;
  4475. *)
  4476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4477. for as_dir in $PATH
  4478. do
  4479. IFS=$as_save_IFS
  4480. test -z "$as_dir" && as_dir=.
  4481. for ac_exec_ext in '' $ac_executable_extensions; do
  4482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4483. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4485. break 2
  4486. fi
  4487. done
  4488. done
  4489. IFS=$as_save_IFS
  4490. ;;
  4491. esac
  4492. fi
  4493. UNAME=$ac_cv_path_UNAME
  4494. if test -n "$UNAME"; then
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4496. $as_echo "$UNAME" >&6; }
  4497. else
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4499. $as_echo "no" >&6; }
  4500. fi
  4501. fi
  4502. if test -z "$ac_cv_path_UNAME"; then
  4503. ac_pt_UNAME=$UNAME
  4504. # Extract the first word of "uname", so it can be a program name with args.
  4505. set dummy uname; ac_word=$2
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4507. $as_echo_n "checking for $ac_word... " >&6; }
  4508. if ${ac_cv_path_ac_pt_UNAME+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. case $ac_pt_UNAME in
  4512. [\\/]* | ?:[\\/]*)
  4513. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4514. ;;
  4515. *)
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519. IFS=$as_save_IFS
  4520. test -z "$as_dir" && as_dir=.
  4521. for ac_exec_ext in '' $ac_executable_extensions; do
  4522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4523. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4525. break 2
  4526. fi
  4527. done
  4528. done
  4529. IFS=$as_save_IFS
  4530. ;;
  4531. esac
  4532. fi
  4533. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4534. if test -n "$ac_pt_UNAME"; then
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4536. $as_echo "$ac_pt_UNAME" >&6; }
  4537. else
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4539. $as_echo "no" >&6; }
  4540. fi
  4541. if test "x$ac_pt_UNAME" = x; then
  4542. UNAME="No"
  4543. else
  4544. case $cross_compiling:$ac_tool_warned in
  4545. yes:)
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4548. ac_tool_warned=yes ;;
  4549. esac
  4550. UNAME=$ac_pt_UNAME
  4551. fi
  4552. else
  4553. UNAME="$ac_cv_path_UNAME"
  4554. fi
  4555. if test ! x"${UNAME}" = xNo; then
  4556. PBX_OSREV=$(${UNAME} -r)
  4557. fi
  4558. # cross-compile checks
  4559. if test "${cross_compiling}" = "yes";
  4560. then
  4561. if test -n "$ac_tool_prefix"; then
  4562. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4563. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4565. $as_echo_n "checking for $ac_word... " >&6; }
  4566. if ${ac_cv_prog_CC+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. if test -n "$CC"; then
  4570. ac_cv_prog_CC="$CC" # Let the user override the test.
  4571. else
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_exec_ext in '' $ac_executable_extensions; do
  4578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4579. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4581. break 2
  4582. fi
  4583. done
  4584. done
  4585. IFS=$as_save_IFS
  4586. fi
  4587. fi
  4588. CC=$ac_cv_prog_CC
  4589. if test -n "$CC"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4591. $as_echo "$CC" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. fi
  4597. if test -z "$ac_cv_prog_CC"; then
  4598. ac_ct_CC=$CC
  4599. # Extract the first word of "gcc", so it can be a program name with args.
  4600. set dummy gcc; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$ac_ct_CC"; then
  4607. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4616. ac_cv_prog_ac_ct_CC="gcc"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4626. if test -n "$ac_ct_CC"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4628. $as_echo "$ac_ct_CC" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. if test "x$ac_ct_CC" = x; then
  4634. CC=":"
  4635. else
  4636. case $cross_compiling:$ac_tool_warned in
  4637. yes:)
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4640. ac_tool_warned=yes ;;
  4641. esac
  4642. CC=$ac_ct_CC
  4643. fi
  4644. else
  4645. CC="$ac_cv_prog_CC"
  4646. fi
  4647. if test -n "$ac_tool_prefix"; then
  4648. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4649. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if ${ac_cv_prog_CXX+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$CXX"; then
  4656. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4657. else
  4658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659. for as_dir in $PATH
  4660. do
  4661. IFS=$as_save_IFS
  4662. test -z "$as_dir" && as_dir=.
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4665. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667. break 2
  4668. fi
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. fi
  4673. fi
  4674. CXX=$ac_cv_prog_CXX
  4675. if test -n "$CXX"; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4677. $as_echo "$CXX" >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4680. $as_echo "no" >&6; }
  4681. fi
  4682. fi
  4683. if test -z "$ac_cv_prog_CXX"; then
  4684. ac_ct_CXX=$CXX
  4685. # Extract the first word of "g++", so it can be a program name with args.
  4686. set dummy g++; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$ac_ct_CXX"; then
  4693. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_ac_ct_CXX="g++"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4712. if test -n "$ac_ct_CXX"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4714. $as_echo "$ac_ct_CXX" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. if test "x$ac_ct_CXX" = x; then
  4720. CXX=":"
  4721. else
  4722. case $cross_compiling:$ac_tool_warned in
  4723. yes:)
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4726. ac_tool_warned=yes ;;
  4727. esac
  4728. CXX=$ac_ct_CXX
  4729. fi
  4730. else
  4731. CXX="$ac_cv_prog_CXX"
  4732. fi
  4733. if test -n "$ac_tool_prefix"; then
  4734. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4735. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_LD+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$LD"; then
  4742. ac_cv_prog_LD="$LD" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. LD=$ac_cv_prog_LD
  4761. if test -n "$LD"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4763. $as_echo "$LD" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. fi
  4769. if test -z "$ac_cv_prog_LD"; then
  4770. ac_ct_LD=$LD
  4771. # Extract the first word of "ld", so it can be a program name with args.
  4772. set dummy ld; ac_word=$2
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. $as_echo_n "checking for $ac_word... " >&6; }
  4775. if ${ac_cv_prog_ac_ct_LD+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$ac_ct_LD"; then
  4779. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4780. else
  4781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4782. for as_dir in $PATH
  4783. do
  4784. IFS=$as_save_IFS
  4785. test -z "$as_dir" && as_dir=.
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4788. ac_cv_prog_ac_ct_LD="ld"
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4790. break 2
  4791. fi
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. fi
  4796. fi
  4797. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4798. if test -n "$ac_ct_LD"; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4800. $as_echo "$ac_ct_LD" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }
  4804. fi
  4805. if test "x$ac_ct_LD" = x; then
  4806. LD=":"
  4807. else
  4808. case $cross_compiling:$ac_tool_warned in
  4809. yes:)
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4812. ac_tool_warned=yes ;;
  4813. esac
  4814. LD=$ac_ct_LD
  4815. fi
  4816. else
  4817. LD="$ac_cv_prog_LD"
  4818. fi
  4819. if test -n "$ac_tool_prefix"; then
  4820. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4821. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4823. $as_echo_n "checking for $ac_word... " >&6; }
  4824. if ${ac_cv_prog_RANLIB+:} false; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. if test -n "$RANLIB"; then
  4828. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4829. else
  4830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4831. for as_dir in $PATH
  4832. do
  4833. IFS=$as_save_IFS
  4834. test -z "$as_dir" && as_dir=.
  4835. for ac_exec_ext in '' $ac_executable_extensions; do
  4836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4837. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4839. break 2
  4840. fi
  4841. done
  4842. done
  4843. IFS=$as_save_IFS
  4844. fi
  4845. fi
  4846. RANLIB=$ac_cv_prog_RANLIB
  4847. if test -n "$RANLIB"; then
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4849. $as_echo "$RANLIB" >&6; }
  4850. else
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4852. $as_echo "no" >&6; }
  4853. fi
  4854. fi
  4855. if test -z "$ac_cv_prog_RANLIB"; then
  4856. ac_ct_RANLIB=$RANLIB
  4857. # Extract the first word of "ranlib", so it can be a program name with args.
  4858. set dummy ranlib; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$ac_ct_RANLIB"; then
  4865. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4874. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4884. if test -n "$ac_ct_RANLIB"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4886. $as_echo "$ac_ct_RANLIB" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. if test "x$ac_ct_RANLIB" = x; then
  4892. RANLIB=":"
  4893. else
  4894. case $cross_compiling:$ac_tool_warned in
  4895. yes:)
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4898. ac_tool_warned=yes ;;
  4899. esac
  4900. RANLIB=$ac_ct_RANLIB
  4901. fi
  4902. else
  4903. RANLIB="$ac_cv_prog_RANLIB"
  4904. fi
  4905. fi
  4906. # Checks for programs.
  4907. ac_ext=cpp
  4908. ac_cpp='$CXXCPP $CPPFLAGS'
  4909. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4910. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4911. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4912. if test -z "$CXX"; then
  4913. if test -n "$CCC"; then
  4914. CXX=$CCC
  4915. else
  4916. if test -n "$ac_tool_prefix"; then
  4917. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4918. do
  4919. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4920. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4922. $as_echo_n "checking for $ac_word... " >&6; }
  4923. if ${ac_cv_prog_CXX+:} false; then :
  4924. $as_echo_n "(cached) " >&6
  4925. else
  4926. if test -n "$CXX"; then
  4927. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4928. else
  4929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4930. for as_dir in $PATH
  4931. do
  4932. IFS=$as_save_IFS
  4933. test -z "$as_dir" && as_dir=.
  4934. for ac_exec_ext in '' $ac_executable_extensions; do
  4935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4936. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4938. break 2
  4939. fi
  4940. done
  4941. done
  4942. IFS=$as_save_IFS
  4943. fi
  4944. fi
  4945. CXX=$ac_cv_prog_CXX
  4946. if test -n "$CXX"; then
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4948. $as_echo "$CXX" >&6; }
  4949. else
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4951. $as_echo "no" >&6; }
  4952. fi
  4953. test -n "$CXX" && break
  4954. done
  4955. fi
  4956. if test -z "$CXX"; then
  4957. ac_ct_CXX=$CXX
  4958. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4959. do
  4960. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4961. set dummy $ac_prog; ac_word=$2
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4963. $as_echo_n "checking for $ac_word... " >&6; }
  4964. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. if test -n "$ac_ct_CXX"; then
  4968. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4969. else
  4970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4971. for as_dir in $PATH
  4972. do
  4973. IFS=$as_save_IFS
  4974. test -z "$as_dir" && as_dir=.
  4975. for ac_exec_ext in '' $ac_executable_extensions; do
  4976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4977. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4979. break 2
  4980. fi
  4981. done
  4982. done
  4983. IFS=$as_save_IFS
  4984. fi
  4985. fi
  4986. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4987. if test -n "$ac_ct_CXX"; then
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4989. $as_echo "$ac_ct_CXX" >&6; }
  4990. else
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4992. $as_echo "no" >&6; }
  4993. fi
  4994. test -n "$ac_ct_CXX" && break
  4995. done
  4996. if test "x$ac_ct_CXX" = x; then
  4997. CXX="g++"
  4998. else
  4999. case $cross_compiling:$ac_tool_warned in
  5000. yes:)
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5003. ac_tool_warned=yes ;;
  5004. esac
  5005. CXX=$ac_ct_CXX
  5006. fi
  5007. fi
  5008. fi
  5009. fi
  5010. # Provide some information about the compiler.
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5012. set X $ac_compile
  5013. ac_compiler=$2
  5014. for ac_option in --version -v -V -qversion; do
  5015. { { ac_try="$ac_compiler $ac_option >&5"
  5016. case "(($ac_try" in
  5017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5018. *) ac_try_echo=$ac_try;;
  5019. esac
  5020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5021. $as_echo "$ac_try_echo"; } >&5
  5022. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5023. ac_status=$?
  5024. if test -s conftest.err; then
  5025. sed '10a\
  5026. ... rest of stderr output deleted ...
  5027. 10q' conftest.err >conftest.er1
  5028. cat conftest.er1 >&5
  5029. fi
  5030. rm -f conftest.er1 conftest.err
  5031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5032. test $ac_status = 0; }
  5033. done
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5035. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5036. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5040. /* end confdefs.h. */
  5041. int
  5042. main ()
  5043. {
  5044. #ifndef __GNUC__
  5045. choke me
  5046. #endif
  5047. ;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. if ac_fn_cxx_try_compile "$LINENO"; then :
  5052. ac_compiler_gnu=yes
  5053. else
  5054. ac_compiler_gnu=no
  5055. fi
  5056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5057. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5058. fi
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5060. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5061. if test $ac_compiler_gnu = yes; then
  5062. GXX=yes
  5063. else
  5064. GXX=
  5065. fi
  5066. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5067. ac_save_CXXFLAGS=$CXXFLAGS
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5069. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5070. if ${ac_cv_prog_cxx_g+:} false; then :
  5071. $as_echo_n "(cached) " >&6
  5072. else
  5073. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5074. ac_cxx_werror_flag=yes
  5075. ac_cv_prog_cxx_g=no
  5076. CXXFLAGS="-g"
  5077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5078. /* end confdefs.h. */
  5079. int
  5080. main ()
  5081. {
  5082. ;
  5083. return 0;
  5084. }
  5085. _ACEOF
  5086. if ac_fn_cxx_try_compile "$LINENO"; then :
  5087. ac_cv_prog_cxx_g=yes
  5088. else
  5089. CXXFLAGS=""
  5090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5091. /* end confdefs.h. */
  5092. int
  5093. main ()
  5094. {
  5095. ;
  5096. return 0;
  5097. }
  5098. _ACEOF
  5099. if ac_fn_cxx_try_compile "$LINENO"; then :
  5100. else
  5101. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5102. CXXFLAGS="-g"
  5103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h. */
  5105. int
  5106. main ()
  5107. {
  5108. ;
  5109. return 0;
  5110. }
  5111. _ACEOF
  5112. if ac_fn_cxx_try_compile "$LINENO"; then :
  5113. ac_cv_prog_cxx_g=yes
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5118. fi
  5119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5120. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5123. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5124. if test "$ac_test_CXXFLAGS" = set; then
  5125. CXXFLAGS=$ac_save_CXXFLAGS
  5126. elif test $ac_cv_prog_cxx_g = yes; then
  5127. if test "$GXX" = yes; then
  5128. CXXFLAGS="-g -O2"
  5129. else
  5130. CXXFLAGS="-g"
  5131. fi
  5132. else
  5133. if test "$GXX" = yes; then
  5134. CXXFLAGS="-O2"
  5135. else
  5136. CXXFLAGS=
  5137. fi
  5138. fi
  5139. ac_ext=c
  5140. ac_cpp='$CPP $CPPFLAGS'
  5141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5144. ac_ext=c
  5145. ac_cpp='$CPP $CPPFLAGS'
  5146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5150. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5151. # On Suns, sometimes $CPP names a directory.
  5152. if test -n "$CPP" && test -d "$CPP"; then
  5153. CPP=
  5154. fi
  5155. if test -z "$CPP"; then
  5156. if ${ac_cv_prog_CPP+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. # Double quotes because CPP needs to be expanded
  5160. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5161. do
  5162. ac_preproc_ok=false
  5163. for ac_c_preproc_warn_flag in '' yes
  5164. do
  5165. # Use a header file that comes with gcc, so configuring glibc
  5166. # with a fresh cross-compiler works.
  5167. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5168. # <limits.h> exists even on freestanding compilers.
  5169. # On the NeXT, cc -E runs the code through the compiler's parser,
  5170. # not just through cpp. "Syntax error" is here to catch this case.
  5171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5172. /* end confdefs.h. */
  5173. #ifdef __STDC__
  5174. # include <limits.h>
  5175. #else
  5176. # include <assert.h>
  5177. #endif
  5178. Syntax error
  5179. _ACEOF
  5180. if ac_fn_c_try_cpp "$LINENO"; then :
  5181. else
  5182. # Broken: fails on valid input.
  5183. continue
  5184. fi
  5185. rm -f conftest.err conftest.i conftest.$ac_ext
  5186. # OK, works on sane cases. Now check whether nonexistent headers
  5187. # can be detected and how.
  5188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5189. /* end confdefs.h. */
  5190. #include <ac_nonexistent.h>
  5191. _ACEOF
  5192. if ac_fn_c_try_cpp "$LINENO"; then :
  5193. # Broken: success on invalid input.
  5194. continue
  5195. else
  5196. # Passes both tests.
  5197. ac_preproc_ok=:
  5198. break
  5199. fi
  5200. rm -f conftest.err conftest.i conftest.$ac_ext
  5201. done
  5202. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5203. rm -f conftest.i conftest.err conftest.$ac_ext
  5204. if $ac_preproc_ok; then :
  5205. break
  5206. fi
  5207. done
  5208. ac_cv_prog_CPP=$CPP
  5209. fi
  5210. CPP=$ac_cv_prog_CPP
  5211. else
  5212. ac_cv_prog_CPP=$CPP
  5213. fi
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5215. $as_echo "$CPP" >&6; }
  5216. ac_preproc_ok=false
  5217. for ac_c_preproc_warn_flag in '' yes
  5218. do
  5219. # Use a header file that comes with gcc, so configuring glibc
  5220. # with a fresh cross-compiler works.
  5221. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5222. # <limits.h> exists even on freestanding compilers.
  5223. # On the NeXT, cc -E runs the code through the compiler's parser,
  5224. # not just through cpp. "Syntax error" is here to catch this case.
  5225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5226. /* end confdefs.h. */
  5227. #ifdef __STDC__
  5228. # include <limits.h>
  5229. #else
  5230. # include <assert.h>
  5231. #endif
  5232. Syntax error
  5233. _ACEOF
  5234. if ac_fn_c_try_cpp "$LINENO"; then :
  5235. else
  5236. # Broken: fails on valid input.
  5237. continue
  5238. fi
  5239. rm -f conftest.err conftest.i conftest.$ac_ext
  5240. # OK, works on sane cases. Now check whether nonexistent headers
  5241. # can be detected and how.
  5242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5243. /* end confdefs.h. */
  5244. #include <ac_nonexistent.h>
  5245. _ACEOF
  5246. if ac_fn_c_try_cpp "$LINENO"; then :
  5247. # Broken: success on invalid input.
  5248. continue
  5249. else
  5250. # Passes both tests.
  5251. ac_preproc_ok=:
  5252. break
  5253. fi
  5254. rm -f conftest.err conftest.i conftest.$ac_ext
  5255. done
  5256. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5257. rm -f conftest.i conftest.err conftest.$ac_ext
  5258. if $ac_preproc_ok; then :
  5259. else
  5260. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5261. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5262. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5263. See \`config.log' for more details" "$LINENO" 5; }
  5264. fi
  5265. ac_ext=c
  5266. ac_cpp='$CPP $CPPFLAGS'
  5267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5270. ac_ext=cpp
  5271. ac_cpp='$CXXCPP $CPPFLAGS'
  5272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5276. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5277. if test -z "$CXXCPP"; then
  5278. if ${ac_cv_prog_CXXCPP+:} false; then :
  5279. $as_echo_n "(cached) " >&6
  5280. else
  5281. # Double quotes because CXXCPP needs to be expanded
  5282. for CXXCPP in "$CXX -E" "/lib/cpp"
  5283. do
  5284. ac_preproc_ok=false
  5285. for ac_cxx_preproc_warn_flag in '' yes
  5286. do
  5287. # Use a header file that comes with gcc, so configuring glibc
  5288. # with a fresh cross-compiler works.
  5289. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5290. # <limits.h> exists even on freestanding compilers.
  5291. # On the NeXT, cc -E runs the code through the compiler's parser,
  5292. # not just through cpp. "Syntax error" is here to catch this case.
  5293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5294. /* end confdefs.h. */
  5295. #ifdef __STDC__
  5296. # include <limits.h>
  5297. #else
  5298. # include <assert.h>
  5299. #endif
  5300. Syntax error
  5301. _ACEOF
  5302. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5303. else
  5304. # Broken: fails on valid input.
  5305. continue
  5306. fi
  5307. rm -f conftest.err conftest.i conftest.$ac_ext
  5308. # OK, works on sane cases. Now check whether nonexistent headers
  5309. # can be detected and how.
  5310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5311. /* end confdefs.h. */
  5312. #include <ac_nonexistent.h>
  5313. _ACEOF
  5314. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5315. # Broken: success on invalid input.
  5316. continue
  5317. else
  5318. # Passes both tests.
  5319. ac_preproc_ok=:
  5320. break
  5321. fi
  5322. rm -f conftest.err conftest.i conftest.$ac_ext
  5323. done
  5324. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5325. rm -f conftest.i conftest.err conftest.$ac_ext
  5326. if $ac_preproc_ok; then :
  5327. break
  5328. fi
  5329. done
  5330. ac_cv_prog_CXXCPP=$CXXCPP
  5331. fi
  5332. CXXCPP=$ac_cv_prog_CXXCPP
  5333. else
  5334. ac_cv_prog_CXXCPP=$CXXCPP
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5337. $as_echo "$CXXCPP" >&6; }
  5338. ac_preproc_ok=false
  5339. for ac_cxx_preproc_warn_flag in '' yes
  5340. do
  5341. # Use a header file that comes with gcc, so configuring glibc
  5342. # with a fresh cross-compiler works.
  5343. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5344. # <limits.h> exists even on freestanding compilers.
  5345. # On the NeXT, cc -E runs the code through the compiler's parser,
  5346. # not just through cpp. "Syntax error" is here to catch this case.
  5347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5348. /* end confdefs.h. */
  5349. #ifdef __STDC__
  5350. # include <limits.h>
  5351. #else
  5352. # include <assert.h>
  5353. #endif
  5354. Syntax error
  5355. _ACEOF
  5356. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5357. else
  5358. # Broken: fails on valid input.
  5359. continue
  5360. fi
  5361. rm -f conftest.err conftest.i conftest.$ac_ext
  5362. # OK, works on sane cases. Now check whether nonexistent headers
  5363. # can be detected and how.
  5364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5365. /* end confdefs.h. */
  5366. #include <ac_nonexistent.h>
  5367. _ACEOF
  5368. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5369. # Broken: success on invalid input.
  5370. continue
  5371. else
  5372. # Passes both tests.
  5373. ac_preproc_ok=:
  5374. break
  5375. fi
  5376. rm -f conftest.err conftest.i conftest.$ac_ext
  5377. done
  5378. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5379. rm -f conftest.i conftest.err conftest.$ac_ext
  5380. if $ac_preproc_ok; then :
  5381. else
  5382. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5384. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5385. See \`config.log' for more details" "$LINENO" 5; }
  5386. fi
  5387. ac_ext=c
  5388. ac_cpp='$CPP $CPPFLAGS'
  5389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5392. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5393. # the developers regenerating the configure script don't have to install libtool.
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5395. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5396. if ${ac_cv_path_SED+:} false; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5400. for ac_i in 1 2 3 4 5 6 7; do
  5401. ac_script="$ac_script$as_nl$ac_script"
  5402. done
  5403. echo "$ac_script" | sed 99q >conftest.sed
  5404. $as_unset ac_script || ac_script=
  5405. if test -z "$SED"; then
  5406. ac_path_SED_found=false
  5407. # Loop through the user's path and test for each of PROGNAME-LIST
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. test -z "$as_dir" && as_dir=.
  5413. for ac_prog in sed gsed; do
  5414. for ac_exec_ext in '' $ac_executable_extensions; do
  5415. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5416. as_fn_executable_p "$ac_path_SED" || continue
  5417. # Check for GNU ac_path_SED and select it if it is found.
  5418. # Check for GNU $ac_path_SED
  5419. case `"$ac_path_SED" --version 2>&1` in
  5420. *GNU*)
  5421. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5422. *)
  5423. ac_count=0
  5424. $as_echo_n 0123456789 >"conftest.in"
  5425. while :
  5426. do
  5427. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5428. mv "conftest.tmp" "conftest.in"
  5429. cp "conftest.in" "conftest.nl"
  5430. $as_echo '' >> "conftest.nl"
  5431. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5432. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5433. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5434. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5435. # Best one so far, save it but keep looking for a better one
  5436. ac_cv_path_SED="$ac_path_SED"
  5437. ac_path_SED_max=$ac_count
  5438. fi
  5439. # 10*(2^10) chars as input seems more than enough
  5440. test $ac_count -gt 10 && break
  5441. done
  5442. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5443. esac
  5444. $ac_path_SED_found && break 3
  5445. done
  5446. done
  5447. done
  5448. IFS=$as_save_IFS
  5449. if test -z "$ac_cv_path_SED"; then
  5450. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5451. fi
  5452. else
  5453. ac_cv_path_SED=$SED
  5454. fi
  5455. fi
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5457. $as_echo "$ac_cv_path_SED" >&6; }
  5458. SED="$ac_cv_path_SED"
  5459. rm -f conftest.sed
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5461. $as_echo_n "checking for egrep... " >&6; }
  5462. if ${ac_cv_prog_egrep+:} false; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5466. then ac_cv_prog_egrep='grep -E'
  5467. else ac_cv_prog_egrep='egrep'
  5468. fi
  5469. fi
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5471. $as_echo "$ac_cv_prog_egrep" >&6; }
  5472. EGREP=$ac_cv_prog_egrep
  5473. # Check whether --with-gnu-ld was given.
  5474. if test "${with_gnu_ld+set}" = set; then :
  5475. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5476. else
  5477. with_gnu_ld=no
  5478. fi
  5479. ac_prog=ld
  5480. if test "$GCC" = yes; then
  5481. # Check if gcc -print-prog-name=ld gives a path.
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5483. $as_echo_n "checking for ld used by $CC... " >&6; }
  5484. case $host in
  5485. *-*-mingw*)
  5486. # gcc leaves a trailing carriage return which upsets mingw
  5487. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5488. *)
  5489. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5490. esac
  5491. case $ac_prog in
  5492. # Accept absolute paths.
  5493. [\\/]* | ?:[\\/]*)
  5494. re_direlt='/[^/][^/]*/\.\./'
  5495. # Canonicalize the pathname of ld
  5496. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5497. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5498. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5499. done
  5500. test -z "$LD" && LD="$ac_prog"
  5501. ;;
  5502. "")
  5503. # If it fails, then pretend we aren't using GCC.
  5504. ac_prog=ld
  5505. ;;
  5506. *)
  5507. # If it is relative, then search for the first ld in PATH.
  5508. with_gnu_ld=unknown
  5509. ;;
  5510. esac
  5511. elif test "$with_gnu_ld" = yes; then
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5513. $as_echo_n "checking for GNU ld... " >&6; }
  5514. else
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5516. $as_echo_n "checking for non-GNU ld... " >&6; }
  5517. fi
  5518. if ${lt_cv_path_LD+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -z "$LD"; then
  5522. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5523. for ac_dir in $PATH; do
  5524. IFS="$lt_save_ifs"
  5525. test -z "$ac_dir" && ac_dir=.
  5526. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5527. lt_cv_path_LD="$ac_dir/$ac_prog"
  5528. # Check to see if the program is GNU ld. I'd rather use --version,
  5529. # but apparently some variants of GNU ld only accept -v.
  5530. # Break only if it was the GNU/non-GNU ld that we prefer.
  5531. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5532. *GNU* | *'with BFD'*)
  5533. test "$with_gnu_ld" != no && break
  5534. ;;
  5535. *)
  5536. test "$with_gnu_ld" != yes && break
  5537. ;;
  5538. esac
  5539. fi
  5540. done
  5541. IFS="$lt_save_ifs"
  5542. else
  5543. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5544. fi
  5545. fi
  5546. LD="$lt_cv_path_LD"
  5547. if test -n "$LD"; then
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5549. $as_echo "$LD" >&6; }
  5550. else
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. $as_echo "no" >&6; }
  5553. fi
  5554. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5556. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5557. if ${lt_cv_prog_gnu_ld+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5561. case `$LD -v 2>&1 </dev/null` in
  5562. *GNU* | *'with BFD'*)
  5563. lt_cv_prog_gnu_ld=yes
  5564. ;;
  5565. *)
  5566. lt_cv_prog_gnu_ld=no
  5567. ;;
  5568. esac
  5569. fi
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5571. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5572. with_gnu_ld=$lt_cv_prog_gnu_ld
  5573. # note, does not work on FreeBSD
  5574. for ac_prog in gawk mawk nawk awk
  5575. do
  5576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5577. set dummy $ac_prog; ac_word=$2
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5579. $as_echo_n "checking for $ac_word... " >&6; }
  5580. if ${ac_cv_prog_AWK+:} false; then :
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. if test -n "$AWK"; then
  5584. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5585. else
  5586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5587. for as_dir in $PATH
  5588. do
  5589. IFS=$as_save_IFS
  5590. test -z "$as_dir" && as_dir=.
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5593. ac_cv_prog_AWK="$ac_prog"
  5594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5595. break 2
  5596. fi
  5597. done
  5598. done
  5599. IFS=$as_save_IFS
  5600. fi
  5601. fi
  5602. AWK=$ac_cv_prog_AWK
  5603. if test -n "$AWK"; then
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5605. $as_echo "$AWK" >&6; }
  5606. else
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. fi
  5610. test -n "$AWK" && break
  5611. done
  5612. # Find a good install program. We prefer a C program (faster),
  5613. # so one script is as good as another. But avoid the broken or
  5614. # incompatible versions:
  5615. # SysV /etc/install, /usr/sbin/install
  5616. # SunOS /usr/etc/install
  5617. # IRIX /sbin/install
  5618. # AIX /bin/install
  5619. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5620. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5621. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5622. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5623. # OS/2's system install, which has a completely different semantic
  5624. # ./install, which can be erroneously created by make from ./install.sh.
  5625. # Reject install programs that cannot install multiple files.
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5627. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5628. if test -z "$INSTALL"; then
  5629. if ${ac_cv_path_install+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5633. for as_dir in $PATH
  5634. do
  5635. IFS=$as_save_IFS
  5636. test -z "$as_dir" && as_dir=.
  5637. # Account for people who put trailing slashes in PATH elements.
  5638. case $as_dir/ in #((
  5639. ./ | .// | /[cC]/* | \
  5640. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5641. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5642. /usr/ucb/* ) ;;
  5643. *)
  5644. # OSF1 and SCO ODT 3.0 have their own names for install.
  5645. # Don't use installbsd from OSF since it installs stuff as root
  5646. # by default.
  5647. for ac_prog in ginstall scoinst install; do
  5648. for ac_exec_ext in '' $ac_executable_extensions; do
  5649. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5650. if test $ac_prog = install &&
  5651. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5652. # AIX install. It has an incompatible calling convention.
  5653. :
  5654. elif test $ac_prog = install &&
  5655. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5656. # program-specific install script used by HP pwplus--don't use.
  5657. :
  5658. else
  5659. rm -rf conftest.one conftest.two conftest.dir
  5660. echo one > conftest.one
  5661. echo two > conftest.two
  5662. mkdir conftest.dir
  5663. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5664. test -s conftest.one && test -s conftest.two &&
  5665. test -s conftest.dir/conftest.one &&
  5666. test -s conftest.dir/conftest.two
  5667. then
  5668. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5669. break 3
  5670. fi
  5671. fi
  5672. fi
  5673. done
  5674. done
  5675. ;;
  5676. esac
  5677. done
  5678. IFS=$as_save_IFS
  5679. rm -rf conftest.one conftest.two conftest.dir
  5680. fi
  5681. if test "${ac_cv_path_install+set}" = set; then
  5682. INSTALL=$ac_cv_path_install
  5683. else
  5684. # As a last resort, use the slow shell script. Don't cache a
  5685. # value for INSTALL within a source directory, because that will
  5686. # break other packages using the cache if that directory is
  5687. # removed, or if the value is a relative name.
  5688. INSTALL=$ac_install_sh
  5689. fi
  5690. fi
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5692. $as_echo "$INSTALL" >&6; }
  5693. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5694. # It thinks the first close brace ends the variable substitution.
  5695. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5696. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5697. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5699. $as_echo_n "checking whether ln -s works... " >&6; }
  5700. LN_S=$as_ln_s
  5701. if test "$LN_S" = "ln -s"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5703. $as_echo "yes" >&6; }
  5704. else
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5706. $as_echo "no, using $LN_S" >&6; }
  5707. fi
  5708. if test -n "$ac_tool_prefix"; then
  5709. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5710. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_RANLIB+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$RANLIB"; then
  5717. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. RANLIB=$ac_cv_prog_RANLIB
  5736. if test -n "$RANLIB"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5738. $as_echo "$RANLIB" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. fi
  5744. if test -z "$ac_cv_prog_RANLIB"; then
  5745. ac_ct_RANLIB=$RANLIB
  5746. # Extract the first word of "ranlib", so it can be a program name with args.
  5747. set dummy ranlib; ac_word=$2
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5749. $as_echo_n "checking for $ac_word... " >&6; }
  5750. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5751. $as_echo_n "(cached) " >&6
  5752. else
  5753. if test -n "$ac_ct_RANLIB"; then
  5754. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5755. else
  5756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5757. for as_dir in $PATH
  5758. do
  5759. IFS=$as_save_IFS
  5760. test -z "$as_dir" && as_dir=.
  5761. for ac_exec_ext in '' $ac_executable_extensions; do
  5762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5763. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5765. break 2
  5766. fi
  5767. done
  5768. done
  5769. IFS=$as_save_IFS
  5770. fi
  5771. fi
  5772. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5773. if test -n "$ac_ct_RANLIB"; then
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5775. $as_echo "$ac_ct_RANLIB" >&6; }
  5776. else
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5778. $as_echo "no" >&6; }
  5779. fi
  5780. if test "x$ac_ct_RANLIB" = x; then
  5781. RANLIB=":"
  5782. else
  5783. case $cross_compiling:$ac_tool_warned in
  5784. yes:)
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5787. ac_tool_warned=yes ;;
  5788. esac
  5789. RANLIB=$ac_ct_RANLIB
  5790. fi
  5791. else
  5792. RANLIB="$ac_cv_prog_RANLIB"
  5793. fi
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5795. $as_echo_n "checking for GNU make... " >&6; }
  5796. if ${ac_cv_GNU_MAKE+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. ac_cv_GNU_MAKE='Not Found' ;
  5800. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5801. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5802. for a in make gmake gnumake ; do
  5803. if test -z "$a" ; then continue ; fi ;
  5804. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5805. ac_cv_GNU_MAKE=$a ;
  5806. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5807. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5808. break;
  5809. fi
  5810. done ;
  5811. fi
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5813. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5814. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5815. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5816. exit 1
  5817. fi
  5818. GNU_MAKE=$ac_cv_GNU_MAKE
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5820. $as_echo_n "checking for egrep... " >&6; }
  5821. if ${ac_cv_path_EGREP+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5825. then ac_cv_path_EGREP="$GREP -E"
  5826. else
  5827. if test -z "$EGREP"; then
  5828. ac_path_EGREP_found=false
  5829. # Loop through the user's path and test for each of PROGNAME-LIST
  5830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5831. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5832. do
  5833. IFS=$as_save_IFS
  5834. test -z "$as_dir" && as_dir=.
  5835. for ac_prog in egrep; do
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5838. as_fn_executable_p "$ac_path_EGREP" || continue
  5839. # Check for GNU ac_path_EGREP and select it if it is found.
  5840. # Check for GNU $ac_path_EGREP
  5841. case `"$ac_path_EGREP" --version 2>&1` in
  5842. *GNU*)
  5843. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5844. *)
  5845. ac_count=0
  5846. $as_echo_n 0123456789 >"conftest.in"
  5847. while :
  5848. do
  5849. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5850. mv "conftest.tmp" "conftest.in"
  5851. cp "conftest.in" "conftest.nl"
  5852. $as_echo 'EGREP' >> "conftest.nl"
  5853. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5854. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5855. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5856. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5857. # Best one so far, save it but keep looking for a better one
  5858. ac_cv_path_EGREP="$ac_path_EGREP"
  5859. ac_path_EGREP_max=$ac_count
  5860. fi
  5861. # 10*(2^10) chars as input seems more than enough
  5862. test $ac_count -gt 10 && break
  5863. done
  5864. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5865. esac
  5866. $ac_path_EGREP_found && break 3
  5867. done
  5868. done
  5869. done
  5870. IFS=$as_save_IFS
  5871. if test -z "$ac_cv_path_EGREP"; then
  5872. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5873. fi
  5874. else
  5875. ac_cv_path_EGREP=$EGREP
  5876. fi
  5877. fi
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5880. $as_echo "$ac_cv_path_EGREP" >&6; }
  5881. EGREP="$ac_cv_path_EGREP"
  5882. if test -n "$ac_tool_prefix"; then
  5883. for ac_prog in strip gstrip
  5884. do
  5885. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5886. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. $as_echo_n "checking for $ac_word... " >&6; }
  5889. if ${ac_cv_prog_STRIP+:} false; then :
  5890. $as_echo_n "(cached) " >&6
  5891. else
  5892. if test -n "$STRIP"; then
  5893. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5894. else
  5895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5896. for as_dir in $PATH
  5897. do
  5898. IFS=$as_save_IFS
  5899. test -z "$as_dir" && as_dir=.
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5902. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5904. break 2
  5905. fi
  5906. done
  5907. done
  5908. IFS=$as_save_IFS
  5909. fi
  5910. fi
  5911. STRIP=$ac_cv_prog_STRIP
  5912. if test -n "$STRIP"; then
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5914. $as_echo "$STRIP" >&6; }
  5915. else
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5917. $as_echo "no" >&6; }
  5918. fi
  5919. test -n "$STRIP" && break
  5920. done
  5921. fi
  5922. if test -z "$STRIP"; then
  5923. ac_ct_STRIP=$STRIP
  5924. for ac_prog in strip gstrip
  5925. do
  5926. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5927. set dummy $ac_prog; ac_word=$2
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5929. $as_echo_n "checking for $ac_word... " >&6; }
  5930. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. if test -n "$ac_ct_STRIP"; then
  5934. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5935. else
  5936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5937. for as_dir in $PATH
  5938. do
  5939. IFS=$as_save_IFS
  5940. test -z "$as_dir" && as_dir=.
  5941. for ac_exec_ext in '' $ac_executable_extensions; do
  5942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5943. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945. break 2
  5946. fi
  5947. done
  5948. done
  5949. IFS=$as_save_IFS
  5950. fi
  5951. fi
  5952. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5953. if test -n "$ac_ct_STRIP"; then
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5955. $as_echo "$ac_ct_STRIP" >&6; }
  5956. else
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5958. $as_echo "no" >&6; }
  5959. fi
  5960. test -n "$ac_ct_STRIP" && break
  5961. done
  5962. if test "x$ac_ct_STRIP" = x; then
  5963. STRIP=":"
  5964. else
  5965. case $cross_compiling:$ac_tool_warned in
  5966. yes:)
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5969. ac_tool_warned=yes ;;
  5970. esac
  5971. STRIP=$ac_ct_STRIP
  5972. fi
  5973. fi
  5974. if test -n "$ac_tool_prefix"; then
  5975. for ac_prog in ar gar
  5976. do
  5977. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5978. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if ${ac_cv_prog_AR+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$AR"; then
  5985. ac_cv_prog_AR="$AR" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5994. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. AR=$ac_cv_prog_AR
  6004. if test -n "$AR"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6006. $as_echo "$AR" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. test -n "$AR" && break
  6012. done
  6013. fi
  6014. if test -z "$AR"; then
  6015. ac_ct_AR=$AR
  6016. for ac_prog in ar gar
  6017. do
  6018. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6019. set dummy $ac_prog; ac_word=$2
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6021. $as_echo_n "checking for $ac_word... " >&6; }
  6022. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. if test -n "$ac_ct_AR"; then
  6026. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6027. else
  6028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6029. for as_dir in $PATH
  6030. do
  6031. IFS=$as_save_IFS
  6032. test -z "$as_dir" && as_dir=.
  6033. for ac_exec_ext in '' $ac_executable_extensions; do
  6034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6035. ac_cv_prog_ac_ct_AR="$ac_prog"
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6037. break 2
  6038. fi
  6039. done
  6040. done
  6041. IFS=$as_save_IFS
  6042. fi
  6043. fi
  6044. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6045. if test -n "$ac_ct_AR"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6047. $as_echo "$ac_ct_AR" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. test -n "$ac_ct_AR" && break
  6053. done
  6054. if test "x$ac_ct_AR" = x; then
  6055. AR=":"
  6056. else
  6057. case $cross_compiling:$ac_tool_warned in
  6058. yes:)
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6061. ac_tool_warned=yes ;;
  6062. esac
  6063. AR=$ac_ct_AR
  6064. fi
  6065. fi
  6066. GNU_LD=0
  6067. if test "x$with_gnu_ld" = "xyes" ; then
  6068. GNU_LD=1
  6069. fi
  6070. # Extract the first word of "bison", so it can be a program name with args.
  6071. set dummy bison; ac_word=$2
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6073. $as_echo_n "checking for $ac_word... " >&6; }
  6074. if ${ac_cv_path_BISON+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. case $BISON in
  6078. [\\/]* | ?:[\\/]*)
  6079. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6080. ;;
  6081. *)
  6082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6083. for as_dir in $PATH
  6084. do
  6085. IFS=$as_save_IFS
  6086. test -z "$as_dir" && as_dir=.
  6087. for ac_exec_ext in '' $ac_executable_extensions; do
  6088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6089. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6091. break 2
  6092. fi
  6093. done
  6094. done
  6095. IFS=$as_save_IFS
  6096. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6097. ;;
  6098. esac
  6099. fi
  6100. BISON=$ac_cv_path_BISON
  6101. if test -n "$BISON"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6103. $as_echo "$BISON" >&6; }
  6104. else
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108. # Extract the first word of "cmp", so it can be a program name with args.
  6109. set dummy cmp; ac_word=$2
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6111. $as_echo_n "checking for $ac_word... " >&6; }
  6112. if ${ac_cv_path_CMP+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. case $CMP in
  6116. [\\/]* | ?:[\\/]*)
  6117. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6118. ;;
  6119. *)
  6120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6121. for as_dir in $PATH
  6122. do
  6123. IFS=$as_save_IFS
  6124. test -z "$as_dir" && as_dir=.
  6125. for ac_exec_ext in '' $ac_executable_extensions; do
  6126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6127. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6129. break 2
  6130. fi
  6131. done
  6132. done
  6133. IFS=$as_save_IFS
  6134. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6135. ;;
  6136. esac
  6137. fi
  6138. CMP=$ac_cv_path_CMP
  6139. if test -n "$CMP"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6141. $as_echo "$CMP" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. # Extract the first word of "flex", so it can be a program name with args.
  6147. set dummy flex; ac_word=$2
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6149. $as_echo_n "checking for $ac_word... " >&6; }
  6150. if ${ac_cv_path_FLEX+:} false; then :
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. case $FLEX in
  6154. [\\/]* | ?:[\\/]*)
  6155. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6156. ;;
  6157. *)
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. test -z "$as_dir" && as_dir=.
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6165. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6167. break 2
  6168. fi
  6169. done
  6170. done
  6171. IFS=$as_save_IFS
  6172. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6173. ;;
  6174. esac
  6175. fi
  6176. FLEX=$ac_cv_path_FLEX
  6177. if test -n "$FLEX"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6179. $as_echo "$FLEX" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. # Extract the first word of "grep", so it can be a program name with args.
  6185. set dummy grep; ac_word=$2
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6187. $as_echo_n "checking for $ac_word... " >&6; }
  6188. if ${ac_cv_path_GREP+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. case $GREP in
  6192. [\\/]* | ?:[\\/]*)
  6193. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6194. ;;
  6195. *)
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199. IFS=$as_save_IFS
  6200. test -z "$as_dir" && as_dir=.
  6201. for ac_exec_ext in '' $ac_executable_extensions; do
  6202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6203. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205. break 2
  6206. fi
  6207. done
  6208. done
  6209. IFS=$as_save_IFS
  6210. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6211. ;;
  6212. esac
  6213. fi
  6214. GREP=$ac_cv_path_GREP
  6215. if test -n "$GREP"; then
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6217. $as_echo "$GREP" >&6; }
  6218. else
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6220. $as_echo "no" >&6; }
  6221. fi
  6222. # Extract the first word of "python", so it can be a program name with args.
  6223. set dummy python; ac_word=$2
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6225. $as_echo_n "checking for $ac_word... " >&6; }
  6226. if ${ac_cv_path_PYTHON+:} false; then :
  6227. $as_echo_n "(cached) " >&6
  6228. else
  6229. case $PYTHON in
  6230. [\\/]* | ?:[\\/]*)
  6231. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  6232. ;;
  6233. *)
  6234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6235. for as_dir in $PATH
  6236. do
  6237. IFS=$as_save_IFS
  6238. test -z "$as_dir" && as_dir=.
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6241. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  6242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6243. break 2
  6244. fi
  6245. done
  6246. done
  6247. IFS=$as_save_IFS
  6248. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  6249. ;;
  6250. esac
  6251. fi
  6252. PYTHON=$ac_cv_path_PYTHON
  6253. if test -n "$PYTHON"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  6255. $as_echo "$PYTHON" >&6; }
  6256. else
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6258. $as_echo "no" >&6; }
  6259. fi
  6260. # Extract the first word of "find", so it can be a program name with args.
  6261. set dummy find; ac_word=$2
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6263. $as_echo_n "checking for $ac_word... " >&6; }
  6264. if ${ac_cv_path_FIND+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. case $FIND in
  6268. [\\/]* | ?:[\\/]*)
  6269. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6270. ;;
  6271. *)
  6272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6273. for as_dir in $PATH
  6274. do
  6275. IFS=$as_save_IFS
  6276. test -z "$as_dir" && as_dir=.
  6277. for ac_exec_ext in '' $ac_executable_extensions; do
  6278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6279. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6281. break 2
  6282. fi
  6283. done
  6284. done
  6285. IFS=$as_save_IFS
  6286. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6287. ;;
  6288. esac
  6289. fi
  6290. FIND=$ac_cv_path_FIND
  6291. if test -n "$FIND"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6293. $as_echo "$FIND" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. # Extract the first word of "compress", so it can be a program name with args.
  6299. set dummy compress; ac_word=$2
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6301. $as_echo_n "checking for $ac_word... " >&6; }
  6302. if ${ac_cv_path_COMPRESS+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. case $COMPRESS in
  6306. [\\/]* | ?:[\\/]*)
  6307. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6308. ;;
  6309. *)
  6310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6311. for as_dir in $PATH
  6312. do
  6313. IFS=$as_save_IFS
  6314. test -z "$as_dir" && as_dir=.
  6315. for ac_exec_ext in '' $ac_executable_extensions; do
  6316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6317. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6319. break 2
  6320. fi
  6321. done
  6322. done
  6323. IFS=$as_save_IFS
  6324. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6325. ;;
  6326. esac
  6327. fi
  6328. COMPRESS=$ac_cv_path_COMPRESS
  6329. if test -n "$COMPRESS"; then
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6331. $as_echo "$COMPRESS" >&6; }
  6332. else
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6334. $as_echo "no" >&6; }
  6335. fi
  6336. # Extract the first word of "basename", so it can be a program name with args.
  6337. set dummy basename; ac_word=$2
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6339. $as_echo_n "checking for $ac_word... " >&6; }
  6340. if ${ac_cv_path_BASENAME+:} false; then :
  6341. $as_echo_n "(cached) " >&6
  6342. else
  6343. case $BASENAME in
  6344. [\\/]* | ?:[\\/]*)
  6345. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6346. ;;
  6347. *)
  6348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6349. for as_dir in $PATH
  6350. do
  6351. IFS=$as_save_IFS
  6352. test -z "$as_dir" && as_dir=.
  6353. for ac_exec_ext in '' $ac_executable_extensions; do
  6354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6355. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6357. break 2
  6358. fi
  6359. done
  6360. done
  6361. IFS=$as_save_IFS
  6362. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6363. ;;
  6364. esac
  6365. fi
  6366. BASENAME=$ac_cv_path_BASENAME
  6367. if test -n "$BASENAME"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6369. $as_echo "$BASENAME" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. # Extract the first word of "dirname", so it can be a program name with args.
  6375. set dummy dirname; ac_word=$2
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. $as_echo_n "checking for $ac_word... " >&6; }
  6378. if ${ac_cv_path_DIRNAME+:} false; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. case $DIRNAME in
  6382. [\\/]* | ?:[\\/]*)
  6383. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6384. ;;
  6385. *)
  6386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6387. for as_dir in $PATH
  6388. do
  6389. IFS=$as_save_IFS
  6390. test -z "$as_dir" && as_dir=.
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6393. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6401. ;;
  6402. esac
  6403. fi
  6404. DIRNAME=$ac_cv_path_DIRNAME
  6405. if test -n "$DIRNAME"; then
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6407. $as_echo "$DIRNAME" >&6; }
  6408. else
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6410. $as_echo "no" >&6; }
  6411. fi
  6412. # Extract the first word of "sh", so it can be a program name with args.
  6413. set dummy sh; ac_word=$2
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6415. $as_echo_n "checking for $ac_word... " >&6; }
  6416. if ${ac_cv_path_SHELL+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. case $SHELL in
  6420. [\\/]* | ?:[\\/]*)
  6421. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6422. ;;
  6423. *)
  6424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6425. for as_dir in $PATH
  6426. do
  6427. IFS=$as_save_IFS
  6428. test -z "$as_dir" && as_dir=.
  6429. for ac_exec_ext in '' $ac_executable_extensions; do
  6430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6431. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6433. break 2
  6434. fi
  6435. done
  6436. done
  6437. IFS=$as_save_IFS
  6438. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6439. ;;
  6440. esac
  6441. fi
  6442. SHELL=$ac_cv_path_SHELL
  6443. if test -n "$SHELL"; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6445. $as_echo "$SHELL" >&6; }
  6446. else
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449. fi
  6450. # Extract the first word of "ln", so it can be a program name with args.
  6451. set dummy ln; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if ${ac_cv_path_LN+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. case $LN in
  6458. [\\/]* | ?:[\\/]*)
  6459. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6460. ;;
  6461. *)
  6462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6463. for as_dir in $PATH
  6464. do
  6465. IFS=$as_save_IFS
  6466. test -z "$as_dir" && as_dir=.
  6467. for ac_exec_ext in '' $ac_executable_extensions; do
  6468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6469. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6471. break 2
  6472. fi
  6473. done
  6474. done
  6475. IFS=$as_save_IFS
  6476. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6477. ;;
  6478. esac
  6479. fi
  6480. LN=$ac_cv_path_LN
  6481. if test -n "$LN"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6483. $as_echo "$LN" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. # Extract the first word of "doxygen", so it can be a program name with args.
  6489. set dummy doxygen; ac_word=$2
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6491. $as_echo_n "checking for $ac_word... " >&6; }
  6492. if ${ac_cv_path_DOXYGEN+:} false; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. case $DOXYGEN in
  6496. [\\/]* | ?:[\\/]*)
  6497. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  6498. ;;
  6499. *)
  6500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6501. for as_dir in $PATH
  6502. do
  6503. IFS=$as_save_IFS
  6504. test -z "$as_dir" && as_dir=.
  6505. for ac_exec_ext in '' $ac_executable_extensions; do
  6506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6507. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  6508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6509. break 2
  6510. fi
  6511. done
  6512. done
  6513. IFS=$as_save_IFS
  6514. test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":"
  6515. ;;
  6516. esac
  6517. fi
  6518. DOXYGEN=$ac_cv_path_DOXYGEN
  6519. if test -n "$DOXYGEN"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  6521. $as_echo "$DOXYGEN" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. # Extract the first word of "dot", so it can be a program name with args.
  6527. set dummy dot; ac_word=$2
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6529. $as_echo_n "checking for $ac_word... " >&6; }
  6530. if ${ac_cv_path_DOT+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. case $DOT in
  6534. [\\/]* | ?:[\\/]*)
  6535. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6536. ;;
  6537. *)
  6538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6539. for as_dir in $PATH
  6540. do
  6541. IFS=$as_save_IFS
  6542. test -z "$as_dir" && as_dir=.
  6543. for ac_exec_ext in '' $ac_executable_extensions; do
  6544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6545. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6547. break 2
  6548. fi
  6549. done
  6550. done
  6551. IFS=$as_save_IFS
  6552. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6553. ;;
  6554. esac
  6555. fi
  6556. DOT=$ac_cv_path_DOT
  6557. if test -n "$DOT"; then
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6559. $as_echo "$DOT" >&6; }
  6560. else
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. # Extract the first word of "wget", so it can be a program name with args.
  6565. set dummy wget; ac_word=$2
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6567. $as_echo_n "checking for $ac_word... " >&6; }
  6568. if ${ac_cv_path_WGET+:} false; then :
  6569. $as_echo_n "(cached) " >&6
  6570. else
  6571. case $WGET in
  6572. [\\/]* | ?:[\\/]*)
  6573. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6574. ;;
  6575. *)
  6576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6577. for as_dir in $PATH
  6578. do
  6579. IFS=$as_save_IFS
  6580. test -z "$as_dir" && as_dir=.
  6581. for ac_exec_ext in '' $ac_executable_extensions; do
  6582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6583. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6585. break 2
  6586. fi
  6587. done
  6588. done
  6589. IFS=$as_save_IFS
  6590. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6591. ;;
  6592. esac
  6593. fi
  6594. WGET=$ac_cv_path_WGET
  6595. if test -n "$WGET"; then
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6597. $as_echo "$WGET" >&6; }
  6598. else
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6600. $as_echo "no" >&6; }
  6601. fi
  6602. # Extract the first word of "curl", so it can be a program name with args.
  6603. set dummy curl; ac_word=$2
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6605. $as_echo_n "checking for $ac_word... " >&6; }
  6606. if ${ac_cv_path_CURL+:} false; then :
  6607. $as_echo_n "(cached) " >&6
  6608. else
  6609. case $CURL in
  6610. [\\/]* | ?:[\\/]*)
  6611. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6612. ;;
  6613. *)
  6614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6615. for as_dir in $PATH
  6616. do
  6617. IFS=$as_save_IFS
  6618. test -z "$as_dir" && as_dir=.
  6619. for ac_exec_ext in '' $ac_executable_extensions; do
  6620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6621. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6623. break 2
  6624. fi
  6625. done
  6626. done
  6627. IFS=$as_save_IFS
  6628. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6629. ;;
  6630. esac
  6631. fi
  6632. CURL=$ac_cv_path_CURL
  6633. if test -n "$CURL"; then
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6635. $as_echo "$CURL" >&6; }
  6636. else
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6638. $as_echo "no" >&6; }
  6639. fi
  6640. # Extract the first word of "rubber", so it can be a program name with args.
  6641. set dummy rubber; ac_word=$2
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. $as_echo_n "checking for $ac_word... " >&6; }
  6644. if ${ac_cv_path_RUBBER+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. case $RUBBER in
  6648. [\\/]* | ?:[\\/]*)
  6649. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6650. ;;
  6651. *)
  6652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6653. for as_dir in $PATH
  6654. do
  6655. IFS=$as_save_IFS
  6656. test -z "$as_dir" && as_dir=.
  6657. for ac_exec_ext in '' $ac_executable_extensions; do
  6658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6659. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6661. break 2
  6662. fi
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6667. ;;
  6668. esac
  6669. fi
  6670. RUBBER=$ac_cv_path_RUBBER
  6671. if test -n "$RUBBER"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
  6673. $as_echo "$RUBBER" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. # Extract the first word of "catdvi", so it can be a program name with args.
  6679. set dummy catdvi; ac_word=$2
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6681. $as_echo_n "checking for $ac_word... " >&6; }
  6682. if ${ac_cv_path_CATDVI+:} false; then :
  6683. $as_echo_n "(cached) " >&6
  6684. else
  6685. case $CATDVI in
  6686. [\\/]* | ?:[\\/]*)
  6687. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  6688. ;;
  6689. *)
  6690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6691. for as_dir in $PATH
  6692. do
  6693. IFS=$as_save_IFS
  6694. test -z "$as_dir" && as_dir=.
  6695. for ac_exec_ext in '' $ac_executable_extensions; do
  6696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6697. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6699. break 2
  6700. fi
  6701. done
  6702. done
  6703. IFS=$as_save_IFS
  6704. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6705. ;;
  6706. esac
  6707. fi
  6708. CATDVI=$ac_cv_path_CATDVI
  6709. if test -n "$CATDVI"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
  6711. $as_echo "$CATDVI" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6717. set dummy kpsewhich; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if ${ac_cv_path_KPATHSEA+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. case $KPATHSEA in
  6724. [\\/]* | ?:[\\/]*)
  6725. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6726. ;;
  6727. *)
  6728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6729. for as_dir in $PATH
  6730. do
  6731. IFS=$as_save_IFS
  6732. test -z "$as_dir" && as_dir=.
  6733. for ac_exec_ext in '' $ac_executable_extensions; do
  6734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6735. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6737. break 2
  6738. fi
  6739. done
  6740. done
  6741. IFS=$as_save_IFS
  6742. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6743. ;;
  6744. esac
  6745. fi
  6746. KPATHSEA=$ac_cv_path_KPATHSEA
  6747. if test -n "$KPATHSEA"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
  6749. $as_echo "$KPATHSEA" >&6; }
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6752. $as_echo "no" >&6; }
  6753. fi
  6754. # Extract the first word of "xmllint", so it can be a program name with args.
  6755. set dummy xmllint; ac_word=$2
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. $as_echo_n "checking for $ac_word... " >&6; }
  6758. if ${ac_cv_path_XMLLINT+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. case $XMLLINT in
  6762. [\\/]* | ?:[\\/]*)
  6763. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6764. ;;
  6765. *)
  6766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6767. for as_dir in $PATH
  6768. do
  6769. IFS=$as_save_IFS
  6770. test -z "$as_dir" && as_dir=.
  6771. for ac_exec_ext in '' $ac_executable_extensions; do
  6772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6773. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6775. break 2
  6776. fi
  6777. done
  6778. done
  6779. IFS=$as_save_IFS
  6780. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6781. ;;
  6782. esac
  6783. fi
  6784. XMLLINT=$ac_cv_path_XMLLINT
  6785. if test -n "$XMLLINT"; then
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  6787. $as_echo "$XMLLINT" >&6; }
  6788. else
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6790. $as_echo "no" >&6; }
  6791. fi
  6792. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6793. set dummy xmlstarlet; 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_XMLSTARLET+:} false; then :
  6797. $as_echo_n "(cached) " >&6
  6798. else
  6799. case $XMLSTARLET in
  6800. [\\/]* | ?:[\\/]*)
  6801. ac_cv_path_XMLSTARLET="$XMLSTARLET" # 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_XMLSTARLET="$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_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6819. ;;
  6820. esac
  6821. fi
  6822. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6823. if test -n "$XMLSTARLET"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  6825. $as_echo "$XMLSTARLET" >&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 "git", so it can be a program name with args.
  6831. set dummy git; 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_GIT+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. case $GIT in
  6838. [\\/]* | ?:[\\/]*)
  6839. ac_cv_path_GIT="$GIT" # 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_GIT="$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_GIT" && ac_cv_path_GIT=":"
  6857. ;;
  6858. esac
  6859. fi
  6860. GIT=$ac_cv_path_GIT
  6861. if test -n "$GIT"; then
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  6863. $as_echo "$GIT" >&6; }
  6864. else
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. $as_echo "no" >&6; }
  6867. fi
  6868. if test "${WGET}" != ":" ; then
  6869. DOWNLOAD=${WGET}
  6870. else if test "${CURL}" != ":" ; then
  6871. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6872. else
  6873. # Extract the first word of "fetch", so it can be a program name with args.
  6874. set dummy fetch; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_path_FETCH+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. case $FETCH in
  6881. [\\/]* | ?:[\\/]*)
  6882. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6883. ;;
  6884. *)
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6900. ;;
  6901. esac
  6902. fi
  6903. FETCH=$ac_cv_path_FETCH
  6904. if test -n "$FETCH"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6906. $as_echo "$FETCH" >&6; }
  6907. else
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. DOWNLOAD=${FETCH}
  6912. fi
  6913. fi
  6914. # Extract the first word of "ldconfig", so it can be a program name with args.
  6915. set dummy ldconfig; ac_word=$2
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6917. $as_echo_n "checking for $ac_word... " >&6; }
  6918. if ${ac_cv_path_LDCONFIG+:} false; then :
  6919. $as_echo_n "(cached) " >&6
  6920. else
  6921. case $LDCONFIG in
  6922. [\\/]* | ?:[\\/]*)
  6923. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  6924. ;;
  6925. *)
  6926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6927. for as_dir in $PATH
  6928. do
  6929. IFS=$as_save_IFS
  6930. test -z "$as_dir" && as_dir=.
  6931. for ac_exec_ext in '' $ac_executable_extensions; do
  6932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6933. ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6935. break 2
  6936. fi
  6937. done
  6938. done
  6939. IFS=$as_save_IFS
  6940. test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
  6941. ;;
  6942. esac
  6943. fi
  6944. LDCONFIG=$ac_cv_path_LDCONFIG
  6945. if test -n "$LDCONFIG"; then
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  6947. $as_echo "$LDCONFIG" >&6; }
  6948. else
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6950. $as_echo "no" >&6; }
  6951. fi
  6952. # Extract the first word of "sha1sum", so it can be a program name with args.
  6953. set dummy sha1sum; ac_word=$2
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6955. $as_echo_n "checking for $ac_word... " >&6; }
  6956. if ${ac_cv_path_SHA1SUM+:} false; then :
  6957. $as_echo_n "(cached) " >&6
  6958. else
  6959. case $SHA1SUM in
  6960. [\\/]* | ?:[\\/]*)
  6961. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  6962. ;;
  6963. *)
  6964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6965. for as_dir in $PATH
  6966. do
  6967. IFS=$as_save_IFS
  6968. test -z "$as_dir" && as_dir=.
  6969. for ac_exec_ext in '' $ac_executable_extensions; do
  6970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6971. ac_cv_path_SHA1SUM="$as_dir/$ac_word$ac_exec_ext"
  6972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6973. break 2
  6974. fi
  6975. done
  6976. done
  6977. IFS=$as_save_IFS
  6978. test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  6979. ;;
  6980. esac
  6981. fi
  6982. SHA1SUM=$ac_cv_path_SHA1SUM
  6983. if test -n "$SHA1SUM"; then
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  6985. $as_echo "$SHA1SUM" >&6; }
  6986. else
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6988. $as_echo "no" >&6; }
  6989. fi
  6990. # Extract the first word of "openssl", so it can be a program name with args.
  6991. set dummy openssl; 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_path_OPENSSL+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. case $OPENSSL in
  6998. [\\/]* | ?:[\\/]*)
  6999. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  7000. ;;
  7001. *)
  7002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7003. for as_dir in $PATH
  7004. do
  7005. IFS=$as_save_IFS
  7006. test -z "$as_dir" && as_dir=.
  7007. for ac_exec_ext in '' $ac_executable_extensions; do
  7008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7009. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  7010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7011. break 2
  7012. fi
  7013. done
  7014. done
  7015. IFS=$as_save_IFS
  7016. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL=":"
  7017. ;;
  7018. esac
  7019. fi
  7020. OPENSSL=$ac_cv_path_OPENSSL
  7021. if test -n "$OPENSSL"; then
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  7023. $as_echo "$OPENSSL" >&6; }
  7024. else
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7026. $as_echo "no" >&6; }
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  7029. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  7030. if ${ac_cv_path_BISON2+:} false; then :
  7031. $as_echo_n "(cached) " >&6
  7032. else
  7033. if test "x$BISON" != "x:" ; then
  7034. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  7035. # Use mktemp if possible; otherwise fall back on mkdir,
  7036. # with $RANDOM to make collisions less likely.
  7037. : ${TMPDIR=/tmp}
  7038. {
  7039. tmp=`
  7040. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  7041. ` &&
  7042. test -n "$tmp" && test -d "$tmp"
  7043. } || {
  7044. tmp=$TMPDIR/foo$$-$RANDOM
  7045. (umask 077 && mkdir "$tmp")
  7046. } || exit $?
  7047. cat >$tmp/test.y <<__EOL__
  7048. %parse-param {struct parse_io *parseio}
  7049. %%
  7050. file : { \$\$ = parseio->pval = 1; }
  7051. ;
  7052. %%
  7053. __EOL__
  7054. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  7055. if test -e "${tmp}/test.tab.c"; then
  7056. ac_cv_path_BISON2=${BISON}
  7057. fi
  7058. rm -rf ${tmp}
  7059. fi
  7060. fi
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  7062. $as_echo "$ac_cv_path_BISON2" >&6; }
  7063. if test "x${ac_cv_path_BISON2}" = "x" ; then
  7064. BISON=:
  7065. PBX_BISON=0
  7066. else
  7067. PBX_BISON=1
  7068. fi
  7069. if test "x${FLEX}" = "x:" ; then
  7070. PBX_FLEX=0
  7071. else
  7072. PBX_FLEX=1
  7073. fi
  7074. if test -n "$ac_tool_prefix"; then
  7075. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  7076. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7078. $as_echo_n "checking for $ac_word... " >&6; }
  7079. if ${ac_cv_prog_SOXMIX+:} false; then :
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. if test -n "$SOXMIX"; then
  7083. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  7084. else
  7085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7086. for as_dir in $PATH
  7087. do
  7088. IFS=$as_save_IFS
  7089. test -z "$as_dir" && as_dir=.
  7090. for ac_exec_ext in '' $ac_executable_extensions; do
  7091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7092. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  7093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7094. break 2
  7095. fi
  7096. done
  7097. done
  7098. IFS=$as_save_IFS
  7099. fi
  7100. fi
  7101. SOXMIX=$ac_cv_prog_SOXMIX
  7102. if test -n "$SOXMIX"; then
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  7104. $as_echo "$SOXMIX" >&6; }
  7105. else
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7107. $as_echo "no" >&6; }
  7108. fi
  7109. fi
  7110. if test -z "$ac_cv_prog_SOXMIX"; then
  7111. ac_ct_SOXMIX=$SOXMIX
  7112. # Extract the first word of "soxmix", so it can be a program name with args.
  7113. set dummy soxmix; ac_word=$2
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7115. $as_echo_n "checking for $ac_word... " >&6; }
  7116. if ${ac_cv_prog_ac_ct_SOXMIX+:} false; then :
  7117. $as_echo_n "(cached) " >&6
  7118. else
  7119. if test -n "$ac_ct_SOXMIX"; then
  7120. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  7121. else
  7122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7123. for as_dir in $PATH
  7124. do
  7125. IFS=$as_save_IFS
  7126. test -z "$as_dir" && as_dir=.
  7127. for ac_exec_ext in '' $ac_executable_extensions; do
  7128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7129. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  7130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7131. break 2
  7132. fi
  7133. done
  7134. done
  7135. IFS=$as_save_IFS
  7136. fi
  7137. fi
  7138. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  7139. if test -n "$ac_ct_SOXMIX"; then
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  7141. $as_echo "$ac_ct_SOXMIX" >&6; }
  7142. else
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7144. $as_echo "no" >&6; }
  7145. fi
  7146. if test "x$ac_ct_SOXMIX" = x; then
  7147. SOXMIX=":"
  7148. else
  7149. case $cross_compiling:$ac_tool_warned in
  7150. yes:)
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7153. ac_tool_warned=yes ;;
  7154. esac
  7155. SOXMIX=$ac_ct_SOXMIX
  7156. fi
  7157. else
  7158. SOXMIX="$ac_cv_prog_SOXMIX"
  7159. fi
  7160. if test "${SOXMIX}" != ":" ; then
  7161. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  7162. fi
  7163. for ac_prog in md5 md5sum gmd5sum digest
  7164. do
  7165. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7166. set dummy $ac_prog; ac_word=$2
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7168. $as_echo_n "checking for $ac_word... " >&6; }
  7169. if ${ac_cv_prog_MD5+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. if test -n "$MD5"; then
  7173. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  7174. else
  7175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7176. for as_dir in $PATH
  7177. do
  7178. IFS=$as_save_IFS
  7179. test -z "$as_dir" && as_dir=.
  7180. for ac_exec_ext in '' $ac_executable_extensions; do
  7181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7182. ac_cv_prog_MD5="$ac_prog"
  7183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7184. break 2
  7185. fi
  7186. done
  7187. done
  7188. IFS=$as_save_IFS
  7189. fi
  7190. fi
  7191. MD5=$ac_cv_prog_MD5
  7192. if test -n "$MD5"; then
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  7194. $as_echo "$MD5" >&6; }
  7195. else
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7197. $as_echo "no" >&6; }
  7198. fi
  7199. test -n "$MD5" && break
  7200. done
  7201. if test "${MD5}" = "digest" ; then
  7202. MD5="${MD5} -a md5"
  7203. fi
  7204. ac_ext=c
  7205. ac_cpp='$CPP $CPPFLAGS'
  7206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7209. acx_pthread_ok=no
  7210. # We used to check for pthread.h first, but this fails if pthread.h
  7211. # requires special compiler flags (e.g. on True64 or Sequent).
  7212. # It gets checked for in the link test anyway.
  7213. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7214. # etcetera environment variables, and if threads linking works using
  7215. # them:
  7216. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7217. save_CFLAGS="$CFLAGS"
  7218. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7219. save_LIBS="$LIBS"
  7220. LIBS="$PTHREAD_LIBS $LIBS"
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7222. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. /* Override any GCC internal prototype to avoid an error.
  7226. Use char because int might match the return type of a GCC
  7227. builtin and then its argument prototype would still apply. */
  7228. #ifdef __cplusplus
  7229. extern "C"
  7230. #endif
  7231. char pthread_join ();
  7232. int
  7233. main ()
  7234. {
  7235. return pthread_join ();
  7236. ;
  7237. return 0;
  7238. }
  7239. _ACEOF
  7240. if ac_fn_c_try_link "$LINENO"; then :
  7241. acx_pthread_ok=yes
  7242. fi
  7243. rm -f core conftest.err conftest.$ac_objext \
  7244. conftest$ac_exeext conftest.$ac_ext
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7246. $as_echo "$acx_pthread_ok" >&6; }
  7247. if test x"$acx_pthread_ok" = xno; then
  7248. PTHREAD_LIBS=""
  7249. PTHREAD_CFLAGS=""
  7250. fi
  7251. LIBS="$save_LIBS"
  7252. CFLAGS="$save_CFLAGS"
  7253. fi
  7254. # We must check for the threads library under a number of different
  7255. # names; the ordering is very important because some systems
  7256. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7257. # libraries is broken (non-POSIX).
  7258. # Create a list of thread flags to try. Items starting with a "-" are
  7259. # C compiler flags, and other items are library names, except for "none"
  7260. # which indicates that we try without any flags at all, and "pthread-config"
  7261. # which is a program returning the flags for the Pth emulation library.
  7262. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7263. # The ordering *is* (sometimes) important. Some notes on the
  7264. # individual items follow:
  7265. # pthreads: AIX (must check this before -lpthread)
  7266. # none: in case threads are in libc; should be tried before -Kthread and
  7267. # other compiler flags to prevent continual compiler warnings
  7268. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7269. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7270. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7271. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7272. # -pthreads: Solaris/gcc
  7273. # -mthreads: Mingw32/gcc, Lynx/gcc
  7274. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7275. # doesn't hurt to check since this sometimes defines pthreads too;
  7276. # also defines -D_REENTRANT)
  7277. # ... -mt is also the pthreads flag for HP/aCC
  7278. # pthread: Linux, etcetera
  7279. # --thread-safe: KAI C++
  7280. # pthread-config: use pthread-config program (for GNU Pth library)
  7281. case "${host_cpu}-${host_os}" in
  7282. *solaris*)
  7283. # On Solaris (at least, for some versions), libc contains stubbed
  7284. # (non-functional) versions of the pthreads routines, so link-based
  7285. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7286. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7287. # a function called by this macro, so we could check for that, but
  7288. # who knows whether they'll stub that too in a future libc.) So,
  7289. # we'll just look for -pthreads and -lpthread first:
  7290. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7291. ;;
  7292. esac
  7293. if test x"$acx_pthread_ok" = xno; then
  7294. for flag in $acx_pthread_flags; do
  7295. case $flag in
  7296. none)
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7298. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7299. ;;
  7300. -*)
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7302. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7303. PTHREAD_CFLAGS="$flag"
  7304. ;;
  7305. pthread-config)
  7306. # Extract the first word of "pthread-config", so it can be a program name with args.
  7307. set dummy pthread-config; ac_word=$2
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7309. $as_echo_n "checking for $ac_word... " >&6; }
  7310. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  7311. $as_echo_n "(cached) " >&6
  7312. else
  7313. if test -n "$acx_pthread_config"; then
  7314. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7315. else
  7316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7317. for as_dir in $PATH
  7318. do
  7319. IFS=$as_save_IFS
  7320. test -z "$as_dir" && as_dir=.
  7321. for ac_exec_ext in '' $ac_executable_extensions; do
  7322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7323. ac_cv_prog_acx_pthread_config="yes"
  7324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7325. break 2
  7326. fi
  7327. done
  7328. done
  7329. IFS=$as_save_IFS
  7330. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7331. fi
  7332. fi
  7333. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7334. if test -n "$acx_pthread_config"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7336. $as_echo "$acx_pthread_config" >&6; }
  7337. else
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7339. $as_echo "no" >&6; }
  7340. fi
  7341. if test x"$acx_pthread_config" = xno; then continue; fi
  7342. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7343. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7344. ;;
  7345. *)
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7347. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7348. PTHREAD_LIBS="-l$flag"
  7349. ;;
  7350. esac
  7351. save_LIBS="$LIBS"
  7352. save_CFLAGS="$CFLAGS"
  7353. LIBS="$PTHREAD_LIBS $LIBS"
  7354. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7355. # Check for various functions. We must include pthread.h,
  7356. # since some functions may be macros. (On the Sequent, we
  7357. # need a special flag -Kthread to make this header compile.)
  7358. # We check for pthread_join because it is in -lpthread on IRIX
  7359. # while pthread_create is in libc. We check for pthread_attr_init
  7360. # due to DEC craziness with -lpthreads. We check for
  7361. # pthread_cleanup_push because it is one of the few pthread
  7362. # functions on Solaris that doesn't have a non-functional libc stub.
  7363. # We try pthread_create on general principles.
  7364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7365. /* end confdefs.h. */
  7366. #include <pthread.h>
  7367. int
  7368. main ()
  7369. {
  7370. pthread_t th; pthread_join(th, 0);
  7371. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7372. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. if ac_fn_c_try_link "$LINENO"; then :
  7378. acx_pthread_ok=yes
  7379. fi
  7380. rm -f core conftest.err conftest.$ac_objext \
  7381. conftest$ac_exeext conftest.$ac_ext
  7382. LIBS="$save_LIBS"
  7383. CFLAGS="$save_CFLAGS"
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7385. $as_echo "$acx_pthread_ok" >&6; }
  7386. if test "x$acx_pthread_ok" = xyes; then
  7387. break;
  7388. fi
  7389. PTHREAD_LIBS=""
  7390. PTHREAD_CFLAGS=""
  7391. done
  7392. fi
  7393. # Various other checks:
  7394. if test "x$acx_pthread_ok" = xyes; then
  7395. save_LIBS="$LIBS"
  7396. LIBS="$PTHREAD_LIBS $LIBS"
  7397. save_CFLAGS="$CFLAGS"
  7398. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7399. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7401. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7402. attr_name=unknown
  7403. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7405. /* end confdefs.h. */
  7406. #include <pthread.h>
  7407. int
  7408. main ()
  7409. {
  7410. int attr=$attr; return attr;
  7411. ;
  7412. return 0;
  7413. }
  7414. _ACEOF
  7415. if ac_fn_c_try_link "$LINENO"; then :
  7416. attr_name=$attr; break
  7417. fi
  7418. rm -f core conftest.err conftest.$ac_objext \
  7419. conftest$ac_exeext conftest.$ac_ext
  7420. done
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7422. $as_echo "$attr_name" >&6; }
  7423. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7424. cat >>confdefs.h <<_ACEOF
  7425. #define PTHREAD_CREATE_JOINABLE $attr_name
  7426. _ACEOF
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7429. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7430. flag=no
  7431. case "${host_cpu}-${host_os}" in
  7432. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7433. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7434. esac
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7436. $as_echo "${flag}" >&6; }
  7437. if test "x$flag" != xno; then
  7438. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7439. fi
  7440. LIBS="$save_LIBS"
  7441. CFLAGS="$save_CFLAGS"
  7442. # More AIX lossage: must compile with xlc_r or cc_r
  7443. if test x"$GCC" != xyes; then
  7444. for ac_prog in xlc_r cc_r
  7445. do
  7446. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7447. set dummy $ac_prog; ac_word=$2
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7449. $as_echo_n "checking for $ac_word... " >&6; }
  7450. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7451. $as_echo_n "(cached) " >&6
  7452. else
  7453. if test -n "$PTHREAD_CC"; then
  7454. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7455. else
  7456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7457. for as_dir in $PATH
  7458. do
  7459. IFS=$as_save_IFS
  7460. test -z "$as_dir" && as_dir=.
  7461. for ac_exec_ext in '' $ac_executable_extensions; do
  7462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7463. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7465. break 2
  7466. fi
  7467. done
  7468. done
  7469. IFS=$as_save_IFS
  7470. fi
  7471. fi
  7472. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7473. if test -n "$PTHREAD_CC"; then
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7475. $as_echo "$PTHREAD_CC" >&6; }
  7476. else
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7478. $as_echo "no" >&6; }
  7479. fi
  7480. test -n "$PTHREAD_CC" && break
  7481. done
  7482. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7483. else
  7484. PTHREAD_CC=$CC
  7485. fi
  7486. else
  7487. PTHREAD_CC="$CC"
  7488. fi
  7489. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7490. if test x"$acx_pthread_ok" = xyes; then
  7491. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7492. :
  7493. else
  7494. acx_pthread_ok=no
  7495. fi
  7496. ac_ext=c
  7497. ac_cpp='$CPP $CPPFLAGS'
  7498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7501. ac_ext=c
  7502. ac_cpp='$CPP $CPPFLAGS'
  7503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7506. # Check whether --enable-dev-mode was given.
  7507. if test "${enable_dev_mode+set}" = set; then :
  7508. enableval=$enable_dev_mode; case "${enableval}" in
  7509. y|ye|yes) AST_DEVMODE=yes ;;
  7510. n|no) AST_DEVMODE=no ;;
  7511. noisy)
  7512. AST_DEVMODE=yes
  7513. NOISY_BUILD=yes
  7514. ;;
  7515. strict)
  7516. AST_DEVMODE=yes
  7517. AST_DEVMODE_STRICT=yes
  7518. ;;
  7519. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7520. esac
  7521. fi
  7522. AST_CODE_COVERAGE=no
  7523. # Check whether --enable-coverage was given.
  7524. if test "${enable_coverage+set}" = set; then :
  7525. enableval=$enable_coverage; case "${enableval}" in
  7526. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7527. n|no) AST_CODE_COVERAGE=no ;;
  7528. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  7529. esac
  7530. fi
  7531. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7532. # various packages.
  7533. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7534. # $2 is the short comment, $4 is the long comment
  7535. # $3 is the name used in --with- or --without- flags for configure.
  7536. #
  7537. # Package option names should be in alphabetical order
  7538. # by the --with option name (the third field),
  7539. # to make things easier for the users.
  7540. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7541. ALSA_OPTION="asound"
  7542. PBX_ALSA=0
  7543. # Check whether --with-asound was given.
  7544. if test "${with_asound+set}" = set; then :
  7545. withval=$with_asound;
  7546. case ${withval} in
  7547. n|no)
  7548. USE_ALSA=no
  7549. # -1 is a magic value used by menuselect to know that the package
  7550. # was disabled, other than 'not found'
  7551. PBX_ALSA=-1
  7552. ;;
  7553. y|ye|yes)
  7554. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7555. ;;
  7556. *)
  7557. ALSA_DIR="${withval}"
  7558. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7559. ;;
  7560. esac
  7561. fi
  7562. BFD_DESCRIP="Debug symbol decoding"
  7563. BFD_OPTION="bfd"
  7564. PBX_BFD=0
  7565. # Check whether --with-bfd was given.
  7566. if test "${with_bfd+set}" = set; then :
  7567. withval=$with_bfd;
  7568. case ${withval} in
  7569. n|no)
  7570. USE_BFD=no
  7571. # -1 is a magic value used by menuselect to know that the package
  7572. # was disabled, other than 'not found'
  7573. PBX_BFD=-1
  7574. ;;
  7575. y|ye|yes)
  7576. ac_mandatory_list="${ac_mandatory_list} BFD"
  7577. ;;
  7578. *)
  7579. BFD_DIR="${withval}"
  7580. ac_mandatory_list="${ac_mandatory_list} BFD"
  7581. ;;
  7582. esac
  7583. fi
  7584. # BKTR is used for backtrace support on platforms that do not
  7585. # have it natively.
  7586. BKTR_DESCRIP="Stack Backtrace"
  7587. BKTR_OPTION="execinfo"
  7588. PBX_BKTR=0
  7589. # Check whether --with-execinfo was given.
  7590. if test "${with_execinfo+set}" = set; then :
  7591. withval=$with_execinfo;
  7592. case ${withval} in
  7593. n|no)
  7594. USE_BKTR=no
  7595. # -1 is a magic value used by menuselect to know that the package
  7596. # was disabled, other than 'not found'
  7597. PBX_BKTR=-1
  7598. ;;
  7599. y|ye|yes)
  7600. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7601. ;;
  7602. *)
  7603. BKTR_DIR="${withval}"
  7604. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7605. ;;
  7606. esac
  7607. fi
  7608. BLUETOOTH_DESCRIP="Bluetooth"
  7609. BLUETOOTH_OPTION="bluetooth"
  7610. PBX_BLUETOOTH=0
  7611. # Check whether --with-bluetooth was given.
  7612. if test "${with_bluetooth+set}" = set; then :
  7613. withval=$with_bluetooth;
  7614. case ${withval} in
  7615. n|no)
  7616. USE_BLUETOOTH=no
  7617. # -1 is a magic value used by menuselect to know that the package
  7618. # was disabled, other than 'not found'
  7619. PBX_BLUETOOTH=-1
  7620. ;;
  7621. y|ye|yes)
  7622. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7623. ;;
  7624. *)
  7625. BLUETOOTH_DIR="${withval}"
  7626. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7627. ;;
  7628. esac
  7629. fi
  7630. CAP_DESCRIP="POSIX 1.e capabilities"
  7631. CAP_OPTION="cap"
  7632. PBX_CAP=0
  7633. # Check whether --with-cap was given.
  7634. if test "${with_cap+set}" = set; then :
  7635. withval=$with_cap;
  7636. case ${withval} in
  7637. n|no)
  7638. USE_CAP=no
  7639. # -1 is a magic value used by menuselect to know that the package
  7640. # was disabled, other than 'not found'
  7641. PBX_CAP=-1
  7642. ;;
  7643. y|ye|yes)
  7644. ac_mandatory_list="${ac_mandatory_list} CAP"
  7645. ;;
  7646. *)
  7647. CAP_DIR="${withval}"
  7648. ac_mandatory_list="${ac_mandatory_list} CAP"
  7649. ;;
  7650. esac
  7651. fi
  7652. COROSYNC_DESCRIP="Corosync"
  7653. COROSYNC_OPTION="cpg"
  7654. PBX_COROSYNC=0
  7655. # Check whether --with-cpg was given.
  7656. if test "${with_cpg+set}" = set; then :
  7657. withval=$with_cpg;
  7658. case ${withval} in
  7659. n|no)
  7660. USE_COROSYNC=no
  7661. # -1 is a magic value used by menuselect to know that the package
  7662. # was disabled, other than 'not found'
  7663. PBX_COROSYNC=-1
  7664. ;;
  7665. y|ye|yes)
  7666. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7667. ;;
  7668. *)
  7669. COROSYNC_DIR="${withval}"
  7670. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7671. ;;
  7672. esac
  7673. fi
  7674. COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
  7675. COROSYNC_CFG_STATE_TRACK_OPTION=cfg
  7676. COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
  7677. PBX_COROSYNC_CFG_STATE_TRACK=0
  7678. CURSES_DESCRIP="curses"
  7679. CURSES_OPTION="curses"
  7680. PBX_CURSES=0
  7681. # Check whether --with-curses was given.
  7682. if test "${with_curses+set}" = set; then :
  7683. withval=$with_curses;
  7684. case ${withval} in
  7685. n|no)
  7686. USE_CURSES=no
  7687. # -1 is a magic value used by menuselect to know that the package
  7688. # was disabled, other than 'not found'
  7689. PBX_CURSES=-1
  7690. ;;
  7691. y|ye|yes)
  7692. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7693. ;;
  7694. *)
  7695. CURSES_DIR="${withval}"
  7696. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7697. ;;
  7698. esac
  7699. fi
  7700. CRYPT_DESCRIP="password and data encryption"
  7701. CRYPT_OPTION="crypt"
  7702. PBX_CRYPT=0
  7703. # Check whether --with-crypt was given.
  7704. if test "${with_crypt+set}" = set; then :
  7705. withval=$with_crypt;
  7706. case ${withval} in
  7707. n|no)
  7708. USE_CRYPT=no
  7709. # -1 is a magic value used by menuselect to know that the package
  7710. # was disabled, other than 'not found'
  7711. PBX_CRYPT=-1
  7712. ;;
  7713. y|ye|yes)
  7714. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  7715. ;;
  7716. *)
  7717. CRYPT_DIR="${withval}"
  7718. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  7719. ;;
  7720. esac
  7721. fi
  7722. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7723. CRYPTO_OPTION="crypto"
  7724. PBX_CRYPTO=0
  7725. # Check whether --with-crypto was given.
  7726. if test "${with_crypto+set}" = set; then :
  7727. withval=$with_crypto;
  7728. case ${withval} in
  7729. n|no)
  7730. USE_CRYPTO=no
  7731. # -1 is a magic value used by menuselect to know that the package
  7732. # was disabled, other than 'not found'
  7733. PBX_CRYPTO=-1
  7734. ;;
  7735. y|ye|yes)
  7736. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7737. ;;
  7738. *)
  7739. CRYPTO_DIR="${withval}"
  7740. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7741. ;;
  7742. esac
  7743. fi
  7744. OPENSSL_SRTP_DESCRIP="OpenSSL SRTP Extension Support"
  7745. OPENSSL_SRTP_OPTION=crypto
  7746. OPENSSL_SRTP_DIR=${CRYPTO_DIR}
  7747. PBX_OPENSSL_SRTP=0
  7748. OPENSSL_EC_DESCRIP="OpenSSL Elliptic Curve Support"
  7749. OPENSSL_EC_OPTION=crypto
  7750. OPENSSL_EC_DIR=${CRYPTO_DIR}
  7751. PBX_OPENSSL_EC=0
  7752. DAHDI_DESCRIP="DAHDI"
  7753. DAHDI_OPTION="dahdi"
  7754. PBX_DAHDI=0
  7755. # Check whether --with-dahdi was given.
  7756. if test "${with_dahdi+set}" = set; then :
  7757. withval=$with_dahdi;
  7758. case ${withval} in
  7759. n|no)
  7760. USE_DAHDI=no
  7761. # -1 is a magic value used by menuselect to know that the package
  7762. # was disabled, other than 'not found'
  7763. PBX_DAHDI=-1
  7764. ;;
  7765. y|ye|yes)
  7766. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7767. ;;
  7768. *)
  7769. DAHDI_DIR="${withval}"
  7770. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7771. ;;
  7772. esac
  7773. fi
  7774. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7775. FFMPEG_OPTION="avcodec"
  7776. PBX_FFMPEG=0
  7777. # Check whether --with-avcodec was given.
  7778. if test "${with_avcodec+set}" = set; then :
  7779. withval=$with_avcodec;
  7780. case ${withval} in
  7781. n|no)
  7782. USE_FFMPEG=no
  7783. # -1 is a magic value used by menuselect to know that the package
  7784. # was disabled, other than 'not found'
  7785. PBX_FFMPEG=-1
  7786. ;;
  7787. y|ye|yes)
  7788. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7789. ;;
  7790. *)
  7791. FFMPEG_DIR="${withval}"
  7792. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7793. ;;
  7794. esac
  7795. fi
  7796. GSM_DESCRIP="External GSM"
  7797. GSM_OPTION="gsm"
  7798. PBX_GSM=0
  7799. # Check whether --with-gsm was given.
  7800. if test "${with_gsm+set}" = set; then :
  7801. withval=$with_gsm;
  7802. case ${withval} in
  7803. n|no)
  7804. USE_GSM=no
  7805. # -1 is a magic value used by menuselect to know that the package
  7806. # was disabled, other than 'not found'
  7807. PBX_GSM=-1
  7808. ;;
  7809. y|ye|yes)
  7810. ac_mandatory_list="${ac_mandatory_list} GSM"
  7811. ;;
  7812. *)
  7813. GSM_DIR="${withval}"
  7814. ac_mandatory_list="${ac_mandatory_list} GSM"
  7815. ;;
  7816. esac
  7817. fi
  7818. ILBC_DESCRIP="System iLBC"
  7819. ILBC_OPTION="ilbc"
  7820. PBX_ILBC=0
  7821. # Check whether --with-ilbc was given.
  7822. if test "${with_ilbc+set}" = set; then :
  7823. withval=$with_ilbc;
  7824. case ${withval} in
  7825. n|no)
  7826. USE_ILBC=no
  7827. # -1 is a magic value used by menuselect to know that the package
  7828. # was disabled, other than 'not found'
  7829. PBX_ILBC=-1
  7830. ;;
  7831. y|ye|yes)
  7832. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7833. ;;
  7834. *)
  7835. ILBC_DIR="${withval}"
  7836. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7837. ;;
  7838. esac
  7839. fi
  7840. GTK2_DESCRIP="gtk2"
  7841. GTK2_OPTION="gtk2"
  7842. PBX_GTK2=0
  7843. # Check whether --with-gtk2 was given.
  7844. if test "${with_gtk2+set}" = set; then :
  7845. withval=$with_gtk2;
  7846. case ${withval} in
  7847. n|no)
  7848. USE_GTK2=no
  7849. # -1 is a magic value used by menuselect to know that the package
  7850. # was disabled, other than 'not found'
  7851. PBX_GTK2=-1
  7852. ;;
  7853. y|ye|yes)
  7854. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7855. ;;
  7856. *)
  7857. GTK2_DIR="${withval}"
  7858. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7859. ;;
  7860. esac
  7861. fi
  7862. GMIME_DESCRIP="GMime"
  7863. GMIME_OPTION="gmime"
  7864. PBX_GMIME=0
  7865. # Check whether --with-gmime was given.
  7866. if test "${with_gmime+set}" = set; then :
  7867. withval=$with_gmime;
  7868. case ${withval} in
  7869. n|no)
  7870. USE_GMIME=no
  7871. # -1 is a magic value used by menuselect to know that the package
  7872. # was disabled, other than 'not found'
  7873. PBX_GMIME=-1
  7874. ;;
  7875. y|ye|yes)
  7876. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7877. ;;
  7878. *)
  7879. GMIME_DIR="${withval}"
  7880. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7881. ;;
  7882. esac
  7883. fi
  7884. OPENH323_DESCRIP="OpenH323"
  7885. OPENH323_OPTION="h323"
  7886. PBX_OPENH323=0
  7887. # Check whether --with-h323 was given.
  7888. if test "${with_h323+set}" = set; then :
  7889. withval=$with_h323;
  7890. case ${withval} in
  7891. n|no)
  7892. USE_OPENH323=no
  7893. # -1 is a magic value used by menuselect to know that the package
  7894. # was disabled, other than 'not found'
  7895. PBX_OPENH323=-1
  7896. ;;
  7897. y|ye|yes)
  7898. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7899. ;;
  7900. *)
  7901. OPENH323_DIR="${withval}"
  7902. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7903. ;;
  7904. esac
  7905. fi
  7906. HOARD_DESCRIP="Hoard Memory Allocator"
  7907. HOARD_OPTION="hoard"
  7908. PBX_HOARD=0
  7909. # Check whether --with-hoard was given.
  7910. if test "${with_hoard+set}" = set; then :
  7911. withval=$with_hoard;
  7912. case ${withval} in
  7913. n|no)
  7914. USE_HOARD=no
  7915. # -1 is a magic value used by menuselect to know that the package
  7916. # was disabled, other than 'not found'
  7917. PBX_HOARD=-1
  7918. ;;
  7919. y|ye|yes)
  7920. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7921. ;;
  7922. *)
  7923. HOARD_DIR="${withval}"
  7924. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7925. ;;
  7926. esac
  7927. fi
  7928. ICAL_DESCRIP="iCal"
  7929. ICAL_OPTION="ical"
  7930. PBX_ICAL=0
  7931. # Check whether --with-ical was given.
  7932. if test "${with_ical+set}" = set; then :
  7933. withval=$with_ical;
  7934. case ${withval} in
  7935. n|no)
  7936. USE_ICAL=no
  7937. # -1 is a magic value used by menuselect to know that the package
  7938. # was disabled, other than 'not found'
  7939. PBX_ICAL=-1
  7940. ;;
  7941. y|ye|yes)
  7942. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7943. ;;
  7944. *)
  7945. ICAL_DIR="${withval}"
  7946. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7947. ;;
  7948. esac
  7949. fi
  7950. ICONV_DESCRIP="Iconv"
  7951. ICONV_OPTION="iconv"
  7952. PBX_ICONV=0
  7953. # Check whether --with-iconv was given.
  7954. if test "${with_iconv+set}" = set; then :
  7955. withval=$with_iconv;
  7956. case ${withval} in
  7957. n|no)
  7958. USE_ICONV=no
  7959. # -1 is a magic value used by menuselect to know that the package
  7960. # was disabled, other than 'not found'
  7961. PBX_ICONV=-1
  7962. ;;
  7963. y|ye|yes)
  7964. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7965. ;;
  7966. *)
  7967. ICONV_DIR="${withval}"
  7968. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7969. ;;
  7970. esac
  7971. fi
  7972. IKSEMEL_DESCRIP="Iksemel Jabber"
  7973. IKSEMEL_OPTION="iksemel"
  7974. PBX_IKSEMEL=0
  7975. # Check whether --with-iksemel was given.
  7976. if test "${with_iksemel+set}" = set; then :
  7977. withval=$with_iksemel;
  7978. case ${withval} in
  7979. n|no)
  7980. USE_IKSEMEL=no
  7981. # -1 is a magic value used by menuselect to know that the package
  7982. # was disabled, other than 'not found'
  7983. PBX_IKSEMEL=-1
  7984. ;;
  7985. y|ye|yes)
  7986. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7987. ;;
  7988. *)
  7989. IKSEMEL_DIR="${withval}"
  7990. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7991. ;;
  7992. esac
  7993. fi
  7994. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7995. IMAP_TK_OPTION="imap"
  7996. PBX_IMAP_TK=0
  7997. # Check whether --with-imap was given.
  7998. if test "${with_imap+set}" = set; then :
  7999. withval=$with_imap;
  8000. case ${withval} in
  8001. n|no)
  8002. USE_IMAP_TK=no
  8003. # -1 is a magic value used by menuselect to know that the package
  8004. # was disabled, other than 'not found'
  8005. PBX_IMAP_TK=-1
  8006. ;;
  8007. y|ye|yes)
  8008. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  8009. ;;
  8010. *)
  8011. IMAP_TK_DIR="${withval}"
  8012. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  8013. ;;
  8014. esac
  8015. fi
  8016. INOTIFY_DESCRIP="inotify support"
  8017. INOTIFY_OPTION="inotify"
  8018. PBX_INOTIFY=0
  8019. # Check whether --with-inotify was given.
  8020. if test "${with_inotify+set}" = set; then :
  8021. withval=$with_inotify;
  8022. case ${withval} in
  8023. n|no)
  8024. USE_INOTIFY=no
  8025. # -1 is a magic value used by menuselect to know that the package
  8026. # was disabled, other than 'not found'
  8027. PBX_INOTIFY=-1
  8028. ;;
  8029. y|ye|yes)
  8030. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8031. ;;
  8032. *)
  8033. INOTIFY_DIR="${withval}"
  8034. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8035. ;;
  8036. esac
  8037. fi
  8038. IODBC_DESCRIP="iODBC"
  8039. IODBC_OPTION="iodbc"
  8040. PBX_IODBC=0
  8041. # Check whether --with-iodbc was given.
  8042. if test "${with_iodbc+set}" = set; then :
  8043. withval=$with_iodbc;
  8044. case ${withval} in
  8045. n|no)
  8046. USE_IODBC=no
  8047. # -1 is a magic value used by menuselect to know that the package
  8048. # was disabled, other than 'not found'
  8049. PBX_IODBC=-1
  8050. ;;
  8051. y|ye|yes)
  8052. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8053. ;;
  8054. *)
  8055. IODBC_DIR="${withval}"
  8056. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8057. ;;
  8058. esac
  8059. fi
  8060. ISDNNET_DESCRIP="ISDN4Linux"
  8061. ISDNNET_OPTION="isdnnet"
  8062. PBX_ISDNNET=0
  8063. # Check whether --with-isdnnet was given.
  8064. if test "${with_isdnnet+set}" = set; then :
  8065. withval=$with_isdnnet;
  8066. case ${withval} in
  8067. n|no)
  8068. USE_ISDNNET=no
  8069. # -1 is a magic value used by menuselect to know that the package
  8070. # was disabled, other than 'not found'
  8071. PBX_ISDNNET=-1
  8072. ;;
  8073. y|ye|yes)
  8074. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8075. ;;
  8076. *)
  8077. ISDNNET_DIR="${withval}"
  8078. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8079. ;;
  8080. esac
  8081. fi
  8082. JACK_DESCRIP="Jack Audio Connection Kit"
  8083. JACK_OPTION="jack"
  8084. PBX_JACK=0
  8085. # Check whether --with-jack was given.
  8086. if test "${with_jack+set}" = set; then :
  8087. withval=$with_jack;
  8088. case ${withval} in
  8089. n|no)
  8090. USE_JACK=no
  8091. # -1 is a magic value used by menuselect to know that the package
  8092. # was disabled, other than 'not found'
  8093. PBX_JACK=-1
  8094. ;;
  8095. y|ye|yes)
  8096. ac_mandatory_list="${ac_mandatory_list} JACK"
  8097. ;;
  8098. *)
  8099. JACK_DIR="${withval}"
  8100. ac_mandatory_list="${ac_mandatory_list} JACK"
  8101. ;;
  8102. esac
  8103. fi
  8104. JANSSON_DESCRIP="Jansson JSON library"
  8105. JANSSON_OPTION="jansson"
  8106. PBX_JANSSON=0
  8107. # Check whether --with-jansson was given.
  8108. if test "${with_jansson+set}" = set; then :
  8109. withval=$with_jansson;
  8110. case ${withval} in
  8111. n|no)
  8112. USE_JANSSON=no
  8113. # -1 is a magic value used by menuselect to know that the package
  8114. # was disabled, other than 'not found'
  8115. PBX_JANSSON=-1
  8116. ;;
  8117. y|ye|yes)
  8118. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  8119. ;;
  8120. *)
  8121. JANSSON_DIR="${withval}"
  8122. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  8123. ;;
  8124. esac
  8125. fi
  8126. URIPARSER_DESCRIP="uriparser library"
  8127. URIPARSER_OPTION="uriparser"
  8128. PBX_URIPARSER=0
  8129. # Check whether --with-uriparser was given.
  8130. if test "${with_uriparser+set}" = set; then :
  8131. withval=$with_uriparser;
  8132. case ${withval} in
  8133. n|no)
  8134. USE_URIPARSER=no
  8135. # -1 is a magic value used by menuselect to know that the package
  8136. # was disabled, other than 'not found'
  8137. PBX_URIPARSER=-1
  8138. ;;
  8139. y|ye|yes)
  8140. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  8141. ;;
  8142. *)
  8143. URIPARSER_DIR="${withval}"
  8144. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  8145. ;;
  8146. esac
  8147. fi
  8148. KQUEUE_DESCRIP="kqueue support"
  8149. KQUEUE_OPTION="kqueue"
  8150. PBX_KQUEUE=0
  8151. # Check whether --with-kqueue was given.
  8152. if test "${with_kqueue+set}" = set; then :
  8153. withval=$with_kqueue;
  8154. case ${withval} in
  8155. n|no)
  8156. USE_KQUEUE=no
  8157. # -1 is a magic value used by menuselect to know that the package
  8158. # was disabled, other than 'not found'
  8159. PBX_KQUEUE=-1
  8160. ;;
  8161. y|ye|yes)
  8162. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8163. ;;
  8164. *)
  8165. KQUEUE_DIR="${withval}"
  8166. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8167. ;;
  8168. esac
  8169. fi
  8170. LDAP_DESCRIP="OpenLDAP"
  8171. LDAP_OPTION="ldap"
  8172. PBX_LDAP=0
  8173. # Check whether --with-ldap was given.
  8174. if test "${with_ldap+set}" = set; then :
  8175. withval=$with_ldap;
  8176. case ${withval} in
  8177. n|no)
  8178. USE_LDAP=no
  8179. # -1 is a magic value used by menuselect to know that the package
  8180. # was disabled, other than 'not found'
  8181. PBX_LDAP=-1
  8182. ;;
  8183. y|ye|yes)
  8184. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8185. ;;
  8186. *)
  8187. LDAP_DIR="${withval}"
  8188. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8189. ;;
  8190. esac
  8191. fi
  8192. # Check whether --with-libcurl was given.
  8193. if test "${with_libcurl+set}" = set; then :
  8194. withval=$with_libcurl; _libcurl_with=$withval
  8195. else
  8196. _libcurl_with=yes
  8197. fi
  8198. if test "$_libcurl_with" != "no" ; then
  8199. for ac_prog in gawk mawk nawk awk
  8200. do
  8201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8202. set dummy $ac_prog; ac_word=$2
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8204. $as_echo_n "checking for $ac_word... " >&6; }
  8205. if ${ac_cv_prog_AWK+:} false; then :
  8206. $as_echo_n "(cached) " >&6
  8207. else
  8208. if test -n "$AWK"; then
  8209. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8210. else
  8211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8212. for as_dir in $PATH
  8213. do
  8214. IFS=$as_save_IFS
  8215. test -z "$as_dir" && as_dir=.
  8216. for ac_exec_ext in '' $ac_executable_extensions; do
  8217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8218. ac_cv_prog_AWK="$ac_prog"
  8219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8220. break 2
  8221. fi
  8222. done
  8223. done
  8224. IFS=$as_save_IFS
  8225. fi
  8226. fi
  8227. AWK=$ac_cv_prog_AWK
  8228. if test -n "$AWK"; then
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8230. $as_echo "$AWK" >&6; }
  8231. else
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8233. $as_echo "no" >&6; }
  8234. fi
  8235. test -n "$AWK" && break
  8236. done
  8237. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  8238. _libcurl_try_link=yes
  8239. if test -d "$_libcurl_with" ; then
  8240. CURL_INCLUDE="-I$withval/include"
  8241. _libcurl_ldflags="-L$withval/lib"
  8242. # Extract the first word of "curl-config", so it can be a program name with args.
  8243. set dummy curl-config; ac_word=$2
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8245. $as_echo_n "checking for $ac_word... " >&6; }
  8246. if ${ac_cv_path__libcurl_config+:} false; then :
  8247. $as_echo_n "(cached) " >&6
  8248. else
  8249. case $_libcurl_config in
  8250. [\\/]* | ?:[\\/]*)
  8251. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8252. ;;
  8253. *)
  8254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8255. for as_dir in "$withval/bin"
  8256. do
  8257. IFS=$as_save_IFS
  8258. test -z "$as_dir" && as_dir=.
  8259. for ac_exec_ext in '' $ac_executable_extensions; do
  8260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8261. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8263. break 2
  8264. fi
  8265. done
  8266. done
  8267. IFS=$as_save_IFS
  8268. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8269. ;;
  8270. esac
  8271. fi
  8272. _libcurl_config=$ac_cv_path__libcurl_config
  8273. if test -n "$_libcurl_config"; then
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8275. $as_echo "$_libcurl_config" >&6; }
  8276. else
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8278. $as_echo "no" >&6; }
  8279. fi
  8280. else
  8281. # Extract the first word of "curl-config", so it can be a program name with args.
  8282. set dummy curl-config; ac_word=$2
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8284. $as_echo_n "checking for $ac_word... " >&6; }
  8285. if ${ac_cv_path__libcurl_config+:} false; then :
  8286. $as_echo_n "(cached) " >&6
  8287. else
  8288. case $_libcurl_config in
  8289. [\\/]* | ?:[\\/]*)
  8290. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8291. ;;
  8292. *)
  8293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8294. for as_dir in $PATH
  8295. do
  8296. IFS=$as_save_IFS
  8297. test -z "$as_dir" && as_dir=.
  8298. for ac_exec_ext in '' $ac_executable_extensions; do
  8299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8300. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8302. break 2
  8303. fi
  8304. done
  8305. done
  8306. IFS=$as_save_IFS
  8307. ;;
  8308. esac
  8309. fi
  8310. _libcurl_config=$ac_cv_path__libcurl_config
  8311. if test -n "$_libcurl_config"; then
  8312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8313. $as_echo "$_libcurl_config" >&6; }
  8314. else
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8316. $as_echo "no" >&6; }
  8317. fi
  8318. fi
  8319. if test x$_libcurl_config != "x" ; then
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  8321. $as_echo_n "checking for the version of libcurl... " >&6; }
  8322. if ${libcurl_cv_lib_curl_version+:} false; then :
  8323. $as_echo_n "(cached) " >&6
  8324. else
  8325. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8326. fi
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  8328. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8329. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8330. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8331. if test $_libcurl_wanted -gt 0 ; then
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  8333. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8334. if ${libcurl_cv_lib_version_ok+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8338. libcurl_cv_lib_version_ok=yes
  8339. else
  8340. libcurl_cv_lib_version_ok=no
  8341. fi
  8342. fi
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  8344. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8345. fi
  8346. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8347. if test x"$CURL_INCLUDE" = "x" ; then
  8348. CURL_INCLUDE=`$_libcurl_config --cflags`
  8349. fi
  8350. if test x"$CURL_LIB" = "x" ; then
  8351. CURL_LIB=`$_libcurl_config --libs`
  8352. # This is so silly, but Apple actually has a bug in their
  8353. # curl-config script. Fixed in Tiger, but there are still
  8354. # lots of Panther installs around.
  8355. case "${host}" in
  8356. powerpc-apple-darwin7*)
  8357. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8358. ;;
  8359. esac
  8360. fi
  8361. # All curl-config scripts support --feature
  8362. _libcurl_features=`$_libcurl_config --feature`
  8363. # Is it modern enough to have --protocols? (7.12.4)
  8364. if test $_libcurl_version -ge 461828 ; then
  8365. _libcurl_protocols=`$_libcurl_config --protocols`
  8366. fi
  8367. else
  8368. _libcurl_try_link=no
  8369. fi
  8370. unset _libcurl_wanted
  8371. fi
  8372. if test $_libcurl_try_link = yes ; then
  8373. # we didn't find curl-config, so let's see if the user-supplied
  8374. # link line (or failing that, "-lcurl") is enough.
  8375. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  8377. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8378. if ${libcurl_cv_lib_curl_usable+:} false; then :
  8379. $as_echo_n "(cached) " >&6
  8380. else
  8381. _libcurl_save_cppflags=$CPPFLAGS
  8382. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8383. _libcurl_save_libs=$LIBS
  8384. LIBS="$CURL_LIB $LIBS"
  8385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8386. /* end confdefs.h. */
  8387. #include <curl/curl.h>
  8388. int
  8389. main ()
  8390. {
  8391. /* Try and use a few common options to force a failure if we are
  8392. missing symbols or can't link. */
  8393. int x;
  8394. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8395. x=CURL_ERROR_SIZE;
  8396. x=CURLOPT_WRITEFUNCTION;
  8397. x=CURLOPT_FILE;
  8398. x=CURLOPT_ERRORBUFFER;
  8399. x=CURLOPT_STDERR;
  8400. x=CURLOPT_VERBOSE;
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. if ac_fn_c_try_link "$LINENO"; then :
  8406. libcurl_cv_lib_curl_usable=yes
  8407. else
  8408. libcurl_cv_lib_curl_usable=no
  8409. fi
  8410. rm -f core conftest.err conftest.$ac_objext \
  8411. conftest$ac_exeext conftest.$ac_ext
  8412. CPPFLAGS=$_libcurl_save_cppflags
  8413. LIBS=$_libcurl_save_libs
  8414. unset _libcurl_save_cppflags
  8415. unset _libcurl_save_libs
  8416. fi
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  8418. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8419. if test $libcurl_cv_lib_curl_usable = yes ; then
  8420. # Does curl_free() exist in this version of libcurl?
  8421. # If not, fake it with free()
  8422. _libcurl_save_cppflags=$CPPFLAGS
  8423. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8424. _libcurl_save_libs=$LIBS
  8425. LIBS="$LIBS $CURL_LIB"
  8426. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  8427. if test "x$ac_cv_func_curl_free" = xyes; then :
  8428. else
  8429. $as_echo "#define curl_free free" >>confdefs.h
  8430. fi
  8431. CPPFLAGS=$_libcurl_save_cppflags
  8432. LIBS=$_libcurl_save_libs
  8433. unset _libcurl_save_cppflags
  8434. unset _libcurl_save_libs
  8435. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  8436. PBX_CURL=1
  8437. for _libcurl_feature in $_libcurl_features ; do
  8438. cat >>confdefs.h <<_ACEOF
  8439. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8440. _ACEOF
  8441. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8442. done
  8443. if test "x$_libcurl_protocols" = "x" ; then
  8444. # We don't have --protocols, so just assume that all
  8445. # protocols are available
  8446. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8447. if test x$libcurl_feature_SSL = xyes ; then
  8448. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8449. # FTPS wasn't standards-compliant until version
  8450. # 7.11.0
  8451. if test $_libcurl_version -ge 461568; then
  8452. _libcurl_protocols="$_libcurl_protocols FTPS"
  8453. fi
  8454. fi
  8455. fi
  8456. for _libcurl_protocol in $_libcurl_protocols ; do
  8457. cat >>confdefs.h <<_ACEOF
  8458. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8459. _ACEOF
  8460. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8461. done
  8462. else
  8463. unset CURL_LIB
  8464. unset CURL_INCLUDE
  8465. PBX_CURL=0
  8466. fi
  8467. fi
  8468. unset _libcurl_try_link
  8469. unset _libcurl_version_parse
  8470. unset _libcurl_config
  8471. unset _libcurl_feature
  8472. unset _libcurl_features
  8473. unset _libcurl_protocol
  8474. unset _libcurl_protocols
  8475. unset _libcurl_version
  8476. unset _libcurl_ldflags
  8477. fi
  8478. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8479. # This is the IF-NO path
  8480. :
  8481. else
  8482. # This is the IF-YES path
  8483. :
  8484. fi
  8485. unset _libcurl_with
  8486. LIBEDIT_DESCRIP="NetBSD Editline library"
  8487. LIBEDIT_OPTION="libedit"
  8488. PBX_LIBEDIT=0
  8489. # Check whether --with-libedit was given.
  8490. if test "${with_libedit+set}" = set; then :
  8491. withval=$with_libedit;
  8492. case ${withval} in
  8493. n|no)
  8494. USE_LIBEDIT=no
  8495. # -1 is a magic value used by menuselect to know that the package
  8496. # was disabled, other than 'not found'
  8497. PBX_LIBEDIT=-1
  8498. ;;
  8499. y|ye|yes)
  8500. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8501. ;;
  8502. *)
  8503. LIBEDIT_DIR="${withval}"
  8504. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8505. ;;
  8506. esac
  8507. fi
  8508. LIBXML2_DESCRIP="LibXML2"
  8509. LIBXML2_OPTION="libxml2"
  8510. PBX_LIBXML2=0
  8511. # Check whether --with-libxml2 was given.
  8512. if test "${with_libxml2+set}" = set; then :
  8513. withval=$with_libxml2;
  8514. case ${withval} in
  8515. n|no)
  8516. USE_LIBXML2=no
  8517. # -1 is a magic value used by menuselect to know that the package
  8518. # was disabled, other than 'not found'
  8519. PBX_LIBXML2=-1
  8520. ;;
  8521. y|ye|yes)
  8522. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8523. ;;
  8524. *)
  8525. LIBXML2_DIR="${withval}"
  8526. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8527. ;;
  8528. esac
  8529. fi
  8530. LIBXSLT_DESCRIP="LibXSLT"
  8531. LIBXSLT_OPTION="libxslt"
  8532. PBX_LIBXSLT=0
  8533. # Check whether --with-libxslt was given.
  8534. if test "${with_libxslt+set}" = set; then :
  8535. withval=$with_libxslt;
  8536. case ${withval} in
  8537. n|no)
  8538. USE_LIBXSLT=no
  8539. # -1 is a magic value used by menuselect to know that the package
  8540. # was disabled, other than 'not found'
  8541. PBX_LIBXSLT=-1
  8542. ;;
  8543. y|ye|yes)
  8544. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  8545. ;;
  8546. *)
  8547. LIBXSLT_DIR="${withval}"
  8548. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  8549. ;;
  8550. esac
  8551. fi
  8552. LIBXSLT_CLEANUP_DESCRIP="LibXSLT Library Cleanup Function"
  8553. LIBXSLT_CLEANUP_OPTION=libxslt
  8554. LIBXSLT_CLEANUP_DIR=${LIBXSLT_DIR}
  8555. PBX_LIBXSLT_CLEANUP=0
  8556. LTDL_DESCRIP="libtool"
  8557. LTDL_OPTION="ltdl"
  8558. PBX_LTDL=0
  8559. # Check whether --with-ltdl was given.
  8560. if test "${with_ltdl+set}" = set; then :
  8561. withval=$with_ltdl;
  8562. case ${withval} in
  8563. n|no)
  8564. USE_LTDL=no
  8565. # -1 is a magic value used by menuselect to know that the package
  8566. # was disabled, other than 'not found'
  8567. PBX_LTDL=-1
  8568. ;;
  8569. y|ye|yes)
  8570. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8571. ;;
  8572. *)
  8573. LTDL_DIR="${withval}"
  8574. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8575. ;;
  8576. esac
  8577. fi
  8578. LUA_DESCRIP="Lua"
  8579. LUA_OPTION="lua"
  8580. PBX_LUA=0
  8581. # Check whether --with-lua was given.
  8582. if test "${with_lua+set}" = set; then :
  8583. withval=$with_lua;
  8584. case ${withval} in
  8585. n|no)
  8586. USE_LUA=no
  8587. # -1 is a magic value used by menuselect to know that the package
  8588. # was disabled, other than 'not found'
  8589. PBX_LUA=-1
  8590. ;;
  8591. y|ye|yes)
  8592. ac_mandatory_list="${ac_mandatory_list} LUA"
  8593. ;;
  8594. *)
  8595. LUA_DIR="${withval}"
  8596. ac_mandatory_list="${ac_mandatory_list} LUA"
  8597. ;;
  8598. esac
  8599. fi
  8600. MISDN_DESCRIP="mISDN user"
  8601. MISDN_OPTION="misdn"
  8602. PBX_MISDN=0
  8603. # Check whether --with-misdn was given.
  8604. if test "${with_misdn+set}" = set; then :
  8605. withval=$with_misdn;
  8606. case ${withval} in
  8607. n|no)
  8608. USE_MISDN=no
  8609. # -1 is a magic value used by menuselect to know that the package
  8610. # was disabled, other than 'not found'
  8611. PBX_MISDN=-1
  8612. ;;
  8613. y|ye|yes)
  8614. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8615. ;;
  8616. *)
  8617. MISDN_DIR="${withval}"
  8618. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8619. ;;
  8620. esac
  8621. fi
  8622. MYSQLCLIENT_DESCRIP="MySQL client"
  8623. MYSQLCLIENT_OPTION="mysqlclient"
  8624. PBX_MYSQLCLIENT=0
  8625. # Check whether --with-mysqlclient was given.
  8626. if test "${with_mysqlclient+set}" = set; then :
  8627. withval=$with_mysqlclient;
  8628. case ${withval} in
  8629. n|no)
  8630. USE_MYSQLCLIENT=no
  8631. # -1 is a magic value used by menuselect to know that the package
  8632. # was disabled, other than 'not found'
  8633. PBX_MYSQLCLIENT=-1
  8634. ;;
  8635. y|ye|yes)
  8636. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8637. ;;
  8638. *)
  8639. MYSQLCLIENT_DIR="${withval}"
  8640. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8641. ;;
  8642. esac
  8643. fi
  8644. NBS_DESCRIP="Network Broadcast Sound"
  8645. NBS_OPTION="nbs"
  8646. PBX_NBS=0
  8647. # Check whether --with-nbs was given.
  8648. if test "${with_nbs+set}" = set; then :
  8649. withval=$with_nbs;
  8650. case ${withval} in
  8651. n|no)
  8652. USE_NBS=no
  8653. # -1 is a magic value used by menuselect to know that the package
  8654. # was disabled, other than 'not found'
  8655. PBX_NBS=-1
  8656. ;;
  8657. y|ye|yes)
  8658. ac_mandatory_list="${ac_mandatory_list} NBS"
  8659. ;;
  8660. *)
  8661. NBS_DIR="${withval}"
  8662. ac_mandatory_list="${ac_mandatory_list} NBS"
  8663. ;;
  8664. esac
  8665. fi
  8666. NCURSES_DESCRIP="ncurses"
  8667. NCURSES_OPTION="ncurses"
  8668. PBX_NCURSES=0
  8669. # Check whether --with-ncurses was given.
  8670. if test "${with_ncurses+set}" = set; then :
  8671. withval=$with_ncurses;
  8672. case ${withval} in
  8673. n|no)
  8674. USE_NCURSES=no
  8675. # -1 is a magic value used by menuselect to know that the package
  8676. # was disabled, other than 'not found'
  8677. PBX_NCURSES=-1
  8678. ;;
  8679. y|ye|yes)
  8680. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8681. ;;
  8682. *)
  8683. NCURSES_DIR="${withval}"
  8684. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8685. ;;
  8686. esac
  8687. fi
  8688. NEON_DESCRIP="neon"
  8689. NEON_OPTION="neon"
  8690. PBX_NEON=0
  8691. # Check whether --with-neon was given.
  8692. if test "${with_neon+set}" = set; then :
  8693. withval=$with_neon;
  8694. case ${withval} in
  8695. n|no)
  8696. USE_NEON=no
  8697. # -1 is a magic value used by menuselect to know that the package
  8698. # was disabled, other than 'not found'
  8699. PBX_NEON=-1
  8700. ;;
  8701. y|ye|yes)
  8702. ac_mandatory_list="${ac_mandatory_list} NEON"
  8703. ;;
  8704. *)
  8705. NEON_DIR="${withval}"
  8706. ac_mandatory_list="${ac_mandatory_list} NEON"
  8707. ;;
  8708. esac
  8709. fi
  8710. NEON29_DESCRIP="neon29"
  8711. NEON29_OPTION="neon29"
  8712. PBX_NEON29=0
  8713. # Check whether --with-neon29 was given.
  8714. if test "${with_neon29+set}" = set; then :
  8715. withval=$with_neon29;
  8716. case ${withval} in
  8717. n|no)
  8718. USE_NEON29=no
  8719. # -1 is a magic value used by menuselect to know that the package
  8720. # was disabled, other than 'not found'
  8721. PBX_NEON29=-1
  8722. ;;
  8723. y|ye|yes)
  8724. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8725. ;;
  8726. *)
  8727. NEON29_DIR="${withval}"
  8728. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8729. ;;
  8730. esac
  8731. fi
  8732. NETSNMP_DESCRIP="Net-SNMP"
  8733. NETSNMP_OPTION="netsnmp"
  8734. PBX_NETSNMP=0
  8735. # Check whether --with-netsnmp was given.
  8736. if test "${with_netsnmp+set}" = set; then :
  8737. withval=$with_netsnmp;
  8738. case ${withval} in
  8739. n|no)
  8740. USE_NETSNMP=no
  8741. # -1 is a magic value used by menuselect to know that the package
  8742. # was disabled, other than 'not found'
  8743. PBX_NETSNMP=-1
  8744. ;;
  8745. y|ye|yes)
  8746. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8747. ;;
  8748. *)
  8749. NETSNMP_DIR="${withval}"
  8750. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8751. ;;
  8752. esac
  8753. fi
  8754. NEWT_DESCRIP="newt"
  8755. NEWT_OPTION="newt"
  8756. PBX_NEWT=0
  8757. # Check whether --with-newt was given.
  8758. if test "${with_newt+set}" = set; then :
  8759. withval=$with_newt;
  8760. case ${withval} in
  8761. n|no)
  8762. USE_NEWT=no
  8763. # -1 is a magic value used by menuselect to know that the package
  8764. # was disabled, other than 'not found'
  8765. PBX_NEWT=-1
  8766. ;;
  8767. y|ye|yes)
  8768. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8769. ;;
  8770. *)
  8771. NEWT_DIR="${withval}"
  8772. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8773. ;;
  8774. esac
  8775. fi
  8776. OGG_DESCRIP="OGG"
  8777. OGG_OPTION="ogg"
  8778. PBX_OGG=0
  8779. # Check whether --with-ogg was given.
  8780. if test "${with_ogg+set}" = set; then :
  8781. withval=$with_ogg;
  8782. case ${withval} in
  8783. n|no)
  8784. USE_OGG=no
  8785. # -1 is a magic value used by menuselect to know that the package
  8786. # was disabled, other than 'not found'
  8787. PBX_OGG=-1
  8788. ;;
  8789. y|ye|yes)
  8790. ac_mandatory_list="${ac_mandatory_list} OGG"
  8791. ;;
  8792. *)
  8793. OGG_DIR="${withval}"
  8794. ac_mandatory_list="${ac_mandatory_list} OGG"
  8795. ;;
  8796. esac
  8797. fi
  8798. OPENR2_DESCRIP="MFR2"
  8799. OPENR2_OPTION="openr2"
  8800. PBX_OPENR2=0
  8801. # Check whether --with-openr2 was given.
  8802. if test "${with_openr2+set}" = set; then :
  8803. withval=$with_openr2;
  8804. case ${withval} in
  8805. n|no)
  8806. USE_OPENR2=no
  8807. # -1 is a magic value used by menuselect to know that the package
  8808. # was disabled, other than 'not found'
  8809. PBX_OPENR2=-1
  8810. ;;
  8811. y|ye|yes)
  8812. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8813. ;;
  8814. *)
  8815. OPENR2_DIR="${withval}"
  8816. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8817. ;;
  8818. esac
  8819. fi
  8820. OPUS_DESCRIP="Opus"
  8821. OPUS_OPTION="opus"
  8822. PBX_OPUS=0
  8823. # Check whether --with-opus was given.
  8824. if test "${with_opus+set}" = set; then :
  8825. withval=$with_opus;
  8826. case ${withval} in
  8827. n|no)
  8828. USE_OPUS=no
  8829. # -1 is a magic value used by menuselect to know that the package
  8830. # was disabled, other than 'not found'
  8831. PBX_OPUS=-1
  8832. ;;
  8833. y|ye|yes)
  8834. ac_mandatory_list="${ac_mandatory_list} OPUS"
  8835. ;;
  8836. *)
  8837. OPUS_DIR="${withval}"
  8838. ac_mandatory_list="${ac_mandatory_list} OPUS"
  8839. ;;
  8840. esac
  8841. fi
  8842. OSPTK_DESCRIP="OSP Toolkit"
  8843. OSPTK_OPTION="osptk"
  8844. PBX_OSPTK=0
  8845. # Check whether --with-osptk was given.
  8846. if test "${with_osptk+set}" = set; then :
  8847. withval=$with_osptk;
  8848. case ${withval} in
  8849. n|no)
  8850. USE_OSPTK=no
  8851. # -1 is a magic value used by menuselect to know that the package
  8852. # was disabled, other than 'not found'
  8853. PBX_OSPTK=-1
  8854. ;;
  8855. y|ye|yes)
  8856. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8857. ;;
  8858. *)
  8859. OSPTK_DIR="${withval}"
  8860. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8861. ;;
  8862. esac
  8863. fi
  8864. OSS_DESCRIP="Open Sound System"
  8865. OSS_OPTION="oss"
  8866. PBX_OSS=0
  8867. # Check whether --with-oss was given.
  8868. if test "${with_oss+set}" = set; then :
  8869. withval=$with_oss;
  8870. case ${withval} in
  8871. n|no)
  8872. USE_OSS=no
  8873. # -1 is a magic value used by menuselect to know that the package
  8874. # was disabled, other than 'not found'
  8875. PBX_OSS=-1
  8876. ;;
  8877. y|ye|yes)
  8878. ac_mandatory_list="${ac_mandatory_list} OSS"
  8879. ;;
  8880. *)
  8881. OSS_DIR="${withval}"
  8882. ac_mandatory_list="${ac_mandatory_list} OSS"
  8883. ;;
  8884. esac
  8885. fi
  8886. PGSQL_DESCRIP="PostgreSQL"
  8887. PGSQL_OPTION="postgres"
  8888. PBX_PGSQL=0
  8889. # Check whether --with-postgres was given.
  8890. if test "${with_postgres+set}" = set; then :
  8891. withval=$with_postgres;
  8892. case ${withval} in
  8893. n|no)
  8894. USE_PGSQL=no
  8895. # -1 is a magic value used by menuselect to know that the package
  8896. # was disabled, other than 'not found'
  8897. PBX_PGSQL=-1
  8898. ;;
  8899. y|ye|yes)
  8900. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8901. ;;
  8902. *)
  8903. PGSQL_DIR="${withval}"
  8904. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8905. ;;
  8906. esac
  8907. fi
  8908. PJPROJECT_DESCRIP="PJPROJECT"
  8909. PJPROJECT_OPTION="pjproject"
  8910. PBX_PJPROJECT=0
  8911. # Check whether --with-pjproject was given.
  8912. if test "${with_pjproject+set}" = set; then :
  8913. withval=$with_pjproject;
  8914. case ${withval} in
  8915. n|no)
  8916. USE_PJPROJECT=no
  8917. # -1 is a magic value used by menuselect to know that the package
  8918. # was disabled, other than 'not found'
  8919. PBX_PJPROJECT=-1
  8920. ;;
  8921. y|ye|yes)
  8922. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  8923. ;;
  8924. *)
  8925. PJPROJECT_DIR="${withval}"
  8926. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  8927. ;;
  8928. esac
  8929. fi
  8930. POPT_DESCRIP="popt"
  8931. POPT_OPTION="popt"
  8932. PBX_POPT=0
  8933. # Check whether --with-popt was given.
  8934. if test "${with_popt+set}" = set; then :
  8935. withval=$with_popt;
  8936. case ${withval} in
  8937. n|no)
  8938. USE_POPT=no
  8939. # -1 is a magic value used by menuselect to know that the package
  8940. # was disabled, other than 'not found'
  8941. PBX_POPT=-1
  8942. ;;
  8943. y|ye|yes)
  8944. ac_mandatory_list="${ac_mandatory_list} POPT"
  8945. ;;
  8946. *)
  8947. POPT_DIR="${withval}"
  8948. ac_mandatory_list="${ac_mandatory_list} POPT"
  8949. ;;
  8950. esac
  8951. fi
  8952. PJ_TRANSACTION_GRP_LOCK_DESCRIP="PJSIP Transaction Group Lock Support"
  8953. PJ_TRANSACTION_GRP_LOCK_OPTION=pjsip
  8954. PJ_TRANSACTION_GRP_LOCK_DIR=${PJPROJECT_DIR}
  8955. PBX_PJ_TRANSACTION_GRP_LOCK=0
  8956. PJSIP_REPLACE_MEDIA_STREAM_DESCRIP="PJSIP Media Stream Replacement Support"
  8957. PJSIP_REPLACE_MEDIA_STREAM_OPTION=pjsip
  8958. PJSIP_REPLACE_MEDIA_STREAM_DIR=${PJPROJECT_DIR}
  8959. PBX_PJSIP_REPLACE_MEDIA_STREAM=0
  8960. PJSIP_GET_DEST_INFO_DESCRIP="pjsip_get_dest_info support"
  8961. PJSIP_GET_DEST_INFO_OPTION=pjsip
  8962. PJSIP_GET_DEST_INFO_DIR=${PJPROJECT_DIR}
  8963. PBX_PJSIP_GET_DEST_INFO=0
  8964. PJ_SSL_CERT_LOAD_FROM_FILES2_DESCRIP="pj_ssl_cert_load_from_files2 support"
  8965. PJ_SSL_CERT_LOAD_FROM_FILES2_OPTION=pjsip
  8966. PJ_SSL_CERT_LOAD_FROM_FILES2_DIR=${PJPROJECT_DIR}
  8967. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=0
  8968. PORTAUDIO_DESCRIP="PortAudio"
  8969. PORTAUDIO_OPTION="portaudio"
  8970. PBX_PORTAUDIO=0
  8971. # Check whether --with-portaudio was given.
  8972. if test "${with_portaudio+set}" = set; then :
  8973. withval=$with_portaudio;
  8974. case ${withval} in
  8975. n|no)
  8976. USE_PORTAUDIO=no
  8977. # -1 is a magic value used by menuselect to know that the package
  8978. # was disabled, other than 'not found'
  8979. PBX_PORTAUDIO=-1
  8980. ;;
  8981. y|ye|yes)
  8982. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8983. ;;
  8984. *)
  8985. PORTAUDIO_DIR="${withval}"
  8986. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8987. ;;
  8988. esac
  8989. fi
  8990. PRI_DESCRIP="ISDN PRI"
  8991. PRI_OPTION="pri"
  8992. PBX_PRI=0
  8993. # Check whether --with-pri was given.
  8994. if test "${with_pri+set}" = set; then :
  8995. withval=$with_pri;
  8996. case ${withval} in
  8997. n|no)
  8998. USE_PRI=no
  8999. # -1 is a magic value used by menuselect to know that the package
  9000. # was disabled, other than 'not found'
  9001. PBX_PRI=-1
  9002. ;;
  9003. y|ye|yes)
  9004. ac_mandatory_list="${ac_mandatory_list} PRI"
  9005. ;;
  9006. *)
  9007. PRI_DIR="${withval}"
  9008. ac_mandatory_list="${ac_mandatory_list} PRI"
  9009. ;;
  9010. esac
  9011. fi
  9012. PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
  9013. PRI_SETUP_ACK_INBAND_OPTION=pri
  9014. PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
  9015. PBX_PRI_SETUP_ACK_INBAND=0
  9016. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  9017. PRI_L2_PERSISTENCE_OPTION=pri
  9018. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  9019. PBX_PRI_L2_PERSISTENCE=0
  9020. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  9021. PRI_DATETIME_SEND_OPTION=pri
  9022. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  9023. PBX_PRI_DATETIME_SEND=0
  9024. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  9025. PRI_MWI_V2_OPTION=pri
  9026. PRI_MWI_V2_DIR=${PRI_DIR}
  9027. PBX_PRI_MWI_V2=0
  9028. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  9029. PRI_DISPLAY_TEXT_OPTION=pri
  9030. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  9031. PBX_PRI_DISPLAY_TEXT=0
  9032. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  9033. PRI_MWI_OPTION=pri
  9034. PRI_MWI_DIR=${PRI_DIR}
  9035. PBX_PRI_MWI=0
  9036. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  9037. PRI_MCID_OPTION=pri
  9038. PRI_MCID_DIR=${PRI_DIR}
  9039. PBX_PRI_MCID=0
  9040. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  9041. PRI_CALL_WAITING_OPTION=pri
  9042. PRI_CALL_WAITING_DIR=${PRI_DIR}
  9043. PBX_PRI_CALL_WAITING=0
  9044. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  9045. PRI_AOC_EVENTS_OPTION=pri
  9046. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  9047. PBX_PRI_AOC_EVENTS=0
  9048. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  9049. PRI_TRANSFER_OPTION=pri
  9050. PRI_TRANSFER_DIR=${PRI_DIR}
  9051. PBX_PRI_TRANSFER=0
  9052. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  9053. PRI_CCSS_OPTION=pri
  9054. PRI_CCSS_DIR=${PRI_DIR}
  9055. PBX_PRI_CCSS=0
  9056. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  9057. PRI_HANGUP_FIX_OPTION=pri
  9058. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  9059. PBX_PRI_HANGUP_FIX=0
  9060. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  9061. PRI_SUBADDR_OPTION=pri
  9062. PRI_SUBADDR_DIR=${PRI_DIR}
  9063. PBX_PRI_SUBADDR=0
  9064. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  9065. PRI_CALL_HOLD_OPTION=pri
  9066. PRI_CALL_HOLD_DIR=${PRI_DIR}
  9067. PBX_PRI_CALL_HOLD=0
  9068. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  9069. PRI_CALL_REROUTING_OPTION=pri
  9070. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  9071. PBX_PRI_CALL_REROUTING=0
  9072. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  9073. PRI_SETUP_KEYPAD_OPTION=pri
  9074. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  9075. PBX_PRI_SETUP_KEYPAD=0
  9076. # ------------------------------------v
  9077. # TODO: The code can be changed to always include these features now.
  9078. # These features will always be present if pri_connected_line_update is available.
  9079. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  9080. PRI_INBANDDISCONNECT_OPTION=pri
  9081. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  9082. PBX_PRI_INBANDDISCONNECT=0
  9083. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  9084. PRI_PROG_W_CAUSE_OPTION=pri
  9085. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  9086. PBX_PRI_PROG_W_CAUSE=0
  9087. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  9088. PRI_SERVICE_MESSAGES_OPTION=pri
  9089. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  9090. PBX_PRI_SERVICE_MESSAGES=0
  9091. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  9092. PRI_REVERSE_CHARGE_OPTION=pri
  9093. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  9094. PBX_PRI_REVERSE_CHARGE=0
  9095. # ------------------------------------^
  9096. PWLIB_DESCRIP="PWlib"
  9097. PWLIB_OPTION="pwlib"
  9098. PBX_PWLIB=0
  9099. # Check whether --with-pwlib was given.
  9100. if test "${with_pwlib+set}" = set; then :
  9101. withval=$with_pwlib;
  9102. case ${withval} in
  9103. n|no)
  9104. USE_PWLIB=no
  9105. # -1 is a magic value used by menuselect to know that the package
  9106. # was disabled, other than 'not found'
  9107. PBX_PWLIB=-1
  9108. ;;
  9109. y|ye|yes)
  9110. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9111. ;;
  9112. *)
  9113. PWLIB_DIR="${withval}"
  9114. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9115. ;;
  9116. esac
  9117. fi
  9118. RADIUS_DESCRIP="Radius Client"
  9119. RADIUS_OPTION="radius"
  9120. PBX_RADIUS=0
  9121. # Check whether --with-radius was given.
  9122. if test "${with_radius+set}" = set; then :
  9123. withval=$with_radius;
  9124. case ${withval} in
  9125. n|no)
  9126. USE_RADIUS=no
  9127. # -1 is a magic value used by menuselect to know that the package
  9128. # was disabled, other than 'not found'
  9129. PBX_RADIUS=-1
  9130. ;;
  9131. y|ye|yes)
  9132. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9133. ;;
  9134. *)
  9135. RADIUS_DIR="${withval}"
  9136. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9137. ;;
  9138. esac
  9139. fi
  9140. RESAMPLE_DESCRIP="LIBRESAMPLE"
  9141. RESAMPLE_OPTION="resample"
  9142. PBX_RESAMPLE=0
  9143. # Check whether --with-resample was given.
  9144. if test "${with_resample+set}" = set; then :
  9145. withval=$with_resample;
  9146. case ${withval} in
  9147. n|no)
  9148. USE_RESAMPLE=no
  9149. # -1 is a magic value used by menuselect to know that the package
  9150. # was disabled, other than 'not found'
  9151. PBX_RESAMPLE=-1
  9152. ;;
  9153. y|ye|yes)
  9154. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9155. ;;
  9156. *)
  9157. RESAMPLE_DIR="${withval}"
  9158. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9159. ;;
  9160. esac
  9161. fi
  9162. SDL_DESCRIP="Sdl"
  9163. SDL_OPTION="sdl"
  9164. PBX_SDL=0
  9165. # Check whether --with-sdl was given.
  9166. if test "${with_sdl+set}" = set; then :
  9167. withval=$with_sdl;
  9168. case ${withval} in
  9169. n|no)
  9170. USE_SDL=no
  9171. # -1 is a magic value used by menuselect to know that the package
  9172. # was disabled, other than 'not found'
  9173. PBX_SDL=-1
  9174. ;;
  9175. y|ye|yes)
  9176. ac_mandatory_list="${ac_mandatory_list} SDL"
  9177. ;;
  9178. *)
  9179. SDL_DIR="${withval}"
  9180. ac_mandatory_list="${ac_mandatory_list} SDL"
  9181. ;;
  9182. esac
  9183. fi
  9184. SDL_IMAGE_DESCRIP="Sdl Image"
  9185. SDL_IMAGE_OPTION="SDL_image"
  9186. PBX_SDL_IMAGE=0
  9187. # Check whether --with-SDL_image was given.
  9188. if test "${with_SDL_image+set}" = set; then :
  9189. withval=$with_SDL_image;
  9190. case ${withval} in
  9191. n|no)
  9192. USE_SDL_IMAGE=no
  9193. # -1 is a magic value used by menuselect to know that the package
  9194. # was disabled, other than 'not found'
  9195. PBX_SDL_IMAGE=-1
  9196. ;;
  9197. y|ye|yes)
  9198. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9199. ;;
  9200. *)
  9201. SDL_IMAGE_DIR="${withval}"
  9202. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9203. ;;
  9204. esac
  9205. fi
  9206. # Check whether --with-sounds-cache was given.
  9207. if test "${with_sounds_cache+set}" = set; then :
  9208. withval=$with_sounds_cache;
  9209. case ${withval} in
  9210. n|no)
  9211. unset SOUNDS_CACHE_DIR
  9212. ;;
  9213. *)
  9214. if test "x${withval}" = "x"; then
  9215. :
  9216. else
  9217. SOUNDS_CACHE_DIR="${withval}"
  9218. fi
  9219. ;;
  9220. esac
  9221. else
  9222. :
  9223. fi
  9224. SPANDSP_DESCRIP="SPANDSP"
  9225. SPANDSP_OPTION="spandsp"
  9226. PBX_SPANDSP=0
  9227. # Check whether --with-spandsp was given.
  9228. if test "${with_spandsp+set}" = set; then :
  9229. withval=$with_spandsp;
  9230. case ${withval} in
  9231. n|no)
  9232. USE_SPANDSP=no
  9233. # -1 is a magic value used by menuselect to know that the package
  9234. # was disabled, other than 'not found'
  9235. PBX_SPANDSP=-1
  9236. ;;
  9237. y|ye|yes)
  9238. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9239. ;;
  9240. *)
  9241. SPANDSP_DIR="${withval}"
  9242. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9243. ;;
  9244. esac
  9245. fi
  9246. SS7_DESCRIP="ISDN SS7"
  9247. SS7_OPTION="ss7"
  9248. PBX_SS7=0
  9249. # Check whether --with-ss7 was given.
  9250. if test "${with_ss7+set}" = set; then :
  9251. withval=$with_ss7;
  9252. case ${withval} in
  9253. n|no)
  9254. USE_SS7=no
  9255. # -1 is a magic value used by menuselect to know that the package
  9256. # was disabled, other than 'not found'
  9257. PBX_SS7=-1
  9258. ;;
  9259. y|ye|yes)
  9260. ac_mandatory_list="${ac_mandatory_list} SS7"
  9261. ;;
  9262. *)
  9263. SS7_DIR="${withval}"
  9264. ac_mandatory_list="${ac_mandatory_list} SS7"
  9265. ;;
  9266. esac
  9267. fi
  9268. SPEEX_DESCRIP="Speex"
  9269. SPEEX_OPTION="speex"
  9270. PBX_SPEEX=0
  9271. # Check whether --with-speex was given.
  9272. if test "${with_speex+set}" = set; then :
  9273. withval=$with_speex;
  9274. case ${withval} in
  9275. n|no)
  9276. USE_SPEEX=no
  9277. # -1 is a magic value used by menuselect to know that the package
  9278. # was disabled, other than 'not found'
  9279. PBX_SPEEX=-1
  9280. ;;
  9281. y|ye|yes)
  9282. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9283. ;;
  9284. *)
  9285. SPEEX_DIR="${withval}"
  9286. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9287. ;;
  9288. esac
  9289. fi
  9290. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9291. SPEEX_PREPROCESS_OPTION="speex"
  9292. PBX_SPEEX_PREPROCESS=0
  9293. # Check whether --with-speex was given.
  9294. if test "${with_speex+set}" = set; then :
  9295. withval=$with_speex;
  9296. case ${withval} in
  9297. n|no)
  9298. USE_SPEEX_PREPROCESS=no
  9299. # -1 is a magic value used by menuselect to know that the package
  9300. # was disabled, other than 'not found'
  9301. PBX_SPEEX_PREPROCESS=-1
  9302. ;;
  9303. y|ye|yes)
  9304. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9305. ;;
  9306. *)
  9307. SPEEX_PREPROCESS_DIR="${withval}"
  9308. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9309. ;;
  9310. esac
  9311. fi
  9312. SPEEXDSP_DESCRIP="SpeexDSP"
  9313. SPEEXDSP_OPTION="speexdsp"
  9314. PBX_SPEEXDSP=0
  9315. # Check whether --with-speexdsp was given.
  9316. if test "${with_speexdsp+set}" = set; then :
  9317. withval=$with_speexdsp;
  9318. case ${withval} in
  9319. n|no)
  9320. USE_SPEEXDSP=no
  9321. # -1 is a magic value used by menuselect to know that the package
  9322. # was disabled, other than 'not found'
  9323. PBX_SPEEXDSP=-1
  9324. ;;
  9325. y|ye|yes)
  9326. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9327. ;;
  9328. *)
  9329. SPEEXDSP_DIR="${withval}"
  9330. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9331. ;;
  9332. esac
  9333. fi
  9334. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9335. SPEEX_PREPROCESS_OPTION=speex
  9336. PBX_SPEEX_PREPROCESS=0
  9337. SQLITE_DESCRIP="SQLite"
  9338. SQLITE_OPTION="sqlite"
  9339. PBX_SQLITE=0
  9340. # Check whether --with-sqlite was given.
  9341. if test "${with_sqlite+set}" = set; then :
  9342. withval=$with_sqlite;
  9343. case ${withval} in
  9344. n|no)
  9345. USE_SQLITE=no
  9346. # -1 is a magic value used by menuselect to know that the package
  9347. # was disabled, other than 'not found'
  9348. PBX_SQLITE=-1
  9349. ;;
  9350. y|ye|yes)
  9351. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9352. ;;
  9353. *)
  9354. SQLITE_DIR="${withval}"
  9355. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9356. ;;
  9357. esac
  9358. fi
  9359. SQLITE3_DESCRIP="SQLite"
  9360. SQLITE3_OPTION="sqlite3"
  9361. PBX_SQLITE3=0
  9362. # Check whether --with-sqlite3 was given.
  9363. if test "${with_sqlite3+set}" = set; then :
  9364. withval=$with_sqlite3;
  9365. case ${withval} in
  9366. n|no)
  9367. USE_SQLITE3=no
  9368. # -1 is a magic value used by menuselect to know that the package
  9369. # was disabled, other than 'not found'
  9370. PBX_SQLITE3=-1
  9371. ;;
  9372. y|ye|yes)
  9373. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9374. ;;
  9375. *)
  9376. SQLITE3_DIR="${withval}"
  9377. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9378. ;;
  9379. esac
  9380. fi
  9381. SRTP_DESCRIP="Secure RTP"
  9382. SRTP_OPTION="srtp"
  9383. PBX_SRTP=0
  9384. # Check whether --with-srtp was given.
  9385. if test "${with_srtp+set}" = set; then :
  9386. withval=$with_srtp;
  9387. case ${withval} in
  9388. n|no)
  9389. USE_SRTP=no
  9390. # -1 is a magic value used by menuselect to know that the package
  9391. # was disabled, other than 'not found'
  9392. PBX_SRTP=-1
  9393. ;;
  9394. y|ye|yes)
  9395. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9396. ;;
  9397. *)
  9398. SRTP_DIR="${withval}"
  9399. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9400. ;;
  9401. esac
  9402. fi
  9403. SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
  9404. SRTP_SHUTDOWN_OPTION=srtp
  9405. SRTP_SHUTDOWN_DIR=${SRTP_DIR}
  9406. PBX_SRTP_SHUTDOWN=0
  9407. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9408. OPENSSL_OPTION="ssl"
  9409. PBX_OPENSSL=0
  9410. # Check whether --with-ssl was given.
  9411. if test "${with_ssl+set}" = set; then :
  9412. withval=$with_ssl;
  9413. case ${withval} in
  9414. n|no)
  9415. USE_OPENSSL=no
  9416. # -1 is a magic value used by menuselect to know that the package
  9417. # was disabled, other than 'not found'
  9418. PBX_OPENSSL=-1
  9419. ;;
  9420. y|ye|yes)
  9421. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9422. ;;
  9423. *)
  9424. OPENSSL_DIR="${withval}"
  9425. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9426. ;;
  9427. esac
  9428. fi
  9429. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9430. SUPPSERV_OPTION="suppserv"
  9431. PBX_SUPPSERV=0
  9432. # Check whether --with-suppserv was given.
  9433. if test "${with_suppserv+set}" = set; then :
  9434. withval=$with_suppserv;
  9435. case ${withval} in
  9436. n|no)
  9437. USE_SUPPSERV=no
  9438. # -1 is a magic value used by menuselect to know that the package
  9439. # was disabled, other than 'not found'
  9440. PBX_SUPPSERV=-1
  9441. ;;
  9442. y|ye|yes)
  9443. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9444. ;;
  9445. *)
  9446. SUPPSERV_DIR="${withval}"
  9447. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9448. ;;
  9449. esac
  9450. fi
  9451. FREETDS_DESCRIP="FreeTDS"
  9452. FREETDS_OPTION="tds"
  9453. PBX_FREETDS=0
  9454. # Check whether --with-tds was given.
  9455. if test "${with_tds+set}" = set; then :
  9456. withval=$with_tds;
  9457. case ${withval} in
  9458. n|no)
  9459. USE_FREETDS=no
  9460. # -1 is a magic value used by menuselect to know that the package
  9461. # was disabled, other than 'not found'
  9462. PBX_FREETDS=-1
  9463. ;;
  9464. y|ye|yes)
  9465. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9466. ;;
  9467. *)
  9468. FREETDS_DIR="${withval}"
  9469. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9470. ;;
  9471. esac
  9472. fi
  9473. TERMCAP_DESCRIP="Termcap"
  9474. TERMCAP_OPTION="termcap"
  9475. PBX_TERMCAP=0
  9476. # Check whether --with-termcap was given.
  9477. if test "${with_termcap+set}" = set; then :
  9478. withval=$with_termcap;
  9479. case ${withval} in
  9480. n|no)
  9481. USE_TERMCAP=no
  9482. # -1 is a magic value used by menuselect to know that the package
  9483. # was disabled, other than 'not found'
  9484. PBX_TERMCAP=-1
  9485. ;;
  9486. y|ye|yes)
  9487. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9488. ;;
  9489. *)
  9490. TERMCAP_DIR="${withval}"
  9491. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9492. ;;
  9493. esac
  9494. fi
  9495. TIMERFD_DESCRIP="timerfd"
  9496. TIMERFD_OPTION="timerfd"
  9497. PBX_TIMERFD=0
  9498. # Check whether --with-timerfd was given.
  9499. if test "${with_timerfd+set}" = set; then :
  9500. withval=$with_timerfd;
  9501. case ${withval} in
  9502. n|no)
  9503. USE_TIMERFD=no
  9504. # -1 is a magic value used by menuselect to know that the package
  9505. # was disabled, other than 'not found'
  9506. PBX_TIMERFD=-1
  9507. ;;
  9508. y|ye|yes)
  9509. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9510. ;;
  9511. *)
  9512. TIMERFD_DIR="${withval}"
  9513. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9514. ;;
  9515. esac
  9516. fi
  9517. TINFO_DESCRIP="Term Info"
  9518. TINFO_OPTION="tinfo"
  9519. PBX_TINFO=0
  9520. # Check whether --with-tinfo was given.
  9521. if test "${with_tinfo+set}" = set; then :
  9522. withval=$with_tinfo;
  9523. case ${withval} in
  9524. n|no)
  9525. USE_TINFO=no
  9526. # -1 is a magic value used by menuselect to know that the package
  9527. # was disabled, other than 'not found'
  9528. PBX_TINFO=-1
  9529. ;;
  9530. y|ye|yes)
  9531. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9532. ;;
  9533. *)
  9534. TINFO_DIR="${withval}"
  9535. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9536. ;;
  9537. esac
  9538. fi
  9539. TONEZONE_DESCRIP="tonezone"
  9540. TONEZONE_OPTION="tonezone"
  9541. PBX_TONEZONE=0
  9542. # Check whether --with-tonezone was given.
  9543. if test "${with_tonezone+set}" = set; then :
  9544. withval=$with_tonezone;
  9545. case ${withval} in
  9546. n|no)
  9547. USE_TONEZONE=no
  9548. # -1 is a magic value used by menuselect to know that the package
  9549. # was disabled, other than 'not found'
  9550. PBX_TONEZONE=-1
  9551. ;;
  9552. y|ye|yes)
  9553. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9554. ;;
  9555. *)
  9556. TONEZONE_DIR="${withval}"
  9557. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9558. ;;
  9559. esac
  9560. fi
  9561. UNIXODBC_DESCRIP="unixODBC"
  9562. UNIXODBC_OPTION="unixodbc"
  9563. PBX_UNIXODBC=0
  9564. # Check whether --with-unixodbc was given.
  9565. if test "${with_unixodbc+set}" = set; then :
  9566. withval=$with_unixodbc;
  9567. case ${withval} in
  9568. n|no)
  9569. USE_UNIXODBC=no
  9570. # -1 is a magic value used by menuselect to know that the package
  9571. # was disabled, other than 'not found'
  9572. PBX_UNIXODBC=-1
  9573. ;;
  9574. y|ye|yes)
  9575. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9576. ;;
  9577. *)
  9578. UNIXODBC_DIR="${withval}"
  9579. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9580. ;;
  9581. esac
  9582. fi
  9583. VORBIS_DESCRIP="Vorbis"
  9584. VORBIS_OPTION="vorbis"
  9585. PBX_VORBIS=0
  9586. # Check whether --with-vorbis was given.
  9587. if test "${with_vorbis+set}" = set; then :
  9588. withval=$with_vorbis;
  9589. case ${withval} in
  9590. n|no)
  9591. USE_VORBIS=no
  9592. # -1 is a magic value used by menuselect to know that the package
  9593. # was disabled, other than 'not found'
  9594. PBX_VORBIS=-1
  9595. ;;
  9596. y|ye|yes)
  9597. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9598. ;;
  9599. *)
  9600. VORBIS_DIR="${withval}"
  9601. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9602. ;;
  9603. esac
  9604. fi
  9605. VPB_DESCRIP="Voicetronix API"
  9606. VPB_OPTION="vpb"
  9607. PBX_VPB=0
  9608. # Check whether --with-vpb was given.
  9609. if test "${with_vpb+set}" = set; then :
  9610. withval=$with_vpb;
  9611. case ${withval} in
  9612. n|no)
  9613. USE_VPB=no
  9614. # -1 is a magic value used by menuselect to know that the package
  9615. # was disabled, other than 'not found'
  9616. PBX_VPB=-1
  9617. ;;
  9618. y|ye|yes)
  9619. ac_mandatory_list="${ac_mandatory_list} VPB"
  9620. ;;
  9621. *)
  9622. VPB_DIR="${withval}"
  9623. ac_mandatory_list="${ac_mandatory_list} VPB"
  9624. ;;
  9625. esac
  9626. fi
  9627. X11_DESCRIP="X11"
  9628. X11_OPTION="x11"
  9629. PBX_X11=0
  9630. # Check whether --with-x11 was given.
  9631. if test "${with_x11+set}" = set; then :
  9632. withval=$with_x11;
  9633. case ${withval} in
  9634. n|no)
  9635. USE_X11=no
  9636. # -1 is a magic value used by menuselect to know that the package
  9637. # was disabled, other than 'not found'
  9638. PBX_X11=-1
  9639. ;;
  9640. y|ye|yes)
  9641. ac_mandatory_list="${ac_mandatory_list} X11"
  9642. ;;
  9643. *)
  9644. X11_DIR="${withval}"
  9645. ac_mandatory_list="${ac_mandatory_list} X11"
  9646. ;;
  9647. esac
  9648. fi
  9649. ZLIB_DESCRIP="zlib compression"
  9650. ZLIB_OPTION="z"
  9651. PBX_ZLIB=0
  9652. # Check whether --with-z was given.
  9653. if test "${with_z+set}" = set; then :
  9654. withval=$with_z;
  9655. case ${withval} in
  9656. n|no)
  9657. USE_ZLIB=no
  9658. # -1 is a magic value used by menuselect to know that the package
  9659. # was disabled, other than 'not found'
  9660. PBX_ZLIB=-1
  9661. ;;
  9662. y|ye|yes)
  9663. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9664. ;;
  9665. *)
  9666. ZLIB_DIR="${withval}"
  9667. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9668. ;;
  9669. esac
  9670. fi
  9671. # check for basic system features and functionality before
  9672. # checking for package libraries
  9673. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  9674. if test "x$ac_cv_type_size_t" = xyes; then :
  9675. else
  9676. cat >>confdefs.h <<_ACEOF
  9677. #define size_t unsigned int
  9678. _ACEOF
  9679. fi
  9680. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9681. # for constant arguments. Useless!
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9683. $as_echo_n "checking for working alloca.h... " >&6; }
  9684. if ${ac_cv_working_alloca_h+:} false; then :
  9685. $as_echo_n "(cached) " >&6
  9686. else
  9687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9688. /* end confdefs.h. */
  9689. #include <alloca.h>
  9690. int
  9691. main ()
  9692. {
  9693. char *p = (char *) alloca (2 * sizeof (int));
  9694. if (p) return 0;
  9695. ;
  9696. return 0;
  9697. }
  9698. _ACEOF
  9699. if ac_fn_c_try_link "$LINENO"; then :
  9700. ac_cv_working_alloca_h=yes
  9701. else
  9702. ac_cv_working_alloca_h=no
  9703. fi
  9704. rm -f core conftest.err conftest.$ac_objext \
  9705. conftest$ac_exeext conftest.$ac_ext
  9706. fi
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9708. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9709. if test $ac_cv_working_alloca_h = yes; then
  9710. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  9711. fi
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9713. $as_echo_n "checking for alloca... " >&6; }
  9714. if ${ac_cv_func_alloca_works+:} false; then :
  9715. $as_echo_n "(cached) " >&6
  9716. else
  9717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9718. /* end confdefs.h. */
  9719. #ifdef __GNUC__
  9720. # define alloca __builtin_alloca
  9721. #else
  9722. # ifdef _MSC_VER
  9723. # include <malloc.h>
  9724. # define alloca _alloca
  9725. # else
  9726. # ifdef HAVE_ALLOCA_H
  9727. # include <alloca.h>
  9728. # else
  9729. # ifdef _AIX
  9730. #pragma alloca
  9731. # else
  9732. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9733. void *alloca (size_t);
  9734. # endif
  9735. # endif
  9736. # endif
  9737. # endif
  9738. #endif
  9739. int
  9740. main ()
  9741. {
  9742. char *p = (char *) alloca (1);
  9743. if (p) return 0;
  9744. ;
  9745. return 0;
  9746. }
  9747. _ACEOF
  9748. if ac_fn_c_try_link "$LINENO"; then :
  9749. ac_cv_func_alloca_works=yes
  9750. else
  9751. ac_cv_func_alloca_works=no
  9752. fi
  9753. rm -f core conftest.err conftest.$ac_objext \
  9754. conftest$ac_exeext conftest.$ac_ext
  9755. fi
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9757. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9758. if test $ac_cv_func_alloca_works = yes; then
  9759. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  9760. else
  9761. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9762. # that cause trouble. Some versions do not even contain alloca or
  9763. # contain a buggy version. If you still want to use their alloca,
  9764. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9765. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9766. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9768. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9769. if ${ac_cv_os_cray+:} false; then :
  9770. $as_echo_n "(cached) " >&6
  9771. else
  9772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9773. /* end confdefs.h. */
  9774. #if defined CRAY && ! defined CRAY2
  9775. webecray
  9776. #else
  9777. wenotbecray
  9778. #endif
  9779. _ACEOF
  9780. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9781. $EGREP "webecray" >/dev/null 2>&1; then :
  9782. ac_cv_os_cray=yes
  9783. else
  9784. ac_cv_os_cray=no
  9785. fi
  9786. rm -f conftest*
  9787. fi
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9789. $as_echo "$ac_cv_os_cray" >&6; }
  9790. if test $ac_cv_os_cray = yes; then
  9791. for ac_func in _getb67 GETB67 getb67; do
  9792. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9793. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9794. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9795. cat >>confdefs.h <<_ACEOF
  9796. #define CRAY_STACKSEG_END $ac_func
  9797. _ACEOF
  9798. break
  9799. fi
  9800. done
  9801. fi
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9803. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9804. if ${ac_cv_c_stack_direction+:} false; then :
  9805. $as_echo_n "(cached) " >&6
  9806. else
  9807. if test "$cross_compiling" = yes; then :
  9808. ac_cv_c_stack_direction=0
  9809. else
  9810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9811. /* end confdefs.h. */
  9812. $ac_includes_default
  9813. int
  9814. find_stack_direction (int *addr, int depth)
  9815. {
  9816. int dir, dummy = 0;
  9817. if (! addr)
  9818. addr = &dummy;
  9819. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  9820. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  9821. return dir + dummy;
  9822. }
  9823. int
  9824. main (int argc, char **argv)
  9825. {
  9826. return find_stack_direction (0, argc + !argv + 20) < 0;
  9827. }
  9828. _ACEOF
  9829. if ac_fn_c_try_run "$LINENO"; then :
  9830. ac_cv_c_stack_direction=1
  9831. else
  9832. ac_cv_c_stack_direction=-1
  9833. fi
  9834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9835. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9836. fi
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9839. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9840. cat >>confdefs.h <<_ACEOF
  9841. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9842. _ACEOF
  9843. fi
  9844. ac_header_dirent=no
  9845. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9846. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  9848. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9849. if eval \${$as_ac_Header+:} false; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9853. /* end confdefs.h. */
  9854. #include <sys/types.h>
  9855. #include <$ac_hdr>
  9856. int
  9857. main ()
  9858. {
  9859. if ((DIR *) 0)
  9860. return 0;
  9861. ;
  9862. return 0;
  9863. }
  9864. _ACEOF
  9865. if ac_fn_c_try_compile "$LINENO"; then :
  9866. eval "$as_ac_Header=yes"
  9867. else
  9868. eval "$as_ac_Header=no"
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9871. fi
  9872. eval ac_res=\$$as_ac_Header
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9874. $as_echo "$ac_res" >&6; }
  9875. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9876. cat >>confdefs.h <<_ACEOF
  9877. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9878. _ACEOF
  9879. ac_header_dirent=$ac_hdr; break
  9880. fi
  9881. done
  9882. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9883. if test $ac_header_dirent = dirent.h; then
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9885. $as_echo_n "checking for library containing opendir... " >&6; }
  9886. if ${ac_cv_search_opendir+:} false; then :
  9887. $as_echo_n "(cached) " >&6
  9888. else
  9889. ac_func_search_save_LIBS=$LIBS
  9890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9891. /* end confdefs.h. */
  9892. /* Override any GCC internal prototype to avoid an error.
  9893. Use char because int might match the return type of a GCC
  9894. builtin and then its argument prototype would still apply. */
  9895. #ifdef __cplusplus
  9896. extern "C"
  9897. #endif
  9898. char opendir ();
  9899. int
  9900. main ()
  9901. {
  9902. return opendir ();
  9903. ;
  9904. return 0;
  9905. }
  9906. _ACEOF
  9907. for ac_lib in '' dir; do
  9908. if test -z "$ac_lib"; then
  9909. ac_res="none required"
  9910. else
  9911. ac_res=-l$ac_lib
  9912. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9913. fi
  9914. if ac_fn_c_try_link "$LINENO"; then :
  9915. ac_cv_search_opendir=$ac_res
  9916. fi
  9917. rm -f core conftest.err conftest.$ac_objext \
  9918. conftest$ac_exeext
  9919. if ${ac_cv_search_opendir+:} false; then :
  9920. break
  9921. fi
  9922. done
  9923. if ${ac_cv_search_opendir+:} false; then :
  9924. else
  9925. ac_cv_search_opendir=no
  9926. fi
  9927. rm conftest.$ac_ext
  9928. LIBS=$ac_func_search_save_LIBS
  9929. fi
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9931. $as_echo "$ac_cv_search_opendir" >&6; }
  9932. ac_res=$ac_cv_search_opendir
  9933. if test "$ac_res" != no; then :
  9934. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9935. fi
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9938. $as_echo_n "checking for library containing opendir... " >&6; }
  9939. if ${ac_cv_search_opendir+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. ac_func_search_save_LIBS=$LIBS
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. /* Override any GCC internal prototype to avoid an error.
  9946. Use char because int might match the return type of a GCC
  9947. builtin and then its argument prototype would still apply. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. #endif
  9951. char opendir ();
  9952. int
  9953. main ()
  9954. {
  9955. return opendir ();
  9956. ;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. for ac_lib in '' x; do
  9961. if test -z "$ac_lib"; then
  9962. ac_res="none required"
  9963. else
  9964. ac_res=-l$ac_lib
  9965. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9966. fi
  9967. if ac_fn_c_try_link "$LINENO"; then :
  9968. ac_cv_search_opendir=$ac_res
  9969. fi
  9970. rm -f core conftest.err conftest.$ac_objext \
  9971. conftest$ac_exeext
  9972. if ${ac_cv_search_opendir+:} false; then :
  9973. break
  9974. fi
  9975. done
  9976. if ${ac_cv_search_opendir+:} false; then :
  9977. else
  9978. ac_cv_search_opendir=no
  9979. fi
  9980. rm conftest.$ac_ext
  9981. LIBS=$ac_func_search_save_LIBS
  9982. fi
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9984. $as_echo "$ac_cv_search_opendir" >&6; }
  9985. ac_res=$ac_cv_search_opendir
  9986. if test "$ac_res" != no; then :
  9987. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9988. fi
  9989. fi
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9991. $as_echo_n "checking for ANSI C header files... " >&6; }
  9992. if ${ac_cv_header_stdc+:} false; then :
  9993. $as_echo_n "(cached) " >&6
  9994. else
  9995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9996. /* end confdefs.h. */
  9997. #include <stdlib.h>
  9998. #include <stdarg.h>
  9999. #include <string.h>
  10000. #include <float.h>
  10001. int
  10002. main ()
  10003. {
  10004. ;
  10005. return 0;
  10006. }
  10007. _ACEOF
  10008. if ac_fn_c_try_compile "$LINENO"; then :
  10009. ac_cv_header_stdc=yes
  10010. else
  10011. ac_cv_header_stdc=no
  10012. fi
  10013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10014. if test $ac_cv_header_stdc = yes; then
  10015. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10017. /* end confdefs.h. */
  10018. #include <string.h>
  10019. _ACEOF
  10020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10021. $EGREP "memchr" >/dev/null 2>&1; then :
  10022. else
  10023. ac_cv_header_stdc=no
  10024. fi
  10025. rm -f conftest*
  10026. fi
  10027. if test $ac_cv_header_stdc = yes; then
  10028. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10030. /* end confdefs.h. */
  10031. #include <stdlib.h>
  10032. _ACEOF
  10033. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10034. $EGREP "free" >/dev/null 2>&1; then :
  10035. else
  10036. ac_cv_header_stdc=no
  10037. fi
  10038. rm -f conftest*
  10039. fi
  10040. if test $ac_cv_header_stdc = yes; then
  10041. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10042. if test "$cross_compiling" = yes; then :
  10043. :
  10044. else
  10045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10046. /* end confdefs.h. */
  10047. #include <ctype.h>
  10048. #include <stdlib.h>
  10049. #if ((' ' & 0x0FF) == 0x020)
  10050. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10051. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10052. #else
  10053. # define ISLOWER(c) \
  10054. (('a' <= (c) && (c) <= 'i') \
  10055. || ('j' <= (c) && (c) <= 'r') \
  10056. || ('s' <= (c) && (c) <= 'z'))
  10057. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10058. #endif
  10059. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10060. int
  10061. main ()
  10062. {
  10063. int i;
  10064. for (i = 0; i < 256; i++)
  10065. if (XOR (islower (i), ISLOWER (i))
  10066. || toupper (i) != TOUPPER (i))
  10067. return 2;
  10068. return 0;
  10069. }
  10070. _ACEOF
  10071. if ac_fn_c_try_run "$LINENO"; then :
  10072. else
  10073. ac_cv_header_stdc=no
  10074. fi
  10075. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10076. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10077. fi
  10078. fi
  10079. fi
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10081. $as_echo "$ac_cv_header_stdc" >&6; }
  10082. if test $ac_cv_header_stdc = yes; then
  10083. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10086. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10087. if ${ac_cv_header_sys_wait_h+:} false; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10091. /* end confdefs.h. */
  10092. #include <sys/types.h>
  10093. #include <sys/wait.h>
  10094. #ifndef WEXITSTATUS
  10095. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10096. #endif
  10097. #ifndef WIFEXITED
  10098. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10099. #endif
  10100. int
  10101. main ()
  10102. {
  10103. int s;
  10104. wait (&s);
  10105. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10106. ;
  10107. return 0;
  10108. }
  10109. _ACEOF
  10110. if ac_fn_c_try_compile "$LINENO"; then :
  10111. ac_cv_header_sys_wait_h=yes
  10112. else
  10113. ac_cv_header_sys_wait_h=no
  10114. fi
  10115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10118. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10119. if test $ac_cv_header_sys_wait_h = yes; then
  10120. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10121. fi
  10122. 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
  10123. do :
  10124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10125. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10126. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10127. cat >>confdefs.h <<_ACEOF
  10128. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10129. _ACEOF
  10130. fi
  10131. done
  10132. # Any one of these packages support a mandatory requirement, so we want to check on them as early as possible.
  10133. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  10134. pbxlibdir=""
  10135. # if --with-TERMCAP=DIR has been specified, use it.
  10136. if test "x${TERMCAP_DIR}" != "x"; then
  10137. if test -d ${TERMCAP_DIR}/lib; then
  10138. pbxlibdir="-L${TERMCAP_DIR}/lib"
  10139. else
  10140. pbxlibdir="-L${TERMCAP_DIR}"
  10141. fi
  10142. fi
  10143. pbxfuncname="tgetent"
  10144. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10145. AST_TERMCAP_FOUND=yes
  10146. else
  10147. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10148. CFLAGS="${CFLAGS} "
  10149. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
  10151. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  10152. if eval \${$as_ac_Lib+:} false; then :
  10153. $as_echo_n "(cached) " >&6
  10154. else
  10155. ac_check_lib_save_LIBS=$LIBS
  10156. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  10157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10158. /* end confdefs.h. */
  10159. /* Override any GCC internal prototype to avoid an error.
  10160. Use char because int might match the return type of a GCC
  10161. builtin and then its argument prototype would still apply. */
  10162. #ifdef __cplusplus
  10163. extern "C"
  10164. #endif
  10165. char ${pbxfuncname} ();
  10166. int
  10167. main ()
  10168. {
  10169. return ${pbxfuncname} ();
  10170. ;
  10171. return 0;
  10172. }
  10173. _ACEOF
  10174. if ac_fn_c_try_link "$LINENO"; then :
  10175. eval "$as_ac_Lib=yes"
  10176. else
  10177. eval "$as_ac_Lib=no"
  10178. fi
  10179. rm -f core conftest.err conftest.$ac_objext \
  10180. conftest$ac_exeext conftest.$ac_ext
  10181. LIBS=$ac_check_lib_save_LIBS
  10182. fi
  10183. eval ac_res=\$$as_ac_Lib
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10185. $as_echo "$ac_res" >&6; }
  10186. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10187. AST_TERMCAP_FOUND=yes
  10188. else
  10189. AST_TERMCAP_FOUND=no
  10190. fi
  10191. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10192. fi
  10193. # now check for the header.
  10194. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  10195. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  10196. # if --with-TERMCAP=DIR has been specified, use it.
  10197. if test "x${TERMCAP_DIR}" != "x"; then
  10198. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  10199. fi
  10200. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  10201. if test "x" = "x" ; then # no header, assume found
  10202. TERMCAP_HEADER_FOUND="1"
  10203. else # check for the header
  10204. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10205. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  10206. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10207. if test "x$ac_cv_header_" = xyes; then :
  10208. TERMCAP_HEADER_FOUND=1
  10209. else
  10210. TERMCAP_HEADER_FOUND=0
  10211. fi
  10212. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10213. fi
  10214. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  10215. TERMCAP_LIB=""
  10216. TERMCAP_INCLUDE=""
  10217. else
  10218. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10219. TERMCAP_LIB=""
  10220. fi
  10221. PBX_TERMCAP=1
  10222. cat >>confdefs.h <<_ACEOF
  10223. #define HAVE_TERMCAP 1
  10224. _ACEOF
  10225. fi
  10226. fi
  10227. fi
  10228. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  10229. pbxlibdir=""
  10230. # if --with-TINFO=DIR has been specified, use it.
  10231. if test "x${TINFO_DIR}" != "x"; then
  10232. if test -d ${TINFO_DIR}/lib; then
  10233. pbxlibdir="-L${TINFO_DIR}/lib"
  10234. else
  10235. pbxlibdir="-L${TINFO_DIR}"
  10236. fi
  10237. fi
  10238. pbxfuncname="tgetent"
  10239. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10240. AST_TINFO_FOUND=yes
  10241. else
  10242. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10243. CFLAGS="${CFLAGS} "
  10244. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
  10246. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  10247. if eval \${$as_ac_Lib+:} false; then :
  10248. $as_echo_n "(cached) " >&6
  10249. else
  10250. ac_check_lib_save_LIBS=$LIBS
  10251. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  10252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10253. /* end confdefs.h. */
  10254. /* Override any GCC internal prototype to avoid an error.
  10255. Use char because int might match the return type of a GCC
  10256. builtin and then its argument prototype would still apply. */
  10257. #ifdef __cplusplus
  10258. extern "C"
  10259. #endif
  10260. char ${pbxfuncname} ();
  10261. int
  10262. main ()
  10263. {
  10264. return ${pbxfuncname} ();
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. if ac_fn_c_try_link "$LINENO"; then :
  10270. eval "$as_ac_Lib=yes"
  10271. else
  10272. eval "$as_ac_Lib=no"
  10273. fi
  10274. rm -f core conftest.err conftest.$ac_objext \
  10275. conftest$ac_exeext conftest.$ac_ext
  10276. LIBS=$ac_check_lib_save_LIBS
  10277. fi
  10278. eval ac_res=\$$as_ac_Lib
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10280. $as_echo "$ac_res" >&6; }
  10281. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10282. AST_TINFO_FOUND=yes
  10283. else
  10284. AST_TINFO_FOUND=no
  10285. fi
  10286. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10287. fi
  10288. # now check for the header.
  10289. if test "${AST_TINFO_FOUND}" = "yes"; then
  10290. TINFO_LIB="${pbxlibdir} -ltinfo "
  10291. # if --with-TINFO=DIR has been specified, use it.
  10292. if test "x${TINFO_DIR}" != "x"; then
  10293. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  10294. fi
  10295. TINFO_INCLUDE="${TINFO_INCLUDE} "
  10296. if test "x" = "x" ; then # no header, assume found
  10297. TINFO_HEADER_FOUND="1"
  10298. else # check for the header
  10299. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10300. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  10301. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10302. if test "x$ac_cv_header_" = xyes; then :
  10303. TINFO_HEADER_FOUND=1
  10304. else
  10305. TINFO_HEADER_FOUND=0
  10306. fi
  10307. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10308. fi
  10309. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  10310. TINFO_LIB=""
  10311. TINFO_INCLUDE=""
  10312. else
  10313. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10314. TINFO_LIB=""
  10315. fi
  10316. PBX_TINFO=1
  10317. cat >>confdefs.h <<_ACEOF
  10318. #define HAVE_TINFO 1
  10319. _ACEOF
  10320. fi
  10321. fi
  10322. fi
  10323. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  10324. pbxlibdir=""
  10325. # if --with-CURSES=DIR has been specified, use it.
  10326. if test "x${CURSES_DIR}" != "x"; then
  10327. if test -d ${CURSES_DIR}/lib; then
  10328. pbxlibdir="-L${CURSES_DIR}/lib"
  10329. else
  10330. pbxlibdir="-L${CURSES_DIR}"
  10331. fi
  10332. fi
  10333. pbxfuncname="initscr"
  10334. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10335. AST_CURSES_FOUND=yes
  10336. else
  10337. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10338. CFLAGS="${CFLAGS} "
  10339. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  10341. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  10342. if eval \${$as_ac_Lib+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. ac_check_lib_save_LIBS=$LIBS
  10346. LIBS="-lcurses ${pbxlibdir} $LIBS"
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char ${pbxfuncname} ();
  10356. int
  10357. main ()
  10358. {
  10359. return ${pbxfuncname} ();
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"; then :
  10365. eval "$as_ac_Lib=yes"
  10366. else
  10367. eval "$as_ac_Lib=no"
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext \
  10370. conftest$ac_exeext conftest.$ac_ext
  10371. LIBS=$ac_check_lib_save_LIBS
  10372. fi
  10373. eval ac_res=\$$as_ac_Lib
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10375. $as_echo "$ac_res" >&6; }
  10376. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10377. AST_CURSES_FOUND=yes
  10378. else
  10379. AST_CURSES_FOUND=no
  10380. fi
  10381. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10382. fi
  10383. # now check for the header.
  10384. if test "${AST_CURSES_FOUND}" = "yes"; then
  10385. CURSES_LIB="${pbxlibdir} -lcurses "
  10386. # if --with-CURSES=DIR has been specified, use it.
  10387. if test "x${CURSES_DIR}" != "x"; then
  10388. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  10389. fi
  10390. CURSES_INCLUDE="${CURSES_INCLUDE} "
  10391. if test "xcurses.h" = "x" ; then # no header, assume found
  10392. CURSES_HEADER_FOUND="1"
  10393. else # check for the header
  10394. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10395. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  10396. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10397. if test "x$ac_cv_header_curses_h" = xyes; then :
  10398. CURSES_HEADER_FOUND=1
  10399. else
  10400. CURSES_HEADER_FOUND=0
  10401. fi
  10402. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10403. fi
  10404. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  10405. CURSES_LIB=""
  10406. CURSES_INCLUDE=""
  10407. else
  10408. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10409. CURSES_LIB=""
  10410. fi
  10411. PBX_CURSES=1
  10412. cat >>confdefs.h <<_ACEOF
  10413. #define HAVE_CURSES 1
  10414. _ACEOF
  10415. fi
  10416. fi
  10417. fi
  10418. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  10419. pbxlibdir=""
  10420. # if --with-NCURSES=DIR has been specified, use it.
  10421. if test "x${NCURSES_DIR}" != "x"; then
  10422. if test -d ${NCURSES_DIR}/lib; then
  10423. pbxlibdir="-L${NCURSES_DIR}/lib"
  10424. else
  10425. pbxlibdir="-L${NCURSES_DIR}"
  10426. fi
  10427. fi
  10428. pbxfuncname="initscr"
  10429. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10430. AST_NCURSES_FOUND=yes
  10431. else
  10432. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10433. CFLAGS="${CFLAGS} "
  10434. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  10436. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  10437. if eval \${$as_ac_Lib+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. ac_check_lib_save_LIBS=$LIBS
  10441. LIBS="-lncurses ${pbxlibdir} $LIBS"
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. /* Override any GCC internal prototype to avoid an error.
  10445. Use char because int might match the return type of a GCC
  10446. builtin and then its argument prototype would still apply. */
  10447. #ifdef __cplusplus
  10448. extern "C"
  10449. #endif
  10450. char ${pbxfuncname} ();
  10451. int
  10452. main ()
  10453. {
  10454. return ${pbxfuncname} ();
  10455. ;
  10456. return 0;
  10457. }
  10458. _ACEOF
  10459. if ac_fn_c_try_link "$LINENO"; then :
  10460. eval "$as_ac_Lib=yes"
  10461. else
  10462. eval "$as_ac_Lib=no"
  10463. fi
  10464. rm -f core conftest.err conftest.$ac_objext \
  10465. conftest$ac_exeext conftest.$ac_ext
  10466. LIBS=$ac_check_lib_save_LIBS
  10467. fi
  10468. eval ac_res=\$$as_ac_Lib
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10470. $as_echo "$ac_res" >&6; }
  10471. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10472. AST_NCURSES_FOUND=yes
  10473. else
  10474. AST_NCURSES_FOUND=no
  10475. fi
  10476. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10477. fi
  10478. # now check for the header.
  10479. if test "${AST_NCURSES_FOUND}" = "yes"; then
  10480. NCURSES_LIB="${pbxlibdir} -lncurses "
  10481. # if --with-NCURSES=DIR has been specified, use it.
  10482. if test "x${NCURSES_DIR}" != "x"; then
  10483. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  10484. fi
  10485. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  10486. if test "xcurses.h" = "x" ; then # no header, assume found
  10487. NCURSES_HEADER_FOUND="1"
  10488. else # check for the header
  10489. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10490. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  10491. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10492. if test "x$ac_cv_header_curses_h" = xyes; then :
  10493. NCURSES_HEADER_FOUND=1
  10494. else
  10495. NCURSES_HEADER_FOUND=0
  10496. fi
  10497. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10498. fi
  10499. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  10500. NCURSES_LIB=""
  10501. NCURSES_INCLUDE=""
  10502. else
  10503. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10504. NCURSES_LIB=""
  10505. fi
  10506. PBX_NCURSES=1
  10507. cat >>confdefs.h <<_ACEOF
  10508. #define HAVE_NCURSES 1
  10509. _ACEOF
  10510. fi
  10511. fi
  10512. fi
  10513. EDITLINE_LIB=""
  10514. if test "x$TERMCAP_LIB" != "x" ; then
  10515. EDITLINE_LIB="$TERMCAP_LIB"
  10516. elif test "x$TINFO_LIB" != "x" ; then
  10517. EDITLINE_LIB="$TINFO_LIB"
  10518. elif test "x$CURSES_LIB" != "x" ; then
  10519. EDITLINE_LIB="$CURSES_LIB"
  10520. elif test "x$NCURSES_LIB" != "x" ; then
  10521. EDITLINE_LIB="$NCURSES_LIB"
  10522. else
  10523. as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  10524. fi
  10525. # Find required UUID support.
  10526. # * -luuid on Linux
  10527. # * -le2fs-uuid on OpenBSD
  10528. # * in libsystem on OS X
  10529. if test "x${PBX_LIBUUID}" != "x1" -a "${USE_LIBUUID}" != "no"; then
  10530. pbxlibdir=""
  10531. # if --with-LIBUUID=DIR has been specified, use it.
  10532. if test "x${LIBUUID_DIR}" != "x"; then
  10533. if test -d ${LIBUUID_DIR}/lib; then
  10534. pbxlibdir="-L${LIBUUID_DIR}/lib"
  10535. else
  10536. pbxlibdir="-L${LIBUUID_DIR}"
  10537. fi
  10538. fi
  10539. pbxfuncname="uuid_generate_random"
  10540. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10541. AST_LIBUUID_FOUND=yes
  10542. else
  10543. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10544. CFLAGS="${CFLAGS} "
  10545. as_ac_Lib=`$as_echo "ac_cv_lib_uuid_${pbxfuncname}" | $as_tr_sh`
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luuid" >&5
  10547. $as_echo_n "checking for ${pbxfuncname} in -luuid... " >&6; }
  10548. if eval \${$as_ac_Lib+:} false; then :
  10549. $as_echo_n "(cached) " >&6
  10550. else
  10551. ac_check_lib_save_LIBS=$LIBS
  10552. LIBS="-luuid ${pbxlibdir} $LIBS"
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. /* Override any GCC internal prototype to avoid an error.
  10556. Use char because int might match the return type of a GCC
  10557. builtin and then its argument prototype would still apply. */
  10558. #ifdef __cplusplus
  10559. extern "C"
  10560. #endif
  10561. char ${pbxfuncname} ();
  10562. int
  10563. main ()
  10564. {
  10565. return ${pbxfuncname} ();
  10566. ;
  10567. return 0;
  10568. }
  10569. _ACEOF
  10570. if ac_fn_c_try_link "$LINENO"; then :
  10571. eval "$as_ac_Lib=yes"
  10572. else
  10573. eval "$as_ac_Lib=no"
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext \
  10576. conftest$ac_exeext conftest.$ac_ext
  10577. LIBS=$ac_check_lib_save_LIBS
  10578. fi
  10579. eval ac_res=\$$as_ac_Lib
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10581. $as_echo "$ac_res" >&6; }
  10582. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10583. AST_LIBUUID_FOUND=yes
  10584. else
  10585. AST_LIBUUID_FOUND=no
  10586. fi
  10587. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10588. fi
  10589. # now check for the header.
  10590. if test "${AST_LIBUUID_FOUND}" = "yes"; then
  10591. LIBUUID_LIB="${pbxlibdir} -luuid "
  10592. # if --with-LIBUUID=DIR has been specified, use it.
  10593. if test "x${LIBUUID_DIR}" != "x"; then
  10594. LIBUUID_INCLUDE="-I${LIBUUID_DIR}/include"
  10595. fi
  10596. LIBUUID_INCLUDE="${LIBUUID_INCLUDE} "
  10597. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  10598. LIBUUID_HEADER_FOUND="1"
  10599. else # check for the header
  10600. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10601. CPPFLAGS="${CPPFLAGS} ${LIBUUID_INCLUDE}"
  10602. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  10603. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  10604. LIBUUID_HEADER_FOUND=1
  10605. else
  10606. LIBUUID_HEADER_FOUND=0
  10607. fi
  10608. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10609. fi
  10610. if test "x${LIBUUID_HEADER_FOUND}" = "x0" ; then
  10611. LIBUUID_LIB=""
  10612. LIBUUID_INCLUDE=""
  10613. else
  10614. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10615. LIBUUID_LIB=""
  10616. fi
  10617. PBX_LIBUUID=1
  10618. cat >>confdefs.h <<_ACEOF
  10619. #define HAVE_LIBUUID 1
  10620. _ACEOF
  10621. fi
  10622. fi
  10623. fi
  10624. if test "x${PBX_E2FSUUID}" != "x1" -a "${USE_E2FSUUID}" != "no"; then
  10625. pbxlibdir=""
  10626. # if --with-E2FSUUID=DIR has been specified, use it.
  10627. if test "x${E2FSUUID_DIR}" != "x"; then
  10628. if test -d ${E2FSUUID_DIR}/lib; then
  10629. pbxlibdir="-L${E2FSUUID_DIR}/lib"
  10630. else
  10631. pbxlibdir="-L${E2FSUUID_DIR}"
  10632. fi
  10633. fi
  10634. pbxfuncname="uuid_generate_random"
  10635. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10636. AST_E2FSUUID_FOUND=yes
  10637. else
  10638. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10639. CFLAGS="${CFLAGS} "
  10640. as_ac_Lib=`$as_echo "ac_cv_lib_e2fs-uuid_${pbxfuncname}" | $as_tr_sh`
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -le2fs-uuid" >&5
  10642. $as_echo_n "checking for ${pbxfuncname} in -le2fs-uuid... " >&6; }
  10643. if eval \${$as_ac_Lib+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. ac_check_lib_save_LIBS=$LIBS
  10647. LIBS="-le2fs-uuid ${pbxlibdir} $LIBS"
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. /* Override any GCC internal prototype to avoid an error.
  10651. Use char because int might match the return type of a GCC
  10652. builtin and then its argument prototype would still apply. */
  10653. #ifdef __cplusplus
  10654. extern "C"
  10655. #endif
  10656. char ${pbxfuncname} ();
  10657. int
  10658. main ()
  10659. {
  10660. return ${pbxfuncname} ();
  10661. ;
  10662. return 0;
  10663. }
  10664. _ACEOF
  10665. if ac_fn_c_try_link "$LINENO"; then :
  10666. eval "$as_ac_Lib=yes"
  10667. else
  10668. eval "$as_ac_Lib=no"
  10669. fi
  10670. rm -f core conftest.err conftest.$ac_objext \
  10671. conftest$ac_exeext conftest.$ac_ext
  10672. LIBS=$ac_check_lib_save_LIBS
  10673. fi
  10674. eval ac_res=\$$as_ac_Lib
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10676. $as_echo "$ac_res" >&6; }
  10677. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10678. AST_E2FSUUID_FOUND=yes
  10679. else
  10680. AST_E2FSUUID_FOUND=no
  10681. fi
  10682. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10683. fi
  10684. # now check for the header.
  10685. if test "${AST_E2FSUUID_FOUND}" = "yes"; then
  10686. E2FSUUID_LIB="${pbxlibdir} -le2fs-uuid "
  10687. # if --with-E2FSUUID=DIR has been specified, use it.
  10688. if test "x${E2FSUUID_DIR}" != "x"; then
  10689. E2FSUUID_INCLUDE="-I${E2FSUUID_DIR}/include"
  10690. fi
  10691. E2FSUUID_INCLUDE="${E2FSUUID_INCLUDE} "
  10692. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  10693. E2FSUUID_HEADER_FOUND="1"
  10694. else # check for the header
  10695. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10696. CPPFLAGS="${CPPFLAGS} ${E2FSUUID_INCLUDE}"
  10697. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  10698. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  10699. E2FSUUID_HEADER_FOUND=1
  10700. else
  10701. E2FSUUID_HEADER_FOUND=0
  10702. fi
  10703. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10704. fi
  10705. if test "x${E2FSUUID_HEADER_FOUND}" = "x0" ; then
  10706. E2FSUUID_LIB=""
  10707. E2FSUUID_INCLUDE=""
  10708. else
  10709. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10710. E2FSUUID_LIB=""
  10711. fi
  10712. PBX_E2FSUUID=1
  10713. cat >>confdefs.h <<_ACEOF
  10714. #define HAVE_E2FSUUID 1
  10715. _ACEOF
  10716. fi
  10717. fi
  10718. fi
  10719. for ac_func in uuid_generate_random
  10720. do :
  10721. ac_fn_c_check_func "$LINENO" "uuid_generate_random" "ac_cv_func_uuid_generate_random"
  10722. if test "x$ac_cv_func_uuid_generate_random" = xyes; then :
  10723. cat >>confdefs.h <<_ACEOF
  10724. #define HAVE_UUID_GENERATE_RANDOM 1
  10725. _ACEOF
  10726. SYSUUID=true
  10727. else
  10728. SYSUUID=""
  10729. fi
  10730. done
  10731. if test "x$LIBUUID_LIB" != "x" ; then
  10732. UUID_INCLUDE="$LIBUUID_INCLUDE"
  10733. UUID_LIB="$LIBUUID_LIB"
  10734. elif test "x$E2FSUUID_LIB" != "x" ; then
  10735. UUID_INCLUDE="$E2FSUUID_INCLUDE"
  10736. UUID_LIB="$E2FSUUID_LIB"
  10737. elif test "x$SYSUUID" != "x" ; then
  10738. UUID_INCLUDE=""
  10739. UUID_LIB=""
  10740. else
  10741. as_fn_error $? "*** uuid support not found (this typically means the uuid development package is missing)" "$LINENO" 5
  10742. fi
  10743. # Find required JSON support.
  10744. if test "x${PBX_JANSSON}" != "x1" -a "${USE_JANSSON}" != "no"; then
  10745. pbxlibdir=""
  10746. # if --with-JANSSON=DIR has been specified, use it.
  10747. if test "x${JANSSON_DIR}" != "x"; then
  10748. if test -d ${JANSSON_DIR}/lib; then
  10749. pbxlibdir="-L${JANSSON_DIR}/lib"
  10750. else
  10751. pbxlibdir="-L${JANSSON_DIR}"
  10752. fi
  10753. fi
  10754. pbxfuncname="json_dumps"
  10755. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10756. AST_JANSSON_FOUND=yes
  10757. else
  10758. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10759. CFLAGS="${CFLAGS} "
  10760. as_ac_Lib=`$as_echo "ac_cv_lib_jansson_${pbxfuncname}" | $as_tr_sh`
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljansson" >&5
  10762. $as_echo_n "checking for ${pbxfuncname} in -ljansson... " >&6; }
  10763. if eval \${$as_ac_Lib+:} false; then :
  10764. $as_echo_n "(cached) " >&6
  10765. else
  10766. ac_check_lib_save_LIBS=$LIBS
  10767. LIBS="-ljansson ${pbxlibdir} $LIBS"
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. /* Override any GCC internal prototype to avoid an error.
  10771. Use char because int might match the return type of a GCC
  10772. builtin and then its argument prototype would still apply. */
  10773. #ifdef __cplusplus
  10774. extern "C"
  10775. #endif
  10776. char ${pbxfuncname} ();
  10777. int
  10778. main ()
  10779. {
  10780. return ${pbxfuncname} ();
  10781. ;
  10782. return 0;
  10783. }
  10784. _ACEOF
  10785. if ac_fn_c_try_link "$LINENO"; then :
  10786. eval "$as_ac_Lib=yes"
  10787. else
  10788. eval "$as_ac_Lib=no"
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext \
  10791. conftest$ac_exeext conftest.$ac_ext
  10792. LIBS=$ac_check_lib_save_LIBS
  10793. fi
  10794. eval ac_res=\$$as_ac_Lib
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10796. $as_echo "$ac_res" >&6; }
  10797. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10798. AST_JANSSON_FOUND=yes
  10799. else
  10800. AST_JANSSON_FOUND=no
  10801. fi
  10802. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10803. fi
  10804. # now check for the header.
  10805. if test "${AST_JANSSON_FOUND}" = "yes"; then
  10806. JANSSON_LIB="${pbxlibdir} -ljansson "
  10807. # if --with-JANSSON=DIR has been specified, use it.
  10808. if test "x${JANSSON_DIR}" != "x"; then
  10809. JANSSON_INCLUDE="-I${JANSSON_DIR}/include"
  10810. fi
  10811. JANSSON_INCLUDE="${JANSSON_INCLUDE} "
  10812. if test "xjansson.h" = "x" ; then # no header, assume found
  10813. JANSSON_HEADER_FOUND="1"
  10814. else # check for the header
  10815. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10816. CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
  10817. ac_fn_c_check_header_mongrel "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default"
  10818. if test "x$ac_cv_header_jansson_h" = xyes; then :
  10819. JANSSON_HEADER_FOUND=1
  10820. else
  10821. JANSSON_HEADER_FOUND=0
  10822. fi
  10823. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10824. fi
  10825. if test "x${JANSSON_HEADER_FOUND}" = "x0" ; then
  10826. JANSSON_LIB=""
  10827. JANSSON_INCLUDE=""
  10828. else
  10829. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10830. JANSSON_LIB=""
  10831. fi
  10832. PBX_JANSSON=1
  10833. cat >>confdefs.h <<_ACEOF
  10834. #define HAVE_JANSSON 1
  10835. _ACEOF
  10836. fi
  10837. fi
  10838. fi
  10839. if test "x$JANSSON_LIB" == "x"; then
  10840. as_fn_error $? "*** JSON support not found (this typically means the libjansson development package is missing)" "$LINENO" 5
  10841. fi
  10842. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  10843. PBX_LIBXML2=0
  10844. if test -n "$ac_tool_prefix"; then
  10845. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  10846. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10848. $as_echo_n "checking for $ac_word... " >&6; }
  10849. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. case $CONFIG_LIBXML2 in
  10853. [\\/]* | ?:[\\/]*)
  10854. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  10855. ;;
  10856. *)
  10857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10858. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10859. for as_dir in $as_dummy
  10860. do
  10861. IFS=$as_save_IFS
  10862. test -z "$as_dir" && as_dir=.
  10863. for ac_exec_ext in '' $ac_executable_extensions; do
  10864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10865. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10867. break 2
  10868. fi
  10869. done
  10870. done
  10871. IFS=$as_save_IFS
  10872. ;;
  10873. esac
  10874. fi
  10875. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  10876. if test -n "$CONFIG_LIBXML2"; then
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  10878. $as_echo "$CONFIG_LIBXML2" >&6; }
  10879. else
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10881. $as_echo "no" >&6; }
  10882. fi
  10883. fi
  10884. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  10885. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  10886. # Extract the first word of "xml2-config", so it can be a program name with args.
  10887. set dummy xml2-config; ac_word=$2
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10889. $as_echo_n "checking for $ac_word... " >&6; }
  10890. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. case $ac_pt_CONFIG_LIBXML2 in
  10894. [\\/]* | ?:[\\/]*)
  10895. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  10896. ;;
  10897. *)
  10898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10899. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10900. for as_dir in $as_dummy
  10901. do
  10902. IFS=$as_save_IFS
  10903. test -z "$as_dir" && as_dir=.
  10904. for ac_exec_ext in '' $ac_executable_extensions; do
  10905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10906. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10908. break 2
  10909. fi
  10910. done
  10911. done
  10912. IFS=$as_save_IFS
  10913. ;;
  10914. esac
  10915. fi
  10916. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  10917. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  10918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  10919. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  10920. else
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10922. $as_echo "no" >&6; }
  10923. fi
  10924. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  10925. CONFIG_LIBXML2="No"
  10926. else
  10927. case $cross_compiling:$ac_tool_warned in
  10928. yes:)
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10930. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10931. ac_tool_warned=yes ;;
  10932. esac
  10933. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  10934. fi
  10935. else
  10936. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  10937. fi
  10938. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  10939. if test x"" = x ; then A=--cflags ; else A="" ; fi
  10940. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  10941. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
  10942. if test x"" = x ; then A=--libs ; else A="" ; fi
  10943. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  10944. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  10945. if test x"#include <libxml/tree.h>
  10946. #include <libxml/parser.h>" != x ; then
  10947. saved_cppflags="${CPPFLAGS}"
  10948. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  10949. saved_libs="${LIBS}"
  10950. LIBS=${LIBXML2_LIB}
  10951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10952. /* end confdefs.h. */
  10953. #include <libxml/tree.h>
  10954. #include <libxml/parser.h>
  10955. int
  10956. main ()
  10957. {
  10958. LIBXML_TEST_VERSION;
  10959. ;
  10960. return 0;
  10961. }
  10962. _ACEOF
  10963. if ac_fn_c_try_link "$LINENO"; then :
  10964. PBX_LIBXML2=1
  10965. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10966. fi
  10967. rm -f core conftest.err conftest.$ac_objext \
  10968. conftest$ac_exeext conftest.$ac_ext
  10969. CPPFLAGS="${saved_cppflags}"
  10970. LIBS="${saved_libs}"
  10971. else
  10972. PBX_LIBXML2=1
  10973. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10974. fi
  10975. fi
  10976. fi
  10977. if test "${PBX_LIBXML2}" != 1; then
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&5
  10979. $as_echo "$as_me: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&6;}
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install the 'libxml2' development package." >&5
  10981. $as_echo "$as_me: *** Please install the 'libxml2' development package." >&6;}
  10982. exit 1
  10983. fi
  10984. if test "x${PBX_URIPARSER}" != "x1" -a "${USE_URIPARSER}" != "no"; then
  10985. pbxlibdir=""
  10986. # if --with-URIPARSER=DIR has been specified, use it.
  10987. if test "x${URIPARSER_DIR}" != "x"; then
  10988. if test -d ${URIPARSER_DIR}/lib; then
  10989. pbxlibdir="-L${URIPARSER_DIR}/lib"
  10990. else
  10991. pbxlibdir="-L${URIPARSER_DIR}"
  10992. fi
  10993. fi
  10994. pbxfuncname="uriParseUriA"
  10995. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10996. AST_URIPARSER_FOUND=yes
  10997. else
  10998. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10999. CFLAGS="${CFLAGS} "
  11000. as_ac_Lib=`$as_echo "ac_cv_lib_uriparser_${pbxfuncname}" | $as_tr_sh`
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luriparser" >&5
  11002. $as_echo_n "checking for ${pbxfuncname} in -luriparser... " >&6; }
  11003. if eval \${$as_ac_Lib+:} false; then :
  11004. $as_echo_n "(cached) " >&6
  11005. else
  11006. ac_check_lib_save_LIBS=$LIBS
  11007. LIBS="-luriparser ${pbxlibdir} $LIBS"
  11008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11009. /* end confdefs.h. */
  11010. /* Override any GCC internal prototype to avoid an error.
  11011. Use char because int might match the return type of a GCC
  11012. builtin and then its argument prototype would still apply. */
  11013. #ifdef __cplusplus
  11014. extern "C"
  11015. #endif
  11016. char ${pbxfuncname} ();
  11017. int
  11018. main ()
  11019. {
  11020. return ${pbxfuncname} ();
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_link "$LINENO"; then :
  11026. eval "$as_ac_Lib=yes"
  11027. else
  11028. eval "$as_ac_Lib=no"
  11029. fi
  11030. rm -f core conftest.err conftest.$ac_objext \
  11031. conftest$ac_exeext conftest.$ac_ext
  11032. LIBS=$ac_check_lib_save_LIBS
  11033. fi
  11034. eval ac_res=\$$as_ac_Lib
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11036. $as_echo "$ac_res" >&6; }
  11037. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11038. AST_URIPARSER_FOUND=yes
  11039. else
  11040. AST_URIPARSER_FOUND=no
  11041. fi
  11042. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11043. fi
  11044. # now check for the header.
  11045. if test "${AST_URIPARSER_FOUND}" = "yes"; then
  11046. URIPARSER_LIB="${pbxlibdir} -luriparser "
  11047. # if --with-URIPARSER=DIR has been specified, use it.
  11048. if test "x${URIPARSER_DIR}" != "x"; then
  11049. URIPARSER_INCLUDE="-I${URIPARSER_DIR}/include"
  11050. fi
  11051. URIPARSER_INCLUDE="${URIPARSER_INCLUDE} "
  11052. if test "xuriparser/Uri.h" = "x" ; then # no header, assume found
  11053. URIPARSER_HEADER_FOUND="1"
  11054. else # check for the header
  11055. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11056. CPPFLAGS="${CPPFLAGS} ${URIPARSER_INCLUDE}"
  11057. ac_fn_c_check_header_mongrel "$LINENO" "uriparser/Uri.h" "ac_cv_header_uriparser_Uri_h" "$ac_includes_default"
  11058. if test "x$ac_cv_header_uriparser_Uri_h" = xyes; then :
  11059. URIPARSER_HEADER_FOUND=1
  11060. else
  11061. URIPARSER_HEADER_FOUND=0
  11062. fi
  11063. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11064. fi
  11065. if test "x${URIPARSER_HEADER_FOUND}" = "x0" ; then
  11066. URIPARSER_LIB=""
  11067. URIPARSER_INCLUDE=""
  11068. else
  11069. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11070. URIPARSER_LIB=""
  11071. fi
  11072. PBX_URIPARSER=1
  11073. cat >>confdefs.h <<_ACEOF
  11074. #define HAVE_URIPARSER 1
  11075. _ACEOF
  11076. fi
  11077. fi
  11078. fi
  11079. # Another mandatory item (unless it's explicitly disabled)
  11080. # Check whether --enable-xmldoc was given.
  11081. if test "${enable_xmldoc+set}" = set; then :
  11082. enableval=$enable_xmldoc; case "${enableval}" in
  11083. y|ye|yes) disable_xmldoc=no ;;
  11084. n|no) disable_xmldoc=yes ;;
  11085. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  11086. esac
  11087. else
  11088. disable_xmldoc=no
  11089. fi
  11090. if test "${disable_xmldoc}" != "yes"; then
  11091. if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then
  11092. pbxlibdir=""
  11093. # if --with-LIBXSLT=DIR has been specified, use it.
  11094. if test "x${LIBXSLT_DIR}" != "x"; then
  11095. if test -d ${LIBXSLT_DIR}/lib; then
  11096. pbxlibdir="-L${LIBXSLT_DIR}/lib"
  11097. else
  11098. pbxlibdir="-L${LIBXSLT_DIR}"
  11099. fi
  11100. fi
  11101. pbxfuncname="xsltLoadStylesheetPI"
  11102. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11103. AST_LIBXSLT_FOUND=yes
  11104. else
  11105. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11106. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  11107. as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
  11109. $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
  11110. if eval \${$as_ac_Lib+:} false; then :
  11111. $as_echo_n "(cached) " >&6
  11112. else
  11113. ac_check_lib_save_LIBS=$LIBS
  11114. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  11115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11116. /* end confdefs.h. */
  11117. /* Override any GCC internal prototype to avoid an error.
  11118. Use char because int might match the return type of a GCC
  11119. builtin and then its argument prototype would still apply. */
  11120. #ifdef __cplusplus
  11121. extern "C"
  11122. #endif
  11123. char ${pbxfuncname} ();
  11124. int
  11125. main ()
  11126. {
  11127. return ${pbxfuncname} ();
  11128. ;
  11129. return 0;
  11130. }
  11131. _ACEOF
  11132. if ac_fn_c_try_link "$LINENO"; then :
  11133. eval "$as_ac_Lib=yes"
  11134. else
  11135. eval "$as_ac_Lib=no"
  11136. fi
  11137. rm -f core conftest.err conftest.$ac_objext \
  11138. conftest$ac_exeext conftest.$ac_ext
  11139. LIBS=$ac_check_lib_save_LIBS
  11140. fi
  11141. eval ac_res=\$$as_ac_Lib
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11143. $as_echo "$ac_res" >&6; }
  11144. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11145. AST_LIBXSLT_FOUND=yes
  11146. else
  11147. AST_LIBXSLT_FOUND=no
  11148. fi
  11149. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11150. fi
  11151. # now check for the header.
  11152. if test "${AST_LIBXSLT_FOUND}" = "yes"; then
  11153. LIBXSLT_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  11154. # if --with-LIBXSLT=DIR has been specified, use it.
  11155. if test "x${LIBXSLT_DIR}" != "x"; then
  11156. LIBXSLT_INCLUDE="-I${LIBXSLT_DIR}/include"
  11157. fi
  11158. LIBXSLT_INCLUDE="${LIBXSLT_INCLUDE} ${LIBXML2_INCLUDE}"
  11159. if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
  11160. LIBXSLT_HEADER_FOUND="1"
  11161. else # check for the header
  11162. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11163. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_INCLUDE}"
  11164. ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  11165. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
  11166. LIBXSLT_HEADER_FOUND=1
  11167. else
  11168. LIBXSLT_HEADER_FOUND=0
  11169. fi
  11170. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11171. fi
  11172. if test "x${LIBXSLT_HEADER_FOUND}" = "x0" ; then
  11173. LIBXSLT_LIB=""
  11174. LIBXSLT_INCLUDE=""
  11175. else
  11176. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11177. LIBXSLT_LIB=""
  11178. fi
  11179. PBX_LIBXSLT=1
  11180. cat >>confdefs.h <<_ACEOF
  11181. #define HAVE_LIBXSLT 1
  11182. _ACEOF
  11183. fi
  11184. fi
  11185. fi
  11186. if test "x${PBX_LIBXSLT_CLEANUP}" != "x1" -a "${USE_LIBXSLT_CLEANUP}" != "no"; then
  11187. pbxlibdir=""
  11188. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  11189. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  11190. if test -d ${LIBXSLT_CLEANUP_DIR}/lib; then
  11191. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}/lib"
  11192. else
  11193. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}"
  11194. fi
  11195. fi
  11196. pbxfuncname="xsltCleanupGlobals"
  11197. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11198. AST_LIBXSLT_CLEANUP_FOUND=yes
  11199. else
  11200. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11201. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  11202. as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
  11204. $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
  11205. if eval \${$as_ac_Lib+:} false; then :
  11206. $as_echo_n "(cached) " >&6
  11207. else
  11208. ac_check_lib_save_LIBS=$LIBS
  11209. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  11210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11211. /* end confdefs.h. */
  11212. /* Override any GCC internal prototype to avoid an error.
  11213. Use char because int might match the return type of a GCC
  11214. builtin and then its argument prototype would still apply. */
  11215. #ifdef __cplusplus
  11216. extern "C"
  11217. #endif
  11218. char ${pbxfuncname} ();
  11219. int
  11220. main ()
  11221. {
  11222. return ${pbxfuncname} ();
  11223. ;
  11224. return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_c_try_link "$LINENO"; then :
  11228. eval "$as_ac_Lib=yes"
  11229. else
  11230. eval "$as_ac_Lib=no"
  11231. fi
  11232. rm -f core conftest.err conftest.$ac_objext \
  11233. conftest$ac_exeext conftest.$ac_ext
  11234. LIBS=$ac_check_lib_save_LIBS
  11235. fi
  11236. eval ac_res=\$$as_ac_Lib
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11238. $as_echo "$ac_res" >&6; }
  11239. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11240. AST_LIBXSLT_CLEANUP_FOUND=yes
  11241. else
  11242. AST_LIBXSLT_CLEANUP_FOUND=no
  11243. fi
  11244. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11245. fi
  11246. # now check for the header.
  11247. if test "${AST_LIBXSLT_CLEANUP_FOUND}" = "yes"; then
  11248. LIBXSLT_CLEANUP_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  11249. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  11250. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  11251. LIBXSLT_CLEANUP_INCLUDE="-I${LIBXSLT_CLEANUP_DIR}/include"
  11252. fi
  11253. LIBXSLT_CLEANUP_INCLUDE="${LIBXSLT_CLEANUP_INCLUDE} ${LIBXML2_INCLUDE}"
  11254. if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
  11255. LIBXSLT_CLEANUP_HEADER_FOUND="1"
  11256. else # check for the header
  11257. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11258. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_CLEANUP_INCLUDE}"
  11259. ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  11260. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
  11261. LIBXSLT_CLEANUP_HEADER_FOUND=1
  11262. else
  11263. LIBXSLT_CLEANUP_HEADER_FOUND=0
  11264. fi
  11265. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11266. fi
  11267. if test "x${LIBXSLT_CLEANUP_HEADER_FOUND}" = "x0" ; then
  11268. LIBXSLT_CLEANUP_LIB=""
  11269. LIBXSLT_CLEANUP_INCLUDE=""
  11270. else
  11271. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11272. LIBXSLT_CLEANUP_LIB=""
  11273. fi
  11274. PBX_LIBXSLT_CLEANUP=1
  11275. cat >>confdefs.h <<_ACEOF
  11276. #define HAVE_LIBXSLT_CLEANUP 1
  11277. _ACEOF
  11278. fi
  11279. fi
  11280. fi
  11281. fi
  11282. # some embedded systems omit internationalization (locale) support
  11283. for ac_header in xlocale.h
  11284. do :
  11285. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  11286. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  11287. cat >>confdefs.h <<_ACEOF
  11288. #define HAVE_XLOCALE_H 1
  11289. _ACEOF
  11290. fi
  11291. done
  11292. for ac_header in winsock.h winsock2.h
  11293. do :
  11294. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11295. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11296. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11297. cat >>confdefs.h <<_ACEOF
  11298. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11299. _ACEOF
  11300. fi
  11301. done
  11302. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  11303. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  11304. else
  11305. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  11306. fi
  11307. # Check whether --enable-largefile was given.
  11308. if test "${enable_largefile+set}" = set; then :
  11309. enableval=$enable_largefile;
  11310. fi
  11311. if test "$enable_largefile" != no; then
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11313. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11314. if ${ac_cv_sys_largefile_CC+:} false; then :
  11315. $as_echo_n "(cached) " >&6
  11316. else
  11317. ac_cv_sys_largefile_CC=no
  11318. if test "$GCC" != yes; then
  11319. ac_save_CC=$CC
  11320. while :; do
  11321. # IRIX 6.2 and later do not support large files by default,
  11322. # so use the C compiler's -n32 option if that helps.
  11323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11324. /* end confdefs.h. */
  11325. #include <sys/types.h>
  11326. /* Check that off_t can represent 2**63 - 1 correctly.
  11327. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11328. since some C++ compilers masquerading as C compilers
  11329. incorrectly reject 9223372036854775807. */
  11330. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11331. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11332. && LARGE_OFF_T % 2147483647 == 1)
  11333. ? 1 : -1];
  11334. int
  11335. main ()
  11336. {
  11337. ;
  11338. return 0;
  11339. }
  11340. _ACEOF
  11341. if ac_fn_c_try_compile "$LINENO"; then :
  11342. break
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext
  11345. CC="$CC -n32"
  11346. if ac_fn_c_try_compile "$LINENO"; then :
  11347. ac_cv_sys_largefile_CC=' -n32'; break
  11348. fi
  11349. rm -f core conftest.err conftest.$ac_objext
  11350. break
  11351. done
  11352. CC=$ac_save_CC
  11353. rm -f conftest.$ac_ext
  11354. fi
  11355. fi
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11357. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11358. if test "$ac_cv_sys_largefile_CC" != no; then
  11359. CC=$CC$ac_cv_sys_largefile_CC
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11362. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11363. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11364. $as_echo_n "(cached) " >&6
  11365. else
  11366. while :; do
  11367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11368. /* end confdefs.h. */
  11369. #include <sys/types.h>
  11370. /* Check that off_t can represent 2**63 - 1 correctly.
  11371. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11372. since some C++ compilers masquerading as C compilers
  11373. incorrectly reject 9223372036854775807. */
  11374. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11375. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11376. && LARGE_OFF_T % 2147483647 == 1)
  11377. ? 1 : -1];
  11378. int
  11379. main ()
  11380. {
  11381. ;
  11382. return 0;
  11383. }
  11384. _ACEOF
  11385. if ac_fn_c_try_compile "$LINENO"; then :
  11386. ac_cv_sys_file_offset_bits=no; break
  11387. fi
  11388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11390. /* end confdefs.h. */
  11391. #define _FILE_OFFSET_BITS 64
  11392. #include <sys/types.h>
  11393. /* Check that off_t can represent 2**63 - 1 correctly.
  11394. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11395. since some C++ compilers masquerading as C compilers
  11396. incorrectly reject 9223372036854775807. */
  11397. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11398. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11399. && LARGE_OFF_T % 2147483647 == 1)
  11400. ? 1 : -1];
  11401. int
  11402. main ()
  11403. {
  11404. ;
  11405. return 0;
  11406. }
  11407. _ACEOF
  11408. if ac_fn_c_try_compile "$LINENO"; then :
  11409. ac_cv_sys_file_offset_bits=64; break
  11410. fi
  11411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11412. ac_cv_sys_file_offset_bits=unknown
  11413. break
  11414. done
  11415. fi
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11417. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11418. case $ac_cv_sys_file_offset_bits in #(
  11419. no | unknown) ;;
  11420. *)
  11421. cat >>confdefs.h <<_ACEOF
  11422. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11423. _ACEOF
  11424. ;;
  11425. esac
  11426. rm -rf conftest*
  11427. if test $ac_cv_sys_file_offset_bits = unknown; then
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11429. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11430. if ${ac_cv_sys_large_files+:} false; then :
  11431. $as_echo_n "(cached) " >&6
  11432. else
  11433. while :; do
  11434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11435. /* end confdefs.h. */
  11436. #include <sys/types.h>
  11437. /* Check that off_t can represent 2**63 - 1 correctly.
  11438. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11439. since some C++ compilers masquerading as C compilers
  11440. incorrectly reject 9223372036854775807. */
  11441. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11442. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11443. && LARGE_OFF_T % 2147483647 == 1)
  11444. ? 1 : -1];
  11445. int
  11446. main ()
  11447. {
  11448. ;
  11449. return 0;
  11450. }
  11451. _ACEOF
  11452. if ac_fn_c_try_compile "$LINENO"; then :
  11453. ac_cv_sys_large_files=no; break
  11454. fi
  11455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11457. /* end confdefs.h. */
  11458. #define _LARGE_FILES 1
  11459. #include <sys/types.h>
  11460. /* Check that off_t can represent 2**63 - 1 correctly.
  11461. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11462. since some C++ compilers masquerading as C compilers
  11463. incorrectly reject 9223372036854775807. */
  11464. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11465. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11466. && LARGE_OFF_T % 2147483647 == 1)
  11467. ? 1 : -1];
  11468. int
  11469. main ()
  11470. {
  11471. ;
  11472. return 0;
  11473. }
  11474. _ACEOF
  11475. if ac_fn_c_try_compile "$LINENO"; then :
  11476. ac_cv_sys_large_files=1; break
  11477. fi
  11478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11479. ac_cv_sys_large_files=unknown
  11480. break
  11481. done
  11482. fi
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11484. $as_echo "$ac_cv_sys_large_files" >&6; }
  11485. case $ac_cv_sys_large_files in #(
  11486. no | unknown) ;;
  11487. *)
  11488. cat >>confdefs.h <<_ACEOF
  11489. #define _LARGE_FILES $ac_cv_sys_large_files
  11490. _ACEOF
  11491. ;;
  11492. esac
  11493. rm -rf conftest*
  11494. fi
  11495. fi
  11496. # Checks for typedefs, structures, and compiler characteristics.
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  11498. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  11499. if ${ac_cv_header_stdbool_h+:} false; then :
  11500. $as_echo_n "(cached) " >&6
  11501. else
  11502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11503. /* end confdefs.h. */
  11504. #include <stdbool.h>
  11505. #ifndef bool
  11506. "error: bool is not defined"
  11507. #endif
  11508. #ifndef false
  11509. "error: false is not defined"
  11510. #endif
  11511. #if false
  11512. "error: false is not 0"
  11513. #endif
  11514. #ifndef true
  11515. "error: true is not defined"
  11516. #endif
  11517. #if true != 1
  11518. "error: true is not 1"
  11519. #endif
  11520. #ifndef __bool_true_false_are_defined
  11521. "error: __bool_true_false_are_defined is not defined"
  11522. #endif
  11523. struct s { _Bool s: 1; _Bool t; } s;
  11524. char a[true == 1 ? 1 : -1];
  11525. char b[false == 0 ? 1 : -1];
  11526. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  11527. char d[(bool) 0.5 == true ? 1 : -1];
  11528. /* See body of main program for 'e'. */
  11529. char f[(_Bool) 0.0 == false ? 1 : -1];
  11530. char g[true];
  11531. char h[sizeof (_Bool)];
  11532. char i[sizeof s.t];
  11533. enum { j = false, k = true, l = false * true, m = true * 256 };
  11534. /* The following fails for
  11535. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  11536. _Bool n[m];
  11537. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  11538. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  11539. /* Catch a bug in an HP-UX C compiler. See
  11540. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  11541. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  11542. */
  11543. _Bool q = true;
  11544. _Bool *pq = &q;
  11545. int
  11546. main ()
  11547. {
  11548. bool e = &s;
  11549. *pq |= q;
  11550. *pq |= ! q;
  11551. /* Refer to every declared value, to avoid compiler optimizations. */
  11552. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  11553. + !m + !n + !o + !p + !q + !pq);
  11554. ;
  11555. return 0;
  11556. }
  11557. _ACEOF
  11558. if ac_fn_c_try_compile "$LINENO"; then :
  11559. ac_cv_header_stdbool_h=yes
  11560. else
  11561. ac_cv_header_stdbool_h=no
  11562. fi
  11563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11564. fi
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  11566. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  11567. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  11568. if test "x$ac_cv_type__Bool" = xyes; then :
  11569. cat >>confdefs.h <<_ACEOF
  11570. #define HAVE__BOOL 1
  11571. _ACEOF
  11572. fi
  11573. if test $ac_cv_header_stdbool_h = yes; then
  11574. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  11575. fi
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11577. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11578. if ${ac_cv_c_const+:} false; then :
  11579. $as_echo_n "(cached) " >&6
  11580. else
  11581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11582. /* end confdefs.h. */
  11583. int
  11584. main ()
  11585. {
  11586. #ifndef __cplusplus
  11587. /* Ultrix mips cc rejects this sort of thing. */
  11588. typedef int charset[2];
  11589. const charset cs = { 0, 0 };
  11590. /* SunOS 4.1.1 cc rejects this. */
  11591. char const *const *pcpcc;
  11592. char **ppc;
  11593. /* NEC SVR4.0.2 mips cc rejects this. */
  11594. struct point {int x, y;};
  11595. static struct point const zero = {0,0};
  11596. /* AIX XL C 1.02.0.0 rejects this.
  11597. It does not let you subtract one const X* pointer from another in
  11598. an arm of an if-expression whose if-part is not a constant
  11599. expression */
  11600. const char *g = "string";
  11601. pcpcc = &g + (g ? g-g : 0);
  11602. /* HPUX 7.0 cc rejects these. */
  11603. ++pcpcc;
  11604. ppc = (char**) pcpcc;
  11605. pcpcc = (char const *const *) ppc;
  11606. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11607. char tx;
  11608. char *t = &tx;
  11609. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11610. *t++ = 0;
  11611. if (s) return 0;
  11612. }
  11613. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11614. int x[] = {25, 17};
  11615. const int *foo = &x[0];
  11616. ++foo;
  11617. }
  11618. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11619. typedef const int *iptr;
  11620. iptr p = 0;
  11621. ++p;
  11622. }
  11623. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11624. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11625. struct s { int j; const int *ap[3]; } bx;
  11626. struct s *b = &bx; b->j = 5;
  11627. }
  11628. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11629. const int foo = 10;
  11630. if (!foo) return 0;
  11631. }
  11632. return !cs[0] && !zero.x;
  11633. #endif
  11634. ;
  11635. return 0;
  11636. }
  11637. _ACEOF
  11638. if ac_fn_c_try_compile "$LINENO"; then :
  11639. ac_cv_c_const=yes
  11640. else
  11641. ac_cv_c_const=no
  11642. fi
  11643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11644. fi
  11645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11646. $as_echo "$ac_cv_c_const" >&6; }
  11647. if test $ac_cv_c_const = no; then
  11648. $as_echo "#define const /**/" >>confdefs.h
  11649. fi
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  11651. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  11652. if ${ac_cv_type_uid_t+:} false; then :
  11653. $as_echo_n "(cached) " >&6
  11654. else
  11655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11656. /* end confdefs.h. */
  11657. #include <sys/types.h>
  11658. _ACEOF
  11659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11660. $EGREP "uid_t" >/dev/null 2>&1; then :
  11661. ac_cv_type_uid_t=yes
  11662. else
  11663. ac_cv_type_uid_t=no
  11664. fi
  11665. rm -f conftest*
  11666. fi
  11667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  11668. $as_echo "$ac_cv_type_uid_t" >&6; }
  11669. if test $ac_cv_type_uid_t = no; then
  11670. $as_echo "#define uid_t int" >>confdefs.h
  11671. $as_echo "#define gid_t int" >>confdefs.h
  11672. fi
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11674. $as_echo_n "checking for inline... " >&6; }
  11675. if ${ac_cv_c_inline+:} false; then :
  11676. $as_echo_n "(cached) " >&6
  11677. else
  11678. ac_cv_c_inline=no
  11679. for ac_kw in inline __inline__ __inline; do
  11680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11681. /* end confdefs.h. */
  11682. #ifndef __cplusplus
  11683. typedef int foo_t;
  11684. static $ac_kw foo_t static_foo () {return 0; }
  11685. $ac_kw foo_t foo () {return 0; }
  11686. #endif
  11687. _ACEOF
  11688. if ac_fn_c_try_compile "$LINENO"; then :
  11689. ac_cv_c_inline=$ac_kw
  11690. fi
  11691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11692. test "$ac_cv_c_inline" != no && break
  11693. done
  11694. fi
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11696. $as_echo "$ac_cv_c_inline" >&6; }
  11697. case $ac_cv_c_inline in
  11698. inline | yes) ;;
  11699. *)
  11700. case $ac_cv_c_inline in
  11701. no) ac_val=;;
  11702. *) ac_val=$ac_cv_c_inline;;
  11703. esac
  11704. cat >>confdefs.h <<_ACEOF
  11705. #ifndef __cplusplus
  11706. #define inline $ac_val
  11707. #endif
  11708. _ACEOF
  11709. ;;
  11710. esac
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  11712. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  11713. if ${ac_cv_type_long_double_wider+:} false; then :
  11714. $as_echo_n "(cached) " >&6
  11715. else
  11716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11717. /* end confdefs.h. */
  11718. #include <float.h>
  11719. long double const a[] =
  11720. {
  11721. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  11722. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  11723. };
  11724. long double
  11725. f (long double x)
  11726. {
  11727. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  11728. + (x ? f (x) : 'c'));
  11729. }
  11730. int
  11731. main ()
  11732. {
  11733. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  11734. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  11735. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  11736. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  11737. && (int) LDBL_EPSILON == 0
  11738. )];
  11739. test_array [0] = 0;
  11740. return test_array [0];
  11741. ;
  11742. return 0;
  11743. }
  11744. _ACEOF
  11745. if ac_fn_c_try_compile "$LINENO"; then :
  11746. ac_cv_type_long_double_wider=yes
  11747. else
  11748. ac_cv_type_long_double_wider=no
  11749. fi
  11750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11751. fi
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  11753. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  11754. if test $ac_cv_type_long_double_wider = yes; then
  11755. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  11756. fi
  11757. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  11758. if test "x$ac_cv_type_mode_t" = xyes; then :
  11759. else
  11760. cat >>confdefs.h <<_ACEOF
  11761. #define mode_t int
  11762. _ACEOF
  11763. fi
  11764. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11765. if test "x$ac_cv_type_off_t" = xyes; then :
  11766. else
  11767. cat >>confdefs.h <<_ACEOF
  11768. #define off_t long int
  11769. _ACEOF
  11770. fi
  11771. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11772. if test "x$ac_cv_type_pid_t" = xyes; then :
  11773. else
  11774. cat >>confdefs.h <<_ACEOF
  11775. #define pid_t int
  11776. _ACEOF
  11777. fi
  11778. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11779. if test "x$ac_cv_type_size_t" = xyes; then :
  11780. else
  11781. cat >>confdefs.h <<_ACEOF
  11782. #define size_t unsigned int
  11783. _ACEOF
  11784. fi
  11785. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  11786. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  11787. cat >>confdefs.h <<_ACEOF
  11788. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  11789. _ACEOF
  11790. fi
  11791. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
  11792. #include <sys/socket.h>
  11793. "
  11794. if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
  11795. cat >>confdefs.h <<_ACEOF
  11796. #define HAVE_STRUCT_UCRED_UID 1
  11797. _ACEOF
  11798. fi
  11799. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
  11800. #include <sys/socket.h>
  11801. "
  11802. if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
  11803. cat >>confdefs.h <<_ACEOF
  11804. #define HAVE_STRUCT_UCRED_CR_UID 1
  11805. _ACEOF
  11806. fi
  11807. ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
  11808. #include <sys/socket.h>
  11809. "
  11810. if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
  11811. cat >>confdefs.h <<_ACEOF
  11812. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  11813. _ACEOF
  11814. fi
  11815. 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>
  11816. "
  11817. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes; then :
  11818. cat >>confdefs.h <<_ACEOF
  11819. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  11820. _ACEOF
  11821. fi
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  11823. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  11824. if ${ac_cv_header_time+:} false; then :
  11825. $as_echo_n "(cached) " >&6
  11826. else
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. #include <sys/types.h>
  11830. #include <sys/time.h>
  11831. #include <time.h>
  11832. int
  11833. main ()
  11834. {
  11835. if ((struct tm *) 0)
  11836. return 0;
  11837. ;
  11838. return 0;
  11839. }
  11840. _ACEOF
  11841. if ac_fn_c_try_compile "$LINENO"; then :
  11842. ac_cv_header_time=yes
  11843. else
  11844. ac_cv_header_time=no
  11845. fi
  11846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11847. fi
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  11849. $as_echo "$ac_cv_header_time" >&6; }
  11850. if test $ac_cv_header_time = yes; then
  11851. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  11852. fi
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11854. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11855. if ${ac_cv_struct_tm+:} false; then :
  11856. $as_echo_n "(cached) " >&6
  11857. else
  11858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11859. /* end confdefs.h. */
  11860. #include <sys/types.h>
  11861. #include <time.h>
  11862. int
  11863. main ()
  11864. {
  11865. struct tm tm;
  11866. int *p = &tm.tm_sec;
  11867. return !p;
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. if ac_fn_c_try_compile "$LINENO"; then :
  11873. ac_cv_struct_tm=time.h
  11874. else
  11875. ac_cv_struct_tm=sys/time.h
  11876. fi
  11877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11878. fi
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11880. $as_echo "$ac_cv_struct_tm" >&6; }
  11881. if test $ac_cv_struct_tm = sys/time.h; then
  11882. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11883. fi
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  11885. $as_echo_n "checking for working volatile... " >&6; }
  11886. if ${ac_cv_c_volatile+:} false; then :
  11887. $as_echo_n "(cached) " >&6
  11888. else
  11889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11890. /* end confdefs.h. */
  11891. int
  11892. main ()
  11893. {
  11894. volatile int x;
  11895. int * volatile y = (int *) 0;
  11896. return !x && !y;
  11897. ;
  11898. return 0;
  11899. }
  11900. _ACEOF
  11901. if ac_fn_c_try_compile "$LINENO"; then :
  11902. ac_cv_c_volatile=yes
  11903. else
  11904. ac_cv_c_volatile=no
  11905. fi
  11906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  11909. $as_echo "$ac_cv_c_volatile" >&6; }
  11910. if test $ac_cv_c_volatile = no; then
  11911. $as_echo "#define volatile /**/" >>confdefs.h
  11912. fi
  11913. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  11914. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  11915. cat >>confdefs.h <<_ACEOF
  11916. #define HAVE_PTRDIFF_T 1
  11917. _ACEOF
  11918. fi
  11919. stat_nsec_found=no
  11920. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
  11921. "
  11922. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  11923. cat >>confdefs.h <<_ACEOF
  11924. #define HAVE_STRUCT_STAT_ST_MTIM 1
  11925. _ACEOF
  11926. stat_nsec_found=yes
  11927. fi
  11928. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
  11929. "
  11930. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
  11931. cat >>confdefs.h <<_ACEOF
  11932. #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
  11933. _ACEOF
  11934. stat_nsec_found=yes
  11935. fi
  11936. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
  11937. "
  11938. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  11939. cat >>confdefs.h <<_ACEOF
  11940. #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
  11941. _ACEOF
  11942. stat_nsec_found=yes
  11943. fi
  11944. if test "${stat_nsec_found}" != yes; then
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
  11946. $as_echo "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
  11947. fi
  11948. # Checks for library functions.
  11949. for ac_header in unistd.h
  11950. do :
  11951. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11952. if test "x$ac_cv_header_unistd_h" = xyes; then :
  11953. cat >>confdefs.h <<_ACEOF
  11954. #define HAVE_UNISTD_H 1
  11955. _ACEOF
  11956. fi
  11957. done
  11958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  11959. $as_echo_n "checking for working chown... " >&6; }
  11960. if ${ac_cv_func_chown_works+:} false; then :
  11961. $as_echo_n "(cached) " >&6
  11962. else
  11963. if test "$cross_compiling" = yes; then :
  11964. ac_cv_func_chown_works=no
  11965. else
  11966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11967. /* end confdefs.h. */
  11968. $ac_includes_default
  11969. #include <fcntl.h>
  11970. int
  11971. main ()
  11972. {
  11973. char *f = "conftest.chown";
  11974. struct stat before, after;
  11975. if (creat (f, 0600) < 0)
  11976. return 1;
  11977. if (stat (f, &before) < 0)
  11978. return 1;
  11979. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  11980. return 1;
  11981. if (stat (f, &after) < 0)
  11982. return 1;
  11983. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  11984. ;
  11985. return 0;
  11986. }
  11987. _ACEOF
  11988. if ac_fn_c_try_run "$LINENO"; then :
  11989. ac_cv_func_chown_works=yes
  11990. else
  11991. ac_cv_func_chown_works=no
  11992. fi
  11993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11995. fi
  11996. rm -f conftest.chown
  11997. fi
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  11999. $as_echo "$ac_cv_func_chown_works" >&6; }
  12000. if test $ac_cv_func_chown_works = yes; then
  12001. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  12002. fi
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  12004. $as_echo_n "checking whether closedir returns void... " >&6; }
  12005. if ${ac_cv_func_closedir_void+:} false; then :
  12006. $as_echo_n "(cached) " >&6
  12007. else
  12008. if test "$cross_compiling" = yes; then :
  12009. ac_cv_func_closedir_void=yes
  12010. else
  12011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12012. /* end confdefs.h. */
  12013. $ac_includes_default
  12014. #include <$ac_header_dirent>
  12015. #ifndef __cplusplus
  12016. int closedir ();
  12017. #endif
  12018. int
  12019. main ()
  12020. {
  12021. return closedir (opendir (".")) != 0;
  12022. ;
  12023. return 0;
  12024. }
  12025. _ACEOF
  12026. if ac_fn_c_try_run "$LINENO"; then :
  12027. ac_cv_func_closedir_void=no
  12028. else
  12029. ac_cv_func_closedir_void=yes
  12030. fi
  12031. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12032. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12033. fi
  12034. fi
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  12036. $as_echo "$ac_cv_func_closedir_void" >&6; }
  12037. if test $ac_cv_func_closedir_void = yes; then
  12038. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  12039. fi
  12040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  12041. $as_echo_n "checking for error_at_line... " >&6; }
  12042. if ${ac_cv_lib_error_at_line+:} false; then :
  12043. $as_echo_n "(cached) " >&6
  12044. else
  12045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12046. /* end confdefs.h. */
  12047. #include <error.h>
  12048. int
  12049. main ()
  12050. {
  12051. error_at_line (0, 0, "", 0, "an error occurred");
  12052. ;
  12053. return 0;
  12054. }
  12055. _ACEOF
  12056. if ac_fn_c_try_link "$LINENO"; then :
  12057. ac_cv_lib_error_at_line=yes
  12058. else
  12059. ac_cv_lib_error_at_line=no
  12060. fi
  12061. rm -f core conftest.err conftest.$ac_objext \
  12062. conftest$ac_exeext conftest.$ac_ext
  12063. fi
  12064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  12065. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  12066. if test $ac_cv_lib_error_at_line = no; then
  12067. case " $LIBOBJS " in
  12068. *" error.$ac_objext "* ) ;;
  12069. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  12070. ;;
  12071. esac
  12072. fi
  12073. for ac_header in vfork.h
  12074. do :
  12075. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12076. if test "x$ac_cv_header_vfork_h" = xyes; then :
  12077. cat >>confdefs.h <<_ACEOF
  12078. #define HAVE_VFORK_H 1
  12079. _ACEOF
  12080. fi
  12081. done
  12082. for ac_func in fork vfork
  12083. do :
  12084. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12085. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12086. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12087. cat >>confdefs.h <<_ACEOF
  12088. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12089. _ACEOF
  12090. fi
  12091. done
  12092. if test "x$ac_cv_func_fork" = xyes; then
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12094. $as_echo_n "checking for working fork... " >&6; }
  12095. if ${ac_cv_func_fork_works+:} false; then :
  12096. $as_echo_n "(cached) " >&6
  12097. else
  12098. if test "$cross_compiling" = yes; then :
  12099. ac_cv_func_fork_works=cross
  12100. else
  12101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12102. /* end confdefs.h. */
  12103. $ac_includes_default
  12104. int
  12105. main ()
  12106. {
  12107. /* By Ruediger Kuhlmann. */
  12108. return fork () < 0;
  12109. ;
  12110. return 0;
  12111. }
  12112. _ACEOF
  12113. if ac_fn_c_try_run "$LINENO"; then :
  12114. ac_cv_func_fork_works=yes
  12115. else
  12116. ac_cv_func_fork_works=no
  12117. fi
  12118. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12119. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12120. fi
  12121. fi
  12122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12123. $as_echo "$ac_cv_func_fork_works" >&6; }
  12124. else
  12125. ac_cv_func_fork_works=$ac_cv_func_fork
  12126. fi
  12127. if test "x$ac_cv_func_fork_works" = xcross; then
  12128. case $host in
  12129. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  12130. # Override, as these systems have only a dummy fork() stub
  12131. ac_cv_func_fork_works=no
  12132. ;;
  12133. *)
  12134. ac_cv_func_fork_works=yes
  12135. ;;
  12136. esac
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12138. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12139. fi
  12140. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12141. if test "x$ac_cv_func_vfork" = xyes; then
  12142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12143. $as_echo_n "checking for working vfork... " >&6; }
  12144. if ${ac_cv_func_vfork_works+:} false; then :
  12145. $as_echo_n "(cached) " >&6
  12146. else
  12147. if test "$cross_compiling" = yes; then :
  12148. ac_cv_func_vfork_works=cross
  12149. else
  12150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12151. /* end confdefs.h. */
  12152. /* Thanks to Paul Eggert for this test. */
  12153. $ac_includes_default
  12154. #include <sys/wait.h>
  12155. #ifdef HAVE_VFORK_H
  12156. # include <vfork.h>
  12157. #endif
  12158. /* On some sparc systems, changes by the child to local and incoming
  12159. argument registers are propagated back to the parent. The compiler
  12160. is told about this with #include <vfork.h>, but some compilers
  12161. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12162. static variable whose address is put into a register that is
  12163. clobbered by the vfork. */
  12164. static void
  12165. #ifdef __cplusplus
  12166. sparc_address_test (int arg)
  12167. # else
  12168. sparc_address_test (arg) int arg;
  12169. #endif
  12170. {
  12171. static pid_t child;
  12172. if (!child) {
  12173. child = vfork ();
  12174. if (child < 0) {
  12175. perror ("vfork");
  12176. _exit(2);
  12177. }
  12178. if (!child) {
  12179. arg = getpid();
  12180. write(-1, "", 0);
  12181. _exit (arg);
  12182. }
  12183. }
  12184. }
  12185. int
  12186. main ()
  12187. {
  12188. pid_t parent = getpid ();
  12189. pid_t child;
  12190. sparc_address_test (0);
  12191. child = vfork ();
  12192. if (child == 0) {
  12193. /* Here is another test for sparc vfork register problems. This
  12194. test uses lots of local variables, at least as many local
  12195. variables as main has allocated so far including compiler
  12196. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12197. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12198. reuse the register of parent for one of the local variables,
  12199. since it will think that parent can't possibly be used any more
  12200. in this routine. Assigning to the local variable will thus
  12201. munge parent in the parent process. */
  12202. pid_t
  12203. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12204. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12205. /* Convince the compiler that p..p7 are live; otherwise, it might
  12206. use the same hardware register for all 8 local variables. */
  12207. if (p != p1 || p != p2 || p != p3 || p != p4
  12208. || p != p5 || p != p6 || p != p7)
  12209. _exit(1);
  12210. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12211. from child file descriptors. If the child closes a descriptor
  12212. before it execs or exits, this munges the parent's descriptor
  12213. as well. Test for this by closing stdout in the child. */
  12214. _exit(close(fileno(stdout)) != 0);
  12215. } else {
  12216. int status;
  12217. struct stat st;
  12218. while (wait(&status) != child)
  12219. ;
  12220. return (
  12221. /* Was there some problem with vforking? */
  12222. child < 0
  12223. /* Did the child fail? (This shouldn't happen.) */
  12224. || status
  12225. /* Did the vfork/compiler bug occur? */
  12226. || parent != getpid()
  12227. /* Did the file descriptor bug occur? */
  12228. || fstat(fileno(stdout), &st) != 0
  12229. );
  12230. }
  12231. }
  12232. _ACEOF
  12233. if ac_fn_c_try_run "$LINENO"; then :
  12234. ac_cv_func_vfork_works=yes
  12235. else
  12236. ac_cv_func_vfork_works=no
  12237. fi
  12238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12239. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12240. fi
  12241. fi
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12243. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12244. fi;
  12245. if test "x$ac_cv_func_fork_works" = xcross; then
  12246. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12248. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12249. fi
  12250. if test "x$ac_cv_func_vfork_works" = xyes; then
  12251. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12252. else
  12253. $as_echo "#define vfork fork" >>confdefs.h
  12254. fi
  12255. if test "x$ac_cv_func_fork_works" = xyes; then
  12256. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12257. PBX_WORKING_FORK=1
  12258. fi
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12260. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12261. if ${ac_cv_sys_largefile_source+:} false; then :
  12262. $as_echo_n "(cached) " >&6
  12263. else
  12264. while :; do
  12265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12266. /* end confdefs.h. */
  12267. #include <sys/types.h> /* for off_t */
  12268. #include <stdio.h>
  12269. int
  12270. main ()
  12271. {
  12272. int (*fp) (FILE *, off_t, int) = fseeko;
  12273. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12274. ;
  12275. return 0;
  12276. }
  12277. _ACEOF
  12278. if ac_fn_c_try_link "$LINENO"; then :
  12279. ac_cv_sys_largefile_source=no; break
  12280. fi
  12281. rm -f core conftest.err conftest.$ac_objext \
  12282. conftest$ac_exeext conftest.$ac_ext
  12283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12284. /* end confdefs.h. */
  12285. #define _LARGEFILE_SOURCE 1
  12286. #include <sys/types.h> /* for off_t */
  12287. #include <stdio.h>
  12288. int
  12289. main ()
  12290. {
  12291. int (*fp) (FILE *, off_t, int) = fseeko;
  12292. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12293. ;
  12294. return 0;
  12295. }
  12296. _ACEOF
  12297. if ac_fn_c_try_link "$LINENO"; then :
  12298. ac_cv_sys_largefile_source=1; break
  12299. fi
  12300. rm -f core conftest.err conftest.$ac_objext \
  12301. conftest$ac_exeext conftest.$ac_ext
  12302. ac_cv_sys_largefile_source=unknown
  12303. break
  12304. done
  12305. fi
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12307. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12308. case $ac_cv_sys_largefile_source in #(
  12309. no | unknown) ;;
  12310. *)
  12311. cat >>confdefs.h <<_ACEOF
  12312. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12313. _ACEOF
  12314. ;;
  12315. esac
  12316. rm -rf conftest*
  12317. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12318. # in glibc 2.1.3, but that breaks too many other things.
  12319. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12320. if test $ac_cv_sys_largefile_source != unknown; then
  12321. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12322. fi
  12323. if test $ac_cv_c_compiler_gnu = yes; then
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  12325. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  12326. if ${ac_cv_prog_gcc_traditional+:} false; then :
  12327. $as_echo_n "(cached) " >&6
  12328. else
  12329. ac_pattern="Autoconf.*'x'"
  12330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12331. /* end confdefs.h. */
  12332. #include <sgtty.h>
  12333. Autoconf TIOCGETP
  12334. _ACEOF
  12335. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12336. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12337. ac_cv_prog_gcc_traditional=yes
  12338. else
  12339. ac_cv_prog_gcc_traditional=no
  12340. fi
  12341. rm -f conftest*
  12342. if test $ac_cv_prog_gcc_traditional = no; then
  12343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12344. /* end confdefs.h. */
  12345. #include <termio.h>
  12346. Autoconf TCGETA
  12347. _ACEOF
  12348. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12349. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12350. ac_cv_prog_gcc_traditional=yes
  12351. fi
  12352. rm -f conftest*
  12353. fi
  12354. fi
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12356. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12357. if test $ac_cv_prog_gcc_traditional = yes; then
  12358. CC="$CC -traditional"
  12359. fi
  12360. fi
  12361. # XXX: these are commented out until we determine whether it matters if our malloc()
  12362. # acts exactly like glibc's or not
  12363. # AC_FUNC_MALLOC
  12364. # AC_FUNC_REALLOC
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12366. $as_echo_n "checking for working memcmp... " >&6; }
  12367. if ${ac_cv_func_memcmp_working+:} false; then :
  12368. $as_echo_n "(cached) " >&6
  12369. else
  12370. if test "$cross_compiling" = yes; then :
  12371. ac_cv_func_memcmp_working=no
  12372. else
  12373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12374. /* end confdefs.h. */
  12375. $ac_includes_default
  12376. int
  12377. main ()
  12378. {
  12379. /* Some versions of memcmp are not 8-bit clean. */
  12380. char c0 = '\100', c1 = '\200', c2 = '\201';
  12381. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12382. return 1;
  12383. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12384. or more and with at least one buffer not starting on a 4-byte boundary.
  12385. William Lewis provided this test program. */
  12386. {
  12387. char foo[21];
  12388. char bar[21];
  12389. int i;
  12390. for (i = 0; i < 4; i++)
  12391. {
  12392. char *a = foo + i;
  12393. char *b = bar + i;
  12394. strcpy (a, "--------01111111");
  12395. strcpy (b, "--------10000000");
  12396. if (memcmp (a, b, 16) >= 0)
  12397. return 1;
  12398. }
  12399. return 0;
  12400. }
  12401. ;
  12402. return 0;
  12403. }
  12404. _ACEOF
  12405. if ac_fn_c_try_run "$LINENO"; then :
  12406. ac_cv_func_memcmp_working=yes
  12407. else
  12408. ac_cv_func_memcmp_working=no
  12409. fi
  12410. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12411. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12412. fi
  12413. fi
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12415. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12416. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12417. *" memcmp.$ac_objext "* ) ;;
  12418. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12419. ;;
  12420. esac
  12421. for ac_header in $ac_header_list
  12422. do :
  12423. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12424. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12425. "
  12426. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12427. cat >>confdefs.h <<_ACEOF
  12428. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12429. _ACEOF
  12430. fi
  12431. done
  12432. for ac_func in getpagesize
  12433. do :
  12434. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12435. if test "x$ac_cv_func_getpagesize" = xyes; then :
  12436. cat >>confdefs.h <<_ACEOF
  12437. #define HAVE_GETPAGESIZE 1
  12438. _ACEOF
  12439. fi
  12440. done
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12442. $as_echo_n "checking for working mmap... " >&6; }
  12443. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. if test "$cross_compiling" = yes; then :
  12447. ac_cv_func_mmap_fixed_mapped=no
  12448. else
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. $ac_includes_default
  12452. /* malloc might have been renamed as rpl_malloc. */
  12453. #undef malloc
  12454. /* Thanks to Mike Haertel and Jim Avera for this test.
  12455. Here is a matrix of mmap possibilities:
  12456. mmap private not fixed
  12457. mmap private fixed at somewhere currently unmapped
  12458. mmap private fixed at somewhere already mapped
  12459. mmap shared not fixed
  12460. mmap shared fixed at somewhere currently unmapped
  12461. mmap shared fixed at somewhere already mapped
  12462. For private mappings, we should verify that changes cannot be read()
  12463. back from the file, nor mmap's back from the file at a different
  12464. address. (There have been systems where private was not correctly
  12465. implemented like the infamous i386 svr4.0, and systems where the
  12466. VM page cache was not coherent with the file system buffer cache
  12467. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12468. For shared mappings, we should conversely verify that changes get
  12469. propagated back to all the places they're supposed to be.
  12470. Grep wants private fixed already mapped.
  12471. The main things grep needs to know about mmap are:
  12472. * does it exist and is it safe to write into the mmap'd area
  12473. * how to use it (BSD variants) */
  12474. #include <fcntl.h>
  12475. #include <sys/mman.h>
  12476. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12477. char *malloc ();
  12478. #endif
  12479. /* This mess was copied from the GNU getpagesize.h. */
  12480. #ifndef HAVE_GETPAGESIZE
  12481. # ifdef _SC_PAGESIZE
  12482. # define getpagesize() sysconf(_SC_PAGESIZE)
  12483. # else /* no _SC_PAGESIZE */
  12484. # ifdef HAVE_SYS_PARAM_H
  12485. # include <sys/param.h>
  12486. # ifdef EXEC_PAGESIZE
  12487. # define getpagesize() EXEC_PAGESIZE
  12488. # else /* no EXEC_PAGESIZE */
  12489. # ifdef NBPG
  12490. # define getpagesize() NBPG * CLSIZE
  12491. # ifndef CLSIZE
  12492. # define CLSIZE 1
  12493. # endif /* no CLSIZE */
  12494. # else /* no NBPG */
  12495. # ifdef NBPC
  12496. # define getpagesize() NBPC
  12497. # else /* no NBPC */
  12498. # ifdef PAGESIZE
  12499. # define getpagesize() PAGESIZE
  12500. # endif /* PAGESIZE */
  12501. # endif /* no NBPC */
  12502. # endif /* no NBPG */
  12503. # endif /* no EXEC_PAGESIZE */
  12504. # else /* no HAVE_SYS_PARAM_H */
  12505. # define getpagesize() 8192 /* punt totally */
  12506. # endif /* no HAVE_SYS_PARAM_H */
  12507. # endif /* no _SC_PAGESIZE */
  12508. #endif /* no HAVE_GETPAGESIZE */
  12509. int
  12510. main ()
  12511. {
  12512. char *data, *data2, *data3;
  12513. const char *cdata2;
  12514. int i, pagesize;
  12515. int fd, fd2;
  12516. pagesize = getpagesize ();
  12517. /* First, make a file with some known garbage in it. */
  12518. data = (char *) malloc (pagesize);
  12519. if (!data)
  12520. return 1;
  12521. for (i = 0; i < pagesize; ++i)
  12522. *(data + i) = rand ();
  12523. umask (0);
  12524. fd = creat ("conftest.mmap", 0600);
  12525. if (fd < 0)
  12526. return 2;
  12527. if (write (fd, data, pagesize) != pagesize)
  12528. return 3;
  12529. close (fd);
  12530. /* Next, check that the tail of a page is zero-filled. File must have
  12531. non-zero length, otherwise we risk SIGBUS for entire page. */
  12532. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12533. if (fd2 < 0)
  12534. return 4;
  12535. cdata2 = "";
  12536. if (write (fd2, cdata2, 1) != 1)
  12537. return 5;
  12538. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12539. if (data2 == MAP_FAILED)
  12540. return 6;
  12541. for (i = 0; i < pagesize; ++i)
  12542. if (*(data2 + i))
  12543. return 7;
  12544. close (fd2);
  12545. if (munmap (data2, pagesize))
  12546. return 8;
  12547. /* Next, try to mmap the file at a fixed address which already has
  12548. something else allocated at it. If we can, also make sure that
  12549. we see the same garbage. */
  12550. fd = open ("conftest.mmap", O_RDWR);
  12551. if (fd < 0)
  12552. return 9;
  12553. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12554. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12555. return 10;
  12556. for (i = 0; i < pagesize; ++i)
  12557. if (*(data + i) != *(data2 + i))
  12558. return 11;
  12559. /* Finally, make sure that changes to the mapped area do not
  12560. percolate back to the file as seen by read(). (This is a bug on
  12561. some variants of i386 svr4.0.) */
  12562. for (i = 0; i < pagesize; ++i)
  12563. *(data2 + i) = *(data2 + i) + 1;
  12564. data3 = (char *) malloc (pagesize);
  12565. if (!data3)
  12566. return 12;
  12567. if (read (fd, data3, pagesize) != pagesize)
  12568. return 13;
  12569. for (i = 0; i < pagesize; ++i)
  12570. if (*(data + i) != *(data3 + i))
  12571. return 14;
  12572. close (fd);
  12573. return 0;
  12574. }
  12575. _ACEOF
  12576. if ac_fn_c_try_run "$LINENO"; then :
  12577. ac_cv_func_mmap_fixed_mapped=yes
  12578. else
  12579. ac_cv_func_mmap_fixed_mapped=no
  12580. fi
  12581. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12582. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12583. fi
  12584. fi
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12586. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12587. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12588. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12589. fi
  12590. rm -f conftest.mmap conftest.txt
  12591. for ac_header in sys/select.h sys/socket.h
  12592. do :
  12593. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12594. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12595. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12596. cat >>confdefs.h <<_ACEOF
  12597. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12598. _ACEOF
  12599. fi
  12600. done
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12602. $as_echo_n "checking types of arguments for select... " >&6; }
  12603. if ${ac_cv_func_select_args+:} false; then :
  12604. $as_echo_n "(cached) " >&6
  12605. else
  12606. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12607. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12608. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12610. /* end confdefs.h. */
  12611. $ac_includes_default
  12612. #ifdef HAVE_SYS_SELECT_H
  12613. # include <sys/select.h>
  12614. #endif
  12615. #ifdef HAVE_SYS_SOCKET_H
  12616. # include <sys/socket.h>
  12617. #endif
  12618. int
  12619. main ()
  12620. {
  12621. extern int select ($ac_arg1,
  12622. $ac_arg234, $ac_arg234, $ac_arg234,
  12623. $ac_arg5);
  12624. ;
  12625. return 0;
  12626. }
  12627. _ACEOF
  12628. if ac_fn_c_try_compile "$LINENO"; then :
  12629. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12630. fi
  12631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12632. done
  12633. done
  12634. done
  12635. # Provide a safe default value.
  12636. : "${ac_cv_func_select_args=int,int *,struct timeval *}"
  12637. fi
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12639. $as_echo "$ac_cv_func_select_args" >&6; }
  12640. ac_save_IFS=$IFS; IFS=','
  12641. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12642. IFS=$ac_save_IFS
  12643. shift
  12644. cat >>confdefs.h <<_ACEOF
  12645. #define SELECT_TYPE_ARG1 $1
  12646. _ACEOF
  12647. cat >>confdefs.h <<_ACEOF
  12648. #define SELECT_TYPE_ARG234 ($2)
  12649. _ACEOF
  12650. cat >>confdefs.h <<_ACEOF
  12651. #define SELECT_TYPE_ARG5 ($3)
  12652. _ACEOF
  12653. rm -f conftest*
  12654. if ${ac_cv_func_setvbuf_reversed+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. ac_cv_func_setvbuf_reversed=no
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  12660. $as_echo_n "checking return type of signal handlers... " >&6; }
  12661. if ${ac_cv_type_signal+:} false; then :
  12662. $as_echo_n "(cached) " >&6
  12663. else
  12664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12665. /* end confdefs.h. */
  12666. #include <sys/types.h>
  12667. #include <signal.h>
  12668. int
  12669. main ()
  12670. {
  12671. return *(signal (0, 0)) (0) == 1;
  12672. ;
  12673. return 0;
  12674. }
  12675. _ACEOF
  12676. if ac_fn_c_try_compile "$LINENO"; then :
  12677. ac_cv_type_signal=int
  12678. else
  12679. ac_cv_type_signal=void
  12680. fi
  12681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12682. fi
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  12684. $as_echo "$ac_cv_type_signal" >&6; }
  12685. cat >>confdefs.h <<_ACEOF
  12686. #define RETSIGTYPE $ac_cv_type_signal
  12687. _ACEOF
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12689. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12690. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  12691. $as_echo_n "(cached) " >&6
  12692. else
  12693. rm -f conftest.sym conftest.file
  12694. echo >conftest.file
  12695. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12696. if test "$cross_compiling" = yes; then :
  12697. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12698. else
  12699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12700. /* end confdefs.h. */
  12701. $ac_includes_default
  12702. int
  12703. main ()
  12704. {
  12705. struct stat sbuf;
  12706. /* Linux will dereference the symlink and fail, as required by POSIX.
  12707. That is better in the sense that it means we will not
  12708. have to compile and use the lstat wrapper. */
  12709. return lstat ("conftest.sym/", &sbuf) == 0;
  12710. ;
  12711. return 0;
  12712. }
  12713. _ACEOF
  12714. if ac_fn_c_try_run "$LINENO"; then :
  12715. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12716. else
  12717. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12718. fi
  12719. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12720. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12721. fi
  12722. else
  12723. # If the `ln -s' command failed, then we probably don't even
  12724. # have an lstat function.
  12725. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12726. fi
  12727. rm -f conftest.sym conftest.file
  12728. fi
  12729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12730. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12731. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12732. cat >>confdefs.h <<_ACEOF
  12733. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12734. _ACEOF
  12735. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12736. case " $LIBOBJS " in
  12737. *" lstat.$ac_objext "* ) ;;
  12738. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12739. ;;
  12740. esac
  12741. fi
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12743. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12744. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  12745. $as_echo_n "(cached) " >&6
  12746. else
  12747. if test "$cross_compiling" = yes; then :
  12748. ac_cv_func_stat_empty_string_bug=yes
  12749. else
  12750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12751. /* end confdefs.h. */
  12752. $ac_includes_default
  12753. int
  12754. main ()
  12755. {
  12756. struct stat sbuf;
  12757. return stat ("", &sbuf) == 0;
  12758. ;
  12759. return 0;
  12760. }
  12761. _ACEOF
  12762. if ac_fn_c_try_run "$LINENO"; then :
  12763. ac_cv_func_stat_empty_string_bug=no
  12764. else
  12765. ac_cv_func_stat_empty_string_bug=yes
  12766. fi
  12767. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12768. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12769. fi
  12770. fi
  12771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12772. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12773. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12774. case " $LIBOBJS " in
  12775. *" stat.$ac_objext "* ) ;;
  12776. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12777. ;;
  12778. esac
  12779. cat >>confdefs.h <<_ACEOF
  12780. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12781. _ACEOF
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  12784. $as_echo_n "checking for working strcoll... " >&6; }
  12785. if ${ac_cv_func_strcoll_works+:} false; then :
  12786. $as_echo_n "(cached) " >&6
  12787. else
  12788. if test "$cross_compiling" = yes; then :
  12789. ac_cv_func_strcoll_works=no
  12790. else
  12791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12792. /* end confdefs.h. */
  12793. $ac_includes_default
  12794. int
  12795. main ()
  12796. {
  12797. return (strcoll ("abc", "def") >= 0 ||
  12798. strcoll ("ABC", "DEF") >= 0 ||
  12799. strcoll ("123", "456") >= 0)
  12800. ;
  12801. return 0;
  12802. }
  12803. _ACEOF
  12804. if ac_fn_c_try_run "$LINENO"; then :
  12805. ac_cv_func_strcoll_works=yes
  12806. else
  12807. ac_cv_func_strcoll_works=no
  12808. fi
  12809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12810. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12811. fi
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  12814. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  12815. if test $ac_cv_func_strcoll_works = yes; then
  12816. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  12817. fi
  12818. for ac_func in strftime
  12819. do :
  12820. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12821. if test "x$ac_cv_func_strftime" = xyes; then :
  12822. cat >>confdefs.h <<_ACEOF
  12823. #define HAVE_STRFTIME 1
  12824. _ACEOF
  12825. else
  12826. # strftime is in -lintl on SCO UNIX.
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12828. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12829. if ${ac_cv_lib_intl_strftime+:} false; then :
  12830. $as_echo_n "(cached) " >&6
  12831. else
  12832. ac_check_lib_save_LIBS=$LIBS
  12833. LIBS="-lintl $LIBS"
  12834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12835. /* end confdefs.h. */
  12836. /* Override any GCC internal prototype to avoid an error.
  12837. Use char because int might match the return type of a GCC
  12838. builtin and then its argument prototype would still apply. */
  12839. #ifdef __cplusplus
  12840. extern "C"
  12841. #endif
  12842. char strftime ();
  12843. int
  12844. main ()
  12845. {
  12846. return strftime ();
  12847. ;
  12848. return 0;
  12849. }
  12850. _ACEOF
  12851. if ac_fn_c_try_link "$LINENO"; then :
  12852. ac_cv_lib_intl_strftime=yes
  12853. else
  12854. ac_cv_lib_intl_strftime=no
  12855. fi
  12856. rm -f core conftest.err conftest.$ac_objext \
  12857. conftest$ac_exeext conftest.$ac_ext
  12858. LIBS=$ac_check_lib_save_LIBS
  12859. fi
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12861. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12862. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  12863. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12864. LIBS="-lintl $LIBS"
  12865. fi
  12866. fi
  12867. done
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  12869. $as_echo_n "checking for working strnlen... " >&6; }
  12870. if ${ac_cv_func_strnlen_working+:} false; then :
  12871. $as_echo_n "(cached) " >&6
  12872. else
  12873. if test "$cross_compiling" = yes; then :
  12874. # Guess no on AIX systems, yes otherwise.
  12875. case "$host_os" in
  12876. aix*) ac_cv_func_strnlen_working=no;;
  12877. *) ac_cv_func_strnlen_working=yes;;
  12878. esac
  12879. else
  12880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12881. /* end confdefs.h. */
  12882. $ac_includes_default
  12883. int
  12884. main ()
  12885. {
  12886. #define S "foobar"
  12887. #define S_LEN (sizeof S - 1)
  12888. /* At least one implementation is buggy: that of AIX 4.3 would
  12889. give strnlen (S, 1) == 3. */
  12890. int i;
  12891. for (i = 0; i < S_LEN + 1; ++i)
  12892. {
  12893. int expected = i <= S_LEN ? i : S_LEN;
  12894. if (strnlen (S, i) != expected)
  12895. return 1;
  12896. }
  12897. return 0;
  12898. ;
  12899. return 0;
  12900. }
  12901. _ACEOF
  12902. if ac_fn_c_try_run "$LINENO"; then :
  12903. ac_cv_func_strnlen_working=yes
  12904. else
  12905. ac_cv_func_strnlen_working=no
  12906. fi
  12907. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12908. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12909. fi
  12910. fi
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  12912. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  12913. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  12914. *" strnlen.$ac_objext "* ) ;;
  12915. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  12916. ;;
  12917. esac
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12919. $as_echo_n "checking for working strtod... " >&6; }
  12920. if ${ac_cv_func_strtod+:} false; then :
  12921. $as_echo_n "(cached) " >&6
  12922. else
  12923. if test "$cross_compiling" = yes; then :
  12924. ac_cv_func_strtod=no
  12925. else
  12926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12927. /* end confdefs.h. */
  12928. $ac_includes_default
  12929. #ifndef strtod
  12930. double strtod ();
  12931. #endif
  12932. int
  12933. main()
  12934. {
  12935. {
  12936. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12937. char *string = " +69";
  12938. char *term;
  12939. double value;
  12940. value = strtod (string, &term);
  12941. if (value != 69 || term != (string + 4))
  12942. return 1;
  12943. }
  12944. {
  12945. /* Under Solaris 2.4, strtod returns the wrong value for the
  12946. terminating character under some conditions. */
  12947. char *string = "NaN";
  12948. char *term;
  12949. strtod (string, &term);
  12950. if (term != string && *(term - 1) == 0)
  12951. return 1;
  12952. }
  12953. return 0;
  12954. }
  12955. _ACEOF
  12956. if ac_fn_c_try_run "$LINENO"; then :
  12957. ac_cv_func_strtod=yes
  12958. else
  12959. ac_cv_func_strtod=no
  12960. fi
  12961. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12962. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12963. fi
  12964. fi
  12965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12966. $as_echo "$ac_cv_func_strtod" >&6; }
  12967. if test $ac_cv_func_strtod = no; then
  12968. case " $LIBOBJS " in
  12969. *" strtod.$ac_objext "* ) ;;
  12970. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12971. ;;
  12972. esac
  12973. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12974. if test "x$ac_cv_func_pow" = xyes; then :
  12975. fi
  12976. if test $ac_cv_func_pow = no; then
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12978. $as_echo_n "checking for pow in -lm... " >&6; }
  12979. if ${ac_cv_lib_m_pow+:} false; then :
  12980. $as_echo_n "(cached) " >&6
  12981. else
  12982. ac_check_lib_save_LIBS=$LIBS
  12983. LIBS="-lm $LIBS"
  12984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12985. /* end confdefs.h. */
  12986. /* Override any GCC internal prototype to avoid an error.
  12987. Use char because int might match the return type of a GCC
  12988. builtin and then its argument prototype would still apply. */
  12989. #ifdef __cplusplus
  12990. extern "C"
  12991. #endif
  12992. char pow ();
  12993. int
  12994. main ()
  12995. {
  12996. return pow ();
  12997. ;
  12998. return 0;
  12999. }
  13000. _ACEOF
  13001. if ac_fn_c_try_link "$LINENO"; then :
  13002. ac_cv_lib_m_pow=yes
  13003. else
  13004. ac_cv_lib_m_pow=no
  13005. fi
  13006. rm -f core conftest.err conftest.$ac_objext \
  13007. conftest$ac_exeext conftest.$ac_ext
  13008. LIBS=$ac_check_lib_save_LIBS
  13009. fi
  13010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  13011. $as_echo "$ac_cv_lib_m_pow" >&6; }
  13012. if test "x$ac_cv_lib_m_pow" = xyes; then :
  13013. POW_LIB=-lm
  13014. else
  13015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  13016. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  13017. fi
  13018. fi
  13019. fi
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  13021. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  13022. if ${ac_cv_func_utime_null+:} false; then :
  13023. $as_echo_n "(cached) " >&6
  13024. else
  13025. rm -f conftest.data; >conftest.data
  13026. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  13027. if test "$cross_compiling" = yes; then :
  13028. ac_cv_func_utime_null='guessing yes'
  13029. else
  13030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13031. /* end confdefs.h. */
  13032. $ac_includes_default
  13033. #ifdef HAVE_UTIME_H
  13034. # include <utime.h>
  13035. #endif
  13036. int
  13037. main ()
  13038. {
  13039. struct stat s, t;
  13040. return ! (stat ("conftest.data", &s) == 0
  13041. && utime ("conftest.data", 0) == 0
  13042. && stat ("conftest.data", &t) == 0
  13043. && t.st_mtime >= s.st_mtime
  13044. && t.st_mtime - s.st_mtime < 120);
  13045. ;
  13046. return 0;
  13047. }
  13048. _ACEOF
  13049. if ac_fn_c_try_run "$LINENO"; then :
  13050. ac_cv_func_utime_null=yes
  13051. else
  13052. ac_cv_func_utime_null=no
  13053. fi
  13054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13056. fi
  13057. fi
  13058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  13059. $as_echo "$ac_cv_func_utime_null" >&6; }
  13060. if test "x$ac_cv_func_utime_null" != xno; then
  13061. ac_cv_func_utime_null=yes
  13062. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  13063. fi
  13064. rm -f conftest.data
  13065. for ac_func in vprintf
  13066. do :
  13067. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  13068. if test "x$ac_cv_func_vprintf" = xyes; then :
  13069. cat >>confdefs.h <<_ACEOF
  13070. #define HAVE_VPRINTF 1
  13071. _ACEOF
  13072. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  13073. if test "x$ac_cv_func__doprnt" = xyes; then :
  13074. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  13075. fi
  13076. fi
  13077. done
  13078. for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap 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
  13079. do :
  13080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13081. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13082. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13083. cat >>confdefs.h <<_ACEOF
  13084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13085. _ACEOF
  13086. fi
  13087. done
  13088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonll" >&5
  13089. $as_echo_n "checking for htonll... " >&6; }
  13090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13091. /* end confdefs.h. */
  13092. #include <arpa/inet.h>
  13093. int
  13094. main ()
  13095. {
  13096. return htonll(0);
  13097. ;
  13098. return 0;
  13099. }
  13100. _ACEOF
  13101. if ac_fn_c_try_link "$LINENO"; then :
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13103. $as_echo "yes" >&6; }
  13104. $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
  13105. else
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13107. $as_echo "no" >&6; }
  13108. fi
  13109. rm -f core conftest.err conftest.$ac_objext \
  13110. conftest$ac_exeext conftest.$ac_ext
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohll" >&5
  13112. $as_echo_n "checking for ntohll... " >&6; }
  13113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13114. /* end confdefs.h. */
  13115. #include <arpa/inet.h>
  13116. int
  13117. main ()
  13118. {
  13119. return ntohll(0);
  13120. ;
  13121. return 0;
  13122. }
  13123. _ACEOF
  13124. if ac_fn_c_try_link "$LINENO"; then :
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13126. $as_echo "yes" >&6; }
  13127. $as_echo "#define HAVE_NTOHLL 1" >>confdefs.h
  13128. else
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13130. $as_echo "no" >&6; }
  13131. fi
  13132. rm -f core conftest.err conftest.$ac_objext \
  13133. conftest$ac_exeext conftest.$ac_ext
  13134. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  13135. # so that AC_CHECK_FUNCS can detect functions in that library.
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  13137. $as_echo_n "checking for sqrt in -lm... " >&6; }
  13138. if ${ac_cv_lib_m_sqrt+:} false; then :
  13139. $as_echo_n "(cached) " >&6
  13140. else
  13141. ac_check_lib_save_LIBS=$LIBS
  13142. LIBS="-lm $LIBS"
  13143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13144. /* end confdefs.h. */
  13145. /* Override any GCC internal prototype to avoid an error.
  13146. Use char because int might match the return type of a GCC
  13147. builtin and then its argument prototype would still apply. */
  13148. #ifdef __cplusplus
  13149. extern "C"
  13150. #endif
  13151. char sqrt ();
  13152. int
  13153. main ()
  13154. {
  13155. return sqrt ();
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. if ac_fn_c_try_link "$LINENO"; then :
  13161. ac_cv_lib_m_sqrt=yes
  13162. else
  13163. ac_cv_lib_m_sqrt=no
  13164. fi
  13165. rm -f core conftest.err conftest.$ac_objext \
  13166. conftest$ac_exeext conftest.$ac_ext
  13167. LIBS=$ac_check_lib_save_LIBS
  13168. fi
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  13170. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  13171. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  13172. cat >>confdefs.h <<_ACEOF
  13173. #define HAVE_LIBM 1
  13174. _ACEOF
  13175. LIBS="-lm $LIBS"
  13176. fi
  13177. # BSD might not have exp2, and/or log2
  13178. 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
  13179. do :
  13180. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13181. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13182. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13183. cat >>confdefs.h <<_ACEOF
  13184. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13185. _ACEOF
  13186. fi
  13187. done
  13188. # Certain architectures don't really have long double, even though
  13189. # AC_CHECK_FUNCS would otherwise find the following functions.
  13190. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  13191. 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
  13192. do :
  13193. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13194. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13195. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13196. cat >>confdefs.h <<_ACEOF
  13197. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13198. _ACEOF
  13199. fi
  13200. done
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  13203. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  13204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13205. /* end confdefs.h. */
  13206. #include <limits.h>
  13207. int
  13208. main ()
  13209. {
  13210. long long foo = LLONG_MAX
  13211. ;
  13212. return 0;
  13213. }
  13214. _ACEOF
  13215. if ac_fn_c_try_link "$LINENO"; then :
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13217. $as_echo "yes" >&6; }
  13218. $as_echo "#define HAVE_LLONG_MAX 1" >>confdefs.h
  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 \
  13224. conftest$ac_exeext conftest.$ac_ext
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  13226. $as_echo_n "checking for timersub in time.h... " >&6; }
  13227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13228. /* end confdefs.h. */
  13229. #include <sys/time.h>
  13230. int
  13231. main ()
  13232. {
  13233. struct timeval *a; timersub(a, a, a);
  13234. ;
  13235. return 0;
  13236. }
  13237. _ACEOF
  13238. if ac_fn_c_try_link "$LINENO"; then :
  13239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13240. $as_echo "yes" >&6; }
  13241. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  13242. else
  13243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13244. $as_echo "no" >&6; }
  13245. fi
  13246. rm -f core conftest.err conftest.$ac_objext \
  13247. conftest$ac_exeext conftest.$ac_ext
  13248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  13249. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  13250. old_LDFLAGS=${LDFLAGS}
  13251. cat >conftest.dynamics <<_ACEOF
  13252. {
  13253. *ast_*;
  13254. };
  13255. _ACEOF
  13256. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  13257. PBX_DYNAMIC_LIST=0
  13258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13259. /* end confdefs.h. */
  13260. int
  13261. main ()
  13262. {
  13263. ;
  13264. return 0;
  13265. }
  13266. _ACEOF
  13267. if ac_fn_c_try_link "$LINENO"; then :
  13268. PBX_DYNAMIC_LIST=1
  13269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13270. $as_echo "yes" >&6; }
  13271. else
  13272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13273. $as_echo "no" >&6; }
  13274. fi
  13275. rm -f core conftest.err conftest.$ac_objext \
  13276. conftest$ac_exeext conftest.$ac_ext
  13277. LDFLAGS=${old_LDFLAGS}
  13278. rm -f conftest.dynamics
  13279. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  13280. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  13281. HAS_POLL=1
  13282. $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  13283. fi
  13284. # Check whether --enable-internal-poll was given.
  13285. if test "${enable_internal_poll+set}" = set; then :
  13286. enableval=$enable_internal_poll; case "${enableval}" in
  13287. y|ye|yes) HAS_POLL="";;
  13288. n|no) HAS_POLL="${HAS_POLL}" ;;
  13289. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  13290. esac
  13291. fi
  13292. # Check whether --enable-asteriskssl was given.
  13293. if test "${enable_asteriskssl+set}" = set; then :
  13294. enableval=$enable_asteriskssl; case "${enableval}" in
  13295. y|ye|yes) AST_ASTERISKSSL=yes ;;
  13296. n|no) AST_ASTERISKSSL=no ;;
  13297. *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
  13298. esac
  13299. else
  13300. AST_ASTERISKSSL=yes
  13301. fi
  13302. # https support (in main/http.c) uses funopen on BSD systems,
  13303. # fopencookie on linux
  13304. for ac_func in funopen fopencookie
  13305. do :
  13306. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13307. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13308. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13309. cat >>confdefs.h <<_ACEOF
  13310. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13311. _ACEOF
  13312. fi
  13313. done
  13314. for ac_func in inet_aton
  13315. do :
  13316. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13317. if test "x$ac_cv_func_inet_aton" = xyes; then :
  13318. cat >>confdefs.h <<_ACEOF
  13319. #define HAVE_INET_ATON 1
  13320. _ACEOF
  13321. fi
  13322. done
  13323. # check if we have IP_PKTINFO constant defined
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  13325. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  13326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13327. /* end confdefs.h. */
  13328. #include <netinet/in.h>
  13329. int
  13330. main ()
  13331. {
  13332. int pi = IP_PKTINFO;
  13333. ;
  13334. return 0;
  13335. }
  13336. _ACEOF
  13337. if ac_fn_c_try_link "$LINENO"; then :
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13339. $as_echo "yes" >&6; }
  13340. $as_echo "#define HAVE_PKTINFO 1" >>confdefs.h
  13341. else
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13343. $as_echo "no" >&6; }
  13344. fi
  13345. rm -f core conftest.err conftest.$ac_objext \
  13346. conftest$ac_exeext conftest.$ac_ext
  13347. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  13348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  13349. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  13350. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13351. $as_echo_n "(cached) " >&6
  13352. else
  13353. ac_func_search_save_LIBS=$LIBS
  13354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13355. /* end confdefs.h. */
  13356. /* Override any GCC internal prototype to avoid an error.
  13357. Use char because int might match the return type of a GCC
  13358. builtin and then its argument prototype would still apply. */
  13359. #ifdef __cplusplus
  13360. extern "C"
  13361. #endif
  13362. char gethostbyname_r ();
  13363. int
  13364. main ()
  13365. {
  13366. return gethostbyname_r ();
  13367. ;
  13368. return 0;
  13369. }
  13370. _ACEOF
  13371. for ac_lib in '' socket nsl; do
  13372. if test -z "$ac_lib"; then
  13373. ac_res="none required"
  13374. else
  13375. ac_res=-l$ac_lib
  13376. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13377. fi
  13378. if ac_fn_c_try_link "$LINENO"; then :
  13379. ac_cv_search_gethostbyname_r=$ac_res
  13380. fi
  13381. rm -f core conftest.err conftest.$ac_objext \
  13382. conftest$ac_exeext
  13383. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13384. break
  13385. fi
  13386. done
  13387. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13388. else
  13389. ac_cv_search_gethostbyname_r=no
  13390. fi
  13391. rm conftest.$ac_ext
  13392. LIBS=$ac_func_search_save_LIBS
  13393. fi
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  13395. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  13396. ac_res=$ac_cv_search_gethostbyname_r
  13397. if test "$ac_res" != no; then :
  13398. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13399. fi
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  13401. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  13402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13403. /* end confdefs.h. */
  13404. #include <stdlib.h>
  13405. #include <netdb.h>
  13406. int
  13407. main ()
  13408. {
  13409. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  13410. ;
  13411. return 0;
  13412. }
  13413. _ACEOF
  13414. if ac_fn_c_try_link "$LINENO"; then :
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13416. $as_echo "yes" >&6; }
  13417. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  13418. else
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13420. $as_echo "no" >&6; }
  13421. fi
  13422. rm -f core conftest.err conftest.$ac_objext \
  13423. conftest$ac_exeext conftest.$ac_ext
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  13425. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  13426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13427. /* end confdefs.h. */
  13428. #include <stdlib.h>
  13429. #include <netdb.h>
  13430. int
  13431. main ()
  13432. {
  13433. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  13434. ;
  13435. return 0;
  13436. }
  13437. _ACEOF
  13438. if ac_fn_c_try_link "$LINENO"; then :
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13440. $as_echo "yes" >&6; }
  13441. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  13442. else
  13443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13444. $as_echo "no" >&6; }
  13445. fi
  13446. rm -f core conftest.err conftest.$ac_objext \
  13447. conftest$ac_exeext conftest.$ac_ext
  13448. ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  13449. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  13450. cat >>confdefs.h <<_ACEOF
  13451. #define HAVE_BYTESWAP_H 1
  13452. _ACEOF
  13453. fi
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  13455. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  13456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13457. /* end confdefs.h. */
  13458. #include <sys/endian.h>
  13459. int
  13460. main ()
  13461. {
  13462. int a = 1; int b = __swap16(a);
  13463. ;
  13464. return 0;
  13465. }
  13466. _ACEOF
  13467. if ac_fn_c_try_link "$LINENO"; then :
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13469. $as_echo "yes" >&6; }
  13470. $as_echo "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  13471. else
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13473. $as_echo "no" >&6; }
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext \
  13476. conftest$ac_exeext conftest.$ac_ext
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  13478. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  13479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13480. /* end confdefs.h. */
  13481. #include <sys/endian.h>
  13482. int
  13483. main ()
  13484. {
  13485. int a = 1; int b = bswap16(a);
  13486. ;
  13487. return 0;
  13488. }
  13489. _ACEOF
  13490. if ac_fn_c_try_link "$LINENO"; then :
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13492. $as_echo "yes" >&6; }
  13493. $as_echo "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  13494. else
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13496. $as_echo "no" >&6; }
  13497. fi
  13498. rm -f core conftest.err conftest.$ac_objext \
  13499. conftest$ac_exeext conftest.$ac_ext
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  13501. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  13502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13503. /* end confdefs.h. */
  13504. #include <locale.h>
  13505. int
  13506. main ()
  13507. {
  13508. locale_t lt = NULL
  13509. ;
  13510. return 0;
  13511. }
  13512. _ACEOF
  13513. if ac_fn_c_try_link "$LINENO"; then :
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13515. $as_echo "yes" >&6; }
  13516. $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  13517. else
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13519. $as_echo "no" >&6; }
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  13521. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  13522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13523. /* end confdefs.h. */
  13524. #include <xlocale.h>
  13525. int
  13526. main ()
  13527. {
  13528. locale_t lt = NULL
  13529. ;
  13530. return 0;
  13531. }
  13532. _ACEOF
  13533. if ac_fn_c_try_link "$LINENO"; then :
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13535. $as_echo "yes" >&6; }
  13536. $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  13537. else
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13539. $as_echo "no" >&6; }
  13540. fi
  13541. rm -f core conftest.err conftest.$ac_objext \
  13542. conftest$ac_exeext conftest.$ac_ext
  13543. fi
  13544. rm -f core conftest.err conftest.$ac_objext \
  13545. conftest$ac_exeext conftest.$ac_ext
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  13547. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  13548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13549. /* end confdefs.h. */
  13550. #include <fcntl.h>
  13551. int
  13552. main ()
  13553. {
  13554. int a = O_EVTONLY;
  13555. ;
  13556. return 0;
  13557. }
  13558. _ACEOF
  13559. if ac_fn_c_try_link "$LINENO"; then :
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13561. $as_echo "yes" >&6; }
  13562. $as_echo "#define HAVE_O_EVTONLY 1" >>confdefs.h
  13563. else
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13565. $as_echo "no" >&6; }
  13566. fi
  13567. rm -f core conftest.err conftest.$ac_objext \
  13568. conftest$ac_exeext conftest.$ac_ext
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  13570. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  13571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13572. /* end confdefs.h. */
  13573. #include <fcntl.h>
  13574. int
  13575. main ()
  13576. {
  13577. int a = O_SYMLINK;
  13578. ;
  13579. return 0;
  13580. }
  13581. _ACEOF
  13582. if ac_fn_c_try_link "$LINENO"; then :
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13584. $as_echo "yes" >&6; }
  13585. $as_echo "#define HAVE_O_SYMLINK 1" >>confdefs.h
  13586. else
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13588. $as_echo "no" >&6; }
  13589. fi
  13590. rm -f core conftest.err conftest.$ac_objext \
  13591. conftest$ac_exeext conftest.$ac_ext
  13592. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  13593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  13594. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  13595. saved_cppflags="${CPPFLAGS}"
  13596. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  13597. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  13598. fi
  13599. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  13600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13601. /* end confdefs.h. */
  13602. #include <pthread.h>
  13603. int
  13604. main ()
  13605. {
  13606. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  13607. int foo = 0;
  13608. #else
  13609. int foo = bar;
  13610. #endif
  13611. 0
  13612. ;
  13613. return 0;
  13614. }
  13615. _ACEOF
  13616. if ac_fn_c_try_compile "$LINENO"; then :
  13617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13618. $as_echo "yes" >&6; }
  13619. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  13620. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  13621. else
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13623. $as_echo "no" >&6; }
  13624. fi
  13625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13626. CPPFLAGS="${saved_cppflags}"
  13627. fi
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  13629. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  13630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13631. /* end confdefs.h. */
  13632. #include <pthread.h>
  13633. int
  13634. main ()
  13635. {
  13636. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  13637. ;
  13638. return 0;
  13639. }
  13640. _ACEOF
  13641. if ac_fn_c_try_link "$LINENO"; then :
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13643. $as_echo "yes" >&6; }
  13644. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  13645. else
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13647. $as_echo "no" >&6; }
  13648. fi
  13649. rm -f core conftest.err conftest.$ac_objext \
  13650. conftest$ac_exeext conftest.$ac_ext
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  13652. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  13653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13654. /* end confdefs.h. */
  13655. #include <pthread.h>
  13656. int
  13657. main ()
  13658. {
  13659. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  13660. ;
  13661. return 0;
  13662. }
  13663. _ACEOF
  13664. if ac_fn_c_try_link "$LINENO"; then :
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13666. $as_echo "yes" >&6; }
  13667. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  13668. else
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13670. $as_echo "no" >&6; }
  13671. fi
  13672. rm -f core conftest.err conftest.$ac_objext \
  13673. conftest$ac_exeext conftest.$ac_ext
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h" >&5
  13675. $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h... " >&6; }
  13676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13677. /* end confdefs.h. */
  13678. #include <pthread.h>
  13679. int
  13680. main ()
  13681. {
  13682. int a = PTHREAD_MUTEX_ADAPTIVE_NP;
  13683. ;
  13684. return 0;
  13685. }
  13686. _ACEOF
  13687. if ac_fn_c_try_link "$LINENO"; then :
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13689. $as_echo "yes" >&6; }
  13690. $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
  13691. else
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13693. $as_echo "no" >&6; }
  13694. fi
  13695. rm -f core conftest.err conftest.$ac_objext \
  13696. conftest$ac_exeext conftest.$ac_ext
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spinlock_t in pthread.h" >&5
  13698. $as_echo_n "checking for pthread_spinlock_t in pthread.h... " >&6; }
  13699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13700. /* end confdefs.h. */
  13701. #include <pthread.h>
  13702. int
  13703. main ()
  13704. {
  13705. pthread_spinlock_t spin;
  13706. ;
  13707. return 0;
  13708. }
  13709. _ACEOF
  13710. if ac_fn_c_try_link "$LINENO"; then :
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13712. $as_echo "yes" >&6; }
  13713. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  13714. else
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13716. $as_echo "no" >&6; }
  13717. fi
  13718. rm -f core conftest.err conftest.$ac_objext \
  13719. conftest$ac_exeext conftest.$ac_ext
  13720. save_LIBS="$LIBS"
  13721. save_CFLAGS="$CFLAGS"
  13722. LIBS="$PTHREAD_LIBS $LIBS"
  13723. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  13725. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. #include <pthread.h>
  13729. #include <time.h>
  13730. int
  13731. main ()
  13732. {
  13733. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  13734. ;
  13735. return 0;
  13736. }
  13737. _ACEOF
  13738. if ac_fn_c_try_link "$LINENO"; then :
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13740. $as_echo "yes" >&6; }
  13741. ac_cv_pthread_rwlock_timedwrlock="yes"
  13742. else
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13744. $as_echo "no" >&6; }
  13745. ac_cv_pthread_rwlock_timedwrlock="no"
  13746. fi
  13747. rm -f core conftest.err conftest.$ac_objext \
  13748. conftest$ac_exeext conftest.$ac_ext
  13749. # Some platforms define sem_init(), but only support sem_open(). joyous.
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working unnamed semaphores" >&5
  13751. $as_echo_n "checking for working unnamed semaphores... " >&6; }
  13752. if test "$cross_compiling" = yes; then :
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  13754. $as_echo "cross-compile" >&6; }
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5
  13756. $as_echo "$as_me: WARNING: result yes guessed because of cross compilation" >&6;}
  13757. $as_echo "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
  13758. else
  13759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13760. /* end confdefs.h. */
  13761. #include <semaphore.h>
  13762. int
  13763. main ()
  13764. {
  13765. sem_t sem; return sem_init(&sem, 0, 0);
  13766. ;
  13767. return 0;
  13768. }
  13769. _ACEOF
  13770. if ac_fn_c_try_run "$LINENO"; then :
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13772. $as_echo "yes" >&6; }
  13773. $as_echo "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
  13774. else
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13776. $as_echo "no" >&6; }
  13777. fi
  13778. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13779. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13780. fi
  13781. LIBS="$save_LIBS"
  13782. CFLAGS="$save_CFLAGS"
  13783. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  13784. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  13785. fi
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  13787. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  13788. saved_CFLAGS="${CFLAGS}"
  13789. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  13790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13791. /* end confdefs.h. */
  13792. #include <pthread.h>
  13793. void empty(){}
  13794. int
  13795. main ()
  13796. {
  13797. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  13798. ;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. if ac_fn_c_try_compile "$LINENO"; then :
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13804. $as_echo "no" >&6; }
  13805. ac_cv_pthread_once_needsbraces="no"
  13806. else
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13808. $as_echo "yes" >&6; }
  13809. ac_cv_pthread_once_needsbraces="yes"
  13810. fi
  13811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13812. CFLAGS="${saved_CFLAGS}"
  13813. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  13814. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  13815. fi
  13816. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  13818. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  13819. saved_cppflags="${CPPFLAGS}"
  13820. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  13821. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  13822. fi
  13823. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. #include <pthread.h>
  13827. int
  13828. main ()
  13829. {
  13830. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  13831. int foo = 0;
  13832. #else
  13833. int foo = bar;
  13834. #endif
  13835. 0
  13836. ;
  13837. return 0;
  13838. }
  13839. _ACEOF
  13840. if ac_fn_c_try_compile "$LINENO"; then :
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13842. $as_echo "yes" >&6; }
  13843. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  13844. $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  13845. else
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13847. $as_echo "no" >&6; }
  13848. fi
  13849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13850. CPPFLAGS="${saved_cppflags}"
  13851. fi
  13852. # Can we compare a mutex to its initial value?
  13853. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  13855. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  13856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13857. /* end confdefs.h. */
  13858. #include <pthread.h>
  13859. int
  13860. main ()
  13861. {
  13862. pthread_mutex_t lock;
  13863. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  13864. return 0;
  13865. }
  13866. return 0
  13867. ;
  13868. return 0;
  13869. }
  13870. _ACEOF
  13871. if ac_fn_c_try_link "$LINENO"; then :
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13873. $as_echo "yes" >&6; }
  13874. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  13875. else
  13876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13877. $as_echo "no" >&6; }
  13878. fi
  13879. rm -f core conftest.err conftest.$ac_objext \
  13880. conftest$ac_exeext conftest.$ac_ext
  13881. #if test "${cross_compiling}" = "no";
  13882. #then
  13883. #AC_MSG_CHECKING(for working epoll support)
  13884. #AC_LINK_IFELSE(
  13885. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  13886. # if (res < 0)
  13887. # return 1;
  13888. # close (res);
  13889. # return 0;]),
  13890. #AC_MSG_RESULT(yes)
  13891. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  13892. #AC_MSG_RESULT(no)
  13893. #)
  13894. #fi
  13895. # for FreeBSD thr_self
  13896. for ac_header in sys/thr.h
  13897. do :
  13898. ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
  13899. if test "x$ac_cv_header_sys_thr_h" = xyes; then :
  13900. cat >>confdefs.h <<_ACEOF
  13901. #define HAVE_SYS_THR_H 1
  13902. _ACEOF
  13903. fi
  13904. done
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  13906. $as_echo_n "checking for compiler atomic operations... " >&6; }
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. int
  13910. main ()
  13911. {
  13912. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  13913. ;
  13914. return 0;
  13915. }
  13916. _ACEOF
  13917. if ac_fn_c_try_link "$LINENO"; then :
  13918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13919. $as_echo "yes" >&6; }
  13920. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  13921. else
  13922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13923. $as_echo "no" >&6; }
  13924. fi
  13925. rm -f core conftest.err conftest.$ac_objext \
  13926. conftest$ac_exeext conftest.$ac_ext
  13927. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  13929. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  13930. if test "$cross_compiling" = yes; then :
  13931. # It's unlikely an embedded system will have this.
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  13933. $as_echo "unknown" >&6; }
  13934. else
  13935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13936. /* end confdefs.h. */
  13937. #include <stdio.h>
  13938. int
  13939. main ()
  13940. {
  13941. printf("%s", NULL)
  13942. ;
  13943. return 0;
  13944. }
  13945. _ACEOF
  13946. if ac_fn_c_try_run "$LINENO"; then :
  13947. $as_echo "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13949. $as_echo "yes" >&6; }
  13950. else
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13952. $as_echo "no" >&6; }
  13953. fi
  13954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  13958. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  13959. if test "$cross_compiling" = yes; then :
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  13961. $as_echo "cross-compile" >&6; }
  13962. else
  13963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13964. /* end confdefs.h. */
  13965. #include <stdio.h>
  13966. #include <sys/select.h>
  13967. #include <sys/time.h>
  13968. #include <sys/resource.h>
  13969. #include <string.h>
  13970. #include <errno.h>
  13971. #include <stdlib.h>
  13972. #include <sys/types.h>
  13973. #include <sys/stat.h>
  13974. #include <fcntl.h>
  13975. #include <unistd.h>
  13976. int
  13977. main ()
  13978. {
  13979. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  13980. int fd0, fd1;
  13981. struct timeval tv = { 0, };
  13982. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  13983. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  13984. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  13985. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  13986. FD_SET(fd0, (fd_set *) &fds);
  13987. FD_SET(fd1, (fd_set *) &fds);
  13988. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  13989. exit(0)
  13990. ;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. if ac_fn_c_try_run "$LINENO"; then :
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13996. $as_echo "yes" >&6; }
  13997. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  13998. else
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14000. $as_echo "no" >&6; }
  14001. fi
  14002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14004. fi
  14005. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  14006. if test "$cross_compiling" = yes; then :
  14007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14009. as_fn_error $? "cannot run test program while cross compiling
  14010. See \`config.log' for more details" "$LINENO" 5; }
  14011. else
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. #include <unistd.h>
  14015. #include <sys/types.h>
  14016. #include <stdlib.h>
  14017. int
  14018. main ()
  14019. {
  14020. if (getuid() != 0) { exit(1); }
  14021. ;
  14022. return 0;
  14023. }
  14024. _ACEOF
  14025. if ac_fn_c_try_run "$LINENO"; then :
  14026. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  14027. fi
  14028. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14029. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14030. fi
  14031. fi
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  14033. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  14034. saved_CFLAGS="$CFLAGS"
  14035. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14036. if test "x" = "x"
  14037. then
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  14041. int
  14042. main ()
  14043. {
  14044. ;
  14045. return 0;
  14046. }
  14047. _ACEOF
  14048. if ac_fn_c_try_compile "$LINENO"; then :
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14050. $as_echo "yes" >&6; }
  14051. cat >>confdefs.h <<_ACEOF
  14052. #define HAVE_ATTRIBUTE_pure 1
  14053. _ACEOF
  14054. else
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14056. $as_echo "no" >&6; }
  14057. fi
  14058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14059. else
  14060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14061. /* end confdefs.h. */
  14062. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14063. int
  14064. main ()
  14065. {
  14066. ;
  14067. return 0;
  14068. }
  14069. _ACEOF
  14070. if ac_fn_c_try_compile "$LINENO"; then :
  14071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14072. $as_echo "yes" >&6; }
  14073. cat >>confdefs.h <<_ACEOF
  14074. #define HAVE_ATTRIBUTE_pure 1
  14075. _ACEOF
  14076. else
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14078. $as_echo "no" >&6; }
  14079. fi
  14080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14081. fi
  14082. CFLAGS="$saved_CFLAGS"
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  14084. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  14085. saved_CFLAGS="$CFLAGS"
  14086. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14087. if test "x" = "x"
  14088. then
  14089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14090. /* end confdefs.h. */
  14091. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  14092. int
  14093. main ()
  14094. {
  14095. ;
  14096. return 0;
  14097. }
  14098. _ACEOF
  14099. if ac_fn_c_try_compile "$LINENO"; then :
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14101. $as_echo "yes" >&6; }
  14102. cat >>confdefs.h <<_ACEOF
  14103. #define HAVE_ATTRIBUTE_malloc 1
  14104. _ACEOF
  14105. else
  14106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14107. $as_echo "no" >&6; }
  14108. fi
  14109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14110. else
  14111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14112. /* end confdefs.h. */
  14113. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14114. int
  14115. main ()
  14116. {
  14117. ;
  14118. return 0;
  14119. }
  14120. _ACEOF
  14121. if ac_fn_c_try_compile "$LINENO"; then :
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14123. $as_echo "yes" >&6; }
  14124. cat >>confdefs.h <<_ACEOF
  14125. #define HAVE_ATTRIBUTE_malloc 1
  14126. _ACEOF
  14127. else
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14129. $as_echo "no" >&6; }
  14130. fi
  14131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14132. fi
  14133. CFLAGS="$saved_CFLAGS"
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  14135. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  14136. saved_CFLAGS="$CFLAGS"
  14137. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14138. if test "x" = "x"
  14139. then
  14140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14141. /* end confdefs.h. */
  14142. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  14143. int
  14144. main ()
  14145. {
  14146. ;
  14147. return 0;
  14148. }
  14149. _ACEOF
  14150. if ac_fn_c_try_compile "$LINENO"; then :
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14152. $as_echo "yes" >&6; }
  14153. cat >>confdefs.h <<_ACEOF
  14154. #define HAVE_ATTRIBUTE_const 1
  14155. _ACEOF
  14156. else
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14158. $as_echo "no" >&6; }
  14159. fi
  14160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14161. else
  14162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14163. /* end confdefs.h. */
  14164. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14165. int
  14166. main ()
  14167. {
  14168. ;
  14169. return 0;
  14170. }
  14171. _ACEOF
  14172. if ac_fn_c_try_compile "$LINENO"; then :
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14174. $as_echo "yes" >&6; }
  14175. cat >>confdefs.h <<_ACEOF
  14176. #define HAVE_ATTRIBUTE_const 1
  14177. _ACEOF
  14178. else
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14180. $as_echo "no" >&6; }
  14181. fi
  14182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14183. fi
  14184. CFLAGS="$saved_CFLAGS"
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  14186. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  14187. saved_CFLAGS="$CFLAGS"
  14188. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14189. if test "x" = "x"
  14190. then
  14191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14192. /* end confdefs.h. */
  14193. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  14194. int
  14195. main ()
  14196. {
  14197. ;
  14198. return 0;
  14199. }
  14200. _ACEOF
  14201. if ac_fn_c_try_compile "$LINENO"; then :
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14203. $as_echo "yes" >&6; }
  14204. cat >>confdefs.h <<_ACEOF
  14205. #define HAVE_ATTRIBUTE_unused 1
  14206. _ACEOF
  14207. else
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14209. $as_echo "no" >&6; }
  14210. fi
  14211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14212. else
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14216. int
  14217. main ()
  14218. {
  14219. ;
  14220. return 0;
  14221. }
  14222. _ACEOF
  14223. if ac_fn_c_try_compile "$LINENO"; then :
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14225. $as_echo "yes" >&6; }
  14226. cat >>confdefs.h <<_ACEOF
  14227. #define HAVE_ATTRIBUTE_unused 1
  14228. _ACEOF
  14229. else
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14231. $as_echo "no" >&6; }
  14232. fi
  14233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14234. fi
  14235. CFLAGS="$saved_CFLAGS"
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  14237. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  14238. saved_CFLAGS="$CFLAGS"
  14239. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14240. if test "x" = "x"
  14241. then
  14242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14243. /* end confdefs.h. */
  14244. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  14245. int
  14246. main ()
  14247. {
  14248. ;
  14249. return 0;
  14250. }
  14251. _ACEOF
  14252. if ac_fn_c_try_compile "$LINENO"; then :
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14254. $as_echo "yes" >&6; }
  14255. cat >>confdefs.h <<_ACEOF
  14256. #define HAVE_ATTRIBUTE_always_inline 1
  14257. _ACEOF
  14258. else
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14260. $as_echo "no" >&6; }
  14261. fi
  14262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14263. else
  14264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14265. /* end confdefs.h. */
  14266. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14267. int
  14268. main ()
  14269. {
  14270. ;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_compile "$LINENO"; then :
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14276. $as_echo "yes" >&6; }
  14277. cat >>confdefs.h <<_ACEOF
  14278. #define HAVE_ATTRIBUTE_always_inline 1
  14279. _ACEOF
  14280. else
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14282. $as_echo "no" >&6; }
  14283. fi
  14284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14285. fi
  14286. CFLAGS="$saved_CFLAGS"
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  14288. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  14289. saved_CFLAGS="$CFLAGS"
  14290. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14291. if test "x" = "x"
  14292. then
  14293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14294. /* end confdefs.h. */
  14295. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  14296. int
  14297. main ()
  14298. {
  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. cat >>confdefs.h <<_ACEOF
  14307. #define HAVE_ATTRIBUTE_deprecated 1
  14308. _ACEOF
  14309. else
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14311. $as_echo "no" >&6; }
  14312. fi
  14313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14314. else
  14315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14316. /* end confdefs.h. */
  14317. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14318. int
  14319. main ()
  14320. {
  14321. ;
  14322. return 0;
  14323. }
  14324. _ACEOF
  14325. if ac_fn_c_try_compile "$LINENO"; then :
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14327. $as_echo "yes" >&6; }
  14328. cat >>confdefs.h <<_ACEOF
  14329. #define HAVE_ATTRIBUTE_deprecated 1
  14330. _ACEOF
  14331. else
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14333. $as_echo "no" >&6; }
  14334. fi
  14335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14336. fi
  14337. CFLAGS="$saved_CFLAGS"
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  14339. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  14340. saved_CFLAGS="$CFLAGS"
  14341. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14342. if test "x" = "x"
  14343. then
  14344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14345. /* end confdefs.h. */
  14346. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  14347. int
  14348. main ()
  14349. {
  14350. ;
  14351. return 0;
  14352. }
  14353. _ACEOF
  14354. if ac_fn_c_try_compile "$LINENO"; then :
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14356. $as_echo "yes" >&6; }
  14357. cat >>confdefs.h <<_ACEOF
  14358. #define HAVE_ATTRIBUTE_sentinel 1
  14359. _ACEOF
  14360. else
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14362. $as_echo "no" >&6; }
  14363. fi
  14364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14365. else
  14366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14367. /* end confdefs.h. */
  14368. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14369. int
  14370. main ()
  14371. {
  14372. ;
  14373. return 0;
  14374. }
  14375. _ACEOF
  14376. if ac_fn_c_try_compile "$LINENO"; then :
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14378. $as_echo "yes" >&6; }
  14379. cat >>confdefs.h <<_ACEOF
  14380. #define HAVE_ATTRIBUTE_sentinel 1
  14381. _ACEOF
  14382. else
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. fi
  14386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14387. fi
  14388. CFLAGS="$saved_CFLAGS"
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  14390. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  14391. saved_CFLAGS="$CFLAGS"
  14392. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14393. if test "x" = "x"
  14394. then
  14395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14396. /* end confdefs.h. */
  14397. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  14398. int
  14399. main ()
  14400. {
  14401. ;
  14402. return 0;
  14403. }
  14404. _ACEOF
  14405. if ac_fn_c_try_compile "$LINENO"; then :
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14407. $as_echo "yes" >&6; }
  14408. cat >>confdefs.h <<_ACEOF
  14409. #define HAVE_ATTRIBUTE_warn_unused_result 1
  14410. _ACEOF
  14411. else
  14412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14413. $as_echo "no" >&6; }
  14414. fi
  14415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14416. else
  14417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14418. /* end confdefs.h. */
  14419. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14420. int
  14421. main ()
  14422. {
  14423. ;
  14424. return 0;
  14425. }
  14426. _ACEOF
  14427. if ac_fn_c_try_compile "$LINENO"; then :
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14429. $as_echo "yes" >&6; }
  14430. cat >>confdefs.h <<_ACEOF
  14431. #define HAVE_ATTRIBUTE_warn_unused_result 1
  14432. _ACEOF
  14433. else
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14435. $as_echo "no" >&6; }
  14436. fi
  14437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14438. fi
  14439. CFLAGS="$saved_CFLAGS"
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute may_alias' support" >&5
  14441. $as_echo_n "checking for compiler 'attribute may_alias' support... " >&6; }
  14442. saved_CFLAGS="$CFLAGS"
  14443. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14444. if test "x" = "x"
  14445. then
  14446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14447. /* end confdefs.h. */
  14448. void __attribute__((may_alias)) *test(void *muffin, ...) {return (void *) 0;}
  14449. int
  14450. main ()
  14451. {
  14452. ;
  14453. return 0;
  14454. }
  14455. _ACEOF
  14456. if ac_fn_c_try_compile "$LINENO"; then :
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14458. $as_echo "yes" >&6; }
  14459. cat >>confdefs.h <<_ACEOF
  14460. #define HAVE_ATTRIBUTE_may_alias 1
  14461. _ACEOF
  14462. else
  14463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14464. $as_echo "no" >&6; }
  14465. fi
  14466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14467. else
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14471. int
  14472. main ()
  14473. {
  14474. ;
  14475. return 0;
  14476. }
  14477. _ACEOF
  14478. if ac_fn_c_try_compile "$LINENO"; then :
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14480. $as_echo "yes" >&6; }
  14481. cat >>confdefs.h <<_ACEOF
  14482. #define HAVE_ATTRIBUTE_may_alias 1
  14483. _ACEOF
  14484. else
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14486. $as_echo "no" >&6; }
  14487. fi
  14488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14489. fi
  14490. CFLAGS="$saved_CFLAGS"
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute constructor' support" >&5
  14492. $as_echo_n "checking for compiler 'attribute constructor' support... " >&6; }
  14493. saved_CFLAGS="$CFLAGS"
  14494. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14495. if test "x" = "x"
  14496. then
  14497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14498. /* end confdefs.h. */
  14499. void __attribute__((constructor)) *test(void *muffin, ...) {return (void *) 0;}
  14500. int
  14501. main ()
  14502. {
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_compile "$LINENO"; then :
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14509. $as_echo "yes" >&6; }
  14510. cat >>confdefs.h <<_ACEOF
  14511. #define HAVE_ATTRIBUTE_constructor 1
  14512. _ACEOF
  14513. else
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14515. $as_echo "no" >&6; }
  14516. fi
  14517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14518. else
  14519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14520. /* end confdefs.h. */
  14521. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14522. int
  14523. main ()
  14524. {
  14525. ;
  14526. return 0;
  14527. }
  14528. _ACEOF
  14529. if ac_fn_c_try_compile "$LINENO"; then :
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14531. $as_echo "yes" >&6; }
  14532. cat >>confdefs.h <<_ACEOF
  14533. #define HAVE_ATTRIBUTE_constructor 1
  14534. _ACEOF
  14535. else
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14537. $as_echo "no" >&6; }
  14538. fi
  14539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14540. fi
  14541. CFLAGS="$saved_CFLAGS"
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute destructor' support" >&5
  14543. $as_echo_n "checking for compiler 'attribute destructor' support... " >&6; }
  14544. saved_CFLAGS="$CFLAGS"
  14545. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14546. if test "x" = "x"
  14547. then
  14548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14549. /* end confdefs.h. */
  14550. void __attribute__((destructor)) *test(void *muffin, ...) {return (void *) 0;}
  14551. int
  14552. main ()
  14553. {
  14554. ;
  14555. return 0;
  14556. }
  14557. _ACEOF
  14558. if ac_fn_c_try_compile "$LINENO"; then :
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14560. $as_echo "yes" >&6; }
  14561. cat >>confdefs.h <<_ACEOF
  14562. #define HAVE_ATTRIBUTE_destructor 1
  14563. _ACEOF
  14564. else
  14565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14566. $as_echo "no" >&6; }
  14567. fi
  14568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14569. else
  14570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14571. /* end confdefs.h. */
  14572. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14573. int
  14574. main ()
  14575. {
  14576. ;
  14577. return 0;
  14578. }
  14579. _ACEOF
  14580. if ac_fn_c_try_compile "$LINENO"; then :
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14582. $as_echo "yes" >&6; }
  14583. cat >>confdefs.h <<_ACEOF
  14584. #define HAVE_ATTRIBUTE_destructor 1
  14585. _ACEOF
  14586. else
  14587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14588. $as_echo "no" >&6; }
  14589. fi
  14590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14591. fi
  14592. CFLAGS="$saved_CFLAGS"
  14593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  14594. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  14595. saved_CFLAGS="${CFLAGS}"
  14596. CFLAGS="${CFLAGS} -ffunction-sections"
  14597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14598. /* end confdefs.h. */
  14599. int
  14600. main ()
  14601. {
  14602. int x = 1;
  14603. ;
  14604. return 0;
  14605. }
  14606. _ACEOF
  14607. if ac_fn_c_try_compile "$LINENO"; then :
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14609. $as_echo "yes" >&6; }
  14610. saved_LDFLAGS="${LDFLAGS}"
  14611. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  14612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  14613. $as_echo_n "checking for --gc-sections support... " >&6; }
  14614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14615. /* end confdefs.h. */
  14616. int
  14617. main ()
  14618. {
  14619. int x = 1;
  14620. ;
  14621. return 0;
  14622. }
  14623. _ACEOF
  14624. if ac_fn_c_try_link "$LINENO"; then :
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14626. $as_echo "yes" >&6; }
  14627. GC_CFLAGS="-ffunction-sections"
  14628. GC_LDFLAGS="-Wl,--gc-sections"
  14629. else
  14630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14631. $as_echo "no" >&6; }
  14632. fi
  14633. rm -f core conftest.err conftest.$ac_objext \
  14634. conftest$ac_exeext conftest.$ac_ext
  14635. LDFLAGS="${saved_LDFLAGS}"
  14636. else
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14638. $as_echo "no" >&6; }
  14639. fi
  14640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14641. CFLAGS="${saved_CFLAGS}"
  14642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  14643. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  14644. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14646. $as_echo "yes" >&6; }
  14647. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  14648. else
  14649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14650. $as_echo "no" >&6; }
  14651. AST_DECLARATION_AFTER_STATEMENT=
  14652. fi
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
  14654. $as_echo_n "checking for -Wtrampolines support... " >&6; }
  14655. if $(${CC} -Wtrampolines -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14657. $as_echo "yes" >&6; }
  14658. AST_TRAMPOLINES=-Wtrampolines
  14659. else
  14660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14661. $as_echo "no" >&6; }
  14662. AST_TRAMPOLINES=
  14663. fi
  14664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  14665. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  14666. if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14668. $as_echo "yes" >&6; }
  14669. AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
  14670. else
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14672. $as_echo "no" >&6; }
  14673. AST_FORTIFY_SOURCE=
  14674. fi
  14675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  14676. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  14677. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14679. $as_echo "yes" >&6; }
  14680. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  14681. else
  14682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14683. $as_echo "no" >&6; }
  14684. AST_NO_STRICT_OVERFLOW=
  14685. fi
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  14687. $as_echo_n "checking for -Wshadow... " >&6; }
  14688. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14690. $as_echo "yes" >&6; }
  14691. AST_SHADOW_WARNINGS=-Wshadow
  14692. else
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14694. $as_echo "no" >&6; }
  14695. AST_SHADOW_WARNINGS=
  14696. fi
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
  14698. $as_echo_n "checking for -march=native support... " >&6; }
  14699. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14700. if test "${CONFIG_CFLAGS}" = ""; then
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14702. $as_echo "yes" >&6; }
  14703. AST_NATIVE_ARCH=1
  14704. else
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
  14706. $as_echo "user CFLAGS present" >&6; }
  14707. AST_NATIVE_ARCH=
  14708. fi
  14709. else
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14711. $as_echo "no" >&6; }
  14712. AST_NATIVE_ARCH=
  14713. fi
  14714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14715. /* end confdefs.h. */
  14716. int
  14717. main ()
  14718. {
  14719. #if defined(__clang__)
  14720. choke
  14721. #endif
  14722. ;
  14723. return 0;
  14724. }
  14725. _ACEOF
  14726. if ac_fn_c_try_link "$LINENO"; then :
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fnested-functions" >&5
  14728. $as_echo_n "checking for gcc -fnested-functions... " >&6; }
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. int
  14732. main ()
  14733. {
  14734. auto void foo(void); void foo(void) {}
  14735. ;
  14736. return 0;
  14737. }
  14738. _ACEOF
  14739. if ac_fn_c_try_compile "$LINENO"; then :
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14741. $as_echo "no" >&6; }
  14742. AST_NESTED_FUNCTIONS=
  14743. else
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14745. $as_echo "yes" >&6; }
  14746. AST_NESTED_FUNCTIONS=-fnested-functions
  14747. fi
  14748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14749. else
  14750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
  14751. $as_echo_n "checking for clang -fblocks... " >&6; }
  14752. if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
  14753. AST_CLANG_BLOCKS_LIBS=""
  14754. AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14756. $as_echo "yes" >&6; }
  14757. elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
  14758. AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
  14759. AST_CLANG_BLOCKS="-fblocks"
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14761. $as_echo "yes" >&6; }
  14762. else
  14763. as_fn_error $? "\"BlocksRuntime is required for clang\"" "$LINENO" 5
  14764. fi
  14765. fi
  14766. rm -f core conftest.err conftest.$ac_objext \
  14767. conftest$ac_exeext conftest.$ac_ext
  14768. # Check whether --enable-rpath was given.
  14769. if test "${enable_rpath+set}" = set; then :
  14770. enableval=$enable_rpath; case "${enableval}" in
  14771. y|ye|yes) check_rpath=yes ;;
  14772. n|no) check_rpath=no ;;
  14773. *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
  14774. esac
  14775. else
  14776. check_rpath=yes
  14777. fi
  14778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  14779. $as_echo_n "checking whether to use rpath... " >&6; }
  14780. AST_RPATH=
  14781. if test "${check_rpath}" != yes; then
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
  14783. $as_echo "skipped" >&6; }
  14784. elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  14786. $as_echo "not needed" >&6; }
  14787. else
  14788. AST_RPATH="-Wl,-rpath,${libdir}"
  14789. fi
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  14791. $as_echo_n "checking for sysinfo... " >&6; }
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. #include <sys/sysinfo.h>
  14795. int
  14796. main ()
  14797. {
  14798. struct sysinfo sys_info; int uptime = sys_info.uptime
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. if ac_fn_c_try_link "$LINENO"; then :
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14805. $as_echo "yes" >&6; }
  14806. $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
  14807. else
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14809. $as_echo "no" >&6; }
  14810. fi
  14811. rm -f core conftest.err conftest.$ac_objext \
  14812. conftest$ac_exeext conftest.$ac_ext
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  14814. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  14815. if ${ac_cv_search_res_9_ninit+:} false; then :
  14816. $as_echo_n "(cached) " >&6
  14817. else
  14818. ac_func_search_save_LIBS=$LIBS
  14819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14820. /* end confdefs.h. */
  14821. /* Override any GCC internal prototype to avoid an error.
  14822. Use char because int might match the return type of a GCC
  14823. builtin and then its argument prototype would still apply. */
  14824. #ifdef __cplusplus
  14825. extern "C"
  14826. #endif
  14827. char res_9_ninit ();
  14828. int
  14829. main ()
  14830. {
  14831. return res_9_ninit ();
  14832. ;
  14833. return 0;
  14834. }
  14835. _ACEOF
  14836. for ac_lib in '' resolv; do
  14837. if test -z "$ac_lib"; then
  14838. ac_res="none required"
  14839. else
  14840. ac_res=-l$ac_lib
  14841. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14842. fi
  14843. if ac_fn_c_try_link "$LINENO"; then :
  14844. ac_cv_search_res_9_ninit=$ac_res
  14845. fi
  14846. rm -f core conftest.err conftest.$ac_objext \
  14847. conftest$ac_exeext
  14848. if ${ac_cv_search_res_9_ninit+:} false; then :
  14849. break
  14850. fi
  14851. done
  14852. if ${ac_cv_search_res_9_ninit+:} false; then :
  14853. else
  14854. ac_cv_search_res_9_ninit=no
  14855. fi
  14856. rm conftest.$ac_ext
  14857. LIBS=$ac_func_search_save_LIBS
  14858. fi
  14859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  14860. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  14861. ac_res=$ac_cv_search_res_9_ninit
  14862. if test "$ac_res" != no; then :
  14863. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14864. fi
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  14866. $as_echo_n "checking for res_ninit... " >&6; }
  14867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14868. /* end confdefs.h. */
  14869. #ifdef HAVE_SYS_SOCKET_H
  14870. #include <sys/socket.h>
  14871. #endif
  14872. #ifdef HAVE_NETINET_IN_H
  14873. #include <netinet/in.h>
  14874. #endif
  14875. #ifdef HAVE_ARPA_NAMESER_H
  14876. #include <arpa/nameser.h>
  14877. #endif
  14878. #include <resolv.h>
  14879. int
  14880. main ()
  14881. {
  14882. int foo = res_ninit(NULL);
  14883. ;
  14884. return 0;
  14885. }
  14886. _ACEOF
  14887. if ac_fn_c_try_link "$LINENO"; then :
  14888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14889. $as_echo "yes" >&6; }
  14890. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  14892. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  14893. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14894. $as_echo_n "(cached) " >&6
  14895. else
  14896. ac_func_search_save_LIBS=$LIBS
  14897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14898. /* end confdefs.h. */
  14899. /* Override any GCC internal prototype to avoid an error.
  14900. Use char because int might match the return type of a GCC
  14901. builtin and then its argument prototype would still apply. */
  14902. #ifdef __cplusplus
  14903. extern "C"
  14904. #endif
  14905. char res_9_ndestroy ();
  14906. int
  14907. main ()
  14908. {
  14909. return res_9_ndestroy ();
  14910. ;
  14911. return 0;
  14912. }
  14913. _ACEOF
  14914. for ac_lib in '' resolv; do
  14915. if test -z "$ac_lib"; then
  14916. ac_res="none required"
  14917. else
  14918. ac_res=-l$ac_lib
  14919. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14920. fi
  14921. if ac_fn_c_try_link "$LINENO"; then :
  14922. ac_cv_search_res_9_ndestroy=$ac_res
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext \
  14925. conftest$ac_exeext
  14926. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14927. break
  14928. fi
  14929. done
  14930. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14931. else
  14932. ac_cv_search_res_9_ndestroy=no
  14933. fi
  14934. rm conftest.$ac_ext
  14935. LIBS=$ac_func_search_save_LIBS
  14936. fi
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  14938. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  14939. ac_res=$ac_cv_search_res_9_ndestroy
  14940. if test "$ac_res" != no; then :
  14941. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14942. fi
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  14944. $as_echo_n "checking for res_ndestroy... " >&6; }
  14945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14946. /* end confdefs.h. */
  14947. #ifdef HAVE_SYS_SOCKET_H
  14948. #include <sys/socket.h>
  14949. #endif
  14950. #ifdef HAVE_NETINET_IN_H
  14951. #include <netinet/in.h>
  14952. #endif
  14953. #ifdef HAVE_ARPA_NAMESER_H
  14954. #include <arpa/nameser.h>
  14955. #endif
  14956. #include <resolv.h>
  14957. int
  14958. main ()
  14959. {
  14960. res_ndestroy(NULL);
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_link "$LINENO"; then :
  14966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14967. $as_echo "yes" >&6; }
  14968. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  14969. else
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14971. $as_echo "no" >&6; }
  14972. fi
  14973. rm -f core conftest.err conftest.$ac_objext \
  14974. conftest$ac_exeext conftest.$ac_ext
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  14976. $as_echo_n "checking for library containing res_9_close... " >&6; }
  14977. if ${ac_cv_search_res_9_close+:} false; then :
  14978. $as_echo_n "(cached) " >&6
  14979. else
  14980. ac_func_search_save_LIBS=$LIBS
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. /* Override any GCC internal prototype to avoid an error.
  14984. Use char because int might match the return type of a GCC
  14985. builtin and then its argument prototype would still apply. */
  14986. #ifdef __cplusplus
  14987. extern "C"
  14988. #endif
  14989. char res_9_close ();
  14990. int
  14991. main ()
  14992. {
  14993. return res_9_close ();
  14994. ;
  14995. return 0;
  14996. }
  14997. _ACEOF
  14998. for ac_lib in '' resolv; do
  14999. if test -z "$ac_lib"; then
  15000. ac_res="none required"
  15001. else
  15002. ac_res=-l$ac_lib
  15003. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15004. fi
  15005. if ac_fn_c_try_link "$LINENO"; then :
  15006. ac_cv_search_res_9_close=$ac_res
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext \
  15009. conftest$ac_exeext
  15010. if ${ac_cv_search_res_9_close+:} false; then :
  15011. break
  15012. fi
  15013. done
  15014. if ${ac_cv_search_res_9_close+:} false; then :
  15015. else
  15016. ac_cv_search_res_9_close=no
  15017. fi
  15018. rm conftest.$ac_ext
  15019. LIBS=$ac_func_search_save_LIBS
  15020. fi
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  15022. $as_echo "$ac_cv_search_res_9_close" >&6; }
  15023. ac_res=$ac_cv_search_res_9_close
  15024. if test "$ac_res" != no; then :
  15025. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15026. fi
  15027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  15028. $as_echo_n "checking for res_close... " >&6; }
  15029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15030. /* end confdefs.h. */
  15031. #ifdef HAVE_SYS_SOCKET_H
  15032. #include <sys/socket.h>
  15033. #endif
  15034. #ifdef HAVE_NETINET_IN_H
  15035. #include <netinet/in.h>
  15036. #endif
  15037. #ifdef HAVE_ARPA_NAMESER_H
  15038. #include <arpa/nameser.h>
  15039. #endif
  15040. #include <resolv.h>
  15041. int
  15042. main ()
  15043. {
  15044. res_close();
  15045. ;
  15046. return 0;
  15047. }
  15048. _ACEOF
  15049. if ac_fn_c_try_link "$LINENO"; then :
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15051. $as_echo "yes" >&6; }
  15052. $as_echo "#define HAVE_RES_CLOSE 1" >>confdefs.h
  15053. else
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15055. $as_echo "no" >&6; }
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext \
  15058. conftest$ac_exeext conftest.$ac_ext
  15059. else
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15061. $as_echo "no" >&6; }
  15062. fi
  15063. rm -f core conftest.err conftest.$ac_objext \
  15064. conftest$ac_exeext conftest.$ac_ext
  15065. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  15067. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  15068. saved_cppflags="${CPPFLAGS}"
  15069. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  15070. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  15071. fi
  15072. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  15073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15074. /* end confdefs.h. */
  15075. #include <glob.h>
  15076. int
  15077. main ()
  15078. {
  15079. #if defined(GLOB_NOMAGIC)
  15080. int foo = 0;
  15081. #else
  15082. int foo = bar;
  15083. #endif
  15084. 0
  15085. ;
  15086. return 0;
  15087. }
  15088. _ACEOF
  15089. if ac_fn_c_try_compile "$LINENO"; then :
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15091. $as_echo "yes" >&6; }
  15092. PBX_GLOB_NOMAGIC=1
  15093. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  15094. else
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15096. $as_echo "no" >&6; }
  15097. fi
  15098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15099. CPPFLAGS="${saved_cppflags}"
  15100. fi
  15101. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  15103. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  15104. saved_cppflags="${CPPFLAGS}"
  15105. if test "x${GLOB_BRACE_DIR}" != "x"; then
  15106. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  15107. fi
  15108. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  15109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15110. /* end confdefs.h. */
  15111. #include <glob.h>
  15112. int
  15113. main ()
  15114. {
  15115. #if defined(GLOB_BRACE)
  15116. int foo = 0;
  15117. #else
  15118. int foo = bar;
  15119. #endif
  15120. 0
  15121. ;
  15122. return 0;
  15123. }
  15124. _ACEOF
  15125. if ac_fn_c_try_compile "$LINENO"; then :
  15126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15127. $as_echo "yes" >&6; }
  15128. PBX_GLOB_BRACE=1
  15129. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  15130. else
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15132. $as_echo "no" >&6; }
  15133. fi
  15134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15135. CPPFLAGS="${saved_cppflags}"
  15136. fi
  15137. if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_NOLOAD in dlfcn.h" >&5
  15139. $as_echo_n "checking for RTLD_NOLOAD in dlfcn.h... " >&6; }
  15140. saved_cppflags="${CPPFLAGS}"
  15141. if test "x${RTLD_NOLOAD_DIR}" != "x"; then
  15142. RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
  15143. fi
  15144. CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
  15145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15146. /* end confdefs.h. */
  15147. #include <dlfcn.h>
  15148. int
  15149. main ()
  15150. {
  15151. #if defined(RTLD_NOLOAD)
  15152. int foo = 0;
  15153. #else
  15154. int foo = bar;
  15155. #endif
  15156. 0
  15157. ;
  15158. return 0;
  15159. }
  15160. _ACEOF
  15161. if ac_fn_c_try_compile "$LINENO"; then :
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15163. $as_echo "yes" >&6; }
  15164. PBX_RTLD_NOLOAD=1
  15165. $as_echo "#define HAVE_RTLD_NOLOAD 1" >>confdefs.h
  15166. else
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15168. $as_echo "no" >&6; }
  15169. fi
  15170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15171. CPPFLAGS="${saved_cppflags}"
  15172. fi
  15173. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  15175. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  15176. saved_cppflags="${CPPFLAGS}"
  15177. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  15178. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  15179. fi
  15180. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  15181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15182. /* end confdefs.h. */
  15183. #include <netinet/in.h>
  15184. int
  15185. main ()
  15186. {
  15187. #if defined(IP_MTU_DISCOVER)
  15188. int foo = 0;
  15189. #else
  15190. int foo = bar;
  15191. #endif
  15192. 0
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_compile "$LINENO"; then :
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15199. $as_echo "yes" >&6; }
  15200. PBX_IP_MTU_DISCOVER=1
  15201. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  15202. else
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15204. $as_echo "no" >&6; }
  15205. fi
  15206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15207. CPPFLAGS="${saved_cppflags}"
  15208. fi
  15209. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  15210. if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
  15211. cat >>confdefs.h <<_ACEOF
  15212. #define HAVE_OSX_ATOMICS 1
  15213. _ACEOF
  15214. fi
  15215. # The cast to long int works around a bug in the HP C Compiler
  15216. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15217. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15218. # This bug is HP SR number 8606223364.
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  15220. $as_echo_n "checking size of int... " >&6; }
  15221. if ${ac_cv_sizeof_int+:} false; then :
  15222. $as_echo_n "(cached) " >&6
  15223. else
  15224. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  15225. else
  15226. if test "$ac_cv_type_int" = yes; then
  15227. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15229. as_fn_error 77 "cannot compute sizeof (int)
  15230. See \`config.log' for more details" "$LINENO" 5; }
  15231. else
  15232. ac_cv_sizeof_int=0
  15233. fi
  15234. fi
  15235. fi
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  15237. $as_echo "$ac_cv_sizeof_int" >&6; }
  15238. cat >>confdefs.h <<_ACEOF
  15239. #define SIZEOF_INT $ac_cv_sizeof_int
  15240. _ACEOF
  15241. # The cast to long int works around a bug in the HP C Compiler
  15242. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15243. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15244. # This bug is HP SR number 8606223364.
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15246. $as_echo_n "checking size of long... " >&6; }
  15247. if ${ac_cv_sizeof_long+:} false; then :
  15248. $as_echo_n "(cached) " >&6
  15249. else
  15250. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  15251. else
  15252. if test "$ac_cv_type_long" = yes; then
  15253. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15255. as_fn_error 77 "cannot compute sizeof (long)
  15256. See \`config.log' for more details" "$LINENO" 5; }
  15257. else
  15258. ac_cv_sizeof_long=0
  15259. fi
  15260. fi
  15261. fi
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15263. $as_echo "$ac_cv_sizeof_long" >&6; }
  15264. cat >>confdefs.h <<_ACEOF
  15265. #define SIZEOF_LONG $ac_cv_sizeof_long
  15266. _ACEOF
  15267. # The cast to long int works around a bug in the HP C Compiler
  15268. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15269. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15270. # This bug is HP SR number 8606223364.
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  15272. $as_echo_n "checking size of long long... " >&6; }
  15273. if ${ac_cv_sizeof_long_long+:} false; then :
  15274. $as_echo_n "(cached) " >&6
  15275. else
  15276. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  15277. else
  15278. if test "$ac_cv_type_long_long" = yes; then
  15279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15281. as_fn_error 77 "cannot compute sizeof (long long)
  15282. See \`config.log' for more details" "$LINENO" 5; }
  15283. else
  15284. ac_cv_sizeof_long_long=0
  15285. fi
  15286. fi
  15287. fi
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  15289. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15290. cat >>confdefs.h <<_ACEOF
  15291. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15292. _ACEOF
  15293. # The cast to long int works around a bug in the HP C Compiler
  15294. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15295. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15296. # This bug is HP SR number 8606223364.
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  15298. $as_echo_n "checking size of char *... " >&6; }
  15299. if ${ac_cv_sizeof_char_p+:} false; then :
  15300. $as_echo_n "(cached) " >&6
  15301. else
  15302. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  15303. else
  15304. if test "$ac_cv_type_char_p" = yes; then
  15305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15307. as_fn_error 77 "cannot compute sizeof (char *)
  15308. See \`config.log' for more details" "$LINENO" 5; }
  15309. else
  15310. ac_cv_sizeof_char_p=0
  15311. fi
  15312. fi
  15313. fi
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  15315. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  15316. cat >>confdefs.h <<_ACEOF
  15317. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  15318. _ACEOF
  15319. # The cast to long int works around a bug in the HP C Compiler
  15320. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15321. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15322. # This bug is HP SR number 8606223364.
  15323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15324. $as_echo_n "checking size of long... " >&6; }
  15325. if ${ac_cv_sizeof_long+:} false; then :
  15326. $as_echo_n "(cached) " >&6
  15327. else
  15328. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  15329. else
  15330. if test "$ac_cv_type_long" = yes; then
  15331. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15332. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15333. as_fn_error 77 "cannot compute sizeof (long)
  15334. See \`config.log' for more details" "$LINENO" 5; }
  15335. else
  15336. ac_cv_sizeof_long=0
  15337. fi
  15338. fi
  15339. fi
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15341. $as_echo "$ac_cv_sizeof_long" >&6; }
  15342. cat >>confdefs.h <<_ACEOF
  15343. #define SIZEOF_LONG $ac_cv_sizeof_long
  15344. _ACEOF
  15345. # The cast to long int works around a bug in the HP C Compiler
  15346. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15347. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15348. # This bug is HP SR number 8606223364.
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  15350. $as_echo_n "checking size of long long... " >&6; }
  15351. if ${ac_cv_sizeof_long_long+:} false; then :
  15352. $as_echo_n "(cached) " >&6
  15353. else
  15354. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  15355. else
  15356. if test "$ac_cv_type_long_long" = yes; then
  15357. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15359. as_fn_error 77 "cannot compute sizeof (long long)
  15360. See \`config.log' for more details" "$LINENO" 5; }
  15361. else
  15362. ac_cv_sizeof_long_long=0
  15363. fi
  15364. fi
  15365. fi
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  15367. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15368. cat >>confdefs.h <<_ACEOF
  15369. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15370. _ACEOF
  15371. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  15372. fd_set foo;"; then :
  15373. fi
  15374. # This doesn't actually work; what it does is to use the variable set in the
  15375. # previous test as a cached value to set the right output variables.
  15376. # The cast to long int works around a bug in the HP C Compiler
  15377. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15378. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15379. # This bug is HP SR number 8606223364.
  15380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  15381. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  15382. if ${ac_cv_sizeof_fd_set_fds_bits+:} false; then :
  15383. $as_echo_n "(cached) " >&6
  15384. else
  15385. 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 :
  15386. else
  15387. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  15388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15390. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  15391. See \`config.log' for more details" "$LINENO" 5; }
  15392. else
  15393. ac_cv_sizeof_fd_set_fds_bits=0
  15394. fi
  15395. fi
  15396. fi
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  15398. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  15399. cat >>confdefs.h <<_ACEOF
  15400. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  15401. _ACEOF
  15402. # Set a type compatible with the previous. We cannot just use a generic type
  15403. # for these bits, because on big-endian systems, the bits won't match up
  15404. # correctly if the size is wrong.
  15405. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  15406. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  15407. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  15408. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  15409. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  15410. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  15411. fi ; fi ; fi
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  15413. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  15414. PBX_DLADDR=0
  15415. old_LIBS=${LIBS}
  15416. LIBS="${LIBS} -ldl"
  15417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15418. /* end confdefs.h. */
  15419. #define _GNU_SOURCE 1
  15420. #include <dlfcn.h>
  15421. int
  15422. main ()
  15423. {
  15424. dladdr((void *)0, (void *)0)
  15425. ;
  15426. return 0;
  15427. }
  15428. _ACEOF
  15429. if ac_fn_c_try_link "$LINENO"; then :
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15431. $as_echo "yes" >&6; }
  15432. PBX_DLADDR=1
  15433. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  15434. else
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15436. $as_echo "no" >&6; }
  15437. fi
  15438. rm -f core conftest.err conftest.$ac_objext \
  15439. conftest$ac_exeext conftest.$ac_ext
  15440. LIBS=${old_LIBS}
  15441. # PKGCONFIG is used in later tests
  15442. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15443. if test -n "$ac_tool_prefix"; then
  15444. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15445. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15447. $as_echo_n "checking for $ac_word... " >&6; }
  15448. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15449. $as_echo_n "(cached) " >&6
  15450. else
  15451. case $PKG_CONFIG in
  15452. [\\/]* | ?:[\\/]*)
  15453. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15454. ;;
  15455. *)
  15456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15457. for as_dir in $PATH
  15458. do
  15459. IFS=$as_save_IFS
  15460. test -z "$as_dir" && as_dir=.
  15461. for ac_exec_ext in '' $ac_executable_extensions; do
  15462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15463. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15465. break 2
  15466. fi
  15467. done
  15468. done
  15469. IFS=$as_save_IFS
  15470. ;;
  15471. esac
  15472. fi
  15473. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15474. if test -n "$PKG_CONFIG"; then
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15476. $as_echo "$PKG_CONFIG" >&6; }
  15477. else
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15479. $as_echo "no" >&6; }
  15480. fi
  15481. fi
  15482. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15483. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15484. # Extract the first word of "pkg-config", so it can be a program name with args.
  15485. set dummy pkg-config; ac_word=$2
  15486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15487. $as_echo_n "checking for $ac_word... " >&6; }
  15488. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15489. $as_echo_n "(cached) " >&6
  15490. else
  15491. case $ac_pt_PKG_CONFIG in
  15492. [\\/]* | ?:[\\/]*)
  15493. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15494. ;;
  15495. *)
  15496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15497. for as_dir in $PATH
  15498. do
  15499. IFS=$as_save_IFS
  15500. test -z "$as_dir" && as_dir=.
  15501. for ac_exec_ext in '' $ac_executable_extensions; do
  15502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15503. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15505. break 2
  15506. fi
  15507. done
  15508. done
  15509. IFS=$as_save_IFS
  15510. ;;
  15511. esac
  15512. fi
  15513. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15514. if test -n "$ac_pt_PKG_CONFIG"; then
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15516. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15517. else
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15519. $as_echo "no" >&6; }
  15520. fi
  15521. if test "x$ac_pt_PKG_CONFIG" = x; then
  15522. PKG_CONFIG=""
  15523. else
  15524. case $cross_compiling:$ac_tool_warned in
  15525. yes:)
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15528. ac_tool_warned=yes ;;
  15529. esac
  15530. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15531. fi
  15532. else
  15533. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15534. fi
  15535. fi
  15536. if test -n "$PKG_CONFIG"; then
  15537. _pkg_min_version=0.9.0
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15539. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15540. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15542. $as_echo "yes" >&6; }
  15543. else
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15545. $as_echo "no" >&6; }
  15546. PKG_CONFIG=""
  15547. fi
  15548. fi
  15549. # do the package library checks now
  15550. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  15551. pbxlibdir=""
  15552. # if --with-ALSA=DIR has been specified, use it.
  15553. if test "x${ALSA_DIR}" != "x"; then
  15554. if test -d ${ALSA_DIR}/lib; then
  15555. pbxlibdir="-L${ALSA_DIR}/lib"
  15556. else
  15557. pbxlibdir="-L${ALSA_DIR}"
  15558. fi
  15559. fi
  15560. pbxfuncname="snd_spcm_init"
  15561. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15562. AST_ALSA_FOUND=yes
  15563. else
  15564. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15565. CFLAGS="${CFLAGS} "
  15566. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
  15568. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  15569. if eval \${$as_ac_Lib+:} false; then :
  15570. $as_echo_n "(cached) " >&6
  15571. else
  15572. ac_check_lib_save_LIBS=$LIBS
  15573. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  15574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15575. /* end confdefs.h. */
  15576. /* Override any GCC internal prototype to avoid an error.
  15577. Use char because int might match the return type of a GCC
  15578. builtin and then its argument prototype would still apply. */
  15579. #ifdef __cplusplus
  15580. extern "C"
  15581. #endif
  15582. char ${pbxfuncname} ();
  15583. int
  15584. main ()
  15585. {
  15586. return ${pbxfuncname} ();
  15587. ;
  15588. return 0;
  15589. }
  15590. _ACEOF
  15591. if ac_fn_c_try_link "$LINENO"; then :
  15592. eval "$as_ac_Lib=yes"
  15593. else
  15594. eval "$as_ac_Lib=no"
  15595. fi
  15596. rm -f core conftest.err conftest.$ac_objext \
  15597. conftest$ac_exeext conftest.$ac_ext
  15598. LIBS=$ac_check_lib_save_LIBS
  15599. fi
  15600. eval ac_res=\$$as_ac_Lib
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15602. $as_echo "$ac_res" >&6; }
  15603. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15604. AST_ALSA_FOUND=yes
  15605. else
  15606. AST_ALSA_FOUND=no
  15607. fi
  15608. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15609. fi
  15610. # now check for the header.
  15611. if test "${AST_ALSA_FOUND}" = "yes"; then
  15612. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  15613. # if --with-ALSA=DIR has been specified, use it.
  15614. if test "x${ALSA_DIR}" != "x"; then
  15615. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  15616. fi
  15617. ALSA_INCLUDE="${ALSA_INCLUDE} "
  15618. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  15619. ALSA_HEADER_FOUND="1"
  15620. else # check for the header
  15621. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15622. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  15623. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  15624. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  15625. ALSA_HEADER_FOUND=1
  15626. else
  15627. ALSA_HEADER_FOUND=0
  15628. fi
  15629. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15630. fi
  15631. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  15632. ALSA_LIB=""
  15633. ALSA_INCLUDE=""
  15634. else
  15635. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15636. ALSA_LIB=""
  15637. fi
  15638. PBX_ALSA=1
  15639. cat >>confdefs.h <<_ACEOF
  15640. #define HAVE_ALSA 1
  15641. _ACEOF
  15642. fi
  15643. fi
  15644. fi
  15645. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15646. pbxlibdir=""
  15647. # if --with-BFD=DIR has been specified, use it.
  15648. if test "x${BFD_DIR}" != "x"; then
  15649. if test -d ${BFD_DIR}/lib; then
  15650. pbxlibdir="-L${BFD_DIR}/lib"
  15651. else
  15652. pbxlibdir="-L${BFD_DIR}"
  15653. fi
  15654. fi
  15655. pbxfuncname="bfd_openr"
  15656. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15657. AST_BFD_FOUND=yes
  15658. else
  15659. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15660. CFLAGS="${CFLAGS} "
  15661. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15663. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15664. if eval \${$as_ac_Lib+:} false; then :
  15665. $as_echo_n "(cached) " >&6
  15666. else
  15667. ac_check_lib_save_LIBS=$LIBS
  15668. LIBS="-lbfd ${pbxlibdir} $LIBS"
  15669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15670. /* end confdefs.h. */
  15671. /* Override any GCC internal prototype to avoid an error.
  15672. Use char because int might match the return type of a GCC
  15673. builtin and then its argument prototype would still apply. */
  15674. #ifdef __cplusplus
  15675. extern "C"
  15676. #endif
  15677. char ${pbxfuncname} ();
  15678. int
  15679. main ()
  15680. {
  15681. return ${pbxfuncname} ();
  15682. ;
  15683. return 0;
  15684. }
  15685. _ACEOF
  15686. if ac_fn_c_try_link "$LINENO"; then :
  15687. eval "$as_ac_Lib=yes"
  15688. else
  15689. eval "$as_ac_Lib=no"
  15690. fi
  15691. rm -f core conftest.err conftest.$ac_objext \
  15692. conftest$ac_exeext conftest.$ac_ext
  15693. LIBS=$ac_check_lib_save_LIBS
  15694. fi
  15695. eval ac_res=\$$as_ac_Lib
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15697. $as_echo "$ac_res" >&6; }
  15698. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15699. AST_BFD_FOUND=yes
  15700. else
  15701. AST_BFD_FOUND=no
  15702. fi
  15703. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15704. fi
  15705. # now check for the header.
  15706. if test "${AST_BFD_FOUND}" = "yes"; then
  15707. BFD_LIB="${pbxlibdir} -lbfd "
  15708. # if --with-BFD=DIR has been specified, use it.
  15709. if test "x${BFD_DIR}" != "x"; then
  15710. BFD_INCLUDE="-I${BFD_DIR}/include"
  15711. fi
  15712. BFD_INCLUDE="${BFD_INCLUDE} "
  15713. if test "xbfd.h" = "x" ; then # no header, assume found
  15714. BFD_HEADER_FOUND="1"
  15715. else # check for the header
  15716. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15717. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15718. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15719. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15720. BFD_HEADER_FOUND=1
  15721. else
  15722. BFD_HEADER_FOUND=0
  15723. fi
  15724. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15725. fi
  15726. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15727. BFD_LIB=""
  15728. BFD_INCLUDE=""
  15729. else
  15730. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15731. BFD_LIB=""
  15732. fi
  15733. PBX_BFD=1
  15734. cat >>confdefs.h <<_ACEOF
  15735. #define HAVE_BFD 1
  15736. _ACEOF
  15737. fi
  15738. fi
  15739. fi
  15740. if test "${PBX_BFD}" = "0"; then
  15741. # Fedora/RedHat/CentOS require extra libraries
  15742. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15743. pbxlibdir=""
  15744. # if --with-BFD=DIR has been specified, use it.
  15745. if test "x${BFD_DIR}" != "x"; then
  15746. if test -d ${BFD_DIR}/lib; then
  15747. pbxlibdir="-L${BFD_DIR}/lib"
  15748. else
  15749. pbxlibdir="-L${BFD_DIR}"
  15750. fi
  15751. fi
  15752. pbxfuncname="bfd_check_format"
  15753. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15754. AST_BFD_FOUND=yes
  15755. else
  15756. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15757. CFLAGS="${CFLAGS} "
  15758. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15760. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15761. if eval \${$as_ac_Lib+:} false; then :
  15762. $as_echo_n "(cached) " >&6
  15763. else
  15764. ac_check_lib_save_LIBS=$LIBS
  15765. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  15766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15767. /* end confdefs.h. */
  15768. /* Override any GCC internal prototype to avoid an error.
  15769. Use char because int might match the return type of a GCC
  15770. builtin and then its argument prototype would still apply. */
  15771. #ifdef __cplusplus
  15772. extern "C"
  15773. #endif
  15774. char ${pbxfuncname} ();
  15775. int
  15776. main ()
  15777. {
  15778. return ${pbxfuncname} ();
  15779. ;
  15780. return 0;
  15781. }
  15782. _ACEOF
  15783. if ac_fn_c_try_link "$LINENO"; then :
  15784. eval "$as_ac_Lib=yes"
  15785. else
  15786. eval "$as_ac_Lib=no"
  15787. fi
  15788. rm -f core conftest.err conftest.$ac_objext \
  15789. conftest$ac_exeext conftest.$ac_ext
  15790. LIBS=$ac_check_lib_save_LIBS
  15791. fi
  15792. eval ac_res=\$$as_ac_Lib
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15794. $as_echo "$ac_res" >&6; }
  15795. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15796. AST_BFD_FOUND=yes
  15797. else
  15798. AST_BFD_FOUND=no
  15799. fi
  15800. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15801. fi
  15802. # now check for the header.
  15803. if test "${AST_BFD_FOUND}" = "yes"; then
  15804. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  15805. # if --with-BFD=DIR has been specified, use it.
  15806. if test "x${BFD_DIR}" != "x"; then
  15807. BFD_INCLUDE="-I${BFD_DIR}/include"
  15808. fi
  15809. BFD_INCLUDE="${BFD_INCLUDE} "
  15810. if test "xbfd.h" = "x" ; then # no header, assume found
  15811. BFD_HEADER_FOUND="1"
  15812. else # check for the header
  15813. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15814. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15815. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15816. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15817. BFD_HEADER_FOUND=1
  15818. else
  15819. BFD_HEADER_FOUND=0
  15820. fi
  15821. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15822. fi
  15823. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15824. BFD_LIB=""
  15825. BFD_INCLUDE=""
  15826. else
  15827. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15828. BFD_LIB=""
  15829. fi
  15830. PBX_BFD=1
  15831. cat >>confdefs.h <<_ACEOF
  15832. #define HAVE_BFD 1
  15833. _ACEOF
  15834. fi
  15835. fi
  15836. fi
  15837. fi
  15838. if test "${PBX_BFD}" = "0"; then
  15839. # openSUSE requires -lz
  15840. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15841. pbxlibdir=""
  15842. # if --with-BFD=DIR has been specified, use it.
  15843. if test "x${BFD_DIR}" != "x"; then
  15844. if test -d ${BFD_DIR}/lib; then
  15845. pbxlibdir="-L${BFD_DIR}/lib"
  15846. else
  15847. pbxlibdir="-L${BFD_DIR}"
  15848. fi
  15849. fi
  15850. pbxfuncname="bfd_check_format"
  15851. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15852. AST_BFD_FOUND=yes
  15853. else
  15854. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15855. CFLAGS="${CFLAGS} "
  15856. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15858. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15859. if eval \${$as_ac_Lib+:} false; then :
  15860. $as_echo_n "(cached) " >&6
  15861. else
  15862. ac_check_lib_save_LIBS=$LIBS
  15863. LIBS="-lbfd ${pbxlibdir} -ldl -liberty -lz $LIBS"
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. /* Override any GCC internal prototype to avoid an error.
  15867. Use char because int might match the return type of a GCC
  15868. builtin and then its argument prototype would still apply. */
  15869. #ifdef __cplusplus
  15870. extern "C"
  15871. #endif
  15872. char ${pbxfuncname} ();
  15873. int
  15874. main ()
  15875. {
  15876. return ${pbxfuncname} ();
  15877. ;
  15878. return 0;
  15879. }
  15880. _ACEOF
  15881. if ac_fn_c_try_link "$LINENO"; then :
  15882. eval "$as_ac_Lib=yes"
  15883. else
  15884. eval "$as_ac_Lib=no"
  15885. fi
  15886. rm -f core conftest.err conftest.$ac_objext \
  15887. conftest$ac_exeext conftest.$ac_ext
  15888. LIBS=$ac_check_lib_save_LIBS
  15889. fi
  15890. eval ac_res=\$$as_ac_Lib
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15892. $as_echo "$ac_res" >&6; }
  15893. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15894. AST_BFD_FOUND=yes
  15895. else
  15896. AST_BFD_FOUND=no
  15897. fi
  15898. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15899. fi
  15900. # now check for the header.
  15901. if test "${AST_BFD_FOUND}" = "yes"; then
  15902. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
  15903. # if --with-BFD=DIR has been specified, use it.
  15904. if test "x${BFD_DIR}" != "x"; then
  15905. BFD_INCLUDE="-I${BFD_DIR}/include"
  15906. fi
  15907. BFD_INCLUDE="${BFD_INCLUDE} "
  15908. if test "xbfd.h" = "x" ; then # no header, assume found
  15909. BFD_HEADER_FOUND="1"
  15910. else # check for the header
  15911. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15912. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15913. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15914. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15915. BFD_HEADER_FOUND=1
  15916. else
  15917. BFD_HEADER_FOUND=0
  15918. fi
  15919. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15920. fi
  15921. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15922. BFD_LIB=""
  15923. BFD_INCLUDE=""
  15924. else
  15925. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15926. BFD_LIB=""
  15927. fi
  15928. PBX_BFD=1
  15929. cat >>confdefs.h <<_ACEOF
  15930. #define HAVE_BFD 1
  15931. _ACEOF
  15932. fi
  15933. fi
  15934. fi
  15935. fi
  15936. if test "x${OSARCH}" = "xlinux-gnu" ; then
  15937. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  15938. pbxlibdir=""
  15939. # if --with-CAP=DIR has been specified, use it.
  15940. if test "x${CAP_DIR}" != "x"; then
  15941. if test -d ${CAP_DIR}/lib; then
  15942. pbxlibdir="-L${CAP_DIR}/lib"
  15943. else
  15944. pbxlibdir="-L${CAP_DIR}"
  15945. fi
  15946. fi
  15947. pbxfuncname="cap_from_text"
  15948. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15949. AST_CAP_FOUND=yes
  15950. else
  15951. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15952. CFLAGS="${CFLAGS} "
  15953. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
  15955. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  15956. if eval \${$as_ac_Lib+:} false; then :
  15957. $as_echo_n "(cached) " >&6
  15958. else
  15959. ac_check_lib_save_LIBS=$LIBS
  15960. LIBS="-lcap ${pbxlibdir} $LIBS"
  15961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15962. /* end confdefs.h. */
  15963. /* Override any GCC internal prototype to avoid an error.
  15964. Use char because int might match the return type of a GCC
  15965. builtin and then its argument prototype would still apply. */
  15966. #ifdef __cplusplus
  15967. extern "C"
  15968. #endif
  15969. char ${pbxfuncname} ();
  15970. int
  15971. main ()
  15972. {
  15973. return ${pbxfuncname} ();
  15974. ;
  15975. return 0;
  15976. }
  15977. _ACEOF
  15978. if ac_fn_c_try_link "$LINENO"; then :
  15979. eval "$as_ac_Lib=yes"
  15980. else
  15981. eval "$as_ac_Lib=no"
  15982. fi
  15983. rm -f core conftest.err conftest.$ac_objext \
  15984. conftest$ac_exeext conftest.$ac_ext
  15985. LIBS=$ac_check_lib_save_LIBS
  15986. fi
  15987. eval ac_res=\$$as_ac_Lib
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15989. $as_echo "$ac_res" >&6; }
  15990. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15991. AST_CAP_FOUND=yes
  15992. else
  15993. AST_CAP_FOUND=no
  15994. fi
  15995. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15996. fi
  15997. # now check for the header.
  15998. if test "${AST_CAP_FOUND}" = "yes"; then
  15999. CAP_LIB="${pbxlibdir} -lcap "
  16000. # if --with-CAP=DIR has been specified, use it.
  16001. if test "x${CAP_DIR}" != "x"; then
  16002. CAP_INCLUDE="-I${CAP_DIR}/include"
  16003. fi
  16004. CAP_INCLUDE="${CAP_INCLUDE} "
  16005. if test "xsys/capability.h" = "x" ; then # no header, assume found
  16006. CAP_HEADER_FOUND="1"
  16007. else # check for the header
  16008. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16009. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  16010. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  16011. if test "x$ac_cv_header_sys_capability_h" = xyes; then :
  16012. CAP_HEADER_FOUND=1
  16013. else
  16014. CAP_HEADER_FOUND=0
  16015. fi
  16016. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16017. fi
  16018. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  16019. CAP_LIB=""
  16020. CAP_INCLUDE=""
  16021. else
  16022. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16023. CAP_LIB=""
  16024. fi
  16025. PBX_CAP=1
  16026. cat >>confdefs.h <<_ACEOF
  16027. #define HAVE_CAP 1
  16028. _ACEOF
  16029. fi
  16030. fi
  16031. fi
  16032. fi
  16033. if test "x${PBX_DAHDI}" != "x1"; then
  16034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  16035. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  16036. saved_cppflags="${CPPFLAGS}"
  16037. if test "x${DAHDI_DIR}" != "x"; then
  16038. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  16039. fi
  16040. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  16041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16042. /* end confdefs.h. */
  16043. #include <dahdi/user.h>
  16044. int
  16045. main ()
  16046. {
  16047. #if defined(DAHDI_RESET_COUNTERS)
  16048. int foo = 0;
  16049. #else
  16050. int foo = bar;
  16051. #endif
  16052. 0
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. if ac_fn_c_try_compile "$LINENO"; then :
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16059. $as_echo "yes" >&6; }
  16060. PBX_DAHDI=1
  16061. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  16062. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  16063. else
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16065. $as_echo "no" >&6; }
  16066. fi
  16067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16068. CPPFLAGS="${saved_cppflags}"
  16069. fi
  16070. if test "x${PBX_DAHDI}" != "x1"; then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  16072. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  16073. saved_cppflags="${CPPFLAGS}"
  16074. if test "x${DAHDI_DIR}" != "x"; then
  16075. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  16076. fi
  16077. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. #include <dahdi/user.h>
  16081. int
  16082. main ()
  16083. {
  16084. #if defined(DAHDI_DEFAULT_MTU_MRU)
  16085. int foo = 0;
  16086. #else
  16087. int foo = bar;
  16088. #endif
  16089. 0
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_compile "$LINENO"; then :
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16096. $as_echo "yes" >&6; }
  16097. PBX_DAHDI=1
  16098. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  16099. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  16100. else
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16102. $as_echo "no" >&6; }
  16103. fi
  16104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16105. CPPFLAGS="${saved_cppflags}"
  16106. fi
  16107. if test "x${PBX_DAHDI}" != "x1"; then
  16108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  16109. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  16110. saved_cppflags="${CPPFLAGS}"
  16111. if test "x${DAHDI_DIR}" != "x"; then
  16112. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  16113. fi
  16114. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  16115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16116. /* end confdefs.h. */
  16117. #include <dahdi/user.h>
  16118. int
  16119. main ()
  16120. {
  16121. #if defined(DAHDI_CODE)
  16122. int foo = 0;
  16123. #else
  16124. int foo = bar;
  16125. #endif
  16126. 0
  16127. ;
  16128. return 0;
  16129. }
  16130. _ACEOF
  16131. if ac_fn_c_try_compile "$LINENO"; then :
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16133. $as_echo "yes" >&6; }
  16134. PBX_DAHDI=1
  16135. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  16136. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  16137. else
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16139. $as_echo "no" >&6; }
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16142. CPPFLAGS="${saved_cppflags}"
  16143. fi
  16144. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  16146. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  16147. saved_cppflags="${CPPFLAGS}"
  16148. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  16149. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  16150. fi
  16151. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. #include <dahdi/user.h>
  16155. int
  16156. main ()
  16157. {
  16158. #if defined(DAHDI_POLICY_HALF_FULL)
  16159. int foo = 0;
  16160. #else
  16161. int foo = bar;
  16162. #endif
  16163. 0
  16164. ;
  16165. return 0;
  16166. }
  16167. _ACEOF
  16168. if ac_fn_c_try_compile "$LINENO"; then :
  16169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16170. $as_echo "yes" >&6; }
  16171. PBX_DAHDI_HALF_FULL=1
  16172. $as_echo "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  16173. else
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16175. $as_echo "no" >&6; }
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16178. CPPFLAGS="${saved_cppflags}"
  16179. fi
  16180. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  16181. if test "xenhanced dahdi vmwi support" != "x"; then
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  16183. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  16184. else
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  16186. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  16187. fi
  16188. saved_cppflags="${CPPFLAGS}"
  16189. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  16190. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  16191. fi
  16192. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  16193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16194. /* end confdefs.h. */
  16195. #include <dahdi/user.h>
  16196. int
  16197. main ()
  16198. {
  16199. struct dahdi_vmwi_info booger;
  16200. ;
  16201. return 0;
  16202. }
  16203. _ACEOF
  16204. if ac_fn_c_try_compile "$LINENO"; then :
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16206. $as_echo "yes" >&6; }
  16207. PBX_DAHDI_LINEREVERSE_VMWI=1
  16208. $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  16209. else
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16211. $as_echo "no" >&6; }
  16212. fi
  16213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16214. CPPFLAGS="${saved_cppflags}"
  16215. fi
  16216. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  16217. if test "x" != "x"; then
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  16219. $as_echo_n "checking for ... " >&6; }
  16220. else
  16221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  16222. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  16223. fi
  16224. saved_cppflags="${CPPFLAGS}"
  16225. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  16226. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  16227. fi
  16228. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  16229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16230. /* end confdefs.h. */
  16231. #include <dahdi/user.h>
  16232. int
  16233. main ()
  16234. {
  16235. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  16236. ;
  16237. return 0;
  16238. }
  16239. _ACEOF
  16240. if ac_fn_c_try_compile "$LINENO"; then :
  16241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16242. $as_echo "yes" >&6; }
  16243. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  16244. $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  16245. else
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16247. $as_echo "no" >&6; }
  16248. fi
  16249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16250. CPPFLAGS="${saved_cppflags}"
  16251. fi
  16252. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  16253. if test "xgetifaddrs() support" != "x"; then
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  16255. $as_echo_n "checking for getifaddrs() support... " >&6; }
  16256. else
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  16258. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  16259. fi
  16260. saved_cppflags="${CPPFLAGS}"
  16261. if test "x${GETIFADDRS_DIR}" != "x"; then
  16262. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  16263. fi
  16264. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. #include <ifaddrs.h>
  16268. int
  16269. main ()
  16270. {
  16271. struct ifaddrs *p; getifaddrs(&p);
  16272. ;
  16273. return 0;
  16274. }
  16275. _ACEOF
  16276. if ac_fn_c_try_compile "$LINENO"; then :
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16278. $as_echo "yes" >&6; }
  16279. PBX_GETIFADDRS=1
  16280. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  16281. else
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16283. $as_echo "no" >&6; }
  16284. fi
  16285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16286. CPPFLAGS="${saved_cppflags}"
  16287. fi
  16288. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  16289. if test "xtimerfd support" != "x"; then
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  16291. $as_echo_n "checking for timerfd support... " >&6; }
  16292. else
  16293. { $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
  16294. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  16295. fi
  16296. saved_cppflags="${CPPFLAGS}"
  16297. if test "x${TIMERFD_DIR}" != "x"; then
  16298. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  16299. fi
  16300. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. #include <sys/timerfd.h>
  16304. int
  16305. main ()
  16306. {
  16307. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. if ac_fn_c_try_compile "$LINENO"; then :
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16314. $as_echo "yes" >&6; }
  16315. PBX_TIMERFD=1
  16316. $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
  16317. else
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16319. $as_echo "no" >&6; }
  16320. fi
  16321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16322. CPPFLAGS="${saved_cppflags}"
  16323. fi
  16324. GSM_INTERNAL="yes"
  16325. GSM_SYSTEM="yes"
  16326. if test "${USE_GSM}" != "no"; then
  16327. if test "${GSM_DIR}" = "internal"; then
  16328. GSM_SYSTEM="no"
  16329. elif test "${GSM_DIR}" != ""; then
  16330. GSM_INTERNAL="no"
  16331. fi
  16332. if test "${GSM_SYSTEM}" = "yes"; then
  16333. gsmlibdir=""
  16334. if test "x${GSM_DIR}" != "x"; then
  16335. if test -d ${GSM_DIR}/lib; then
  16336. gsmlibdir="-L${GSM_DIR}/lib"
  16337. else
  16338. gsmlibdir="-L${GSM_DIR}"
  16339. fi
  16340. fi
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  16342. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  16343. if ${ac_cv_lib_gsm_gsm_create+:} false; then :
  16344. $as_echo_n "(cached) " >&6
  16345. else
  16346. ac_check_lib_save_LIBS=$LIBS
  16347. LIBS="-lgsm ${gsmlibdir} $LIBS"
  16348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16349. /* end confdefs.h. */
  16350. /* Override any GCC internal prototype to avoid an error.
  16351. Use char because int might match the return type of a GCC
  16352. builtin and then its argument prototype would still apply. */
  16353. #ifdef __cplusplus
  16354. extern "C"
  16355. #endif
  16356. char gsm_create ();
  16357. int
  16358. main ()
  16359. {
  16360. return gsm_create ();
  16361. ;
  16362. return 0;
  16363. }
  16364. _ACEOF
  16365. if ac_fn_c_try_link "$LINENO"; then :
  16366. ac_cv_lib_gsm_gsm_create=yes
  16367. else
  16368. ac_cv_lib_gsm_gsm_create=no
  16369. fi
  16370. rm -f core conftest.err conftest.$ac_objext \
  16371. conftest$ac_exeext conftest.$ac_ext
  16372. LIBS=$ac_check_lib_save_LIBS
  16373. fi
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  16375. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  16376. if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
  16377. cat >>confdefs.h <<_ACEOF
  16378. #define HAVE_GSM 1
  16379. _ACEOF
  16380. fi
  16381. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  16382. if test "x${GSM_DIR}" != "x" ; then
  16383. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  16384. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  16385. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16386. GSM_HEADER_FOUND=1
  16387. else
  16388. GSM_HEADER_FOUND=0
  16389. fi
  16390. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  16391. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  16392. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16393. GSM_GSM_HEADER_FOUND=1
  16394. else
  16395. GSM_GSM_HEADER_FOUND=0
  16396. fi
  16397. else
  16398. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  16399. if test "x$ac_cv_header_gsm_h" = xyes; then :
  16400. GSM_HEADER_FOUND=1
  16401. else
  16402. GSM_HEADER_FOUND=0
  16403. fi
  16404. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  16405. if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
  16406. GSM_GSM_HEADER_FOUND=1
  16407. else
  16408. GSM_GSM_HEADER_FOUND=0
  16409. fi
  16410. fi
  16411. if test "${GSM_HEADER_FOUND}" = "0" ; then
  16412. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  16413. if test "x${GSM_MANDATORY}" = "xyes" ; then
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16415. $as_echo "$as_me: ***" >&6;}
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  16417. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  16419. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  16421. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  16422. exit 1
  16423. fi
  16424. fi
  16425. fi
  16426. GSM_OK=0
  16427. if test "${GSM_HEADER_FOUND}" = "1" ; then
  16428. cat >>confdefs.h <<_ACEOF
  16429. #define HAVE_GSM_HEADER 1
  16430. _ACEOF
  16431. GSM_OK=1
  16432. else
  16433. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  16434. cat >>confdefs.h <<_ACEOF
  16435. #define HAVE_GSM_GSM_HEADER 1
  16436. _ACEOF
  16437. GSM_OK=1
  16438. fi
  16439. fi
  16440. if test "${GSM_OK}" = "1" ; then
  16441. GSM_LIB="-lgsm"
  16442. if test "x${GSM_DIR}" != "x"; then
  16443. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  16444. GSM_INCLUDE="-I${GSM_DIR}/include"
  16445. fi
  16446. PBX_GSM=1
  16447. GSM_INTERNAL="no"
  16448. fi
  16449. fi
  16450. fi
  16451. if test "${GSM_INTERNAL}" = "yes"; then
  16452. PBX_GSM=1
  16453. cat >>confdefs.h <<_ACEOF
  16454. #define HAVE_GSM_HEADER 1
  16455. _ACEOF
  16456. fi
  16457. fi
  16458. ILBC_INTERNAL="yes"
  16459. ILBC_SYSTEM="yes"
  16460. if test "${USE_ILBC}" != "no"; then
  16461. if test "${ILBC_DIR}" = "internal"; then
  16462. ILBC_SYSTEM="no"
  16463. elif test "${ILBC_DIR}" != ""; then
  16464. ILBC_INTERNAL="no"
  16465. fi
  16466. if test "${ILBC_SYSTEM}" = "yes"; then
  16467. if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
  16468. pkg_failed=no
  16469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ILBC" >&5
  16470. $as_echo_n "checking for ILBC... " >&6; }
  16471. if test -n "$ILBC_CFLAGS"; then
  16472. pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
  16473. elif test -n "$PKG_CONFIG"; then
  16474. if test -n "$PKG_CONFIG" && \
  16475. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  16476. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  16477. ac_status=$?
  16478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16479. test $ac_status = 0; }; then
  16480. pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
  16481. test "x$?" != "x0" && pkg_failed=yes
  16482. else
  16483. pkg_failed=yes
  16484. fi
  16485. else
  16486. pkg_failed=untried
  16487. fi
  16488. if test -n "$ILBC_LIBS"; then
  16489. pkg_cv_ILBC_LIBS="$ILBC_LIBS"
  16490. elif test -n "$PKG_CONFIG"; then
  16491. if test -n "$PKG_CONFIG" && \
  16492. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  16493. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  16494. ac_status=$?
  16495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16496. test $ac_status = 0; }; then
  16497. pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
  16498. test "x$?" != "x0" && pkg_failed=yes
  16499. else
  16500. pkg_failed=yes
  16501. fi
  16502. else
  16503. pkg_failed=untried
  16504. fi
  16505. if test $pkg_failed = yes; then
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16507. $as_echo "no" >&6; }
  16508. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16509. _pkg_short_errors_supported=yes
  16510. else
  16511. _pkg_short_errors_supported=no
  16512. fi
  16513. if test $_pkg_short_errors_supported = yes; then
  16514. ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
  16515. else
  16516. ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
  16517. fi
  16518. # Put the nasty error message in config.log where it belongs
  16519. echo "$ILBC_PKG_ERRORS" >&5
  16520. PBX_ILBC=0
  16521. elif test $pkg_failed = untried; then
  16522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16523. $as_echo "no" >&6; }
  16524. PBX_ILBC=0
  16525. else
  16526. ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
  16527. ILBC_LIBS=$pkg_cv_ILBC_LIBS
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16529. $as_echo "yes" >&6; }
  16530. PBX_ILBC=1
  16531. ILBC_INCLUDE="$ILBC_CFLAGS"
  16532. ILBC_LIB="$ILBC_LIBS"
  16533. $as_echo "#define HAVE_ILBC 1" >>confdefs.h
  16534. fi
  16535. fi
  16536. if test "$PBX_ILBC" = "1"; then
  16537. ILBC_INTERNAL="no"
  16538. fi
  16539. fi
  16540. if test "${ILBC_INTERNAL}" = "yes"; then
  16541. PBX_ILBC=1
  16542. fi
  16543. fi
  16544. LIBEDIT_INTERNAL="yes"
  16545. LIBEDIT_SYSTEM="yes"
  16546. if test "${USE_LIBEDIT}" != "no"; then
  16547. if test "${LIBEDIT_DIR}" = "internal"; then
  16548. LIBEDIT_SYSTEM="no"
  16549. elif test "${LIBEDIT_DIR}" != ""; then
  16550. LIBEDIT_INTERNAL="no"
  16551. fi
  16552. if test "${LIBEDIT_SYSTEM}" = "yes"; then
  16553. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  16554. pkg_failed=no
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEDIT" >&5
  16556. $as_echo_n "checking for LIBEDIT... " >&6; }
  16557. if test -n "$LIBEDIT_CFLAGS"; then
  16558. pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
  16559. elif test -n "$PKG_CONFIG"; then
  16560. if test -n "$PKG_CONFIG" && \
  16561. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  16562. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  16563. ac_status=$?
  16564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16565. test $ac_status = 0; }; then
  16566. pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
  16567. test "x$?" != "x0" && pkg_failed=yes
  16568. else
  16569. pkg_failed=yes
  16570. fi
  16571. else
  16572. pkg_failed=untried
  16573. fi
  16574. if test -n "$LIBEDIT_LIBS"; then
  16575. pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
  16576. elif test -n "$PKG_CONFIG"; then
  16577. if test -n "$PKG_CONFIG" && \
  16578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  16579. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  16580. ac_status=$?
  16581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16582. test $ac_status = 0; }; then
  16583. pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
  16584. test "x$?" != "x0" && pkg_failed=yes
  16585. else
  16586. pkg_failed=yes
  16587. fi
  16588. else
  16589. pkg_failed=untried
  16590. fi
  16591. if test $pkg_failed = yes; then
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16593. $as_echo "no" >&6; }
  16594. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16595. _pkg_short_errors_supported=yes
  16596. else
  16597. _pkg_short_errors_supported=no
  16598. fi
  16599. if test $_pkg_short_errors_supported = yes; then
  16600. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
  16601. else
  16602. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
  16603. fi
  16604. # Put the nasty error message in config.log where it belongs
  16605. echo "$LIBEDIT_PKG_ERRORS" >&5
  16606. PBX_LIBEDIT=0
  16607. elif test $pkg_failed = untried; then
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16609. $as_echo "no" >&6; }
  16610. PBX_LIBEDIT=0
  16611. else
  16612. LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
  16613. LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16615. $as_echo "yes" >&6; }
  16616. PBX_LIBEDIT=1
  16617. LIBEDIT_INCLUDE="$LIBEDIT_CFLAGS"
  16618. LIBEDIT_LIB="$LIBEDIT_LIBS"
  16619. $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
  16620. fi
  16621. fi
  16622. if test "$PBX_LIBEDIT" = "1"; then
  16623. LIBEDIT_INTERNAL="no"
  16624. fi
  16625. fi
  16626. if test "${LIBEDIT_INTERNAL}" = "yes"; then
  16627. PBX_LIBEDIT=1
  16628. fi
  16629. fi
  16630. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16631. pbxlibdir=""
  16632. # if --with-ICONV=DIR has been specified, use it.
  16633. if test "x${ICONV_DIR}" != "x"; then
  16634. if test -d ${ICONV_DIR}/lib; then
  16635. pbxlibdir="-L${ICONV_DIR}/lib"
  16636. else
  16637. pbxlibdir="-L${ICONV_DIR}"
  16638. fi
  16639. fi
  16640. pbxfuncname="iconv_open"
  16641. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16642. AST_ICONV_FOUND=yes
  16643. else
  16644. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16645. CFLAGS="${CFLAGS} "
  16646. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  16647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  16648. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  16649. if eval \${$as_ac_Lib+:} false; then :
  16650. $as_echo_n "(cached) " >&6
  16651. else
  16652. ac_check_lib_save_LIBS=$LIBS
  16653. LIBS="-liconv ${pbxlibdir} $LIBS"
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. /* Override any GCC internal prototype to avoid an error.
  16657. Use char because int might match the return type of a GCC
  16658. builtin and then its argument prototype would still apply. */
  16659. #ifdef __cplusplus
  16660. extern "C"
  16661. #endif
  16662. char ${pbxfuncname} ();
  16663. int
  16664. main ()
  16665. {
  16666. return ${pbxfuncname} ();
  16667. ;
  16668. return 0;
  16669. }
  16670. _ACEOF
  16671. if ac_fn_c_try_link "$LINENO"; then :
  16672. eval "$as_ac_Lib=yes"
  16673. else
  16674. eval "$as_ac_Lib=no"
  16675. fi
  16676. rm -f core conftest.err conftest.$ac_objext \
  16677. conftest$ac_exeext conftest.$ac_ext
  16678. LIBS=$ac_check_lib_save_LIBS
  16679. fi
  16680. eval ac_res=\$$as_ac_Lib
  16681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16682. $as_echo "$ac_res" >&6; }
  16683. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16684. AST_ICONV_FOUND=yes
  16685. else
  16686. AST_ICONV_FOUND=no
  16687. fi
  16688. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16689. fi
  16690. # now check for the header.
  16691. if test "${AST_ICONV_FOUND}" = "yes"; then
  16692. ICONV_LIB="${pbxlibdir} -liconv "
  16693. # if --with-ICONV=DIR has been specified, use it.
  16694. if test "x${ICONV_DIR}" != "x"; then
  16695. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16696. fi
  16697. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16698. if test "xiconv.h" = "x" ; then # no header, assume found
  16699. ICONV_HEADER_FOUND="1"
  16700. else # check for the header
  16701. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16702. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16703. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16704. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16705. ICONV_HEADER_FOUND=1
  16706. else
  16707. ICONV_HEADER_FOUND=0
  16708. fi
  16709. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16710. fi
  16711. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16712. ICONV_LIB=""
  16713. ICONV_INCLUDE=""
  16714. else
  16715. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16716. ICONV_LIB=""
  16717. fi
  16718. PBX_ICONV=1
  16719. cat >>confdefs.h <<_ACEOF
  16720. #define HAVE_ICONV 1
  16721. _ACEOF
  16722. fi
  16723. fi
  16724. fi
  16725. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  16726. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16727. pbxlibdir=""
  16728. # if --with-ICONV=DIR has been specified, use it.
  16729. if test "x${ICONV_DIR}" != "x"; then
  16730. if test -d ${ICONV_DIR}/lib; then
  16731. pbxlibdir="-L${ICONV_DIR}/lib"
  16732. else
  16733. pbxlibdir="-L${ICONV_DIR}"
  16734. fi
  16735. fi
  16736. pbxfuncname="libiconv_open"
  16737. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16738. AST_ICONV_FOUND=yes
  16739. else
  16740. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16741. CFLAGS="${CFLAGS} "
  16742. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  16744. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  16745. if eval \${$as_ac_Lib+:} false; then :
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. ac_check_lib_save_LIBS=$LIBS
  16749. LIBS="-liconv ${pbxlibdir} $LIBS"
  16750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16751. /* end confdefs.h. */
  16752. /* Override any GCC internal prototype to avoid an error.
  16753. Use char because int might match the return type of a GCC
  16754. builtin and then its argument prototype would still apply. */
  16755. #ifdef __cplusplus
  16756. extern "C"
  16757. #endif
  16758. char ${pbxfuncname} ();
  16759. int
  16760. main ()
  16761. {
  16762. return ${pbxfuncname} ();
  16763. ;
  16764. return 0;
  16765. }
  16766. _ACEOF
  16767. if ac_fn_c_try_link "$LINENO"; then :
  16768. eval "$as_ac_Lib=yes"
  16769. else
  16770. eval "$as_ac_Lib=no"
  16771. fi
  16772. rm -f core conftest.err conftest.$ac_objext \
  16773. conftest$ac_exeext conftest.$ac_ext
  16774. LIBS=$ac_check_lib_save_LIBS
  16775. fi
  16776. eval ac_res=\$$as_ac_Lib
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16778. $as_echo "$ac_res" >&6; }
  16779. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16780. AST_ICONV_FOUND=yes
  16781. else
  16782. AST_ICONV_FOUND=no
  16783. fi
  16784. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16785. fi
  16786. # now check for the header.
  16787. if test "${AST_ICONV_FOUND}" = "yes"; then
  16788. ICONV_LIB="${pbxlibdir} -liconv "
  16789. # if --with-ICONV=DIR has been specified, use it.
  16790. if test "x${ICONV_DIR}" != "x"; then
  16791. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16792. fi
  16793. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16794. if test "xiconv.h" = "x" ; then # no header, assume found
  16795. ICONV_HEADER_FOUND="1"
  16796. else # check for the header
  16797. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16798. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16799. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16800. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16801. ICONV_HEADER_FOUND=1
  16802. else
  16803. ICONV_HEADER_FOUND=0
  16804. fi
  16805. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16806. fi
  16807. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16808. ICONV_LIB=""
  16809. ICONV_INCLUDE=""
  16810. else
  16811. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16812. ICONV_LIB=""
  16813. fi
  16814. PBX_ICONV=1
  16815. cat >>confdefs.h <<_ACEOF
  16816. #define HAVE_ICONV 1
  16817. _ACEOF
  16818. fi
  16819. fi
  16820. fi
  16821. # Some versions of Linux package iconv in glibc
  16822. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16823. pbxlibdir=""
  16824. # if --with-ICONV=DIR has been specified, use it.
  16825. if test "x${ICONV_DIR}" != "x"; then
  16826. if test -d ${ICONV_DIR}/lib; then
  16827. pbxlibdir="-L${ICONV_DIR}/lib"
  16828. else
  16829. pbxlibdir="-L${ICONV_DIR}"
  16830. fi
  16831. fi
  16832. pbxfuncname="iconv_close"
  16833. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16834. AST_ICONV_FOUND=yes
  16835. else
  16836. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16837. CFLAGS="${CFLAGS} "
  16838. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  16840. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  16841. if eval \${$as_ac_Lib+:} false; then :
  16842. $as_echo_n "(cached) " >&6
  16843. else
  16844. ac_check_lib_save_LIBS=$LIBS
  16845. LIBS="-lc ${pbxlibdir} $LIBS"
  16846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16847. /* end confdefs.h. */
  16848. /* Override any GCC internal prototype to avoid an error.
  16849. Use char because int might match the return type of a GCC
  16850. builtin and then its argument prototype would still apply. */
  16851. #ifdef __cplusplus
  16852. extern "C"
  16853. #endif
  16854. char ${pbxfuncname} ();
  16855. int
  16856. main ()
  16857. {
  16858. return ${pbxfuncname} ();
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. if ac_fn_c_try_link "$LINENO"; then :
  16864. eval "$as_ac_Lib=yes"
  16865. else
  16866. eval "$as_ac_Lib=no"
  16867. fi
  16868. rm -f core conftest.err conftest.$ac_objext \
  16869. conftest$ac_exeext conftest.$ac_ext
  16870. LIBS=$ac_check_lib_save_LIBS
  16871. fi
  16872. eval ac_res=\$$as_ac_Lib
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16874. $as_echo "$ac_res" >&6; }
  16875. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16876. AST_ICONV_FOUND=yes
  16877. else
  16878. AST_ICONV_FOUND=no
  16879. fi
  16880. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16881. fi
  16882. # now check for the header.
  16883. if test "${AST_ICONV_FOUND}" = "yes"; then
  16884. ICONV_LIB="${pbxlibdir} -lc "
  16885. # if --with-ICONV=DIR has been specified, use it.
  16886. if test "x${ICONV_DIR}" != "x"; then
  16887. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16888. fi
  16889. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16890. if test "xiconv.h" = "x" ; then # no header, assume found
  16891. ICONV_HEADER_FOUND="1"
  16892. else # check for the header
  16893. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16894. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16895. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16896. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16897. ICONV_HEADER_FOUND=1
  16898. else
  16899. ICONV_HEADER_FOUND=0
  16900. fi
  16901. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16902. fi
  16903. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16904. ICONV_LIB=""
  16905. ICONV_INCLUDE=""
  16906. else
  16907. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16908. ICONV_LIB=""
  16909. fi
  16910. PBX_ICONV=1
  16911. cat >>confdefs.h <<_ACEOF
  16912. #define HAVE_ICONV 1
  16913. _ACEOF
  16914. fi
  16915. fi
  16916. fi
  16917. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  16918. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  16919. pbxlibdir=""
  16920. # if --with-ICAL=DIR has been specified, use it.
  16921. if test "x${ICAL_DIR}" != "x"; then
  16922. if test -d ${ICAL_DIR}/lib; then
  16923. pbxlibdir="-L${ICAL_DIR}/lib"
  16924. else
  16925. pbxlibdir="-L${ICAL_DIR}"
  16926. fi
  16927. fi
  16928. pbxfuncname="icaltimezone_get_utc_timezone"
  16929. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16930. AST_ICAL_FOUND=yes
  16931. else
  16932. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16933. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16934. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
  16936. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  16937. if eval \${$as_ac_Lib+:} false; then :
  16938. $as_echo_n "(cached) " >&6
  16939. else
  16940. ac_check_lib_save_LIBS=$LIBS
  16941. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16943. /* end confdefs.h. */
  16944. /* Override any GCC internal prototype to avoid an error.
  16945. Use char because int might match the return type of a GCC
  16946. builtin and then its argument prototype would still apply. */
  16947. #ifdef __cplusplus
  16948. extern "C"
  16949. #endif
  16950. char ${pbxfuncname} ();
  16951. int
  16952. main ()
  16953. {
  16954. return ${pbxfuncname} ();
  16955. ;
  16956. return 0;
  16957. }
  16958. _ACEOF
  16959. if ac_fn_c_try_link "$LINENO"; then :
  16960. eval "$as_ac_Lib=yes"
  16961. else
  16962. eval "$as_ac_Lib=no"
  16963. fi
  16964. rm -f core conftest.err conftest.$ac_objext \
  16965. conftest$ac_exeext conftest.$ac_ext
  16966. LIBS=$ac_check_lib_save_LIBS
  16967. fi
  16968. eval ac_res=\$$as_ac_Lib
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16970. $as_echo "$ac_res" >&6; }
  16971. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16972. AST_ICAL_FOUND=yes
  16973. else
  16974. AST_ICAL_FOUND=no
  16975. fi
  16976. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16977. fi
  16978. # now check for the header.
  16979. if test "${AST_ICAL_FOUND}" = "yes"; then
  16980. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  16981. # if --with-ICAL=DIR has been specified, use it.
  16982. if test "x${ICAL_DIR}" != "x"; then
  16983. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  16984. fi
  16985. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  16986. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  16987. ICAL_HEADER_FOUND="1"
  16988. else # check for the header
  16989. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16990. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  16991. ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  16992. if test "x$ac_cv_header_libical_ical_h" = xyes; then :
  16993. ICAL_HEADER_FOUND=1
  16994. else
  16995. ICAL_HEADER_FOUND=0
  16996. fi
  16997. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16998. fi
  16999. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  17000. ICAL_LIB=""
  17001. ICAL_INCLUDE=""
  17002. else
  17003. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17004. ICAL_LIB=""
  17005. fi
  17006. PBX_ICAL=1
  17007. cat >>confdefs.h <<_ACEOF
  17008. #define HAVE_ICAL 1
  17009. _ACEOF
  17010. fi
  17011. fi
  17012. fi
  17013. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  17014. pbxlibdir=""
  17015. # if --with-IKSEMEL=DIR has been specified, use it.
  17016. if test "x${IKSEMEL_DIR}" != "x"; then
  17017. if test -d ${IKSEMEL_DIR}/lib; then
  17018. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  17019. else
  17020. pbxlibdir="-L${IKSEMEL_DIR}"
  17021. fi
  17022. fi
  17023. pbxfuncname="iks_start_sasl"
  17024. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17025. AST_IKSEMEL_FOUND=yes
  17026. else
  17027. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17028. CFLAGS="${CFLAGS} "
  17029. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
  17031. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  17032. if eval \${$as_ac_Lib+:} false; then :
  17033. $as_echo_n "(cached) " >&6
  17034. else
  17035. ac_check_lib_save_LIBS=$LIBS
  17036. LIBS="-liksemel ${pbxlibdir} $LIBS"
  17037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17038. /* end confdefs.h. */
  17039. /* Override any GCC internal prototype to avoid an error.
  17040. Use char because int might match the return type of a GCC
  17041. builtin and then its argument prototype would still apply. */
  17042. #ifdef __cplusplus
  17043. extern "C"
  17044. #endif
  17045. char ${pbxfuncname} ();
  17046. int
  17047. main ()
  17048. {
  17049. return ${pbxfuncname} ();
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_link "$LINENO"; then :
  17055. eval "$as_ac_Lib=yes"
  17056. else
  17057. eval "$as_ac_Lib=no"
  17058. fi
  17059. rm -f core conftest.err conftest.$ac_objext \
  17060. conftest$ac_exeext conftest.$ac_ext
  17061. LIBS=$ac_check_lib_save_LIBS
  17062. fi
  17063. eval ac_res=\$$as_ac_Lib
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17065. $as_echo "$ac_res" >&6; }
  17066. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17067. AST_IKSEMEL_FOUND=yes
  17068. else
  17069. AST_IKSEMEL_FOUND=no
  17070. fi
  17071. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17072. fi
  17073. # now check for the header.
  17074. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  17075. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  17076. # if --with-IKSEMEL=DIR has been specified, use it.
  17077. if test "x${IKSEMEL_DIR}" != "x"; then
  17078. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  17079. fi
  17080. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  17081. if test "xiksemel.h" = "x" ; then # no header, assume found
  17082. IKSEMEL_HEADER_FOUND="1"
  17083. else # check for the header
  17084. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17085. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  17086. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  17087. if test "x$ac_cv_header_iksemel_h" = xyes; then :
  17088. IKSEMEL_HEADER_FOUND=1
  17089. else
  17090. IKSEMEL_HEADER_FOUND=0
  17091. fi
  17092. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17093. fi
  17094. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  17095. IKSEMEL_LIB=""
  17096. IKSEMEL_INCLUDE=""
  17097. else
  17098. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17099. IKSEMEL_LIB=""
  17100. fi
  17101. PBX_IKSEMEL=1
  17102. cat >>confdefs.h <<_ACEOF
  17103. #define HAVE_IKSEMEL 1
  17104. _ACEOF
  17105. fi
  17106. fi
  17107. fi
  17108. if test "${USE_IMAP_TK}" != "no"; then
  17109. saved_cppflags="${CPPFLAGS}"
  17110. saved_libs="${LIBS}"
  17111. switch_to_system_on_failure="no"
  17112. if test "${IMAP_TK_DIR}" = ""; then
  17113. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  17114. switch_to_system_on_failure="yes"
  17115. fi
  17116. if test "${IMAP_TK_DIR}" != "system"; then
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  17118. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  17119. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  17120. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  17121. fi
  17122. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  17123. imap_include="-I${IMAP_TK_DIR}/c-client"
  17124. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17125. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17127. /* end confdefs.h. */
  17128. #include "c-client.h"
  17129. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17130. {
  17131. }
  17132. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17133. {
  17134. }
  17135. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17136. {
  17137. }
  17138. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17139. {
  17140. }
  17141. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17142. {
  17143. }
  17144. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17145. {
  17146. }
  17147. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17148. {
  17149. }
  17150. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17151. {
  17152. }
  17153. void mm_log (char *string,long errflg)
  17154. {
  17155. }
  17156. void mm_dlog (char *string)
  17157. {
  17158. }
  17159. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17160. {
  17161. }
  17162. void mm_critical (MAILSTREAM *stream)
  17163. {
  17164. }
  17165. void mm_nocritical (MAILSTREAM *stream)
  17166. {
  17167. }
  17168. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17169. {
  17170. }
  17171. void mm_fatal (char *string)
  17172. {
  17173. }
  17174. int
  17175. main ()
  17176. {
  17177. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17178. ;
  17179. return 0;
  17180. }
  17181. _ACEOF
  17182. if ac_fn_c_try_link "$LINENO"; then :
  17183. ac_cv_imap_tk="yes"
  17184. else
  17185. ac_cv_imap_tk="no"
  17186. fi
  17187. rm -f core conftest.err conftest.$ac_objext \
  17188. conftest$ac_exeext conftest.$ac_ext
  17189. if test "${ac_cv_imap_tk}" = "yes"; then
  17190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17191. /* end confdefs.h. */
  17192. #include "c-client.h"
  17193. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17194. {
  17195. }
  17196. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17197. {
  17198. }
  17199. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17200. {
  17201. }
  17202. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17203. {
  17204. }
  17205. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17206. {
  17207. }
  17208. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17209. {
  17210. }
  17211. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17212. {
  17213. }
  17214. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17215. {
  17216. }
  17217. void mm_log (char *string,long errflg)
  17218. {
  17219. }
  17220. void mm_dlog (char *string)
  17221. {
  17222. }
  17223. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17224. {
  17225. }
  17226. void mm_critical (MAILSTREAM *stream)
  17227. {
  17228. }
  17229. void mm_nocritical (MAILSTREAM *stream)
  17230. {
  17231. }
  17232. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17233. {
  17234. }
  17235. void mm_fatal (char *string)
  17236. {
  17237. }
  17238. int
  17239. main ()
  17240. {
  17241. long check = mail_expunge_full(NULL, "", 0);
  17242. ;
  17243. return 0;
  17244. }
  17245. _ACEOF
  17246. if ac_fn_c_try_link "$LINENO"; then :
  17247. ac_cv_imap_tk2006="yes"
  17248. else
  17249. ac_cv_imap_tk2006="no"
  17250. fi
  17251. rm -f core conftest.err conftest.$ac_objext \
  17252. conftest$ac_exeext conftest.$ac_ext
  17253. fi
  17254. CPPFLAGS="${saved_cppflags}"
  17255. LIBS="${saved_libs}"
  17256. if test "${ac_cv_imap_tk}" = "no"; then
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17258. $as_echo "no" >&6; }
  17259. if test "${switch_to_system_on_failure}" = "yes"; then
  17260. IMAP_TK_DIR="system"
  17261. else #This means they specified a directory. Search for a package installation there too
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  17263. $as_echo_n "checking for system c-client library...... " >&6; }
  17264. CPPFLAGS="${saved_cppflags}"
  17265. LIBS="${saved_libs}"
  17266. imap_include="-I${IMAP_TK_DIR}/include"
  17267. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  17268. imap_libs="-lc-client"
  17269. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17270. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  17271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17272. /* end confdefs.h. */
  17273. #include "c-client.h"
  17274. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17275. {
  17276. }
  17277. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17278. {
  17279. }
  17280. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17281. {
  17282. }
  17283. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17284. {
  17285. }
  17286. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17287. {
  17288. }
  17289. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17290. {
  17291. }
  17292. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17293. {
  17294. }
  17295. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17296. {
  17297. }
  17298. void mm_log (char *string,long errflg)
  17299. {
  17300. }
  17301. void mm_dlog (char *string)
  17302. {
  17303. }
  17304. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17305. {
  17306. }
  17307. void mm_critical (MAILSTREAM *stream)
  17308. {
  17309. }
  17310. void mm_nocritical (MAILSTREAM *stream)
  17311. {
  17312. }
  17313. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17314. {
  17315. }
  17316. void mm_fatal (char *string)
  17317. {
  17318. }
  17319. int
  17320. main ()
  17321. {
  17322. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17323. ;
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. if ac_fn_c_try_link "$LINENO"; then :
  17328. ac_cv_imap_tk="yes"
  17329. else
  17330. ac_cv_imap_tk="no"
  17331. fi
  17332. rm -f core conftest.err conftest.$ac_objext \
  17333. conftest$ac_exeext conftest.$ac_ext
  17334. if test "${ac_cv_imap_tk}" = "yes"; then
  17335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17336. /* end confdefs.h. */
  17337. #include "c-client.h"
  17338. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17339. {
  17340. }
  17341. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17342. {
  17343. }
  17344. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17345. {
  17346. }
  17347. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17348. {
  17349. }
  17350. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17351. {
  17352. }
  17353. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17354. {
  17355. }
  17356. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17357. {
  17358. }
  17359. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17360. {
  17361. }
  17362. void mm_log (char *string,long errflg)
  17363. {
  17364. }
  17365. void mm_dlog (char *string)
  17366. {
  17367. }
  17368. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17369. {
  17370. }
  17371. void mm_critical (MAILSTREAM *stream)
  17372. {
  17373. }
  17374. void mm_nocritical (MAILSTREAM *stream)
  17375. {
  17376. }
  17377. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17378. {
  17379. }
  17380. void mm_fatal (char *string)
  17381. {
  17382. }
  17383. int
  17384. main ()
  17385. {
  17386. long check = mail_expunge_full(NULL, "", 0);
  17387. ;
  17388. return 0;
  17389. }
  17390. _ACEOF
  17391. if ac_fn_c_try_link "$LINENO"; then :
  17392. ac_cv_imap_tk2006="yes"
  17393. else
  17394. ac_cv_imap_tk2006="no"
  17395. fi
  17396. rm -f core conftest.err conftest.$ac_objext \
  17397. conftest$ac_exeext conftest.$ac_ext
  17398. fi
  17399. fi
  17400. fi
  17401. fi
  17402. if test "${IMAP_TK_DIR}" = "system"; then
  17403. #We will enter here if user specified "system" or if any of above checks failed
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  17405. $as_echo_n "checking for system c-client library...... " >&6; }
  17406. CPPFLAGS="${saved_cppflags}"
  17407. LIBS="${saved_libs}"
  17408. imap_ldflags=""
  17409. imap_libs="-lc-client"
  17410. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  17411. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17412. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17414. /* end confdefs.h. */
  17415. #include <stdio.h>
  17416. #include <imap/c-client.h>
  17417. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17418. {
  17419. }
  17420. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17421. {
  17422. }
  17423. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17424. {
  17425. }
  17426. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17427. {
  17428. }
  17429. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17430. {
  17431. }
  17432. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17433. {
  17434. }
  17435. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17436. {
  17437. }
  17438. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17439. {
  17440. }
  17441. void mm_log (char *string,long errflg)
  17442. {
  17443. }
  17444. void mm_dlog (char *string)
  17445. {
  17446. }
  17447. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17448. {
  17449. }
  17450. void mm_critical (MAILSTREAM *stream)
  17451. {
  17452. }
  17453. void mm_nocritical (MAILSTREAM *stream)
  17454. {
  17455. }
  17456. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17457. {
  17458. }
  17459. void mm_fatal (char *string)
  17460. {
  17461. }
  17462. int
  17463. main ()
  17464. {
  17465. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. if ac_fn_c_try_link "$LINENO"; then :
  17471. ac_cv_imap_tk="yes"
  17472. else
  17473. ac_cv_imap_tk="no"
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. if test "${ac_cv_imap_tk}" = "yes"; then
  17478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17479. /* end confdefs.h. */
  17480. #include <stdio.h>
  17481. #include <imap/c-client.h>
  17482. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17483. {
  17484. }
  17485. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17486. {
  17487. }
  17488. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17489. {
  17490. }
  17491. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17492. {
  17493. }
  17494. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17495. {
  17496. }
  17497. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17498. {
  17499. }
  17500. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17501. {
  17502. }
  17503. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17504. {
  17505. }
  17506. void mm_log (char *string,long errflg)
  17507. {
  17508. }
  17509. void mm_dlog (char *string)
  17510. {
  17511. }
  17512. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17513. {
  17514. }
  17515. void mm_critical (MAILSTREAM *stream)
  17516. {
  17517. }
  17518. void mm_nocritical (MAILSTREAM *stream)
  17519. {
  17520. }
  17521. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17522. {
  17523. }
  17524. void mm_fatal (char *string)
  17525. {
  17526. }
  17527. int
  17528. main ()
  17529. {
  17530. long check = mail_expunge_full(NULL, "", 0);
  17531. ;
  17532. return 0;
  17533. }
  17534. _ACEOF
  17535. if ac_fn_c_try_link "$LINENO"; then :
  17536. ac_cv_imap_tk2006="yes"
  17537. else
  17538. ac_cv_imap_tk2006="no"
  17539. fi
  17540. rm -f core conftest.err conftest.$ac_objext \
  17541. conftest$ac_exeext conftest.$ac_ext
  17542. else #looking in imap directory didn't work, try c-client
  17543. imap_ldflags=""
  17544. imap_libs="-lc-client"
  17545. imap_include="-DUSE_SYSTEM_CCLIENT"
  17546. CPPFLAGS="${saved_cppflags}"
  17547. LIBS="${saved_libs}"
  17548. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17549. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17551. /* end confdefs.h. */
  17552. #include <stdio.h>
  17553. #include <c-client/c-client.h>
  17554. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17555. {
  17556. }
  17557. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17558. {
  17559. }
  17560. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17561. {
  17562. }
  17563. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17564. {
  17565. }
  17566. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17567. {
  17568. }
  17569. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17570. {
  17571. }
  17572. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17573. {
  17574. }
  17575. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17576. {
  17577. }
  17578. void mm_log (char *string,long errflg)
  17579. {
  17580. }
  17581. void mm_dlog (char *string)
  17582. {
  17583. }
  17584. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17585. {
  17586. }
  17587. void mm_critical (MAILSTREAM *stream)
  17588. {
  17589. }
  17590. void mm_nocritical (MAILSTREAM *stream)
  17591. {
  17592. }
  17593. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17594. {
  17595. }
  17596. void mm_fatal (char *string)
  17597. {
  17598. }
  17599. int
  17600. main ()
  17601. {
  17602. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17603. ;
  17604. return 0;
  17605. }
  17606. _ACEOF
  17607. if ac_fn_c_try_link "$LINENO"; then :
  17608. ac_cv_imap_tk="yes"
  17609. else
  17610. ac_cv_imap_tk="no"
  17611. fi
  17612. rm -f core conftest.err conftest.$ac_objext \
  17613. conftest$ac_exeext conftest.$ac_ext
  17614. if test "${ac_cv_imap_tk}" = "yes"; then
  17615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17616. /* end confdefs.h. */
  17617. #include <stdio.h>
  17618. #include <c-client/c-client.h>
  17619. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17620. {
  17621. }
  17622. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17623. {
  17624. }
  17625. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17626. {
  17627. }
  17628. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17629. {
  17630. }
  17631. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17632. {
  17633. }
  17634. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17635. {
  17636. }
  17637. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17638. {
  17639. }
  17640. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17641. {
  17642. }
  17643. void mm_log (char *string,long errflg)
  17644. {
  17645. }
  17646. void mm_dlog (char *string)
  17647. {
  17648. }
  17649. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17650. {
  17651. }
  17652. void mm_critical (MAILSTREAM *stream)
  17653. {
  17654. }
  17655. void mm_nocritical (MAILSTREAM *stream)
  17656. {
  17657. }
  17658. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17659. {
  17660. }
  17661. void mm_fatal (char *string)
  17662. {
  17663. }
  17664. int
  17665. main ()
  17666. {
  17667. long check = mail_expunge_full(NULL, "", 0);
  17668. ;
  17669. return 0;
  17670. }
  17671. _ACEOF
  17672. if ac_fn_c_try_link "$LINENO"; then :
  17673. ac_cv_imap_tk2006="yes"
  17674. else
  17675. ac_cv_imap_tk2006="no"
  17676. fi
  17677. rm -f core conftest.err conftest.$ac_objext \
  17678. conftest$ac_exeext conftest.$ac_ext
  17679. fi
  17680. fi
  17681. fi
  17682. if test "${ac_cv_imap_tk}" = "yes"; then
  17683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17684. $as_echo "yes" >&6; }
  17685. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  17686. IMAP_TK_INCLUDE="${imap_include}"
  17687. PBX_IMAP_TK=1
  17688. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  17689. if test "${ac_cv_imap_tk2006}" = "yes"; then
  17690. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  17691. fi
  17692. else
  17693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17694. $as_echo "no" >&6; }
  17695. fi
  17696. CPPFLAGS="${saved_cppflags}"
  17697. LIBS="${saved_libs}"
  17698. fi
  17699. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  17700. pbxlibdir=""
  17701. # if --with-IODBC=DIR has been specified, use it.
  17702. if test "x${IODBC_DIR}" != "x"; then
  17703. if test -d ${IODBC_DIR}/lib; then
  17704. pbxlibdir="-L${IODBC_DIR}/lib"
  17705. else
  17706. pbxlibdir="-L${IODBC_DIR}"
  17707. fi
  17708. fi
  17709. pbxfuncname="SQLConnect"
  17710. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17711. AST_IODBC_FOUND=yes
  17712. else
  17713. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17714. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  17715. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  17716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
  17717. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  17718. if eval \${$as_ac_Lib+:} false; then :
  17719. $as_echo_n "(cached) " >&6
  17720. else
  17721. ac_check_lib_save_LIBS=$LIBS
  17722. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  17723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17724. /* end confdefs.h. */
  17725. /* Override any GCC internal prototype to avoid an error.
  17726. Use char because int might match the return type of a GCC
  17727. builtin and then its argument prototype would still apply. */
  17728. #ifdef __cplusplus
  17729. extern "C"
  17730. #endif
  17731. char ${pbxfuncname} ();
  17732. int
  17733. main ()
  17734. {
  17735. return ${pbxfuncname} ();
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. if ac_fn_c_try_link "$LINENO"; then :
  17741. eval "$as_ac_Lib=yes"
  17742. else
  17743. eval "$as_ac_Lib=no"
  17744. fi
  17745. rm -f core conftest.err conftest.$ac_objext \
  17746. conftest$ac_exeext conftest.$ac_ext
  17747. LIBS=$ac_check_lib_save_LIBS
  17748. fi
  17749. eval ac_res=\$$as_ac_Lib
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17751. $as_echo "$ac_res" >&6; }
  17752. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17753. AST_IODBC_FOUND=yes
  17754. else
  17755. AST_IODBC_FOUND=no
  17756. fi
  17757. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17758. fi
  17759. # now check for the header.
  17760. if test "${AST_IODBC_FOUND}" = "yes"; then
  17761. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  17762. # if --with-IODBC=DIR has been specified, use it.
  17763. if test "x${IODBC_DIR}" != "x"; then
  17764. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  17765. fi
  17766. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  17767. if test "xsql.h" = "x" ; then # no header, assume found
  17768. IODBC_HEADER_FOUND="1"
  17769. else # check for the header
  17770. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17771. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  17772. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  17773. if test "x$ac_cv_header_sql_h" = xyes; then :
  17774. IODBC_HEADER_FOUND=1
  17775. else
  17776. IODBC_HEADER_FOUND=0
  17777. fi
  17778. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17779. fi
  17780. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  17781. IODBC_LIB=""
  17782. IODBC_INCLUDE=""
  17783. else
  17784. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17785. IODBC_LIB=""
  17786. fi
  17787. PBX_IODBC=1
  17788. cat >>confdefs.h <<_ACEOF
  17789. #define HAVE_IODBC 1
  17790. _ACEOF
  17791. fi
  17792. fi
  17793. fi
  17794. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  17795. pbxlibdir=""
  17796. # if --with-INOTIFY=DIR has been specified, use it.
  17797. if test "x${INOTIFY_DIR}" != "x"; then
  17798. if test -d ${INOTIFY_DIR}/lib; then
  17799. pbxlibdir="-L${INOTIFY_DIR}/lib"
  17800. else
  17801. pbxlibdir="-L${INOTIFY_DIR}"
  17802. fi
  17803. fi
  17804. pbxfuncname="inotify_init"
  17805. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17806. AST_INOTIFY_FOUND=yes
  17807. else
  17808. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17809. CFLAGS="${CFLAGS} "
  17810. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17812. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17813. if eval \${$as_ac_Lib+:} false; then :
  17814. $as_echo_n "(cached) " >&6
  17815. else
  17816. ac_check_lib_save_LIBS=$LIBS
  17817. LIBS="-lc ${pbxlibdir} $LIBS"
  17818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17819. /* end confdefs.h. */
  17820. /* Override any GCC internal prototype to avoid an error.
  17821. Use char because int might match the return type of a GCC
  17822. builtin and then its argument prototype would still apply. */
  17823. #ifdef __cplusplus
  17824. extern "C"
  17825. #endif
  17826. char ${pbxfuncname} ();
  17827. int
  17828. main ()
  17829. {
  17830. return ${pbxfuncname} ();
  17831. ;
  17832. return 0;
  17833. }
  17834. _ACEOF
  17835. if ac_fn_c_try_link "$LINENO"; then :
  17836. eval "$as_ac_Lib=yes"
  17837. else
  17838. eval "$as_ac_Lib=no"
  17839. fi
  17840. rm -f core conftest.err conftest.$ac_objext \
  17841. conftest$ac_exeext conftest.$ac_ext
  17842. LIBS=$ac_check_lib_save_LIBS
  17843. fi
  17844. eval ac_res=\$$as_ac_Lib
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17846. $as_echo "$ac_res" >&6; }
  17847. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17848. AST_INOTIFY_FOUND=yes
  17849. else
  17850. AST_INOTIFY_FOUND=no
  17851. fi
  17852. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17853. fi
  17854. # now check for the header.
  17855. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  17856. INOTIFY_LIB="${pbxlibdir} -lc "
  17857. # if --with-INOTIFY=DIR has been specified, use it.
  17858. if test "x${INOTIFY_DIR}" != "x"; then
  17859. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  17860. fi
  17861. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  17862. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  17863. INOTIFY_HEADER_FOUND="1"
  17864. else # check for the header
  17865. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17866. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  17867. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  17868. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  17869. INOTIFY_HEADER_FOUND=1
  17870. else
  17871. INOTIFY_HEADER_FOUND=0
  17872. fi
  17873. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17874. fi
  17875. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  17876. INOTIFY_LIB=""
  17877. INOTIFY_INCLUDE=""
  17878. else
  17879. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17880. INOTIFY_LIB=""
  17881. fi
  17882. PBX_INOTIFY=1
  17883. cat >>confdefs.h <<_ACEOF
  17884. #define HAVE_INOTIFY 1
  17885. _ACEOF
  17886. fi
  17887. fi
  17888. fi
  17889. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  17890. pbxlibdir=""
  17891. # if --with-JACK=DIR has been specified, use it.
  17892. if test "x${JACK_DIR}" != "x"; then
  17893. if test -d ${JACK_DIR}/lib; then
  17894. pbxlibdir="-L${JACK_DIR}/lib"
  17895. else
  17896. pbxlibdir="-L${JACK_DIR}"
  17897. fi
  17898. fi
  17899. pbxfuncname="jack_activate"
  17900. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17901. AST_JACK_FOUND=yes
  17902. else
  17903. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17904. CFLAGS="${CFLAGS} "
  17905. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
  17907. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  17908. if eval \${$as_ac_Lib+:} false; then :
  17909. $as_echo_n "(cached) " >&6
  17910. else
  17911. ac_check_lib_save_LIBS=$LIBS
  17912. LIBS="-ljack ${pbxlibdir} $LIBS"
  17913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17914. /* end confdefs.h. */
  17915. /* Override any GCC internal prototype to avoid an error.
  17916. Use char because int might match the return type of a GCC
  17917. builtin and then its argument prototype would still apply. */
  17918. #ifdef __cplusplus
  17919. extern "C"
  17920. #endif
  17921. char ${pbxfuncname} ();
  17922. int
  17923. main ()
  17924. {
  17925. return ${pbxfuncname} ();
  17926. ;
  17927. return 0;
  17928. }
  17929. _ACEOF
  17930. if ac_fn_c_try_link "$LINENO"; then :
  17931. eval "$as_ac_Lib=yes"
  17932. else
  17933. eval "$as_ac_Lib=no"
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext \
  17936. conftest$ac_exeext conftest.$ac_ext
  17937. LIBS=$ac_check_lib_save_LIBS
  17938. fi
  17939. eval ac_res=\$$as_ac_Lib
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17941. $as_echo "$ac_res" >&6; }
  17942. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17943. AST_JACK_FOUND=yes
  17944. else
  17945. AST_JACK_FOUND=no
  17946. fi
  17947. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17948. fi
  17949. # now check for the header.
  17950. if test "${AST_JACK_FOUND}" = "yes"; then
  17951. JACK_LIB="${pbxlibdir} -ljack "
  17952. # if --with-JACK=DIR has been specified, use it.
  17953. if test "x${JACK_DIR}" != "x"; then
  17954. JACK_INCLUDE="-I${JACK_DIR}/include"
  17955. fi
  17956. JACK_INCLUDE="${JACK_INCLUDE} "
  17957. if test "xjack/jack.h" = "x" ; then # no header, assume found
  17958. JACK_HEADER_FOUND="1"
  17959. else # check for the header
  17960. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17961. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  17962. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  17963. if test "x$ac_cv_header_jack_jack_h" = xyes; then :
  17964. JACK_HEADER_FOUND=1
  17965. else
  17966. JACK_HEADER_FOUND=0
  17967. fi
  17968. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17969. fi
  17970. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  17971. JACK_LIB=""
  17972. JACK_INCLUDE=""
  17973. else
  17974. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17975. JACK_LIB=""
  17976. fi
  17977. PBX_JACK=1
  17978. cat >>confdefs.h <<_ACEOF
  17979. #define HAVE_JACK 1
  17980. _ACEOF
  17981. fi
  17982. fi
  17983. fi
  17984. # BSD (and OS X) equivalent of inotify
  17985. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  17986. pbxlibdir=""
  17987. # if --with-KQUEUE=DIR has been specified, use it.
  17988. if test "x${KQUEUE_DIR}" != "x"; then
  17989. if test -d ${KQUEUE_DIR}/lib; then
  17990. pbxlibdir="-L${KQUEUE_DIR}/lib"
  17991. else
  17992. pbxlibdir="-L${KQUEUE_DIR}"
  17993. fi
  17994. fi
  17995. pbxfuncname="kqueue"
  17996. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17997. AST_KQUEUE_FOUND=yes
  17998. else
  17999. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18000. CFLAGS="${CFLAGS} "
  18001. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  18002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  18003. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  18004. if eval \${$as_ac_Lib+:} false; then :
  18005. $as_echo_n "(cached) " >&6
  18006. else
  18007. ac_check_lib_save_LIBS=$LIBS
  18008. LIBS="-lc ${pbxlibdir} $LIBS"
  18009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18010. /* end confdefs.h. */
  18011. /* Override any GCC internal prototype to avoid an error.
  18012. Use char because int might match the return type of a GCC
  18013. builtin and then its argument prototype would still apply. */
  18014. #ifdef __cplusplus
  18015. extern "C"
  18016. #endif
  18017. char ${pbxfuncname} ();
  18018. int
  18019. main ()
  18020. {
  18021. return ${pbxfuncname} ();
  18022. ;
  18023. return 0;
  18024. }
  18025. _ACEOF
  18026. if ac_fn_c_try_link "$LINENO"; then :
  18027. eval "$as_ac_Lib=yes"
  18028. else
  18029. eval "$as_ac_Lib=no"
  18030. fi
  18031. rm -f core conftest.err conftest.$ac_objext \
  18032. conftest$ac_exeext conftest.$ac_ext
  18033. LIBS=$ac_check_lib_save_LIBS
  18034. fi
  18035. eval ac_res=\$$as_ac_Lib
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18037. $as_echo "$ac_res" >&6; }
  18038. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18039. AST_KQUEUE_FOUND=yes
  18040. else
  18041. AST_KQUEUE_FOUND=no
  18042. fi
  18043. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18044. fi
  18045. # now check for the header.
  18046. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  18047. KQUEUE_LIB="${pbxlibdir} -lc "
  18048. # if --with-KQUEUE=DIR has been specified, use it.
  18049. if test "x${KQUEUE_DIR}" != "x"; then
  18050. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  18051. fi
  18052. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  18053. if test "xsys/event.h" = "x" ; then # no header, assume found
  18054. KQUEUE_HEADER_FOUND="1"
  18055. else # check for the header
  18056. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18057. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  18058. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  18059. if test "x$ac_cv_header_sys_event_h" = xyes; then :
  18060. KQUEUE_HEADER_FOUND=1
  18061. else
  18062. KQUEUE_HEADER_FOUND=0
  18063. fi
  18064. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18065. fi
  18066. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  18067. KQUEUE_LIB=""
  18068. KQUEUE_INCLUDE=""
  18069. else
  18070. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18071. KQUEUE_LIB=""
  18072. fi
  18073. PBX_KQUEUE=1
  18074. cat >>confdefs.h <<_ACEOF
  18075. #define HAVE_KQUEUE 1
  18076. _ACEOF
  18077. fi
  18078. fi
  18079. fi
  18080. # 64-bit version of kevent (from kqueue) on OS X
  18081. for ac_func in kevent64
  18082. do :
  18083. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  18084. if test "x$ac_cv_func_kevent64" = xyes; then :
  18085. cat >>confdefs.h <<_ACEOF
  18086. #define HAVE_KEVENT64 1
  18087. _ACEOF
  18088. fi
  18089. done
  18090. # Needed by unixodbc
  18091. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  18092. pbxlibdir=""
  18093. # if --with-LTDL=DIR has been specified, use it.
  18094. if test "x${LTDL_DIR}" != "x"; then
  18095. if test -d ${LTDL_DIR}/lib; then
  18096. pbxlibdir="-L${LTDL_DIR}/lib"
  18097. else
  18098. pbxlibdir="-L${LTDL_DIR}"
  18099. fi
  18100. fi
  18101. pbxfuncname="lt_dlinit"
  18102. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18103. AST_LTDL_FOUND=yes
  18104. else
  18105. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18106. CFLAGS="${CFLAGS} "
  18107. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
  18109. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  18110. if eval \${$as_ac_Lib+:} false; then :
  18111. $as_echo_n "(cached) " >&6
  18112. else
  18113. ac_check_lib_save_LIBS=$LIBS
  18114. LIBS="-lltdl ${pbxlibdir} $LIBS"
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. /* Override any GCC internal prototype to avoid an error.
  18118. Use char because int might match the return type of a GCC
  18119. builtin and then its argument prototype would still apply. */
  18120. #ifdef __cplusplus
  18121. extern "C"
  18122. #endif
  18123. char ${pbxfuncname} ();
  18124. int
  18125. main ()
  18126. {
  18127. return ${pbxfuncname} ();
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_link "$LINENO"; then :
  18133. eval "$as_ac_Lib=yes"
  18134. else
  18135. eval "$as_ac_Lib=no"
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext \
  18138. conftest$ac_exeext conftest.$ac_ext
  18139. LIBS=$ac_check_lib_save_LIBS
  18140. fi
  18141. eval ac_res=\$$as_ac_Lib
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18143. $as_echo "$ac_res" >&6; }
  18144. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18145. AST_LTDL_FOUND=yes
  18146. else
  18147. AST_LTDL_FOUND=no
  18148. fi
  18149. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18150. fi
  18151. # now check for the header.
  18152. if test "${AST_LTDL_FOUND}" = "yes"; then
  18153. LTDL_LIB="${pbxlibdir} -lltdl "
  18154. # if --with-LTDL=DIR has been specified, use it.
  18155. if test "x${LTDL_DIR}" != "x"; then
  18156. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  18157. fi
  18158. LTDL_INCLUDE="${LTDL_INCLUDE} "
  18159. if test "xltdl.h" = "x" ; then # no header, assume found
  18160. LTDL_HEADER_FOUND="1"
  18161. else # check for the header
  18162. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18163. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  18164. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  18165. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  18166. LTDL_HEADER_FOUND=1
  18167. else
  18168. LTDL_HEADER_FOUND=0
  18169. fi
  18170. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18171. fi
  18172. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  18173. LTDL_LIB=""
  18174. LTDL_INCLUDE=""
  18175. else
  18176. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18177. LTDL_LIB=""
  18178. fi
  18179. PBX_LTDL=1
  18180. cat >>confdefs.h <<_ACEOF
  18181. #define HAVE_LTDL 1
  18182. _ACEOF
  18183. fi
  18184. fi
  18185. fi
  18186. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  18187. pbxlibdir=""
  18188. # if --with-LDAP=DIR has been specified, use it.
  18189. if test "x${LDAP_DIR}" != "x"; then
  18190. if test -d ${LDAP_DIR}/lib; then
  18191. pbxlibdir="-L${LDAP_DIR}/lib"
  18192. else
  18193. pbxlibdir="-L${LDAP_DIR}"
  18194. fi
  18195. fi
  18196. pbxfuncname="ldap_initialize"
  18197. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18198. AST_LDAP_FOUND=yes
  18199. else
  18200. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18201. CFLAGS="${CFLAGS} "
  18202. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
  18204. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  18205. if eval \${$as_ac_Lib+:} false; then :
  18206. $as_echo_n "(cached) " >&6
  18207. else
  18208. ac_check_lib_save_LIBS=$LIBS
  18209. LIBS="-lldap ${pbxlibdir} $LIBS"
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. /* Override any GCC internal prototype to avoid an error.
  18213. Use char because int might match the return type of a GCC
  18214. builtin and then its argument prototype would still apply. */
  18215. #ifdef __cplusplus
  18216. extern "C"
  18217. #endif
  18218. char ${pbxfuncname} ();
  18219. int
  18220. main ()
  18221. {
  18222. return ${pbxfuncname} ();
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_link "$LINENO"; then :
  18228. eval "$as_ac_Lib=yes"
  18229. else
  18230. eval "$as_ac_Lib=no"
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext \
  18233. conftest$ac_exeext conftest.$ac_ext
  18234. LIBS=$ac_check_lib_save_LIBS
  18235. fi
  18236. eval ac_res=\$$as_ac_Lib
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18238. $as_echo "$ac_res" >&6; }
  18239. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18240. AST_LDAP_FOUND=yes
  18241. else
  18242. AST_LDAP_FOUND=no
  18243. fi
  18244. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18245. fi
  18246. # now check for the header.
  18247. if test "${AST_LDAP_FOUND}" = "yes"; then
  18248. LDAP_LIB="${pbxlibdir} -lldap "
  18249. # if --with-LDAP=DIR has been specified, use it.
  18250. if test "x${LDAP_DIR}" != "x"; then
  18251. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  18252. fi
  18253. LDAP_INCLUDE="${LDAP_INCLUDE} "
  18254. if test "xldap.h" = "x" ; then # no header, assume found
  18255. LDAP_HEADER_FOUND="1"
  18256. else # check for the header
  18257. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18258. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  18259. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  18260. if test "x$ac_cv_header_ldap_h" = xyes; then :
  18261. LDAP_HEADER_FOUND=1
  18262. else
  18263. LDAP_HEADER_FOUND=0
  18264. fi
  18265. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18266. fi
  18267. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  18268. LDAP_LIB=""
  18269. LDAP_INCLUDE=""
  18270. else
  18271. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18272. LDAP_LIB=""
  18273. fi
  18274. PBX_LDAP=1
  18275. cat >>confdefs.h <<_ACEOF
  18276. #define HAVE_LDAP 1
  18277. _ACEOF
  18278. fi
  18279. fi
  18280. fi
  18281. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  18282. pbxlibdir=""
  18283. # if --with-MISDN=DIR has been specified, use it.
  18284. if test "x${MISDN_DIR}" != "x"; then
  18285. if test -d ${MISDN_DIR}/lib; then
  18286. pbxlibdir="-L${MISDN_DIR}/lib"
  18287. else
  18288. pbxlibdir="-L${MISDN_DIR}"
  18289. fi
  18290. fi
  18291. pbxfuncname="mISDN_open"
  18292. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18293. AST_MISDN_FOUND=yes
  18294. else
  18295. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18296. CFLAGS="${CFLAGS} "
  18297. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
  18299. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  18300. if eval \${$as_ac_Lib+:} false; then :
  18301. $as_echo_n "(cached) " >&6
  18302. else
  18303. ac_check_lib_save_LIBS=$LIBS
  18304. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  18305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18306. /* end confdefs.h. */
  18307. /* Override any GCC internal prototype to avoid an error.
  18308. Use char because int might match the return type of a GCC
  18309. builtin and then its argument prototype would still apply. */
  18310. #ifdef __cplusplus
  18311. extern "C"
  18312. #endif
  18313. char ${pbxfuncname} ();
  18314. int
  18315. main ()
  18316. {
  18317. return ${pbxfuncname} ();
  18318. ;
  18319. return 0;
  18320. }
  18321. _ACEOF
  18322. if ac_fn_c_try_link "$LINENO"; then :
  18323. eval "$as_ac_Lib=yes"
  18324. else
  18325. eval "$as_ac_Lib=no"
  18326. fi
  18327. rm -f core conftest.err conftest.$ac_objext \
  18328. conftest$ac_exeext conftest.$ac_ext
  18329. LIBS=$ac_check_lib_save_LIBS
  18330. fi
  18331. eval ac_res=\$$as_ac_Lib
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18333. $as_echo "$ac_res" >&6; }
  18334. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18335. AST_MISDN_FOUND=yes
  18336. else
  18337. AST_MISDN_FOUND=no
  18338. fi
  18339. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18340. fi
  18341. # now check for the header.
  18342. if test "${AST_MISDN_FOUND}" = "yes"; then
  18343. MISDN_LIB="${pbxlibdir} -lmISDN "
  18344. # if --with-MISDN=DIR has been specified, use it.
  18345. if test "x${MISDN_DIR}" != "x"; then
  18346. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  18347. fi
  18348. MISDN_INCLUDE="${MISDN_INCLUDE} "
  18349. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  18350. MISDN_HEADER_FOUND="1"
  18351. else # check for the header
  18352. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18353. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  18354. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  18355. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = xyes; then :
  18356. MISDN_HEADER_FOUND=1
  18357. else
  18358. MISDN_HEADER_FOUND=0
  18359. fi
  18360. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18361. fi
  18362. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  18363. MISDN_LIB=""
  18364. MISDN_INCLUDE=""
  18365. else
  18366. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18367. MISDN_LIB=""
  18368. fi
  18369. PBX_MISDN=1
  18370. cat >>confdefs.h <<_ACEOF
  18371. #define HAVE_MISDN 1
  18372. _ACEOF
  18373. fi
  18374. fi
  18375. fi
  18376. if test "${PBX_MISDN}" = 1; then
  18377. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  18378. pbxlibdir=""
  18379. # if --with-ISDNNET=DIR has been specified, use it.
  18380. if test "x${ISDNNET_DIR}" != "x"; then
  18381. if test -d ${ISDNNET_DIR}/lib; then
  18382. pbxlibdir="-L${ISDNNET_DIR}/lib"
  18383. else
  18384. pbxlibdir="-L${ISDNNET_DIR}"
  18385. fi
  18386. fi
  18387. pbxfuncname="init_manager"
  18388. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18389. AST_ISDNNET_FOUND=yes
  18390. else
  18391. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18392. CFLAGS="${CFLAGS} "
  18393. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
  18395. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  18396. if eval \${$as_ac_Lib+:} false; then :
  18397. $as_echo_n "(cached) " >&6
  18398. else
  18399. ac_check_lib_save_LIBS=$LIBS
  18400. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  18401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18402. /* end confdefs.h. */
  18403. /* Override any GCC internal prototype to avoid an error.
  18404. Use char because int might match the return type of a GCC
  18405. builtin and then its argument prototype would still apply. */
  18406. #ifdef __cplusplus
  18407. extern "C"
  18408. #endif
  18409. char ${pbxfuncname} ();
  18410. int
  18411. main ()
  18412. {
  18413. return ${pbxfuncname} ();
  18414. ;
  18415. return 0;
  18416. }
  18417. _ACEOF
  18418. if ac_fn_c_try_link "$LINENO"; then :
  18419. eval "$as_ac_Lib=yes"
  18420. else
  18421. eval "$as_ac_Lib=no"
  18422. fi
  18423. rm -f core conftest.err conftest.$ac_objext \
  18424. conftest$ac_exeext conftest.$ac_ext
  18425. LIBS=$ac_check_lib_save_LIBS
  18426. fi
  18427. eval ac_res=\$$as_ac_Lib
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18429. $as_echo "$ac_res" >&6; }
  18430. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18431. AST_ISDNNET_FOUND=yes
  18432. else
  18433. AST_ISDNNET_FOUND=no
  18434. fi
  18435. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18436. fi
  18437. # now check for the header.
  18438. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  18439. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  18440. # if --with-ISDNNET=DIR has been specified, use it.
  18441. if test "x${ISDNNET_DIR}" != "x"; then
  18442. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  18443. fi
  18444. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  18445. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  18446. ISDNNET_HEADER_FOUND="1"
  18447. else # check for the header
  18448. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18449. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  18450. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  18451. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = xyes; then :
  18452. ISDNNET_HEADER_FOUND=1
  18453. else
  18454. ISDNNET_HEADER_FOUND=0
  18455. fi
  18456. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18457. fi
  18458. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  18459. ISDNNET_LIB=""
  18460. ISDNNET_INCLUDE=""
  18461. else
  18462. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18463. ISDNNET_LIB=""
  18464. fi
  18465. PBX_ISDNNET=1
  18466. cat >>confdefs.h <<_ACEOF
  18467. #define HAVE_ISDNNET 1
  18468. _ACEOF
  18469. fi
  18470. fi
  18471. fi
  18472. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  18473. pbxlibdir=""
  18474. # if --with-SUPPSERV=DIR has been specified, use it.
  18475. if test "x${SUPPSERV_DIR}" != "x"; then
  18476. if test -d ${SUPPSERV_DIR}/lib; then
  18477. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  18478. else
  18479. pbxlibdir="-L${SUPPSERV_DIR}"
  18480. fi
  18481. fi
  18482. pbxfuncname="encodeFac"
  18483. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18484. AST_SUPPSERV_FOUND=yes
  18485. else
  18486. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18487. CFLAGS="${CFLAGS} "
  18488. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
  18490. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  18491. if eval \${$as_ac_Lib+:} false; then :
  18492. $as_echo_n "(cached) " >&6
  18493. else
  18494. ac_check_lib_save_LIBS=$LIBS
  18495. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  18496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18497. /* end confdefs.h. */
  18498. /* Override any GCC internal prototype to avoid an error.
  18499. Use char because int might match the return type of a GCC
  18500. builtin and then its argument prototype would still apply. */
  18501. #ifdef __cplusplus
  18502. extern "C"
  18503. #endif
  18504. char ${pbxfuncname} ();
  18505. int
  18506. main ()
  18507. {
  18508. return ${pbxfuncname} ();
  18509. ;
  18510. return 0;
  18511. }
  18512. _ACEOF
  18513. if ac_fn_c_try_link "$LINENO"; then :
  18514. eval "$as_ac_Lib=yes"
  18515. else
  18516. eval "$as_ac_Lib=no"
  18517. fi
  18518. rm -f core conftest.err conftest.$ac_objext \
  18519. conftest$ac_exeext conftest.$ac_ext
  18520. LIBS=$ac_check_lib_save_LIBS
  18521. fi
  18522. eval ac_res=\$$as_ac_Lib
  18523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18524. $as_echo "$ac_res" >&6; }
  18525. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18526. AST_SUPPSERV_FOUND=yes
  18527. else
  18528. AST_SUPPSERV_FOUND=no
  18529. fi
  18530. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18531. fi
  18532. # now check for the header.
  18533. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  18534. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  18535. # if --with-SUPPSERV=DIR has been specified, use it.
  18536. if test "x${SUPPSERV_DIR}" != "x"; then
  18537. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  18538. fi
  18539. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  18540. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  18541. SUPPSERV_HEADER_FOUND="1"
  18542. else # check for the header
  18543. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18544. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  18545. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  18546. if test "x$ac_cv_header_mISDNuser_suppserv_h" = xyes; then :
  18547. SUPPSERV_HEADER_FOUND=1
  18548. else
  18549. SUPPSERV_HEADER_FOUND=0
  18550. fi
  18551. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18552. fi
  18553. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  18554. SUPPSERV_LIB=""
  18555. SUPPSERV_INCLUDE=""
  18556. else
  18557. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18558. SUPPSERV_LIB=""
  18559. fi
  18560. PBX_SUPPSERV=1
  18561. cat >>confdefs.h <<_ACEOF
  18562. #define HAVE_SUPPSERV 1
  18563. _ACEOF
  18564. fi
  18565. fi
  18566. fi
  18567. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  18569. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  18570. saved_cppflags="${CPPFLAGS}"
  18571. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  18572. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  18573. fi
  18574. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  18575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18576. /* end confdefs.h. */
  18577. #include <mISDNuser/suppserv.h>
  18578. int
  18579. main ()
  18580. {
  18581. #if defined(Fac_RESULT)
  18582. int foo = 0;
  18583. #else
  18584. int foo = bar;
  18585. #endif
  18586. 0
  18587. ;
  18588. return 0;
  18589. }
  18590. _ACEOF
  18591. if ac_fn_c_try_compile "$LINENO"; then :
  18592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18593. $as_echo "yes" >&6; }
  18594. PBX_MISDN_FAC_RESULT=1
  18595. $as_echo "#define HAVE_MISDN_FAC_RESULT 1" >>confdefs.h
  18596. else
  18597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18598. $as_echo "no" >&6; }
  18599. fi
  18600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18601. CPPFLAGS="${saved_cppflags}"
  18602. fi
  18603. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  18604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  18605. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  18606. saved_cppflags="${CPPFLAGS}"
  18607. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  18608. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  18609. fi
  18610. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. #include <mISDNuser/suppserv.h>
  18614. int
  18615. main ()
  18616. {
  18617. #if defined(Fac_ERROR)
  18618. int foo = 0;
  18619. #else
  18620. int foo = bar;
  18621. #endif
  18622. 0
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. if ac_fn_c_try_compile "$LINENO"; then :
  18628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18629. $as_echo "yes" >&6; }
  18630. PBX_MISDN_FAC_ERROR=1
  18631. $as_echo "#define HAVE_MISDN_FAC_ERROR 1" >>confdefs.h
  18632. else
  18633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18634. $as_echo "no" >&6; }
  18635. fi
  18636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18637. CPPFLAGS="${saved_cppflags}"
  18638. fi
  18639. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  18640. if test "x$ac_cv_header_linux_mISDNdsp_h" = xyes; then :
  18641. cat >>confdefs.h <<_ACEOF
  18642. #define MISDN_1_2 1
  18643. _ACEOF
  18644. fi
  18645. ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
  18646. "
  18647. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = xyes; then :
  18648. else
  18649. PBX_MISDN=0
  18650. fi
  18651. fi
  18652. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  18653. PBX_MYSQLCLIENT=0
  18654. if test -n "$ac_tool_prefix"; then
  18655. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  18656. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18658. $as_echo_n "checking for $ac_word... " >&6; }
  18659. if ${ac_cv_path_CONFIG_MYSQLCLIENT+:} false; then :
  18660. $as_echo_n "(cached) " >&6
  18661. else
  18662. case $CONFIG_MYSQLCLIENT in
  18663. [\\/]* | ?:[\\/]*)
  18664. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  18665. ;;
  18666. *)
  18667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18668. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  18669. for as_dir in $as_dummy
  18670. do
  18671. IFS=$as_save_IFS
  18672. test -z "$as_dir" && as_dir=.
  18673. for ac_exec_ext in '' $ac_executable_extensions; do
  18674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18675. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  18676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18677. break 2
  18678. fi
  18679. done
  18680. done
  18681. IFS=$as_save_IFS
  18682. ;;
  18683. esac
  18684. fi
  18685. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  18686. if test -n "$CONFIG_MYSQLCLIENT"; then
  18687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  18688. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  18689. else
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18691. $as_echo "no" >&6; }
  18692. fi
  18693. fi
  18694. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  18695. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  18696. # Extract the first word of "mysql_config", so it can be a program name with args.
  18697. set dummy mysql_config; ac_word=$2
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18699. $as_echo_n "checking for $ac_word... " >&6; }
  18700. if ${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+:} false; then :
  18701. $as_echo_n "(cached) " >&6
  18702. else
  18703. case $ac_pt_CONFIG_MYSQLCLIENT in
  18704. [\\/]* | ?:[\\/]*)
  18705. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  18706. ;;
  18707. *)
  18708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18709. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  18710. for as_dir in $as_dummy
  18711. do
  18712. IFS=$as_save_IFS
  18713. test -z "$as_dir" && as_dir=.
  18714. for ac_exec_ext in '' $ac_executable_extensions; do
  18715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18716. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  18717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18718. break 2
  18719. fi
  18720. done
  18721. done
  18722. IFS=$as_save_IFS
  18723. ;;
  18724. esac
  18725. fi
  18726. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  18727. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  18728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  18729. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  18730. else
  18731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18732. $as_echo "no" >&6; }
  18733. fi
  18734. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  18735. CONFIG_MYSQLCLIENT="No"
  18736. else
  18737. case $cross_compiling:$ac_tool_warned in
  18738. yes:)
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18740. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18741. ac_tool_warned=yes ;;
  18742. esac
  18743. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  18744. fi
  18745. else
  18746. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  18747. fi
  18748. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  18749. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18750. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  18751. MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g")
  18752. if test x"" = x ; then A=--libs ; else A="" ; fi
  18753. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  18754. MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
  18755. if test x"" != x ; then
  18756. saved_cppflags="${CPPFLAGS}"
  18757. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  18758. saved_libs="${LIBS}"
  18759. LIBS=${MYSQLCLIENT_LIB}
  18760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18761. /* end confdefs.h. */
  18762. int
  18763. main ()
  18764. {
  18765. ;
  18766. ;
  18767. return 0;
  18768. }
  18769. _ACEOF
  18770. if ac_fn_c_try_link "$LINENO"; then :
  18771. PBX_MYSQLCLIENT=1
  18772. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  18773. fi
  18774. rm -f core conftest.err conftest.$ac_objext \
  18775. conftest$ac_exeext conftest.$ac_ext
  18776. CPPFLAGS="${saved_cppflags}"
  18777. LIBS="${saved_libs}"
  18778. else
  18779. PBX_MYSQLCLIENT=1
  18780. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  18781. fi
  18782. fi
  18783. fi
  18784. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  18785. pbxlibdir=""
  18786. # if --with-NBS=DIR has been specified, use it.
  18787. if test "x${NBS_DIR}" != "x"; then
  18788. if test -d ${NBS_DIR}/lib; then
  18789. pbxlibdir="-L${NBS_DIR}/lib"
  18790. else
  18791. pbxlibdir="-L${NBS_DIR}"
  18792. fi
  18793. fi
  18794. pbxfuncname="nbs_connect"
  18795. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18796. AST_NBS_FOUND=yes
  18797. else
  18798. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18799. CFLAGS="${CFLAGS} "
  18800. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  18801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
  18802. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  18803. if eval \${$as_ac_Lib+:} false; then :
  18804. $as_echo_n "(cached) " >&6
  18805. else
  18806. ac_check_lib_save_LIBS=$LIBS
  18807. LIBS="-lnbs ${pbxlibdir} $LIBS"
  18808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18809. /* end confdefs.h. */
  18810. /* Override any GCC internal prototype to avoid an error.
  18811. Use char because int might match the return type of a GCC
  18812. builtin and then its argument prototype would still apply. */
  18813. #ifdef __cplusplus
  18814. extern "C"
  18815. #endif
  18816. char ${pbxfuncname} ();
  18817. int
  18818. main ()
  18819. {
  18820. return ${pbxfuncname} ();
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. if ac_fn_c_try_link "$LINENO"; then :
  18826. eval "$as_ac_Lib=yes"
  18827. else
  18828. eval "$as_ac_Lib=no"
  18829. fi
  18830. rm -f core conftest.err conftest.$ac_objext \
  18831. conftest$ac_exeext conftest.$ac_ext
  18832. LIBS=$ac_check_lib_save_LIBS
  18833. fi
  18834. eval ac_res=\$$as_ac_Lib
  18835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18836. $as_echo "$ac_res" >&6; }
  18837. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18838. AST_NBS_FOUND=yes
  18839. else
  18840. AST_NBS_FOUND=no
  18841. fi
  18842. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18843. fi
  18844. # now check for the header.
  18845. if test "${AST_NBS_FOUND}" = "yes"; then
  18846. NBS_LIB="${pbxlibdir} -lnbs "
  18847. # if --with-NBS=DIR has been specified, use it.
  18848. if test "x${NBS_DIR}" != "x"; then
  18849. NBS_INCLUDE="-I${NBS_DIR}/include"
  18850. fi
  18851. NBS_INCLUDE="${NBS_INCLUDE} "
  18852. if test "xnbs.h" = "x" ; then # no header, assume found
  18853. NBS_HEADER_FOUND="1"
  18854. else # check for the header
  18855. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18856. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  18857. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  18858. if test "x$ac_cv_header_nbs_h" = xyes; then :
  18859. NBS_HEADER_FOUND=1
  18860. else
  18861. NBS_HEADER_FOUND=0
  18862. fi
  18863. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18864. fi
  18865. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  18866. NBS_LIB=""
  18867. NBS_INCLUDE=""
  18868. else
  18869. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18870. NBS_LIB=""
  18871. fi
  18872. PBX_NBS=1
  18873. cat >>confdefs.h <<_ACEOF
  18874. #define HAVE_NBS 1
  18875. _ACEOF
  18876. fi
  18877. fi
  18878. fi
  18879. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  18880. PBX_NEON=0
  18881. if test -n "$ac_tool_prefix"; then
  18882. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  18883. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18885. $as_echo_n "checking for $ac_word... " >&6; }
  18886. if ${ac_cv_path_CONFIG_NEON+:} false; then :
  18887. $as_echo_n "(cached) " >&6
  18888. else
  18889. case $CONFIG_NEON in
  18890. [\\/]* | ?:[\\/]*)
  18891. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  18892. ;;
  18893. *)
  18894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18895. as_dummy="${NEON_DIR}/bin:$PATH"
  18896. for as_dir in $as_dummy
  18897. do
  18898. IFS=$as_save_IFS
  18899. test -z "$as_dir" && as_dir=.
  18900. for ac_exec_ext in '' $ac_executable_extensions; do
  18901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18902. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18904. break 2
  18905. fi
  18906. done
  18907. done
  18908. IFS=$as_save_IFS
  18909. ;;
  18910. esac
  18911. fi
  18912. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  18913. if test -n "$CONFIG_NEON"; then
  18914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  18915. $as_echo "$CONFIG_NEON" >&6; }
  18916. else
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18918. $as_echo "no" >&6; }
  18919. fi
  18920. fi
  18921. if test -z "$ac_cv_path_CONFIG_NEON"; then
  18922. ac_pt_CONFIG_NEON=$CONFIG_NEON
  18923. # Extract the first word of "neon-config", so it can be a program name with args.
  18924. set dummy neon-config; ac_word=$2
  18925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18926. $as_echo_n "checking for $ac_word... " >&6; }
  18927. if ${ac_cv_path_ac_pt_CONFIG_NEON+:} false; then :
  18928. $as_echo_n "(cached) " >&6
  18929. else
  18930. case $ac_pt_CONFIG_NEON in
  18931. [\\/]* | ?:[\\/]*)
  18932. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  18933. ;;
  18934. *)
  18935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18936. as_dummy="${NEON_DIR}/bin:$PATH"
  18937. for as_dir in $as_dummy
  18938. do
  18939. IFS=$as_save_IFS
  18940. test -z "$as_dir" && as_dir=.
  18941. for ac_exec_ext in '' $ac_executable_extensions; do
  18942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18943. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18945. break 2
  18946. fi
  18947. done
  18948. done
  18949. IFS=$as_save_IFS
  18950. ;;
  18951. esac
  18952. fi
  18953. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  18954. if test -n "$ac_pt_CONFIG_NEON"; then
  18955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  18956. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  18957. else
  18958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18959. $as_echo "no" >&6; }
  18960. fi
  18961. if test "x$ac_pt_CONFIG_NEON" = x; then
  18962. CONFIG_NEON="No"
  18963. else
  18964. case $cross_compiling:$ac_tool_warned in
  18965. yes:)
  18966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18968. ac_tool_warned=yes ;;
  18969. esac
  18970. CONFIG_NEON=$ac_pt_CONFIG_NEON
  18971. fi
  18972. else
  18973. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  18974. fi
  18975. if test ! "x${CONFIG_NEON}" = xNo; then
  18976. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18977. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  18978. NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g")
  18979. if test x"" = x ; then A=--libs ; else A="" ; fi
  18980. NEON_LIB=$(${CONFIG_NEON} $A)
  18981. NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
  18982. if test x"" != x ; then
  18983. saved_cppflags="${CPPFLAGS}"
  18984. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  18985. saved_libs="${LIBS}"
  18986. LIBS=${NEON_LIB}
  18987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18988. /* end confdefs.h. */
  18989. int
  18990. main ()
  18991. {
  18992. ;
  18993. ;
  18994. return 0;
  18995. }
  18996. _ACEOF
  18997. if ac_fn_c_try_link "$LINENO"; then :
  18998. PBX_NEON=1
  18999. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext \
  19002. conftest$ac_exeext conftest.$ac_ext
  19003. CPPFLAGS="${saved_cppflags}"
  19004. LIBS="${saved_libs}"
  19005. else
  19006. PBX_NEON=1
  19007. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  19008. fi
  19009. fi
  19010. fi
  19011. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  19012. PBX_NEON29=0
  19013. if test -n "$ac_tool_prefix"; then
  19014. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  19015. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  19016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19017. $as_echo_n "checking for $ac_word... " >&6; }
  19018. if ${ac_cv_path_CONFIG_NEON29+:} false; then :
  19019. $as_echo_n "(cached) " >&6
  19020. else
  19021. case $CONFIG_NEON29 in
  19022. [\\/]* | ?:[\\/]*)
  19023. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  19024. ;;
  19025. *)
  19026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19027. as_dummy="${NEON29_DIR}/bin:$PATH"
  19028. for as_dir in $as_dummy
  19029. do
  19030. IFS=$as_save_IFS
  19031. test -z "$as_dir" && as_dir=.
  19032. for ac_exec_ext in '' $ac_executable_extensions; do
  19033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19034. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  19035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19036. break 2
  19037. fi
  19038. done
  19039. done
  19040. IFS=$as_save_IFS
  19041. ;;
  19042. esac
  19043. fi
  19044. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  19045. if test -n "$CONFIG_NEON29"; then
  19046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  19047. $as_echo "$CONFIG_NEON29" >&6; }
  19048. else
  19049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19050. $as_echo "no" >&6; }
  19051. fi
  19052. fi
  19053. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  19054. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  19055. # Extract the first word of "neon-config", so it can be a program name with args.
  19056. set dummy neon-config; ac_word=$2
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19058. $as_echo_n "checking for $ac_word... " >&6; }
  19059. if ${ac_cv_path_ac_pt_CONFIG_NEON29+:} false; then :
  19060. $as_echo_n "(cached) " >&6
  19061. else
  19062. case $ac_pt_CONFIG_NEON29 in
  19063. [\\/]* | ?:[\\/]*)
  19064. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  19065. ;;
  19066. *)
  19067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19068. as_dummy="${NEON29_DIR}/bin:$PATH"
  19069. for as_dir in $as_dummy
  19070. do
  19071. IFS=$as_save_IFS
  19072. test -z "$as_dir" && as_dir=.
  19073. for ac_exec_ext in '' $ac_executable_extensions; do
  19074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19075. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  19076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19077. break 2
  19078. fi
  19079. done
  19080. done
  19081. IFS=$as_save_IFS
  19082. ;;
  19083. esac
  19084. fi
  19085. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  19086. if test -n "$ac_pt_CONFIG_NEON29"; then
  19087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  19088. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  19089. else
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19091. $as_echo "no" >&6; }
  19092. fi
  19093. if test "x$ac_pt_CONFIG_NEON29" = x; then
  19094. CONFIG_NEON29="No"
  19095. else
  19096. case $cross_compiling:$ac_tool_warned in
  19097. yes:)
  19098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19099. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19100. ac_tool_warned=yes ;;
  19101. esac
  19102. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  19103. fi
  19104. else
  19105. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  19106. fi
  19107. if test ! "x${CONFIG_NEON29}" = xNo; then
  19108. if test x"" = x ; then A=--cflags ; else A="" ; fi
  19109. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  19110. NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g")
  19111. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  19112. NEON29_LIB=$(${CONFIG_NEON29} $A)
  19113. NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
  19114. if test x"#include <ne_auth.h>" != x ; then
  19115. saved_cppflags="${CPPFLAGS}"
  19116. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  19117. saved_libs="${LIBS}"
  19118. LIBS=${NEON29_LIB}
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. #include <ne_auth.h>
  19122. int
  19123. main ()
  19124. {
  19125. #ifndef NE_AUTH_NTLM
  19126. #error Need libneon >= 0.29.0
  19127. #endif;
  19128. ;
  19129. return 0;
  19130. }
  19131. _ACEOF
  19132. if ac_fn_c_try_link "$LINENO"; then :
  19133. PBX_NEON29=1
  19134. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  19135. fi
  19136. rm -f core conftest.err conftest.$ac_objext \
  19137. conftest$ac_exeext conftest.$ac_ext
  19138. CPPFLAGS="${saved_cppflags}"
  19139. LIBS="${saved_libs}"
  19140. else
  19141. PBX_NEON29=1
  19142. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  19143. fi
  19144. fi
  19145. fi
  19146. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  19147. PBX_NETSNMP=0
  19148. if test -n "$ac_tool_prefix"; then
  19149. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  19150. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19152. $as_echo_n "checking for $ac_word... " >&6; }
  19153. if ${ac_cv_path_CONFIG_NETSNMP+:} false; then :
  19154. $as_echo_n "(cached) " >&6
  19155. else
  19156. case $CONFIG_NETSNMP in
  19157. [\\/]* | ?:[\\/]*)
  19158. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  19159. ;;
  19160. *)
  19161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19162. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  19163. for as_dir in $as_dummy
  19164. do
  19165. IFS=$as_save_IFS
  19166. test -z "$as_dir" && as_dir=.
  19167. for ac_exec_ext in '' $ac_executable_extensions; do
  19168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19169. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  19170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19171. break 2
  19172. fi
  19173. done
  19174. done
  19175. IFS=$as_save_IFS
  19176. ;;
  19177. esac
  19178. fi
  19179. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  19180. if test -n "$CONFIG_NETSNMP"; then
  19181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  19182. $as_echo "$CONFIG_NETSNMP" >&6; }
  19183. else
  19184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19185. $as_echo "no" >&6; }
  19186. fi
  19187. fi
  19188. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  19189. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  19190. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  19191. set dummy net-snmp-config; ac_word=$2
  19192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19193. $as_echo_n "checking for $ac_word... " >&6; }
  19194. if ${ac_cv_path_ac_pt_CONFIG_NETSNMP+:} false; then :
  19195. $as_echo_n "(cached) " >&6
  19196. else
  19197. case $ac_pt_CONFIG_NETSNMP in
  19198. [\\/]* | ?:[\\/]*)
  19199. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  19200. ;;
  19201. *)
  19202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19203. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  19204. for as_dir in $as_dummy
  19205. do
  19206. IFS=$as_save_IFS
  19207. test -z "$as_dir" && as_dir=.
  19208. for ac_exec_ext in '' $ac_executable_extensions; do
  19209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19210. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  19211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19212. break 2
  19213. fi
  19214. done
  19215. done
  19216. IFS=$as_save_IFS
  19217. ;;
  19218. esac
  19219. fi
  19220. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  19221. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  19222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  19223. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  19224. else
  19225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19226. $as_echo "no" >&6; }
  19227. fi
  19228. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  19229. CONFIG_NETSNMP="No"
  19230. else
  19231. case $cross_compiling:$ac_tool_warned in
  19232. yes:)
  19233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19234. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19235. ac_tool_warned=yes ;;
  19236. esac
  19237. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  19238. fi
  19239. else
  19240. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  19241. fi
  19242. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  19243. if test x"" = x ; then A=--cflags ; else A="" ; fi
  19244. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  19245. NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")
  19246. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  19247. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  19248. NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
  19249. if test x"#include <net-snmp/net-snmp-config.h>
  19250. #include <net-snmp/net-snmp-includes.h>
  19251. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  19252. saved_cppflags="${CPPFLAGS}"
  19253. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  19254. saved_libs="${LIBS}"
  19255. LIBS=${NETSNMP_LIB}
  19256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19257. /* end confdefs.h. */
  19258. #include <net-snmp/net-snmp-config.h>
  19259. #include <net-snmp/net-snmp-includes.h>
  19260. #include <net-snmp/agent/net-snmp-agent-includes.h>
  19261. int
  19262. main ()
  19263. {
  19264. int callback = snmp_register_callback(0, 0, NULL, NULL);
  19265. ;
  19266. return 0;
  19267. }
  19268. _ACEOF
  19269. if ac_fn_c_try_link "$LINENO"; then :
  19270. PBX_NETSNMP=1
  19271. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  19272. fi
  19273. rm -f core conftest.err conftest.$ac_objext \
  19274. conftest$ac_exeext conftest.$ac_ext
  19275. CPPFLAGS="${saved_cppflags}"
  19276. LIBS="${saved_libs}"
  19277. else
  19278. PBX_NETSNMP=1
  19279. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  19280. fi
  19281. fi
  19282. fi
  19283. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  19284. pbxlibdir=""
  19285. # if --with-NEWT=DIR has been specified, use it.
  19286. if test "x${NEWT_DIR}" != "x"; then
  19287. if test -d ${NEWT_DIR}/lib; then
  19288. pbxlibdir="-L${NEWT_DIR}/lib"
  19289. else
  19290. pbxlibdir="-L${NEWT_DIR}"
  19291. fi
  19292. fi
  19293. pbxfuncname="newtBell"
  19294. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19295. AST_NEWT_FOUND=yes
  19296. else
  19297. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19298. CFLAGS="${CFLAGS} "
  19299. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  19300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  19301. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  19302. if eval \${$as_ac_Lib+:} false; then :
  19303. $as_echo_n "(cached) " >&6
  19304. else
  19305. ac_check_lib_save_LIBS=$LIBS
  19306. LIBS="-lnewt ${pbxlibdir} $LIBS"
  19307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19308. /* end confdefs.h. */
  19309. /* Override any GCC internal prototype to avoid an error.
  19310. Use char because int might match the return type of a GCC
  19311. builtin and then its argument prototype would still apply. */
  19312. #ifdef __cplusplus
  19313. extern "C"
  19314. #endif
  19315. char ${pbxfuncname} ();
  19316. int
  19317. main ()
  19318. {
  19319. return ${pbxfuncname} ();
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_link "$LINENO"; then :
  19325. eval "$as_ac_Lib=yes"
  19326. else
  19327. eval "$as_ac_Lib=no"
  19328. fi
  19329. rm -f core conftest.err conftest.$ac_objext \
  19330. conftest$ac_exeext conftest.$ac_ext
  19331. LIBS=$ac_check_lib_save_LIBS
  19332. fi
  19333. eval ac_res=\$$as_ac_Lib
  19334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19335. $as_echo "$ac_res" >&6; }
  19336. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19337. AST_NEWT_FOUND=yes
  19338. else
  19339. AST_NEWT_FOUND=no
  19340. fi
  19341. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19342. fi
  19343. # now check for the header.
  19344. if test "${AST_NEWT_FOUND}" = "yes"; then
  19345. NEWT_LIB="${pbxlibdir} -lnewt "
  19346. # if --with-NEWT=DIR has been specified, use it.
  19347. if test "x${NEWT_DIR}" != "x"; then
  19348. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  19349. fi
  19350. NEWT_INCLUDE="${NEWT_INCLUDE} "
  19351. if test "xnewt.h" = "x" ; then # no header, assume found
  19352. NEWT_HEADER_FOUND="1"
  19353. else # check for the header
  19354. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19355. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  19356. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  19357. if test "x$ac_cv_header_newt_h" = xyes; then :
  19358. NEWT_HEADER_FOUND=1
  19359. else
  19360. NEWT_HEADER_FOUND=0
  19361. fi
  19362. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19363. fi
  19364. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  19365. NEWT_LIB=""
  19366. NEWT_INCLUDE=""
  19367. else
  19368. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19369. NEWT_LIB=""
  19370. fi
  19371. PBX_NEWT=1
  19372. cat >>confdefs.h <<_ACEOF
  19373. #define HAVE_NEWT 1
  19374. _ACEOF
  19375. fi
  19376. fi
  19377. fi
  19378. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  19379. pbxlibdir=""
  19380. # if --with-UNIXODBC=DIR has been specified, use it.
  19381. if test "x${UNIXODBC_DIR}" != "x"; then
  19382. if test -d ${UNIXODBC_DIR}/lib; then
  19383. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  19384. else
  19385. pbxlibdir="-L${UNIXODBC_DIR}"
  19386. fi
  19387. fi
  19388. pbxfuncname="SQLConnect"
  19389. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19390. AST_UNIXODBC_FOUND=yes
  19391. else
  19392. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19393. CFLAGS="${CFLAGS} "
  19394. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  19395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
  19396. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  19397. if eval \${$as_ac_Lib+:} false; then :
  19398. $as_echo_n "(cached) " >&6
  19399. else
  19400. ac_check_lib_save_LIBS=$LIBS
  19401. LIBS="-lodbc ${pbxlibdir} $LIBS"
  19402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19403. /* end confdefs.h. */
  19404. /* Override any GCC internal prototype to avoid an error.
  19405. Use char because int might match the return type of a GCC
  19406. builtin and then its argument prototype would still apply. */
  19407. #ifdef __cplusplus
  19408. extern "C"
  19409. #endif
  19410. char ${pbxfuncname} ();
  19411. int
  19412. main ()
  19413. {
  19414. return ${pbxfuncname} ();
  19415. ;
  19416. return 0;
  19417. }
  19418. _ACEOF
  19419. if ac_fn_c_try_link "$LINENO"; then :
  19420. eval "$as_ac_Lib=yes"
  19421. else
  19422. eval "$as_ac_Lib=no"
  19423. fi
  19424. rm -f core conftest.err conftest.$ac_objext \
  19425. conftest$ac_exeext conftest.$ac_ext
  19426. LIBS=$ac_check_lib_save_LIBS
  19427. fi
  19428. eval ac_res=\$$as_ac_Lib
  19429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19430. $as_echo "$ac_res" >&6; }
  19431. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19432. AST_UNIXODBC_FOUND=yes
  19433. else
  19434. AST_UNIXODBC_FOUND=no
  19435. fi
  19436. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19437. fi
  19438. # now check for the header.
  19439. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  19440. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  19441. # if --with-UNIXODBC=DIR has been specified, use it.
  19442. if test "x${UNIXODBC_DIR}" != "x"; then
  19443. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  19444. fi
  19445. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  19446. if test "xsql.h" = "x" ; then # no header, assume found
  19447. UNIXODBC_HEADER_FOUND="1"
  19448. else # check for the header
  19449. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19450. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  19451. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  19452. if test "x$ac_cv_header_sql_h" = xyes; then :
  19453. UNIXODBC_HEADER_FOUND=1
  19454. else
  19455. UNIXODBC_HEADER_FOUND=0
  19456. fi
  19457. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19458. fi
  19459. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  19460. UNIXODBC_LIB=""
  19461. UNIXODBC_INCLUDE=""
  19462. else
  19463. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19464. UNIXODBC_LIB=""
  19465. fi
  19466. PBX_UNIXODBC=1
  19467. cat >>confdefs.h <<_ACEOF
  19468. #define HAVE_UNIXODBC 1
  19469. _ACEOF
  19470. fi
  19471. fi
  19472. fi
  19473. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  19474. pbxlibdir=""
  19475. # if --with-OGG=DIR has been specified, use it.
  19476. if test "x${OGG_DIR}" != "x"; then
  19477. if test -d ${OGG_DIR}/lib; then
  19478. pbxlibdir="-L${OGG_DIR}/lib"
  19479. else
  19480. pbxlibdir="-L${OGG_DIR}"
  19481. fi
  19482. fi
  19483. pbxfuncname="ogg_sync_init"
  19484. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19485. AST_OGG_FOUND=yes
  19486. else
  19487. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19488. CFLAGS="${CFLAGS} "
  19489. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
  19491. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  19492. if eval \${$as_ac_Lib+:} false; then :
  19493. $as_echo_n "(cached) " >&6
  19494. else
  19495. ac_check_lib_save_LIBS=$LIBS
  19496. LIBS="-logg ${pbxlibdir} $LIBS"
  19497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19498. /* end confdefs.h. */
  19499. /* Override any GCC internal prototype to avoid an error.
  19500. Use char because int might match the return type of a GCC
  19501. builtin and then its argument prototype would still apply. */
  19502. #ifdef __cplusplus
  19503. extern "C"
  19504. #endif
  19505. char ${pbxfuncname} ();
  19506. int
  19507. main ()
  19508. {
  19509. return ${pbxfuncname} ();
  19510. ;
  19511. return 0;
  19512. }
  19513. _ACEOF
  19514. if ac_fn_c_try_link "$LINENO"; then :
  19515. eval "$as_ac_Lib=yes"
  19516. else
  19517. eval "$as_ac_Lib=no"
  19518. fi
  19519. rm -f core conftest.err conftest.$ac_objext \
  19520. conftest$ac_exeext conftest.$ac_ext
  19521. LIBS=$ac_check_lib_save_LIBS
  19522. fi
  19523. eval ac_res=\$$as_ac_Lib
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19525. $as_echo "$ac_res" >&6; }
  19526. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19527. AST_OGG_FOUND=yes
  19528. else
  19529. AST_OGG_FOUND=no
  19530. fi
  19531. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19532. fi
  19533. # now check for the header.
  19534. if test "${AST_OGG_FOUND}" = "yes"; then
  19535. OGG_LIB="${pbxlibdir} -logg "
  19536. # if --with-OGG=DIR has been specified, use it.
  19537. if test "x${OGG_DIR}" != "x"; then
  19538. OGG_INCLUDE="-I${OGG_DIR}/include"
  19539. fi
  19540. OGG_INCLUDE="${OGG_INCLUDE} "
  19541. if test "x" = "x" ; then # no header, assume found
  19542. OGG_HEADER_FOUND="1"
  19543. else # check for the header
  19544. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19545. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  19546. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  19547. if test "x$ac_cv_header_" = xyes; then :
  19548. OGG_HEADER_FOUND=1
  19549. else
  19550. OGG_HEADER_FOUND=0
  19551. fi
  19552. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19553. fi
  19554. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  19555. OGG_LIB=""
  19556. OGG_INCLUDE=""
  19557. else
  19558. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19559. OGG_LIB=""
  19560. fi
  19561. PBX_OGG=1
  19562. cat >>confdefs.h <<_ACEOF
  19563. #define HAVE_OGG 1
  19564. _ACEOF
  19565. fi
  19566. fi
  19567. fi
  19568. # Non-glibc platforms require libexecinfo for backtrace support
  19569. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  19570. pbxlibdir=""
  19571. # if --with-BKTR=DIR has been specified, use it.
  19572. if test "x${BKTR_DIR}" != "x"; then
  19573. if test -d ${BKTR_DIR}/lib; then
  19574. pbxlibdir="-L${BKTR_DIR}/lib"
  19575. else
  19576. pbxlibdir="-L${BKTR_DIR}"
  19577. fi
  19578. fi
  19579. pbxfuncname="backtrace"
  19580. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19581. AST_BKTR_FOUND=yes
  19582. else
  19583. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19584. CFLAGS="${CFLAGS} "
  19585. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  19586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
  19587. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  19588. if eval \${$as_ac_Lib+:} false; then :
  19589. $as_echo_n "(cached) " >&6
  19590. else
  19591. ac_check_lib_save_LIBS=$LIBS
  19592. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  19593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19594. /* end confdefs.h. */
  19595. /* Override any GCC internal prototype to avoid an error.
  19596. Use char because int might match the return type of a GCC
  19597. builtin and then its argument prototype would still apply. */
  19598. #ifdef __cplusplus
  19599. extern "C"
  19600. #endif
  19601. char ${pbxfuncname} ();
  19602. int
  19603. main ()
  19604. {
  19605. return ${pbxfuncname} ();
  19606. ;
  19607. return 0;
  19608. }
  19609. _ACEOF
  19610. if ac_fn_c_try_link "$LINENO"; then :
  19611. eval "$as_ac_Lib=yes"
  19612. else
  19613. eval "$as_ac_Lib=no"
  19614. fi
  19615. rm -f core conftest.err conftest.$ac_objext \
  19616. conftest$ac_exeext conftest.$ac_ext
  19617. LIBS=$ac_check_lib_save_LIBS
  19618. fi
  19619. eval ac_res=\$$as_ac_Lib
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19621. $as_echo "$ac_res" >&6; }
  19622. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19623. AST_BKTR_FOUND=yes
  19624. else
  19625. AST_BKTR_FOUND=no
  19626. fi
  19627. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19628. fi
  19629. # now check for the header.
  19630. if test "${AST_BKTR_FOUND}" = "yes"; then
  19631. BKTR_LIB="${pbxlibdir} -lexecinfo "
  19632. # if --with-BKTR=DIR has been specified, use it.
  19633. if test "x${BKTR_DIR}" != "x"; then
  19634. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  19635. fi
  19636. BKTR_INCLUDE="${BKTR_INCLUDE} "
  19637. if test "xexecinfo.h" = "x" ; then # no header, assume found
  19638. BKTR_HEADER_FOUND="1"
  19639. else # check for the header
  19640. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19641. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  19642. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  19643. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  19644. BKTR_HEADER_FOUND=1
  19645. else
  19646. BKTR_HEADER_FOUND=0
  19647. fi
  19648. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19649. fi
  19650. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  19651. BKTR_LIB=""
  19652. BKTR_INCLUDE=""
  19653. else
  19654. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19655. BKTR_LIB=""
  19656. fi
  19657. PBX_BKTR=1
  19658. cat >>confdefs.h <<_ACEOF
  19659. #define HAVE_BKTR 1
  19660. _ACEOF
  19661. fi
  19662. fi
  19663. fi
  19664. # Linux, however, has backtrace directly in glibc
  19665. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  19666. pbxlibdir=""
  19667. # if --with-BKTR=DIR has been specified, use it.
  19668. if test "x${BKTR_DIR}" != "x"; then
  19669. if test -d ${BKTR_DIR}/lib; then
  19670. pbxlibdir="-L${BKTR_DIR}/lib"
  19671. else
  19672. pbxlibdir="-L${BKTR_DIR}"
  19673. fi
  19674. fi
  19675. pbxfuncname="backtrace"
  19676. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19677. AST_BKTR_FOUND=yes
  19678. else
  19679. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19680. CFLAGS="${CFLAGS} "
  19681. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  19682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  19683. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  19684. if eval \${$as_ac_Lib+:} false; then :
  19685. $as_echo_n "(cached) " >&6
  19686. else
  19687. ac_check_lib_save_LIBS=$LIBS
  19688. LIBS="-lc ${pbxlibdir} $LIBS"
  19689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19690. /* end confdefs.h. */
  19691. /* Override any GCC internal prototype to avoid an error.
  19692. Use char because int might match the return type of a GCC
  19693. builtin and then its argument prototype would still apply. */
  19694. #ifdef __cplusplus
  19695. extern "C"
  19696. #endif
  19697. char ${pbxfuncname} ();
  19698. int
  19699. main ()
  19700. {
  19701. return ${pbxfuncname} ();
  19702. ;
  19703. return 0;
  19704. }
  19705. _ACEOF
  19706. if ac_fn_c_try_link "$LINENO"; then :
  19707. eval "$as_ac_Lib=yes"
  19708. else
  19709. eval "$as_ac_Lib=no"
  19710. fi
  19711. rm -f core conftest.err conftest.$ac_objext \
  19712. conftest$ac_exeext conftest.$ac_ext
  19713. LIBS=$ac_check_lib_save_LIBS
  19714. fi
  19715. eval ac_res=\$$as_ac_Lib
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19717. $as_echo "$ac_res" >&6; }
  19718. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19719. AST_BKTR_FOUND=yes
  19720. else
  19721. AST_BKTR_FOUND=no
  19722. fi
  19723. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19724. fi
  19725. # now check for the header.
  19726. if test "${AST_BKTR_FOUND}" = "yes"; then
  19727. BKTR_LIB="${pbxlibdir} -lc "
  19728. # if --with-BKTR=DIR has been specified, use it.
  19729. if test "x${BKTR_DIR}" != "x"; then
  19730. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  19731. fi
  19732. BKTR_INCLUDE="${BKTR_INCLUDE} "
  19733. if test "xexecinfo.h" = "x" ; then # no header, assume found
  19734. BKTR_HEADER_FOUND="1"
  19735. else # check for the header
  19736. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19737. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  19738. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  19739. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  19740. BKTR_HEADER_FOUND=1
  19741. else
  19742. BKTR_HEADER_FOUND=0
  19743. fi
  19744. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19745. fi
  19746. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  19747. BKTR_LIB=""
  19748. BKTR_INCLUDE=""
  19749. else
  19750. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19751. BKTR_LIB=""
  19752. fi
  19753. PBX_BKTR=1
  19754. cat >>confdefs.h <<_ACEOF
  19755. #define HAVE_BKTR 1
  19756. _ACEOF
  19757. fi
  19758. fi
  19759. fi
  19760. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  19761. pbxlibdir=""
  19762. # if --with-BLUETOOTH=DIR has been specified, use it.
  19763. if test "x${BLUETOOTH_DIR}" != "x"; then
  19764. if test -d ${BLUETOOTH_DIR}/lib; then
  19765. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  19766. else
  19767. pbxlibdir="-L${BLUETOOTH_DIR}"
  19768. fi
  19769. fi
  19770. pbxfuncname="ba2str"
  19771. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19772. AST_BLUETOOTH_FOUND=yes
  19773. else
  19774. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19775. CFLAGS="${CFLAGS} "
  19776. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
  19778. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  19779. if eval \${$as_ac_Lib+:} false; then :
  19780. $as_echo_n "(cached) " >&6
  19781. else
  19782. ac_check_lib_save_LIBS=$LIBS
  19783. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. /* Override any GCC internal prototype to avoid an error.
  19787. Use char because int might match the return type of a GCC
  19788. builtin and then its argument prototype would still apply. */
  19789. #ifdef __cplusplus
  19790. extern "C"
  19791. #endif
  19792. char ${pbxfuncname} ();
  19793. int
  19794. main ()
  19795. {
  19796. return ${pbxfuncname} ();
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_link "$LINENO"; then :
  19802. eval "$as_ac_Lib=yes"
  19803. else
  19804. eval "$as_ac_Lib=no"
  19805. fi
  19806. rm -f core conftest.err conftest.$ac_objext \
  19807. conftest$ac_exeext conftest.$ac_ext
  19808. LIBS=$ac_check_lib_save_LIBS
  19809. fi
  19810. eval ac_res=\$$as_ac_Lib
  19811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19812. $as_echo "$ac_res" >&6; }
  19813. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19814. AST_BLUETOOTH_FOUND=yes
  19815. else
  19816. AST_BLUETOOTH_FOUND=no
  19817. fi
  19818. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19819. fi
  19820. # now check for the header.
  19821. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  19822. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  19823. # if --with-BLUETOOTH=DIR has been specified, use it.
  19824. if test "x${BLUETOOTH_DIR}" != "x"; then
  19825. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  19826. fi
  19827. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  19828. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  19829. BLUETOOTH_HEADER_FOUND="1"
  19830. else # check for the header
  19831. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19832. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  19833. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  19834. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
  19835. BLUETOOTH_HEADER_FOUND=1
  19836. else
  19837. BLUETOOTH_HEADER_FOUND=0
  19838. fi
  19839. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19840. fi
  19841. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  19842. BLUETOOTH_LIB=""
  19843. BLUETOOTH_INCLUDE=""
  19844. else
  19845. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19846. BLUETOOTH_LIB=""
  19847. fi
  19848. PBX_BLUETOOTH=1
  19849. cat >>confdefs.h <<_ACEOF
  19850. #define HAVE_BLUETOOTH 1
  19851. _ACEOF
  19852. fi
  19853. fi
  19854. fi
  19855. # possible places for oss definitions
  19856. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19857. pbxlibdir=""
  19858. # if --with-OSS=DIR has been specified, use it.
  19859. if test "x${OSS_DIR}" != "x"; then
  19860. if test -d ${OSS_DIR}/lib; then
  19861. pbxlibdir="-L${OSS_DIR}/lib"
  19862. else
  19863. pbxlibdir="-L${OSS_DIR}"
  19864. fi
  19865. fi
  19866. pbxfuncname=""
  19867. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19868. AST_OSS_FOUND=yes
  19869. else
  19870. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19871. CFLAGS="${CFLAGS} "
  19872. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19874. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19875. if eval \${$as_ac_Lib+:} false; then :
  19876. $as_echo_n "(cached) " >&6
  19877. else
  19878. ac_check_lib_save_LIBS=$LIBS
  19879. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19881. /* end confdefs.h. */
  19882. /* Override any GCC internal prototype to avoid an error.
  19883. Use char because int might match the return type of a GCC
  19884. builtin and then its argument prototype would still apply. */
  19885. #ifdef __cplusplus
  19886. extern "C"
  19887. #endif
  19888. char ${pbxfuncname} ();
  19889. int
  19890. main ()
  19891. {
  19892. return ${pbxfuncname} ();
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"; then :
  19898. eval "$as_ac_Lib=yes"
  19899. else
  19900. eval "$as_ac_Lib=no"
  19901. fi
  19902. rm -f core conftest.err conftest.$ac_objext \
  19903. conftest$ac_exeext conftest.$ac_ext
  19904. LIBS=$ac_check_lib_save_LIBS
  19905. fi
  19906. eval ac_res=\$$as_ac_Lib
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19908. $as_echo "$ac_res" >&6; }
  19909. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19910. AST_OSS_FOUND=yes
  19911. else
  19912. AST_OSS_FOUND=no
  19913. fi
  19914. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19915. fi
  19916. # now check for the header.
  19917. if test "${AST_OSS_FOUND}" = "yes"; then
  19918. OSS_LIB="${pbxlibdir} -lossaudio "
  19919. # if --with-OSS=DIR has been specified, use it.
  19920. if test "x${OSS_DIR}" != "x"; then
  19921. OSS_INCLUDE="-I${OSS_DIR}/include"
  19922. fi
  19923. OSS_INCLUDE="${OSS_INCLUDE} "
  19924. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  19925. OSS_HEADER_FOUND="1"
  19926. else # check for the header
  19927. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19928. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19929. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  19930. if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
  19931. OSS_HEADER_FOUND=1
  19932. else
  19933. OSS_HEADER_FOUND=0
  19934. fi
  19935. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19936. fi
  19937. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19938. OSS_LIB=""
  19939. OSS_INCLUDE=""
  19940. else
  19941. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19942. OSS_LIB=""
  19943. fi
  19944. PBX_OSS=1
  19945. cat >>confdefs.h <<_ACEOF
  19946. #define HAVE_OSS 1
  19947. _ACEOF
  19948. fi
  19949. fi
  19950. fi
  19951. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19952. pbxlibdir=""
  19953. # if --with-OSS=DIR has been specified, use it.
  19954. if test "x${OSS_DIR}" != "x"; then
  19955. if test -d ${OSS_DIR}/lib; then
  19956. pbxlibdir="-L${OSS_DIR}/lib"
  19957. else
  19958. pbxlibdir="-L${OSS_DIR}"
  19959. fi
  19960. fi
  19961. pbxfuncname=""
  19962. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19963. AST_OSS_FOUND=yes
  19964. else
  19965. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19966. CFLAGS="${CFLAGS} "
  19967. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19969. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19970. if eval \${$as_ac_Lib+:} false; then :
  19971. $as_echo_n "(cached) " >&6
  19972. else
  19973. ac_check_lib_save_LIBS=$LIBS
  19974. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19976. /* end confdefs.h. */
  19977. /* Override any GCC internal prototype to avoid an error.
  19978. Use char because int might match the return type of a GCC
  19979. builtin and then its argument prototype would still apply. */
  19980. #ifdef __cplusplus
  19981. extern "C"
  19982. #endif
  19983. char ${pbxfuncname} ();
  19984. int
  19985. main ()
  19986. {
  19987. return ${pbxfuncname} ();
  19988. ;
  19989. return 0;
  19990. }
  19991. _ACEOF
  19992. if ac_fn_c_try_link "$LINENO"; then :
  19993. eval "$as_ac_Lib=yes"
  19994. else
  19995. eval "$as_ac_Lib=no"
  19996. fi
  19997. rm -f core conftest.err conftest.$ac_objext \
  19998. conftest$ac_exeext conftest.$ac_ext
  19999. LIBS=$ac_check_lib_save_LIBS
  20000. fi
  20001. eval ac_res=\$$as_ac_Lib
  20002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20003. $as_echo "$ac_res" >&6; }
  20004. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20005. AST_OSS_FOUND=yes
  20006. else
  20007. AST_OSS_FOUND=no
  20008. fi
  20009. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20010. fi
  20011. # now check for the header.
  20012. if test "${AST_OSS_FOUND}" = "yes"; then
  20013. OSS_LIB="${pbxlibdir} -lossaudio "
  20014. # if --with-OSS=DIR has been specified, use it.
  20015. if test "x${OSS_DIR}" != "x"; then
  20016. OSS_INCLUDE="-I${OSS_DIR}/include"
  20017. fi
  20018. OSS_INCLUDE="${OSS_INCLUDE} "
  20019. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  20020. OSS_HEADER_FOUND="1"
  20021. else # check for the header
  20022. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20023. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  20024. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  20025. if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
  20026. OSS_HEADER_FOUND=1
  20027. else
  20028. OSS_HEADER_FOUND=0
  20029. fi
  20030. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20031. fi
  20032. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  20033. OSS_LIB=""
  20034. OSS_INCLUDE=""
  20035. else
  20036. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20037. OSS_LIB=""
  20038. fi
  20039. PBX_OSS=1
  20040. cat >>confdefs.h <<_ACEOF
  20041. #define HAVE_OSS 1
  20042. _ACEOF
  20043. fi
  20044. fi
  20045. fi
  20046. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  20047. pbxlibdir=""
  20048. # if --with-OSS=DIR has been specified, use it.
  20049. if test "x${OSS_DIR}" != "x"; then
  20050. if test -d ${OSS_DIR}/lib; then
  20051. pbxlibdir="-L${OSS_DIR}/lib"
  20052. else
  20053. pbxlibdir="-L${OSS_DIR}"
  20054. fi
  20055. fi
  20056. pbxfuncname="oss_ioctl_mixer"
  20057. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20058. AST_OSS_FOUND=yes
  20059. else
  20060. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20061. CFLAGS="${CFLAGS} "
  20062. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  20064. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  20065. if eval \${$as_ac_Lib+:} false; then :
  20066. $as_echo_n "(cached) " >&6
  20067. else
  20068. ac_check_lib_save_LIBS=$LIBS
  20069. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  20070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20071. /* end confdefs.h. */
  20072. /* Override any GCC internal prototype to avoid an error.
  20073. Use char because int might match the return type of a GCC
  20074. builtin and then its argument prototype would still apply. */
  20075. #ifdef __cplusplus
  20076. extern "C"
  20077. #endif
  20078. char ${pbxfuncname} ();
  20079. int
  20080. main ()
  20081. {
  20082. return ${pbxfuncname} ();
  20083. ;
  20084. return 0;
  20085. }
  20086. _ACEOF
  20087. if ac_fn_c_try_link "$LINENO"; then :
  20088. eval "$as_ac_Lib=yes"
  20089. else
  20090. eval "$as_ac_Lib=no"
  20091. fi
  20092. rm -f core conftest.err conftest.$ac_objext \
  20093. conftest$ac_exeext conftest.$ac_ext
  20094. LIBS=$ac_check_lib_save_LIBS
  20095. fi
  20096. eval ac_res=\$$as_ac_Lib
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20098. $as_echo "$ac_res" >&6; }
  20099. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20100. AST_OSS_FOUND=yes
  20101. else
  20102. AST_OSS_FOUND=no
  20103. fi
  20104. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20105. fi
  20106. # now check for the header.
  20107. if test "${AST_OSS_FOUND}" = "yes"; then
  20108. OSS_LIB="${pbxlibdir} -lossaudio "
  20109. # if --with-OSS=DIR has been specified, use it.
  20110. if test "x${OSS_DIR}" != "x"; then
  20111. OSS_INCLUDE="-I${OSS_DIR}/include"
  20112. fi
  20113. OSS_INCLUDE="${OSS_INCLUDE} "
  20114. if test "xsoundcard.h" = "x" ; then # no header, assume found
  20115. OSS_HEADER_FOUND="1"
  20116. else # check for the header
  20117. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20118. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  20119. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  20120. if test "x$ac_cv_header_soundcard_h" = xyes; then :
  20121. OSS_HEADER_FOUND=1
  20122. else
  20123. OSS_HEADER_FOUND=0
  20124. fi
  20125. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20126. fi
  20127. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  20128. OSS_LIB=""
  20129. OSS_INCLUDE=""
  20130. else
  20131. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20132. OSS_LIB=""
  20133. fi
  20134. PBX_OSS=1
  20135. cat >>confdefs.h <<_ACEOF
  20136. #define HAVE_OSS 1
  20137. _ACEOF
  20138. fi
  20139. fi
  20140. fi
  20141. PG_CONFIG=No
  20142. if test "${USE_PGSQL}" != "no"; then
  20143. if test "x${PGSQL_DIR}" != "x"; then
  20144. if test -n "$ac_tool_prefix"; then
  20145. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  20146. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20148. $as_echo_n "checking for $ac_word... " >&6; }
  20149. if ${ac_cv_path_PG_CONFIG+:} false; then :
  20150. $as_echo_n "(cached) " >&6
  20151. else
  20152. case $PG_CONFIG in
  20153. [\\/]* | ?:[\\/]*)
  20154. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  20155. ;;
  20156. *)
  20157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20158. for as_dir in ${PGSQL_DIR}/bin
  20159. do
  20160. IFS=$as_save_IFS
  20161. test -z "$as_dir" && as_dir=.
  20162. for ac_exec_ext in '' $ac_executable_extensions; do
  20163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20164. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20166. break 2
  20167. fi
  20168. done
  20169. done
  20170. IFS=$as_save_IFS
  20171. ;;
  20172. esac
  20173. fi
  20174. PG_CONFIG=$ac_cv_path_PG_CONFIG
  20175. if test -n "$PG_CONFIG"; then
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  20177. $as_echo "$PG_CONFIG" >&6; }
  20178. else
  20179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20180. $as_echo "no" >&6; }
  20181. fi
  20182. fi
  20183. if test -z "$ac_cv_path_PG_CONFIG"; then
  20184. ac_pt_PG_CONFIG=$PG_CONFIG
  20185. # Extract the first word of "pg_config", so it can be a program name with args.
  20186. set dummy pg_config; ac_word=$2
  20187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20188. $as_echo_n "checking for $ac_word... " >&6; }
  20189. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  20190. $as_echo_n "(cached) " >&6
  20191. else
  20192. case $ac_pt_PG_CONFIG in
  20193. [\\/]* | ?:[\\/]*)
  20194. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  20195. ;;
  20196. *)
  20197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20198. for as_dir in ${PGSQL_DIR}/bin
  20199. do
  20200. IFS=$as_save_IFS
  20201. test -z "$as_dir" && as_dir=.
  20202. for ac_exec_ext in '' $ac_executable_extensions; do
  20203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20204. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20206. break 2
  20207. fi
  20208. done
  20209. done
  20210. IFS=$as_save_IFS
  20211. ;;
  20212. esac
  20213. fi
  20214. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  20215. if test -n "$ac_pt_PG_CONFIG"; then
  20216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  20217. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  20218. else
  20219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20220. $as_echo "no" >&6; }
  20221. fi
  20222. if test "x$ac_pt_PG_CONFIG" = x; then
  20223. PG_CONFIG="No"
  20224. else
  20225. case $cross_compiling:$ac_tool_warned in
  20226. yes:)
  20227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20229. ac_tool_warned=yes ;;
  20230. esac
  20231. PG_CONFIG=$ac_pt_PG_CONFIG
  20232. fi
  20233. else
  20234. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  20235. fi
  20236. if test x"${PG_CONFIG}" = xNo; then
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20238. $as_echo "$as_me: ***" >&6;}
  20239. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  20240. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  20241. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  20242. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20244. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20245. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20246. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20247. exit 1
  20248. fi
  20249. else
  20250. if test -n "$ac_tool_prefix"; then
  20251. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  20252. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20254. $as_echo_n "checking for $ac_word... " >&6; }
  20255. if ${ac_cv_path_PG_CONFIG+:} false; then :
  20256. $as_echo_n "(cached) " >&6
  20257. else
  20258. case $PG_CONFIG in
  20259. [\\/]* | ?:[\\/]*)
  20260. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  20261. ;;
  20262. *)
  20263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20264. for as_dir in $PATH
  20265. do
  20266. IFS=$as_save_IFS
  20267. test -z "$as_dir" && as_dir=.
  20268. for ac_exec_ext in '' $ac_executable_extensions; do
  20269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20270. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20272. break 2
  20273. fi
  20274. done
  20275. done
  20276. IFS=$as_save_IFS
  20277. ;;
  20278. esac
  20279. fi
  20280. PG_CONFIG=$ac_cv_path_PG_CONFIG
  20281. if test -n "$PG_CONFIG"; then
  20282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  20283. $as_echo "$PG_CONFIG" >&6; }
  20284. else
  20285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20286. $as_echo "no" >&6; }
  20287. fi
  20288. fi
  20289. if test -z "$ac_cv_path_PG_CONFIG"; then
  20290. ac_pt_PG_CONFIG=$PG_CONFIG
  20291. # Extract the first word of "pg_config", so it can be a program name with args.
  20292. set dummy pg_config; ac_word=$2
  20293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20294. $as_echo_n "checking for $ac_word... " >&6; }
  20295. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  20296. $as_echo_n "(cached) " >&6
  20297. else
  20298. case $ac_pt_PG_CONFIG in
  20299. [\\/]* | ?:[\\/]*)
  20300. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  20301. ;;
  20302. *)
  20303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20304. for as_dir in $PATH
  20305. do
  20306. IFS=$as_save_IFS
  20307. test -z "$as_dir" && as_dir=.
  20308. for ac_exec_ext in '' $ac_executable_extensions; do
  20309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20310. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20312. break 2
  20313. fi
  20314. done
  20315. done
  20316. IFS=$as_save_IFS
  20317. ;;
  20318. esac
  20319. fi
  20320. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  20321. if test -n "$ac_pt_PG_CONFIG"; then
  20322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  20323. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  20324. else
  20325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20326. $as_echo "no" >&6; }
  20327. fi
  20328. if test "x$ac_pt_PG_CONFIG" = x; then
  20329. PG_CONFIG="No"
  20330. else
  20331. case $cross_compiling:$ac_tool_warned in
  20332. yes:)
  20333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20335. ac_tool_warned=yes ;;
  20336. esac
  20337. PG_CONFIG=$ac_pt_PG_CONFIG
  20338. fi
  20339. else
  20340. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  20341. fi
  20342. fi
  20343. fi
  20344. if test "${PG_CONFIG}" != No; then
  20345. PGSQL_libdir=`${PG_CONFIG} --libdir`
  20346. PGSQL_includedir=`${PG_CONFIG} --includedir`
  20347. if test "x$?" != "x0" ; then
  20348. if test -n "${PGSQL_MANDATORY}" ; then
  20349. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20350. $as_echo "$as_me: ***" >&6;}
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  20352. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20354. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20355. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20356. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20357. exit 1
  20358. fi
  20359. else
  20360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  20361. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  20362. if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
  20363. $as_echo_n "(cached) " >&6
  20364. else
  20365. ac_check_lib_save_LIBS=$LIBS
  20366. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  20367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20368. /* end confdefs.h. */
  20369. /* Override any GCC internal prototype to avoid an error.
  20370. Use char because int might match the return type of a GCC
  20371. builtin and then its argument prototype would still apply. */
  20372. #ifdef __cplusplus
  20373. extern "C"
  20374. #endif
  20375. char PQescapeStringConn ();
  20376. int
  20377. main ()
  20378. {
  20379. return PQescapeStringConn ();
  20380. ;
  20381. return 0;
  20382. }
  20383. _ACEOF
  20384. if ac_fn_c_try_link "$LINENO"; then :
  20385. ac_cv_lib_pq_PQescapeStringConn=yes
  20386. else
  20387. ac_cv_lib_pq_PQescapeStringConn=no
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext \
  20390. conftest$ac_exeext conftest.$ac_ext
  20391. LIBS=$ac_check_lib_save_LIBS
  20392. fi
  20393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  20394. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  20395. if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
  20396. cat >>confdefs.h <<_ACEOF
  20397. #define HAVE_PGSQL 1
  20398. _ACEOF
  20399. fi
  20400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  20401. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  20402. old_CFLAGS=${CFLAGS}
  20403. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  20404. old_LDFLAGS=${LDFLAGS}
  20405. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  20406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20407. /* end confdefs.h. */
  20408. #include <libpq-fe.h>
  20409. int
  20410. main ()
  20411. {
  20412. const char *foo = pg_encoding_to_char(1)
  20413. ;
  20414. return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_link "$LINENO"; then :
  20418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20419. $as_echo "yes" >&6; }
  20420. cat >>confdefs.h <<_ACEOF
  20421. #define HAVE_PGSQL_pg_encoding_to_char 1
  20422. _ACEOF
  20423. else
  20424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20425. $as_echo "no" >&6; }
  20426. fi
  20427. rm -f core conftest.err conftest.$ac_objext \
  20428. conftest$ac_exeext conftest.$ac_ext
  20429. CFLAGS=${old_CFLAGS}
  20430. LDFLAGS=${old_LDFLAGS}
  20431. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  20432. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  20433. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  20434. PBX_PGSQL=1
  20435. elif test -n "${PGSQL_MANDATORY}";
  20436. then
  20437. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20438. $as_echo "$as_me: ***" >&6;}
  20439. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  20440. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20442. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20443. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20444. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20445. exit 1
  20446. fi
  20447. fi
  20448. fi
  20449. if test "x${PBX_PJPROJECT}" != "x1" -a "${USE_PJPROJECT}" != "no"; then
  20450. pkg_failed=no
  20451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PJPROJECT" >&5
  20452. $as_echo_n "checking for PJPROJECT... " >&6; }
  20453. if test -n "$PJPROJECT_CFLAGS"; then
  20454. pkg_cv_PJPROJECT_CFLAGS="$PJPROJECT_CFLAGS"
  20455. elif test -n "$PKG_CONFIG"; then
  20456. if test -n "$PKG_CONFIG" && \
  20457. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  20458. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  20459. ac_status=$?
  20460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20461. test $ac_status = 0; }; then
  20462. pkg_cv_PJPROJECT_CFLAGS=`$PKG_CONFIG --cflags "libpjproject" 2>/dev/null`
  20463. test "x$?" != "x0" && pkg_failed=yes
  20464. else
  20465. pkg_failed=yes
  20466. fi
  20467. else
  20468. pkg_failed=untried
  20469. fi
  20470. if test -n "$PJPROJECT_LIBS"; then
  20471. pkg_cv_PJPROJECT_LIBS="$PJPROJECT_LIBS"
  20472. elif test -n "$PKG_CONFIG"; then
  20473. if test -n "$PKG_CONFIG" && \
  20474. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  20475. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  20476. ac_status=$?
  20477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20478. test $ac_status = 0; }; then
  20479. pkg_cv_PJPROJECT_LIBS=`$PKG_CONFIG --libs "libpjproject" 2>/dev/null`
  20480. test "x$?" != "x0" && pkg_failed=yes
  20481. else
  20482. pkg_failed=yes
  20483. fi
  20484. else
  20485. pkg_failed=untried
  20486. fi
  20487. if test $pkg_failed = yes; then
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20489. $as_echo "no" >&6; }
  20490. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20491. _pkg_short_errors_supported=yes
  20492. else
  20493. _pkg_short_errors_supported=no
  20494. fi
  20495. if test $_pkg_short_errors_supported = yes; then
  20496. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
  20497. else
  20498. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
  20499. fi
  20500. # Put the nasty error message in config.log where it belongs
  20501. echo "$PJPROJECT_PKG_ERRORS" >&5
  20502. PBX_PJPROJECT=0
  20503. elif test $pkg_failed = untried; then
  20504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20505. $as_echo "no" >&6; }
  20506. PBX_PJPROJECT=0
  20507. else
  20508. PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
  20509. PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
  20510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20511. $as_echo "yes" >&6; }
  20512. PBX_PJPROJECT=1
  20513. PJPROJECT_INCLUDE="$PJPROJECT_CFLAGS"
  20514. PJPROJECT_LIB="$PJPROJECT_LIBS"
  20515. $as_echo "#define HAVE_PJPROJECT 1" >>confdefs.h
  20516. fi
  20517. fi
  20518. if test "x${PBX_PJ_TRANSACTION_GRP_LOCK}" != "x1" -a "${USE_PJ_TRANSACTION_GRP_LOCK}" != "no"; then
  20519. pbxlibdir=""
  20520. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  20521. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  20522. if test -d ${PJ_TRANSACTION_GRP_LOCK_DIR}/lib; then
  20523. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}/lib"
  20524. else
  20525. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}"
  20526. fi
  20527. fi
  20528. pbxfuncname="pjsip_tsx_create_uac2"
  20529. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20530. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
  20531. else
  20532. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20533. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  20534. as_ac_Lib=`$as_echo "ac_cv_lib_pjsip_${pbxfuncname}" | $as_tr_sh`
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpjsip" >&5
  20536. $as_echo_n "checking for ${pbxfuncname} in -lpjsip... " >&6; }
  20537. if eval \${$as_ac_Lib+:} false; then :
  20538. $as_echo_n "(cached) " >&6
  20539. else
  20540. ac_check_lib_save_LIBS=$LIBS
  20541. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIBS $LIBS"
  20542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20543. /* end confdefs.h. */
  20544. /* Override any GCC internal prototype to avoid an error.
  20545. Use char because int might match the return type of a GCC
  20546. builtin and then its argument prototype would still apply. */
  20547. #ifdef __cplusplus
  20548. extern "C"
  20549. #endif
  20550. char ${pbxfuncname} ();
  20551. int
  20552. main ()
  20553. {
  20554. return ${pbxfuncname} ();
  20555. ;
  20556. return 0;
  20557. }
  20558. _ACEOF
  20559. if ac_fn_c_try_link "$LINENO"; then :
  20560. eval "$as_ac_Lib=yes"
  20561. else
  20562. eval "$as_ac_Lib=no"
  20563. fi
  20564. rm -f core conftest.err conftest.$ac_objext \
  20565. conftest$ac_exeext conftest.$ac_ext
  20566. LIBS=$ac_check_lib_save_LIBS
  20567. fi
  20568. eval ac_res=\$$as_ac_Lib
  20569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20570. $as_echo "$ac_res" >&6; }
  20571. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20572. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
  20573. else
  20574. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=no
  20575. fi
  20576. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20577. fi
  20578. # now check for the header.
  20579. if test "${AST_PJ_TRANSACTION_GRP_LOCK_FOUND}" = "yes"; then
  20580. PJ_TRANSACTION_GRP_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIBS"
  20581. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  20582. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  20583. PJ_TRANSACTION_GRP_LOCK_INCLUDE="-I${PJ_TRANSACTION_GRP_LOCK_DIR}/include"
  20584. fi
  20585. PJ_TRANSACTION_GRP_LOCK_INCLUDE="${PJ_TRANSACTION_GRP_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
  20586. if test "xpjsip.h" = "x" ; then # no header, assume found
  20587. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND="1"
  20588. else # check for the header
  20589. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20590. CPPFLAGS="${CPPFLAGS} ${PJ_TRANSACTION_GRP_LOCK_INCLUDE}"
  20591. ac_fn_c_check_header_mongrel "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  20592. if test "x$ac_cv_header_pjsip_h" = xyes; then :
  20593. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=1
  20594. else
  20595. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=0
  20596. fi
  20597. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20598. fi
  20599. if test "x${PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND}" = "x0" ; then
  20600. PJ_TRANSACTION_GRP_LOCK_LIB=""
  20601. PJ_TRANSACTION_GRP_LOCK_INCLUDE=""
  20602. else
  20603. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20604. PJ_TRANSACTION_GRP_LOCK_LIB=""
  20605. fi
  20606. PBX_PJ_TRANSACTION_GRP_LOCK=1
  20607. cat >>confdefs.h <<_ACEOF
  20608. #define HAVE_PJ_TRANSACTION_GRP_LOCK 1
  20609. _ACEOF
  20610. fi
  20611. fi
  20612. fi
  20613. saved_cppflags="${CPPFLAGS}"
  20614. saved_libs="${LIBS}"
  20615. CPPFLAGS="${CPPFLAGS} ${PJPROJECT_CFLAGS}"
  20616. LIBS="${LIBS} ${PJPROJECT_LIBS}"
  20617. if test "x${PBX_PJSIP_REPLACE_MEDIA_STREAM}" != "x1" -a "${USE_PJSIP_REPLACE_MEDIA_STREAM}" != "no"; then
  20618. if test "x" != "x"; then
  20619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  20620. $as_echo_n "checking for ... " >&6; }
  20621. else
  20622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h" >&5
  20623. $as_echo_n "checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h... " >&6; }
  20624. fi
  20625. saved_cppflags="${CPPFLAGS}"
  20626. if test "x${PJSIP_REPLACE_MEDIA_STREAM_DIR}" != "x"; then
  20627. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE="-I${PJSIP_REPLACE_MEDIA_STREAM_DIR}/include"
  20628. fi
  20629. CPPFLAGS="${CPPFLAGS} ${PJSIP_REPLACE_MEDIA_STREAM_INCLUDE}"
  20630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20631. /* end confdefs.h. */
  20632. #include <pjmedia.h>
  20633. int
  20634. main ()
  20635. {
  20636. pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE;
  20637. ;
  20638. return 0;
  20639. }
  20640. _ACEOF
  20641. if ac_fn_c_try_compile "$LINENO"; then :
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20643. $as_echo "yes" >&6; }
  20644. PBX_PJSIP_REPLACE_MEDIA_STREAM=1
  20645. $as_echo "#define HAVE_PJSIP_REPLACE_MEDIA_STREAM 1" >>confdefs.h
  20646. else
  20647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20648. $as_echo "no" >&6; }
  20649. fi
  20650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20651. CPPFLAGS="${saved_cppflags}"
  20652. fi
  20653. LIBS="${saved_libs}"
  20654. CPPFLAGS="${saved_cppflags}"
  20655. if test "x${PBX_PJSIP_GET_DEST_INFO}" != "x1" -a "${USE_PJSIP_GET_DEST_INFO}" != "no"; then
  20656. pbxlibdir=""
  20657. # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
  20658. if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
  20659. if test -d ${PJSIP_GET_DEST_INFO_DIR}/lib; then
  20660. pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}/lib"
  20661. else
  20662. pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}"
  20663. fi
  20664. fi
  20665. pbxfuncname="pjsip_get_dest_info"
  20666. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20667. AST_PJSIP_GET_DEST_INFO_FOUND=yes
  20668. else
  20669. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20670. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  20671. as_ac_Lib=`$as_echo "ac_cv_lib_pjsip_${pbxfuncname}" | $as_tr_sh`
  20672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpjsip" >&5
  20673. $as_echo_n "checking for ${pbxfuncname} in -lpjsip... " >&6; }
  20674. if eval \${$as_ac_Lib+:} false; then :
  20675. $as_echo_n "(cached) " >&6
  20676. else
  20677. ac_check_lib_save_LIBS=$LIBS
  20678. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIBS $LIBS"
  20679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20680. /* end confdefs.h. */
  20681. /* Override any GCC internal prototype to avoid an error.
  20682. Use char because int might match the return type of a GCC
  20683. builtin and then its argument prototype would still apply. */
  20684. #ifdef __cplusplus
  20685. extern "C"
  20686. #endif
  20687. char ${pbxfuncname} ();
  20688. int
  20689. main ()
  20690. {
  20691. return ${pbxfuncname} ();
  20692. ;
  20693. return 0;
  20694. }
  20695. _ACEOF
  20696. if ac_fn_c_try_link "$LINENO"; then :
  20697. eval "$as_ac_Lib=yes"
  20698. else
  20699. eval "$as_ac_Lib=no"
  20700. fi
  20701. rm -f core conftest.err conftest.$ac_objext \
  20702. conftest$ac_exeext conftest.$ac_ext
  20703. LIBS=$ac_check_lib_save_LIBS
  20704. fi
  20705. eval ac_res=\$$as_ac_Lib
  20706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20707. $as_echo "$ac_res" >&6; }
  20708. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20709. AST_PJSIP_GET_DEST_INFO_FOUND=yes
  20710. else
  20711. AST_PJSIP_GET_DEST_INFO_FOUND=no
  20712. fi
  20713. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20714. fi
  20715. # now check for the header.
  20716. if test "${AST_PJSIP_GET_DEST_INFO_FOUND}" = "yes"; then
  20717. PJSIP_GET_DEST_INFO_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIBS"
  20718. # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
  20719. if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
  20720. PJSIP_GET_DEST_INFO_INCLUDE="-I${PJSIP_GET_DEST_INFO_DIR}/include"
  20721. fi
  20722. PJSIP_GET_DEST_INFO_INCLUDE="${PJSIP_GET_DEST_INFO_INCLUDE} $PJPROJECT_CFLAGS"
  20723. if test "xpjsip.h" = "x" ; then # no header, assume found
  20724. PJSIP_GET_DEST_INFO_HEADER_FOUND="1"
  20725. else # check for the header
  20726. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20727. CPPFLAGS="${CPPFLAGS} ${PJSIP_GET_DEST_INFO_INCLUDE}"
  20728. ac_fn_c_check_header_mongrel "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  20729. if test "x$ac_cv_header_pjsip_h" = xyes; then :
  20730. PJSIP_GET_DEST_INFO_HEADER_FOUND=1
  20731. else
  20732. PJSIP_GET_DEST_INFO_HEADER_FOUND=0
  20733. fi
  20734. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20735. fi
  20736. if test "x${PJSIP_GET_DEST_INFO_HEADER_FOUND}" = "x0" ; then
  20737. PJSIP_GET_DEST_INFO_LIB=""
  20738. PJSIP_GET_DEST_INFO_INCLUDE=""
  20739. else
  20740. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20741. PJSIP_GET_DEST_INFO_LIB=""
  20742. fi
  20743. PBX_PJSIP_GET_DEST_INFO=1
  20744. cat >>confdefs.h <<_ACEOF
  20745. #define HAVE_PJSIP_GET_DEST_INFO 1
  20746. _ACEOF
  20747. fi
  20748. fi
  20749. fi
  20750. if test "x${PBX_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "x1" -a "${USE_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "no"; then
  20751. pbxlibdir=""
  20752. # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
  20753. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
  20754. if test -d ${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib; then
  20755. pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib"
  20756. else
  20757. pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}"
  20758. fi
  20759. fi
  20760. pbxfuncname="pj_ssl_cert_load_from_files2"
  20761. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20762. AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=yes
  20763. else
  20764. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20765. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  20766. as_ac_Lib=`$as_echo "ac_cv_lib_pj_${pbxfuncname}" | $as_tr_sh`
  20767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpj" >&5
  20768. $as_echo_n "checking for ${pbxfuncname} in -lpj... " >&6; }
  20769. if eval \${$as_ac_Lib+:} false; then :
  20770. $as_echo_n "(cached) " >&6
  20771. else
  20772. ac_check_lib_save_LIBS=$LIBS
  20773. LIBS="-lpj ${pbxlibdir} $PJPROJECT_LIBS $LIBS"
  20774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20775. /* end confdefs.h. */
  20776. /* Override any GCC internal prototype to avoid an error.
  20777. Use char because int might match the return type of a GCC
  20778. builtin and then its argument prototype would still apply. */
  20779. #ifdef __cplusplus
  20780. extern "C"
  20781. #endif
  20782. char ${pbxfuncname} ();
  20783. int
  20784. main ()
  20785. {
  20786. return ${pbxfuncname} ();
  20787. ;
  20788. return 0;
  20789. }
  20790. _ACEOF
  20791. if ac_fn_c_try_link "$LINENO"; then :
  20792. eval "$as_ac_Lib=yes"
  20793. else
  20794. eval "$as_ac_Lib=no"
  20795. fi
  20796. rm -f core conftest.err conftest.$ac_objext \
  20797. conftest$ac_exeext conftest.$ac_ext
  20798. LIBS=$ac_check_lib_save_LIBS
  20799. fi
  20800. eval ac_res=\$$as_ac_Lib
  20801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20802. $as_echo "$ac_res" >&6; }
  20803. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20804. AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=yes
  20805. else
  20806. AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=no
  20807. fi
  20808. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20809. fi
  20810. # now check for the header.
  20811. if test "${AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND}" = "yes"; then
  20812. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB="${pbxlibdir} -lpj $PJPROJECT_LIBS"
  20813. # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
  20814. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
  20815. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="-I${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/include"
  20816. fi
  20817. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE} $PJPROJECT_CFLAGS"
  20818. if test "xpjlib.h" = "x" ; then # no header, assume found
  20819. PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND="1"
  20820. else # check for the header
  20821. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20822. CPPFLAGS="${CPPFLAGS} ${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE}"
  20823. ac_fn_c_check_header_mongrel "$LINENO" "pjlib.h" "ac_cv_header_pjlib_h" "$ac_includes_default"
  20824. if test "x$ac_cv_header_pjlib_h" = xyes; then :
  20825. PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=1
  20826. else
  20827. PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=0
  20828. fi
  20829. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20830. fi
  20831. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND}" = "x0" ; then
  20832. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB=""
  20833. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE=""
  20834. else
  20835. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20836. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB=""
  20837. fi
  20838. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=1
  20839. cat >>confdefs.h <<_ACEOF
  20840. #define HAVE_PJ_SSL_CERT_LOAD_FROM_FILES2 1
  20841. _ACEOF
  20842. fi
  20843. fi
  20844. fi
  20845. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  20846. pbxlibdir=""
  20847. # if --with-POPT=DIR has been specified, use it.
  20848. if test "x${POPT_DIR}" != "x"; then
  20849. if test -d ${POPT_DIR}/lib; then
  20850. pbxlibdir="-L${POPT_DIR}/lib"
  20851. else
  20852. pbxlibdir="-L${POPT_DIR}"
  20853. fi
  20854. fi
  20855. pbxfuncname="poptStrerror"
  20856. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20857. AST_POPT_FOUND=yes
  20858. else
  20859. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20860. CFLAGS="${CFLAGS} "
  20861. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  20862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
  20863. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  20864. if eval \${$as_ac_Lib+:} false; then :
  20865. $as_echo_n "(cached) " >&6
  20866. else
  20867. ac_check_lib_save_LIBS=$LIBS
  20868. LIBS="-lpopt ${pbxlibdir} $LIBS"
  20869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20870. /* end confdefs.h. */
  20871. /* Override any GCC internal prototype to avoid an error.
  20872. Use char because int might match the return type of a GCC
  20873. builtin and then its argument prototype would still apply. */
  20874. #ifdef __cplusplus
  20875. extern "C"
  20876. #endif
  20877. char ${pbxfuncname} ();
  20878. int
  20879. main ()
  20880. {
  20881. return ${pbxfuncname} ();
  20882. ;
  20883. return 0;
  20884. }
  20885. _ACEOF
  20886. if ac_fn_c_try_link "$LINENO"; then :
  20887. eval "$as_ac_Lib=yes"
  20888. else
  20889. eval "$as_ac_Lib=no"
  20890. fi
  20891. rm -f core conftest.err conftest.$ac_objext \
  20892. conftest$ac_exeext conftest.$ac_ext
  20893. LIBS=$ac_check_lib_save_LIBS
  20894. fi
  20895. eval ac_res=\$$as_ac_Lib
  20896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20897. $as_echo "$ac_res" >&6; }
  20898. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20899. AST_POPT_FOUND=yes
  20900. else
  20901. AST_POPT_FOUND=no
  20902. fi
  20903. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20904. fi
  20905. # now check for the header.
  20906. if test "${AST_POPT_FOUND}" = "yes"; then
  20907. POPT_LIB="${pbxlibdir} -lpopt "
  20908. # if --with-POPT=DIR has been specified, use it.
  20909. if test "x${POPT_DIR}" != "x"; then
  20910. POPT_INCLUDE="-I${POPT_DIR}/include"
  20911. fi
  20912. POPT_INCLUDE="${POPT_INCLUDE} "
  20913. if test "xpopt.h" = "x" ; then # no header, assume found
  20914. POPT_HEADER_FOUND="1"
  20915. else # check for the header
  20916. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20917. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  20918. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  20919. if test "x$ac_cv_header_popt_h" = xyes; then :
  20920. POPT_HEADER_FOUND=1
  20921. else
  20922. POPT_HEADER_FOUND=0
  20923. fi
  20924. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20925. fi
  20926. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  20927. POPT_LIB=""
  20928. POPT_INCLUDE=""
  20929. else
  20930. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20931. POPT_LIB=""
  20932. fi
  20933. PBX_POPT=1
  20934. cat >>confdefs.h <<_ACEOF
  20935. #define HAVE_POPT 1
  20936. _ACEOF
  20937. fi
  20938. fi
  20939. fi
  20940. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  20941. pbxlibdir=""
  20942. # if --with-PORTAUDIO=DIR has been specified, use it.
  20943. if test "x${PORTAUDIO_DIR}" != "x"; then
  20944. if test -d ${PORTAUDIO_DIR}/lib; then
  20945. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  20946. else
  20947. pbxlibdir="-L${PORTAUDIO_DIR}"
  20948. fi
  20949. fi
  20950. pbxfuncname="Pa_GetDeviceCount"
  20951. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20952. AST_PORTAUDIO_FOUND=yes
  20953. else
  20954. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20955. CFLAGS="${CFLAGS} "
  20956. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  20957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
  20958. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  20959. if eval \${$as_ac_Lib+:} false; then :
  20960. $as_echo_n "(cached) " >&6
  20961. else
  20962. ac_check_lib_save_LIBS=$LIBS
  20963. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  20964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20965. /* end confdefs.h. */
  20966. /* Override any GCC internal prototype to avoid an error.
  20967. Use char because int might match the return type of a GCC
  20968. builtin and then its argument prototype would still apply. */
  20969. #ifdef __cplusplus
  20970. extern "C"
  20971. #endif
  20972. char ${pbxfuncname} ();
  20973. int
  20974. main ()
  20975. {
  20976. return ${pbxfuncname} ();
  20977. ;
  20978. return 0;
  20979. }
  20980. _ACEOF
  20981. if ac_fn_c_try_link "$LINENO"; then :
  20982. eval "$as_ac_Lib=yes"
  20983. else
  20984. eval "$as_ac_Lib=no"
  20985. fi
  20986. rm -f core conftest.err conftest.$ac_objext \
  20987. conftest$ac_exeext conftest.$ac_ext
  20988. LIBS=$ac_check_lib_save_LIBS
  20989. fi
  20990. eval ac_res=\$$as_ac_Lib
  20991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20992. $as_echo "$ac_res" >&6; }
  20993. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20994. AST_PORTAUDIO_FOUND=yes
  20995. else
  20996. AST_PORTAUDIO_FOUND=no
  20997. fi
  20998. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20999. fi
  21000. # now check for the header.
  21001. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  21002. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  21003. # if --with-PORTAUDIO=DIR has been specified, use it.
  21004. if test "x${PORTAUDIO_DIR}" != "x"; then
  21005. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  21006. fi
  21007. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  21008. if test "xportaudio.h" = "x" ; then # no header, assume found
  21009. PORTAUDIO_HEADER_FOUND="1"
  21010. else # check for the header
  21011. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21012. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  21013. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  21014. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  21015. PORTAUDIO_HEADER_FOUND=1
  21016. else
  21017. PORTAUDIO_HEADER_FOUND=0
  21018. fi
  21019. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21020. fi
  21021. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  21022. PORTAUDIO_LIB=""
  21023. PORTAUDIO_INCLUDE=""
  21024. else
  21025. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21026. PORTAUDIO_LIB=""
  21027. fi
  21028. PBX_PORTAUDIO=1
  21029. cat >>confdefs.h <<_ACEOF
  21030. #define HAVE_PORTAUDIO 1
  21031. _ACEOF
  21032. fi
  21033. fi
  21034. fi
  21035. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  21036. pbxlibdir=""
  21037. # if --with-PRI=DIR has been specified, use it.
  21038. if test "x${PRI_DIR}" != "x"; then
  21039. if test -d ${PRI_DIR}/lib; then
  21040. pbxlibdir="-L${PRI_DIR}/lib"
  21041. else
  21042. pbxlibdir="-L${PRI_DIR}"
  21043. fi
  21044. fi
  21045. pbxfuncname="pri_connected_line_update"
  21046. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21047. AST_PRI_FOUND=yes
  21048. else
  21049. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21050. CFLAGS="${CFLAGS} "
  21051. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21053. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21054. if eval \${$as_ac_Lib+:} false; then :
  21055. $as_echo_n "(cached) " >&6
  21056. else
  21057. ac_check_lib_save_LIBS=$LIBS
  21058. LIBS="-lpri ${pbxlibdir} $LIBS"
  21059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21060. /* end confdefs.h. */
  21061. /* Override any GCC internal prototype to avoid an error.
  21062. Use char because int might match the return type of a GCC
  21063. builtin and then its argument prototype would still apply. */
  21064. #ifdef __cplusplus
  21065. extern "C"
  21066. #endif
  21067. char ${pbxfuncname} ();
  21068. int
  21069. main ()
  21070. {
  21071. return ${pbxfuncname} ();
  21072. ;
  21073. return 0;
  21074. }
  21075. _ACEOF
  21076. if ac_fn_c_try_link "$LINENO"; then :
  21077. eval "$as_ac_Lib=yes"
  21078. else
  21079. eval "$as_ac_Lib=no"
  21080. fi
  21081. rm -f core conftest.err conftest.$ac_objext \
  21082. conftest$ac_exeext conftest.$ac_ext
  21083. LIBS=$ac_check_lib_save_LIBS
  21084. fi
  21085. eval ac_res=\$$as_ac_Lib
  21086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21087. $as_echo "$ac_res" >&6; }
  21088. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21089. AST_PRI_FOUND=yes
  21090. else
  21091. AST_PRI_FOUND=no
  21092. fi
  21093. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21094. fi
  21095. # now check for the header.
  21096. if test "${AST_PRI_FOUND}" = "yes"; then
  21097. PRI_LIB="${pbxlibdir} -lpri "
  21098. # if --with-PRI=DIR has been specified, use it.
  21099. if test "x${PRI_DIR}" != "x"; then
  21100. PRI_INCLUDE="-I${PRI_DIR}/include"
  21101. fi
  21102. PRI_INCLUDE="${PRI_INCLUDE} "
  21103. if test "xlibpri.h" = "x" ; then # no header, assume found
  21104. PRI_HEADER_FOUND="1"
  21105. else # check for the header
  21106. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21107. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  21108. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21109. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21110. PRI_HEADER_FOUND=1
  21111. else
  21112. PRI_HEADER_FOUND=0
  21113. fi
  21114. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21115. fi
  21116. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  21117. PRI_LIB=""
  21118. PRI_INCLUDE=""
  21119. else
  21120. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21121. PRI_LIB=""
  21122. fi
  21123. PBX_PRI=1
  21124. cat >>confdefs.h <<_ACEOF
  21125. #define HAVE_PRI 1
  21126. _ACEOF
  21127. fi
  21128. fi
  21129. fi
  21130. if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
  21131. pbxlibdir=""
  21132. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  21133. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  21134. if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
  21135. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
  21136. else
  21137. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
  21138. fi
  21139. fi
  21140. pbxfuncname="pri_setup_ack"
  21141. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21142. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  21143. else
  21144. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21145. CFLAGS="${CFLAGS} "
  21146. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21148. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21149. if eval \${$as_ac_Lib+:} false; then :
  21150. $as_echo_n "(cached) " >&6
  21151. else
  21152. ac_check_lib_save_LIBS=$LIBS
  21153. LIBS="-lpri ${pbxlibdir} $LIBS"
  21154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21155. /* end confdefs.h. */
  21156. /* Override any GCC internal prototype to avoid an error.
  21157. Use char because int might match the return type of a GCC
  21158. builtin and then its argument prototype would still apply. */
  21159. #ifdef __cplusplus
  21160. extern "C"
  21161. #endif
  21162. char ${pbxfuncname} ();
  21163. int
  21164. main ()
  21165. {
  21166. return ${pbxfuncname} ();
  21167. ;
  21168. return 0;
  21169. }
  21170. _ACEOF
  21171. if ac_fn_c_try_link "$LINENO"; then :
  21172. eval "$as_ac_Lib=yes"
  21173. else
  21174. eval "$as_ac_Lib=no"
  21175. fi
  21176. rm -f core conftest.err conftest.$ac_objext \
  21177. conftest$ac_exeext conftest.$ac_ext
  21178. LIBS=$ac_check_lib_save_LIBS
  21179. fi
  21180. eval ac_res=\$$as_ac_Lib
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21182. $as_echo "$ac_res" >&6; }
  21183. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21184. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  21185. else
  21186. AST_PRI_SETUP_ACK_INBAND_FOUND=no
  21187. fi
  21188. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21189. fi
  21190. # now check for the header.
  21191. if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
  21192. PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
  21193. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  21194. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  21195. PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
  21196. fi
  21197. PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
  21198. if test "xlibpri.h" = "x" ; then # no header, assume found
  21199. PRI_SETUP_ACK_INBAND_HEADER_FOUND="1"
  21200. else # check for the header
  21201. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21202. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
  21203. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21204. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21205. PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
  21206. else
  21207. PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
  21208. fi
  21209. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21210. fi
  21211. if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
  21212. PRI_SETUP_ACK_INBAND_LIB=""
  21213. PRI_SETUP_ACK_INBAND_INCLUDE=""
  21214. else
  21215. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21216. PRI_SETUP_ACK_INBAND_LIB=""
  21217. fi
  21218. PBX_PRI_SETUP_ACK_INBAND=1
  21219. cat >>confdefs.h <<_ACEOF
  21220. #define HAVE_PRI_SETUP_ACK_INBAND 1
  21221. _ACEOF
  21222. fi
  21223. fi
  21224. fi
  21225. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  21226. pbxlibdir=""
  21227. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  21228. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  21229. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  21230. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  21231. else
  21232. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  21233. fi
  21234. fi
  21235. pbxfuncname="pri_persistent_layer2_option"
  21236. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21237. AST_PRI_L2_PERSISTENCE_FOUND=yes
  21238. else
  21239. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21240. CFLAGS="${CFLAGS} "
  21241. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21243. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21244. if eval \${$as_ac_Lib+:} false; then :
  21245. $as_echo_n "(cached) " >&6
  21246. else
  21247. ac_check_lib_save_LIBS=$LIBS
  21248. LIBS="-lpri ${pbxlibdir} $LIBS"
  21249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21250. /* end confdefs.h. */
  21251. /* Override any GCC internal prototype to avoid an error.
  21252. Use char because int might match the return type of a GCC
  21253. builtin and then its argument prototype would still apply. */
  21254. #ifdef __cplusplus
  21255. extern "C"
  21256. #endif
  21257. char ${pbxfuncname} ();
  21258. int
  21259. main ()
  21260. {
  21261. return ${pbxfuncname} ();
  21262. ;
  21263. return 0;
  21264. }
  21265. _ACEOF
  21266. if ac_fn_c_try_link "$LINENO"; then :
  21267. eval "$as_ac_Lib=yes"
  21268. else
  21269. eval "$as_ac_Lib=no"
  21270. fi
  21271. rm -f core conftest.err conftest.$ac_objext \
  21272. conftest$ac_exeext conftest.$ac_ext
  21273. LIBS=$ac_check_lib_save_LIBS
  21274. fi
  21275. eval ac_res=\$$as_ac_Lib
  21276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21277. $as_echo "$ac_res" >&6; }
  21278. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21279. AST_PRI_L2_PERSISTENCE_FOUND=yes
  21280. else
  21281. AST_PRI_L2_PERSISTENCE_FOUND=no
  21282. fi
  21283. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21284. fi
  21285. # now check for the header.
  21286. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  21287. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  21288. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  21289. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  21290. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  21291. fi
  21292. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  21293. if test "xlibpri.h" = "x" ; then # no header, assume found
  21294. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  21295. else # check for the header
  21296. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21297. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  21298. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21299. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21300. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  21301. else
  21302. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  21303. fi
  21304. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21305. fi
  21306. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  21307. PRI_L2_PERSISTENCE_LIB=""
  21308. PRI_L2_PERSISTENCE_INCLUDE=""
  21309. else
  21310. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21311. PRI_L2_PERSISTENCE_LIB=""
  21312. fi
  21313. PBX_PRI_L2_PERSISTENCE=1
  21314. cat >>confdefs.h <<_ACEOF
  21315. #define HAVE_PRI_L2_PERSISTENCE 1
  21316. _ACEOF
  21317. fi
  21318. fi
  21319. fi
  21320. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  21321. pbxlibdir=""
  21322. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  21323. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  21324. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  21325. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  21326. else
  21327. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  21328. fi
  21329. fi
  21330. pbxfuncname="pri_date_time_send_option"
  21331. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21332. AST_PRI_DATETIME_SEND_FOUND=yes
  21333. else
  21334. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21335. CFLAGS="${CFLAGS} "
  21336. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21338. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21339. if eval \${$as_ac_Lib+:} false; then :
  21340. $as_echo_n "(cached) " >&6
  21341. else
  21342. ac_check_lib_save_LIBS=$LIBS
  21343. LIBS="-lpri ${pbxlibdir} $LIBS"
  21344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21345. /* end confdefs.h. */
  21346. /* Override any GCC internal prototype to avoid an error.
  21347. Use char because int might match the return type of a GCC
  21348. builtin and then its argument prototype would still apply. */
  21349. #ifdef __cplusplus
  21350. extern "C"
  21351. #endif
  21352. char ${pbxfuncname} ();
  21353. int
  21354. main ()
  21355. {
  21356. return ${pbxfuncname} ();
  21357. ;
  21358. return 0;
  21359. }
  21360. _ACEOF
  21361. if ac_fn_c_try_link "$LINENO"; then :
  21362. eval "$as_ac_Lib=yes"
  21363. else
  21364. eval "$as_ac_Lib=no"
  21365. fi
  21366. rm -f core conftest.err conftest.$ac_objext \
  21367. conftest$ac_exeext conftest.$ac_ext
  21368. LIBS=$ac_check_lib_save_LIBS
  21369. fi
  21370. eval ac_res=\$$as_ac_Lib
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21372. $as_echo "$ac_res" >&6; }
  21373. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21374. AST_PRI_DATETIME_SEND_FOUND=yes
  21375. else
  21376. AST_PRI_DATETIME_SEND_FOUND=no
  21377. fi
  21378. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21379. fi
  21380. # now check for the header.
  21381. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  21382. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  21383. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  21384. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  21385. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  21386. fi
  21387. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  21388. if test "xlibpri.h" = "x" ; then # no header, assume found
  21389. PRI_DATETIME_SEND_HEADER_FOUND="1"
  21390. else # check for the header
  21391. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21392. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  21393. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21394. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21395. PRI_DATETIME_SEND_HEADER_FOUND=1
  21396. else
  21397. PRI_DATETIME_SEND_HEADER_FOUND=0
  21398. fi
  21399. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21400. fi
  21401. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  21402. PRI_DATETIME_SEND_LIB=""
  21403. PRI_DATETIME_SEND_INCLUDE=""
  21404. else
  21405. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21406. PRI_DATETIME_SEND_LIB=""
  21407. fi
  21408. PBX_PRI_DATETIME_SEND=1
  21409. cat >>confdefs.h <<_ACEOF
  21410. #define HAVE_PRI_DATETIME_SEND 1
  21411. _ACEOF
  21412. fi
  21413. fi
  21414. fi
  21415. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  21416. pbxlibdir=""
  21417. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  21418. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  21419. if test -d ${PRI_MWI_V2_DIR}/lib; then
  21420. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  21421. else
  21422. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  21423. fi
  21424. fi
  21425. pbxfuncname="pri_mwi_indicate_v2"
  21426. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21427. AST_PRI_MWI_V2_FOUND=yes
  21428. else
  21429. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21430. CFLAGS="${CFLAGS} "
  21431. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21433. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21434. if eval \${$as_ac_Lib+:} false; then :
  21435. $as_echo_n "(cached) " >&6
  21436. else
  21437. ac_check_lib_save_LIBS=$LIBS
  21438. LIBS="-lpri ${pbxlibdir} $LIBS"
  21439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21440. /* end confdefs.h. */
  21441. /* Override any GCC internal prototype to avoid an error.
  21442. Use char because int might match the return type of a GCC
  21443. builtin and then its argument prototype would still apply. */
  21444. #ifdef __cplusplus
  21445. extern "C"
  21446. #endif
  21447. char ${pbxfuncname} ();
  21448. int
  21449. main ()
  21450. {
  21451. return ${pbxfuncname} ();
  21452. ;
  21453. return 0;
  21454. }
  21455. _ACEOF
  21456. if ac_fn_c_try_link "$LINENO"; then :
  21457. eval "$as_ac_Lib=yes"
  21458. else
  21459. eval "$as_ac_Lib=no"
  21460. fi
  21461. rm -f core conftest.err conftest.$ac_objext \
  21462. conftest$ac_exeext conftest.$ac_ext
  21463. LIBS=$ac_check_lib_save_LIBS
  21464. fi
  21465. eval ac_res=\$$as_ac_Lib
  21466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21467. $as_echo "$ac_res" >&6; }
  21468. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21469. AST_PRI_MWI_V2_FOUND=yes
  21470. else
  21471. AST_PRI_MWI_V2_FOUND=no
  21472. fi
  21473. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21474. fi
  21475. # now check for the header.
  21476. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  21477. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  21478. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  21479. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  21480. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  21481. fi
  21482. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  21483. if test "xlibpri.h" = "x" ; then # no header, assume found
  21484. PRI_MWI_V2_HEADER_FOUND="1"
  21485. else # check for the header
  21486. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21487. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  21488. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21489. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21490. PRI_MWI_V2_HEADER_FOUND=1
  21491. else
  21492. PRI_MWI_V2_HEADER_FOUND=0
  21493. fi
  21494. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21495. fi
  21496. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  21497. PRI_MWI_V2_LIB=""
  21498. PRI_MWI_V2_INCLUDE=""
  21499. else
  21500. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21501. PRI_MWI_V2_LIB=""
  21502. fi
  21503. PBX_PRI_MWI_V2=1
  21504. cat >>confdefs.h <<_ACEOF
  21505. #define HAVE_PRI_MWI_V2 1
  21506. _ACEOF
  21507. fi
  21508. fi
  21509. fi
  21510. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  21511. pbxlibdir=""
  21512. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  21513. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  21514. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  21515. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  21516. else
  21517. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  21518. fi
  21519. fi
  21520. pbxfuncname="pri_display_text"
  21521. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21522. AST_PRI_DISPLAY_TEXT_FOUND=yes
  21523. else
  21524. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21525. CFLAGS="${CFLAGS} "
  21526. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21528. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21529. if eval \${$as_ac_Lib+:} false; then :
  21530. $as_echo_n "(cached) " >&6
  21531. else
  21532. ac_check_lib_save_LIBS=$LIBS
  21533. LIBS="-lpri ${pbxlibdir} $LIBS"
  21534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21535. /* end confdefs.h. */
  21536. /* Override any GCC internal prototype to avoid an error.
  21537. Use char because int might match the return type of a GCC
  21538. builtin and then its argument prototype would still apply. */
  21539. #ifdef __cplusplus
  21540. extern "C"
  21541. #endif
  21542. char ${pbxfuncname} ();
  21543. int
  21544. main ()
  21545. {
  21546. return ${pbxfuncname} ();
  21547. ;
  21548. return 0;
  21549. }
  21550. _ACEOF
  21551. if ac_fn_c_try_link "$LINENO"; then :
  21552. eval "$as_ac_Lib=yes"
  21553. else
  21554. eval "$as_ac_Lib=no"
  21555. fi
  21556. rm -f core conftest.err conftest.$ac_objext \
  21557. conftest$ac_exeext conftest.$ac_ext
  21558. LIBS=$ac_check_lib_save_LIBS
  21559. fi
  21560. eval ac_res=\$$as_ac_Lib
  21561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21562. $as_echo "$ac_res" >&6; }
  21563. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21564. AST_PRI_DISPLAY_TEXT_FOUND=yes
  21565. else
  21566. AST_PRI_DISPLAY_TEXT_FOUND=no
  21567. fi
  21568. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21569. fi
  21570. # now check for the header.
  21571. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  21572. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  21573. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  21574. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  21575. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  21576. fi
  21577. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  21578. if test "xlibpri.h" = "x" ; then # no header, assume found
  21579. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  21580. else # check for the header
  21581. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21582. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  21583. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21584. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21585. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  21586. else
  21587. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  21588. fi
  21589. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21590. fi
  21591. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  21592. PRI_DISPLAY_TEXT_LIB=""
  21593. PRI_DISPLAY_TEXT_INCLUDE=""
  21594. else
  21595. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21596. PRI_DISPLAY_TEXT_LIB=""
  21597. fi
  21598. PBX_PRI_DISPLAY_TEXT=1
  21599. cat >>confdefs.h <<_ACEOF
  21600. #define HAVE_PRI_DISPLAY_TEXT 1
  21601. _ACEOF
  21602. fi
  21603. fi
  21604. fi
  21605. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  21606. pbxlibdir=""
  21607. # if --with-PRI_MWI=DIR has been specified, use it.
  21608. if test "x${PRI_MWI_DIR}" != "x"; then
  21609. if test -d ${PRI_MWI_DIR}/lib; then
  21610. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  21611. else
  21612. pbxlibdir="-L${PRI_MWI_DIR}"
  21613. fi
  21614. fi
  21615. pbxfuncname="pri_mwi_indicate"
  21616. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21617. AST_PRI_MWI_FOUND=yes
  21618. else
  21619. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21620. CFLAGS="${CFLAGS} "
  21621. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21623. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21624. if eval \${$as_ac_Lib+:} false; then :
  21625. $as_echo_n "(cached) " >&6
  21626. else
  21627. ac_check_lib_save_LIBS=$LIBS
  21628. LIBS="-lpri ${pbxlibdir} $LIBS"
  21629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21630. /* end confdefs.h. */
  21631. /* Override any GCC internal prototype to avoid an error.
  21632. Use char because int might match the return type of a GCC
  21633. builtin and then its argument prototype would still apply. */
  21634. #ifdef __cplusplus
  21635. extern "C"
  21636. #endif
  21637. char ${pbxfuncname} ();
  21638. int
  21639. main ()
  21640. {
  21641. return ${pbxfuncname} ();
  21642. ;
  21643. return 0;
  21644. }
  21645. _ACEOF
  21646. if ac_fn_c_try_link "$LINENO"; then :
  21647. eval "$as_ac_Lib=yes"
  21648. else
  21649. eval "$as_ac_Lib=no"
  21650. fi
  21651. rm -f core conftest.err conftest.$ac_objext \
  21652. conftest$ac_exeext conftest.$ac_ext
  21653. LIBS=$ac_check_lib_save_LIBS
  21654. fi
  21655. eval ac_res=\$$as_ac_Lib
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21657. $as_echo "$ac_res" >&6; }
  21658. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21659. AST_PRI_MWI_FOUND=yes
  21660. else
  21661. AST_PRI_MWI_FOUND=no
  21662. fi
  21663. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21664. fi
  21665. # now check for the header.
  21666. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  21667. PRI_MWI_LIB="${pbxlibdir} -lpri "
  21668. # if --with-PRI_MWI=DIR has been specified, use it.
  21669. if test "x${PRI_MWI_DIR}" != "x"; then
  21670. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  21671. fi
  21672. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  21673. if test "xlibpri.h" = "x" ; then # no header, assume found
  21674. PRI_MWI_HEADER_FOUND="1"
  21675. else # check for the header
  21676. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21677. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  21678. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21679. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21680. PRI_MWI_HEADER_FOUND=1
  21681. else
  21682. PRI_MWI_HEADER_FOUND=0
  21683. fi
  21684. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21685. fi
  21686. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  21687. PRI_MWI_LIB=""
  21688. PRI_MWI_INCLUDE=""
  21689. else
  21690. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21691. PRI_MWI_LIB=""
  21692. fi
  21693. PBX_PRI_MWI=1
  21694. cat >>confdefs.h <<_ACEOF
  21695. #define HAVE_PRI_MWI 1
  21696. _ACEOF
  21697. fi
  21698. fi
  21699. fi
  21700. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  21701. pbxlibdir=""
  21702. # if --with-PRI_MCID=DIR has been specified, use it.
  21703. if test "x${PRI_MCID_DIR}" != "x"; then
  21704. if test -d ${PRI_MCID_DIR}/lib; then
  21705. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  21706. else
  21707. pbxlibdir="-L${PRI_MCID_DIR}"
  21708. fi
  21709. fi
  21710. pbxfuncname="pri_mcid_enable"
  21711. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21712. AST_PRI_MCID_FOUND=yes
  21713. else
  21714. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21715. CFLAGS="${CFLAGS} "
  21716. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21718. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21719. if eval \${$as_ac_Lib+:} false; then :
  21720. $as_echo_n "(cached) " >&6
  21721. else
  21722. ac_check_lib_save_LIBS=$LIBS
  21723. LIBS="-lpri ${pbxlibdir} $LIBS"
  21724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21725. /* end confdefs.h. */
  21726. /* Override any GCC internal prototype to avoid an error.
  21727. Use char because int might match the return type of a GCC
  21728. builtin and then its argument prototype would still apply. */
  21729. #ifdef __cplusplus
  21730. extern "C"
  21731. #endif
  21732. char ${pbxfuncname} ();
  21733. int
  21734. main ()
  21735. {
  21736. return ${pbxfuncname} ();
  21737. ;
  21738. return 0;
  21739. }
  21740. _ACEOF
  21741. if ac_fn_c_try_link "$LINENO"; then :
  21742. eval "$as_ac_Lib=yes"
  21743. else
  21744. eval "$as_ac_Lib=no"
  21745. fi
  21746. rm -f core conftest.err conftest.$ac_objext \
  21747. conftest$ac_exeext conftest.$ac_ext
  21748. LIBS=$ac_check_lib_save_LIBS
  21749. fi
  21750. eval ac_res=\$$as_ac_Lib
  21751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21752. $as_echo "$ac_res" >&6; }
  21753. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21754. AST_PRI_MCID_FOUND=yes
  21755. else
  21756. AST_PRI_MCID_FOUND=no
  21757. fi
  21758. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21759. fi
  21760. # now check for the header.
  21761. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  21762. PRI_MCID_LIB="${pbxlibdir} -lpri "
  21763. # if --with-PRI_MCID=DIR has been specified, use it.
  21764. if test "x${PRI_MCID_DIR}" != "x"; then
  21765. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  21766. fi
  21767. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  21768. if test "xlibpri.h" = "x" ; then # no header, assume found
  21769. PRI_MCID_HEADER_FOUND="1"
  21770. else # check for the header
  21771. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21772. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  21773. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21774. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21775. PRI_MCID_HEADER_FOUND=1
  21776. else
  21777. PRI_MCID_HEADER_FOUND=0
  21778. fi
  21779. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21780. fi
  21781. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  21782. PRI_MCID_LIB=""
  21783. PRI_MCID_INCLUDE=""
  21784. else
  21785. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21786. PRI_MCID_LIB=""
  21787. fi
  21788. PBX_PRI_MCID=1
  21789. cat >>confdefs.h <<_ACEOF
  21790. #define HAVE_PRI_MCID 1
  21791. _ACEOF
  21792. fi
  21793. fi
  21794. fi
  21795. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  21796. pbxlibdir=""
  21797. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  21798. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  21799. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  21800. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  21801. else
  21802. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  21803. fi
  21804. fi
  21805. pbxfuncname="pri_connect_ack_enable"
  21806. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21807. AST_PRI_CALL_WAITING_FOUND=yes
  21808. else
  21809. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21810. CFLAGS="${CFLAGS} "
  21811. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21813. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21814. if eval \${$as_ac_Lib+:} false; then :
  21815. $as_echo_n "(cached) " >&6
  21816. else
  21817. ac_check_lib_save_LIBS=$LIBS
  21818. LIBS="-lpri ${pbxlibdir} $LIBS"
  21819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21820. /* end confdefs.h. */
  21821. /* Override any GCC internal prototype to avoid an error.
  21822. Use char because int might match the return type of a GCC
  21823. builtin and then its argument prototype would still apply. */
  21824. #ifdef __cplusplus
  21825. extern "C"
  21826. #endif
  21827. char ${pbxfuncname} ();
  21828. int
  21829. main ()
  21830. {
  21831. return ${pbxfuncname} ();
  21832. ;
  21833. return 0;
  21834. }
  21835. _ACEOF
  21836. if ac_fn_c_try_link "$LINENO"; then :
  21837. eval "$as_ac_Lib=yes"
  21838. else
  21839. eval "$as_ac_Lib=no"
  21840. fi
  21841. rm -f core conftest.err conftest.$ac_objext \
  21842. conftest$ac_exeext conftest.$ac_ext
  21843. LIBS=$ac_check_lib_save_LIBS
  21844. fi
  21845. eval ac_res=\$$as_ac_Lib
  21846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21847. $as_echo "$ac_res" >&6; }
  21848. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21849. AST_PRI_CALL_WAITING_FOUND=yes
  21850. else
  21851. AST_PRI_CALL_WAITING_FOUND=no
  21852. fi
  21853. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21854. fi
  21855. # now check for the header.
  21856. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  21857. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  21858. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  21859. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  21860. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  21861. fi
  21862. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  21863. if test "xlibpri.h" = "x" ; then # no header, assume found
  21864. PRI_CALL_WAITING_HEADER_FOUND="1"
  21865. else # check for the header
  21866. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21867. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  21868. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21869. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21870. PRI_CALL_WAITING_HEADER_FOUND=1
  21871. else
  21872. PRI_CALL_WAITING_HEADER_FOUND=0
  21873. fi
  21874. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21875. fi
  21876. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  21877. PRI_CALL_WAITING_LIB=""
  21878. PRI_CALL_WAITING_INCLUDE=""
  21879. else
  21880. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21881. PRI_CALL_WAITING_LIB=""
  21882. fi
  21883. PBX_PRI_CALL_WAITING=1
  21884. cat >>confdefs.h <<_ACEOF
  21885. #define HAVE_PRI_CALL_WAITING 1
  21886. _ACEOF
  21887. fi
  21888. fi
  21889. fi
  21890. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  21891. pbxlibdir=""
  21892. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  21893. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  21894. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  21895. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  21896. else
  21897. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  21898. fi
  21899. fi
  21900. pbxfuncname="pri_aoc_events_enable"
  21901. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21902. AST_PRI_AOC_EVENTS_FOUND=yes
  21903. else
  21904. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21905. CFLAGS="${CFLAGS} "
  21906. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21908. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&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="-lpri ${pbxlibdir} $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_PRI_AOC_EVENTS_FOUND=yes
  21945. else
  21946. AST_PRI_AOC_EVENTS_FOUND=no
  21947. fi
  21948. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21949. fi
  21950. # now check for the header.
  21951. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  21952. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  21953. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  21954. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  21955. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  21956. fi
  21957. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  21958. if test "xlibpri.h" = "x" ; then # no header, assume found
  21959. PRI_AOC_EVENTS_HEADER_FOUND="1"
  21960. else # check for the header
  21961. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21962. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  21963. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21964. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21965. PRI_AOC_EVENTS_HEADER_FOUND=1
  21966. else
  21967. PRI_AOC_EVENTS_HEADER_FOUND=0
  21968. fi
  21969. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21970. fi
  21971. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  21972. PRI_AOC_EVENTS_LIB=""
  21973. PRI_AOC_EVENTS_INCLUDE=""
  21974. else
  21975. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21976. PRI_AOC_EVENTS_LIB=""
  21977. fi
  21978. PBX_PRI_AOC_EVENTS=1
  21979. cat >>confdefs.h <<_ACEOF
  21980. #define HAVE_PRI_AOC_EVENTS 1
  21981. _ACEOF
  21982. fi
  21983. fi
  21984. fi
  21985. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  21986. pbxlibdir=""
  21987. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  21988. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  21989. if test -d ${PRI_TRANSFER_DIR}/lib; then
  21990. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  21991. else
  21992. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  21993. fi
  21994. fi
  21995. pbxfuncname="pri_transfer_enable"
  21996. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21997. AST_PRI_TRANSFER_FOUND=yes
  21998. else
  21999. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22000. CFLAGS="${CFLAGS} "
  22001. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22003. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22004. if eval \${$as_ac_Lib+:} false; then :
  22005. $as_echo_n "(cached) " >&6
  22006. else
  22007. ac_check_lib_save_LIBS=$LIBS
  22008. LIBS="-lpri ${pbxlibdir} $LIBS"
  22009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22010. /* end confdefs.h. */
  22011. /* Override any GCC internal prototype to avoid an error.
  22012. Use char because int might match the return type of a GCC
  22013. builtin and then its argument prototype would still apply. */
  22014. #ifdef __cplusplus
  22015. extern "C"
  22016. #endif
  22017. char ${pbxfuncname} ();
  22018. int
  22019. main ()
  22020. {
  22021. return ${pbxfuncname} ();
  22022. ;
  22023. return 0;
  22024. }
  22025. _ACEOF
  22026. if ac_fn_c_try_link "$LINENO"; then :
  22027. eval "$as_ac_Lib=yes"
  22028. else
  22029. eval "$as_ac_Lib=no"
  22030. fi
  22031. rm -f core conftest.err conftest.$ac_objext \
  22032. conftest$ac_exeext conftest.$ac_ext
  22033. LIBS=$ac_check_lib_save_LIBS
  22034. fi
  22035. eval ac_res=\$$as_ac_Lib
  22036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22037. $as_echo "$ac_res" >&6; }
  22038. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22039. AST_PRI_TRANSFER_FOUND=yes
  22040. else
  22041. AST_PRI_TRANSFER_FOUND=no
  22042. fi
  22043. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22044. fi
  22045. # now check for the header.
  22046. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  22047. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  22048. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  22049. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  22050. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  22051. fi
  22052. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  22053. if test "xlibpri.h" = "x" ; then # no header, assume found
  22054. PRI_TRANSFER_HEADER_FOUND="1"
  22055. else # check for the header
  22056. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22057. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  22058. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22059. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22060. PRI_TRANSFER_HEADER_FOUND=1
  22061. else
  22062. PRI_TRANSFER_HEADER_FOUND=0
  22063. fi
  22064. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22065. fi
  22066. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  22067. PRI_TRANSFER_LIB=""
  22068. PRI_TRANSFER_INCLUDE=""
  22069. else
  22070. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22071. PRI_TRANSFER_LIB=""
  22072. fi
  22073. PBX_PRI_TRANSFER=1
  22074. cat >>confdefs.h <<_ACEOF
  22075. #define HAVE_PRI_TRANSFER 1
  22076. _ACEOF
  22077. fi
  22078. fi
  22079. fi
  22080. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  22081. pbxlibdir=""
  22082. # if --with-PRI_CCSS=DIR has been specified, use it.
  22083. if test "x${PRI_CCSS_DIR}" != "x"; then
  22084. if test -d ${PRI_CCSS_DIR}/lib; then
  22085. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  22086. else
  22087. pbxlibdir="-L${PRI_CCSS_DIR}"
  22088. fi
  22089. fi
  22090. pbxfuncname="pri_cc_enable"
  22091. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22092. AST_PRI_CCSS_FOUND=yes
  22093. else
  22094. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22095. CFLAGS="${CFLAGS} "
  22096. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22098. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22099. if eval \${$as_ac_Lib+:} false; then :
  22100. $as_echo_n "(cached) " >&6
  22101. else
  22102. ac_check_lib_save_LIBS=$LIBS
  22103. LIBS="-lpri ${pbxlibdir} $LIBS"
  22104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22105. /* end confdefs.h. */
  22106. /* Override any GCC internal prototype to avoid an error.
  22107. Use char because int might match the return type of a GCC
  22108. builtin and then its argument prototype would still apply. */
  22109. #ifdef __cplusplus
  22110. extern "C"
  22111. #endif
  22112. char ${pbxfuncname} ();
  22113. int
  22114. main ()
  22115. {
  22116. return ${pbxfuncname} ();
  22117. ;
  22118. return 0;
  22119. }
  22120. _ACEOF
  22121. if ac_fn_c_try_link "$LINENO"; then :
  22122. eval "$as_ac_Lib=yes"
  22123. else
  22124. eval "$as_ac_Lib=no"
  22125. fi
  22126. rm -f core conftest.err conftest.$ac_objext \
  22127. conftest$ac_exeext conftest.$ac_ext
  22128. LIBS=$ac_check_lib_save_LIBS
  22129. fi
  22130. eval ac_res=\$$as_ac_Lib
  22131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22132. $as_echo "$ac_res" >&6; }
  22133. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22134. AST_PRI_CCSS_FOUND=yes
  22135. else
  22136. AST_PRI_CCSS_FOUND=no
  22137. fi
  22138. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22139. fi
  22140. # now check for the header.
  22141. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  22142. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  22143. # if --with-PRI_CCSS=DIR has been specified, use it.
  22144. if test "x${PRI_CCSS_DIR}" != "x"; then
  22145. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  22146. fi
  22147. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  22148. if test "xlibpri.h" = "x" ; then # no header, assume found
  22149. PRI_CCSS_HEADER_FOUND="1"
  22150. else # check for the header
  22151. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22152. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  22153. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22154. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22155. PRI_CCSS_HEADER_FOUND=1
  22156. else
  22157. PRI_CCSS_HEADER_FOUND=0
  22158. fi
  22159. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22160. fi
  22161. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  22162. PRI_CCSS_LIB=""
  22163. PRI_CCSS_INCLUDE=""
  22164. else
  22165. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22166. PRI_CCSS_LIB=""
  22167. fi
  22168. PBX_PRI_CCSS=1
  22169. cat >>confdefs.h <<_ACEOF
  22170. #define HAVE_PRI_CCSS 1
  22171. _ACEOF
  22172. fi
  22173. fi
  22174. fi
  22175. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  22176. pbxlibdir=""
  22177. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  22178. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  22179. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  22180. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  22181. else
  22182. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  22183. fi
  22184. fi
  22185. pbxfuncname="pri_hangup_fix_enable"
  22186. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22187. AST_PRI_HANGUP_FIX_FOUND=yes
  22188. else
  22189. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22190. CFLAGS="${CFLAGS} "
  22191. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22193. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22194. if eval \${$as_ac_Lib+:} false; then :
  22195. $as_echo_n "(cached) " >&6
  22196. else
  22197. ac_check_lib_save_LIBS=$LIBS
  22198. LIBS="-lpri ${pbxlibdir} $LIBS"
  22199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22200. /* end confdefs.h. */
  22201. /* Override any GCC internal prototype to avoid an error.
  22202. Use char because int might match the return type of a GCC
  22203. builtin and then its argument prototype would still apply. */
  22204. #ifdef __cplusplus
  22205. extern "C"
  22206. #endif
  22207. char ${pbxfuncname} ();
  22208. int
  22209. main ()
  22210. {
  22211. return ${pbxfuncname} ();
  22212. ;
  22213. return 0;
  22214. }
  22215. _ACEOF
  22216. if ac_fn_c_try_link "$LINENO"; then :
  22217. eval "$as_ac_Lib=yes"
  22218. else
  22219. eval "$as_ac_Lib=no"
  22220. fi
  22221. rm -f core conftest.err conftest.$ac_objext \
  22222. conftest$ac_exeext conftest.$ac_ext
  22223. LIBS=$ac_check_lib_save_LIBS
  22224. fi
  22225. eval ac_res=\$$as_ac_Lib
  22226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22227. $as_echo "$ac_res" >&6; }
  22228. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22229. AST_PRI_HANGUP_FIX_FOUND=yes
  22230. else
  22231. AST_PRI_HANGUP_FIX_FOUND=no
  22232. fi
  22233. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22234. fi
  22235. # now check for the header.
  22236. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  22237. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  22238. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  22239. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  22240. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  22241. fi
  22242. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  22243. if test "xlibpri.h" = "x" ; then # no header, assume found
  22244. PRI_HANGUP_FIX_HEADER_FOUND="1"
  22245. else # check for the header
  22246. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22247. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  22248. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22249. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22250. PRI_HANGUP_FIX_HEADER_FOUND=1
  22251. else
  22252. PRI_HANGUP_FIX_HEADER_FOUND=0
  22253. fi
  22254. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22255. fi
  22256. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  22257. PRI_HANGUP_FIX_LIB=""
  22258. PRI_HANGUP_FIX_INCLUDE=""
  22259. else
  22260. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22261. PRI_HANGUP_FIX_LIB=""
  22262. fi
  22263. PBX_PRI_HANGUP_FIX=1
  22264. cat >>confdefs.h <<_ACEOF
  22265. #define HAVE_PRI_HANGUP_FIX 1
  22266. _ACEOF
  22267. fi
  22268. fi
  22269. fi
  22270. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  22271. pbxlibdir=""
  22272. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  22273. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  22274. if test -d ${PRI_SUBADDR_DIR}/lib; then
  22275. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  22276. else
  22277. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  22278. fi
  22279. fi
  22280. pbxfuncname="pri_sr_set_called_subaddress"
  22281. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22282. AST_PRI_SUBADDR_FOUND=yes
  22283. else
  22284. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22285. CFLAGS="${CFLAGS} "
  22286. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22288. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22289. if eval \${$as_ac_Lib+:} false; then :
  22290. $as_echo_n "(cached) " >&6
  22291. else
  22292. ac_check_lib_save_LIBS=$LIBS
  22293. LIBS="-lpri ${pbxlibdir} $LIBS"
  22294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22295. /* end confdefs.h. */
  22296. /* Override any GCC internal prototype to avoid an error.
  22297. Use char because int might match the return type of a GCC
  22298. builtin and then its argument prototype would still apply. */
  22299. #ifdef __cplusplus
  22300. extern "C"
  22301. #endif
  22302. char ${pbxfuncname} ();
  22303. int
  22304. main ()
  22305. {
  22306. return ${pbxfuncname} ();
  22307. ;
  22308. return 0;
  22309. }
  22310. _ACEOF
  22311. if ac_fn_c_try_link "$LINENO"; then :
  22312. eval "$as_ac_Lib=yes"
  22313. else
  22314. eval "$as_ac_Lib=no"
  22315. fi
  22316. rm -f core conftest.err conftest.$ac_objext \
  22317. conftest$ac_exeext conftest.$ac_ext
  22318. LIBS=$ac_check_lib_save_LIBS
  22319. fi
  22320. eval ac_res=\$$as_ac_Lib
  22321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22322. $as_echo "$ac_res" >&6; }
  22323. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22324. AST_PRI_SUBADDR_FOUND=yes
  22325. else
  22326. AST_PRI_SUBADDR_FOUND=no
  22327. fi
  22328. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22329. fi
  22330. # now check for the header.
  22331. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  22332. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  22333. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  22334. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  22335. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  22336. fi
  22337. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  22338. if test "xlibpri.h" = "x" ; then # no header, assume found
  22339. PRI_SUBADDR_HEADER_FOUND="1"
  22340. else # check for the header
  22341. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22342. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  22343. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22344. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22345. PRI_SUBADDR_HEADER_FOUND=1
  22346. else
  22347. PRI_SUBADDR_HEADER_FOUND=0
  22348. fi
  22349. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22350. fi
  22351. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  22352. PRI_SUBADDR_LIB=""
  22353. PRI_SUBADDR_INCLUDE=""
  22354. else
  22355. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22356. PRI_SUBADDR_LIB=""
  22357. fi
  22358. PBX_PRI_SUBADDR=1
  22359. cat >>confdefs.h <<_ACEOF
  22360. #define HAVE_PRI_SUBADDR 1
  22361. _ACEOF
  22362. fi
  22363. fi
  22364. fi
  22365. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  22366. pbxlibdir=""
  22367. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  22368. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  22369. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  22370. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  22371. else
  22372. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  22373. fi
  22374. fi
  22375. pbxfuncname="pri_hold_enable"
  22376. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22377. AST_PRI_CALL_HOLD_FOUND=yes
  22378. else
  22379. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22380. CFLAGS="${CFLAGS} "
  22381. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22383. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22384. if eval \${$as_ac_Lib+:} false; then :
  22385. $as_echo_n "(cached) " >&6
  22386. else
  22387. ac_check_lib_save_LIBS=$LIBS
  22388. LIBS="-lpri ${pbxlibdir} $LIBS"
  22389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22390. /* end confdefs.h. */
  22391. /* Override any GCC internal prototype to avoid an error.
  22392. Use char because int might match the return type of a GCC
  22393. builtin and then its argument prototype would still apply. */
  22394. #ifdef __cplusplus
  22395. extern "C"
  22396. #endif
  22397. char ${pbxfuncname} ();
  22398. int
  22399. main ()
  22400. {
  22401. return ${pbxfuncname} ();
  22402. ;
  22403. return 0;
  22404. }
  22405. _ACEOF
  22406. if ac_fn_c_try_link "$LINENO"; then :
  22407. eval "$as_ac_Lib=yes"
  22408. else
  22409. eval "$as_ac_Lib=no"
  22410. fi
  22411. rm -f core conftest.err conftest.$ac_objext \
  22412. conftest$ac_exeext conftest.$ac_ext
  22413. LIBS=$ac_check_lib_save_LIBS
  22414. fi
  22415. eval ac_res=\$$as_ac_Lib
  22416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22417. $as_echo "$ac_res" >&6; }
  22418. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22419. AST_PRI_CALL_HOLD_FOUND=yes
  22420. else
  22421. AST_PRI_CALL_HOLD_FOUND=no
  22422. fi
  22423. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22424. fi
  22425. # now check for the header.
  22426. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  22427. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  22428. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  22429. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  22430. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  22431. fi
  22432. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  22433. if test "xlibpri.h" = "x" ; then # no header, assume found
  22434. PRI_CALL_HOLD_HEADER_FOUND="1"
  22435. else # check for the header
  22436. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22437. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  22438. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22439. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22440. PRI_CALL_HOLD_HEADER_FOUND=1
  22441. else
  22442. PRI_CALL_HOLD_HEADER_FOUND=0
  22443. fi
  22444. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22445. fi
  22446. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  22447. PRI_CALL_HOLD_LIB=""
  22448. PRI_CALL_HOLD_INCLUDE=""
  22449. else
  22450. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22451. PRI_CALL_HOLD_LIB=""
  22452. fi
  22453. PBX_PRI_CALL_HOLD=1
  22454. cat >>confdefs.h <<_ACEOF
  22455. #define HAVE_PRI_CALL_HOLD 1
  22456. _ACEOF
  22457. fi
  22458. fi
  22459. fi
  22460. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  22461. pbxlibdir=""
  22462. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  22463. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  22464. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  22465. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  22466. else
  22467. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  22468. fi
  22469. fi
  22470. pbxfuncname="pri_reroute_enable"
  22471. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22472. AST_PRI_CALL_REROUTING_FOUND=yes
  22473. else
  22474. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22475. CFLAGS="${CFLAGS} "
  22476. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22478. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22479. if eval \${$as_ac_Lib+:} false; then :
  22480. $as_echo_n "(cached) " >&6
  22481. else
  22482. ac_check_lib_save_LIBS=$LIBS
  22483. LIBS="-lpri ${pbxlibdir} $LIBS"
  22484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22485. /* end confdefs.h. */
  22486. /* Override any GCC internal prototype to avoid an error.
  22487. Use char because int might match the return type of a GCC
  22488. builtin and then its argument prototype would still apply. */
  22489. #ifdef __cplusplus
  22490. extern "C"
  22491. #endif
  22492. char ${pbxfuncname} ();
  22493. int
  22494. main ()
  22495. {
  22496. return ${pbxfuncname} ();
  22497. ;
  22498. return 0;
  22499. }
  22500. _ACEOF
  22501. if ac_fn_c_try_link "$LINENO"; then :
  22502. eval "$as_ac_Lib=yes"
  22503. else
  22504. eval "$as_ac_Lib=no"
  22505. fi
  22506. rm -f core conftest.err conftest.$ac_objext \
  22507. conftest$ac_exeext conftest.$ac_ext
  22508. LIBS=$ac_check_lib_save_LIBS
  22509. fi
  22510. eval ac_res=\$$as_ac_Lib
  22511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22512. $as_echo "$ac_res" >&6; }
  22513. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22514. AST_PRI_CALL_REROUTING_FOUND=yes
  22515. else
  22516. AST_PRI_CALL_REROUTING_FOUND=no
  22517. fi
  22518. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22519. fi
  22520. # now check for the header.
  22521. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  22522. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  22523. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  22524. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  22525. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  22526. fi
  22527. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  22528. if test "xlibpri.h" = "x" ; then # no header, assume found
  22529. PRI_CALL_REROUTING_HEADER_FOUND="1"
  22530. else # check for the header
  22531. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22532. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  22533. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22534. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22535. PRI_CALL_REROUTING_HEADER_FOUND=1
  22536. else
  22537. PRI_CALL_REROUTING_HEADER_FOUND=0
  22538. fi
  22539. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22540. fi
  22541. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  22542. PRI_CALL_REROUTING_LIB=""
  22543. PRI_CALL_REROUTING_INCLUDE=""
  22544. else
  22545. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22546. PRI_CALL_REROUTING_LIB=""
  22547. fi
  22548. PBX_PRI_CALL_REROUTING=1
  22549. cat >>confdefs.h <<_ACEOF
  22550. #define HAVE_PRI_CALL_REROUTING 1
  22551. _ACEOF
  22552. fi
  22553. fi
  22554. fi
  22555. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  22556. pbxlibdir=""
  22557. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  22558. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  22559. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  22560. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  22561. else
  22562. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  22563. fi
  22564. fi
  22565. pbxfuncname="pri_sr_set_keypad_digits"
  22566. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22567. AST_PRI_SETUP_KEYPAD_FOUND=yes
  22568. else
  22569. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22570. CFLAGS="${CFLAGS} "
  22571. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22573. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22574. if eval \${$as_ac_Lib+:} false; then :
  22575. $as_echo_n "(cached) " >&6
  22576. else
  22577. ac_check_lib_save_LIBS=$LIBS
  22578. LIBS="-lpri ${pbxlibdir} $LIBS"
  22579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22580. /* end confdefs.h. */
  22581. /* Override any GCC internal prototype to avoid an error.
  22582. Use char because int might match the return type of a GCC
  22583. builtin and then its argument prototype would still apply. */
  22584. #ifdef __cplusplus
  22585. extern "C"
  22586. #endif
  22587. char ${pbxfuncname} ();
  22588. int
  22589. main ()
  22590. {
  22591. return ${pbxfuncname} ();
  22592. ;
  22593. return 0;
  22594. }
  22595. _ACEOF
  22596. if ac_fn_c_try_link "$LINENO"; then :
  22597. eval "$as_ac_Lib=yes"
  22598. else
  22599. eval "$as_ac_Lib=no"
  22600. fi
  22601. rm -f core conftest.err conftest.$ac_objext \
  22602. conftest$ac_exeext conftest.$ac_ext
  22603. LIBS=$ac_check_lib_save_LIBS
  22604. fi
  22605. eval ac_res=\$$as_ac_Lib
  22606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22607. $as_echo "$ac_res" >&6; }
  22608. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22609. AST_PRI_SETUP_KEYPAD_FOUND=yes
  22610. else
  22611. AST_PRI_SETUP_KEYPAD_FOUND=no
  22612. fi
  22613. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22614. fi
  22615. # now check for the header.
  22616. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  22617. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  22618. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  22619. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  22620. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  22621. fi
  22622. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  22623. if test "xlibpri.h" = "x" ; then # no header, assume found
  22624. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  22625. else # check for the header
  22626. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22627. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  22628. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22629. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22630. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  22631. else
  22632. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  22633. fi
  22634. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22635. fi
  22636. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  22637. PRI_SETUP_KEYPAD_LIB=""
  22638. PRI_SETUP_KEYPAD_INCLUDE=""
  22639. else
  22640. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22641. PRI_SETUP_KEYPAD_LIB=""
  22642. fi
  22643. PBX_PRI_SETUP_KEYPAD=1
  22644. cat >>confdefs.h <<_ACEOF
  22645. #define HAVE_PRI_SETUP_KEYPAD 1
  22646. _ACEOF
  22647. fi
  22648. fi
  22649. fi
  22650. # ------------------------------------v
  22651. # TODO: The code can be changed to always include these features now.
  22652. # These features will always be present if pri_connected_line_update is available.
  22653. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  22654. pbxlibdir=""
  22655. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  22656. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  22657. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  22658. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  22659. else
  22660. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  22661. fi
  22662. fi
  22663. pbxfuncname="pri_progress_with_cause"
  22664. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22665. AST_PRI_PROG_W_CAUSE_FOUND=yes
  22666. else
  22667. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22668. CFLAGS="${CFLAGS} "
  22669. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22671. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22672. if eval \${$as_ac_Lib+:} false; then :
  22673. $as_echo_n "(cached) " >&6
  22674. else
  22675. ac_check_lib_save_LIBS=$LIBS
  22676. LIBS="-lpri ${pbxlibdir} $LIBS"
  22677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22678. /* end confdefs.h. */
  22679. /* Override any GCC internal prototype to avoid an error.
  22680. Use char because int might match the return type of a GCC
  22681. builtin and then its argument prototype would still apply. */
  22682. #ifdef __cplusplus
  22683. extern "C"
  22684. #endif
  22685. char ${pbxfuncname} ();
  22686. int
  22687. main ()
  22688. {
  22689. return ${pbxfuncname} ();
  22690. ;
  22691. return 0;
  22692. }
  22693. _ACEOF
  22694. if ac_fn_c_try_link "$LINENO"; then :
  22695. eval "$as_ac_Lib=yes"
  22696. else
  22697. eval "$as_ac_Lib=no"
  22698. fi
  22699. rm -f core conftest.err conftest.$ac_objext \
  22700. conftest$ac_exeext conftest.$ac_ext
  22701. LIBS=$ac_check_lib_save_LIBS
  22702. fi
  22703. eval ac_res=\$$as_ac_Lib
  22704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22705. $as_echo "$ac_res" >&6; }
  22706. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22707. AST_PRI_PROG_W_CAUSE_FOUND=yes
  22708. else
  22709. AST_PRI_PROG_W_CAUSE_FOUND=no
  22710. fi
  22711. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22712. fi
  22713. # now check for the header.
  22714. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  22715. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  22716. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  22717. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  22718. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  22719. fi
  22720. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  22721. if test "xlibpri.h" = "x" ; then # no header, assume found
  22722. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  22723. else # check for the header
  22724. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22725. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  22726. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22727. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22728. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  22729. else
  22730. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  22731. fi
  22732. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22733. fi
  22734. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  22735. PRI_PROG_W_CAUSE_LIB=""
  22736. PRI_PROG_W_CAUSE_INCLUDE=""
  22737. else
  22738. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22739. PRI_PROG_W_CAUSE_LIB=""
  22740. fi
  22741. PBX_PRI_PROG_W_CAUSE=1
  22742. cat >>confdefs.h <<_ACEOF
  22743. #define HAVE_PRI_PROG_W_CAUSE 1
  22744. _ACEOF
  22745. fi
  22746. fi
  22747. fi
  22748. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  22749. pbxlibdir=""
  22750. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  22751. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  22752. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  22753. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  22754. else
  22755. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  22756. fi
  22757. fi
  22758. pbxfuncname="pri_set_inbanddisconnect"
  22759. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22760. AST_PRI_INBANDDISCONNECT_FOUND=yes
  22761. else
  22762. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22763. CFLAGS="${CFLAGS} "
  22764. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22766. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22767. if eval \${$as_ac_Lib+:} false; then :
  22768. $as_echo_n "(cached) " >&6
  22769. else
  22770. ac_check_lib_save_LIBS=$LIBS
  22771. LIBS="-lpri ${pbxlibdir} $LIBS"
  22772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22773. /* end confdefs.h. */
  22774. /* Override any GCC internal prototype to avoid an error.
  22775. Use char because int might match the return type of a GCC
  22776. builtin and then its argument prototype would still apply. */
  22777. #ifdef __cplusplus
  22778. extern "C"
  22779. #endif
  22780. char ${pbxfuncname} ();
  22781. int
  22782. main ()
  22783. {
  22784. return ${pbxfuncname} ();
  22785. ;
  22786. return 0;
  22787. }
  22788. _ACEOF
  22789. if ac_fn_c_try_link "$LINENO"; then :
  22790. eval "$as_ac_Lib=yes"
  22791. else
  22792. eval "$as_ac_Lib=no"
  22793. fi
  22794. rm -f core conftest.err conftest.$ac_objext \
  22795. conftest$ac_exeext conftest.$ac_ext
  22796. LIBS=$ac_check_lib_save_LIBS
  22797. fi
  22798. eval ac_res=\$$as_ac_Lib
  22799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22800. $as_echo "$ac_res" >&6; }
  22801. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22802. AST_PRI_INBANDDISCONNECT_FOUND=yes
  22803. else
  22804. AST_PRI_INBANDDISCONNECT_FOUND=no
  22805. fi
  22806. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22807. fi
  22808. # now check for the header.
  22809. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  22810. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  22811. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  22812. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  22813. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  22814. fi
  22815. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  22816. if test "xlibpri.h" = "x" ; then # no header, assume found
  22817. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  22818. else # check for the header
  22819. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22820. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  22821. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22822. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22823. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  22824. else
  22825. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  22826. fi
  22827. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22828. fi
  22829. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  22830. PRI_INBANDDISCONNECT_LIB=""
  22831. PRI_INBANDDISCONNECT_INCLUDE=""
  22832. else
  22833. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22834. PRI_INBANDDISCONNECT_LIB=""
  22835. fi
  22836. PBX_PRI_INBANDDISCONNECT=1
  22837. cat >>confdefs.h <<_ACEOF
  22838. #define HAVE_PRI_INBANDDISCONNECT 1
  22839. _ACEOF
  22840. fi
  22841. fi
  22842. fi
  22843. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  22844. pbxlibdir=""
  22845. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  22846. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  22847. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  22848. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  22849. else
  22850. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  22851. fi
  22852. fi
  22853. pbxfuncname="pri_maintenance_service"
  22854. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22855. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  22856. else
  22857. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22858. CFLAGS="${CFLAGS} "
  22859. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22861. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22862. if eval \${$as_ac_Lib+:} false; then :
  22863. $as_echo_n "(cached) " >&6
  22864. else
  22865. ac_check_lib_save_LIBS=$LIBS
  22866. LIBS="-lpri ${pbxlibdir} $LIBS"
  22867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22868. /* end confdefs.h. */
  22869. /* Override any GCC internal prototype to avoid an error.
  22870. Use char because int might match the return type of a GCC
  22871. builtin and then its argument prototype would still apply. */
  22872. #ifdef __cplusplus
  22873. extern "C"
  22874. #endif
  22875. char ${pbxfuncname} ();
  22876. int
  22877. main ()
  22878. {
  22879. return ${pbxfuncname} ();
  22880. ;
  22881. return 0;
  22882. }
  22883. _ACEOF
  22884. if ac_fn_c_try_link "$LINENO"; then :
  22885. eval "$as_ac_Lib=yes"
  22886. else
  22887. eval "$as_ac_Lib=no"
  22888. fi
  22889. rm -f core conftest.err conftest.$ac_objext \
  22890. conftest$ac_exeext conftest.$ac_ext
  22891. LIBS=$ac_check_lib_save_LIBS
  22892. fi
  22893. eval ac_res=\$$as_ac_Lib
  22894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22895. $as_echo "$ac_res" >&6; }
  22896. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22897. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  22898. else
  22899. AST_PRI_SERVICE_MESSAGES_FOUND=no
  22900. fi
  22901. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22902. fi
  22903. # now check for the header.
  22904. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  22905. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  22906. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  22907. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  22908. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  22909. fi
  22910. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  22911. if test "xlibpri.h" = "x" ; then # no header, assume found
  22912. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  22913. else # check for the header
  22914. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22915. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  22916. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22917. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22918. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  22919. else
  22920. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  22921. fi
  22922. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22923. fi
  22924. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  22925. PRI_SERVICE_MESSAGES_LIB=""
  22926. PRI_SERVICE_MESSAGES_INCLUDE=""
  22927. else
  22928. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22929. PRI_SERVICE_MESSAGES_LIB=""
  22930. fi
  22931. PBX_PRI_SERVICE_MESSAGES=1
  22932. cat >>confdefs.h <<_ACEOF
  22933. #define HAVE_PRI_SERVICE_MESSAGES 1
  22934. _ACEOF
  22935. fi
  22936. fi
  22937. fi
  22938. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  22939. pbxlibdir=""
  22940. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  22941. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  22942. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  22943. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  22944. else
  22945. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  22946. fi
  22947. fi
  22948. pbxfuncname="pri_sr_set_reversecharge"
  22949. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22950. AST_PRI_REVERSE_CHARGE_FOUND=yes
  22951. else
  22952. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22953. CFLAGS="${CFLAGS} "
  22954. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22956. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22957. if eval \${$as_ac_Lib+:} false; then :
  22958. $as_echo_n "(cached) " >&6
  22959. else
  22960. ac_check_lib_save_LIBS=$LIBS
  22961. LIBS="-lpri ${pbxlibdir} $LIBS"
  22962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22963. /* end confdefs.h. */
  22964. /* Override any GCC internal prototype to avoid an error.
  22965. Use char because int might match the return type of a GCC
  22966. builtin and then its argument prototype would still apply. */
  22967. #ifdef __cplusplus
  22968. extern "C"
  22969. #endif
  22970. char ${pbxfuncname} ();
  22971. int
  22972. main ()
  22973. {
  22974. return ${pbxfuncname} ();
  22975. ;
  22976. return 0;
  22977. }
  22978. _ACEOF
  22979. if ac_fn_c_try_link "$LINENO"; then :
  22980. eval "$as_ac_Lib=yes"
  22981. else
  22982. eval "$as_ac_Lib=no"
  22983. fi
  22984. rm -f core conftest.err conftest.$ac_objext \
  22985. conftest$ac_exeext conftest.$ac_ext
  22986. LIBS=$ac_check_lib_save_LIBS
  22987. fi
  22988. eval ac_res=\$$as_ac_Lib
  22989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22990. $as_echo "$ac_res" >&6; }
  22991. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22992. AST_PRI_REVERSE_CHARGE_FOUND=yes
  22993. else
  22994. AST_PRI_REVERSE_CHARGE_FOUND=no
  22995. fi
  22996. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22997. fi
  22998. # now check for the header.
  22999. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  23000. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  23001. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  23002. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  23003. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  23004. fi
  23005. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  23006. if test "xlibpri.h" = "x" ; then # no header, assume found
  23007. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  23008. else # check for the header
  23009. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23010. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  23011. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  23012. if test "x$ac_cv_header_libpri_h" = xyes; then :
  23013. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  23014. else
  23015. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  23016. fi
  23017. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23018. fi
  23019. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  23020. PRI_REVERSE_CHARGE_LIB=""
  23021. PRI_REVERSE_CHARGE_INCLUDE=""
  23022. else
  23023. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23024. PRI_REVERSE_CHARGE_LIB=""
  23025. fi
  23026. PBX_PRI_REVERSE_CHARGE=1
  23027. cat >>confdefs.h <<_ACEOF
  23028. #define HAVE_PRI_REVERSE_CHARGE 1
  23029. _ACEOF
  23030. fi
  23031. fi
  23032. fi
  23033. # ------------------------------------^
  23034. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  23035. pbxlibdir=""
  23036. # if --with-RESAMPLE=DIR has been specified, use it.
  23037. if test "x${RESAMPLE_DIR}" != "x"; then
  23038. if test -d ${RESAMPLE_DIR}/lib; then
  23039. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  23040. else
  23041. pbxlibdir="-L${RESAMPLE_DIR}"
  23042. fi
  23043. fi
  23044. pbxfuncname="resample_open"
  23045. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23046. AST_RESAMPLE_FOUND=yes
  23047. else
  23048. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23049. CFLAGS="${CFLAGS} "
  23050. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  23051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
  23052. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  23053. if eval \${$as_ac_Lib+:} false; then :
  23054. $as_echo_n "(cached) " >&6
  23055. else
  23056. ac_check_lib_save_LIBS=$LIBS
  23057. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  23058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23059. /* end confdefs.h. */
  23060. /* Override any GCC internal prototype to avoid an error.
  23061. Use char because int might match the return type of a GCC
  23062. builtin and then its argument prototype would still apply. */
  23063. #ifdef __cplusplus
  23064. extern "C"
  23065. #endif
  23066. char ${pbxfuncname} ();
  23067. int
  23068. main ()
  23069. {
  23070. return ${pbxfuncname} ();
  23071. ;
  23072. return 0;
  23073. }
  23074. _ACEOF
  23075. if ac_fn_c_try_link "$LINENO"; then :
  23076. eval "$as_ac_Lib=yes"
  23077. else
  23078. eval "$as_ac_Lib=no"
  23079. fi
  23080. rm -f core conftest.err conftest.$ac_objext \
  23081. conftest$ac_exeext conftest.$ac_ext
  23082. LIBS=$ac_check_lib_save_LIBS
  23083. fi
  23084. eval ac_res=\$$as_ac_Lib
  23085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23086. $as_echo "$ac_res" >&6; }
  23087. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23088. AST_RESAMPLE_FOUND=yes
  23089. else
  23090. AST_RESAMPLE_FOUND=no
  23091. fi
  23092. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23093. fi
  23094. # now check for the header.
  23095. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  23096. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  23097. # if --with-RESAMPLE=DIR has been specified, use it.
  23098. if test "x${RESAMPLE_DIR}" != "x"; then
  23099. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  23100. fi
  23101. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  23102. if test "xlibresample.h" = "x" ; then # no header, assume found
  23103. RESAMPLE_HEADER_FOUND="1"
  23104. else # check for the header
  23105. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23106. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  23107. ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  23108. if test "x$ac_cv_header_libresample_h" = xyes; then :
  23109. RESAMPLE_HEADER_FOUND=1
  23110. else
  23111. RESAMPLE_HEADER_FOUND=0
  23112. fi
  23113. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23114. fi
  23115. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  23116. RESAMPLE_LIB=""
  23117. RESAMPLE_INCLUDE=""
  23118. else
  23119. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23120. RESAMPLE_LIB=""
  23121. fi
  23122. PBX_RESAMPLE=1
  23123. cat >>confdefs.h <<_ACEOF
  23124. #define HAVE_RESAMPLE 1
  23125. _ACEOF
  23126. fi
  23127. fi
  23128. fi
  23129. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  23130. if test "xminimum version of SpanDSP" != "x"; then
  23131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  23132. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  23133. else
  23134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
  23135. #if SPANDSP_RELEASE_DATE < 20080516
  23136. #error \"spandsp 0.0.5 or greater is required\"
  23137. #endif
  23138. \" compiles using spandsp/version.h" >&5
  23139. $as_echo_n "checking if \"
  23140. #if SPANDSP_RELEASE_DATE < 20080516
  23141. #error \"spandsp 0.0.5 or greater is required\"
  23142. #endif
  23143. \" compiles using spandsp/version.h... " >&6; }
  23144. fi
  23145. saved_cppflags="${CPPFLAGS}"
  23146. if test "x${SPANDSP_DIR}" != "x"; then
  23147. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  23148. fi
  23149. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  23150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23151. /* end confdefs.h. */
  23152. #include <spandsp/version.h>
  23153. int
  23154. main ()
  23155. {
  23156. #if SPANDSP_RELEASE_DATE < 20080516
  23157. #error "spandsp 0.0.5 or greater is required"
  23158. #endif
  23159. ;
  23160. ;
  23161. return 0;
  23162. }
  23163. _ACEOF
  23164. if ac_fn_c_try_compile "$LINENO"; then :
  23165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23166. $as_echo "yes" >&6; }
  23167. PBX_SPANDSP=1
  23168. $as_echo "#define HAVE_SPANDSP 1" >>confdefs.h
  23169. else
  23170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23171. $as_echo "no" >&6; }
  23172. fi
  23173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23174. CPPFLAGS="${saved_cppflags}"
  23175. fi
  23176. if test "x${PBX_SPANDSP}" = "x1" ; then
  23177. # We found the correct version in the header, now let's make sure it links
  23178. # properly, and that libtiff is available
  23179. PBX_SPANDSP=0
  23180. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  23181. pbxlibdir=""
  23182. # if --with-SPANDSP=DIR has been specified, use it.
  23183. if test "x${SPANDSP_DIR}" != "x"; then
  23184. if test -d ${SPANDSP_DIR}/lib; then
  23185. pbxlibdir="-L${SPANDSP_DIR}/lib"
  23186. else
  23187. pbxlibdir="-L${SPANDSP_DIR}"
  23188. fi
  23189. fi
  23190. pbxfuncname="span_set_message_handler"
  23191. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23192. AST_SPANDSP_FOUND=yes
  23193. else
  23194. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23195. CFLAGS="${CFLAGS} "
  23196. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  23197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  23198. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  23199. if eval \${$as_ac_Lib+:} false; then :
  23200. $as_echo_n "(cached) " >&6
  23201. else
  23202. ac_check_lib_save_LIBS=$LIBS
  23203. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  23204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23205. /* end confdefs.h. */
  23206. /* Override any GCC internal prototype to avoid an error.
  23207. Use char because int might match the return type of a GCC
  23208. builtin and then its argument prototype would still apply. */
  23209. #ifdef __cplusplus
  23210. extern "C"
  23211. #endif
  23212. char ${pbxfuncname} ();
  23213. int
  23214. main ()
  23215. {
  23216. return ${pbxfuncname} ();
  23217. ;
  23218. return 0;
  23219. }
  23220. _ACEOF
  23221. if ac_fn_c_try_link "$LINENO"; then :
  23222. eval "$as_ac_Lib=yes"
  23223. else
  23224. eval "$as_ac_Lib=no"
  23225. fi
  23226. rm -f core conftest.err conftest.$ac_objext \
  23227. conftest$ac_exeext conftest.$ac_ext
  23228. LIBS=$ac_check_lib_save_LIBS
  23229. fi
  23230. eval ac_res=\$$as_ac_Lib
  23231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23232. $as_echo "$ac_res" >&6; }
  23233. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23234. AST_SPANDSP_FOUND=yes
  23235. else
  23236. AST_SPANDSP_FOUND=no
  23237. fi
  23238. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23239. fi
  23240. # now check for the header.
  23241. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  23242. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  23243. # if --with-SPANDSP=DIR has been specified, use it.
  23244. if test "x${SPANDSP_DIR}" != "x"; then
  23245. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  23246. fi
  23247. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  23248. if test "xspandsp.h" = "x" ; then # no header, assume found
  23249. SPANDSP_HEADER_FOUND="1"
  23250. else # check for the header
  23251. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23252. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  23253. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  23254. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  23255. SPANDSP_HEADER_FOUND=1
  23256. else
  23257. SPANDSP_HEADER_FOUND=0
  23258. fi
  23259. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23260. fi
  23261. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  23262. SPANDSP_LIB=""
  23263. SPANDSP_INCLUDE=""
  23264. else
  23265. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23266. SPANDSP_LIB=""
  23267. fi
  23268. PBX_SPANDSP=1
  23269. cat >>confdefs.h <<_ACEOF
  23270. #define HAVE_SPANDSP 1
  23271. _ACEOF
  23272. fi
  23273. fi
  23274. fi
  23275. fi
  23276. if test "x${PBX_SPANDSP}" = "x1" ; then
  23277. # We also need t38_terminal_init()
  23278. PBX_SPANDSP=0
  23279. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  23280. pbxlibdir=""
  23281. # if --with-SPANDSP=DIR has been specified, use it.
  23282. if test "x${SPANDSP_DIR}" != "x"; then
  23283. if test -d ${SPANDSP_DIR}/lib; then
  23284. pbxlibdir="-L${SPANDSP_DIR}/lib"
  23285. else
  23286. pbxlibdir="-L${SPANDSP_DIR}"
  23287. fi
  23288. fi
  23289. pbxfuncname="t38_terminal_init"
  23290. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23291. AST_SPANDSP_FOUND=yes
  23292. else
  23293. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23294. CFLAGS="${CFLAGS} "
  23295. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  23296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  23297. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  23298. if eval \${$as_ac_Lib+:} false; then :
  23299. $as_echo_n "(cached) " >&6
  23300. else
  23301. ac_check_lib_save_LIBS=$LIBS
  23302. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  23303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23304. /* end confdefs.h. */
  23305. /* Override any GCC internal prototype to avoid an error.
  23306. Use char because int might match the return type of a GCC
  23307. builtin and then its argument prototype would still apply. */
  23308. #ifdef __cplusplus
  23309. extern "C"
  23310. #endif
  23311. char ${pbxfuncname} ();
  23312. int
  23313. main ()
  23314. {
  23315. return ${pbxfuncname} ();
  23316. ;
  23317. return 0;
  23318. }
  23319. _ACEOF
  23320. if ac_fn_c_try_link "$LINENO"; then :
  23321. eval "$as_ac_Lib=yes"
  23322. else
  23323. eval "$as_ac_Lib=no"
  23324. fi
  23325. rm -f core conftest.err conftest.$ac_objext \
  23326. conftest$ac_exeext conftest.$ac_ext
  23327. LIBS=$ac_check_lib_save_LIBS
  23328. fi
  23329. eval ac_res=\$$as_ac_Lib
  23330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23331. $as_echo "$ac_res" >&6; }
  23332. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23333. AST_SPANDSP_FOUND=yes
  23334. else
  23335. AST_SPANDSP_FOUND=no
  23336. fi
  23337. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23338. fi
  23339. # now check for the header.
  23340. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  23341. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  23342. # if --with-SPANDSP=DIR has been specified, use it.
  23343. if test "x${SPANDSP_DIR}" != "x"; then
  23344. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  23345. fi
  23346. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  23347. if test "xspandsp.h" = "x" ; then # no header, assume found
  23348. SPANDSP_HEADER_FOUND="1"
  23349. else # check for the header
  23350. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23351. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  23352. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  23353. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  23354. SPANDSP_HEADER_FOUND=1
  23355. else
  23356. SPANDSP_HEADER_FOUND=0
  23357. fi
  23358. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23359. fi
  23360. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  23361. SPANDSP_LIB=""
  23362. SPANDSP_INCLUDE=""
  23363. else
  23364. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23365. SPANDSP_LIB=""
  23366. fi
  23367. PBX_SPANDSP=1
  23368. cat >>confdefs.h <<_ACEOF
  23369. #define HAVE_SPANDSP 1
  23370. _ACEOF
  23371. fi
  23372. fi
  23373. fi
  23374. fi
  23375. # Check for libss7 v2.0 branch compatible version.
  23376. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  23377. pbxlibdir=""
  23378. # if --with-SS7=DIR has been specified, use it.
  23379. if test "x${SS7_DIR}" != "x"; then
  23380. if test -d ${SS7_DIR}/lib; then
  23381. pbxlibdir="-L${SS7_DIR}/lib"
  23382. else
  23383. pbxlibdir="-L${SS7_DIR}"
  23384. fi
  23385. fi
  23386. pbxfuncname="ss7_set_isup_timer"
  23387. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23388. AST_SS7_FOUND=yes
  23389. else
  23390. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23391. CFLAGS="${CFLAGS} "
  23392. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  23393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
  23394. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  23395. if eval \${$as_ac_Lib+:} false; then :
  23396. $as_echo_n "(cached) " >&6
  23397. else
  23398. ac_check_lib_save_LIBS=$LIBS
  23399. LIBS="-lss7 ${pbxlibdir} $LIBS"
  23400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23401. /* end confdefs.h. */
  23402. /* Override any GCC internal prototype to avoid an error.
  23403. Use char because int might match the return type of a GCC
  23404. builtin and then its argument prototype would still apply. */
  23405. #ifdef __cplusplus
  23406. extern "C"
  23407. #endif
  23408. char ${pbxfuncname} ();
  23409. int
  23410. main ()
  23411. {
  23412. return ${pbxfuncname} ();
  23413. ;
  23414. return 0;
  23415. }
  23416. _ACEOF
  23417. if ac_fn_c_try_link "$LINENO"; then :
  23418. eval "$as_ac_Lib=yes"
  23419. else
  23420. eval "$as_ac_Lib=no"
  23421. fi
  23422. rm -f core conftest.err conftest.$ac_objext \
  23423. conftest$ac_exeext conftest.$ac_ext
  23424. LIBS=$ac_check_lib_save_LIBS
  23425. fi
  23426. eval ac_res=\$$as_ac_Lib
  23427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23428. $as_echo "$ac_res" >&6; }
  23429. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23430. AST_SS7_FOUND=yes
  23431. else
  23432. AST_SS7_FOUND=no
  23433. fi
  23434. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23435. fi
  23436. # now check for the header.
  23437. if test "${AST_SS7_FOUND}" = "yes"; then
  23438. SS7_LIB="${pbxlibdir} -lss7 "
  23439. # if --with-SS7=DIR has been specified, use it.
  23440. if test "x${SS7_DIR}" != "x"; then
  23441. SS7_INCLUDE="-I${SS7_DIR}/include"
  23442. fi
  23443. SS7_INCLUDE="${SS7_INCLUDE} "
  23444. if test "xlibss7.h" = "x" ; then # no header, assume found
  23445. SS7_HEADER_FOUND="1"
  23446. else # check for the header
  23447. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23448. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  23449. ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  23450. if test "x$ac_cv_header_libss7_h" = xyes; then :
  23451. SS7_HEADER_FOUND=1
  23452. else
  23453. SS7_HEADER_FOUND=0
  23454. fi
  23455. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23456. fi
  23457. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  23458. SS7_LIB=""
  23459. SS7_INCLUDE=""
  23460. else
  23461. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23462. SS7_LIB=""
  23463. fi
  23464. PBX_SS7=1
  23465. cat >>confdefs.h <<_ACEOF
  23466. #define HAVE_SS7 1
  23467. _ACEOF
  23468. fi
  23469. fi
  23470. fi
  23471. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  23472. pbxlibdir=""
  23473. # if --with-OPENR2=DIR has been specified, use it.
  23474. if test "x${OPENR2_DIR}" != "x"; then
  23475. if test -d ${OPENR2_DIR}/lib; then
  23476. pbxlibdir="-L${OPENR2_DIR}/lib"
  23477. else
  23478. pbxlibdir="-L${OPENR2_DIR}"
  23479. fi
  23480. fi
  23481. pbxfuncname="openr2_chan_new"
  23482. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23483. AST_OPENR2_FOUND=yes
  23484. else
  23485. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23486. CFLAGS="${CFLAGS} "
  23487. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  23488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
  23489. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  23490. if eval \${$as_ac_Lib+:} false; then :
  23491. $as_echo_n "(cached) " >&6
  23492. else
  23493. ac_check_lib_save_LIBS=$LIBS
  23494. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  23495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23496. /* end confdefs.h. */
  23497. /* Override any GCC internal prototype to avoid an error.
  23498. Use char because int might match the return type of a GCC
  23499. builtin and then its argument prototype would still apply. */
  23500. #ifdef __cplusplus
  23501. extern "C"
  23502. #endif
  23503. char ${pbxfuncname} ();
  23504. int
  23505. main ()
  23506. {
  23507. return ${pbxfuncname} ();
  23508. ;
  23509. return 0;
  23510. }
  23511. _ACEOF
  23512. if ac_fn_c_try_link "$LINENO"; then :
  23513. eval "$as_ac_Lib=yes"
  23514. else
  23515. eval "$as_ac_Lib=no"
  23516. fi
  23517. rm -f core conftest.err conftest.$ac_objext \
  23518. conftest$ac_exeext conftest.$ac_ext
  23519. LIBS=$ac_check_lib_save_LIBS
  23520. fi
  23521. eval ac_res=\$$as_ac_Lib
  23522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23523. $as_echo "$ac_res" >&6; }
  23524. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23525. AST_OPENR2_FOUND=yes
  23526. else
  23527. AST_OPENR2_FOUND=no
  23528. fi
  23529. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23530. fi
  23531. # now check for the header.
  23532. if test "${AST_OPENR2_FOUND}" = "yes"; then
  23533. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  23534. # if --with-OPENR2=DIR has been specified, use it.
  23535. if test "x${OPENR2_DIR}" != "x"; then
  23536. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  23537. fi
  23538. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  23539. if test "xopenr2.h" = "x" ; then # no header, assume found
  23540. OPENR2_HEADER_FOUND="1"
  23541. else # check for the header
  23542. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23543. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  23544. ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  23545. if test "x$ac_cv_header_openr2_h" = xyes; then :
  23546. OPENR2_HEADER_FOUND=1
  23547. else
  23548. OPENR2_HEADER_FOUND=0
  23549. fi
  23550. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23551. fi
  23552. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  23553. OPENR2_LIB=""
  23554. OPENR2_INCLUDE=""
  23555. else
  23556. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23557. OPENR2_LIB=""
  23558. fi
  23559. PBX_OPENR2=1
  23560. cat >>confdefs.h <<_ACEOF
  23561. #define HAVE_OPENR2 1
  23562. _ACEOF
  23563. fi
  23564. fi
  23565. fi
  23566. if test "x${PBX_OPUS}" != "x1" -a "${USE_OPUS}" != "no"; then
  23567. pbxlibdir=""
  23568. # if --with-OPUS=DIR has been specified, use it.
  23569. if test "x${OPUS_DIR}" != "x"; then
  23570. if test -d ${OPUS_DIR}/lib; then
  23571. pbxlibdir="-L${OPUS_DIR}/lib"
  23572. else
  23573. pbxlibdir="-L${OPUS_DIR}"
  23574. fi
  23575. fi
  23576. pbxfuncname="opus_encoder_create"
  23577. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23578. AST_OPUS_FOUND=yes
  23579. else
  23580. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23581. CFLAGS="${CFLAGS} "
  23582. as_ac_Lib=`$as_echo "ac_cv_lib_opus_${pbxfuncname}" | $as_tr_sh`
  23583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopus" >&5
  23584. $as_echo_n "checking for ${pbxfuncname} in -lopus... " >&6; }
  23585. if eval \${$as_ac_Lib+:} false; then :
  23586. $as_echo_n "(cached) " >&6
  23587. else
  23588. ac_check_lib_save_LIBS=$LIBS
  23589. LIBS="-lopus ${pbxlibdir} $LIBS"
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. /* Override any GCC internal prototype to avoid an error.
  23593. Use char because int might match the return type of a GCC
  23594. builtin and then its argument prototype would still apply. */
  23595. #ifdef __cplusplus
  23596. extern "C"
  23597. #endif
  23598. char ${pbxfuncname} ();
  23599. int
  23600. main ()
  23601. {
  23602. return ${pbxfuncname} ();
  23603. ;
  23604. return 0;
  23605. }
  23606. _ACEOF
  23607. if ac_fn_c_try_link "$LINENO"; then :
  23608. eval "$as_ac_Lib=yes"
  23609. else
  23610. eval "$as_ac_Lib=no"
  23611. fi
  23612. rm -f core conftest.err conftest.$ac_objext \
  23613. conftest$ac_exeext conftest.$ac_ext
  23614. LIBS=$ac_check_lib_save_LIBS
  23615. fi
  23616. eval ac_res=\$$as_ac_Lib
  23617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23618. $as_echo "$ac_res" >&6; }
  23619. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23620. AST_OPUS_FOUND=yes
  23621. else
  23622. AST_OPUS_FOUND=no
  23623. fi
  23624. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23625. fi
  23626. # now check for the header.
  23627. if test "${AST_OPUS_FOUND}" = "yes"; then
  23628. OPUS_LIB="${pbxlibdir} -lopus "
  23629. # if --with-OPUS=DIR has been specified, use it.
  23630. if test "x${OPUS_DIR}" != "x"; then
  23631. OPUS_INCLUDE="-I${OPUS_DIR}/include"
  23632. fi
  23633. OPUS_INCLUDE="${OPUS_INCLUDE} "
  23634. if test "xopus/opus.h" = "x" ; then # no header, assume found
  23635. OPUS_HEADER_FOUND="1"
  23636. else # check for the header
  23637. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23638. CPPFLAGS="${CPPFLAGS} ${OPUS_INCLUDE}"
  23639. ac_fn_c_check_header_mongrel "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default"
  23640. if test "x$ac_cv_header_opus_opus_h" = xyes; then :
  23641. OPUS_HEADER_FOUND=1
  23642. else
  23643. OPUS_HEADER_FOUND=0
  23644. fi
  23645. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23646. fi
  23647. if test "x${OPUS_HEADER_FOUND}" = "x0" ; then
  23648. OPUS_LIB=""
  23649. OPUS_INCLUDE=""
  23650. else
  23651. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23652. OPUS_LIB=""
  23653. fi
  23654. PBX_OPUS=1
  23655. cat >>confdefs.h <<_ACEOF
  23656. #define HAVE_OPUS 1
  23657. _ACEOF
  23658. fi
  23659. fi
  23660. fi
  23661. if test "${USE_PWLIB}" != "no"; then
  23662. if test -n "${PWLIB_DIR}"; then
  23663. PWLIBDIR="${PWLIB_DIR}"
  23664. fi
  23665. PWLIB_INCDIR=
  23666. PWLIB_LIBDIR=
  23667. ac_ext=cpp
  23668. ac_cpp='$CXXCPP $CPPFLAGS'
  23669. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23670. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23671. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23672. if test "${PWLIBDIR:-unset}" != "unset" ; then
  23673. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  23674. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  23675. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23676. HAS_PWLIB=1
  23677. fi
  23678. fi
  23679. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  23680. if test "${OPENH323DIR:-unset}" != "unset"; then
  23681. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  23682. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  23683. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23684. HAS_PWLIB=1
  23685. fi
  23686. fi
  23687. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23688. PWLIBDIR="${OPENH323DIR}/../pwlib"
  23689. else
  23690. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  23691. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  23692. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23693. HAS_PWLIB=1
  23694. fi
  23695. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23696. PWLIBDIR="${HOME}/pwlib"
  23697. else
  23698. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  23699. if test "x$ac_cv_header__usr_local_include_ptlib_h" = xyes; then :
  23700. HAS_PWLIB=1
  23701. fi
  23702. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23703. # Extract the first word of "ptlib-config", so it can be a program name with args.
  23704. set dummy ptlib-config; ac_word=$2
  23705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23706. $as_echo_n "checking for $ac_word... " >&6; }
  23707. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  23708. $as_echo_n "(cached) " >&6
  23709. else
  23710. case $PTLIB_CONFIG in
  23711. [\\/]* | ?:[\\/]*)
  23712. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  23713. ;;
  23714. *)
  23715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23716. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  23717. do
  23718. IFS=$as_save_IFS
  23719. test -z "$as_dir" && as_dir=.
  23720. for ac_exec_ext in '' $ac_executable_extensions; do
  23721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23722. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23724. break 2
  23725. fi
  23726. done
  23727. done
  23728. IFS=$as_save_IFS
  23729. ;;
  23730. esac
  23731. fi
  23732. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  23733. if test -n "$PTLIB_CONFIG"; then
  23734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  23735. $as_echo "$PTLIB_CONFIG" >&6; }
  23736. else
  23737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23738. $as_echo "no" >&6; }
  23739. fi
  23740. PWLIB_INCDIR="/usr/local/include"
  23741. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  23742. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23743. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  23744. fi
  23745. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23746. if test "x$LIB64" != "x"; then
  23747. PWLIB_LIBDIR="/usr/local/lib64"
  23748. else
  23749. PWLIB_LIBDIR="/usr/local/lib"
  23750. fi
  23751. fi
  23752. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  23753. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  23754. else
  23755. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  23756. if test "x$ac_cv_header__usr_include_ptlib_h" = xyes; then :
  23757. HAS_PWLIB=1
  23758. fi
  23759. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23760. # Extract the first word of "ptlib-config", so it can be a program name with args.
  23761. set dummy ptlib-config; ac_word=$2
  23762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23763. $as_echo_n "checking for $ac_word... " >&6; }
  23764. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  23765. $as_echo_n "(cached) " >&6
  23766. else
  23767. case $PTLIB_CONFIG in
  23768. [\\/]* | ?:[\\/]*)
  23769. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  23770. ;;
  23771. *)
  23772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23773. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  23774. do
  23775. IFS=$as_save_IFS
  23776. test -z "$as_dir" && as_dir=.
  23777. for ac_exec_ext in '' $ac_executable_extensions; do
  23778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23779. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23781. break 2
  23782. fi
  23783. done
  23784. done
  23785. IFS=$as_save_IFS
  23786. ;;
  23787. esac
  23788. fi
  23789. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  23790. if test -n "$PTLIB_CONFIG"; then
  23791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  23792. $as_echo "$PTLIB_CONFIG" >&6; }
  23793. else
  23794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23795. $as_echo "no" >&6; }
  23796. fi
  23797. PWLIB_INCDIR="/usr/include"
  23798. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  23799. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23800. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  23801. fi
  23802. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23803. if test "x$LIB64" != "x"; then
  23804. PWLIB_LIBDIR="/usr/lib64"
  23805. else
  23806. PWLIB_LIBDIR="/usr/lib"
  23807. fi
  23808. fi
  23809. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  23810. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  23811. fi
  23812. fi
  23813. fi
  23814. fi
  23815. fi
  23816. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  23817. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  23818. # exit
  23819. #fi
  23820. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23821. if test "${PWLIBDIR:-unset}" = "unset" ; then
  23822. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  23823. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  23824. else
  23825. echo "Cannot find ptlib-config - please install and try again"
  23826. exit
  23827. fi
  23828. fi
  23829. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  23830. PWLIBDIR="/usr/share/pwlib"
  23831. PWLIB_INCDIR="/usr/include"
  23832. if test "x$LIB64" != "x"; then
  23833. PWLIB_LIBDIR="/usr/lib64"
  23834. else
  23835. PWLIB_LIBDIR="/usr/lib"
  23836. fi
  23837. fi
  23838. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  23839. PWLIBDIR="/usr/local/share/pwlib"
  23840. PWLIB_INCDIR="/usr/local/include"
  23841. if test "x$LIB64" != "x"; then
  23842. PWLIB_LIBDIR="/usr/local/lib64"
  23843. else
  23844. PWLIB_LIBDIR="/usr/local/lib"
  23845. fi
  23846. fi
  23847. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  23848. PWLIB_INCDIR="${PWLIBDIR}/include"
  23849. fi
  23850. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23851. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  23852. fi
  23853. fi
  23854. ac_ext=c
  23855. ac_cpp='$CPP $CPPFLAGS'
  23856. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23857. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23858. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23859. if test "xP[WT]LIB_VERSION" != "x"; then
  23860. VNAME="P[WT]LIB_VERSION"
  23861. else
  23862. VNAME="PWLIB_VERSION"
  23863. fi
  23864. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23865. PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  23866. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  23867. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  23868. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  23869. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  23870. PWLIB_REQ=$((1*10000+9*100+2))
  23871. if test "x" = "x"; then
  23872. PWLIB_MAX=9999999
  23873. else
  23874. PWLIB_MAX=$((*10000+*100+))
  23875. fi
  23876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  23877. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  23878. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  23879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23880. $as_echo "no" >&6; }
  23881. unset HAS_PWLIB
  23882. else
  23883. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  23884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23885. $as_echo "no" >&6; }
  23886. unset HAS_PWLIB
  23887. else
  23888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23889. $as_echo "yes" >&6; }
  23890. fi
  23891. fi
  23892. fi
  23893. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23894. PWLIB_OSTYPE=
  23895. case "$host_os" in
  23896. linux*) PWLIB_OSTYPE=linux ;
  23897. ;;
  23898. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  23899. ;;
  23900. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  23901. ENDLDLIBS="-lossaudio" ;
  23902. ;;
  23903. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  23904. ENDLDLIBS="-lossaudio" ;
  23905. ;;
  23906. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  23907. ;;
  23908. darwin* ) PWLIB_OSTYPE=Darwin ;
  23909. ;;
  23910. beos*) PWLIB_OSTYPE=beos ;
  23911. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  23912. ;;
  23913. cygwin*) PWLIB_OSTYPE=cygwin ;
  23914. ;;
  23915. mingw*) PWLIB_OSTYPE=mingw ;
  23916. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  23917. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  23918. ;;
  23919. * ) PWLIB_OSTYPE="$host_os" ;
  23920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  23921. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  23922. ;;
  23923. esac
  23924. PWLIB_MACHTYPE=
  23925. case "$host_cpu" in
  23926. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  23927. ;;
  23928. x86_64) PWLIB_MACHTYPE=x86_64 ;
  23929. P_64BIT=1 ;
  23930. LIB64=1 ;
  23931. ;;
  23932. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  23933. P_64BIT=1 ;
  23934. ;;
  23935. sparc ) PWLIB_MACHTYPE=sparc ;
  23936. ;;
  23937. powerpc ) PWLIB_MACHTYPE=ppc ;
  23938. ;;
  23939. ppc ) PWLIB_MACHTYPE=ppc ;
  23940. ;;
  23941. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  23942. P_64BIT=1 ;
  23943. LIB64=1 ;
  23944. ;;
  23945. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  23946. P_64BIT=1 ;
  23947. LIB64=1 ;
  23948. ;;
  23949. ia64) PWLIB_MACHTYPE=ia64 ;
  23950. P_64BIT=1 ;
  23951. ;;
  23952. s390x) PWLIB_MACHTYPE=s390x ;
  23953. P_64BIT=1 ;
  23954. LIB64=1 ;
  23955. ;;
  23956. s390) PWLIB_MACHTYPE=s390 ;
  23957. ;;
  23958. * ) PWLIB_MACHTYPE="$host_cpu";
  23959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  23960. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  23961. esac
  23962. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  23963. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  23964. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  23966. $as_echo_n "checking PWLib installation validity... " >&6; }
  23967. saved_cppflags="${CPPFLAGS}"
  23968. saved_libs="${LIBS}"
  23969. if test "${PWLIB_LIB:-unset}" != "unset"; then
  23970. LIBS="${LIBS} ${PWLIB_LIB} "
  23971. else
  23972. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  23973. fi
  23974. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  23975. ac_ext=cpp
  23976. ac_cpp='$CXXCPP $CPPFLAGS'
  23977. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23978. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23979. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23981. /* end confdefs.h. */
  23982. #include "ptlib.h"
  23983. int
  23984. main ()
  23985. {
  23986. int q = (int) PTime::IsDaylightSavings();
  23987. ;
  23988. return 0;
  23989. }
  23990. _ACEOF
  23991. if ac_fn_cxx_try_link "$LINENO"; then :
  23992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23993. $as_echo "yes" >&6; }
  23994. ac_cv_lib_PWLIB="yes"
  23995. else
  23996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23997. $as_echo "no" >&6; }
  23998. ac_cv_lib_PWLIB="no"
  23999. fi
  24000. rm -f core conftest.err conftest.$ac_objext \
  24001. conftest$ac_exeext conftest.$ac_ext
  24002. ac_ext=c
  24003. ac_cpp='$CPP $CPPFLAGS'
  24004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24007. LIBS="${saved_libs}"
  24008. CPPFLAGS="${saved_cppflags}"
  24009. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  24010. if test "${PWLIB_LIB:-undef}" = "undef"; then
  24011. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  24012. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  24013. else
  24014. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  24015. fi
  24016. fi
  24017. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  24018. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  24019. fi
  24020. PBX_PWLIB=1
  24021. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  24022. fi
  24023. fi
  24024. fi
  24025. fi
  24026. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  24027. if test -n "${OPENH323_DIR}"; then
  24028. OPENH323DIR="${OPENH323_DIR}"
  24029. fi
  24030. OPENH323_INCDIR=
  24031. OPENH323_LIBDIR=
  24032. ac_ext=cpp
  24033. ac_cpp='$CXXCPP $CPPFLAGS'
  24034. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24035. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24036. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24037. if test "${OPENH323DIR:-unset}" != "unset" ; then
  24038. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  24039. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  24040. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24041. HAS_OPENH323=1
  24042. fi
  24043. fi
  24044. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  24045. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  24046. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  24047. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24048. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  24049. fi
  24050. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  24051. OPENH323DIR="${PWLIBDIR}/../openh323"
  24052. saved_cppflags="${CPPFLAGS}"
  24053. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  24054. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  24055. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  24056. "
  24057. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24058. else
  24059. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  24060. fi
  24061. CPPFLAGS="${saved_cppflags}"
  24062. else
  24063. saved_cppflags="${CPPFLAGS}"
  24064. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  24065. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  24066. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  24067. "
  24068. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24069. HAS_OPENH323=1
  24070. fi
  24071. CPPFLAGS="${saved_cppflags}"
  24072. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  24073. OPENH323DIR="${HOME}/openh323"
  24074. else
  24075. saved_cppflags="${CPPFLAGS}"
  24076. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  24077. 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>
  24078. "
  24079. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = xyes; then :
  24080. HAS_OPENH323=1
  24081. fi
  24082. CPPFLAGS="${saved_cppflags}"
  24083. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  24084. OPENH323DIR="/usr/local/share/openh323"
  24085. OPENH323_INCDIR="/usr/local/include/openh323"
  24086. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  24087. OPENH323_LIBDIR="/usr/local/lib64"
  24088. else
  24089. OPENH323_LIBDIR="/usr/local/lib"
  24090. fi
  24091. else
  24092. saved_cppflags="${CPPFLAGS}"
  24093. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  24094. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  24095. "
  24096. if test "x$ac_cv_header__usr_include_openh323_h323_h" = xyes; then :
  24097. HAS_OPENH323=1
  24098. fi
  24099. CPPFLAGS="${saved_cppflags}"
  24100. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  24101. OPENH323DIR="/usr/share/openh323"
  24102. OPENH323_INCDIR="/usr/include/openh323"
  24103. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  24104. OPENH323_LIBDIR="/usr/lib64"
  24105. else
  24106. OPENH323_LIBDIR="/usr/lib"
  24107. fi
  24108. fi
  24109. fi
  24110. fi
  24111. fi
  24112. fi
  24113. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  24114. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  24115. OPENH323_INCDIR="${OPENH323DIR}/include"
  24116. fi
  24117. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  24118. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  24119. fi
  24120. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  24121. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  24122. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  24123. fi
  24124. ac_ext=c
  24125. ac_cpp='$CPP $CPPFLAGS'
  24126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24129. if test "x" != "x"; then
  24130. VNAME=""
  24131. else
  24132. VNAME="OPENH323_VERSION"
  24133. fi
  24134. if test "${HAS_OPENH323:-unset}" != "unset"; then
  24135. OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  24136. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  24137. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  24138. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  24139. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  24140. OPENH323_REQ=$((1*10000+17*100+3))
  24141. if test "x0" = "x"; then
  24142. OPENH323_MAX=9999999
  24143. else
  24144. OPENH323_MAX=$((1*10000+19*100+0))
  24145. fi
  24146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  24147. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  24148. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  24149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24150. $as_echo "no" >&6; }
  24151. unset HAS_OPENH323
  24152. else
  24153. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  24154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24155. $as_echo "no" >&6; }
  24156. unset HAS_OPENH323
  24157. else
  24158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24159. $as_echo "yes" >&6; }
  24160. fi
  24161. fi
  24162. fi
  24163. if test "${HAS_OPENH323:-unset}" != "unset"; then
  24164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  24165. $as_echo_n "checking OpenH323 build option... " >&6; }
  24166. OPENH323_SUFFIX=
  24167. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  24168. for pfx in $prefixes; do
  24169. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  24170. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  24171. if test -z "$files"; then
  24172. # check the default location
  24173. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  24174. fi
  24175. libfile=
  24176. if test -n "$files"; then
  24177. for f in $files; do
  24178. if test -f $f -a ! -L $f; then
  24179. libfile=`basename $f`
  24180. break;
  24181. fi
  24182. done
  24183. fi
  24184. if test -n "$libfile"; then
  24185. OPENH323_PREFIX=$pfx
  24186. break;
  24187. fi
  24188. done
  24189. if test "${libfile:-unset}" != "unset"; then
  24190. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  24191. fi
  24192. case "${OPENH323_SUFFIX}" in
  24193. n)
  24194. OPENH323_BUILD="notrace";;
  24195. r)
  24196. OPENH323_BUILD="opt";;
  24197. d)
  24198. OPENH323_BUILD="debug";;
  24199. *)
  24200. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  24201. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  24202. if test "x$notrace" = "x"; then
  24203. notrace="0"
  24204. fi
  24205. if test "$notrace" -ne 0; then
  24206. OPENH323_BUILD="notrace"
  24207. else
  24208. OPENH323_BUILD="opt"
  24209. fi
  24210. OPENH323_LIB="-l${OPENH323_PREFIX}"
  24211. else
  24212. OPENH323_BUILD="notrace"
  24213. fi
  24214. ;;
  24215. esac
  24216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  24217. $as_echo "${OPENH323_BUILD}" >&6; }
  24218. fi
  24219. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  24220. if test "${HAS_OPENH323:-unset}" != "unset"; then
  24221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  24222. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  24223. saved_cppflags="${CPPFLAGS}"
  24224. saved_libs="${LIBS}"
  24225. if test "${OPENH323_LIB:-unset}" != "unset"; then
  24226. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  24227. else
  24228. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  24229. fi
  24230. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  24231. ac_ext=cpp
  24232. ac_cpp='$CXXCPP $CPPFLAGS'
  24233. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24234. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24237. /* end confdefs.h. */
  24238. #include "ptlib.h"
  24239. #include "h323.h"
  24240. #include "h323ep.h"
  24241. int
  24242. main ()
  24243. {
  24244. H323EndPoint ep = H323EndPoint();
  24245. ;
  24246. return 0;
  24247. }
  24248. _ACEOF
  24249. if ac_fn_cxx_try_link "$LINENO"; then :
  24250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24251. $as_echo "yes" >&6; }
  24252. ac_cv_lib_OPENH323="yes"
  24253. else
  24254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24255. $as_echo "no" >&6; }
  24256. ac_cv_lib_OPENH323="no"
  24257. fi
  24258. rm -f core conftest.err conftest.$ac_objext \
  24259. conftest$ac_exeext conftest.$ac_ext
  24260. ac_ext=c
  24261. ac_cpp='$CPP $CPPFLAGS'
  24262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24265. LIBS="${saved_libs}"
  24266. CPPFLAGS="${saved_cppflags}"
  24267. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  24268. if test "${OPENH323_LIB:-undef}" = "undef"; then
  24269. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  24270. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  24271. else
  24272. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  24273. fi
  24274. fi
  24275. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  24276. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  24277. fi
  24278. PBX_OPENH323=1
  24279. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  24280. fi
  24281. fi
  24282. fi
  24283. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  24284. pbxlibdir=""
  24285. # if --with-LUA=DIR has been specified, use it.
  24286. if test "x${LUA_DIR}" != "x"; then
  24287. if test -d ${LUA_DIR}/lib; then
  24288. pbxlibdir="-L${LUA_DIR}/lib"
  24289. else
  24290. pbxlibdir="-L${LUA_DIR}"
  24291. fi
  24292. fi
  24293. pbxfuncname="luaL_newstate"
  24294. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24295. AST_LUA_FOUND=yes
  24296. else
  24297. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24298. CFLAGS="${CFLAGS} "
  24299. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.2_${pbxfuncname}" | $as_tr_sh`
  24300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.2" >&5
  24301. $as_echo_n "checking for ${pbxfuncname} in -llua5.2... " >&6; }
  24302. if eval \${$as_ac_Lib+:} false; then :
  24303. $as_echo_n "(cached) " >&6
  24304. else
  24305. ac_check_lib_save_LIBS=$LIBS
  24306. LIBS="-llua5.2 ${pbxlibdir} -lm $LIBS"
  24307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24308. /* end confdefs.h. */
  24309. /* Override any GCC internal prototype to avoid an error.
  24310. Use char because int might match the return type of a GCC
  24311. builtin and then its argument prototype would still apply. */
  24312. #ifdef __cplusplus
  24313. extern "C"
  24314. #endif
  24315. char ${pbxfuncname} ();
  24316. int
  24317. main ()
  24318. {
  24319. return ${pbxfuncname} ();
  24320. ;
  24321. return 0;
  24322. }
  24323. _ACEOF
  24324. if ac_fn_c_try_link "$LINENO"; then :
  24325. eval "$as_ac_Lib=yes"
  24326. else
  24327. eval "$as_ac_Lib=no"
  24328. fi
  24329. rm -f core conftest.err conftest.$ac_objext \
  24330. conftest$ac_exeext conftest.$ac_ext
  24331. LIBS=$ac_check_lib_save_LIBS
  24332. fi
  24333. eval ac_res=\$$as_ac_Lib
  24334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24335. $as_echo "$ac_res" >&6; }
  24336. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24337. AST_LUA_FOUND=yes
  24338. else
  24339. AST_LUA_FOUND=no
  24340. fi
  24341. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24342. fi
  24343. # now check for the header.
  24344. if test "${AST_LUA_FOUND}" = "yes"; then
  24345. LUA_LIB="${pbxlibdir} -llua5.2 -lm"
  24346. # if --with-LUA=DIR has been specified, use it.
  24347. if test "x${LUA_DIR}" != "x"; then
  24348. LUA_INCLUDE="-I${LUA_DIR}/include"
  24349. fi
  24350. LUA_INCLUDE="${LUA_INCLUDE} "
  24351. if test "xlua5.2/lua.h" = "x" ; then # no header, assume found
  24352. LUA_HEADER_FOUND="1"
  24353. else # check for the header
  24354. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24355. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  24356. ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
  24357. if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
  24358. LUA_HEADER_FOUND=1
  24359. else
  24360. LUA_HEADER_FOUND=0
  24361. fi
  24362. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24363. fi
  24364. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  24365. LUA_LIB=""
  24366. LUA_INCLUDE=""
  24367. else
  24368. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24369. LUA_LIB=""
  24370. fi
  24371. PBX_LUA=1
  24372. cat >>confdefs.h <<_ACEOF
  24373. #define HAVE_LUA 1
  24374. _ACEOF
  24375. fi
  24376. fi
  24377. fi
  24378. if test "x${PBX_LUA}" = "x1" ; then
  24379. if test x"${LUA_DIR}" = x; then
  24380. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.2"
  24381. else
  24382. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.2"
  24383. fi
  24384. fi
  24385. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  24386. pbxlibdir=""
  24387. # if --with-LUA=DIR has been specified, use it.
  24388. if test "x${LUA_DIR}" != "x"; then
  24389. if test -d ${LUA_DIR}/lib; then
  24390. pbxlibdir="-L${LUA_DIR}/lib"
  24391. else
  24392. pbxlibdir="-L${LUA_DIR}"
  24393. fi
  24394. fi
  24395. pbxfuncname="luaL_newstate"
  24396. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24397. AST_LUA_FOUND=yes
  24398. else
  24399. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24400. CFLAGS="${CFLAGS} "
  24401. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  24402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
  24403. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  24404. if eval \${$as_ac_Lib+:} false; then :
  24405. $as_echo_n "(cached) " >&6
  24406. else
  24407. ac_check_lib_save_LIBS=$LIBS
  24408. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  24409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24410. /* end confdefs.h. */
  24411. /* Override any GCC internal prototype to avoid an error.
  24412. Use char because int might match the return type of a GCC
  24413. builtin and then its argument prototype would still apply. */
  24414. #ifdef __cplusplus
  24415. extern "C"
  24416. #endif
  24417. char ${pbxfuncname} ();
  24418. int
  24419. main ()
  24420. {
  24421. return ${pbxfuncname} ();
  24422. ;
  24423. return 0;
  24424. }
  24425. _ACEOF
  24426. if ac_fn_c_try_link "$LINENO"; then :
  24427. eval "$as_ac_Lib=yes"
  24428. else
  24429. eval "$as_ac_Lib=no"
  24430. fi
  24431. rm -f core conftest.err conftest.$ac_objext \
  24432. conftest$ac_exeext conftest.$ac_ext
  24433. LIBS=$ac_check_lib_save_LIBS
  24434. fi
  24435. eval ac_res=\$$as_ac_Lib
  24436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24437. $as_echo "$ac_res" >&6; }
  24438. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24439. AST_LUA_FOUND=yes
  24440. else
  24441. AST_LUA_FOUND=no
  24442. fi
  24443. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24444. fi
  24445. # now check for the header.
  24446. if test "${AST_LUA_FOUND}" = "yes"; then
  24447. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  24448. # if --with-LUA=DIR has been specified, use it.
  24449. if test "x${LUA_DIR}" != "x"; then
  24450. LUA_INCLUDE="-I${LUA_DIR}/include"
  24451. fi
  24452. LUA_INCLUDE="${LUA_INCLUDE} "
  24453. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  24454. LUA_HEADER_FOUND="1"
  24455. else # check for the header
  24456. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24457. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  24458. ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  24459. if test "x$ac_cv_header_lua5_1_lua_h" = xyes; then :
  24460. LUA_HEADER_FOUND=1
  24461. else
  24462. LUA_HEADER_FOUND=0
  24463. fi
  24464. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24465. fi
  24466. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  24467. LUA_LIB=""
  24468. LUA_INCLUDE=""
  24469. else
  24470. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24471. LUA_LIB=""
  24472. fi
  24473. PBX_LUA=1
  24474. cat >>confdefs.h <<_ACEOF
  24475. #define HAVE_LUA 1
  24476. _ACEOF
  24477. fi
  24478. fi
  24479. fi
  24480. if test "x${PBX_LUA}" = "x1" ; then
  24481. if test x"${LUA_DIR}" = x; then
  24482. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  24483. else
  24484. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  24485. fi
  24486. fi
  24487. # Some distributions (like SuSE) remove the 5.1 suffix.
  24488. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  24489. pbxlibdir=""
  24490. # if --with-LUA=DIR has been specified, use it.
  24491. if test "x${LUA_DIR}" != "x"; then
  24492. if test -d ${LUA_DIR}/lib; then
  24493. pbxlibdir="-L${LUA_DIR}/lib"
  24494. else
  24495. pbxlibdir="-L${LUA_DIR}"
  24496. fi
  24497. fi
  24498. pbxfuncname="luaL_openlib"
  24499. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24500. AST_LUA_FOUND=yes
  24501. else
  24502. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24503. CFLAGS="${CFLAGS} "
  24504. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  24505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
  24506. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  24507. if eval \${$as_ac_Lib+:} false; then :
  24508. $as_echo_n "(cached) " >&6
  24509. else
  24510. ac_check_lib_save_LIBS=$LIBS
  24511. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  24512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24513. /* end confdefs.h. */
  24514. /* Override any GCC internal prototype to avoid an error.
  24515. Use char because int might match the return type of a GCC
  24516. builtin and then its argument prototype would still apply. */
  24517. #ifdef __cplusplus
  24518. extern "C"
  24519. #endif
  24520. char ${pbxfuncname} ();
  24521. int
  24522. main ()
  24523. {
  24524. return ${pbxfuncname} ();
  24525. ;
  24526. return 0;
  24527. }
  24528. _ACEOF
  24529. if ac_fn_c_try_link "$LINENO"; then :
  24530. eval "$as_ac_Lib=yes"
  24531. else
  24532. eval "$as_ac_Lib=no"
  24533. fi
  24534. rm -f core conftest.err conftest.$ac_objext \
  24535. conftest$ac_exeext conftest.$ac_ext
  24536. LIBS=$ac_check_lib_save_LIBS
  24537. fi
  24538. eval ac_res=\$$as_ac_Lib
  24539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24540. $as_echo "$ac_res" >&6; }
  24541. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24542. AST_LUA_FOUND=yes
  24543. else
  24544. AST_LUA_FOUND=no
  24545. fi
  24546. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24547. fi
  24548. # now check for the header.
  24549. if test "${AST_LUA_FOUND}" = "yes"; then
  24550. LUA_LIB="${pbxlibdir} -llua -lm"
  24551. # if --with-LUA=DIR has been specified, use it.
  24552. if test "x${LUA_DIR}" != "x"; then
  24553. LUA_INCLUDE="-I${LUA_DIR}/include"
  24554. fi
  24555. LUA_INCLUDE="${LUA_INCLUDE} "
  24556. if test "xlua.h" = "x" ; then # no header, assume found
  24557. LUA_HEADER_FOUND="1"
  24558. else # check for the header
  24559. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24560. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  24561. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  24562. if test "x$ac_cv_header_lua_h" = xyes; then :
  24563. LUA_HEADER_FOUND=1
  24564. else
  24565. LUA_HEADER_FOUND=0
  24566. fi
  24567. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24568. fi
  24569. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  24570. LUA_LIB=""
  24571. LUA_INCLUDE=""
  24572. else
  24573. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24574. LUA_LIB=""
  24575. fi
  24576. PBX_LUA=1
  24577. cat >>confdefs.h <<_ACEOF
  24578. #define HAVE_LUA 1
  24579. _ACEOF
  24580. fi
  24581. fi
  24582. fi
  24583. # Accept either RADIUS client library, their APIs are fully compatible,
  24584. # just different header filenames and different SONAMEs
  24585. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  24586. pbxlibdir=""
  24587. # if --with-RADIUS=DIR has been specified, use it.
  24588. if test "x${RADIUS_DIR}" != "x"; then
  24589. if test -d ${RADIUS_DIR}/lib; then
  24590. pbxlibdir="-L${RADIUS_DIR}/lib"
  24591. else
  24592. pbxlibdir="-L${RADIUS_DIR}"
  24593. fi
  24594. fi
  24595. pbxfuncname="rc_read_config"
  24596. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24597. AST_RADIUS_FOUND=yes
  24598. else
  24599. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24600. CFLAGS="${CFLAGS} "
  24601. as_ac_Lib=`$as_echo "ac_cv_lib_freeradius-client_${pbxfuncname}" | $as_tr_sh`
  24602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lfreeradius-client" >&5
  24603. $as_echo_n "checking for ${pbxfuncname} in -lfreeradius-client... " >&6; }
  24604. if eval \${$as_ac_Lib+:} false; then :
  24605. $as_echo_n "(cached) " >&6
  24606. else
  24607. ac_check_lib_save_LIBS=$LIBS
  24608. LIBS="-lfreeradius-client ${pbxlibdir} $LIBS"
  24609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24610. /* end confdefs.h. */
  24611. /* Override any GCC internal prototype to avoid an error.
  24612. Use char because int might match the return type of a GCC
  24613. builtin and then its argument prototype would still apply. */
  24614. #ifdef __cplusplus
  24615. extern "C"
  24616. #endif
  24617. char ${pbxfuncname} ();
  24618. int
  24619. main ()
  24620. {
  24621. return ${pbxfuncname} ();
  24622. ;
  24623. return 0;
  24624. }
  24625. _ACEOF
  24626. if ac_fn_c_try_link "$LINENO"; then :
  24627. eval "$as_ac_Lib=yes"
  24628. else
  24629. eval "$as_ac_Lib=no"
  24630. fi
  24631. rm -f core conftest.err conftest.$ac_objext \
  24632. conftest$ac_exeext conftest.$ac_ext
  24633. LIBS=$ac_check_lib_save_LIBS
  24634. fi
  24635. eval ac_res=\$$as_ac_Lib
  24636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24637. $as_echo "$ac_res" >&6; }
  24638. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24639. AST_RADIUS_FOUND=yes
  24640. else
  24641. AST_RADIUS_FOUND=no
  24642. fi
  24643. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24644. fi
  24645. # now check for the header.
  24646. if test "${AST_RADIUS_FOUND}" = "yes"; then
  24647. RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
  24648. # if --with-RADIUS=DIR has been specified, use it.
  24649. if test "x${RADIUS_DIR}" != "x"; then
  24650. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  24651. fi
  24652. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  24653. if test "xfreeradius-client.h" = "x" ; then # no header, assume found
  24654. RADIUS_HEADER_FOUND="1"
  24655. else # check for the header
  24656. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24657. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  24658. ac_fn_c_check_header_mongrel "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
  24659. if test "x$ac_cv_header_freeradius_client_h" = xyes; then :
  24660. RADIUS_HEADER_FOUND=1
  24661. else
  24662. RADIUS_HEADER_FOUND=0
  24663. fi
  24664. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24665. fi
  24666. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  24667. RADIUS_LIB=""
  24668. RADIUS_INCLUDE=""
  24669. else
  24670. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24671. RADIUS_LIB=""
  24672. fi
  24673. PBX_RADIUS=1
  24674. cat >>confdefs.h <<_ACEOF
  24675. #define HAVE_RADIUS 1
  24676. _ACEOF
  24677. fi
  24678. fi
  24679. fi
  24680. if test "x${PBX_RADIUS}" = "x1"; then
  24681. $as_echo "#define FREERADIUS_CLIENT /**/" >>confdefs.h
  24682. else
  24683. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  24684. pbxlibdir=""
  24685. # if --with-RADIUS=DIR has been specified, use it.
  24686. if test "x${RADIUS_DIR}" != "x"; then
  24687. if test -d ${RADIUS_DIR}/lib; then
  24688. pbxlibdir="-L${RADIUS_DIR}/lib"
  24689. else
  24690. pbxlibdir="-L${RADIUS_DIR}"
  24691. fi
  24692. fi
  24693. pbxfuncname="rc_read_config"
  24694. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24695. AST_RADIUS_FOUND=yes
  24696. else
  24697. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24698. CFLAGS="${CFLAGS} "
  24699. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  24700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  24701. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  24702. if eval \${$as_ac_Lib+:} false; then :
  24703. $as_echo_n "(cached) " >&6
  24704. else
  24705. ac_check_lib_save_LIBS=$LIBS
  24706. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  24707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24708. /* end confdefs.h. */
  24709. /* Override any GCC internal prototype to avoid an error.
  24710. Use char because int might match the return type of a GCC
  24711. builtin and then its argument prototype would still apply. */
  24712. #ifdef __cplusplus
  24713. extern "C"
  24714. #endif
  24715. char ${pbxfuncname} ();
  24716. int
  24717. main ()
  24718. {
  24719. return ${pbxfuncname} ();
  24720. ;
  24721. return 0;
  24722. }
  24723. _ACEOF
  24724. if ac_fn_c_try_link "$LINENO"; then :
  24725. eval "$as_ac_Lib=yes"
  24726. else
  24727. eval "$as_ac_Lib=no"
  24728. fi
  24729. rm -f core conftest.err conftest.$ac_objext \
  24730. conftest$ac_exeext conftest.$ac_ext
  24731. LIBS=$ac_check_lib_save_LIBS
  24732. fi
  24733. eval ac_res=\$$as_ac_Lib
  24734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24735. $as_echo "$ac_res" >&6; }
  24736. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24737. AST_RADIUS_FOUND=yes
  24738. else
  24739. AST_RADIUS_FOUND=no
  24740. fi
  24741. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24742. fi
  24743. # now check for the header.
  24744. if test "${AST_RADIUS_FOUND}" = "yes"; then
  24745. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  24746. # if --with-RADIUS=DIR has been specified, use it.
  24747. if test "x${RADIUS_DIR}" != "x"; then
  24748. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  24749. fi
  24750. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  24751. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  24752. RADIUS_HEADER_FOUND="1"
  24753. else # check for the header
  24754. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24755. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  24756. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  24757. if test "x$ac_cv_header_radiusclient_ng_h" = xyes; then :
  24758. RADIUS_HEADER_FOUND=1
  24759. else
  24760. RADIUS_HEADER_FOUND=0
  24761. fi
  24762. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24763. fi
  24764. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  24765. RADIUS_LIB=""
  24766. RADIUS_INCLUDE=""
  24767. else
  24768. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24769. RADIUS_LIB=""
  24770. fi
  24771. PBX_RADIUS=1
  24772. cat >>confdefs.h <<_ACEOF
  24773. #define HAVE_RADIUS 1
  24774. _ACEOF
  24775. fi
  24776. fi
  24777. fi
  24778. fi
  24779. if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
  24780. pbxlibdir=""
  24781. # if --with-COROSYNC=DIR has been specified, use it.
  24782. if test "x${COROSYNC_DIR}" != "x"; then
  24783. if test -d ${COROSYNC_DIR}/lib; then
  24784. pbxlibdir="-L${COROSYNC_DIR}/lib"
  24785. else
  24786. pbxlibdir="-L${COROSYNC_DIR}"
  24787. fi
  24788. fi
  24789. pbxfuncname="cpg_join"
  24790. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24791. AST_COROSYNC_FOUND=yes
  24792. else
  24793. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24794. CFLAGS="${CFLAGS} "
  24795. as_ac_Lib=`$as_echo "ac_cv_lib_cpg_${pbxfuncname}" | $as_tr_sh`
  24796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcpg" >&5
  24797. $as_echo_n "checking for ${pbxfuncname} in -lcpg... " >&6; }
  24798. if eval \${$as_ac_Lib+:} false; then :
  24799. $as_echo_n "(cached) " >&6
  24800. else
  24801. ac_check_lib_save_LIBS=$LIBS
  24802. LIBS="-lcpg ${pbxlibdir} -lcfg $LIBS"
  24803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24804. /* end confdefs.h. */
  24805. /* Override any GCC internal prototype to avoid an error.
  24806. Use char because int might match the return type of a GCC
  24807. builtin and then its argument prototype would still apply. */
  24808. #ifdef __cplusplus
  24809. extern "C"
  24810. #endif
  24811. char ${pbxfuncname} ();
  24812. int
  24813. main ()
  24814. {
  24815. return ${pbxfuncname} ();
  24816. ;
  24817. return 0;
  24818. }
  24819. _ACEOF
  24820. if ac_fn_c_try_link "$LINENO"; then :
  24821. eval "$as_ac_Lib=yes"
  24822. else
  24823. eval "$as_ac_Lib=no"
  24824. fi
  24825. rm -f core conftest.err conftest.$ac_objext \
  24826. conftest$ac_exeext conftest.$ac_ext
  24827. LIBS=$ac_check_lib_save_LIBS
  24828. fi
  24829. eval ac_res=\$$as_ac_Lib
  24830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24831. $as_echo "$ac_res" >&6; }
  24832. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24833. AST_COROSYNC_FOUND=yes
  24834. else
  24835. AST_COROSYNC_FOUND=no
  24836. fi
  24837. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24838. fi
  24839. # now check for the header.
  24840. if test "${AST_COROSYNC_FOUND}" = "yes"; then
  24841. COROSYNC_LIB="${pbxlibdir} -lcpg -lcfg"
  24842. # if --with-COROSYNC=DIR has been specified, use it.
  24843. if test "x${COROSYNC_DIR}" != "x"; then
  24844. COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
  24845. fi
  24846. COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
  24847. if test "xcorosync/cpg.h" = "x" ; then # no header, assume found
  24848. COROSYNC_HEADER_FOUND="1"
  24849. else # check for the header
  24850. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24851. CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
  24852. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
  24853. if test "x$ac_cv_header_corosync_cpg_h" = xyes; then :
  24854. COROSYNC_HEADER_FOUND=1
  24855. else
  24856. COROSYNC_HEADER_FOUND=0
  24857. fi
  24858. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24859. fi
  24860. if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
  24861. COROSYNC_LIB=""
  24862. COROSYNC_INCLUDE=""
  24863. else
  24864. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24865. COROSYNC_LIB=""
  24866. fi
  24867. PBX_COROSYNC=1
  24868. cat >>confdefs.h <<_ACEOF
  24869. #define HAVE_COROSYNC 1
  24870. _ACEOF
  24871. fi
  24872. fi
  24873. fi
  24874. if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
  24875. pbxlibdir=""
  24876. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  24877. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  24878. if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
  24879. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
  24880. else
  24881. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
  24882. fi
  24883. fi
  24884. pbxfuncname="corosync_cfg_state_track"
  24885. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24886. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  24887. else
  24888. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24889. CFLAGS="${CFLAGS} "
  24890. as_ac_Lib=`$as_echo "ac_cv_lib_cfg_${pbxfuncname}" | $as_tr_sh`
  24891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcfg" >&5
  24892. $as_echo_n "checking for ${pbxfuncname} in -lcfg... " >&6; }
  24893. if eval \${$as_ac_Lib+:} false; then :
  24894. $as_echo_n "(cached) " >&6
  24895. else
  24896. ac_check_lib_save_LIBS=$LIBS
  24897. LIBS="-lcfg ${pbxlibdir} -lcfg $LIBS"
  24898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24899. /* end confdefs.h. */
  24900. /* Override any GCC internal prototype to avoid an error.
  24901. Use char because int might match the return type of a GCC
  24902. builtin and then its argument prototype would still apply. */
  24903. #ifdef __cplusplus
  24904. extern "C"
  24905. #endif
  24906. char ${pbxfuncname} ();
  24907. int
  24908. main ()
  24909. {
  24910. return ${pbxfuncname} ();
  24911. ;
  24912. return 0;
  24913. }
  24914. _ACEOF
  24915. if ac_fn_c_try_link "$LINENO"; then :
  24916. eval "$as_ac_Lib=yes"
  24917. else
  24918. eval "$as_ac_Lib=no"
  24919. fi
  24920. rm -f core conftest.err conftest.$ac_objext \
  24921. conftest$ac_exeext conftest.$ac_ext
  24922. LIBS=$ac_check_lib_save_LIBS
  24923. fi
  24924. eval ac_res=\$$as_ac_Lib
  24925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24926. $as_echo "$ac_res" >&6; }
  24927. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24928. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  24929. else
  24930. AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
  24931. fi
  24932. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24933. fi
  24934. # now check for the header.
  24935. if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
  24936. COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
  24937. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  24938. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  24939. COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
  24940. fi
  24941. COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
  24942. if test "xcorosync/cfg.h" = "x" ; then # no header, assume found
  24943. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND="1"
  24944. else # check for the header
  24945. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24946. CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
  24947. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
  24948. if test "x$ac_cv_header_corosync_cfg_h" = xyes; then :
  24949. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
  24950. else
  24951. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
  24952. fi
  24953. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24954. fi
  24955. if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
  24956. COROSYNC_CFG_STATE_TRACK_LIB=""
  24957. COROSYNC_CFG_STATE_TRACK_INCLUDE=""
  24958. else
  24959. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24960. COROSYNC_CFG_STATE_TRACK_LIB=""
  24961. fi
  24962. PBX_COROSYNC_CFG_STATE_TRACK=1
  24963. cat >>confdefs.h <<_ACEOF
  24964. #define HAVE_COROSYNC_CFG_STATE_TRACK 1
  24965. _ACEOF
  24966. fi
  24967. fi
  24968. fi
  24969. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  24970. pbxlibdir=""
  24971. # if --with-SPEEX=DIR has been specified, use it.
  24972. if test "x${SPEEX_DIR}" != "x"; then
  24973. if test -d ${SPEEX_DIR}/lib; then
  24974. pbxlibdir="-L${SPEEX_DIR}/lib"
  24975. else
  24976. pbxlibdir="-L${SPEEX_DIR}"
  24977. fi
  24978. fi
  24979. pbxfuncname="speex_encode"
  24980. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24981. AST_SPEEX_FOUND=yes
  24982. else
  24983. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24984. CFLAGS="${CFLAGS} "
  24985. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  24986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  24987. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  24988. if eval \${$as_ac_Lib+:} false; then :
  24989. $as_echo_n "(cached) " >&6
  24990. else
  24991. ac_check_lib_save_LIBS=$LIBS
  24992. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  24993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24994. /* end confdefs.h. */
  24995. /* Override any GCC internal prototype to avoid an error.
  24996. Use char because int might match the return type of a GCC
  24997. builtin and then its argument prototype would still apply. */
  24998. #ifdef __cplusplus
  24999. extern "C"
  25000. #endif
  25001. char ${pbxfuncname} ();
  25002. int
  25003. main ()
  25004. {
  25005. return ${pbxfuncname} ();
  25006. ;
  25007. return 0;
  25008. }
  25009. _ACEOF
  25010. if ac_fn_c_try_link "$LINENO"; then :
  25011. eval "$as_ac_Lib=yes"
  25012. else
  25013. eval "$as_ac_Lib=no"
  25014. fi
  25015. rm -f core conftest.err conftest.$ac_objext \
  25016. conftest$ac_exeext conftest.$ac_ext
  25017. LIBS=$ac_check_lib_save_LIBS
  25018. fi
  25019. eval ac_res=\$$as_ac_Lib
  25020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25021. $as_echo "$ac_res" >&6; }
  25022. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25023. AST_SPEEX_FOUND=yes
  25024. else
  25025. AST_SPEEX_FOUND=no
  25026. fi
  25027. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25028. fi
  25029. # now check for the header.
  25030. if test "${AST_SPEEX_FOUND}" = "yes"; then
  25031. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  25032. # if --with-SPEEX=DIR has been specified, use it.
  25033. if test "x${SPEEX_DIR}" != "x"; then
  25034. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  25035. fi
  25036. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  25037. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  25038. SPEEX_HEADER_FOUND="1"
  25039. else # check for the header
  25040. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25041. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  25042. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  25043. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  25044. SPEEX_HEADER_FOUND=1
  25045. else
  25046. SPEEX_HEADER_FOUND=0
  25047. fi
  25048. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25049. fi
  25050. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  25051. SPEEX_LIB=""
  25052. SPEEX_INCLUDE=""
  25053. else
  25054. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25055. SPEEX_LIB=""
  25056. fi
  25057. PBX_SPEEX=1
  25058. cat >>confdefs.h <<_ACEOF
  25059. #define HAVE_SPEEX 1
  25060. _ACEOF
  25061. fi
  25062. fi
  25063. fi
  25064. # See if the main speex library contains the preprocess functions
  25065. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  25066. pbxlibdir=""
  25067. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  25068. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  25069. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  25070. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  25071. else
  25072. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  25073. fi
  25074. fi
  25075. pbxfuncname="speex_preprocess_ctl"
  25076. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25077. AST_SPEEX_PREPROCESS_FOUND=yes
  25078. else
  25079. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25080. CFLAGS="${CFLAGS} "
  25081. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  25082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  25083. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  25084. if eval \${$as_ac_Lib+:} false; then :
  25085. $as_echo_n "(cached) " >&6
  25086. else
  25087. ac_check_lib_save_LIBS=$LIBS
  25088. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  25089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25090. /* end confdefs.h. */
  25091. /* Override any GCC internal prototype to avoid an error.
  25092. Use char because int might match the return type of a GCC
  25093. builtin and then its argument prototype would still apply. */
  25094. #ifdef __cplusplus
  25095. extern "C"
  25096. #endif
  25097. char ${pbxfuncname} ();
  25098. int
  25099. main ()
  25100. {
  25101. return ${pbxfuncname} ();
  25102. ;
  25103. return 0;
  25104. }
  25105. _ACEOF
  25106. if ac_fn_c_try_link "$LINENO"; then :
  25107. eval "$as_ac_Lib=yes"
  25108. else
  25109. eval "$as_ac_Lib=no"
  25110. fi
  25111. rm -f core conftest.err conftest.$ac_objext \
  25112. conftest$ac_exeext conftest.$ac_ext
  25113. LIBS=$ac_check_lib_save_LIBS
  25114. fi
  25115. eval ac_res=\$$as_ac_Lib
  25116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25117. $as_echo "$ac_res" >&6; }
  25118. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25119. AST_SPEEX_PREPROCESS_FOUND=yes
  25120. else
  25121. AST_SPEEX_PREPROCESS_FOUND=no
  25122. fi
  25123. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25124. fi
  25125. # now check for the header.
  25126. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  25127. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  25128. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  25129. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  25130. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  25131. fi
  25132. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  25133. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  25134. SPEEX_PREPROCESS_HEADER_FOUND="1"
  25135. else # check for the header
  25136. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25137. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  25138. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  25139. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  25140. SPEEX_PREPROCESS_HEADER_FOUND=1
  25141. else
  25142. SPEEX_PREPROCESS_HEADER_FOUND=0
  25143. fi
  25144. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25145. fi
  25146. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  25147. SPEEX_PREPROCESS_LIB=""
  25148. SPEEX_PREPROCESS_INCLUDE=""
  25149. else
  25150. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25151. SPEEX_PREPROCESS_LIB=""
  25152. fi
  25153. PBX_SPEEX_PREPROCESS=1
  25154. cat >>confdefs.h <<_ACEOF
  25155. #define HAVE_SPEEX_PREPROCESS 1
  25156. _ACEOF
  25157. fi
  25158. fi
  25159. fi
  25160. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  25161. PBX_SPEEX_PREPROCESS=1
  25162. fi
  25163. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  25164. pbxlibdir=""
  25165. # if --with-SPEEXDSP=DIR has been specified, use it.
  25166. if test "x${SPEEXDSP_DIR}" != "x"; then
  25167. if test -d ${SPEEXDSP_DIR}/lib; then
  25168. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  25169. else
  25170. pbxlibdir="-L${SPEEXDSP_DIR}"
  25171. fi
  25172. fi
  25173. pbxfuncname="speex_preprocess_ctl"
  25174. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25175. AST_SPEEXDSP_FOUND=yes
  25176. else
  25177. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25178. CFLAGS="${CFLAGS} "
  25179. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  25180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
  25181. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  25182. if eval \${$as_ac_Lib+:} false; then :
  25183. $as_echo_n "(cached) " >&6
  25184. else
  25185. ac_check_lib_save_LIBS=$LIBS
  25186. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  25187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25188. /* end confdefs.h. */
  25189. /* Override any GCC internal prototype to avoid an error.
  25190. Use char because int might match the return type of a GCC
  25191. builtin and then its argument prototype would still apply. */
  25192. #ifdef __cplusplus
  25193. extern "C"
  25194. #endif
  25195. char ${pbxfuncname} ();
  25196. int
  25197. main ()
  25198. {
  25199. return ${pbxfuncname} ();
  25200. ;
  25201. return 0;
  25202. }
  25203. _ACEOF
  25204. if ac_fn_c_try_link "$LINENO"; then :
  25205. eval "$as_ac_Lib=yes"
  25206. else
  25207. eval "$as_ac_Lib=no"
  25208. fi
  25209. rm -f core conftest.err conftest.$ac_objext \
  25210. conftest$ac_exeext conftest.$ac_ext
  25211. LIBS=$ac_check_lib_save_LIBS
  25212. fi
  25213. eval ac_res=\$$as_ac_Lib
  25214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25215. $as_echo "$ac_res" >&6; }
  25216. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25217. AST_SPEEXDSP_FOUND=yes
  25218. else
  25219. AST_SPEEXDSP_FOUND=no
  25220. fi
  25221. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25222. fi
  25223. # now check for the header.
  25224. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  25225. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  25226. # if --with-SPEEXDSP=DIR has been specified, use it.
  25227. if test "x${SPEEXDSP_DIR}" != "x"; then
  25228. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  25229. fi
  25230. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  25231. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  25232. SPEEXDSP_HEADER_FOUND="1"
  25233. else # check for the header
  25234. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25235. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  25236. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  25237. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  25238. SPEEXDSP_HEADER_FOUND=1
  25239. else
  25240. SPEEXDSP_HEADER_FOUND=0
  25241. fi
  25242. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25243. fi
  25244. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  25245. SPEEXDSP_LIB=""
  25246. SPEEXDSP_INCLUDE=""
  25247. else
  25248. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25249. SPEEXDSP_LIB=""
  25250. fi
  25251. PBX_SPEEXDSP=1
  25252. cat >>confdefs.h <<_ACEOF
  25253. #define HAVE_SPEEXDSP 1
  25254. _ACEOF
  25255. fi
  25256. fi
  25257. fi
  25258. if test "${PBX_SPEEXDSP}" = 1; then
  25259. PBX_SPEEX_PREPROCESS=1
  25260. fi
  25261. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  25262. pbxlibdir=""
  25263. # if --with-SQLITE=DIR has been specified, use it.
  25264. if test "x${SQLITE_DIR}" != "x"; then
  25265. if test -d ${SQLITE_DIR}/lib; then
  25266. pbxlibdir="-L${SQLITE_DIR}/lib"
  25267. else
  25268. pbxlibdir="-L${SQLITE_DIR}"
  25269. fi
  25270. fi
  25271. pbxfuncname="sqlite_exec"
  25272. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25273. AST_SQLITE_FOUND=yes
  25274. else
  25275. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25276. CFLAGS="${CFLAGS} "
  25277. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  25278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
  25279. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  25280. if eval \${$as_ac_Lib+:} false; then :
  25281. $as_echo_n "(cached) " >&6
  25282. else
  25283. ac_check_lib_save_LIBS=$LIBS
  25284. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  25285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25286. /* end confdefs.h. */
  25287. /* Override any GCC internal prototype to avoid an error.
  25288. Use char because int might match the return type of a GCC
  25289. builtin and then its argument prototype would still apply. */
  25290. #ifdef __cplusplus
  25291. extern "C"
  25292. #endif
  25293. char ${pbxfuncname} ();
  25294. int
  25295. main ()
  25296. {
  25297. return ${pbxfuncname} ();
  25298. ;
  25299. return 0;
  25300. }
  25301. _ACEOF
  25302. if ac_fn_c_try_link "$LINENO"; then :
  25303. eval "$as_ac_Lib=yes"
  25304. else
  25305. eval "$as_ac_Lib=no"
  25306. fi
  25307. rm -f core conftest.err conftest.$ac_objext \
  25308. conftest$ac_exeext conftest.$ac_ext
  25309. LIBS=$ac_check_lib_save_LIBS
  25310. fi
  25311. eval ac_res=\$$as_ac_Lib
  25312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25313. $as_echo "$ac_res" >&6; }
  25314. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25315. AST_SQLITE_FOUND=yes
  25316. else
  25317. AST_SQLITE_FOUND=no
  25318. fi
  25319. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25320. fi
  25321. # now check for the header.
  25322. if test "${AST_SQLITE_FOUND}" = "yes"; then
  25323. SQLITE_LIB="${pbxlibdir} -lsqlite "
  25324. # if --with-SQLITE=DIR has been specified, use it.
  25325. if test "x${SQLITE_DIR}" != "x"; then
  25326. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  25327. fi
  25328. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  25329. if test "xsqlite.h" = "x" ; then # no header, assume found
  25330. SQLITE_HEADER_FOUND="1"
  25331. else # check for the header
  25332. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25333. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  25334. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  25335. if test "x$ac_cv_header_sqlite_h" = xyes; then :
  25336. SQLITE_HEADER_FOUND=1
  25337. else
  25338. SQLITE_HEADER_FOUND=0
  25339. fi
  25340. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25341. fi
  25342. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  25343. SQLITE_LIB=""
  25344. SQLITE_INCLUDE=""
  25345. else
  25346. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25347. SQLITE_LIB=""
  25348. fi
  25349. PBX_SQLITE=1
  25350. cat >>confdefs.h <<_ACEOF
  25351. #define HAVE_SQLITE 1
  25352. _ACEOF
  25353. fi
  25354. fi
  25355. fi
  25356. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  25357. pbxlibdir=""
  25358. # if --with-SQLITE3=DIR has been specified, use it.
  25359. if test "x${SQLITE3_DIR}" != "x"; then
  25360. if test -d ${SQLITE3_DIR}/lib; then
  25361. pbxlibdir="-L${SQLITE3_DIR}/lib"
  25362. else
  25363. pbxlibdir="-L${SQLITE3_DIR}"
  25364. fi
  25365. fi
  25366. pbxfuncname="sqlite3_open"
  25367. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25368. AST_SQLITE3_FOUND=yes
  25369. else
  25370. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25371. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  25372. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  25373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
  25374. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  25375. if eval \${$as_ac_Lib+:} false; then :
  25376. $as_echo_n "(cached) " >&6
  25377. else
  25378. ac_check_lib_save_LIBS=$LIBS
  25379. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  25380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25381. /* end confdefs.h. */
  25382. /* Override any GCC internal prototype to avoid an error.
  25383. Use char because int might match the return type of a GCC
  25384. builtin and then its argument prototype would still apply. */
  25385. #ifdef __cplusplus
  25386. extern "C"
  25387. #endif
  25388. char ${pbxfuncname} ();
  25389. int
  25390. main ()
  25391. {
  25392. return ${pbxfuncname} ();
  25393. ;
  25394. return 0;
  25395. }
  25396. _ACEOF
  25397. if ac_fn_c_try_link "$LINENO"; then :
  25398. eval "$as_ac_Lib=yes"
  25399. else
  25400. eval "$as_ac_Lib=no"
  25401. fi
  25402. rm -f core conftest.err conftest.$ac_objext \
  25403. conftest$ac_exeext conftest.$ac_ext
  25404. LIBS=$ac_check_lib_save_LIBS
  25405. fi
  25406. eval ac_res=\$$as_ac_Lib
  25407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25408. $as_echo "$ac_res" >&6; }
  25409. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25410. AST_SQLITE3_FOUND=yes
  25411. else
  25412. AST_SQLITE3_FOUND=no
  25413. fi
  25414. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25415. fi
  25416. # now check for the header.
  25417. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  25418. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  25419. # if --with-SQLITE3=DIR has been specified, use it.
  25420. if test "x${SQLITE3_DIR}" != "x"; then
  25421. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  25422. fi
  25423. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  25424. if test "xsqlite3.h" = "x" ; then # no header, assume found
  25425. SQLITE3_HEADER_FOUND="1"
  25426. else # check for the header
  25427. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25428. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  25429. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  25430. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  25431. SQLITE3_HEADER_FOUND=1
  25432. else
  25433. SQLITE3_HEADER_FOUND=0
  25434. fi
  25435. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25436. fi
  25437. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  25438. SQLITE3_LIB=""
  25439. SQLITE3_INCLUDE=""
  25440. else
  25441. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25442. SQLITE3_LIB=""
  25443. fi
  25444. PBX_SQLITE3=1
  25445. cat >>confdefs.h <<_ACEOF
  25446. #define HAVE_SQLITE3 1
  25447. _ACEOF
  25448. fi
  25449. fi
  25450. fi
  25451. if test "${PBX_SQLITE3}" != 1; then
  25452. as_fn_error $? "*** Asterisk now uses SQLite3 for the internal Asterisk database." "$LINENO" 5
  25453. as_fn_error $? "*** Please install the SQLite3 development package." "$LINENO" 5
  25454. exit 1
  25455. fi
  25456. # Find crypt support
  25457. # * -lcrypt on *NIX
  25458. # * in libsystem on OS X
  25459. if test "x${PBX_LIBCRYPT}" != "x1" -a "${USE_LIBCRYPT}" != "no"; then
  25460. pbxlibdir=""
  25461. # if --with-LIBCRYPT=DIR has been specified, use it.
  25462. if test "x${LIBCRYPT_DIR}" != "x"; then
  25463. if test -d ${LIBCRYPT_DIR}/lib; then
  25464. pbxlibdir="-L${LIBCRYPT_DIR}/lib"
  25465. else
  25466. pbxlibdir="-L${LIBCRYPT_DIR}"
  25467. fi
  25468. fi
  25469. pbxfuncname="crypt"
  25470. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25471. AST_LIBCRYPT_FOUND=yes
  25472. else
  25473. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25474. CFLAGS="${CFLAGS} "
  25475. as_ac_Lib=`$as_echo "ac_cv_lib_crypt_${pbxfuncname}" | $as_tr_sh`
  25476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypt" >&5
  25477. $as_echo_n "checking for ${pbxfuncname} in -lcrypt... " >&6; }
  25478. if eval \${$as_ac_Lib+:} false; then :
  25479. $as_echo_n "(cached) " >&6
  25480. else
  25481. ac_check_lib_save_LIBS=$LIBS
  25482. LIBS="-lcrypt ${pbxlibdir} $LIBS"
  25483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25484. /* end confdefs.h. */
  25485. /* Override any GCC internal prototype to avoid an error.
  25486. Use char because int might match the return type of a GCC
  25487. builtin and then its argument prototype would still apply. */
  25488. #ifdef __cplusplus
  25489. extern "C"
  25490. #endif
  25491. char ${pbxfuncname} ();
  25492. int
  25493. main ()
  25494. {
  25495. return ${pbxfuncname} ();
  25496. ;
  25497. return 0;
  25498. }
  25499. _ACEOF
  25500. if ac_fn_c_try_link "$LINENO"; then :
  25501. eval "$as_ac_Lib=yes"
  25502. else
  25503. eval "$as_ac_Lib=no"
  25504. fi
  25505. rm -f core conftest.err conftest.$ac_objext \
  25506. conftest$ac_exeext conftest.$ac_ext
  25507. LIBS=$ac_check_lib_save_LIBS
  25508. fi
  25509. eval ac_res=\$$as_ac_Lib
  25510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25511. $as_echo "$ac_res" >&6; }
  25512. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25513. AST_LIBCRYPT_FOUND=yes
  25514. else
  25515. AST_LIBCRYPT_FOUND=no
  25516. fi
  25517. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25518. fi
  25519. # now check for the header.
  25520. if test "${AST_LIBCRYPT_FOUND}" = "yes"; then
  25521. LIBCRYPT_LIB="${pbxlibdir} -lcrypt "
  25522. # if --with-LIBCRYPT=DIR has been specified, use it.
  25523. if test "x${LIBCRYPT_DIR}" != "x"; then
  25524. LIBCRYPT_INCLUDE="-I${LIBCRYPT_DIR}/include"
  25525. fi
  25526. LIBCRYPT_INCLUDE="${LIBCRYPT_INCLUDE} "
  25527. if test "xcrypt.h" = "x" ; then # no header, assume found
  25528. LIBCRYPT_HEADER_FOUND="1"
  25529. else # check for the header
  25530. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25531. CPPFLAGS="${CPPFLAGS} ${LIBCRYPT_INCLUDE}"
  25532. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  25533. if test "x$ac_cv_header_crypt_h" = xyes; then :
  25534. LIBCRYPT_HEADER_FOUND=1
  25535. else
  25536. LIBCRYPT_HEADER_FOUND=0
  25537. fi
  25538. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25539. fi
  25540. if test "x${LIBCRYPT_HEADER_FOUND}" = "x0" ; then
  25541. LIBCRYPT_LIB=""
  25542. LIBCRYPT_INCLUDE=""
  25543. else
  25544. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25545. LIBCRYPT_LIB=""
  25546. fi
  25547. PBX_LIBCRYPT=1
  25548. cat >>confdefs.h <<_ACEOF
  25549. #define HAVE_LIBCRYPT 1
  25550. _ACEOF
  25551. fi
  25552. fi
  25553. fi
  25554. ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
  25555. if test "x$ac_cv_func_crypt" = xyes; then :
  25556. SYSCRYPT=true
  25557. else
  25558. SYSCRYPT=""
  25559. fi
  25560. if test "x$LIBCRYPT_LIB" != "x" ; then
  25561. CRYPT_LIB="$LIBCRYPT_LIB"
  25562. CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
  25563. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  25564. elif test "x$SYSCRYPT" != "x" ; then
  25565. CRYPT_LIB=""
  25566. CRYPT_INCLUDE=""
  25567. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  25568. fi
  25569. # Find crypt_r support
  25570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
  25571. $as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
  25572. if ${ac_cv_lib_crypt_crypt_r+:} false; then :
  25573. $as_echo_n "(cached) " >&6
  25574. else
  25575. ac_check_lib_save_LIBS=$LIBS
  25576. LIBS="-lcrypt $LIBS"
  25577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25578. /* end confdefs.h. */
  25579. /* Override any GCC internal prototype to avoid an error.
  25580. Use char because int might match the return type of a GCC
  25581. builtin and then its argument prototype would still apply. */
  25582. #ifdef __cplusplus
  25583. extern "C"
  25584. #endif
  25585. char crypt_r ();
  25586. int
  25587. main ()
  25588. {
  25589. return crypt_r ();
  25590. ;
  25591. return 0;
  25592. }
  25593. _ACEOF
  25594. if ac_fn_c_try_link "$LINENO"; then :
  25595. ac_cv_lib_crypt_crypt_r=yes
  25596. else
  25597. ac_cv_lib_crypt_crypt_r=no
  25598. fi
  25599. rm -f core conftest.err conftest.$ac_objext \
  25600. conftest$ac_exeext conftest.$ac_ext
  25601. LIBS=$ac_check_lib_save_LIBS
  25602. fi
  25603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
  25604. $as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
  25605. if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then :
  25606. $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
  25607. fi
  25608. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  25609. pbxlibdir=""
  25610. # if --with-CRYPTO=DIR has been specified, use it.
  25611. if test "x${CRYPTO_DIR}" != "x"; then
  25612. if test -d ${CRYPTO_DIR}/lib; then
  25613. pbxlibdir="-L${CRYPTO_DIR}/lib"
  25614. else
  25615. pbxlibdir="-L${CRYPTO_DIR}"
  25616. fi
  25617. fi
  25618. pbxfuncname="AES_encrypt"
  25619. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25620. AST_CRYPTO_FOUND=yes
  25621. else
  25622. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25623. CFLAGS="${CFLAGS} "
  25624. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  25625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
  25626. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  25627. if eval \${$as_ac_Lib+:} false; then :
  25628. $as_echo_n "(cached) " >&6
  25629. else
  25630. ac_check_lib_save_LIBS=$LIBS
  25631. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  25632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25633. /* end confdefs.h. */
  25634. /* Override any GCC internal prototype to avoid an error.
  25635. Use char because int might match the return type of a GCC
  25636. builtin and then its argument prototype would still apply. */
  25637. #ifdef __cplusplus
  25638. extern "C"
  25639. #endif
  25640. char ${pbxfuncname} ();
  25641. int
  25642. main ()
  25643. {
  25644. return ${pbxfuncname} ();
  25645. ;
  25646. return 0;
  25647. }
  25648. _ACEOF
  25649. if ac_fn_c_try_link "$LINENO"; then :
  25650. eval "$as_ac_Lib=yes"
  25651. else
  25652. eval "$as_ac_Lib=no"
  25653. fi
  25654. rm -f core conftest.err conftest.$ac_objext \
  25655. conftest$ac_exeext conftest.$ac_ext
  25656. LIBS=$ac_check_lib_save_LIBS
  25657. fi
  25658. eval ac_res=\$$as_ac_Lib
  25659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25660. $as_echo "$ac_res" >&6; }
  25661. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25662. AST_CRYPTO_FOUND=yes
  25663. else
  25664. AST_CRYPTO_FOUND=no
  25665. fi
  25666. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25667. fi
  25668. # now check for the header.
  25669. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  25670. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  25671. # if --with-CRYPTO=DIR has been specified, use it.
  25672. if test "x${CRYPTO_DIR}" != "x"; then
  25673. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  25674. fi
  25675. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  25676. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  25677. CRYPTO_HEADER_FOUND="1"
  25678. else # check for the header
  25679. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25680. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  25681. ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  25682. if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
  25683. CRYPTO_HEADER_FOUND=1
  25684. else
  25685. CRYPTO_HEADER_FOUND=0
  25686. fi
  25687. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25688. fi
  25689. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  25690. CRYPTO_LIB=""
  25691. CRYPTO_INCLUDE=""
  25692. else
  25693. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25694. CRYPTO_LIB=""
  25695. fi
  25696. PBX_CRYPTO=1
  25697. cat >>confdefs.h <<_ACEOF
  25698. #define HAVE_CRYPTO 1
  25699. _ACEOF
  25700. fi
  25701. fi
  25702. fi
  25703. if test "$PBX_CRYPTO" = "1";
  25704. then
  25705. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  25706. pbxlibdir=""
  25707. # if --with-OPENSSL=DIR has been specified, use it.
  25708. if test "x${OPENSSL_DIR}" != "x"; then
  25709. if test -d ${OPENSSL_DIR}/lib; then
  25710. pbxlibdir="-L${OPENSSL_DIR}/lib"
  25711. else
  25712. pbxlibdir="-L${OPENSSL_DIR}"
  25713. fi
  25714. fi
  25715. pbxfuncname="SSL_connect"
  25716. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25717. AST_OPENSSL_FOUND=yes
  25718. else
  25719. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25720. CFLAGS="${CFLAGS} "
  25721. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  25722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  25723. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  25724. if eval \${$as_ac_Lib+:} false; then :
  25725. $as_echo_n "(cached) " >&6
  25726. else
  25727. ac_check_lib_save_LIBS=$LIBS
  25728. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  25729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25730. /* end confdefs.h. */
  25731. /* Override any GCC internal prototype to avoid an error.
  25732. Use char because int might match the return type of a GCC
  25733. builtin and then its argument prototype would still apply. */
  25734. #ifdef __cplusplus
  25735. extern "C"
  25736. #endif
  25737. char ${pbxfuncname} ();
  25738. int
  25739. main ()
  25740. {
  25741. return ${pbxfuncname} ();
  25742. ;
  25743. return 0;
  25744. }
  25745. _ACEOF
  25746. if ac_fn_c_try_link "$LINENO"; then :
  25747. eval "$as_ac_Lib=yes"
  25748. else
  25749. eval "$as_ac_Lib=no"
  25750. fi
  25751. rm -f core conftest.err conftest.$ac_objext \
  25752. conftest$ac_exeext conftest.$ac_ext
  25753. LIBS=$ac_check_lib_save_LIBS
  25754. fi
  25755. eval ac_res=\$$as_ac_Lib
  25756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25757. $as_echo "$ac_res" >&6; }
  25758. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25759. AST_OPENSSL_FOUND=yes
  25760. else
  25761. AST_OPENSSL_FOUND=no
  25762. fi
  25763. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25764. fi
  25765. # now check for the header.
  25766. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  25767. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  25768. # if --with-OPENSSL=DIR has been specified, use it.
  25769. if test "x${OPENSSL_DIR}" != "x"; then
  25770. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  25771. fi
  25772. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  25773. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  25774. OPENSSL_HEADER_FOUND="1"
  25775. else # check for the header
  25776. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25777. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  25778. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  25779. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  25780. OPENSSL_HEADER_FOUND=1
  25781. else
  25782. OPENSSL_HEADER_FOUND=0
  25783. fi
  25784. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25785. fi
  25786. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  25787. OPENSSL_LIB=""
  25788. OPENSSL_INCLUDE=""
  25789. else
  25790. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25791. OPENSSL_LIB=""
  25792. fi
  25793. PBX_OPENSSL=1
  25794. cat >>confdefs.h <<_ACEOF
  25795. #define HAVE_OPENSSL 1
  25796. _ACEOF
  25797. fi
  25798. fi
  25799. fi
  25800. fi
  25801. if test "$PBX_OPENSSL" = "1";
  25802. then
  25803. # if OSPTK has not been checked and is not excluded
  25804. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  25805. # if --with-osptk=DIR has been specified, use it.
  25806. if test "x${OSPTK_DIR}" != "x"; then
  25807. osptk_cflags="-I${OSPTK_DIR}/include"
  25808. osptk_ldflags="-L${OSPTK_DIR}/lib"
  25809. else
  25810. osptk_cflags=""
  25811. osptk_ldflags=""
  25812. fi
  25813. # check for the header
  25814. osptk_saved_cppflags="${CPPFLAGS}"
  25815. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  25816. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  25817. if test "x$ac_cv_header_osp_osp_h" = xyes; then :
  25818. osptk_header_found=yes
  25819. else
  25820. osptk_header_found=no
  25821. fi
  25822. CPPFLAGS="${osptk_saved_cppflags}"
  25823. # check for the library
  25824. if test "${osptk_header_found}" = "yes"; then
  25825. osptk_extralibs="-lssl -lcrypto"
  25826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
  25827. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  25828. if ${ac_cv_lib_osptk_OSPPInit+:} false; then :
  25829. $as_echo_n "(cached) " >&6
  25830. else
  25831. ac_check_lib_save_LIBS=$LIBS
  25832. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  25833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25834. /* end confdefs.h. */
  25835. /* Override any GCC internal prototype to avoid an error.
  25836. Use char because int might match the return type of a GCC
  25837. builtin and then its argument prototype would still apply. */
  25838. #ifdef __cplusplus
  25839. extern "C"
  25840. #endif
  25841. char OSPPInit ();
  25842. int
  25843. main ()
  25844. {
  25845. return OSPPInit ();
  25846. ;
  25847. return 0;
  25848. }
  25849. _ACEOF
  25850. if ac_fn_c_try_link "$LINENO"; then :
  25851. ac_cv_lib_osptk_OSPPInit=yes
  25852. else
  25853. ac_cv_lib_osptk_OSPPInit=no
  25854. fi
  25855. rm -f core conftest.err conftest.$ac_objext \
  25856. conftest$ac_exeext conftest.$ac_ext
  25857. LIBS=$ac_check_lib_save_LIBS
  25858. fi
  25859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPInit" >&5
  25860. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  25861. if test "x$ac_cv_lib_osptk_OSPPInit" = xyes; then :
  25862. osptk_library_found=yes
  25863. else
  25864. osptk_library_found=no
  25865. fi
  25866. # check OSP Toolkit version
  25867. if test "${osptk_library_found}" = "yes"; then
  25868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  25869. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  25870. osptk_saved_cppflags="${CPPFLAGS}"
  25871. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  25872. if test "$cross_compiling" = yes; then :
  25873. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25875. as_fn_error $? "cannot run test program while cross compiling
  25876. See \`config.log' for more details" "$LINENO" 5; }
  25877. else
  25878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25879. /* end confdefs.h. */
  25880. #include <osp/osp.h>
  25881. int main(void) {
  25882. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  25883. int req = 4 * 10000 + 0 * 100 + 0;
  25884. return (ver < req) ? 1 : 0;
  25885. }
  25886. _ACEOF
  25887. if ac_fn_c_try_run "$LINENO"; then :
  25888. osptk_compatible=yes
  25889. else
  25890. osptk_compatible=no
  25891. fi
  25892. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25893. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25894. fi
  25895. CPPFLAGS="${osptk_saved_cppflags}"
  25896. if test "${osptk_compatible}" = "yes"; then
  25897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25898. $as_echo "yes" >&6; }
  25899. PBX_OSPTK=1
  25900. OSPTK_INCLUDE="${osptk_cflags}"
  25901. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  25902. cat >>confdefs.h <<_ACEOF
  25903. #define HAVE_OSPTK 1
  25904. _ACEOF
  25905. else
  25906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25907. $as_echo "no" >&6; }
  25908. fi
  25909. fi
  25910. fi
  25911. fi
  25912. if test "x${PBX_OPENSSL_SRTP}" != "x1" -a "${USE_OPENSSL_SRTP}" != "no"; then
  25913. pbxlibdir=""
  25914. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  25915. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  25916. if test -d ${OPENSSL_SRTP_DIR}/lib; then
  25917. pbxlibdir="-L${OPENSSL_SRTP_DIR}/lib"
  25918. else
  25919. pbxlibdir="-L${OPENSSL_SRTP_DIR}"
  25920. fi
  25921. fi
  25922. pbxfuncname="SSL_CTX_set_tlsext_use_srtp"
  25923. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25924. AST_OPENSSL_SRTP_FOUND=yes
  25925. else
  25926. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25927. CFLAGS="${CFLAGS} "
  25928. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  25929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  25930. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  25931. if eval \${$as_ac_Lib+:} false; then :
  25932. $as_echo_n "(cached) " >&6
  25933. else
  25934. ac_check_lib_save_LIBS=$LIBS
  25935. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  25936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25937. /* end confdefs.h. */
  25938. /* Override any GCC internal prototype to avoid an error.
  25939. Use char because int might match the return type of a GCC
  25940. builtin and then its argument prototype would still apply. */
  25941. #ifdef __cplusplus
  25942. extern "C"
  25943. #endif
  25944. char ${pbxfuncname} ();
  25945. int
  25946. main ()
  25947. {
  25948. return ${pbxfuncname} ();
  25949. ;
  25950. return 0;
  25951. }
  25952. _ACEOF
  25953. if ac_fn_c_try_link "$LINENO"; then :
  25954. eval "$as_ac_Lib=yes"
  25955. else
  25956. eval "$as_ac_Lib=no"
  25957. fi
  25958. rm -f core conftest.err conftest.$ac_objext \
  25959. conftest$ac_exeext conftest.$ac_ext
  25960. LIBS=$ac_check_lib_save_LIBS
  25961. fi
  25962. eval ac_res=\$$as_ac_Lib
  25963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25964. $as_echo "$ac_res" >&6; }
  25965. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25966. AST_OPENSSL_SRTP_FOUND=yes
  25967. else
  25968. AST_OPENSSL_SRTP_FOUND=no
  25969. fi
  25970. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25971. fi
  25972. # now check for the header.
  25973. if test "${AST_OPENSSL_SRTP_FOUND}" = "yes"; then
  25974. OPENSSL_SRTP_LIB="${pbxlibdir} -lssl -lcrypto"
  25975. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  25976. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  25977. OPENSSL_SRTP_INCLUDE="-I${OPENSSL_SRTP_DIR}/include"
  25978. fi
  25979. OPENSSL_SRTP_INCLUDE="${OPENSSL_SRTP_INCLUDE} "
  25980. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  25981. OPENSSL_SRTP_HEADER_FOUND="1"
  25982. else # check for the header
  25983. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25984. CPPFLAGS="${CPPFLAGS} ${OPENSSL_SRTP_INCLUDE}"
  25985. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  25986. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  25987. OPENSSL_SRTP_HEADER_FOUND=1
  25988. else
  25989. OPENSSL_SRTP_HEADER_FOUND=0
  25990. fi
  25991. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25992. fi
  25993. if test "x${OPENSSL_SRTP_HEADER_FOUND}" = "x0" ; then
  25994. OPENSSL_SRTP_LIB=""
  25995. OPENSSL_SRTP_INCLUDE=""
  25996. else
  25997. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25998. OPENSSL_SRTP_LIB=""
  25999. fi
  26000. PBX_OPENSSL_SRTP=1
  26001. cat >>confdefs.h <<_ACEOF
  26002. #define HAVE_OPENSSL_SRTP 1
  26003. _ACEOF
  26004. fi
  26005. fi
  26006. fi
  26007. fi
  26008. if test "$PBX_OPENSSL" = "1";
  26009. then
  26010. if test "x${PBX_OPENSSL_EC}" != "x1" -a "${USE_OPENSSL_EC}" != "no"; then
  26011. pbxlibdir=""
  26012. # if --with-OPENSSL_EC=DIR has been specified, use it.
  26013. if test "x${OPENSSL_EC_DIR}" != "x"; then
  26014. if test -d ${OPENSSL_EC_DIR}/lib; then
  26015. pbxlibdir="-L${OPENSSL_EC_DIR}/lib"
  26016. else
  26017. pbxlibdir="-L${OPENSSL_EC_DIR}"
  26018. fi
  26019. fi
  26020. pbxfuncname="EC_KEY_new_by_curve_name"
  26021. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26022. AST_OPENSSL_EC_FOUND=yes
  26023. else
  26024. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26025. CFLAGS="${CFLAGS} "
  26026. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  26027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  26028. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  26029. if eval \${$as_ac_Lib+:} false; then :
  26030. $as_echo_n "(cached) " >&6
  26031. else
  26032. ac_check_lib_save_LIBS=$LIBS
  26033. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  26034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26035. /* end confdefs.h. */
  26036. /* Override any GCC internal prototype to avoid an error.
  26037. Use char because int might match the return type of a GCC
  26038. builtin and then its argument prototype would still apply. */
  26039. #ifdef __cplusplus
  26040. extern "C"
  26041. #endif
  26042. char ${pbxfuncname} ();
  26043. int
  26044. main ()
  26045. {
  26046. return ${pbxfuncname} ();
  26047. ;
  26048. return 0;
  26049. }
  26050. _ACEOF
  26051. if ac_fn_c_try_link "$LINENO"; then :
  26052. eval "$as_ac_Lib=yes"
  26053. else
  26054. eval "$as_ac_Lib=no"
  26055. fi
  26056. rm -f core conftest.err conftest.$ac_objext \
  26057. conftest$ac_exeext conftest.$ac_ext
  26058. LIBS=$ac_check_lib_save_LIBS
  26059. fi
  26060. eval ac_res=\$$as_ac_Lib
  26061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26062. $as_echo "$ac_res" >&6; }
  26063. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26064. AST_OPENSSL_EC_FOUND=yes
  26065. else
  26066. AST_OPENSSL_EC_FOUND=no
  26067. fi
  26068. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26069. fi
  26070. # now check for the header.
  26071. if test "${AST_OPENSSL_EC_FOUND}" = "yes"; then
  26072. OPENSSL_EC_LIB="${pbxlibdir} -lssl -lcrypto"
  26073. # if --with-OPENSSL_EC=DIR has been specified, use it.
  26074. if test "x${OPENSSL_EC_DIR}" != "x"; then
  26075. OPENSSL_EC_INCLUDE="-I${OPENSSL_EC_DIR}/include"
  26076. fi
  26077. OPENSSL_EC_INCLUDE="${OPENSSL_EC_INCLUDE} "
  26078. if test "xopenssl/ec.h" = "x" ; then # no header, assume found
  26079. OPENSSL_EC_HEADER_FOUND="1"
  26080. else # check for the header
  26081. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26082. CPPFLAGS="${CPPFLAGS} ${OPENSSL_EC_INCLUDE}"
  26083. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default"
  26084. if test "x$ac_cv_header_openssl_ec_h" = xyes; then :
  26085. OPENSSL_EC_HEADER_FOUND=1
  26086. else
  26087. OPENSSL_EC_HEADER_FOUND=0
  26088. fi
  26089. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26090. fi
  26091. if test "x${OPENSSL_EC_HEADER_FOUND}" = "x0" ; then
  26092. OPENSSL_EC_LIB=""
  26093. OPENSSL_EC_INCLUDE=""
  26094. else
  26095. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26096. OPENSSL_EC_LIB=""
  26097. fi
  26098. PBX_OPENSSL_EC=1
  26099. cat >>confdefs.h <<_ACEOF
  26100. #define HAVE_OPENSSL_EC 1
  26101. _ACEOF
  26102. fi
  26103. fi
  26104. fi
  26105. fi
  26106. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  26107. pbxlibdir=""
  26108. # if --with-SRTP=DIR has been specified, use it.
  26109. if test "x${SRTP_DIR}" != "x"; then
  26110. if test -d ${SRTP_DIR}/lib; then
  26111. pbxlibdir="-L${SRTP_DIR}/lib"
  26112. else
  26113. pbxlibdir="-L${SRTP_DIR}"
  26114. fi
  26115. fi
  26116. pbxfuncname="srtp_init"
  26117. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26118. AST_SRTP_FOUND=yes
  26119. else
  26120. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26121. CFLAGS="${CFLAGS} "
  26122. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  26123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  26124. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  26125. if eval \${$as_ac_Lib+:} false; then :
  26126. $as_echo_n "(cached) " >&6
  26127. else
  26128. ac_check_lib_save_LIBS=$LIBS
  26129. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  26130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26131. /* end confdefs.h. */
  26132. /* Override any GCC internal prototype to avoid an error.
  26133. Use char because int might match the return type of a GCC
  26134. builtin and then its argument prototype would still apply. */
  26135. #ifdef __cplusplus
  26136. extern "C"
  26137. #endif
  26138. char ${pbxfuncname} ();
  26139. int
  26140. main ()
  26141. {
  26142. return ${pbxfuncname} ();
  26143. ;
  26144. return 0;
  26145. }
  26146. _ACEOF
  26147. if ac_fn_c_try_link "$LINENO"; then :
  26148. eval "$as_ac_Lib=yes"
  26149. else
  26150. eval "$as_ac_Lib=no"
  26151. fi
  26152. rm -f core conftest.err conftest.$ac_objext \
  26153. conftest$ac_exeext conftest.$ac_ext
  26154. LIBS=$ac_check_lib_save_LIBS
  26155. fi
  26156. eval ac_res=\$$as_ac_Lib
  26157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26158. $as_echo "$ac_res" >&6; }
  26159. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26160. AST_SRTP_FOUND=yes
  26161. else
  26162. AST_SRTP_FOUND=no
  26163. fi
  26164. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26165. fi
  26166. # now check for the header.
  26167. if test "${AST_SRTP_FOUND}" = "yes"; then
  26168. SRTP_LIB="${pbxlibdir} -lsrtp "
  26169. # if --with-SRTP=DIR has been specified, use it.
  26170. if test "x${SRTP_DIR}" != "x"; then
  26171. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  26172. fi
  26173. SRTP_INCLUDE="${SRTP_INCLUDE} "
  26174. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  26175. SRTP_HEADER_FOUND="1"
  26176. else # check for the header
  26177. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26178. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  26179. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  26180. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  26181. SRTP_HEADER_FOUND=1
  26182. else
  26183. SRTP_HEADER_FOUND=0
  26184. fi
  26185. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26186. fi
  26187. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  26188. SRTP_LIB=""
  26189. SRTP_INCLUDE=""
  26190. else
  26191. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26192. SRTP_LIB=""
  26193. fi
  26194. PBX_SRTP=1
  26195. cat >>confdefs.h <<_ACEOF
  26196. #define HAVE_SRTP 1
  26197. _ACEOF
  26198. fi
  26199. fi
  26200. fi
  26201. if test "$PBX_SRTP" = "1";
  26202. then
  26203. saved_libs="${LIBS}"
  26204. saved_ldflags="${LDFLAGS}"
  26205. saved_cflags="${CFLAGS}"
  26206. LIBS="${LIBS} ${SRTP_LIB}"
  26207. LDFLAGS="${LDFLAGS} -shared -fPIC"
  26208. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  26209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  26210. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  26211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26212. /* end confdefs.h. */
  26213. #include <srtp/srtp.h>
  26214. int
  26215. main ()
  26216. {
  26217. srtp_init();
  26218. ;
  26219. return 0;
  26220. }
  26221. _ACEOF
  26222. if ac_fn_c_try_link "$LINENO"; then :
  26223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26224. $as_echo "yes" >&6; }
  26225. else
  26226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26227. $as_echo "no" >&6; }
  26228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  26229. $as_echo "$as_me: WARNING: ***" >&2;}
  26230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
  26231. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  26232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  26233. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  26234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  26235. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  26236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
  26237. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  26238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp" >&5
  26239. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  26240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  26241. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  26242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  26243. $as_echo "$as_me: WARNING: ***" >&2;}
  26244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  26245. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  26246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  26247. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  26248. exit 1
  26249. fi
  26250. rm -f core conftest.err conftest.$ac_objext \
  26251. conftest$ac_exeext conftest.$ac_ext
  26252. LIBS="${saved_libs}"
  26253. LDFLAGS="${saved_ldflags}"
  26254. CFLAGS="${saved_cflags}"
  26255. fi
  26256. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  26257. pbxlibdir=""
  26258. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  26259. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  26260. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  26261. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  26262. else
  26263. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  26264. fi
  26265. fi
  26266. pbxfuncname="srtp_shutdown"
  26267. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26268. AST_SRTP_SHUTDOWN_FOUND=yes
  26269. else
  26270. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26271. CFLAGS="${CFLAGS} "
  26272. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  26273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  26274. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  26275. if eval \${$as_ac_Lib+:} false; then :
  26276. $as_echo_n "(cached) " >&6
  26277. else
  26278. ac_check_lib_save_LIBS=$LIBS
  26279. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  26280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26281. /* end confdefs.h. */
  26282. /* Override any GCC internal prototype to avoid an error.
  26283. Use char because int might match the return type of a GCC
  26284. builtin and then its argument prototype would still apply. */
  26285. #ifdef __cplusplus
  26286. extern "C"
  26287. #endif
  26288. char ${pbxfuncname} ();
  26289. int
  26290. main ()
  26291. {
  26292. return ${pbxfuncname} ();
  26293. ;
  26294. return 0;
  26295. }
  26296. _ACEOF
  26297. if ac_fn_c_try_link "$LINENO"; then :
  26298. eval "$as_ac_Lib=yes"
  26299. else
  26300. eval "$as_ac_Lib=no"
  26301. fi
  26302. rm -f core conftest.err conftest.$ac_objext \
  26303. conftest$ac_exeext conftest.$ac_ext
  26304. LIBS=$ac_check_lib_save_LIBS
  26305. fi
  26306. eval ac_res=\$$as_ac_Lib
  26307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26308. $as_echo "$ac_res" >&6; }
  26309. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26310. AST_SRTP_SHUTDOWN_FOUND=yes
  26311. else
  26312. AST_SRTP_SHUTDOWN_FOUND=no
  26313. fi
  26314. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26315. fi
  26316. # now check for the header.
  26317. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  26318. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
  26319. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  26320. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  26321. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  26322. fi
  26323. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  26324. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  26325. SRTP_SHUTDOWN_HEADER_FOUND="1"
  26326. else # check for the header
  26327. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26328. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  26329. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  26330. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  26331. SRTP_SHUTDOWN_HEADER_FOUND=1
  26332. else
  26333. SRTP_SHUTDOWN_HEADER_FOUND=0
  26334. fi
  26335. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26336. fi
  26337. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  26338. SRTP_SHUTDOWN_LIB=""
  26339. SRTP_SHUTDOWN_INCLUDE=""
  26340. else
  26341. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26342. SRTP_SHUTDOWN_LIB=""
  26343. fi
  26344. PBX_SRTP_SHUTDOWN=1
  26345. cat >>confdefs.h <<_ACEOF
  26346. #define HAVE_SRTP_SHUTDOWN 1
  26347. _ACEOF
  26348. fi
  26349. fi
  26350. fi
  26351. for ver in 2.0 2.2 2.4 2.6; do
  26352. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  26353. pkg_failed=no
  26354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMIME" >&5
  26355. $as_echo_n "checking for GMIME... " >&6; }
  26356. if test -n "$GMIME_CFLAGS"; then
  26357. pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
  26358. elif test -n "$PKG_CONFIG"; then
  26359. if test -n "$PKG_CONFIG" && \
  26360. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  26361. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  26362. ac_status=$?
  26363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26364. test $ac_status = 0; }; then
  26365. pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
  26366. test "x$?" != "x0" && pkg_failed=yes
  26367. else
  26368. pkg_failed=yes
  26369. fi
  26370. else
  26371. pkg_failed=untried
  26372. fi
  26373. if test -n "$GMIME_LIBS"; then
  26374. pkg_cv_GMIME_LIBS="$GMIME_LIBS"
  26375. elif test -n "$PKG_CONFIG"; then
  26376. if test -n "$PKG_CONFIG" && \
  26377. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  26378. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  26379. ac_status=$?
  26380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26381. test $ac_status = 0; }; then
  26382. pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
  26383. test "x$?" != "x0" && pkg_failed=yes
  26384. else
  26385. pkg_failed=yes
  26386. fi
  26387. else
  26388. pkg_failed=untried
  26389. fi
  26390. if test $pkg_failed = yes; then
  26391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26392. $as_echo "no" >&6; }
  26393. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26394. _pkg_short_errors_supported=yes
  26395. else
  26396. _pkg_short_errors_supported=no
  26397. fi
  26398. if test $_pkg_short_errors_supported = yes; then
  26399. GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
  26400. else
  26401. GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
  26402. fi
  26403. # Put the nasty error message in config.log where it belongs
  26404. echo "$GMIME_PKG_ERRORS" >&5
  26405. PBX_GMIME=0
  26406. elif test $pkg_failed = untried; then
  26407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26408. $as_echo "no" >&6; }
  26409. PBX_GMIME=0
  26410. else
  26411. GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
  26412. GMIME_LIBS=$pkg_cv_GMIME_LIBS
  26413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26414. $as_echo "yes" >&6; }
  26415. PBX_GMIME=1
  26416. GMIME_INCLUDE="$GMIME_CFLAGS"
  26417. GMIME_LIB="$GMIME_LIBS"
  26418. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  26419. fi
  26420. fi
  26421. if test "$PBX_GMIME" = 1; then
  26422. break;
  26423. fi
  26424. done
  26425. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  26426. pbxlibdir=""
  26427. # if --with-HOARD=DIR has been specified, use it.
  26428. if test "x${HOARD_DIR}" != "x"; then
  26429. if test -d ${HOARD_DIR}/lib; then
  26430. pbxlibdir="-L${HOARD_DIR}/lib"
  26431. else
  26432. pbxlibdir="-L${HOARD_DIR}"
  26433. fi
  26434. fi
  26435. pbxfuncname="malloc"
  26436. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26437. AST_HOARD_FOUND=yes
  26438. else
  26439. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26440. CFLAGS="${CFLAGS} "
  26441. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  26442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
  26443. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  26444. if eval \${$as_ac_Lib+:} false; then :
  26445. $as_echo_n "(cached) " >&6
  26446. else
  26447. ac_check_lib_save_LIBS=$LIBS
  26448. LIBS="-lhoard ${pbxlibdir} $LIBS"
  26449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26450. /* end confdefs.h. */
  26451. /* Override any GCC internal prototype to avoid an error.
  26452. Use char because int might match the return type of a GCC
  26453. builtin and then its argument prototype would still apply. */
  26454. #ifdef __cplusplus
  26455. extern "C"
  26456. #endif
  26457. char ${pbxfuncname} ();
  26458. int
  26459. main ()
  26460. {
  26461. return ${pbxfuncname} ();
  26462. ;
  26463. return 0;
  26464. }
  26465. _ACEOF
  26466. if ac_fn_c_try_link "$LINENO"; then :
  26467. eval "$as_ac_Lib=yes"
  26468. else
  26469. eval "$as_ac_Lib=no"
  26470. fi
  26471. rm -f core conftest.err conftest.$ac_objext \
  26472. conftest$ac_exeext conftest.$ac_ext
  26473. LIBS=$ac_check_lib_save_LIBS
  26474. fi
  26475. eval ac_res=\$$as_ac_Lib
  26476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26477. $as_echo "$ac_res" >&6; }
  26478. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26479. AST_HOARD_FOUND=yes
  26480. else
  26481. AST_HOARD_FOUND=no
  26482. fi
  26483. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26484. fi
  26485. # now check for the header.
  26486. if test "${AST_HOARD_FOUND}" = "yes"; then
  26487. HOARD_LIB="${pbxlibdir} -lhoard "
  26488. # if --with-HOARD=DIR has been specified, use it.
  26489. if test "x${HOARD_DIR}" != "x"; then
  26490. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  26491. fi
  26492. HOARD_INCLUDE="${HOARD_INCLUDE} "
  26493. if test "x" = "x" ; then # no header, assume found
  26494. HOARD_HEADER_FOUND="1"
  26495. else # check for the header
  26496. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26497. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  26498. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  26499. if test "x$ac_cv_header_" = xyes; then :
  26500. HOARD_HEADER_FOUND=1
  26501. else
  26502. HOARD_HEADER_FOUND=0
  26503. fi
  26504. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26505. fi
  26506. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  26507. HOARD_LIB=""
  26508. HOARD_INCLUDE=""
  26509. else
  26510. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26511. HOARD_LIB=""
  26512. fi
  26513. PBX_HOARD=1
  26514. cat >>confdefs.h <<_ACEOF
  26515. #define HAVE_HOARD 1
  26516. _ACEOF
  26517. fi
  26518. fi
  26519. fi
  26520. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  26521. pbxlibdir=""
  26522. # if --with-FREETDS=DIR has been specified, use it.
  26523. if test "x${FREETDS_DIR}" != "x"; then
  26524. if test -d ${FREETDS_DIR}/lib; then
  26525. pbxlibdir="-L${FREETDS_DIR}/lib"
  26526. else
  26527. pbxlibdir="-L${FREETDS_DIR}"
  26528. fi
  26529. fi
  26530. pbxfuncname="dbinit"
  26531. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26532. AST_FREETDS_FOUND=yes
  26533. else
  26534. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26535. CFLAGS="${CFLAGS} "
  26536. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  26537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
  26538. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  26539. if eval \${$as_ac_Lib+:} false; then :
  26540. $as_echo_n "(cached) " >&6
  26541. else
  26542. ac_check_lib_save_LIBS=$LIBS
  26543. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  26544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26545. /* end confdefs.h. */
  26546. /* Override any GCC internal prototype to avoid an error.
  26547. Use char because int might match the return type of a GCC
  26548. builtin and then its argument prototype would still apply. */
  26549. #ifdef __cplusplus
  26550. extern "C"
  26551. #endif
  26552. char ${pbxfuncname} ();
  26553. int
  26554. main ()
  26555. {
  26556. return ${pbxfuncname} ();
  26557. ;
  26558. return 0;
  26559. }
  26560. _ACEOF
  26561. if ac_fn_c_try_link "$LINENO"; then :
  26562. eval "$as_ac_Lib=yes"
  26563. else
  26564. eval "$as_ac_Lib=no"
  26565. fi
  26566. rm -f core conftest.err conftest.$ac_objext \
  26567. conftest$ac_exeext conftest.$ac_ext
  26568. LIBS=$ac_check_lib_save_LIBS
  26569. fi
  26570. eval ac_res=\$$as_ac_Lib
  26571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26572. $as_echo "$ac_res" >&6; }
  26573. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26574. AST_FREETDS_FOUND=yes
  26575. else
  26576. AST_FREETDS_FOUND=no
  26577. fi
  26578. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26579. fi
  26580. # now check for the header.
  26581. if test "${AST_FREETDS_FOUND}" = "yes"; then
  26582. FREETDS_LIB="${pbxlibdir} -lsybdb "
  26583. # if --with-FREETDS=DIR has been specified, use it.
  26584. if test "x${FREETDS_DIR}" != "x"; then
  26585. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  26586. fi
  26587. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  26588. if test "xsybdb.h" = "x" ; then # no header, assume found
  26589. FREETDS_HEADER_FOUND="1"
  26590. else # check for the header
  26591. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26592. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  26593. ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  26594. if test "x$ac_cv_header_sybdb_h" = xyes; then :
  26595. FREETDS_HEADER_FOUND=1
  26596. else
  26597. FREETDS_HEADER_FOUND=0
  26598. fi
  26599. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26600. fi
  26601. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  26602. FREETDS_LIB=""
  26603. FREETDS_INCLUDE=""
  26604. else
  26605. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26606. FREETDS_LIB=""
  26607. fi
  26608. PBX_FREETDS=1
  26609. cat >>confdefs.h <<_ACEOF
  26610. #define HAVE_FREETDS 1
  26611. _ACEOF
  26612. fi
  26613. fi
  26614. fi
  26615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  26616. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  26617. if ${ac_cv_lib_tonezone_tone_zone_find_by_num+:} false; then :
  26618. $as_echo_n "(cached) " >&6
  26619. else
  26620. ac_check_lib_save_LIBS=$LIBS
  26621. LIBS="-ltonezone $LIBS"
  26622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26623. /* end confdefs.h. */
  26624. /* Override any GCC internal prototype to avoid an error.
  26625. Use char because int might match the return type of a GCC
  26626. builtin and then its argument prototype would still apply. */
  26627. #ifdef __cplusplus
  26628. extern "C"
  26629. #endif
  26630. char tone_zone_find_by_num ();
  26631. int
  26632. main ()
  26633. {
  26634. return tone_zone_find_by_num ();
  26635. ;
  26636. return 0;
  26637. }
  26638. _ACEOF
  26639. if ac_fn_c_try_link "$LINENO"; then :
  26640. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  26641. else
  26642. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  26643. fi
  26644. rm -f core conftest.err conftest.$ac_objext \
  26645. conftest$ac_exeext conftest.$ac_ext
  26646. LIBS=$ac_check_lib_save_LIBS
  26647. fi
  26648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  26649. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  26650. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes; then :
  26651. tonezone_does_not_need_lm=yes
  26652. else
  26653. tonezone_does_not_need_lm=no
  26654. fi
  26655. if test "${tonezone_does_not_need_lm}" = "no" ; then
  26656. tonezone_extra="-lm"
  26657. fi
  26658. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  26659. pbxlibdir=""
  26660. # if --with-TONEZONE=DIR has been specified, use it.
  26661. if test "x${TONEZONE_DIR}" != "x"; then
  26662. if test -d ${TONEZONE_DIR}/lib; then
  26663. pbxlibdir="-L${TONEZONE_DIR}/lib"
  26664. else
  26665. pbxlibdir="-L${TONEZONE_DIR}"
  26666. fi
  26667. fi
  26668. pbxfuncname="tone_zone_find"
  26669. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26670. AST_TONEZONE_FOUND=yes
  26671. else
  26672. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26673. CFLAGS="${CFLAGS} "
  26674. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  26675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
  26676. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  26677. if eval \${$as_ac_Lib+:} false; then :
  26678. $as_echo_n "(cached) " >&6
  26679. else
  26680. ac_check_lib_save_LIBS=$LIBS
  26681. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  26682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26683. /* end confdefs.h. */
  26684. /* Override any GCC internal prototype to avoid an error.
  26685. Use char because int might match the return type of a GCC
  26686. builtin and then its argument prototype would still apply. */
  26687. #ifdef __cplusplus
  26688. extern "C"
  26689. #endif
  26690. char ${pbxfuncname} ();
  26691. int
  26692. main ()
  26693. {
  26694. return ${pbxfuncname} ();
  26695. ;
  26696. return 0;
  26697. }
  26698. _ACEOF
  26699. if ac_fn_c_try_link "$LINENO"; then :
  26700. eval "$as_ac_Lib=yes"
  26701. else
  26702. eval "$as_ac_Lib=no"
  26703. fi
  26704. rm -f core conftest.err conftest.$ac_objext \
  26705. conftest$ac_exeext conftest.$ac_ext
  26706. LIBS=$ac_check_lib_save_LIBS
  26707. fi
  26708. eval ac_res=\$$as_ac_Lib
  26709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26710. $as_echo "$ac_res" >&6; }
  26711. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26712. AST_TONEZONE_FOUND=yes
  26713. else
  26714. AST_TONEZONE_FOUND=no
  26715. fi
  26716. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26717. fi
  26718. # now check for the header.
  26719. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  26720. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  26721. # if --with-TONEZONE=DIR has been specified, use it.
  26722. if test "x${TONEZONE_DIR}" != "x"; then
  26723. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  26724. fi
  26725. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  26726. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  26727. TONEZONE_HEADER_FOUND="1"
  26728. else # check for the header
  26729. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26730. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  26731. ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  26732. if test "x$ac_cv_header_dahdi_tonezone_h" = xyes; then :
  26733. TONEZONE_HEADER_FOUND=1
  26734. else
  26735. TONEZONE_HEADER_FOUND=0
  26736. fi
  26737. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26738. fi
  26739. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  26740. TONEZONE_LIB=""
  26741. TONEZONE_INCLUDE=""
  26742. else
  26743. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26744. TONEZONE_LIB=""
  26745. fi
  26746. PBX_TONEZONE=1
  26747. cat >>confdefs.h <<_ACEOF
  26748. #define HAVE_TONEZONE 1
  26749. _ACEOF
  26750. fi
  26751. fi
  26752. fi
  26753. if test "${OSARCH}" = "OpenBSD";
  26754. then
  26755. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  26756. pbxlibdir=""
  26757. # if --with-VORBIS=DIR has been specified, use it.
  26758. if test "x${VORBIS_DIR}" != "x"; then
  26759. if test -d ${VORBIS_DIR}/lib; then
  26760. pbxlibdir="-L${VORBIS_DIR}/lib"
  26761. else
  26762. pbxlibdir="-L${VORBIS_DIR}"
  26763. fi
  26764. fi
  26765. pbxfuncname="vorbis_info_init"
  26766. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26767. AST_VORBIS_FOUND=yes
  26768. else
  26769. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26770. CFLAGS="${CFLAGS} "
  26771. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  26772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  26773. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  26774. if eval \${$as_ac_Lib+:} false; then :
  26775. $as_echo_n "(cached) " >&6
  26776. else
  26777. ac_check_lib_save_LIBS=$LIBS
  26778. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  26779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26780. /* end confdefs.h. */
  26781. /* Override any GCC internal prototype to avoid an error.
  26782. Use char because int might match the return type of a GCC
  26783. builtin and then its argument prototype would still apply. */
  26784. #ifdef __cplusplus
  26785. extern "C"
  26786. #endif
  26787. char ${pbxfuncname} ();
  26788. int
  26789. main ()
  26790. {
  26791. return ${pbxfuncname} ();
  26792. ;
  26793. return 0;
  26794. }
  26795. _ACEOF
  26796. if ac_fn_c_try_link "$LINENO"; then :
  26797. eval "$as_ac_Lib=yes"
  26798. else
  26799. eval "$as_ac_Lib=no"
  26800. fi
  26801. rm -f core conftest.err conftest.$ac_objext \
  26802. conftest$ac_exeext conftest.$ac_ext
  26803. LIBS=$ac_check_lib_save_LIBS
  26804. fi
  26805. eval ac_res=\$$as_ac_Lib
  26806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26807. $as_echo "$ac_res" >&6; }
  26808. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26809. AST_VORBIS_FOUND=yes
  26810. else
  26811. AST_VORBIS_FOUND=no
  26812. fi
  26813. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26814. fi
  26815. # now check for the header.
  26816. if test "${AST_VORBIS_FOUND}" = "yes"; then
  26817. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  26818. # if --with-VORBIS=DIR has been specified, use it.
  26819. if test "x${VORBIS_DIR}" != "x"; then
  26820. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  26821. fi
  26822. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  26823. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  26824. VORBIS_HEADER_FOUND="1"
  26825. else # check for the header
  26826. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26827. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  26828. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  26829. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  26830. VORBIS_HEADER_FOUND=1
  26831. else
  26832. VORBIS_HEADER_FOUND=0
  26833. fi
  26834. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26835. fi
  26836. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  26837. VORBIS_LIB=""
  26838. VORBIS_INCLUDE=""
  26839. else
  26840. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26841. VORBIS_LIB=""
  26842. fi
  26843. PBX_VORBIS=1
  26844. cat >>confdefs.h <<_ACEOF
  26845. #define HAVE_VORBIS 1
  26846. _ACEOF
  26847. fi
  26848. fi
  26849. fi
  26850. else
  26851. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  26852. pbxlibdir=""
  26853. # if --with-VORBIS=DIR has been specified, use it.
  26854. if test "x${VORBIS_DIR}" != "x"; then
  26855. if test -d ${VORBIS_DIR}/lib; then
  26856. pbxlibdir="-L${VORBIS_DIR}/lib"
  26857. else
  26858. pbxlibdir="-L${VORBIS_DIR}"
  26859. fi
  26860. fi
  26861. pbxfuncname="vorbis_info_init"
  26862. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26863. AST_VORBIS_FOUND=yes
  26864. else
  26865. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26866. CFLAGS="${CFLAGS} "
  26867. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  26868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  26869. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  26870. if eval \${$as_ac_Lib+:} false; then :
  26871. $as_echo_n "(cached) " >&6
  26872. else
  26873. ac_check_lib_save_LIBS=$LIBS
  26874. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  26875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26876. /* end confdefs.h. */
  26877. /* Override any GCC internal prototype to avoid an error.
  26878. Use char because int might match the return type of a GCC
  26879. builtin and then its argument prototype would still apply. */
  26880. #ifdef __cplusplus
  26881. extern "C"
  26882. #endif
  26883. char ${pbxfuncname} ();
  26884. int
  26885. main ()
  26886. {
  26887. return ${pbxfuncname} ();
  26888. ;
  26889. return 0;
  26890. }
  26891. _ACEOF
  26892. if ac_fn_c_try_link "$LINENO"; then :
  26893. eval "$as_ac_Lib=yes"
  26894. else
  26895. eval "$as_ac_Lib=no"
  26896. fi
  26897. rm -f core conftest.err conftest.$ac_objext \
  26898. conftest$ac_exeext conftest.$ac_ext
  26899. LIBS=$ac_check_lib_save_LIBS
  26900. fi
  26901. eval ac_res=\$$as_ac_Lib
  26902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26903. $as_echo "$ac_res" >&6; }
  26904. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26905. AST_VORBIS_FOUND=yes
  26906. else
  26907. AST_VORBIS_FOUND=no
  26908. fi
  26909. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26910. fi
  26911. # now check for the header.
  26912. if test "${AST_VORBIS_FOUND}" = "yes"; then
  26913. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  26914. # if --with-VORBIS=DIR has been specified, use it.
  26915. if test "x${VORBIS_DIR}" != "x"; then
  26916. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  26917. fi
  26918. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  26919. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  26920. VORBIS_HEADER_FOUND="1"
  26921. else # check for the header
  26922. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26923. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  26924. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  26925. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  26926. VORBIS_HEADER_FOUND=1
  26927. else
  26928. VORBIS_HEADER_FOUND=0
  26929. fi
  26930. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26931. fi
  26932. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  26933. VORBIS_LIB=""
  26934. VORBIS_INCLUDE=""
  26935. else
  26936. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26937. VORBIS_LIB=""
  26938. fi
  26939. PBX_VORBIS=1
  26940. cat >>confdefs.h <<_ACEOF
  26941. #define HAVE_VORBIS 1
  26942. _ACEOF
  26943. fi
  26944. fi
  26945. fi
  26946. fi
  26947. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  26948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  26949. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  26950. saved_cppflags="${CPPFLAGS}"
  26951. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  26952. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  26953. fi
  26954. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  26955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26956. /* end confdefs.h. */
  26957. #include <vorbis/vorbisfile.h>
  26958. int
  26959. main ()
  26960. {
  26961. #if !defined(OV_CALLBACKS_NOCLOSE)
  26962. (void) OV_CALLBACKS_NOCLOSE;
  26963. #endif
  26964. ;
  26965. return 0;
  26966. }
  26967. _ACEOF
  26968. if ac_fn_c_try_compile "$LINENO"; then :
  26969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26970. $as_echo "yes" >&6; }
  26971. PBX_VORBIS_OPEN_CALLBACKS=1
  26972. $as_echo "#define HAVE_VORBIS_OPEN_CALLBACKS 1" >>confdefs.h
  26973. else
  26974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26975. $as_echo "no" >&6; }
  26976. fi
  26977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26978. CPPFLAGS="${saved_cppflags}"
  26979. fi
  26980. ac_ext=cpp
  26981. ac_cpp='$CXXCPP $CPPFLAGS'
  26982. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26983. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26984. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26985. if test "${USE_VPB}" != "no"; then
  26986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  26987. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  26988. saved_libs="${LIBS}"
  26989. saved_cppflags="${CPPFLAGS}"
  26990. if test "x${VPB_DIR}" != "x"; then
  26991. if test -d ${VPB_DIR}/lib; then
  26992. vpblibdir=${VPB_DIR}/lib
  26993. else
  26994. vpblibdir=${VPB_DIR}
  26995. fi
  26996. LIBS="${LIBS} -L${vpblibdir}"
  26997. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  26998. fi
  26999. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  27000. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  27001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27002. /* end confdefs.h. */
  27003. #include <vpbapi.h>
  27004. int
  27005. main ()
  27006. {
  27007. int q = vpb_open(0,0);
  27008. ;
  27009. return 0;
  27010. }
  27011. _ACEOF
  27012. if ac_fn_cxx_try_link "$LINENO"; then :
  27013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27014. $as_echo "yes" >&6; }
  27015. ac_cv_lib_vpb_vpb_open="yes"
  27016. else
  27017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27018. $as_echo "no" >&6; }
  27019. ac_cv_lib_vpb_vpb_open="no"
  27020. fi
  27021. rm -f core conftest.err conftest.$ac_objext \
  27022. conftest$ac_exeext conftest.$ac_ext
  27023. LIBS="${saved_libs}"
  27024. CPPFLAGS="${saved_cppflags}"
  27025. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  27026. VPB_LIB="-lvpb"
  27027. if test "${VPB_DIR}" != ""; then
  27028. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  27029. VPB_INCLUDE="-I${VPB_DIR}/include"
  27030. fi
  27031. PBX_VPB=1
  27032. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  27033. fi
  27034. fi
  27035. ac_ext=c
  27036. ac_cpp='$CPP $CPPFLAGS'
  27037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27040. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  27041. pbxlibdir=""
  27042. # if --with-ZLIB=DIR has been specified, use it.
  27043. if test "x${ZLIB_DIR}" != "x"; then
  27044. if test -d ${ZLIB_DIR}/lib; then
  27045. pbxlibdir="-L${ZLIB_DIR}/lib"
  27046. else
  27047. pbxlibdir="-L${ZLIB_DIR}"
  27048. fi
  27049. fi
  27050. pbxfuncname="compress"
  27051. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27052. AST_ZLIB_FOUND=yes
  27053. else
  27054. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27055. CFLAGS="${CFLAGS} "
  27056. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  27057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
  27058. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  27059. if eval \${$as_ac_Lib+:} false; then :
  27060. $as_echo_n "(cached) " >&6
  27061. else
  27062. ac_check_lib_save_LIBS=$LIBS
  27063. LIBS="-lz ${pbxlibdir} $LIBS"
  27064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27065. /* end confdefs.h. */
  27066. /* Override any GCC internal prototype to avoid an error.
  27067. Use char because int might match the return type of a GCC
  27068. builtin and then its argument prototype would still apply. */
  27069. #ifdef __cplusplus
  27070. extern "C"
  27071. #endif
  27072. char ${pbxfuncname} ();
  27073. int
  27074. main ()
  27075. {
  27076. return ${pbxfuncname} ();
  27077. ;
  27078. return 0;
  27079. }
  27080. _ACEOF
  27081. if ac_fn_c_try_link "$LINENO"; then :
  27082. eval "$as_ac_Lib=yes"
  27083. else
  27084. eval "$as_ac_Lib=no"
  27085. fi
  27086. rm -f core conftest.err conftest.$ac_objext \
  27087. conftest$ac_exeext conftest.$ac_ext
  27088. LIBS=$ac_check_lib_save_LIBS
  27089. fi
  27090. eval ac_res=\$$as_ac_Lib
  27091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27092. $as_echo "$ac_res" >&6; }
  27093. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27094. AST_ZLIB_FOUND=yes
  27095. else
  27096. AST_ZLIB_FOUND=no
  27097. fi
  27098. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27099. fi
  27100. # now check for the header.
  27101. if test "${AST_ZLIB_FOUND}" = "yes"; then
  27102. ZLIB_LIB="${pbxlibdir} -lz "
  27103. # if --with-ZLIB=DIR has been specified, use it.
  27104. if test "x${ZLIB_DIR}" != "x"; then
  27105. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  27106. fi
  27107. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  27108. if test "xzlib.h" = "x" ; then # no header, assume found
  27109. ZLIB_HEADER_FOUND="1"
  27110. else # check for the header
  27111. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27112. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  27113. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  27114. if test "x$ac_cv_header_zlib_h" = xyes; then :
  27115. ZLIB_HEADER_FOUND=1
  27116. else
  27117. ZLIB_HEADER_FOUND=0
  27118. fi
  27119. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27120. fi
  27121. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  27122. ZLIB_LIB=""
  27123. ZLIB_INCLUDE=""
  27124. else
  27125. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27126. ZLIB_LIB=""
  27127. fi
  27128. PBX_ZLIB=1
  27129. cat >>confdefs.h <<_ACEOF
  27130. #define HAVE_ZLIB 1
  27131. _ACEOF
  27132. fi
  27133. fi
  27134. fi
  27135. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  27136. # Does ODBC support wide characters?
  27137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  27138. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  27139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27140. /* end confdefs.h. */
  27141. #include <sql.h>
  27142. #include <sqlext.h>
  27143. int
  27144. main ()
  27145. {
  27146. int foo = SQL_WCHAR
  27147. ;
  27148. return 0;
  27149. }
  27150. _ACEOF
  27151. if ac_fn_c_try_link "$LINENO"; then :
  27152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27153. $as_echo "yes" >&6; }
  27154. $as_echo "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  27155. else
  27156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27157. $as_echo "no" >&6; }
  27158. fi
  27159. rm -f core conftest.err conftest.$ac_objext \
  27160. conftest$ac_exeext conftest.$ac_ext
  27161. fi
  27162. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  27163. if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
  27164. cat >>confdefs.h <<_ACEOF
  27165. #define HAVE_LINUX_COMPILER_H 1
  27166. _ACEOF
  27167. fi
  27168. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  27169. #include <linux/version.h>
  27170. #ifdef HAVE_LINUX_COMPILER_H
  27171. #include <linux/compiler.h>
  27172. #endif
  27173. "
  27174. if test "x$ac_cv_header_linux_ixjuser_h" = xyes; then :
  27175. PBX_IXJUSER=1
  27176. else
  27177. PBX_IXJUSER=0
  27178. fi
  27179. # Used in res/res_pktccops
  27180. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  27181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  27182. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  27183. saved_cppflags="${CPPFLAGS}"
  27184. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  27185. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  27186. fi
  27187. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  27188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27189. /* end confdefs.h. */
  27190. #include <sys/socket.h>
  27191. int
  27192. main ()
  27193. {
  27194. #if defined(MSG_NOSIGNAL)
  27195. int foo = 0;
  27196. #else
  27197. int foo = bar;
  27198. #endif
  27199. 0
  27200. ;
  27201. return 0;
  27202. }
  27203. _ACEOF
  27204. if ac_fn_c_try_compile "$LINENO"; then :
  27205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27206. $as_echo "yes" >&6; }
  27207. PBX_MSG_NOSIGNAL=1
  27208. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  27209. else
  27210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27211. $as_echo "no" >&6; }
  27212. fi
  27213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27214. CPPFLAGS="${saved_cppflags}"
  27215. fi
  27216. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  27217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  27218. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  27219. saved_cppflags="${CPPFLAGS}"
  27220. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  27221. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  27222. fi
  27223. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  27224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27225. /* end confdefs.h. */
  27226. #include <sys/socket.h>
  27227. int
  27228. main ()
  27229. {
  27230. #if defined(SO_NOSIGPIPE)
  27231. int foo = 0;
  27232. #else
  27233. int foo = bar;
  27234. #endif
  27235. 0
  27236. ;
  27237. return 0;
  27238. }
  27239. _ACEOF
  27240. if ac_fn_c_try_compile "$LINENO"; then :
  27241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27242. $as_echo "yes" >&6; }
  27243. PBX_SO_NOSIGPIPE=1
  27244. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  27245. else
  27246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27247. $as_echo "no" >&6; }
  27248. fi
  27249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27250. CPPFLAGS="${saved_cppflags}"
  27251. fi
  27252. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  27253. PBX_SDL=0
  27254. if test -n "$ac_tool_prefix"; then
  27255. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  27256. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  27257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27258. $as_echo_n "checking for $ac_word... " >&6; }
  27259. if ${ac_cv_path_CONFIG_SDL+:} false; then :
  27260. $as_echo_n "(cached) " >&6
  27261. else
  27262. case $CONFIG_SDL in
  27263. [\\/]* | ?:[\\/]*)
  27264. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  27265. ;;
  27266. *)
  27267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27268. as_dummy="${SDL_DIR}/bin:$PATH"
  27269. for as_dir in $as_dummy
  27270. do
  27271. IFS=$as_save_IFS
  27272. test -z "$as_dir" && as_dir=.
  27273. for ac_exec_ext in '' $ac_executable_extensions; do
  27274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27275. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  27276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27277. break 2
  27278. fi
  27279. done
  27280. done
  27281. IFS=$as_save_IFS
  27282. ;;
  27283. esac
  27284. fi
  27285. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  27286. if test -n "$CONFIG_SDL"; then
  27287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  27288. $as_echo "$CONFIG_SDL" >&6; }
  27289. else
  27290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27291. $as_echo "no" >&6; }
  27292. fi
  27293. fi
  27294. if test -z "$ac_cv_path_CONFIG_SDL"; then
  27295. ac_pt_CONFIG_SDL=$CONFIG_SDL
  27296. # Extract the first word of "sdl-config", so it can be a program name with args.
  27297. set dummy sdl-config; ac_word=$2
  27298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27299. $as_echo_n "checking for $ac_word... " >&6; }
  27300. if ${ac_cv_path_ac_pt_CONFIG_SDL+:} false; then :
  27301. $as_echo_n "(cached) " >&6
  27302. else
  27303. case $ac_pt_CONFIG_SDL in
  27304. [\\/]* | ?:[\\/]*)
  27305. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  27306. ;;
  27307. *)
  27308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27309. as_dummy="${SDL_DIR}/bin:$PATH"
  27310. for as_dir in $as_dummy
  27311. do
  27312. IFS=$as_save_IFS
  27313. test -z "$as_dir" && as_dir=.
  27314. for ac_exec_ext in '' $ac_executable_extensions; do
  27315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27316. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  27317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27318. break 2
  27319. fi
  27320. done
  27321. done
  27322. IFS=$as_save_IFS
  27323. ;;
  27324. esac
  27325. fi
  27326. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  27327. if test -n "$ac_pt_CONFIG_SDL"; then
  27328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  27329. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  27330. else
  27331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27332. $as_echo "no" >&6; }
  27333. fi
  27334. if test "x$ac_pt_CONFIG_SDL" = x; then
  27335. CONFIG_SDL="No"
  27336. else
  27337. case $cross_compiling:$ac_tool_warned in
  27338. yes:)
  27339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27341. ac_tool_warned=yes ;;
  27342. esac
  27343. CONFIG_SDL=$ac_pt_CONFIG_SDL
  27344. fi
  27345. else
  27346. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  27347. fi
  27348. if test ! "x${CONFIG_SDL}" = xNo; then
  27349. if test x"" = x ; then A=--cflags ; else A="" ; fi
  27350. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  27351. SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g")
  27352. if test x"" = x ; then A=--libs ; else A="" ; fi
  27353. SDL_LIB=$(${CONFIG_SDL} $A)
  27354. SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
  27355. if test x"" != x ; then
  27356. saved_cppflags="${CPPFLAGS}"
  27357. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  27358. saved_libs="${LIBS}"
  27359. LIBS=${SDL_LIB}
  27360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27361. /* end confdefs.h. */
  27362. int
  27363. main ()
  27364. {
  27365. ;
  27366. ;
  27367. return 0;
  27368. }
  27369. _ACEOF
  27370. if ac_fn_c_try_link "$LINENO"; then :
  27371. PBX_SDL=1
  27372. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  27373. fi
  27374. rm -f core conftest.err conftest.$ac_objext \
  27375. conftest$ac_exeext conftest.$ac_ext
  27376. CPPFLAGS="${saved_cppflags}"
  27377. LIBS="${saved_libs}"
  27378. else
  27379. PBX_SDL=1
  27380. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  27381. fi
  27382. fi
  27383. fi
  27384. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  27385. pbxlibdir=""
  27386. # if --with-SDL_IMAGE=DIR has been specified, use it.
  27387. if test "x${SDL_IMAGE_DIR}" != "x"; then
  27388. if test -d ${SDL_IMAGE_DIR}/lib; then
  27389. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  27390. else
  27391. pbxlibdir="-L${SDL_IMAGE_DIR}"
  27392. fi
  27393. fi
  27394. pbxfuncname="IMG_Load"
  27395. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27396. AST_SDL_IMAGE_FOUND=yes
  27397. else
  27398. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27399. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  27400. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  27401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
  27402. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  27403. if eval \${$as_ac_Lib+:} false; then :
  27404. $as_echo_n "(cached) " >&6
  27405. else
  27406. ac_check_lib_save_LIBS=$LIBS
  27407. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  27408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27409. /* end confdefs.h. */
  27410. /* Override any GCC internal prototype to avoid an error.
  27411. Use char because int might match the return type of a GCC
  27412. builtin and then its argument prototype would still apply. */
  27413. #ifdef __cplusplus
  27414. extern "C"
  27415. #endif
  27416. char ${pbxfuncname} ();
  27417. int
  27418. main ()
  27419. {
  27420. return ${pbxfuncname} ();
  27421. ;
  27422. return 0;
  27423. }
  27424. _ACEOF
  27425. if ac_fn_c_try_link "$LINENO"; then :
  27426. eval "$as_ac_Lib=yes"
  27427. else
  27428. eval "$as_ac_Lib=no"
  27429. fi
  27430. rm -f core conftest.err conftest.$ac_objext \
  27431. conftest$ac_exeext conftest.$ac_ext
  27432. LIBS=$ac_check_lib_save_LIBS
  27433. fi
  27434. eval ac_res=\$$as_ac_Lib
  27435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27436. $as_echo "$ac_res" >&6; }
  27437. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27438. AST_SDL_IMAGE_FOUND=yes
  27439. else
  27440. AST_SDL_IMAGE_FOUND=no
  27441. fi
  27442. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27443. fi
  27444. # now check for the header.
  27445. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  27446. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  27447. # if --with-SDL_IMAGE=DIR has been specified, use it.
  27448. if test "x${SDL_IMAGE_DIR}" != "x"; then
  27449. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  27450. fi
  27451. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  27452. if test "xSDL_image.h" = "x" ; then # no header, assume found
  27453. SDL_IMAGE_HEADER_FOUND="1"
  27454. else # check for the header
  27455. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27456. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  27457. ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  27458. if test "x$ac_cv_header_SDL_image_h" = xyes; then :
  27459. SDL_IMAGE_HEADER_FOUND=1
  27460. else
  27461. SDL_IMAGE_HEADER_FOUND=0
  27462. fi
  27463. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27464. fi
  27465. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  27466. SDL_IMAGE_LIB=""
  27467. SDL_IMAGE_INCLUDE=""
  27468. else
  27469. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27470. SDL_IMAGE_LIB=""
  27471. fi
  27472. PBX_SDL_IMAGE=1
  27473. cat >>confdefs.h <<_ACEOF
  27474. #define HAVE_SDL_IMAGE 1
  27475. _ACEOF
  27476. fi
  27477. fi
  27478. fi
  27479. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  27480. pbxlibdir=""
  27481. # if --with-FFMPEG=DIR has been specified, use it.
  27482. if test "x${FFMPEG_DIR}" != "x"; then
  27483. if test -d ${FFMPEG_DIR}/lib; then
  27484. pbxlibdir="-L${FFMPEG_DIR}/lib"
  27485. else
  27486. pbxlibdir="-L${FFMPEG_DIR}"
  27487. fi
  27488. fi
  27489. pbxfuncname="sws_getContext"
  27490. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27491. AST_FFMPEG_FOUND=yes
  27492. else
  27493. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27494. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  27495. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  27496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
  27497. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  27498. if eval \${$as_ac_Lib+:} false; then :
  27499. $as_echo_n "(cached) " >&6
  27500. else
  27501. ac_check_lib_save_LIBS=$LIBS
  27502. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  27503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27504. /* end confdefs.h. */
  27505. /* Override any GCC internal prototype to avoid an error.
  27506. Use char because int might match the return type of a GCC
  27507. builtin and then its argument prototype would still apply. */
  27508. #ifdef __cplusplus
  27509. extern "C"
  27510. #endif
  27511. char ${pbxfuncname} ();
  27512. int
  27513. main ()
  27514. {
  27515. return ${pbxfuncname} ();
  27516. ;
  27517. return 0;
  27518. }
  27519. _ACEOF
  27520. if ac_fn_c_try_link "$LINENO"; then :
  27521. eval "$as_ac_Lib=yes"
  27522. else
  27523. eval "$as_ac_Lib=no"
  27524. fi
  27525. rm -f core conftest.err conftest.$ac_objext \
  27526. conftest$ac_exeext conftest.$ac_ext
  27527. LIBS=$ac_check_lib_save_LIBS
  27528. fi
  27529. eval ac_res=\$$as_ac_Lib
  27530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27531. $as_echo "$ac_res" >&6; }
  27532. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27533. AST_FFMPEG_FOUND=yes
  27534. else
  27535. AST_FFMPEG_FOUND=no
  27536. fi
  27537. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27538. fi
  27539. # now check for the header.
  27540. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  27541. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  27542. # if --with-FFMPEG=DIR has been specified, use it.
  27543. if test "x${FFMPEG_DIR}" != "x"; then
  27544. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  27545. fi
  27546. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  27547. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  27548. FFMPEG_HEADER_FOUND="1"
  27549. else # check for the header
  27550. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27551. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  27552. ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  27553. if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
  27554. FFMPEG_HEADER_FOUND=1
  27555. else
  27556. FFMPEG_HEADER_FOUND=0
  27557. fi
  27558. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27559. fi
  27560. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  27561. FFMPEG_LIB=""
  27562. FFMPEG_INCLUDE=""
  27563. else
  27564. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27565. FFMPEG_LIB=""
  27566. fi
  27567. PBX_FFMPEG=1
  27568. cat >>confdefs.h <<_ACEOF
  27569. #define HAVE_FFMPEG 1
  27570. _ACEOF
  27571. fi
  27572. fi
  27573. fi
  27574. # possible places for video4linux version 1
  27575. ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  27576. if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
  27577. cat >>confdefs.h <<_ACEOF
  27578. #define HAVE_VIDEODEV_H 1
  27579. _ACEOF
  27580. fi
  27581. # possible places for X11
  27582. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  27583. pbxlibdir=""
  27584. # if --with-X11=DIR has been specified, use it.
  27585. if test "x${X11_DIR}" != "x"; then
  27586. if test -d ${X11_DIR}/lib; then
  27587. pbxlibdir="-L${X11_DIR}/lib"
  27588. else
  27589. pbxlibdir="-L${X11_DIR}"
  27590. fi
  27591. fi
  27592. pbxfuncname="XOpenDisplay"
  27593. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27594. AST_X11_FOUND=yes
  27595. else
  27596. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27597. CFLAGS="${CFLAGS} "
  27598. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  27599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  27600. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  27601. if eval \${$as_ac_Lib+:} false; then :
  27602. $as_echo_n "(cached) " >&6
  27603. else
  27604. ac_check_lib_save_LIBS=$LIBS
  27605. LIBS="-lX11 ${pbxlibdir} $LIBS"
  27606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27607. /* end confdefs.h. */
  27608. /* Override any GCC internal prototype to avoid an error.
  27609. Use char because int might match the return type of a GCC
  27610. builtin and then its argument prototype would still apply. */
  27611. #ifdef __cplusplus
  27612. extern "C"
  27613. #endif
  27614. char ${pbxfuncname} ();
  27615. int
  27616. main ()
  27617. {
  27618. return ${pbxfuncname} ();
  27619. ;
  27620. return 0;
  27621. }
  27622. _ACEOF
  27623. if ac_fn_c_try_link "$LINENO"; then :
  27624. eval "$as_ac_Lib=yes"
  27625. else
  27626. eval "$as_ac_Lib=no"
  27627. fi
  27628. rm -f core conftest.err conftest.$ac_objext \
  27629. conftest$ac_exeext conftest.$ac_ext
  27630. LIBS=$ac_check_lib_save_LIBS
  27631. fi
  27632. eval ac_res=\$$as_ac_Lib
  27633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27634. $as_echo "$ac_res" >&6; }
  27635. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27636. AST_X11_FOUND=yes
  27637. else
  27638. AST_X11_FOUND=no
  27639. fi
  27640. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27641. fi
  27642. # now check for the header.
  27643. if test "${AST_X11_FOUND}" = "yes"; then
  27644. X11_LIB="${pbxlibdir} -lX11 "
  27645. # if --with-X11=DIR has been specified, use it.
  27646. if test "x${X11_DIR}" != "x"; then
  27647. X11_INCLUDE="-I${X11_DIR}/include"
  27648. fi
  27649. X11_INCLUDE="${X11_INCLUDE} "
  27650. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  27651. X11_HEADER_FOUND="1"
  27652. else # check for the header
  27653. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27654. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  27655. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  27656. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  27657. X11_HEADER_FOUND=1
  27658. else
  27659. X11_HEADER_FOUND=0
  27660. fi
  27661. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27662. fi
  27663. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  27664. X11_LIB=""
  27665. X11_INCLUDE=""
  27666. else
  27667. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27668. X11_LIB=""
  27669. fi
  27670. PBX_X11=1
  27671. cat >>confdefs.h <<_ACEOF
  27672. #define HAVE_X11 1
  27673. _ACEOF
  27674. cat >>confdefs.h <<_ACEOF
  27675. #define HAVE_X11_VERSION standard_path
  27676. _ACEOF
  27677. fi
  27678. fi
  27679. fi
  27680. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  27681. pbxlibdir=""
  27682. # if --with-X11=DIR has been specified, use it.
  27683. if test "x${X11_DIR}" != "x"; then
  27684. if test -d ${X11_DIR}/lib; then
  27685. pbxlibdir="-L${X11_DIR}/lib"
  27686. else
  27687. pbxlibdir="-L${X11_DIR}"
  27688. fi
  27689. fi
  27690. pbxfuncname="XOpenDisplay"
  27691. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27692. AST_X11_FOUND=yes
  27693. else
  27694. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27695. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  27696. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  27697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  27698. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  27699. if eval \${$as_ac_Lib+:} false; then :
  27700. $as_echo_n "(cached) " >&6
  27701. else
  27702. ac_check_lib_save_LIBS=$LIBS
  27703. LIBS="-lX11 ${pbxlibdir} $LIBS"
  27704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27705. /* end confdefs.h. */
  27706. /* Override any GCC internal prototype to avoid an error.
  27707. Use char because int might match the return type of a GCC
  27708. builtin and then its argument prototype would still apply. */
  27709. #ifdef __cplusplus
  27710. extern "C"
  27711. #endif
  27712. char ${pbxfuncname} ();
  27713. int
  27714. main ()
  27715. {
  27716. return ${pbxfuncname} ();
  27717. ;
  27718. return 0;
  27719. }
  27720. _ACEOF
  27721. if ac_fn_c_try_link "$LINENO"; then :
  27722. eval "$as_ac_Lib=yes"
  27723. else
  27724. eval "$as_ac_Lib=no"
  27725. fi
  27726. rm -f core conftest.err conftest.$ac_objext \
  27727. conftest$ac_exeext conftest.$ac_ext
  27728. LIBS=$ac_check_lib_save_LIBS
  27729. fi
  27730. eval ac_res=\$$as_ac_Lib
  27731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27732. $as_echo "$ac_res" >&6; }
  27733. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27734. AST_X11_FOUND=yes
  27735. else
  27736. AST_X11_FOUND=no
  27737. fi
  27738. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27739. fi
  27740. # now check for the header.
  27741. if test "${AST_X11_FOUND}" = "yes"; then
  27742. X11_LIB="${pbxlibdir} -lX11 "
  27743. # if --with-X11=DIR has been specified, use it.
  27744. if test "x${X11_DIR}" != "x"; then
  27745. X11_INCLUDE="-I${X11_DIR}/include"
  27746. fi
  27747. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  27748. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  27749. X11_HEADER_FOUND="1"
  27750. else # check for the header
  27751. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27752. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  27753. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  27754. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  27755. X11_HEADER_FOUND=1
  27756. else
  27757. X11_HEADER_FOUND=0
  27758. fi
  27759. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27760. fi
  27761. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  27762. X11_LIB=""
  27763. X11_INCLUDE=""
  27764. else
  27765. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27766. X11_LIB=""
  27767. fi
  27768. PBX_X11=1
  27769. cat >>confdefs.h <<_ACEOF
  27770. #define HAVE_X11 1
  27771. _ACEOF
  27772. cat >>confdefs.h <<_ACEOF
  27773. #define HAVE_X11_VERSION X11R6
  27774. _ACEOF
  27775. fi
  27776. fi
  27777. fi
  27778. PBX_LAUNCHD=0
  27779. if test "${cross_compiling}" = "no";
  27780. then
  27781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  27782. $as_echo_n "checking for /sbin/launchd... " >&6; }
  27783. if ${ac_cv_file__sbin_launchd+:} false; then :
  27784. $as_echo_n "(cached) " >&6
  27785. else
  27786. test "$cross_compiling" = yes &&
  27787. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  27788. if test -r "/sbin/launchd"; then
  27789. ac_cv_file__sbin_launchd=yes
  27790. else
  27791. ac_cv_file__sbin_launchd=no
  27792. fi
  27793. fi
  27794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  27795. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  27796. if test "x$ac_cv_file__sbin_launchd" = xyes; then :
  27797. PBX_LAUNCHD=1
  27798. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  27799. fi
  27800. fi
  27801. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  27802. pkg_failed=no
  27803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
  27804. $as_echo_n "checking for GTK2... " >&6; }
  27805. if test -n "$GTK2_CFLAGS"; then
  27806. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  27807. elif test -n "$PKG_CONFIG"; then
  27808. if test -n "$PKG_CONFIG" && \
  27809. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  27810. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  27811. ac_status=$?
  27812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27813. test $ac_status = 0; }; then
  27814. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  27815. test "x$?" != "x0" && pkg_failed=yes
  27816. else
  27817. pkg_failed=yes
  27818. fi
  27819. else
  27820. pkg_failed=untried
  27821. fi
  27822. if test -n "$GTK2_LIBS"; then
  27823. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  27824. elif test -n "$PKG_CONFIG"; then
  27825. if test -n "$PKG_CONFIG" && \
  27826. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  27827. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  27828. ac_status=$?
  27829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27830. test $ac_status = 0; }; then
  27831. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  27832. test "x$?" != "x0" && pkg_failed=yes
  27833. else
  27834. pkg_failed=yes
  27835. fi
  27836. else
  27837. pkg_failed=untried
  27838. fi
  27839. if test $pkg_failed = yes; then
  27840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27841. $as_echo "no" >&6; }
  27842. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  27843. _pkg_short_errors_supported=yes
  27844. else
  27845. _pkg_short_errors_supported=no
  27846. fi
  27847. if test $_pkg_short_errors_supported = yes; then
  27848. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  27849. else
  27850. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  27851. fi
  27852. # Put the nasty error message in config.log where it belongs
  27853. echo "$GTK2_PKG_ERRORS" >&5
  27854. PBX_GTK2=0
  27855. elif test $pkg_failed = untried; then
  27856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27857. $as_echo "no" >&6; }
  27858. PBX_GTK2=0
  27859. else
  27860. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  27861. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  27862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27863. $as_echo "yes" >&6; }
  27864. PBX_GTK2=1
  27865. GTK2_INCLUDE="$GTK2_CFLAGS"
  27866. GTK2_LIB="$GTK2_LIBS"
  27867. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  27868. fi
  27869. fi
  27870. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  27871. # or iODBC
  27872. PBX_GENERIC_ODBC=0
  27873. if test "${PBX_UNIXODBC}" = 1; then
  27874. PBX_GENERIC_ODBC=1
  27875. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  27876. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  27877. elif test "${PBX_IODBC}" = 1; then
  27878. PBX_GENERIC_ODBC=1
  27879. GENERIC_ODBC_LIB="${IODBC_LIB}"
  27880. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  27881. fi
  27882. PBX_SYSLOG=0
  27883. if test "${ac_cv_header_syslog_h}" = "yes"; then
  27884. # syslog facilities
  27885. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  27886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  27887. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  27888. saved_cppflags="${CPPFLAGS}"
  27889. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  27890. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  27891. fi
  27892. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  27893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27894. /* end confdefs.h. */
  27895. #include <syslog.h>
  27896. int
  27897. main ()
  27898. {
  27899. #if defined(LOG_AUTH)
  27900. int foo = 0;
  27901. #else
  27902. int foo = bar;
  27903. #endif
  27904. 0
  27905. ;
  27906. return 0;
  27907. }
  27908. _ACEOF
  27909. if ac_fn_c_try_compile "$LINENO"; then :
  27910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27911. $as_echo "yes" >&6; }
  27912. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  27913. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  27914. else
  27915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27916. $as_echo "no" >&6; }
  27917. fi
  27918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27919. CPPFLAGS="${saved_cppflags}"
  27920. fi
  27921. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  27922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  27923. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  27924. saved_cppflags="${CPPFLAGS}"
  27925. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  27926. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  27927. fi
  27928. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  27929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27930. /* end confdefs.h. */
  27931. #include <syslog.h>
  27932. int
  27933. main ()
  27934. {
  27935. #if defined(LOG_AUTHPRIV)
  27936. int foo = 0;
  27937. #else
  27938. int foo = bar;
  27939. #endif
  27940. 0
  27941. ;
  27942. return 0;
  27943. }
  27944. _ACEOF
  27945. if ac_fn_c_try_compile "$LINENO"; then :
  27946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27947. $as_echo "yes" >&6; }
  27948. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  27949. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  27950. else
  27951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27952. $as_echo "no" >&6; }
  27953. fi
  27954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27955. CPPFLAGS="${saved_cppflags}"
  27956. fi
  27957. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  27958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  27959. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  27960. saved_cppflags="${CPPFLAGS}"
  27961. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  27962. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  27963. fi
  27964. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  27965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27966. /* end confdefs.h. */
  27967. #include <syslog.h>
  27968. int
  27969. main ()
  27970. {
  27971. #if defined(LOG_CRON)
  27972. int foo = 0;
  27973. #else
  27974. int foo = bar;
  27975. #endif
  27976. 0
  27977. ;
  27978. return 0;
  27979. }
  27980. _ACEOF
  27981. if ac_fn_c_try_compile "$LINENO"; then :
  27982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27983. $as_echo "yes" >&6; }
  27984. PBX_SYSLOG_FACILITY_LOG_CRON=1
  27985. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  27986. else
  27987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27988. $as_echo "no" >&6; }
  27989. fi
  27990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27991. CPPFLAGS="${saved_cppflags}"
  27992. fi
  27993. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  27994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  27995. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  27996. saved_cppflags="${CPPFLAGS}"
  27997. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  27998. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  27999. fi
  28000. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  28001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28002. /* end confdefs.h. */
  28003. #include <syslog.h>
  28004. int
  28005. main ()
  28006. {
  28007. #if defined(LOG_DAEMON)
  28008. int foo = 0;
  28009. #else
  28010. int foo = bar;
  28011. #endif
  28012. 0
  28013. ;
  28014. return 0;
  28015. }
  28016. _ACEOF
  28017. if ac_fn_c_try_compile "$LINENO"; then :
  28018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28019. $as_echo "yes" >&6; }
  28020. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  28021. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  28022. else
  28023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28024. $as_echo "no" >&6; }
  28025. fi
  28026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28027. CPPFLAGS="${saved_cppflags}"
  28028. fi
  28029. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  28030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  28031. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  28032. saved_cppflags="${CPPFLAGS}"
  28033. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  28034. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  28035. fi
  28036. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  28037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28038. /* end confdefs.h. */
  28039. #include <syslog.h>
  28040. int
  28041. main ()
  28042. {
  28043. #if defined(LOG_FTP)
  28044. int foo = 0;
  28045. #else
  28046. int foo = bar;
  28047. #endif
  28048. 0
  28049. ;
  28050. return 0;
  28051. }
  28052. _ACEOF
  28053. if ac_fn_c_try_compile "$LINENO"; then :
  28054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28055. $as_echo "yes" >&6; }
  28056. PBX_SYSLOG_FACILITY_LOG_FTP=1
  28057. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  28058. else
  28059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28060. $as_echo "no" >&6; }
  28061. fi
  28062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28063. CPPFLAGS="${saved_cppflags}"
  28064. fi
  28065. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  28066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  28067. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  28068. saved_cppflags="${CPPFLAGS}"
  28069. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  28070. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  28071. fi
  28072. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  28073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28074. /* end confdefs.h. */
  28075. #include <syslog.h>
  28076. int
  28077. main ()
  28078. {
  28079. #if defined(LOG_KERN)
  28080. int foo = 0;
  28081. #else
  28082. int foo = bar;
  28083. #endif
  28084. 0
  28085. ;
  28086. return 0;
  28087. }
  28088. _ACEOF
  28089. if ac_fn_c_try_compile "$LINENO"; then :
  28090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28091. $as_echo "yes" >&6; }
  28092. PBX_SYSLOG_FACILITY_LOG_KERN=1
  28093. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  28094. else
  28095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28096. $as_echo "no" >&6; }
  28097. fi
  28098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28099. CPPFLAGS="${saved_cppflags}"
  28100. fi
  28101. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  28102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  28103. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  28104. saved_cppflags="${CPPFLAGS}"
  28105. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  28106. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  28107. fi
  28108. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  28109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28110. /* end confdefs.h. */
  28111. #include <syslog.h>
  28112. int
  28113. main ()
  28114. {
  28115. #if defined(LOG_LPR)
  28116. int foo = 0;
  28117. #else
  28118. int foo = bar;
  28119. #endif
  28120. 0
  28121. ;
  28122. return 0;
  28123. }
  28124. _ACEOF
  28125. if ac_fn_c_try_compile "$LINENO"; then :
  28126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28127. $as_echo "yes" >&6; }
  28128. PBX_SYSLOG_FACILITY_LOG_LPR=1
  28129. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  28130. else
  28131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28132. $as_echo "no" >&6; }
  28133. fi
  28134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28135. CPPFLAGS="${saved_cppflags}"
  28136. fi
  28137. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  28138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  28139. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  28140. saved_cppflags="${CPPFLAGS}"
  28141. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  28142. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  28143. fi
  28144. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  28145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28146. /* end confdefs.h. */
  28147. #include <syslog.h>
  28148. int
  28149. main ()
  28150. {
  28151. #if defined(LOG_MAIL)
  28152. int foo = 0;
  28153. #else
  28154. int foo = bar;
  28155. #endif
  28156. 0
  28157. ;
  28158. return 0;
  28159. }
  28160. _ACEOF
  28161. if ac_fn_c_try_compile "$LINENO"; then :
  28162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28163. $as_echo "yes" >&6; }
  28164. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  28165. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  28166. else
  28167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28168. $as_echo "no" >&6; }
  28169. fi
  28170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28171. CPPFLAGS="${saved_cppflags}"
  28172. fi
  28173. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  28174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  28175. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  28176. saved_cppflags="${CPPFLAGS}"
  28177. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  28178. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  28179. fi
  28180. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  28181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28182. /* end confdefs.h. */
  28183. #include <syslog.h>
  28184. int
  28185. main ()
  28186. {
  28187. #if defined(LOG_NEWS)
  28188. int foo = 0;
  28189. #else
  28190. int foo = bar;
  28191. #endif
  28192. 0
  28193. ;
  28194. return 0;
  28195. }
  28196. _ACEOF
  28197. if ac_fn_c_try_compile "$LINENO"; then :
  28198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28199. $as_echo "yes" >&6; }
  28200. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  28201. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  28202. else
  28203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28204. $as_echo "no" >&6; }
  28205. fi
  28206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28207. CPPFLAGS="${saved_cppflags}"
  28208. fi
  28209. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  28210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  28211. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  28212. saved_cppflags="${CPPFLAGS}"
  28213. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  28214. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  28215. fi
  28216. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  28217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28218. /* end confdefs.h. */
  28219. #include <syslog.h>
  28220. int
  28221. main ()
  28222. {
  28223. #if defined(LOG_SYSLOG)
  28224. int foo = 0;
  28225. #else
  28226. int foo = bar;
  28227. #endif
  28228. 0
  28229. ;
  28230. return 0;
  28231. }
  28232. _ACEOF
  28233. if ac_fn_c_try_compile "$LINENO"; then :
  28234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28235. $as_echo "yes" >&6; }
  28236. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  28237. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  28238. else
  28239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28240. $as_echo "no" >&6; }
  28241. fi
  28242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28243. CPPFLAGS="${saved_cppflags}"
  28244. fi
  28245. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  28246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  28247. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  28248. saved_cppflags="${CPPFLAGS}"
  28249. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  28250. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  28251. fi
  28252. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  28253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28254. /* end confdefs.h. */
  28255. #include <syslog.h>
  28256. int
  28257. main ()
  28258. {
  28259. #if defined(LOG_UUCP)
  28260. int foo = 0;
  28261. #else
  28262. int foo = bar;
  28263. #endif
  28264. 0
  28265. ;
  28266. return 0;
  28267. }
  28268. _ACEOF
  28269. if ac_fn_c_try_compile "$LINENO"; then :
  28270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28271. $as_echo "yes" >&6; }
  28272. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  28273. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  28274. else
  28275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28276. $as_echo "no" >&6; }
  28277. fi
  28278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28279. CPPFLAGS="${saved_cppflags}"
  28280. fi
  28281. PBX_SYSLOG=1
  28282. fi
  28283. if test -f makeopts; then
  28284. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  28285. else
  28286. touch makeopts.acbak
  28287. fi
  28288. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
  28289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  28290. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  28291. err=0;
  28292. for i in ${ac_mandatory_list}; do
  28293. eval "a=\${PBX_$i}"
  28294. if test "x${a}" = "x1" ; then continue; fi
  28295. if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  28296. $as_echo "fail" >&6; } ; fi
  28297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  28298. $as_echo "" >&6; }
  28299. eval "a=\${${i}_OPTION}"
  28300. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  28301. $as_echo "$as_me: ***" >&6;}
  28302. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  28303. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  28304. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  28305. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  28306. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  28307. $as_echo "$as_me: *** including --without-${a}." >&6;}
  28308. err=1
  28309. done
  28310. if test $err = 1 ; then exit 1; fi
  28311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  28312. $as_echo "ok" >&6; }
  28313. if test -f build_tools/menuselect-deps; then
  28314. # extract old values of all PBX_ variables from menuselect-deps
  28315. # and preserve them so that menuselect can determine whether
  28316. # any previously-met dependencies are no longer met and warn
  28317. # the user appropriately
  28318. while IFS="=:" read var val old_val; do
  28319. eval "PBX_${var}=\${PBX_${var}}:${val}"
  28320. done < build_tools/menuselect-deps
  28321. fi
  28322. cat >confcache <<\_ACEOF
  28323. # This file is a shell script that caches the results of configure
  28324. # tests run on this system so they can be shared between configure
  28325. # scripts and configure runs, see configure's option --config-cache.
  28326. # It is not useful on other systems. If it contains results you don't
  28327. # want to keep, you may remove or edit it.
  28328. #
  28329. # config.status only pays attention to the cache file if you give it
  28330. # the --recheck option to rerun configure.
  28331. #
  28332. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  28333. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  28334. # following values.
  28335. _ACEOF
  28336. # The following way of writing the cache mishandles newlines in values,
  28337. # but we know of no workaround that is simple, portable, and efficient.
  28338. # So, we kill variables containing newlines.
  28339. # Ultrix sh set writes to stderr and can't be redirected directly,
  28340. # and sets the high bit in the cache file unless we assign to the vars.
  28341. (
  28342. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28343. eval ac_val=\$$ac_var
  28344. case $ac_val in #(
  28345. *${as_nl}*)
  28346. case $ac_var in #(
  28347. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  28348. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  28349. esac
  28350. case $ac_var in #(
  28351. _ | IFS | as_nl) ;; #(
  28352. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  28353. *) { eval $ac_var=; unset $ac_var;} ;;
  28354. esac ;;
  28355. esac
  28356. done
  28357. (set) 2>&1 |
  28358. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28359. *${as_nl}ac_space=\ *)
  28360. # `set' does not quote correctly, so add quotes: double-quote
  28361. # substitution turns \\\\ into \\, and sed turns \\ into \.
  28362. sed -n \
  28363. "s/'/'\\\\''/g;
  28364. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28365. ;; #(
  28366. *)
  28367. # `set' quotes correctly as required by POSIX, so do not add quotes.
  28368. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28369. ;;
  28370. esac |
  28371. sort
  28372. ) |
  28373. sed '
  28374. /^ac_cv_env_/b end
  28375. t clear
  28376. :clear
  28377. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  28378. t end
  28379. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28380. :end' >>confcache
  28381. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28382. if test -w "$cache_file"; then
  28383. if test "x$cache_file" != "x/dev/null"; then
  28384. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  28385. $as_echo "$as_me: updating cache $cache_file" >&6;}
  28386. if test ! -f "$cache_file" || test -h "$cache_file"; then
  28387. cat confcache >"$cache_file"
  28388. else
  28389. case $cache_file in #(
  28390. */* | ?:*)
  28391. mv -f confcache "$cache_file"$$ &&
  28392. mv -f "$cache_file"$$ "$cache_file" ;; #(
  28393. *)
  28394. mv -f confcache "$cache_file" ;;
  28395. esac
  28396. fi
  28397. fi
  28398. else
  28399. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  28400. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  28401. fi
  28402. fi
  28403. rm -f confcache
  28404. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  28405. # Let make expand exec_prefix.
  28406. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28407. DEFS=-DHAVE_CONFIG_H
  28408. ac_libobjs=
  28409. ac_ltlibobjs=
  28410. U=
  28411. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28412. # 1. Remove the extension, and $U if already installed.
  28413. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28414. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  28415. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28416. # will be set to the directory where LIBOBJS objects are built.
  28417. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28418. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  28419. done
  28420. LIBOBJS=$ac_libobjs
  28421. LTLIBOBJS=$ac_ltlibobjs
  28422. : "${CONFIG_STATUS=./config.status}"
  28423. ac_write_fail=0
  28424. ac_clean_files_save=$ac_clean_files
  28425. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  28426. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  28427. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  28428. as_write_fail=0
  28429. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  28430. #! $SHELL
  28431. # Generated by $as_me.
  28432. # Run this file to recreate the current configuration.
  28433. # Compiler output produced by configure, useful for debugging
  28434. # configure, is in config.log if it exists.
  28435. debug=false
  28436. ac_cs_recheck=false
  28437. ac_cs_silent=false
  28438. SHELL=\${CONFIG_SHELL-$SHELL}
  28439. export SHELL
  28440. _ASEOF
  28441. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  28442. ## -------------------- ##
  28443. ## M4sh Initialization. ##
  28444. ## -------------------- ##
  28445. # Be more Bourne compatible
  28446. DUALCASE=1; export DUALCASE # for MKS sh
  28447. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  28448. emulate sh
  28449. NULLCMD=:
  28450. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  28451. # is contrary to our usage. Disable this feature.
  28452. alias -g '${1+"$@"}'='"$@"'
  28453. setopt NO_GLOB_SUBST
  28454. else
  28455. case `(set -o) 2>/dev/null` in #(
  28456. *posix*) :
  28457. set -o posix ;; #(
  28458. *) :
  28459. ;;
  28460. esac
  28461. fi
  28462. as_nl='
  28463. '
  28464. export as_nl
  28465. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  28466. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  28467. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  28468. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  28469. # Prefer a ksh shell builtin over an external printf program on Solaris,
  28470. # but without wasting forks for bash or zsh.
  28471. if test -z "$BASH_VERSION$ZSH_VERSION" \
  28472. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  28473. as_echo='print -r --'
  28474. as_echo_n='print -rn --'
  28475. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  28476. as_echo='printf %s\n'
  28477. as_echo_n='printf %s'
  28478. else
  28479. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  28480. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  28481. as_echo_n='/usr/ucb/echo -n'
  28482. else
  28483. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  28484. as_echo_n_body='eval
  28485. arg=$1;
  28486. case $arg in #(
  28487. *"$as_nl"*)
  28488. expr "X$arg" : "X\\(.*\\)$as_nl";
  28489. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  28490. esac;
  28491. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  28492. '
  28493. export as_echo_n_body
  28494. as_echo_n='sh -c $as_echo_n_body as_echo'
  28495. fi
  28496. export as_echo_body
  28497. as_echo='sh -c $as_echo_body as_echo'
  28498. fi
  28499. # The user is always right.
  28500. if test "${PATH_SEPARATOR+set}" != set; then
  28501. PATH_SEPARATOR=:
  28502. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  28503. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  28504. PATH_SEPARATOR=';'
  28505. }
  28506. fi
  28507. # IFS
  28508. # We need space, tab and new line, in precisely that order. Quoting is
  28509. # there to prevent editors from complaining about space-tab.
  28510. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28511. # splitting by setting IFS to empty value.)
  28512. IFS=" "" $as_nl"
  28513. # Find who we are. Look in the path if we contain no directory separator.
  28514. as_myself=
  28515. case $0 in #((
  28516. *[\\/]* ) as_myself=$0 ;;
  28517. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28518. for as_dir in $PATH
  28519. do
  28520. IFS=$as_save_IFS
  28521. test -z "$as_dir" && as_dir=.
  28522. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28523. done
  28524. IFS=$as_save_IFS
  28525. ;;
  28526. esac
  28527. # We did not find ourselves, most probably we were run as `sh COMMAND'
  28528. # in which case we are not to be found in the path.
  28529. if test "x$as_myself" = x; then
  28530. as_myself=$0
  28531. fi
  28532. if test ! -f "$as_myself"; then
  28533. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28534. exit 1
  28535. fi
  28536. # Unset variables that we do not need and which cause bugs (e.g. in
  28537. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  28538. # suppresses any "Segmentation fault" message there. '((' could
  28539. # trigger a bug in pdksh 5.2.14.
  28540. for as_var in BASH_ENV ENV MAIL MAILPATH
  28541. do eval test x\${$as_var+set} = xset \
  28542. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  28543. done
  28544. PS1='$ '
  28545. PS2='> '
  28546. PS4='+ '
  28547. # NLS nuisances.
  28548. LC_ALL=C
  28549. export LC_ALL
  28550. LANGUAGE=C
  28551. export LANGUAGE
  28552. # CDPATH.
  28553. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28554. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  28555. # ----------------------------------------
  28556. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  28557. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  28558. # script with STATUS, using 1 if that was 0.
  28559. as_fn_error ()
  28560. {
  28561. as_status=$1; test $as_status -eq 0 && as_status=1
  28562. if test "$4"; then
  28563. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  28564. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  28565. fi
  28566. $as_echo "$as_me: error: $2" >&2
  28567. as_fn_exit $as_status
  28568. } # as_fn_error
  28569. # as_fn_set_status STATUS
  28570. # -----------------------
  28571. # Set $? to STATUS, without forking.
  28572. as_fn_set_status ()
  28573. {
  28574. return $1
  28575. } # as_fn_set_status
  28576. # as_fn_exit STATUS
  28577. # -----------------
  28578. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  28579. as_fn_exit ()
  28580. {
  28581. set +e
  28582. as_fn_set_status $1
  28583. exit $1
  28584. } # as_fn_exit
  28585. # as_fn_unset VAR
  28586. # ---------------
  28587. # Portably unset VAR.
  28588. as_fn_unset ()
  28589. {
  28590. { eval $1=; unset $1;}
  28591. }
  28592. as_unset=as_fn_unset
  28593. # as_fn_append VAR VALUE
  28594. # ----------------------
  28595. # Append the text in VALUE to the end of the definition contained in VAR. Take
  28596. # advantage of any shell optimizations that allow amortized linear growth over
  28597. # repeated appends, instead of the typical quadratic growth present in naive
  28598. # implementations.
  28599. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  28600. eval 'as_fn_append ()
  28601. {
  28602. eval $1+=\$2
  28603. }'
  28604. else
  28605. as_fn_append ()
  28606. {
  28607. eval $1=\$$1\$2
  28608. }
  28609. fi # as_fn_append
  28610. # as_fn_arith ARG...
  28611. # ------------------
  28612. # Perform arithmetic evaluation on the ARGs, and store the result in the
  28613. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  28614. # must be portable across $(()) and expr.
  28615. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  28616. eval 'as_fn_arith ()
  28617. {
  28618. as_val=$(( $* ))
  28619. }'
  28620. else
  28621. as_fn_arith ()
  28622. {
  28623. as_val=`expr "$@" || test $? -eq 1`
  28624. }
  28625. fi # as_fn_arith
  28626. if expr a : '\(a\)' >/dev/null 2>&1 &&
  28627. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28628. as_expr=expr
  28629. else
  28630. as_expr=false
  28631. fi
  28632. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28633. as_basename=basename
  28634. else
  28635. as_basename=false
  28636. fi
  28637. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  28638. as_dirname=dirname
  28639. else
  28640. as_dirname=false
  28641. fi
  28642. as_me=`$as_basename -- "$0" ||
  28643. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28644. X"$0" : 'X\(//\)$' \| \
  28645. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  28646. $as_echo X/"$0" |
  28647. sed '/^.*\/\([^/][^/]*\)\/*$/{
  28648. s//\1/
  28649. q
  28650. }
  28651. /^X\/\(\/\/\)$/{
  28652. s//\1/
  28653. q
  28654. }
  28655. /^X\/\(\/\).*/{
  28656. s//\1/
  28657. q
  28658. }
  28659. s/.*/./; q'`
  28660. # Avoid depending upon Character Ranges.
  28661. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28662. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28663. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28664. as_cr_digits='0123456789'
  28665. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28666. ECHO_C= ECHO_N= ECHO_T=
  28667. case `echo -n x` in #(((((
  28668. -n*)
  28669. case `echo 'xy\c'` in
  28670. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  28671. xy) ECHO_C='\c';;
  28672. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  28673. ECHO_T=' ';;
  28674. esac;;
  28675. *)
  28676. ECHO_N='-n';;
  28677. esac
  28678. rm -f conf$$ conf$$.exe conf$$.file
  28679. if test -d conf$$.dir; then
  28680. rm -f conf$$.dir/conf$$.file
  28681. else
  28682. rm -f conf$$.dir
  28683. mkdir conf$$.dir 2>/dev/null
  28684. fi
  28685. if (echo >conf$$.file) 2>/dev/null; then
  28686. if ln -s conf$$.file conf$$ 2>/dev/null; then
  28687. as_ln_s='ln -s'
  28688. # ... but there are two gotchas:
  28689. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  28690. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  28691. # In both cases, we have to default to `cp -pR'.
  28692. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  28693. as_ln_s='cp -pR'
  28694. elif ln conf$$.file conf$$ 2>/dev/null; then
  28695. as_ln_s=ln
  28696. else
  28697. as_ln_s='cp -pR'
  28698. fi
  28699. else
  28700. as_ln_s='cp -pR'
  28701. fi
  28702. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  28703. rmdir conf$$.dir 2>/dev/null
  28704. # as_fn_mkdir_p
  28705. # -------------
  28706. # Create "$as_dir" as a directory, including parents if necessary.
  28707. as_fn_mkdir_p ()
  28708. {
  28709. case $as_dir in #(
  28710. -*) as_dir=./$as_dir;;
  28711. esac
  28712. test -d "$as_dir" || eval $as_mkdir_p || {
  28713. as_dirs=
  28714. while :; do
  28715. case $as_dir in #(
  28716. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  28717. *) as_qdir=$as_dir;;
  28718. esac
  28719. as_dirs="'$as_qdir' $as_dirs"
  28720. as_dir=`$as_dirname -- "$as_dir" ||
  28721. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28722. X"$as_dir" : 'X\(//\)[^/]' \| \
  28723. X"$as_dir" : 'X\(//\)$' \| \
  28724. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  28725. $as_echo X"$as_dir" |
  28726. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28727. s//\1/
  28728. q
  28729. }
  28730. /^X\(\/\/\)[^/].*/{
  28731. s//\1/
  28732. q
  28733. }
  28734. /^X\(\/\/\)$/{
  28735. s//\1/
  28736. q
  28737. }
  28738. /^X\(\/\).*/{
  28739. s//\1/
  28740. q
  28741. }
  28742. s/.*/./; q'`
  28743. test -d "$as_dir" && break
  28744. done
  28745. test -z "$as_dirs" || eval "mkdir $as_dirs"
  28746. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  28747. } # as_fn_mkdir_p
  28748. if mkdir -p . 2>/dev/null; then
  28749. as_mkdir_p='mkdir -p "$as_dir"'
  28750. else
  28751. test -d ./-p && rmdir ./-p
  28752. as_mkdir_p=false
  28753. fi
  28754. # as_fn_executable_p FILE
  28755. # -----------------------
  28756. # Test if FILE is an executable regular file.
  28757. as_fn_executable_p ()
  28758. {
  28759. test -f "$1" && test -x "$1"
  28760. } # as_fn_executable_p
  28761. as_test_x='test -x'
  28762. as_executable_p=as_fn_executable_p
  28763. # Sed expression to map a string onto a valid CPP name.
  28764. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  28765. # Sed expression to map a string onto a valid variable name.
  28766. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  28767. exec 6>&1
  28768. ## ----------------------------------- ##
  28769. ## Main body of $CONFIG_STATUS script. ##
  28770. ## ----------------------------------- ##
  28771. _ASEOF
  28772. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  28773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28774. # Save the log message, to keep $0 and so on meaningful, and to
  28775. # report actual input values of CONFIG_FILES etc. instead of their
  28776. # values after options handling.
  28777. ac_log="
  28778. This file was extended by asterisk $as_me trunk, which was
  28779. generated by GNU Autoconf 2.69. Invocation command line was
  28780. CONFIG_FILES = $CONFIG_FILES
  28781. CONFIG_HEADERS = $CONFIG_HEADERS
  28782. CONFIG_LINKS = $CONFIG_LINKS
  28783. CONFIG_COMMANDS = $CONFIG_COMMANDS
  28784. $ $0 $@
  28785. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  28786. "
  28787. _ACEOF
  28788. case $ac_config_files in *"
  28789. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  28790. esac
  28791. case $ac_config_headers in *"
  28792. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  28793. esac
  28794. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28795. # Files that config.status was made for.
  28796. config_files="$ac_config_files"
  28797. config_headers="$ac_config_headers"
  28798. _ACEOF
  28799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28800. ac_cs_usage="\
  28801. \`$as_me' instantiates files and other configuration actions
  28802. from templates according to the current configuration. Unless the files
  28803. and actions are specified as TAGs, all are instantiated by default.
  28804. Usage: $0 [OPTION]... [TAG]...
  28805. -h, --help print this help, then exit
  28806. -V, --version print version number and configuration settings, then exit
  28807. --config print configuration, then exit
  28808. -q, --quiet, --silent
  28809. do not print progress messages
  28810. -d, --debug don't remove temporary files
  28811. --recheck update $as_me by reconfiguring in the same conditions
  28812. --file=FILE[:TEMPLATE]
  28813. instantiate the configuration file FILE
  28814. --header=FILE[:TEMPLATE]
  28815. instantiate the configuration header FILE
  28816. Configuration files:
  28817. $config_files
  28818. Configuration headers:
  28819. $config_headers
  28820. Report bugs to <https://issues.asterisk.org>."
  28821. _ACEOF
  28822. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28823. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  28824. ac_cs_version="\\
  28825. asterisk config.status trunk
  28826. configured by $0, generated by GNU Autoconf 2.69,
  28827. with options \\"\$ac_cs_config\\"
  28828. Copyright (C) 2012 Free Software Foundation, Inc.
  28829. This config.status script is free software; the Free Software Foundation
  28830. gives unlimited permission to copy, distribute and modify it."
  28831. ac_pwd='$ac_pwd'
  28832. srcdir='$srcdir'
  28833. INSTALL='$INSTALL'
  28834. AWK='$AWK'
  28835. test -n "\$AWK" || AWK=awk
  28836. _ACEOF
  28837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28838. # The default lists apply if the user does not specify any file.
  28839. ac_need_defaults=:
  28840. while test $# != 0
  28841. do
  28842. case $1 in
  28843. --*=?*)
  28844. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28845. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  28846. ac_shift=:
  28847. ;;
  28848. --*=)
  28849. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28850. ac_optarg=
  28851. ac_shift=:
  28852. ;;
  28853. *)
  28854. ac_option=$1
  28855. ac_optarg=$2
  28856. ac_shift=shift
  28857. ;;
  28858. esac
  28859. case $ac_option in
  28860. # Handling of the options.
  28861. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  28862. ac_cs_recheck=: ;;
  28863. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  28864. $as_echo "$ac_cs_version"; exit ;;
  28865. --config | --confi | --conf | --con | --co | --c )
  28866. $as_echo "$ac_cs_config"; exit ;;
  28867. --debug | --debu | --deb | --de | --d | -d )
  28868. debug=: ;;
  28869. --file | --fil | --fi | --f )
  28870. $ac_shift
  28871. case $ac_optarg in
  28872. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  28873. '') as_fn_error $? "missing file argument" ;;
  28874. esac
  28875. as_fn_append CONFIG_FILES " '$ac_optarg'"
  28876. ac_need_defaults=false;;
  28877. --header | --heade | --head | --hea )
  28878. $ac_shift
  28879. case $ac_optarg in
  28880. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  28881. esac
  28882. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  28883. ac_need_defaults=false;;
  28884. --he | --h)
  28885. # Conflict between --help and --header
  28886. as_fn_error $? "ambiguous option: \`$1'
  28887. Try \`$0 --help' for more information.";;
  28888. --help | --hel | -h )
  28889. $as_echo "$ac_cs_usage"; exit ;;
  28890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  28891. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  28892. ac_cs_silent=: ;;
  28893. # This is an error.
  28894. -*) as_fn_error $? "unrecognized option: \`$1'
  28895. Try \`$0 --help' for more information." ;;
  28896. *) as_fn_append ac_config_targets " $1"
  28897. ac_need_defaults=false ;;
  28898. esac
  28899. shift
  28900. done
  28901. ac_configure_extra_args=
  28902. if $ac_cs_silent; then
  28903. exec 6>/dev/null
  28904. ac_configure_extra_args="$ac_configure_extra_args --silent"
  28905. fi
  28906. _ACEOF
  28907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28908. if \$ac_cs_recheck; then
  28909. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  28910. shift
  28911. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  28912. CONFIG_SHELL='$SHELL'
  28913. export CONFIG_SHELL
  28914. exec "\$@"
  28915. fi
  28916. _ACEOF
  28917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28918. exec 5>>config.log
  28919. {
  28920. echo
  28921. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  28922. ## Running $as_me. ##
  28923. _ASBOX
  28924. $as_echo "$ac_log"
  28925. } >&5
  28926. _ACEOF
  28927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28928. _ACEOF
  28929. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28930. # Handling of arguments.
  28931. for ac_config_target in $ac_config_targets
  28932. do
  28933. case $ac_config_target in
  28934. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  28935. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  28936. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  28937. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  28938. esac
  28939. done
  28940. # If the user did not use the arguments to specify the items to instantiate,
  28941. # then the envvar interface is used. Set only those that are not.
  28942. # We use the long form for the default assignment because of an extremely
  28943. # bizarre bug on SunOS 4.1.3.
  28944. if $ac_need_defaults; then
  28945. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  28946. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  28947. fi
  28948. # Have a temporary directory for convenience. Make it in the build tree
  28949. # simply because there is no reason against having it here, and in addition,
  28950. # creating and moving files from /tmp can sometimes cause problems.
  28951. # Hook for its removal unless debugging.
  28952. # Note that there is a small window in which the directory will not be cleaned:
  28953. # after its creation but before its name has been assigned to `$tmp'.
  28954. $debug ||
  28955. {
  28956. tmp= ac_tmp=
  28957. trap 'exit_status=$?
  28958. : "${ac_tmp:=$tmp}"
  28959. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  28960. ' 0
  28961. trap 'as_fn_exit 1' 1 2 13 15
  28962. }
  28963. # Create a (secure) tmp directory for tmp files.
  28964. {
  28965. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  28966. test -d "$tmp"
  28967. } ||
  28968. {
  28969. tmp=./conf$$-$RANDOM
  28970. (umask 077 && mkdir "$tmp")
  28971. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  28972. ac_tmp=$tmp
  28973. # Set up the scripts for CONFIG_FILES section.
  28974. # No need to generate them if there are no CONFIG_FILES.
  28975. # This happens for instance with `./config.status config.h'.
  28976. if test -n "$CONFIG_FILES"; then
  28977. ac_cr=`echo X | tr X '\015'`
  28978. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  28979. # But we know of no other shell where ac_cr would be empty at this
  28980. # point, so we can use a bashism as a fallback.
  28981. if test "x$ac_cr" = x; then
  28982. eval ac_cr=\$\'\\r\'
  28983. fi
  28984. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  28985. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  28986. ac_cs_awk_cr='\\r'
  28987. else
  28988. ac_cs_awk_cr=$ac_cr
  28989. fi
  28990. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  28991. _ACEOF
  28992. {
  28993. echo "cat >conf$$subs.awk <<_ACEOF" &&
  28994. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  28995. echo "_ACEOF"
  28996. } >conf$$subs.sh ||
  28997. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28998. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  28999. ac_delim='%!_!# '
  29000. for ac_last_try in false false false false false :; do
  29001. . ./conf$$subs.sh ||
  29002. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  29003. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  29004. if test $ac_delim_n = $ac_delim_num; then
  29005. break
  29006. elif $ac_last_try; then
  29007. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  29008. else
  29009. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29010. fi
  29011. done
  29012. rm -f conf$$subs.sh
  29013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29014. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  29015. _ACEOF
  29016. sed -n '
  29017. h
  29018. s/^/S["/; s/!.*/"]=/
  29019. p
  29020. g
  29021. s/^[^!]*!//
  29022. :repl
  29023. t repl
  29024. s/'"$ac_delim"'$//
  29025. t delim
  29026. :nl
  29027. h
  29028. s/\(.\{148\}\)..*/\1/
  29029. t more1
  29030. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  29031. p
  29032. n
  29033. b repl
  29034. :more1
  29035. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29036. p
  29037. g
  29038. s/.\{148\}//
  29039. t nl
  29040. :delim
  29041. h
  29042. s/\(.\{148\}\)..*/\1/
  29043. t more2
  29044. s/["\\]/\\&/g; s/^/"/; s/$/"/
  29045. p
  29046. b
  29047. :more2
  29048. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29049. p
  29050. g
  29051. s/.\{148\}//
  29052. t delim
  29053. ' <conf$$subs.awk | sed '
  29054. /^[^""]/{
  29055. N
  29056. s/\n//
  29057. }
  29058. ' >>$CONFIG_STATUS || ac_write_fail=1
  29059. rm -f conf$$subs.awk
  29060. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29061. _ACAWK
  29062. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  29063. for (key in S) S_is_set[key] = 1
  29064. FS = ""
  29065. }
  29066. {
  29067. line = $ 0
  29068. nfields = split(line, field, "@")
  29069. substed = 0
  29070. len = length(field[1])
  29071. for (i = 2; i < nfields; i++) {
  29072. key = field[i]
  29073. keylen = length(key)
  29074. if (S_is_set[key]) {
  29075. value = S[key]
  29076. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  29077. len += length(value) + length(field[++i])
  29078. substed = 1
  29079. } else
  29080. len += 1 + keylen
  29081. }
  29082. print line
  29083. }
  29084. _ACAWK
  29085. _ACEOF
  29086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29087. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  29088. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  29089. else
  29090. cat
  29091. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  29092. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  29093. _ACEOF
  29094. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  29095. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  29096. # trailing colons and then remove the whole line if VPATH becomes empty
  29097. # (actually we leave an empty line to preserve line numbers).
  29098. if test "x$srcdir" = x.; then
  29099. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  29100. h
  29101. s///
  29102. s/^/:/
  29103. s/[ ]*$/:/
  29104. s/:\$(srcdir):/:/g
  29105. s/:\${srcdir}:/:/g
  29106. s/:@srcdir@:/:/g
  29107. s/^:*//
  29108. s/:*$//
  29109. x
  29110. s/\(=[ ]*\).*/\1/
  29111. G
  29112. s/\n//
  29113. s/^[^=]*=[ ]*$//
  29114. }'
  29115. fi
  29116. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29117. fi # test -n "$CONFIG_FILES"
  29118. # Set up the scripts for CONFIG_HEADERS section.
  29119. # No need to generate them if there are no CONFIG_HEADERS.
  29120. # This happens for instance with `./config.status Makefile'.
  29121. if test -n "$CONFIG_HEADERS"; then
  29122. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  29123. BEGIN {
  29124. _ACEOF
  29125. # Transform confdefs.h into an awk script `defines.awk', embedded as
  29126. # here-document in config.status, that substitutes the proper values into
  29127. # config.h.in to produce config.h.
  29128. # Create a delimiter string that does not exist in confdefs.h, to ease
  29129. # handling of long lines.
  29130. ac_delim='%!_!# '
  29131. for ac_last_try in false false :; do
  29132. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  29133. if test -z "$ac_tt"; then
  29134. break
  29135. elif $ac_last_try; then
  29136. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  29137. else
  29138. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29139. fi
  29140. done
  29141. # For the awk script, D is an array of macro values keyed by name,
  29142. # likewise P contains macro parameters if any. Preserve backslash
  29143. # newline sequences.
  29144. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  29145. sed -n '
  29146. s/.\{148\}/&'"$ac_delim"'/g
  29147. t rset
  29148. :rset
  29149. s/^[ ]*#[ ]*define[ ][ ]*/ /
  29150. t def
  29151. d
  29152. :def
  29153. s/\\$//
  29154. t bsnl
  29155. s/["\\]/\\&/g
  29156. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29157. D["\1"]=" \3"/p
  29158. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  29159. d
  29160. :bsnl
  29161. s/["\\]/\\&/g
  29162. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29163. D["\1"]=" \3\\\\\\n"\\/p
  29164. t cont
  29165. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  29166. t cont
  29167. d
  29168. :cont
  29169. n
  29170. s/.\{148\}/&'"$ac_delim"'/g
  29171. t clear
  29172. :clear
  29173. s/\\$//
  29174. t bsnlc
  29175. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  29176. d
  29177. :bsnlc
  29178. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  29179. b cont
  29180. ' <confdefs.h | sed '
  29181. s/'"$ac_delim"'/"\\\
  29182. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  29183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29184. for (key in D) D_is_set[key] = 1
  29185. FS = ""
  29186. }
  29187. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  29188. line = \$ 0
  29189. split(line, arg, " ")
  29190. if (arg[1] == "#") {
  29191. defundef = arg[2]
  29192. mac1 = arg[3]
  29193. } else {
  29194. defundef = substr(arg[1], 2)
  29195. mac1 = arg[2]
  29196. }
  29197. split(mac1, mac2, "(") #)
  29198. macro = mac2[1]
  29199. prefix = substr(line, 1, index(line, defundef) - 1)
  29200. if (D_is_set[macro]) {
  29201. # Preserve the white space surrounding the "#".
  29202. print prefix "define", macro P[macro] D[macro]
  29203. next
  29204. } else {
  29205. # Replace #undef with comments. This is necessary, for example,
  29206. # in the case of _POSIX_SOURCE, which is predefined and required
  29207. # on some systems where configure will not decide to define it.
  29208. if (defundef == "undef") {
  29209. print "/*", prefix defundef, macro, "*/"
  29210. next
  29211. }
  29212. }
  29213. }
  29214. { print }
  29215. _ACAWK
  29216. _ACEOF
  29217. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29218. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  29219. fi # test -n "$CONFIG_HEADERS"
  29220. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  29221. shift
  29222. for ac_tag
  29223. do
  29224. case $ac_tag in
  29225. :[FHLC]) ac_mode=$ac_tag; continue;;
  29226. esac
  29227. case $ac_mode$ac_tag in
  29228. :[FHL]*:*);;
  29229. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  29230. :[FH]-) ac_tag=-:-;;
  29231. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  29232. esac
  29233. ac_save_IFS=$IFS
  29234. IFS=:
  29235. set x $ac_tag
  29236. IFS=$ac_save_IFS
  29237. shift
  29238. ac_file=$1
  29239. shift
  29240. case $ac_mode in
  29241. :L) ac_source=$1;;
  29242. :[FH])
  29243. ac_file_inputs=
  29244. for ac_f
  29245. do
  29246. case $ac_f in
  29247. -) ac_f="$ac_tmp/stdin";;
  29248. *) # Look for the file first in the build tree, then in the source tree
  29249. # (if the path is not absolute). The absolute path cannot be DOS-style,
  29250. # because $ac_f cannot contain `:'.
  29251. test -f "$ac_f" ||
  29252. case $ac_f in
  29253. [\\/$]*) false;;
  29254. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  29255. esac ||
  29256. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  29257. esac
  29258. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  29259. as_fn_append ac_file_inputs " '$ac_f'"
  29260. done
  29261. # Let's still pretend it is `configure' which instantiates (i.e., don't
  29262. # use $as_me), people would be surprised to read:
  29263. # /* config.h. Generated by config.status. */
  29264. configure_input='Generated from '`
  29265. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  29266. `' by configure.'
  29267. if test x"$ac_file" != x-; then
  29268. configure_input="$ac_file. $configure_input"
  29269. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  29270. $as_echo "$as_me: creating $ac_file" >&6;}
  29271. fi
  29272. # Neutralize special characters interpreted by sed in replacement strings.
  29273. case $configure_input in #(
  29274. *\&* | *\|* | *\\* )
  29275. ac_sed_conf_input=`$as_echo "$configure_input" |
  29276. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  29277. *) ac_sed_conf_input=$configure_input;;
  29278. esac
  29279. case $ac_tag in
  29280. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  29281. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  29282. esac
  29283. ;;
  29284. esac
  29285. ac_dir=`$as_dirname -- "$ac_file" ||
  29286. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29287. X"$ac_file" : 'X\(//\)[^/]' \| \
  29288. X"$ac_file" : 'X\(//\)$' \| \
  29289. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  29290. $as_echo X"$ac_file" |
  29291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29292. s//\1/
  29293. q
  29294. }
  29295. /^X\(\/\/\)[^/].*/{
  29296. s//\1/
  29297. q
  29298. }
  29299. /^X\(\/\/\)$/{
  29300. s//\1/
  29301. q
  29302. }
  29303. /^X\(\/\).*/{
  29304. s//\1/
  29305. q
  29306. }
  29307. s/.*/./; q'`
  29308. as_dir="$ac_dir"; as_fn_mkdir_p
  29309. ac_builddir=.
  29310. case "$ac_dir" in
  29311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29312. *)
  29313. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  29314. # A ".." for each directory in $ac_dir_suffix.
  29315. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  29316. case $ac_top_builddir_sub in
  29317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  29319. esac ;;
  29320. esac
  29321. ac_abs_top_builddir=$ac_pwd
  29322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  29323. # for backward compatibility:
  29324. ac_top_builddir=$ac_top_build_prefix
  29325. case $srcdir in
  29326. .) # We are building in place.
  29327. ac_srcdir=.
  29328. ac_top_srcdir=$ac_top_builddir_sub
  29329. ac_abs_top_srcdir=$ac_pwd ;;
  29330. [\\/]* | ?:[\\/]* ) # Absolute name.
  29331. ac_srcdir=$srcdir$ac_dir_suffix;
  29332. ac_top_srcdir=$srcdir
  29333. ac_abs_top_srcdir=$srcdir ;;
  29334. *) # Relative name.
  29335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  29336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  29337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  29338. esac
  29339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  29340. case $ac_mode in
  29341. :F)
  29342. #
  29343. # CONFIG_FILE
  29344. #
  29345. case $INSTALL in
  29346. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  29347. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  29348. esac
  29349. _ACEOF
  29350. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29351. # If the template does not know about datarootdir, expand it.
  29352. # FIXME: This hack should be removed a few years after 2.60.
  29353. ac_datarootdir_hack=; ac_datarootdir_seen=
  29354. ac_sed_dataroot='
  29355. /datarootdir/ {
  29356. p
  29357. q
  29358. }
  29359. /@datadir@/p
  29360. /@docdir@/p
  29361. /@infodir@/p
  29362. /@localedir@/p
  29363. /@mandir@/p'
  29364. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  29365. *datarootdir*) ac_datarootdir_seen=yes;;
  29366. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  29367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  29368. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  29369. _ACEOF
  29370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29371. ac_datarootdir_hack='
  29372. s&@datadir@&$datadir&g
  29373. s&@docdir@&$docdir&g
  29374. s&@infodir@&$infodir&g
  29375. s&@localedir@&$localedir&g
  29376. s&@mandir@&$mandir&g
  29377. s&\\\${datarootdir}&$datarootdir&g' ;;
  29378. esac
  29379. _ACEOF
  29380. # Neutralize VPATH when `$srcdir' = `.'.
  29381. # Shell code in configure.ac might set extrasub.
  29382. # FIXME: do we really want to maintain this feature?
  29383. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29384. ac_sed_extra="$ac_vpsub
  29385. $extrasub
  29386. _ACEOF
  29387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29388. :t
  29389. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  29390. s|@configure_input@|$ac_sed_conf_input|;t t
  29391. s&@top_builddir@&$ac_top_builddir_sub&;t t
  29392. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  29393. s&@srcdir@&$ac_srcdir&;t t
  29394. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  29395. s&@top_srcdir@&$ac_top_srcdir&;t t
  29396. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  29397. s&@builddir@&$ac_builddir&;t t
  29398. s&@abs_builddir@&$ac_abs_builddir&;t t
  29399. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  29400. s&@INSTALL@&$ac_INSTALL&;t t
  29401. $ac_datarootdir_hack
  29402. "
  29403. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  29404. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29405. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  29406. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  29407. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  29408. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  29409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29410. which seems to be undefined. Please make sure it is defined" >&5
  29411. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29412. which seems to be undefined. Please make sure it is defined" >&2;}
  29413. rm -f "$ac_tmp/stdin"
  29414. case $ac_file in
  29415. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  29416. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  29417. esac \
  29418. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29419. ;;
  29420. :H)
  29421. #
  29422. # CONFIG_HEADER
  29423. #
  29424. if test x"$ac_file" != x-; then
  29425. {
  29426. $as_echo "/* $configure_input */" \
  29427. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  29428. } >"$ac_tmp/config.h" \
  29429. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29430. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  29431. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  29432. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  29433. else
  29434. rm -f "$ac_file"
  29435. mv "$ac_tmp/config.h" "$ac_file" \
  29436. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29437. fi
  29438. else
  29439. $as_echo "/* $configure_input */" \
  29440. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  29441. || as_fn_error $? "could not create -" "$LINENO" 5
  29442. fi
  29443. ;;
  29444. esac
  29445. done # for ac_tag
  29446. as_fn_exit 0
  29447. _ACEOF
  29448. ac_clean_files=$ac_clean_files_save
  29449. test $ac_write_fail = 0 ||
  29450. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  29451. # configure is writing to config.log, and then calls config.status.
  29452. # config.status does its own redirection, appending to config.log.
  29453. # Unfortunately, on DOS this fails, as config.log is still kept open
  29454. # by configure, so config.status won't be able to write to it; its
  29455. # output is simply discarded. So we exec the FD to /dev/null,
  29456. # effectively closing config.log, so it can be properly (re)opened and
  29457. # appended to by config.status. When coming back to configure, we
  29458. # need to make the FD available again.
  29459. if test "$no_create" != yes; then
  29460. ac_cs_success=:
  29461. ac_config_status_args=
  29462. test "$silent" = yes &&
  29463. ac_config_status_args="$ac_config_status_args --quiet"
  29464. exec 5>/dev/null
  29465. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  29466. exec 5>>config.log
  29467. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  29468. # would make configure fail if this is the last instruction.
  29469. $ac_cs_success || as_fn_exit 1
  29470. fi
  29471. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  29472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  29473. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  29474. fi
  29475. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  29476. if test "x${ac_cv_path_CMP}" = "x:"; then
  29477. ( cd `pwd`/menuselect && ./configure )
  29478. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  29479. ( cd `pwd`/menuselect && ./configure )
  29480. fi ; fi
  29481. rm makeopts.acbak makeopts.acbak2
  29482. if test "x${silent}" != "xyes" ; then
  29483. echo
  29484. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  29485. echo " .\$7\$7.. .7\$\$7:. "
  29486. echo " .\$\$:. ,\$7.7 "
  29487. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  29488. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  29489. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  29490. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  29491. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  29492. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  29493. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  29494. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  29495. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  29496. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  29497. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  29498. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  29499. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  29500. echo " \$\$\$\$\$ \$\$\$ "
  29501. echo " \$\$\$\$7. \$\$ (TM) "
  29502. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  29503. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  29504. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  29505. echo
  29506. fi
  29507. if test "x${AST_IODBC_FOUND}" = "xyes"; then
  29508. echo "WARNING: iodbc libs/headers found!"
  29509. echo
  29510. echo " If you plan to use ODBC functionality, you should consider"
  29511. echo " switching to unixodbc instead."
  29512. echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
  29513. echo
  29514. fi
  29515. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  29516. $as_echo "$as_me: Package configured for: " >&6;}
  29517. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  29518. $as_echo "$as_me: OS type : $host_os" >&6;}
  29519. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  29520. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  29521. { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  29522. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  29523. { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  29524. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  29525. if test "${cross_compiling}" = "yes"; then
  29526. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  29527. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  29528. fi