[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fluid-dev] [PATCH 3/9] Define the default soundfont in configure.ac
From: |
Antonio Ospite |
Subject: |
[fluid-dev] [PATCH 3/9] Define the default soundfont in configure.ac |
Date: |
Wed, 8 Oct 2014 16:08:19 +0200 |
Fix this compilation error when using autotools:
synth/fluid_synth.c: In function 'fluid_synth_settings':
synth/fluid_synth.c:193:10: error: 'DEFAULT_SOUNDFONT' undeclared (first use
in this function)
DEFAULT_SOUNDFONT, 0, NULL, NULL);
---
fluidsynth/configure.ac | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/fluidsynth/configure.ac b/fluidsynth/configure.ac
index 90e58ab..50b6a06 100644
--- a/fluidsynth/configure.ac
+++ b/fluidsynth/configure.ac
@@ -88,6 +88,16 @@ solaris*)
;;
esac
+dnl Default soundfont path
+case "${host_os}" in
+mingw*)
+ AC_DEFINE(DEFAULT_SOUNDFONT, "C:\\\\soundfonts\\\\default.sf2", [Default
soundfont])
+ ;;
+ *)
+ AC_DEFINE(DEFAULT_SOUNDFONT, "share/soundfonts/default.sf2", [Default
soundfont])
+ ;;
+esac
+
AC_SUBST(LIBFLUID_LIBS)
AC_SUBST(LIBFLUID_CPPFLAGS)
AC_SUBST(LIBFLUID_LDFLAGS)
--
2.1.1
- [fluid-dev] [PATCH 0/9] autotools updates, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 7/9] Remove some autotools files which will be installed by autoreconf, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 9/9] Add a .gitignore file, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 5/9] Fix indentation in configure.ac, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 4/9] Update configure.ac as suggested by the autoupdate program, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 3/9] Define the default soundfont in configure.ac,
Antonio Ospite <=
- [fluid-dev] [PATCH 8/9] Add support for automake silent rules, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 2/9] Don't use the old INCLUDES name in src/Makefile.am, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 6/9] Use autoreconf in autogen.sh instead of calling auto programs manually, Antonio Ospite, 2014/10/08
- [fluid-dev] [PATCH 1/9] Don't use the deprecated AM_INIT_AUTOMAKE two-arguments form, Antonio Ospite, 2014/10/08
- Re: [fluid-dev] [PATCH 0/9] autotools updates, Antonio Ospite, 2014/10/31