Line | |
---|
1 | #serial 8
|
---|
2 |
|
---|
3 | dnl From Jim Meyering.
|
---|
4 | dnl
|
---|
5 | dnl Check whether struct dirent has a member named d_ino.
|
---|
6 | dnl
|
---|
7 |
|
---|
8 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2006 Free Software
|
---|
9 | # Foundation, Inc.
|
---|
10 |
|
---|
11 | # This file is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy and/or distribute it,
|
---|
13 | # with or without modifications, as long as this notice is preserved.
|
---|
14 |
|
---|
15 | AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO],
|
---|
16 | [AC_CACHE_CHECK([for d_ino member in directory struct],
|
---|
17 | jm_cv_struct_dirent_d_ino,
|
---|
18 | [AC_TRY_LINK(dnl
|
---|
19 | [
|
---|
20 | #include <sys/types.h>
|
---|
21 | #include <dirent.h>
|
---|
22 | ],
|
---|
23 | [struct dirent dp; dp.d_ino = 0;],
|
---|
24 |
|
---|
25 | jm_cv_struct_dirent_d_ino=yes,
|
---|
26 | jm_cv_struct_dirent_d_ino=no)
|
---|
27 | ]
|
---|
28 | )
|
---|
29 | if test $jm_cv_struct_dirent_d_ino = yes; then
|
---|
30 | AC_DEFINE(D_INO_IN_DIRENT, 1,
|
---|
31 | [Define if there is a member named d_ino in the struct describing
|
---|
32 | directory headers.])
|
---|
33 | fi
|
---|
34 | ]
|
---|
35 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.