diff options
author | Ian Lynagh <igloo@earth.li> | 2012-05-20 21:50:38 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-05-20 21:50:38 +0100 |
commit | c5fcd2226d726efc1d24e80ed2c7d23d049a13fa (patch) | |
tree | 001f5eb7a894ba4415349229127acc34fc59b614 /aclocal.m4 | |
parent | e8121501ee3549a35e954726ccfd871ac9d51f83 (diff) | |
download | haskell-c5fcd2226d726efc1d24e80ed2c7d23d049a13fa.tar.gz |
Fix ar detection
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 857e5f751e..d873034b1a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -967,8 +967,7 @@ AC_SUBST([LdHasNoCompactUnwind]) # FP_PROG_AR # ---------- -# Sets fp_prog_ar_raw to the full path of ar and fp_prog_ar to a non-Cygwin -# version of it. Exits if no ar can be found +# Sets fp_prog_ar to a (non-Cygwin) path to ar. Exits if no ar can be found AC_DEFUN([FP_PROG_AR], [FP_PATH_PROG([fp_prog_ar], [ar]) if test -z "$fp_prog_ar"; then @@ -982,8 +981,8 @@ fi # Sets fp_prog_ar_is_gnu to yes or no, depending on whether it is GNU ar or not. AC_DEFUN([FP_PROG_AR_IS_GNU], [AC_REQUIRE([FP_PROG_AR]) -AC_CACHE_CHECK([whether $fp_prog_ar_raw is GNU ar], [fp_cv_prog_ar_is_gnu], -[if "$fp_prog_ar_raw" --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then +AC_CACHE_CHECK([whether $fp_prog_ar is GNU ar], [fp_cv_prog_ar_is_gnu], +[if "$fp_prog_ar" --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then fp_cv_prog_ar_is_gnu=yes else fp_cv_prog_ar_is_gnu=no @@ -1000,14 +999,14 @@ AC_SUBST([ArIsGNUAr], [`echo $fp_prog_ar_is_gnu | tr 'a-z' 'A-Z'`]) AC_DEFUN([FP_PROG_AR_SUPPORTS_ATFILE], [AC_REQUIRE([FP_PROG_AR]) AC_REQUIRE([FP_PROG_AR_ARGS]) -AC_CACHE_CHECK([whether $fp_prog_ar_raw supports @file], [fp_cv_prog_ar_supports_atfile], +AC_CACHE_CHECK([whether $fp_prog_ar supports @file], [fp_cv_prog_ar_supports_atfile], [ rm -f conftest* touch conftest.file echo conftest.file > conftest.atfile echo conftest.file >> conftest.atfile -"$fp_prog_ar_raw" $fp_prog_ar_args conftest.a @conftest.atfile > /dev/null 2>&1 -fp_prog_ar_supports_atfile_tmp=`"$fp_prog_ar_raw" t conftest.a 2> /dev/null | grep -c conftest.file` +"$fp_prog_ar" $fp_prog_ar_args conftest.a @conftest.atfile > /dev/null 2>&1 +fp_prog_ar_supports_atfile_tmp=`"$fp_prog_ar" t conftest.a 2> /dev/null | grep -c conftest.file` rm -f conftest* if test "$fp_prog_ar_supports_atfile_tmp" -eq 2 then @@ -1036,14 +1035,14 @@ else touch conftest.dummy for fp_var in clqsZ clqs cqs clq cq ; do rm -f conftest.a - if "$fp_prog_ar_raw" $fp_var conftest.a conftest.dummy > /dev/null 2> /dev/null; then + if "$fp_prog_ar" $fp_var conftest.a conftest.dummy > /dev/null 2> /dev/null; then fp_cv_prog_ar_args=$fp_var break fi done rm -f conftest* if test -z "$fp_cv_prog_ar_args"; then - AC_MSG_ERROR([cannot figure out how to use your $fp_prog_ar_raw]) + AC_MSG_ERROR([cannot figure out how to use your $fp_prog_ar]) fi fi]) fp_prog_ar_args=$fp_cv_prog_ar_args |