From d028b59ccaac609f5d9e01907df30f9cecd2595e Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Sat, 16 Apr 2011 20:22:31 -0300 Subject: Find the absolute path to Specifying the header file relative to $(includeir) won't work because it is defined in terms of prefix variable which is redefined during installation to the destination directory. And the dependency check will fail during 'make install' because the header might not be in the destination tree. * config.make.in (X11_KEYSYMDEF_H, SED): New variables. * configure.in: Check for sed. Find X11/keysymdef.h absolute location using the preprocessor and save it in X11_KEYSYMDEF_H variable. * console-client/Makefile (kstoucs_map.c): Use X11_KEYSYMDEF_H to depend on the header file. --- config.make.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.make.in') diff --git a/config.make.in b/config.make.in index 1fbdef1b..6aed976f 100644 --- a/config.make.in +++ b/config.make.in @@ -44,6 +44,7 @@ RANLIB = @RANLIB@ MIG = @MIG@ MIGCOM = $(MIG) -cc cat - /dev/null AWK = @AWK@ +SED = @SED@ # Compilation flags. Append these to the definitions already made by # the specific Makefile. @@ -71,6 +72,7 @@ HAVE_X11 = @have_x11@ X11_CFLAGS = @X11_CFLAGS@ X11_LIBS = @X11_LIBS@ XKB_BASE = @XKB_BASE@ +X11_KEYSYMDEF_H = @X11_KEYSYMDEF_H@ # Installation tools. INSTALL = @INSTALL@ -- cgit v1.2.3