configure: support biarch builds with --multiarch=lib64

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2014-02-05 15:45:36 -05:00
parent 95480c64ff
commit d7fa4103f5
2 changed files with 14 additions and 4 deletions

9
configure vendored
View File

@ -11379,8 +11379,13 @@ fi
# Check whether --with-multiarch was given.
if test "${with_multiarch+set}" = set; then :
withval=$with_multiarch; libdir=$libdir/$withval
root_libdir=$root_libdir/$withval
withval=$with_multiarch; if test "$withval" = "lib64"; then
libdir=/usr/lib64
root_libdir=/lib64
else
libdir=$libdir/$withval
root_libdir=$root_libdir/$withval
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5

View File

@ -1225,8 +1225,13 @@ dnl Allow specification of the multiarch arch
dnl
AC_ARG_WITH([multiarch],
[ --with-multiarch=ARCH specify the multiarch triplet],
libdir=$libdir/$withval
root_libdir=$root_libdir/$withval
if test "$withval" = "lib64"; then
libdir=/usr/lib64
root_libdir=/lib64
else
libdir=$libdir/$withval
root_libdir=$root_libdir/$withval
fi
)dnl
dnl
dnl See if -static works. This could fail if the linker does not