From ffac11030a7c652808dcbe54ff6fd2ec0ce72209 Mon Sep 17 00:00:00 2001 From: Jungshik Shin Date: Sun, 24 Nov 2013 10:56:12 -0500 Subject: use AS_IF and test to check if the DIST file is present AC_CHECK_FILE doesn't work when cross compiling --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 4ef153d5..cb075f2b 100644 --- a/configure.in +++ b/configure.in @@ -27,9 +27,9 @@ AC_CONFIG_HEADER(ragel/config.h) dnl Choose defaults for the build_parsers and build_manual vars. If the dist dnl file is present in the root then default to no, otherwise go for it. -AC_CHECK_FILES( $srcdir/DIST, - [ . $srcdir/DIST; ], - [ build_parsers=yes; build_manual=yes; ] ) + +AS_IF([test -r $srcdir/DIST], [. $srcdir/DIST], [build_parsers=yes; + build_manual=yes]) dnl dnl Enable arg to explicitly control the building of the manual -- cgit v1.2.1