/dpkg-cross/cross-config.sh

http://github.com/brinkman83/bashrc · Shell · 54 lines · 43 code · 2 blank · 9 comment · 6 complexity · f46b50065c749abbbbbcc7851cb7d900 MD5 · raw file

  1. # read in package-specific and global values.
  2. . `dirname $ac_site_file`/cross-config.cache
  3. # now ensure the real architecture-dependent values take priority
  4. # sh specific configure variables
  5. ac_cv_c_char_unsigned=no
  6. ac_cv_func_setpgrp_void=yes
  7. ac_cv_prog_cc_cross=yes
  8. ac_cv_search_clock_gettime=no
  9. ac_cv_sizeof_char=1
  10. ac_cv_sizeof_double=8
  11. ac_cv_sizeof_float=4
  12. ac_cv_sizeof_int=4
  13. ac_cv_sizeof_long=4
  14. ac_cv_sizeof_long_double=12
  15. ac_cv_sizeof_long_long=8
  16. ac_cv_sizeof_short=2
  17. ac_cv_sizeof_signed_char=1
  18. ac_cv_sizeof_unsigned_int=4
  19. ac_cv_sizeof_unsigned_long=4
  20. ac_cv_sizeof_unsigned_long_long=8
  21. ac_cv_sizeof_unsigned_short=2
  22. ac_cv_sizeof_unsigned_short=2
  23. ac_cv_sizeof_void_p=4
  24. ac_cv_sizeof_off_t=4
  25. # DB2, DB3
  26. db_cv_alignp_t=int
  27. db_cv_fcntl_f_setfd=yes
  28. db_cv_mutex=sh/gcc-assembly
  29. db_cv_spinlocks=sh/gcc
  30. db_cv_sprintf_count=yes
  31. # Python
  32. ac_cv_malloc_zero=yes
  33. ac_cv_opt_olimit_ok=no
  34. ac_cv_olimit_ok=no
  35. path=`dirname $ac_site_file`
  36. # now allow package-specific architecture-independent values to be set
  37. if [ -d $path/cross-config.d/sh/ ]; then
  38. for file in `ls $path/cross-config.d/sh/`; do
  39. if [ "$file" = "$PACKAGE" -o "$file" = "$PACKAGE_NAME" ]; then
  40. [ -d $path/cross-config.d/sh/$file ] || . $path/cross-config.d/sh/$file
  41. HAVE_PKG_CACHE=1
  42. fi
  43. done
  44. fi
  45. if [ -z "$HAVE_PKG_CACHE" ]; then
  46. # only needed until the packages provide these directly
  47. # using the mechanism above.
  48. # parted
  49. if [ "$PACKAGE" = "parted" -o "$PACKAGE_NAME" = "GNU parted" ]; then
  50. ac_cv_sizeof_off_t=8
  51. fi
  52. fi