3 # Sets fp_prog_ar to a path to ar. Exits if no ar can be found
4 # The host normalization on Windows breaks autoconf, it no longer
5 # thinks that target == host so it never checks the unqualified
6 # tools for Windows. See #14274.
8 [AC_SUBST(fp_prog_ar,$AR)
9 if test -z "$fp_prog_ar"; then
10 if test "$HostOS" = "mingw32"
12 AC_PATH_PROG([fp_prog_ar], [ar])
13 if test -n "$fp_prog_ar"; then
14 fp_prog_ar=$(cygpath -m $fp_prog_ar)
17 AC_CHECK_TARGET_TOOL([AR], [ar])
21 if test -z "$fp_prog_ar"; then
22 AC_MSG_ERROR([cannot find ar in your PATH, no idea how to make a library])