Removed the GST_CONFIG_DIR from config.h and made a -D CFLAG for it instead so that...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 26 Jun 2001 22:15:20 +0000 (22:15 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 26 Jun 2001 22:15:20 +0000 (22:15 +0000)
Original commit message from CVS:
Removed the GST_CONFIG_DIR from config.h and made a -D CFLAG for it
instead so that we can do full expansion on the sysconfdir.

configure.base
gst/Makefile.am
tools/Makefile.am

index 5e4500f..cefa9de 100644 (file)
@@ -796,7 +796,7 @@ esac],
 [USE_PROFILING=no]) dnl Default value
 
 dnl Default value
-GST_CONFIG_DIR="${sysconfdir}/gstreamer"
+GST_CONFIG_DIR=${sysconfdir}/gstreamer
 AC_ARG_WITH(configdir,
 [  --with-configdir             specify path to use for configdir],
 [case "${withval}" in
@@ -1041,7 +1041,7 @@ dnl # Set up some more defines #
 dnl ############################
 
 dnl Set location of configuration dir.
-AC_DEFINE_UNQUOTED(GST_CONFIG_DIR,"$GST_CONFIG_DIR")
+dnl AC_DEFINE_UNQUOTED(GST_CONFIG_DIR,"$GST_CONFIG_DIR")
 AC_SUBST(GST_CONFIG_DIR)
 
 dnl Set location of windows dll dir.
index 3a04ef0..6e42ccd 100644 (file)
@@ -181,7 +181,7 @@ noinst_HEADERS =    \
        gstsparc.h      \
        gstpropsprivate.h
 
-CFLAGS = $(LIBGST_CFLAGS) -D_GNU_SOURCE
+CFLAGS = $(LIBGST_CFLAGS) -D_GNU_SOURCE -DGST_CONFIG_DIR=\""@sysconfdir@/gstreamer"\"
 LIBS = $(LIBGST_LIBS)
 libgst_la_LDFLAGS = -version-info $(GST_LIBVERSION)
 
index d3cc4c2..45351f2 100644 (file)
@@ -5,5 +5,6 @@ man_MANS = gstreamer-launch.1 gstreamer-register.1 gstreamer-inspect.1 \
        gstreamer-complete.1 gstreamer-compprep.1
 
 LDADD = $(GST_LIBS)
+CFLAGS = $(LIBGST_CFLAGS) -DGST_CONFIG_DIR=\""@sysconfdir@/gstreamer"\"
 
 EXTRA_DIST = $(man_MANS)