| … | |
… | |
| 53 | mempcpy memset mkdir pathconf realpath \ |
53 | mempcpy memset mkdir pathconf realpath \ |
| 54 | rmdir setenv strcasecmp strchr strdup \ |
54 | rmdir setenv strcasecmp strchr strdup \ |
| 55 | strerror strndup strrchr strspn strstr \ |
55 | strerror strndup strrchr strspn strstr \ |
| 56 | ]) |
56 | ]) |
| 57 | |
57 | |
|
|
58 | dnl Some libc's like those on bsd have dlopen() in libc, and not libdl |
|
|
59 | AC_CHECK_LIB([dl], [dlopen], |
|
|
60 | [have_libdl="yes"], |
|
|
61 | [have_libdl="no"] |
|
|
62 | ) |
|
|
63 | if test x"$have_libdl" = xyes ; then |
|
|
64 | LIBDL="-ldl" |
|
|
65 | AC_SUBST([LIBDL]) |
|
|
66 | DL_LIB="dl" |
|
|
67 | else |
|
|
68 | DL_LIB="c" |
|
|
69 | AC_CHECK_LIB([c], [dlopen], |
|
|
70 | [], |
|
|
71 | [AC_MSG_ERROR([Unable to determine library providing dlopen])] |
|
|
72 | ) |
|
|
73 | fi |
|
|
74 | |
| 58 | dnl uClibc doesn't currently provide dlvsym() so lets |
75 | dnl uClibc doesn't currently provide dlvsym() so lets |
| 59 | dnl verify the toolchain supports it |
76 | dnl verify the toolchain supports it |
| 60 | AC_CHECK_LIB([dl], [dlvsym], |
77 | AC_CHECK_LIB([$DL_LIB], [dlvsym], |
| 61 | [AC_DEFINE([HAVE_DLVSYM], [1], [libdl supports dlvsym])], |
78 | [AC_DEFINE([HAVE_DLVSYM], [1], [libdl supports dlvsym])], |
| 62 | [AC_DEFINE([HAVE_DLVSYM], [0], [libdl does not support dlvsym])] |
79 | [AC_DEFINE([HAVE_DLVSYM], [0], [libdl does not support dlvsym])] |
| 63 | ) |
80 | ) |
| 64 | |
81 | |
| 65 | dnl when using libc5, (f)trucate's offset argument type is size_t with |
82 | dnl when using libc5, (f)trucate's offset argument type is size_t with |