Mailinglist Archive: radeonhd (400 mails)

< Previous Next >
[radeonhd] [patch] Fix builds with srcdir != builddir
  • From: Hans Ulrich Niedermann <hun@xxxxxxxxxxxxxxxx>
  • Date: Wed, 19 Sep 2007 21:50:17 +0200
  • Message-id: <46F17D79.3010904@xxxxxxxxxxxxxxxx>
 configure.ac    |    4 ++--
 src/Makefile.am |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index c357b79..0d94cff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,10 +73,10 @@ AC_ARG_ENABLE(atombios, AC_HELP_STRING([--disable-atombios-parser],
               [do_atombios_parser="$enableval"],
               [do_atombios_parser=yes])
 
-AC_CHECK_FILE([src/AtomBios/includes/atombios.h],
+AC_CHECK_FILE([${srcdir}/src/AtomBios/includes/atombios.h],
               [have_atombios_h="yes"], [have_atombios_h="no"])
 
-AC_CHECK_FILE([src/AtomBios/includes/Decoder.h],
+AC_CHECK_FILE([${srcdir}/src/AtomBios/includes/Decoder.h],
               [have_atombios_parser="yes"], [have_atombios_parser="no"])
 
 AC_MSG_CHECKING([whether to include AtomBIOS])
diff --git a/src/Makefile.am b/src/Makefile.am
index 91719dd..8d0af2d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,7 +42,7 @@ if ATOM_BIOS
 radeonhd_drv_la_SOURCES += \
        atombios.h
 
-INCLUDES = -I./AtomBios/includes
+INCLUDES = -I$(srcdir)/AtomBios/includes
 
 endif
 
@@ -75,4 +75,4 @@ libatom_la_SOURCES = \
 
 radeonhd_drv_la_LIBADD = libatom.la
 
-endif
\ No newline at end of file
+endif

< Previous Next >
This Thread
  • No further messages