diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 13:47:21 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 13:47:21 +0000 |
commit | f975ef203e8aa35a9b7b1c9ea8ea0b971fc6850f (patch) | |
tree | 8626a39e4198293670aa69bbc30d41ace092523d | |
parent | e0b5296be807fdeeb88b55b7823389208ee40fc1 (diff) |
Fix cross-compiling checks for ar, ranlib and windres.
-rw-r--r-- | configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cfb6c79a..38070ea5 100644 --- a/configure.ac +++ b/configure.ac @@ -47,11 +47,18 @@ AC_SUBST([TARGET_PERL]) AC_DEFINE_UNQUOTED([PERL_EXECUTABLE], ["$TARGET_PERL"], [Location of the perl executable]) -AC_CHECK_PROGS([AR], [ar], +AC_CHECK_TOOL([AR], [ar], [AC_MSG_ERROR([[cannot find ar executable]])]) -AC_CHECK_PROGS([RANLIB], [ranlib], +AC_CHECK_TOOL([RANLIB], [ranlib], [AC_MSG_ERROR([[cannot find ranlib executable]])]) +case $target_os in +mingw*) + AC_CHECK_TOOL([WINDRES], [windres], + [AC_MSG_ERROR([[cannot find windres executable]])]) + ;; +esac + ### Checks for libraries. case $target_os in |