Ignore:
Timestamp:
31/03/2009 13:13:34 (3 years ago)
Author:
chris
Message:

Assume that we have no way to determine whether struct dirent has a
valid d_type when cross-compiling, as this should be the safest option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4

    r2327 r2485  
    1717  if test "x$ac_cv_member_struct_dirent_d_type" = "xyes"; then 
    1818    AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type], 
    19       [AC_RUN_IFELSE( 
     19      [AC_TRY_RUN( 
    2020        [AC_LANG_PROGRAM([[ 
    2121          $ac_includes_default 
     
    2727          return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; 
    2828        ]])], 
    29         [box_cv_have_valid_dirent_d_type=yes], [box_cv_have_valid_dirent_d_type=no] 
     29        [box_cv_have_valid_dirent_d_type=yes], 
     30        [box_cv_have_valid_dirent_d_type=no], 
     31        [box_cv_have_valid_dirent_d_type=cross] 
    3032      )]) 
    3133    if test "x$box_cv_have_valid_dirent_d_type" = "xyes"; then 
Note: See TracChangeset for help on using the changeset viewer.