diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2013-10-11 18:31:46 +0200 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2013-10-11 18:57:30 +0200 |
| commit | 606e1c1722640db96c6b12bdd524f702891f45ed (patch) | |
| tree | 79cdd62026d770c6bffbc71b469427c80cd9da49 | |
| parent | f4cf104223cde14e2070ef1b97f0405ce4efd937 (diff) | |
Add prefix to rtaudio-config output.
| -rw-r--r-- | configure.ac | 6 | ||||
| -rw-r--r-- | rtaudio-config.in | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6586116..b89fdb0 100644 --- a/configure.ac +++ b/configure.ac @@ -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" diff --git a/rtaudio-config.in b/rtaudio-config.in index e7ff828..5f83d51 100644 --- a/rtaudio-config.in +++ b/rtaudio-config.in @@ -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 |
