Skip to content
Snippets Groups Projects
Commit 95f6c710 authored by Jack Moffitt's avatar Jack Moffitt
Browse files

few fixes courtesy of ingo saitz

git-svn-id: http://svn.xiph.org/trunk/ao@967 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 4869b43d
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,6 @@ include_dir="@includedir@" ...@@ -21,9 +21,6 @@ include_dir="@includedir@"
ao_include_dir="@includedir@/@PACKAGE@" ao_include_dir="@includedir@/@PACKAGE@"
lib_dir="@libdir@" lib_dir="@libdir@"
esd_cflags="@ESD_CFLAGS@"
esd_libs="@ESD_LIBS@"
plugin_dir="@plugindir@" plugin_dir="@plugindir@"
usage() usage()
...@@ -92,15 +89,15 @@ if test "$echo_exec_prefix" = "yes"; then ...@@ -92,15 +89,15 @@ if test "$echo_exec_prefix" = "yes"; then
fi fi
if test "$include_dir" != "/usr/include"; then if test "$include_dir" != "/usr/include"; then
cflags="-I$include_dir $esd_cflags" cflags="-I$include_dir"
else else
cflags="$esd_cflags" cflags=""
fi fi
if test "$lib_dir" != "/usr/lib"; then if test "$lib_dir" != "/usr/lib"; then
libs="-L$lib_dir $esd_libs -lao -ldl" libs="-L$lib_dir -lao -ldl"
else else
libs="$esd_libs -lao -ldl" libs="-lao -ldl"
fi fi
if test "$echo_cflags" = "yes"; then if test "$echo_cflags" = "yes"; then
......
...@@ -22,6 +22,7 @@ dnl Check for programs ...@@ -22,6 +22,7 @@ dnl Check for programs
dnl ==================================== dnl ====================================
AC_PROG_CC AC_PROG_CC
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
dnl ==================================== dnl ====================================
...@@ -125,6 +126,11 @@ dnl Check for ALSA ...@@ -125,6 +126,11 @@ dnl Check for ALSA
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no) AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes) AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
if test "x$have_alsa" = xyes; then
ALSA_LIBS="-lasound"
AC_SUBST(ALSA_LIBS)
fi
dnl Check for IRIX dnl Check for IRIX
case $host in case $host in
......
...@@ -130,6 +130,7 @@ void ao_initialize(void) ...@@ -130,6 +130,7 @@ void ao_initialize(void)
if (plugin) { if (plugin) {
driver->next = plugin; driver->next = plugin;
plugin->next = NULL; plugin->next = NULL;
driver = driver->next;
} }
} }
} }
......
...@@ -22,6 +22,7 @@ libdir = $(plugindir) ...@@ -22,6 +22,7 @@ libdir = $(plugindir)
lib_LTLIBRARIES = $(alsaltlibs) lib_LTLIBRARIES = $(alsaltlibs)
libalsa_la_LDFLAGS = $(alsaldflags) libalsa_la_LDFLAGS = $(alsaldflags)
libalsa_la_LIBADD = @ALSA_LIBS@
libalsa_la_SOURCES = $(alsasources) libalsa_la_SOURCES = $(alsasources)
EXTRA_DIST = ao_alsa.c EXTRA_DIST = ao_alsa.c
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment