Changeset 835


Ignore:
Timestamp:
Nov 8, 2009, 8:35:34 PM (12 years ago)
Author:
Peter Johansson
Message:

avoid using AC_CHECK_FILE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r819 r835  
    114114
    115115AS_IF([test "x$enable_svn_support" = xyes],
    116       [AC_CHECK_FILE([$srcdir/.svn],,
    117                      [AC_MSG_ERROR([svn support cannot be enabled: `$srcdir' is not an svn wc.])])])
     116      [AS_IF([test -d $srcdir/.svn], [],
     117             [AC_MSG_ERROR([svn support cannot be enabled: `$srcdir' is not an svn wc.])])])
    118118AM_CONDITIONAL([ENABLE_SVN_SUPPORT], [test "x$enable_svn_support" = "xyes"])
    119119
     
    179179
    180180# checking if we build in a subversion WC
    181 AC_CHECK_FILE([$srcdir/.svn], [wc_found="yes"], [wc_found="no"])
     181AS_IF([test -d $srcdir/.svn], [wc_found="yes"], [wc_found="no"])
    182182AM_CONDITIONAL([HAVE_SVN_WC], [test "$wc_found" = "yes"])
    183183AC_SUBST([wc_found])
     
    185185# checking if we have test repo
    186186test_repo_filename=$srcdir/test/repo;
    187 AC_CHECK_FILE([$test_repo_filename],
     187AS_IF([test -r $test_repo_filename],
    188188              [AC_DEFINE([HAVE_TEST_REPO],[1],[define if test repo is available])
    189189               test_repo_found="yes"],
Note: See TracChangeset for help on using the changeset viewer.