> How about changing the libdir default (currently $exec_prefix/lib) to be > $exec_prefix/lib64 or $exec_prefix/lib/64, respectively, when > - not cross-compiling, and > - $CC $CPPFLAGS generates 64-bit mode object files, and > - 64-bit mode object files are installed in /usr/lib64 or /usr/lib/64, > not in /usr/lib ? I think the right way would be to set the libdir default to $exec_prefix/lib/`$CC -print-multi-os-directory $CFLAGS $CPPFLAGS` possibly with magic to remove .. like this: if test "$GCC" = yes; then ac_multilibdir=`$CC -print-multi-os-directory $CFLAGS $CPPFLAGS` else ac_multilibdir=. fi case "$ac_multilibdir" in # I don't know if the first two cases can happen, but it would be a # bad idea to override $exec_prefix /* | ../../* | .) libdir=lib ;; ../*) libdir=`echo $ac_multilibdir | sed 's/^...//' ` ;; *) libdir=lib/$ac_multilibdir ;; esac libdir='${exec_prefix}/'$libdir Paolo _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf