42 |
if test "x$with_included_ltdl" = xno; then |
if test "x$with_included_ltdl" = xno; then |
43 |
# If the included ltdl is not to be used. then Use the |
# If the included ltdl is not to be used. then Use the |
44 |
# preinstalled libltdl we found. |
# preinstalled libltdl we found. |
45 |
AC_DEFINE([HAVE_LTDL], 1, |
AC_DEFINE([HAVE_LTDL], [1], |
46 |
[Define this if a modern libltdl is already installed]) |
[Define this if a modern libltdl is already installed]) |
47 |
LIBLTDL=-lltdl |
LIBLTDL=-lltdl |
48 |
fi |
fi |
195 |
eval libltdl_cv_shlibext=$shrext_cmds |
eval libltdl_cv_shlibext=$shrext_cmds |
196 |
]) |
]) |
197 |
if test -n "$libltdl_cv_shlibext"; then |
if test -n "$libltdl_cv_shlibext"; then |
198 |
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", |
AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$libltdl_cv_shlibext"], |
199 |
[Define to the extension used for shared libraries, say, ".so".]) |
[Define to the extension used for shared libraries, say, ".so".]) |
200 |
fi |
fi |
201 |
])# AC_LTDL_SHLIBEXT |
])# AC_LTDL_SHLIBEXT |
208 |
AC_CACHE_CHECK([which variable specifies run-time library path], |
AC_CACHE_CHECK([which variable specifies run-time library path], |
209 |
[libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) |
[libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) |
210 |
if test -n "$libltdl_cv_shlibpath_var"; then |
if test -n "$libltdl_cv_shlibpath_var"; then |
211 |
AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", |
AC_DEFINE_UNQUOTED([LTDL_SHLIBPATH_VAR], ["$libltdl_cv_shlibpath_var"], |
212 |
[Define to the name of the environment variable that determines the dynamic library search path.]) |
[Define to the name of the environment variable that determines the dynamic library search path.]) |
213 |
fi |
fi |
214 |
])# AC_LTDL_SHLIBPATH |
])# AC_LTDL_SHLIBPATH |
230 |
sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
231 |
fi |
fi |
232 |
done |
done |
233 |
AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", |
AC_DEFINE_UNQUOTED([LTDL_SYSSEARCHPATH], ["$sys_search_path"], |
234 |
[Define to the system default library search path.]) |
[Define to the system default library search path.]) |
235 |
fi |
fi |
236 |
])# AC_LTDL_SYSSEARCHPATH |
])# AC_LTDL_SYSSEARCHPATH |
256 |
rmdir .libs 2>/dev/null |
rmdir .libs 2>/dev/null |
257 |
fi |
fi |
258 |
]) |
]) |
259 |
AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", |
AC_DEFINE_UNQUOTED([LTDL_OBJDIR], ["$libltdl_cv_objdir/"], |
260 |
[Define to the sub-directory in which libtool stores uninstalled libraries.]) |
[Define to the sub-directory in which libtool stores uninstalled libraries.]) |
261 |
])# AC_LTDL_OBJDIR |
])# AC_LTDL_OBJDIR |
262 |
|
|
274 |
fi |
fi |
275 |
]) |
]) |
276 |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
277 |
AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, |
AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], |
278 |
[Define if libtool can extract symbol lists from object files.]) |
[Define if libtool can extract symbol lists from object files.]) |
279 |
fi |
fi |
280 |
])# AC_LTDL_DLPREOPEN |
])# AC_LTDL_DLPREOPEN |
393 |
fi |
fi |
394 |
|
|
395 |
if test x"$libltdl_cv_need_uscore" = xyes; then |
if test x"$libltdl_cv_need_uscore" = xyes; then |
396 |
AC_DEFINE(NEED_USCORE, 1, |
AC_DEFINE([NEED_USCORE], [1], |
397 |
[Define if dlsym() requires a leading underscore in symbol names.]) |
[Define if dlsym() requires a leading underscore in symbol names.]) |
398 |
fi |
fi |
399 |
])# AC_LTDL_DLSYM_USCORE |
])# AC_LTDL_DLSYM_USCORE |