Lines 7162-7178
done
Link Here
|
7162 |
for ac_header in dlfcn.h |
7063 |
for ac_header in dlfcn.h |
7163 |
do : |
7064 |
do : |
7164 |
ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
7065 |
ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
7165 |
if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
7066 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7166 |
cat >>confdefs.h <<_ACEOF |
7067 |
cat >>confdefs.h <<_ACEOF |
7167 |
#define HAVE_DLFCN_H 1 |
7068 |
#define HAVE_DLFCN_H 1 |
7168 |
_ACEOF |
7069 |
_ACEOF |
7169 |
DLOPEN_LIBS="-ldl" |
7070 |
|
7170 |
else |
|
|
7171 |
DLOPEN_LIBS="" |
7172 |
fi |
7071 |
fi |
7173 |
done |
7072 |
done |
|
|
7073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
7074 |
$as_echo_n "checking for library containing dlopen... " >&6; } |
7075 |
if ${ac_cv_search_dlopen+:} false; then : |
7076 |
$as_echo_n "(cached) " >&6 |
7077 |
else |
7078 |
ac_func_search_save_LIBS=$LIBS |
7079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7080 |
/* end confdefs.h. */ |
7081 |
|
7082 |
/* Override any GCC internal prototype to avoid an error. |
7083 |
Use char because int might match the return type of a GCC |
7084 |
builtin and then its argument prototype would still apply. */ |
7085 |
#ifdef __cplusplus |
7086 |
extern "C" |
7087 |
#endif |
7088 |
char dlopen (); |
7089 |
int |
7090 |
main () |
7091 |
{ |
7092 |
return dlopen (); |
7093 |
; |
7094 |
return 0; |
7095 |
} |
7096 |
_ACEOF |
7097 |
for ac_lib in '' dl; do |
7098 |
if test -z "$ac_lib"; then |
7099 |
ac_res="none required" |
7100 |
else |
7101 |
ac_res=-l$ac_lib |
7102 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
7103 |
fi |
7104 |
if ac_fn_cxx_try_link "$LINENO"; then : |
7105 |
ac_cv_search_dlopen=$ac_res |
7106 |
fi |
7107 |
rm -f core conftest.err conftest.$ac_objext \ |
7108 |
conftest$ac_exeext |
7109 |
if ${ac_cv_search_dlopen+:} false; then : |
7110 |
break |
7111 |
fi |
7112 |
done |
7113 |
if ${ac_cv_search_dlopen+:} false; then : |
7114 |
|
7115 |
else |
7116 |
ac_cv_search_dlopen=no |
7117 |
fi |
7118 |
rm conftest.$ac_ext |
7119 |
LIBS=$ac_func_search_save_LIBS |
7120 |
fi |
7121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
7122 |
$as_echo "$ac_cv_search_dlopen" >&6; } |
7123 |
ac_res=$ac_cv_search_dlopen |
7124 |
if test "$ac_res" != no; then : |
7125 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7126 |
test "$ac_cv_search_dlopen" = "none required" || DLOPEN_LIBS="-ldl" |
7127 |
else |
7128 |
DLOPEN_LIBS="" |
7129 |
fi |
7130 |
|
7174 |
for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |
7131 |
for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |