/[libtool]/libtool/ltdl.m4
ViewVC logotype

Diff of /libtool/ltdl.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by gary, Sun Aug 5 12:20:45 2001 UTC revision 1.31 by gary, Sun Aug 5 12:29:40 2001 UTC
# Line 135  AC_CACHE_CHECK([whether deplibs are load Line 135  AC_CACHE_CHECK([whether deplibs are load
135    ])    ])
136  if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then  if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
137   AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],   AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
138      [Define if the OS needs help to load dependent libraries for dlopen()])      [Define if the OS needs help to load dependent libraries for dlopen().])
139  fi  fi
140  ])# AC_LTDL_SYS_DLOPEN_DEPLIBS  ])# AC_LTDL_SYS_DLOPEN_DEPLIBS
141    
# Line 156  AC_CACHE_CHECK([which extension is used Line 156  AC_CACHE_CHECK([which extension is used
156    ])    ])
157  if test -n "$libltdl_cv_shlibext"; then  if test -n "$libltdl_cv_shlibext"; then
158    AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",    AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",
159      [Define to the extension used for shared libraries, say, ".so". ])      [Define to the extension used for shared libraries, say, ".so".])
160  fi  fi
161  ])# AC_LTDL_SHLIBEXT  ])# AC_LTDL_SHLIBEXT
162    
# Line 169  AC_CACHE_CHECK([which variable specifies Line 169  AC_CACHE_CHECK([which variable specifies
169    [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"])    [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"])
170  if test -n "$libltdl_cv_shlibpath_var"; then  if test -n "$libltdl_cv_shlibpath_var"; then
171    AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var",    AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var",
172      [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.])
173  fi  fi
174  ])# AC_LTDL_SHLIBPATH  ])# AC_LTDL_SHLIBPATH
175    
# Line 191  if test -n "$libltdl_cv_sys_search_path" Line 191  if test -n "$libltdl_cv_sys_search_path"
191      fi      fi
192    done    done
193    AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path",    AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path",
194      [Define to the system default library search path. ])      [Define to the system default library search path.])
195  fi  fi
196  ])# AC_LTDL_SYSSEARCHPATH  ])# AC_LTDL_SYSSEARCHPATH
197    
# Line 217  AC_DEFUN([AC_LTDL_OBJDIR], Line 217  AC_DEFUN([AC_LTDL_OBJDIR],
217    fi    fi
218    ])    ])
219  AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/",  AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/",
220    [Define to the sub-directory in which libtool stores uninstalled libraries. ])    [Define to the sub-directory in which libtool stores uninstalled libraries.])
221  ])# AC_LTDL_OBJDIR  ])# AC_LTDL_OBJDIR
222    
223    
# Line 235  AC_CACHE_CHECK([whether libtool supports Line 235  AC_CACHE_CHECK([whether libtool supports
235    ])    ])
236  if test x"$libltdl_cv_preloaded_symbols" = xyes; then  if test x"$libltdl_cv_preloaded_symbols" = xyes; then
237    AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1,    AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1,
238      [Define if libtool can extract symbol lists from object files. ])      [Define if libtool can extract symbol lists from object files.])
239  fi  fi
240  ])# AC_LTDL_DLPREOPEN  ])# AC_LTDL_DLPREOPEN
241    
# Line 248  AC_SUBST(LIBADD_DL) Line 248  AC_SUBST(LIBADD_DL)
248  AC_LANG_PUSH([C])  AC_LANG_PUSH([C])
249  AC_CHECK_LIB([dl], [dlopen],  AC_CHECK_LIB([dl], [dlopen],
250    [AC_DEFINE([HAVE_LIBDL], [1],    [AC_DEFINE([HAVE_LIBDL], [1],
251       [Define if you have the libdl library or equivalent. ])       [Define if you have the libdl library or equivalent.])
252     LIBADD_DL="-ldl"],     LIBADD_DL="-ldl"],
253    [AC_TRY_LINK([#if HAVE_DLFCN_H    [AC_TRY_LINK([#if HAVE_DLFCN_H
254  #  include <dlfcn.h>  #  include <dlfcn.h>
# Line 256  AC_CHECK_LIB([dl], [dlopen], Line 256  AC_CHECK_LIB([dl], [dlopen],
256      ],      ],
257      [dlopen();],      [dlopen();],
258      [AC_DEFINE(HAVE_LIBDL, 1,      [AC_DEFINE(HAVE_LIBDL, 1,
259        [Define if you have the libdl library or equivalent. ])],        [Define if you have the libdl library or equivalent.])],
260      [AC_CHECK_LIB(svld, dlopen,      [AC_CHECK_LIB(svld, dlopen,
261        [AC_DEFINE(HAVE_LIBDL, 1,        [AC_DEFINE(HAVE_LIBDL, 1,
262          [Define if you have the libdl library or equivalent. ])          [Define if you have the libdl library or equivalent.])
263        LIBADD_DL="-lsvld"        LIBADD_DL="-lsvld"
264        ])        ])
265      ])      ])
# Line 267  AC_CHECK_LIB([dl], [dlopen], Line 267  AC_CHECK_LIB([dl], [dlopen],
267    
268  AC_CHECK_FUNC(shl_load,  AC_CHECK_FUNC(shl_load,
269    [AC_DEFINE([HAVE_SHL_LOAD], [1],    [AC_DEFINE([HAVE_SHL_LOAD], [1],
270      [Define if you have the shl_load function. ])],      [Define if you have the shl_load function.])],
271    [AC_CHECK_LIB([dld], [shl_load],    [AC_CHECK_LIB([dld], [shl_load],
272      [AC_DEFINE([HAVE_SHL_LOAD], [1],      [AC_DEFINE([HAVE_SHL_LOAD], [1],
273        [Define if you have the shl_load function. ])        [Define if you have the shl_load function.])
274      LIBADD_DL="$LIBADD_DL -ldld"      LIBADD_DL="$LIBADD_DL -ldld"
275      ])      ])
276    ])    ])
# Line 352  fi Line 352  fi
352    
353  if test x"$libltdl_cv_need_uscore" = xyes; then  if test x"$libltdl_cv_need_uscore" = xyes; then
354    AC_DEFINE(NEED_USCORE, 1,    AC_DEFINE(NEED_USCORE, 1,
355      [Define if dlsym() requires a leading underscode in symbol names. ])      [Define if dlsym() requires a leading underscode in symbol names.])
356  fi  fi
357  ])# AC_LTDL_DLSYM_USCORE  ])# AC_LTDL_DLSYM_USCORE
358    
# Line 364  AC_DEFUN([AC_LTDL_FUNC_ARGZ], Line 364  AC_DEFUN([AC_LTDL_FUNC_ARGZ],
364  AC_CHECK_TYPES([error_t],  AC_CHECK_TYPES([error_t],
365    [],    [],
366    [AC_DEFINE([error_t], [int],    [AC_DEFINE([error_t], [int],
367      [Define to a type to use for `error_t' if it is not otherwise available])],      [Define to a type to use for `error_t' if it is not otherwise available.])],
368    [#if HAVE_ARGZ_H    [#if HAVE_ARGZ_H
369  #  include <argz.h>  #  include <argz.h>
370  #endif])  #endif])

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26