diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-11-01 13:19:23 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-11-01 13:24:04 -0400 |
commit | ff668395fc408f540604bd534e323b483f52a4ea (patch) | |
tree | d724f66bef19779d3fb4e196ccae79f6a43730de /configure.ac | |
parent | 76ba19a5b0f1ec9515ac802c3c3efaad87f3079f (diff) |
config: replace AC_CHECK_FILE with test -f
* AC_CHECK_FILE doesn't work for cross compilation
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 667a3e7..0644050 100644 --- a/configure.ac +++ b/configure.ac @@ -36,8 +36,11 @@ XORG_DEFAULT_OPTIONS AC_PROG_LEX AC_PROG_YACC AC_PATH_PROG([YACC_INST], $YACC) -AC_CHECK_FILE([$srcdir/gram.c], [], - [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])]) +if test ! -f "gram.c"; then + if test -z "$YACC_INST"; then + AC_MSG_ERROR([yacc not found - unable to compile gram.y]) + fi +fi PKG_CHECK_MODULES(XGC, xaw7 xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` |