I want to build a program that use DBUS, using automake/autoconfig tools. But the make command always report an error "dbus/dbus-glib.h": No such file or directory. 

My OS is ubuntu 10.10. And I installed both "dbus-1" and "dbus-glib-1". I check the generated Makefile and found both AM\_CFLAGS and AM\_LDFLAGS are empty.

Could somebody help? Many thanks!

Here is my code:

configure.ac:

```
AC_INIT([my-app], [0.1])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AM_PROG_CC_C_O
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
DBUS_REQUIRED=1.3.1
DBUS_GLIB_REQUIRED=0.82
GLIB_REQUIRED=2.26.0

PKG_CHECK_MODULES(DBUS, [dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED])
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

```

---

Makefile.am:

```
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
bin_PROGRAMS = my_app
my_app_SOURCES = src/my-app.c
AM_CFLAGS= @DBUS_CFLAGS@
AM_LDFLAGS= @DBUS_LIBS@
dist_noinst_SCRIPTS = autogen.sh

```

---

my-app.c

```
...
"#include" {{{<dbus/dbus-glib.h>}}}
...

```