diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:02:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:02:57 +0000 |
commit | 118077bd7b0758db852e6e4c5f973255e817668f (patch) | |
tree | 25f3d71e5284507246b8e6fcf9602deb84f4be06 /infrastructure/m4/ax_check_dirent_d_type.m4 | |
parent | 2e2a7ed73051d13908f2c2c7179eb5bd8368c76c (diff) |
Blind fix for autoconf problems introduced by earlier attempt to support
cross-compiling.
Diffstat (limited to 'infrastructure/m4/ax_check_dirent_d_type.m4')
-rw-r--r-- | infrastructure/m4/ax_check_dirent_d_type.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/infrastructure/m4/ax_check_dirent_d_type.m4 b/infrastructure/m4/ax_check_dirent_d_type.m4 index 9c08d391..078a39ee 100644 --- a/infrastructure/m4/ax_check_dirent_d_type.m4 +++ b/infrastructure/m4/ax_check_dirent_d_type.m4 @@ -17,15 +17,17 @@ AC_DEFUN([AX_CHECK_DIRENT_D_TYPE], [ if test "x$ac_cv_member_struct_dirent_d_type" = "xyes"; then AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type], [AC_TRY_RUN( - [AC_LANG_PROGRAM([[ + [ $ac_includes_default #include <dirent.h> - ]], [[ + int main() + { DIR* dir = opendir("."); struct dirent* res = NULL; if(dir) res = readdir(dir); return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; - ]])], + } + ], [box_cv_have_valid_dirent_d_type=yes], [box_cv_have_valid_dirent_d_type=no], [box_cv_have_valid_dirent_d_type=cross] |