diff options
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | man/Makefile.am | 4 | ||||
-rw-r--r-- | man/default.pa.5.xml.in | 4 | ||||
-rw-r--r-- | man/pax11publish.1.xml.in | 2 | ||||
-rw-r--r-- | man/pulse-client.conf.5.xml.in | 4 | ||||
-rw-r--r-- | man/pulse-daemon.conf.5.xml.in | 8 | ||||
-rw-r--r-- | man/pulseaudio.1.xml.in | 6 | ||||
-rw-r--r-- | src/Makefile.am | 21 | ||||
-rw-r--r-- | src/daemon/daemon.conf.in | 2 |
9 files changed, 32 insertions, 32 deletions
diff --git a/configure.ac b/configure.ac index 7f7970baa..ab88bb742 100644 --- a/configure.ac +++ b/configure.ac @@ -1098,6 +1098,19 @@ AX_DEFINE_DIR(PA_SYSTEM_CONFIG_PATH, PA_SYSTEM_CONFIG_PATH, [System config dir]) PA_SYSTEM_STATE_PATH="${localstatedir}/lib/pulse" AX_DEFINE_DIR(PA_SYSTEM_STATE_PATH, PA_SYSTEM_STATE_PATH, [System state dir]) +PA_BINARY=${bindir}/pulseaudio${EXEEXT} +AX_DEFINE_DIR(PA_BINARY, PA_BINARY, [Location of pulseaudio binary]) + +PACTL_BINARY=${bindir}/pactl${EXEEXT} +AX_DEFINE_DIR(PACTL_BINARY, PACTL_BINARY, [Location of pactl binary]) + +AC_SUBST(PA_SOEXT, [.so]) + +AC_SUBST(pulseconfdir, ["${sysconfdir}/pulse"]) +AX_DEFINE_DIR(PA_DEFAULT_CONFIG_DIR, pulseconfdir, [Location of configuration files]) + +AC_DEFINE_UNQUOTED(PA_BUILDDIR, "${ac_pwd}/src", [Location of uninstalled binaries]) + #### Mac OSX specific stuff ##### AC_ARG_ENABLE(mac-universal, diff --git a/man/Makefile.am b/man/Makefile.am index 8457e03aa..dd228f7d3 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -15,8 +15,6 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -pulseconfdir=$(sysconfdir)/pulse - CLEANFILES = \ $(noinst_DATA) @@ -35,7 +33,7 @@ noinst_DATA = \ default.pa.5.xml %.xml: %.xml.in Makefile - $(AM_V_GEN) sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \ + $(AM_V_GEN) sed -e 's,@PA_DEFAULT_CONFIG_DIR\@,$(PA_DEFAULT_CONFIG_DIR),g' \ -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \ -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ diff --git a/man/default.pa.5.xml.in b/man/default.pa.5.xml.in index 4caad7c90..1ec618d52 100644 --- a/man/default.pa.5.xml.in +++ b/man/default.pa.5.xml.in @@ -26,13 +26,13 @@ USA. <synopsis> <p><file>~/.pulse/default.pa</file></p> - <p><file>@pulseconfdir@/default.pa</file></p> + <p><file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file></p> </synopsis> <description> <p>The PulseAudio sound server interprets the file <file>~/.pulse/default.pa</file> on startup, and when that file - doesn't exist <file>@pulseconfdir@/default.pa</file>. It + doesn't exist <file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file>. It should contain directives in the PulseAudio CLI languages, as documented on <url href="http://pulseaudio.org/wiki/CLI"/>.</p> diff --git a/man/pax11publish.1.xml.in b/man/pax11publish.1.xml.in index 3b40b9780..be9ce0b81 100644 --- a/man/pax11publish.1.xml.in +++ b/man/pax11publish.1.xml.in @@ -84,7 +84,7 @@ USA. the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables and combines them with the data from <file>~/.pulse/client.conf</file> (or - <file>@pulseconfdir@/client.conf</file> if that file does not + <file>@PA_DEFAULT_CONFIG_DIR@/client.conf</file> if that file does not exist). If specific options are passed on the command line (<opt>-S</opt>, <opt>-O</opt>, <opt>-I</opt>, <opt>-c</opt>, see below), they take precedence. Also uploads the local diff --git a/man/pulse-client.conf.5.xml.in b/man/pulse-client.conf.5.xml.in index 739fae46b..dc9ae0bd5 100644 --- a/man/pulse-client.conf.5.xml.in +++ b/man/pulse-client.conf.5.xml.in @@ -26,14 +26,14 @@ USA. <synopsis> <p><file>~/.pulse/client.conf</file></p> - <p><file>@pulseconfdir@/client.conf</file></p> + <p><file>@PA_DEFAULT_CONFIG_DIR@/client.conf</file></p> </synopsis> <description> <p>The PulseAudio client library reads configuration directives from a file <file>~/.pulse/client.conf</file> on startup and when that file doesn't exist from - <file>@pulseconfdir@/client.conf</file>.</p> + <file>@PA_DEFAULT_CONFIG_DIR@/client.conf</file>.</p> <p>The configuration file is a simple collection of variable declarations. If the configuration file parser encounters either ; diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in index ded3cb48d..6fcdd0ec0 100644 --- a/man/pulse-daemon.conf.5.xml.in +++ b/man/pulse-daemon.conf.5.xml.in @@ -26,14 +26,14 @@ USA. <synopsis> <p><file>~/.pulse/daemon.conf</file></p> - <p><file>@pulseconfdir@/daemon.conf</file></p> + <p><file>@PA_DEFAULT_CONFIG_DIR@/daemon.conf</file></p> </synopsis> <description> <p>The PulseAudio sound server reads configuration directives from a file <file>~/.pulse/daemon.conf</file> on startup and when that file doesn't exist from - <file>@pulseconfdir@/daemon.conf</file>. Please note that the + <file>@PA_DEFAULT_CONFIG_DIR@/daemon.conf</file>. Please note that the server also reads a configuration script on startup <file>default.pa</file> which also contains runtime configuration directives.</p> @@ -262,8 +262,8 @@ USA. default script file. The default behaviour is to load <file>~/.pulse/default.pa</file>, and if that file does not exist fall back to the system wide installed version - <file>@pulseconfdir@/default.pa</file>. If run in system-wide - mode the file <file>@pulseconfdir@/system.pa</file> is used + <file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file>. If run in system-wide + mode the file <file>@PA_DEFAULT_CONFIG_DIR@/system.pa</file> is used instead. If <opt>-n</opt> is passed on the command line or <opt>default-script-file=</opt> is disabled the default configuration script is ignored.</p> diff --git a/man/pulseaudio.1.xml.in b/man/pulseaudio.1.xml.in index 8810e90c8..4e58ffb4c 100644 --- a/man/pulseaudio.1.xml.in +++ b/man/pulseaudio.1.xml.in @@ -314,21 +314,21 @@ USA. <section name="Files"> <p><file>~/.pulse/daemon.conf</file>, - <file>@pulseconfdir@/daemon.conf</file>: configuration settings + <file>@PA_DEFAULT_CONFIG_DIR@/daemon.conf</file>: configuration settings for the PulseAudio daemon. If the version in the user's home directory does not exist the global configuration file is loaded. See <manref name="pulse-daemon.conf" section="5"/> for more information.</p> <p><file>~/.pulse/default.pa</file>, - <file>@pulseconfdir@/default.pa</file>: the default configuration + <file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file>: the default configuration script to execute when the PulseAudio daemon is started. If the version in the user's home directory does not exist the global configuration script is loaded. See <manref name="default.pa" section="5"/> for more information.</p> <p><file>~/.pulse/client.conf</file>, - <file>@pulseconfdir@/client.conf</file>: configuration settings + <file>@PA_DEFAULT_CONFIG_DIR@/client.conf</file>: configuration settings for PulseAudio client applications. If the version in the user's home directory does not exist the global configuration file is loaded. See <manref name="pulse-client.conf" section="5"/> for diff --git a/src/Makefile.am b/src/Makefile.am index d6752731c..98a7385a9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,7 +25,6 @@ pulseincludedir=$(includedir)/pulse pulsecoreincludedir=$(includedir)/pulsecore -pulseconfdir=$(sysconfdir)/pulse pulselibexecdir=$(libexecdir)/pulse if HAVE_X11 xdgautostartdir=$(sysconfdir)/xdg/autostart @@ -39,13 +38,6 @@ dbuspolicydir=$(sysconfdir)/dbus-1/system.d endif ################################### -# Defines # -################################### - -PA_BINARY=$(bindir)/pulseaudio$(EXEEXT) -PA_DEFAULT_CONFIG_DIR=$(pulseconfdir) - -################################### # Compiler/linker flags # ################################### @@ -54,9 +46,6 @@ AM_CFLAGS = \ -I$(top_srcdir)/src/modules \ -I$(top_builddir)/src/modules \ $(PTHREAD_CFLAGS) \ - -DPA_BUILDDIR=\"$(abs_builddir)\" \ - -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\" \ - -DPA_BINARY=\"$(PA_BINARY)\" \ -DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \ -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\" @@ -1896,12 +1885,12 @@ esdcompat: daemon/esdcompat.in Makefile start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ - -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@ + -e 's,@PACTL_BINARY\@,$(PACTL_BINARY),g' < $< > $@ $(AM_V_at) chmod +x start-pulseaudio-x11 start-pulseaudio-kde: daemon/start-pulseaudio-kde.in Makefile $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ - -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@ + -e 's,@PACTL_BINARY\@,$(PACTL_BINARY),g' < $< > $@ $(AM_V_at) chmod +x start-pulseaudio-kde client.conf: pulse/client.conf.in Makefile @@ -1916,16 +1905,16 @@ else default.pa: daemon/default.pa.in Makefile $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \ - -e 's,@PA_SOEXT\@,.so,g' < $< > $@ + -e 's,@PA_SOEXT\@,$(PA_SOEXT),g' < $< > $@ system.pa: daemon/system.pa.in Makefile $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \ - -e 's,@PA_SOEXT\@,.so,g' < $< > $@ + -e 's,@PA_SOEXT\@,$(PA_SOEXT),g' < $< > $@ endif daemon.conf: daemon/daemon.conf.in Makefile $(AM_V_GEN) sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \ - -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@ + -e 's,@PA_DEFAULT_CONFIG_DIR\@,$(PA_DEFAULT_CONFIG_DIR),g' < $< > $@ if OS_IS_WIN32 SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp diff --git a/src/daemon/daemon.conf.in b/src/daemon/daemon.conf.in index 9beba85ee..9eee664cc 100644 --- a/src/daemon/daemon.conf.in +++ b/src/daemon/daemon.conf.in @@ -43,7 +43,7 @@ ; dl-search-path = (depends on architecture) ; load-default-script-file = yes -; default-script-file = @PA_DEFAULT_CONFIG_FILE@ +; default-script-file = @PA_DEFAULT_CONFIG_DIR@/default.pa ; log-target = auto ; log-level = notice |