|
Last change
on this file since 3530 was 3529, checked in by bird, 3 years ago |
|
Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.
|
-
Property svn:eol-style
set to
LF
|
|
File size:
983 bytes
|
| Line | |
|---|
| 1 | # serial 12
|
|---|
| 2 |
|
|---|
| 3 | dnl From Jim Meyering.
|
|---|
| 4 | dnl
|
|---|
| 5 | dnl Check whether struct dirent has a member named d_type.
|
|---|
| 6 | dnl
|
|---|
| 7 |
|
|---|
| 8 | # Copyright (C) 1997, 1999-2004, 2006, 2009-2021 Free Software Foundation, Inc.
|
|---|
| 9 | #
|
|---|
| 10 | # This file is free software; the Free Software Foundation
|
|---|
| 11 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 12 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 13 |
|
|---|
| 14 | AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE],
|
|---|
| 15 | [AC_CACHE_CHECK([for d_type member in directory struct],
|
|---|
| 16 | [gl_cv_struct_dirent_d_type],
|
|---|
| 17 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
|---|
| 18 | #include <sys/types.h>
|
|---|
| 19 | #include <dirent.h>
|
|---|
| 20 | ]],
|
|---|
| 21 | [[struct dirent dp; dp.d_type = 0;]])],
|
|---|
| 22 | [gl_cv_struct_dirent_d_type=yes],
|
|---|
| 23 | [gl_cv_struct_dirent_d_type=no])
|
|---|
| 24 | ]
|
|---|
| 25 | )
|
|---|
| 26 | if test $gl_cv_struct_dirent_d_type = yes; then
|
|---|
| 27 | AC_DEFINE([HAVE_STRUCT_DIRENT_D_TYPE], [1],
|
|---|
| 28 | [Define if there is a member named d_type in the struct describing
|
|---|
| 29 | directory headers.])
|
|---|
| 30 | fi
|
|---|
| 31 | ]
|
|---|
| 32 | )
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.