The detection whether a 64-bit or 32-bit build is in use does not work right on openSUSE 11.0. The reason is that "gcc -m32 -print-search-dirs" contains a path element /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../ which is the same as /usr/lib64/
2009-04-26 Bruno Haible <[email protected]> Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32". * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in "../" or "..". --- m4/lib-prefix.m4.orig 2009-04-26 18:54:07.000000000 +0200 +++ m4/lib-prefix.m4 2009-04-26 18:52:42.000000000 +0200 @@ -1,5 +1,5 @@ -# lib-prefix.m4 serial 6 (gettext-0.18) -dnl Copyright (C) 2001-2005, 2008 Free Software Foundation, Inc. +# lib-prefix.m4 serial 7 (gettext-0.18) +dnl Copyright (C) 2001-2005, 2008-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -206,6 +206,9 @@ if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;;
