diff options
author | wolfgang <unknown> | 2005-02-10 04:58:09 +0000 |
---|---|---|
committer | wolfgang <unknown> | 2005-02-10 04:58:09 +0000 |
commit | 9449208ea73782c753a2305e251c6ba8d6ec1eb3 (patch) | |
tree | 034696d0dce5c61c48d5468acfc1760f8f8d66e5 /aclocal.m4 | |
parent | 4bc080078789ccd9f1a139b5595d7cdabfb2b70c (diff) | |
download | haskell-9449208ea73782c753a2305e251c6ba8d6ec1eb3.tar.gz |
[project @ 2005-02-10 04:58:09 by wolfgang]
Add a special case for Mac OS X to FP_PROG_AR_NEEDS_RANLIB.
On Mac OS X, we need to run ranlib after installing .a files because
they contain a timestamp which will be outdated after installing.
We could do a proper test for that, but it would contain the command
'sleep 6' and still apply only to one platform.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index a746bc56c3..c5fd6920c5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -484,9 +484,14 @@ AC_SUBST([ArCmd], ["$fp_prog_ar $fp_prog_ar_args"]) AC_DEFUN([FP_PROG_AR_NEEDS_RANLIB], [AC_REQUIRE([FP_PROG_AR_IS_GNU]) AC_REQUIRE([FP_PROG_AR_ARGS]) +AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether ranlib is needed], [fp_cv_prog_ar_needs_ranlib], [if test $fp_prog_ar_is_gnu = yes; then fp_cv_prog_ar_needs_ranlib=no +elif test $TargetPlatform = powerpc-apple-darwin; then + # It's quite tedious to check for Apple's crazy timestamps in .a files, + # so we hardcode it. + fp_cv_prog_ar_needs_ranlib=yes elif echo $fp_prog_ar_args | grep "s" > /dev/null 2> /dev/null; then fp_cv_prog_ar_needs_ranlib=no else |