[asterisk-bugs] [Asterisk 0016125]: new libpri features not detected with a custom libpri location

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Oct 25 11:24:08 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16125 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16125
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 225760 
Request Review:              
====================================================================== 
Date Submitted:             2009-10-25 10:42 CDT
Last Modified:              2009-10-25 11:24 CDT
====================================================================== 
Summary:                    new libpri features not detected with a custom
libpri location
Description: 
I'm testing the new asterisk trunk and libpri. As I want to avoid
installing libpri over the system copy, I use live_ast with
LIVE_AST_LIBPRI_PATH set to the path in which I built libpri (and the
include symlink added).

Sadly, all the newer features of libpri don't seem to get detected.
Looking a bit at the autoconf code I see in

  autoconf/ast_ext_lib.m4

the macro AST_EXT_LIB_SETUP_DEPENDENT . 

So far I fail to understand how it is supposed to detect its values. For
the moment I resorted to brute force to make Asterisk realise I do have
those things on my system:

Index: autoconf/ast_ext_lib.m4
===================================================================
--- autoconf/ast_ext_lib.m4     (revision 225760)
+++ autoconf/ast_ext_lib.m4     (working copy)
@@ -51,8 +51,9 @@
    fi
 done
 ])
-PBX_$1=0
+PBX_$1=1
 AH_TEMPLATE(m4_bpatsubst([[HAVE_$1]], [(.*)]), [Define to 1 if you have
the $2 library.])
+AC_DEFINE([HAVE_$1], [1])
 AC_SUBST([$1_LIB])
 AC_SUBST([$1_INCLUDE])
 AC_SUBST([$1_DIR])
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-25 11:24 tzafrir        Summary                  new libpri fewtures not
detected with a custom libpri location => new libpri features not detected with
a custom libpri location
======================================================================




More information about the asterisk-bugs mailing list