1
0

prereq.sh 905 B

123456789101112131415161718192021222324252627
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. # test for existing /usr/include/asm
  4. if [ ! -d "/usr/include/asm" ]; then
  5. echo "ERROR: directory \"/usr/include/asm\" not found."
  6. echo "on some systems this is name asm-generic."
  7. echo "try to create a link to the asm directory with"
  8. echo "\"ln -s /usr/include/asm-generic /usr/include/asm\""
  9. exit 1
  10. fi
  11. # test if all files from the files.needed file are available
  12. for LINE in `cat files.needed`; do
  13. FILE=`echo ${LINE} | awk -F ";" '{print $1}'`
  14. LIB=`echo ${LINE} | awk -F ";" '{print $2}'`
  15. #echo -n "looking for development files of \"${LIB}\"..."
  16. FOUND=`find /usr/include /usr/lib -name "${FILE}" | wc -l`
  17. if [ ${FOUND} -lt 1 ]; then
  18. echo "not found!";
  19. echo "Please install the development header files for the library \"${LIB}\"."
  20. exit 1
  21. fi
  22. done