changeset 1912:613e4c8bd14f

append audacious header path to CPPFLAGS when --prefix is specified. (since js hates CFLAGS in making deps. hehe.)
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 28 Sep 2007 10:39:59 +0900
parents c123420debd7
children fd04ddfb3089 9ea88bd211c2
files configure.ac src/cdaudio-ng/Makefile
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Thu Sep 27 22:28:18 2007 +0200
+++ b/configure.ac	Fri Sep 28 10:39:59 2007 +0900
@@ -22,6 +22,11 @@
 	CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
 fi
 
+dnl append audacious header path to CPPFLAGS when --prefix is specified.
+if test "$prefix" != "NONE" ; then
+   CPPFLAGS="$CPPFLAGS -I${includedir}"
+fi
+
 dnl OMK bootstrap
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])
--- a/src/cdaudio-ng/Makefile	Thu Sep 27 22:28:18 2007 +0200
+++ b/src/cdaudio-ng/Makefile	Fri Sep 28 10:39:59 2007 +0900
@@ -7,6 +7,6 @@
 include ../../buildsys.mk
 include ../../extra.mk
 
-CPPFLAGS = ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${CDIO_CFLAGS} ${CDDB_CFLAGS} -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES}
+CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${CDIO_CFLAGS} ${CDDB_CFLAGS} -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES}
 CFLAGS += ${PLUGIN_CFLAGS}
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${CDIO_LIBS} ${CDDB_LIBS}