diff options
author | Jungshik Shin <jungshik@google.com> | 2013-11-24 10:56:12 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-11-24 10:56:12 -0500 |
commit | ffac11030a7c652808dcbe54ff6fd2ec0ce72209 (patch) | |
tree | f2c0c982d5c9b39e38078078bf00555b71a52fa7 | |
parent | c1d4588d691d443bcfc327471bfb6df01fed8b9e (diff) | |
download | ragel-ffac11030a7c652808dcbe54ff6fd2ec0ce72209.tar.gz |
use AS_IF and test to check if the DIST file is present
AC_CHECK_FILE doesn't work when cross compiling
-rw-r--r-- | configure.in | 6 |
1 files 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 |