build-sys: Move some more defines to configure.ac

This commit is contained in:
Maarten Bosmans 2011-06-29 15:16:08 +02:00 committed by Colin Guthrie
parent 226ddb1d39
commit e42bc02dc6
9 changed files with 32 additions and 32 deletions

View file

@ -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" PA_SYSTEM_STATE_PATH="${localstatedir}/lib/pulse"
AX_DEFINE_DIR(PA_SYSTEM_STATE_PATH, PA_SYSTEM_STATE_PATH, [System state dir]) 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 ##### #### Mac OSX specific stuff #####
AC_ARG_ENABLE(mac-universal, AC_ARG_ENABLE(mac-universal,

View file

@ -15,8 +15,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA. # USA.
pulseconfdir=$(sysconfdir)/pulse
CLEANFILES = \ CLEANFILES = \
$(noinst_DATA) $(noinst_DATA)
@ -35,7 +33,7 @@ noinst_DATA = \
default.pa.5.xml default.pa.5.xml
%.xml: %.xml.in Makefile %.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_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
-e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@

View file

@ -26,13 +26,13 @@ USA.
<synopsis> <synopsis>
<p><file>~/.pulse/default.pa</file></p> <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> </synopsis>
<description> <description>
<p>The PulseAudio sound server interprets the file <p>The PulseAudio sound server interprets the file
<file>~/.pulse/default.pa</file> on startup, and when that 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 should contain directives in the PulseAudio CLI languages, as
documented on <url href="http://pulseaudio.org/wiki/CLI"/>.</p> documented on <url href="http://pulseaudio.org/wiki/CLI"/>.</p>

View file

@ -84,7 +84,7 @@ USA.
the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE
environment variables and combines them with the data from environment variables and combines them with the data from
<file>~/.pulse/client.conf</file> (or <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 exist). If specific options are passed on the command line
(<opt>-S</opt>, <opt>-O</opt>, <opt>-I</opt>, <opt>-c</opt>, see (<opt>-S</opt>, <opt>-O</opt>, <opt>-I</opt>, <opt>-c</opt>, see
below), they take precedence. Also uploads the local below), they take precedence. Also uploads the local

View file

@ -26,14 +26,14 @@ USA.
<synopsis> <synopsis>
<p><file>~/.pulse/client.conf</file></p> <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> </synopsis>
<description> <description>
<p>The PulseAudio client library reads configuration directives from <p>The PulseAudio client library reads configuration directives from
a file <file>~/.pulse/client.conf</file> on startup and when that a file <file>~/.pulse/client.conf</file> on startup and when that
file doesn't exist from 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 <p>The configuration file is a simple collection of variable
declarations. If the configuration file parser encounters either ; declarations. If the configuration file parser encounters either ;

View file

@ -26,14 +26,14 @@ USA.
<synopsis> <synopsis>
<p><file>~/.pulse/daemon.conf</file></p> <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> </synopsis>
<description> <description>
<p>The PulseAudio sound server reads configuration directives from <p>The PulseAudio sound server reads configuration directives from
a file <file>~/.pulse/daemon.conf</file> on startup and when that a file <file>~/.pulse/daemon.conf</file> on startup and when that
file doesn't exist from 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 server also reads a configuration script on startup
<file>default.pa</file> which also contains runtime configuration <file>default.pa</file> which also contains runtime configuration
directives.</p> directives.</p>
@ -262,8 +262,8 @@ USA.
default script file. The default behaviour is to load default script file. The default behaviour is to load
<file>~/.pulse/default.pa</file>, and if that file does not <file>~/.pulse/default.pa</file>, and if that file does not
exist fall back to the system wide installed version exist fall back to the system wide installed version
<file>@pulseconfdir@/default.pa</file>. If run in system-wide <file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file>. If run in system-wide
mode the file <file>@pulseconfdir@/system.pa</file> is used mode the file <file>@PA_DEFAULT_CONFIG_DIR@/system.pa</file> is used
instead. If <opt>-n</opt> is passed on the command line instead. If <opt>-n</opt> is passed on the command line
or <opt>default-script-file=</opt> is disabled the default or <opt>default-script-file=</opt> is disabled the default
configuration script is ignored.</p> configuration script is ignored.</p>

View file

@ -314,21 +314,21 @@ USA.
<section name="Files"> <section name="Files">
<p><file>~/.pulse/daemon.conf</file>, <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 for the PulseAudio daemon. If the version in the user's home
directory does not exist the global configuration file is directory does not exist the global configuration file is
loaded. See <manref name="pulse-daemon.conf" section="5"/> for loaded. See <manref name="pulse-daemon.conf" section="5"/> for
more information.</p> more information.</p>
<p><file>~/.pulse/default.pa</file>, <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 script to execute when the PulseAudio daemon is started. If the
version in the user's home directory does not exist the global version in the user's home directory does not exist the global
configuration script is loaded. See <manref name="default.pa" configuration script is loaded. See <manref name="default.pa"
section="5"/> for more information.</p> section="5"/> for more information.</p>
<p><file>~/.pulse/client.conf</file>, <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 for PulseAudio client applications. If the version in the user's
home directory does not exist the global configuration file is home directory does not exist the global configuration file is
loaded. See <manref name="pulse-client.conf" section="5"/> for loaded. See <manref name="pulse-client.conf" section="5"/> for

View file

@ -25,7 +25,6 @@
pulseincludedir=$(includedir)/pulse pulseincludedir=$(includedir)/pulse
pulsecoreincludedir=$(includedir)/pulsecore pulsecoreincludedir=$(includedir)/pulsecore
pulseconfdir=$(sysconfdir)/pulse
pulselibexecdir=$(libexecdir)/pulse pulselibexecdir=$(libexecdir)/pulse
if HAVE_X11 if HAVE_X11
xdgautostartdir=$(sysconfdir)/xdg/autostart xdgautostartdir=$(sysconfdir)/xdg/autostart
@ -38,13 +37,6 @@ if HAVE_DBUS
dbuspolicydir=$(sysconfdir)/dbus-1/system.d dbuspolicydir=$(sysconfdir)/dbus-1/system.d
endif endif
###################################
# Defines #
###################################
PA_BINARY=$(bindir)/pulseaudio$(EXEEXT)
PA_DEFAULT_CONFIG_DIR=$(pulseconfdir)
################################### ###################################
# Compiler/linker flags # # Compiler/linker flags #
################################### ###################################
@ -54,9 +46,6 @@ AM_CFLAGS = \
-I$(top_srcdir)/src/modules \ -I$(top_srcdir)/src/modules \
-I$(top_builddir)/src/modules \ -I$(top_builddir)/src/modules \
$(PTHREAD_CFLAGS) \ $(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_PATHS_DIR=\"$(alsapathsdir)\" \
-DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\" -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
@ -1896,12 +1885,12 @@ esdcompat: daemon/esdcompat.in Makefile
start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile
$(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ $(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 $(AM_V_at) chmod +x start-pulseaudio-x11
start-pulseaudio-kde: daemon/start-pulseaudio-kde.in Makefile start-pulseaudio-kde: daemon/start-pulseaudio-kde.in Makefile
$(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ $(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 $(AM_V_at) chmod +x start-pulseaudio-kde
client.conf: pulse/client.conf.in Makefile client.conf: pulse/client.conf.in Makefile
@ -1916,16 +1905,16 @@ else
default.pa: daemon/default.pa.in Makefile default.pa: daemon/default.pa.in Makefile
$(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
-e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),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 system.pa: daemon/system.pa.in Makefile
$(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \ $(AM_V_GEN) sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
-e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \ -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
-e 's,@PA_SOEXT\@,.so,g' < $< > $@ -e 's,@PA_SOEXT\@,$(PA_SOEXT),g' < $< > $@
endif endif
daemon.conf: daemon/daemon.conf.in Makefile daemon.conf: daemon/daemon.conf.in Makefile
$(AM_V_GEN) sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \ $(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 if OS_IS_WIN32
SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp

View file

@ -43,7 +43,7 @@
; dl-search-path = (depends on architecture) ; dl-search-path = (depends on architecture)
; load-default-script-file = yes ; 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-target = auto
; log-level = notice ; log-level = notice