summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-10-31 20:35:24 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-11-01 12:45:48 -0400
commitcc55d8f5ab021861308b071aab9c03016be15187 (patch)
tree6575022e3141753ac7f641dfedde3b175909d9df
parent1d59f5b0387b18028017cfab4e55b703417dd735 (diff)
config: replace AC_CHECK_FILE with test -f as it fails to cross-compile
Testing for the presence of xkbparse.c is legitimate as this is a build file, but the Autoconf macro assumes it is testing on the host system and fails. Tested-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c69230b..8e6bd6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,11 +34,14 @@ XORG_DEFAULT_OPTIONS
34 34
35AM_CONFIG_HEADER(config.h) 35AM_CONFIG_HEADER(config.h)
36 36
37# If both the C file and YACC are missing, the package cannot be build.
37AC_PROG_YACC 38AC_PROG_YACC
38AC_PATH_PROG([YACC_INST], $YACC) 39AC_PATH_PROG([YACC_INST], $YACC)
39AC_CHECK_FILE([$srcdir/xkbparse.c], [], 40if test ! -f "$srcdir/xkbparse.c"; then
40 [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])]) 41 if test -z "$YACC_INST"; then
41 42 AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])
43 fi
44fi
42 45
43AC_CHECK_FUNCS([strdup strcasecmp]) 46AC_CHECK_FUNCS([strdup strcasecmp])
44 47