Any 64bit system with 32bit emulation in the kernel can chroot.

As for checking,

cat > dummy.c << "EOF" &&
#include <stdio.h>
int main() {
  printf("Hi!\n");
}
EOF
(gcc -m32 dummy.c -o dummy &&
./dummy | grep "Hi" >/dev/null) || echo "You can not run 32bit programs"

If the program can run it will print Hi. if grep doesn't see Hi you can
take action todo what ever you want.

-- 
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to