Ignore:
Timestamp:
Jan 13, 2010 4:28:15 PM (14 years ago)
Author:
bennylp
Message:

Ticket #1025: Support for using different PortAudio? installation/path

  • added --with-pa-path configure option
  • remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r3057 r3058  
    389389              ) 
    390390 
     391dnl # PortAudio path. If ac_pa_path is not empty, we're using PortAudio 
     392dnl # in external location (not under third_party) 
     393AC_SUBST(ac_pa_path) 
     394AC_ARG_WITH(pa-path, 
     395    AC_HELP_STRING([--with-pa-path=DIR], 
     396                   [Specify PortAudio alternate location (e.g. /usr). When this option is set, we will not use our copy of PortAudio in third_party directory.]), 
     397    [ 
     398        if test "x$with_pa_path" != "xno"; then 
     399                ac_pa_path=$with_pa_path 
     400                # Remove trailing backslash 
     401                ac_pa_path=`echo $ac_pa_path | sed 's/\/$//'` 
     402                # Test the path 
     403                #if test ! -f $ac_pa_path/include/portaudio.h; then 
     404                #       AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/include/portaudio.h does not exist]) 
     405                #fi 
     406                #if test ! -d $ac_pa_path/lib; then 
     407                #       AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/lib does not exist]) 
     408                #fi 
     409                AC_MSG_RESULT([** Using PortAudio in $ac_pa_path **]) 
     410        fi 
     411    ] 
     412    ) 
     413 
     414 
    391415AC_SUBST(ac_pa_cflags) 
    392416AC_CHECK_HEADER(sys/soundcard.h, 
Note: See TracChangeset for help on using the changeset viewer.