Use $LIB for LD_PRELOAD path in aoss (bug#1390)
lib_LTLIBRARIES = libalsatoss.la libaoss.la
bin_SCRIPTS = aoss
+noinst_SCRIPTS = aoss.old
man_MANS = aoss.1
EXTRA_DIST = aoss.1
COMPATNUM=@LIBTOOL_VERSION_INFO@
prefix=@prefix@
exec_prefix=@exec_prefix@
-LD_PRELOAD=@libdir@/libaoss.so exec "$@"
+LD_PRELOAD=${exec_prefix}/\$LIB/libaoss.so exec "$@"
--- /dev/null
+#!/bin/sh
+
+# A simple script to facilitate the use of the OSS compatibility library.
+# Usage:
+# aoss <command> <command options and arguments>
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+LD_PRELOAD=@libdir@/libaoss.so exec "$@"
LIBS="$OLD_LIBS"
fi
-AC_OUTPUT(Makefile alsa/Makefile alsa/aoss oss-redir/Makefile test/Makefile \
+AC_OUTPUT(Makefile alsa/Makefile alsa/aoss alsa/aoss.old \
+ oss-redir/Makefile test/Makefile \
alsa/testaoss test/testaoss)