Differences From Artifact [8a76db0974]:
- File
configure.ac
— part of check-in
[ccd504e68d]
at
2016-10-15 20:47:45
on branch trunk
— Use NSFoundationVersionNumber to detect Foundation
This is more reliable than checking for CFRetain to see if
CoreFoundation is linked, as CFRetain is always available, even when not
linked against CoreFoundation explicitly. (user: js, size: 34282) [annotate] [blame] [check-ins using]
To Artifact [e8faf65212]:
- File
configure.ac
— part of check-in
[26971c2ea9]
at
2016-12-21 16:22:25
on branch trunk
— Make the readdir_r check an AC_TRY_COMPILE check
glibc recently deprecated readdir_r(). However, AC_CHECK_FUNC only
checks for the symbol, which is still there. This would then result in a
warning during compilation (resulting in an error due to -Werror) as
soon as readdir_r() is used. (user: js, size: 34554) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
844 845 846 847 848 849 850 | ]) AC_CHECK_FUNC(symlink, [ AC_DEFINE(OF_HAVE_SYMLINK, 1, [Whether we have symlink()]) ]) AC_CHECK_FUNC(readlink, [ AC_DEFINE(OF_HAVE_READLINK, 1, [Whether we have readlink()]) ]) | | > > > > > > > > > > > > > > > | 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 | ]) AC_CHECK_FUNC(symlink, [ AC_DEFINE(OF_HAVE_SYMLINK, 1, [Whether we have symlink()]) ]) AC_CHECK_FUNC(readlink, [ AC_DEFINE(OF_HAVE_READLINK, 1, [Whether we have readlink()]) ]) AC_CHECK_FUNCS([lstat]) AC_MSG_CHECKING(for readdir_r) AC_TRY_COMPILE([ #include <dirent.h> ], [ DIR *dir = 0; struct dirent entry, *result; readdir_r(dir, &entry, &result); ], [ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_READDIR_R, 1, [Whether we have readdir_r()]) ], [ AC_MSG_RESULT(no) ]) ]) AC_CHECK_FUNCS([sysconf gmtime_r localtime_r nanosleep fcntl]) AC_CHECK_FUNC(pipe, [ AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()]) ]) |
︙ | ︙ |