diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 09:39:53 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-08 09:39:53 +0000 |
| commit | f794318d6023a06654ba71626db295d0715c4cad (patch) | |
| tree | 419fa1d0e6d4a18901de0aeea3cba0de5eddacc1 | |
| parent | 225d47185ae261f6b296f699b31fae1c275aaac7 (diff) | |
| download | nginx-f794318d6023a06654ba71626db295d0715c4cad.tar.gz nginx-f794318d6023a06654ba71626db295d0715c4cad.tar.bz2 | |
test whether libdl is required for dynamic linking:
Solaris 10 has dlopen()/etc. in libc
Diffstat (limited to '')
| -rw-r--r-- | auto/lib/openssl/conf | 4 | ||||
| -rwxr-xr-x | auto/unix | 22 |
2 files changed, 24 insertions, 2 deletions
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf index 8e88bd497..ba016481d 100644 --- a/auto/lib/openssl/conf +++ b/auto/lib/openssl/conf @@ -31,7 +31,7 @@ if [ $OPENSSL != NONE ]; then case "$NGX_SYSTEM" in SunOS|Linux) - CORE_LIBS="$CORE_LIBS -ldl" + CORE_LIBS="$CORE_LIBS $NGX_LIBDL" ;; esac @@ -72,7 +72,7 @@ else case "$NGX_SYSTEM" in SunOS) - CORE_LIBS="$CORE_LIBS -ldl" + CORE_LIBS="$CORE_LIBS $NGX_LIBDL" ;; esac fi @@ -185,6 +185,28 @@ if [ $ngx_found != yes ]; then fi +ngx_feature="dlopen()" +ngx_feature_name= +ngx_feature_run=no +ngx_feature_incs="#include <dlfcn.h>" +ngx_feature_path= +ngx_feature_libs= +ngx_feature_test="dlopen(NULL, 0)" +. auto/feature + + +if [ $ngx_found != yes ]; then + + ngx_feature="dlopen() in libdl" + ngx_feature_libs="-ldl" + . auto/feature + + if [ $ngx_found = yes ]; then + NGX_LIBDL="-ldl" + fi +fi + + ngx_feature="mmap(MAP_ANON|MAP_SHARED)" ngx_feature_name="NGX_HAVE_MAP_ANON" ngx_feature_run=yes |
