Browse Source

Add prefix to rtaudio-config output.

tags/4.1.0
Stephen Sinclair 11 years ago
parent
commit
606e1c1722
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      configure.ac
  2. +1
    -1
      rtaudio-config.in

+ 6
- 0
configure.ac View File

@@ -44,6 +44,12 @@ AC_ARG_ENABLE(debug,
# Checks for functions
AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], )

# Set paths if prefix is defined
if test x"$prefix" != x; then
LIBS="$LIBS -L$prefix/lib"
CPPFLAGS="$CPPFLAGS -I$prefix/include"
fi

# For -I and -D flags
CPPFLAGS="$CPPFLAGS $cppflag"



+ 1
- 1
rtaudio-config.in View File

@@ -9,7 +9,7 @@ CXXFLAGS="@CXXFLAGS@"
CPPFLAGS="@CPPFLAGS@"

if (test "x$1" = "x--libs") ; then
echo "$LIBRARY"
echo "$LIBRARY -lrtaudio"
elif (test "x$1" = "x--cxxflags") ; then
echo "$CXXFLAGS"
elif (test "x$1" = "x--cppflags") ; then


Loading…
Cancel
Save