diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-13 21:42:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-12-16 13:42:54 -0700 |
commit | afc0578da2868f99075be48f4291bf13cf3c9b10 (patch) | |
tree | efd821b42f96dba764b32a9fcc43402bc6753e57 /configure.ac | |
parent | dc76d75756a47325f5233ff684b05d6c0846e86a (diff) | |
download | gdb-afc0578da2868f99075be48f4291bf13cf3c9b10.zip gdb-afc0578da2868f99075be48f4291bf13cf3c9b10.tar.gz gdb-afc0578da2868f99075be48f4291bf13cf3c9b10.tar.bz2 |
* configure.ac: Add user-friendly check for native x86_64-linux multilibs. * configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 30190d6..b24b33d 100644 --- a/configure.ac +++ b/configure.ac @@ -2879,6 +2879,26 @@ if test x${is_cross_compiler} = xyes ; then target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" fi +# Special user-friendly check for native x86_64-linux build, if +# multilib is not explicitly enabled. +case "$target:$have_compiler:$host:$target:$enable_multilib" in + x86_64-*linux*:yes:$build:$build:) + # Make sure we have a developement environment that handles 32-bit + dev64=no + echo "int main () { return 0; }" > conftest.c + ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c + if test $? = 0 ; then + if test -s conftest || test -s conftest.exe ; then + dev64=yes + fi + fi + rm -f conftest* + if test x${dev64} != xyes ; then + AC_MSG_ERROR([I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.]) + fi + ;; +esac + # Default to --enable-multilib. if test x${enable_multilib} = x ; then target_configargs="--enable-multilib ${target_configargs}" |