unix (158:6a2d50321e16) unix (216:07257705cd64)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# Linux 3.17 getrandom().
7
8nxt_feature="getrandom()"

--- 59 unchanged lines hidden (view full) ---

68 return 0;
69 }"
70 . auto/feature
71fi
72
73
74# FreeBSD dlopen() is in libc.
75# MacOSX libdl.dylib is a symlink to libSystem.dylib.
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# Linux 3.17 getrandom().
7
8nxt_feature="getrandom()"

--- 59 unchanged lines hidden (view full) ---

68 return 0;
69 }"
70 . auto/feature
71fi
72
73
74# FreeBSD dlopen() is in libc.
75# MacOSX libdl.dylib is a symlink to libSystem.dylib.
76# GCC5 AddressSanitizer intercepts dlopen() and dlclose() but not dlsym()
77# so all dynamic linker functions should be tested.
76
77NXT_LIBDL=
78
79nxt_feature="dlopen()"
80nxt_feature_name=NXT_HAVE_DLOPEN
81nxt_feature_run=
82nxt_feature_incs=
83nxt_feature_libs=
84nxt_feature_test="#include <stdlib.h>
85 #include <dlfcn.h>
86
87 int main() {
78
79NXT_LIBDL=
80
81nxt_feature="dlopen()"
82nxt_feature_name=NXT_HAVE_DLOPEN
83nxt_feature_run=
84nxt_feature_incs=
85nxt_feature_libs=
86nxt_feature_test="#include <stdlib.h>
87 #include <dlfcn.h>
88
89 int main() {
88 dlopen(NULL, 0);
90 void *h = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
91 dlsym(h, \"\");
92 dlclose(h);
89 return 0;
90 }"
91. auto/feature
92
93if [ $nxt_found = no ]; then
94
95 # Linux and Solaris prior to 10 require libdl.
96 # Solaris 10 libdl.so.1 is a filter to /usr/lib/ld.so.1.

--- 41 unchanged lines hidden ---
93 return 0;
94 }"
95. auto/feature
96
97if [ $nxt_found = no ]; then
98
99 # Linux and Solaris prior to 10 require libdl.
100 # Solaris 10 libdl.so.1 is a filter to /usr/lib/ld.so.1.

--- 41 unchanged lines hidden ---