Changeset 2494
- Timestamp:
- 04/04/2009 15:02:57 (3 years ago)
- Location:
- box/trunk/infrastructure/m4
- Files:
-
- 2 edited
-
ax_check_dirent_d_type.m4 (modified) (1 diff)
-
ax_check_syscall_lseek.m4 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
r2485 r2494 18 18 AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type], 19 19 [AC_TRY_RUN( 20 [ AC_LANG_PROGRAM([[20 [ 21 21 $ac_includes_default 22 22 #include <dirent.h> 23 ]], [[ 23 int main() 24 { 24 25 DIR* dir = opendir("."); 25 26 struct dirent* res = NULL; 26 27 if(dir) res = readdir(dir); 27 28 return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; 28 ]])], 29 } 30 ], 29 31 [box_cv_have_valid_dirent_d_type=yes], 30 32 [box_cv_have_valid_dirent_d_type=no], -
box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4
r2484 r2494 18 18 AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param], 19 19 [AC_TRY_RUN( 20 [ AC_LANG_PROGRAM([[20 [ 21 21 $ac_includes_default 22 22 #include <fcntl.h> … … 29 29 #define syscall __syscall 30 30 #endif 31 ]], [[ 31 int main() 32 { 32 33 int fh = creat("lseektest", 0600); 33 34 int res = 0; … … 50 51 unlink("lseektest"); 51 52 return res!=-1; 52 ]])], 53 } 54 ], 53 55 [box_cv_have_lseek_dummy_param=yes], 54 56 [box_cv_have_lseek_dummy_param=no],
Note: See TracChangeset
for help on using the changeset viewer.
