@@ -347,11 +347,15 @@ fi if test "x$with_tools_dir" != x; then AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time]) fi TOOLS_DIR=$with_devkit/bin + if test -d "$with_devkit/$host_alias/libc"; then SYS_ROOT=$with_devkit/$host_alias/libc + elif test -d "$with_devkit/$host/sys-root"; then + SYS_ROOT=$with_devkit/$host/sys-root + fi ]) ]) AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],