Paolo Bonzini wrote: > I think the right way would be to set the libdir default to > > $exec_prefix/lib/`$CC -print-multi-os-directory $CFLAGS $CPPFLAGS` Thanks for mentioning -print-multi-os-directory; it is currently undocumented but appears to fit the bill on Linux/x86_64 machines: $ gcc -print-multi-os-directory ../lib64 $ gcc -print-multi-os-directory -m64 ../lib64 $ gcc -print-multi-os-directory -m32 ../lib $ gcc -print-multi-directory . $ gcc -print-multi-directory -m64 . $ gcc -print-multi-directory -m32 32 Some care needs to be taken, though, because the gcc compiler on MacOS X 10.5 (which produces 32-bit code by default) is configured like this: $ gcc -print-multi-os-directory . $ gcc -print-multi-os-directory -m64 x86_64 $ gcc -print-multi-os-directory -m32 . $ gcc -print-multi-directory . $ gcc -print-multi-directory -m64 x86_64 $ gcc -print-multi-directory -m32 . Bruno _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf