Revision 15497,
523 bytes
checked in by ghudson, 24 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r15496,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | AC_DEFUN(AM_GNOME_CHECK_TYPE, |
---|
2 | [AC_CACHE_CHECK([$1 in <sys/types.h>], ac_cv_type_$1, |
---|
3 | [AC_TRY_COMPILE([ |
---|
4 | #include <sys/types.h> |
---|
5 | #if STDC_HEADERS |
---|
6 | #include <stdlib.h> |
---|
7 | #include <stddef.h> |
---|
8 | #endif |
---|
9 | ],[$1 foo;], |
---|
10 | ac_cv_type_$1=yes, ac_cv_type_$1=no)]) |
---|
11 | if test $ac_cv_type_$1 = no; then |
---|
12 | AC_DEFINE($1, $2) |
---|
13 | fi |
---|
14 | ]) |
---|
15 | |
---|
16 | AC_DEFUN(AM_GNOME_SIZE_T, |
---|
17 | [AM_GNOME_CHECK_TYPE(size_t, unsigned) |
---|
18 | AC_PROVIDE([AC_TYPE_SIZE_T]) |
---|
19 | ]) |
---|
20 | |
---|
21 | AC_DEFUN(AM_GNOME_OFF_T, |
---|
22 | [AM_GNOME_CHECK_TYPE(off_t, long) |
---|
23 | AC_PROVIDE([AC_TYPE_OFF_T]) |
---|
24 | ]) |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.