diff options
author | unknown <svoj@mysql.com> | 2005-06-22 16:29:21 +0500 |
---|---|---|
committer | unknown <svoj@mysql.com> | 2005-06-22 16:29:21 +0500 |
commit | 8790b00ccfaf4e07f37bee38b039b7f91c39e614 (patch) | |
tree | b298a4fc26c8db691ff436e7c6441cb20815a222 /config | |
parent | 6bd6b0dbeefcf8178aef4928f33f1d199431192b (diff) | |
download | mariadb-git-8790b00ccfaf4e07f37bee38b039b7f91c39e614.tar.gz |
Better AR guessing.
configure.in:
Move AR guessing to misc.m4.
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/misc.m4 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4 index e3413048cf7..6f93f38f119 100644 --- a/config/ac-macros/misc.m4 +++ b/config/ac-macros/misc.m4 @@ -737,3 +737,32 @@ then fi AC_SUBST(CXX_VERSION) ]) + +AC_DEFUN([MYSQL_PROG_AR], [ +AC_REQUIRE([MYSQL_CHECK_CXX_VERSION]) +case $CXX_VERSION in + MIPSpro*) + AR=$CXX + ARFLAGS="-ar -o" + ;; + *Forte*) + AR=$CXX + ARFLAGS="-xar -o" + ;; + *) + if test -z "$AR" + then + AC_CHECK_PROG([AR], [ar], [ar]) + fi + if test -z "$AR" + then + AC_MSG_ERROR([You need ar to build the library]) + fi + if test -z "$ARFLAGS" + then + ARFLAGS="cru" + fi +esac +AC_SUBST(AR) +AC_SUBST(ARFLAGS) +]) |