Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (22 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/m4/ltdl.m4

    r5495 r5496  
    11# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
    22#
    3 #   Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
     3#   Copyright (C) 1999-2006, 2007, 2008, 2011 Free Software Foundation, Inc.
    44#   Written by Thomas Tanner, 1999
    55#
     
    88# modifications, as long as this notice is preserved.
    99
    10 # serial 20 LTDL_INIT
     10# serial 18 LTDL_INIT
    1111
    1212# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
     
    2525m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
    2626m4_case(_LTDL_DIR,
    27         [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
     27        [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
    2828             m4_if(_ARG_DIR, [.],
    2929                     [],
     
    3232    [m4_if(_ARG_DIR, _LTDL_DIR,
    3333            [],
    34         [m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
     34        [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
    3535m4_popdef([_ARG_DIR])
    3636])# _LT_CONFIG_LTDL_DIR
     
    4242# _LT_BUILD_PREFIX
    4343# ----------------
    44 # If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
    45 # to '$(top_builddir)/'.
     44# If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
     45# to `${top_builddir}/'.
    4646m4_define([_LT_BUILD_PREFIX],
    4747[m4_ifdef([AC_AUTOCONF_VERSION],
    4848   [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
    4949          [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
    50                           [$(top_build_prefix)],
    51                           [$(top_builddir)/])],
    52           [$(top_build_prefix)])],
    53    [$(top_builddir)/])[]dnl
     50                          [${top_build_prefix}],
     51                          [${top_builddir}/])],
     52          [${top_build_prefix}])],
     53   [${top_builddir}/])[]dnl
    5454])
    5555
     
    6161# --enable-ltdl-convenience to the configure arguments.  Note that
    6262# AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
    63 # '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
    64 # and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
     63# '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
     64# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
    6565# quotes!).  If your package is not flat and you're not using automake,
    6666# define top_build_prefix, top_builddir, and top_srcdir appropriately
     
    9898LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
    9999LTDLDEPS=$LIBLTDL
    100 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
     100LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
    101101
    102102AC_SUBST([LIBLTDL])
     
    105105
    106106# For backwards non-gettext consistent compatibility...
    107 INCLTDL=$LTDLINCL
     107INCLTDL="$LTDLINCL"
    108108AC_SUBST([INCLTDL])
    109109])# _LTDL_CONVENIENCE
     
    116116# --enable-ltdl-install to the configure arguments.  Note that
    117117# AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
    118 # is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
    119 # available, otherwise with '$(top_builddir)/', and LTDLINCL will be
    120 # prefixed with '$(top_srcdir)/' (note the single quotes!).  If your
     118# is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
     119# available, otherwise with '${top_builddir}/', and LTDLINCL will be
     120# prefixed with '${top_srcdir}/' (note the single quotes!).  If your
    121121# package is not flat and you're not using automake, define top_build_prefix,
    122122# top_builddir, and top_srcdir appropriately in your Makefiles.
     
    147147# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
    148148m4_defun([_LTDL_INSTALLABLE],
    149 [if test -f "$prefix/lib/libltdl.la"; then
    150   lt_save_LDFLAGS=$LDFLAGS
     149[if test -f $prefix/lib/libltdl.la; then
     150  lt_save_LDFLAGS="$LDFLAGS"
    151151  LDFLAGS="-L$prefix/lib $LDFLAGS"
    152152  AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
    153   LDFLAGS=$lt_save_LDFLAGS
    154   if test yes = "${lt_lib_ltdl-no}"; then
    155     if test yes != "$enable_ltdl_install"; then
     153  LDFLAGS="$lt_save_LDFLAGS"
     154  if test x"${lt_lib_ltdl-no}" = xyes; then
     155    if test x"$enable_ltdl_install" != xyes; then
    156156      # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
    157       AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
     157      AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
    158158      enable_ltdl_install=no
    159159    fi
    160   elif test no = "$enable_ltdl_install"; then
     160  elif test x"$enable_ltdl_install" = xno; then
    161161    AC_MSG_WARN([libltdl not installed, but installation disabled])
    162162  fi
     
    167167case $enable_ltdl_install in
    168168  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    169       LIBLTDL=-lltdl
     169      LIBLTDL="-lltdl"
    170170      LTDLDEPS=
    171171      LTDLINCL=
     
    175175      LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
    176176      LTDLDEPS=$LIBLTDL
    177       LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
     177      LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
    178178      ;;
    179179esac
     
    184184
    185185# For backwards non-gettext consistent compatibility...
    186 INCLTDL=$LTDLINCL
     186INCLTDL="$LTDLINCL"
    187187AC_SUBST([INCLTDL])
    188188])# LTDL_INSTALLABLE
     
    192192# -------------------
    193193m4_define([_LTDL_MODE_DISPATCH],
    194 [dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
     194[dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
    195195m4_if(_LTDL_DIR, [],
    196196        [],
    197     dnl if _LTDL_MODE was not set already, the default value is 'subproject':
     197    dnl if _LTDL_MODE was not set already, the default value is `subproject':
    198198    [m4_case(m4_default(_LTDL_MODE, [subproject]),
    199199          [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
    200                           _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
    201           [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
     200                          _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
     201          [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
    202202          [recursive], [],
    203203        [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
     
    244244                    [use the GNU ltdl sources included here])])
    245245
    246 if test yes != "$with_included_ltdl"; then
     246if test "x$with_included_ltdl" != xyes; then
    247247  # We are not being forced to use the included libltdl sources, so
    248248  # decide whether there is a useful installed version we can use.
     
    272272  if test -f "$with_ltdl_include/ltdl.h"; then :
    273273  else
    274     AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
     274    AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
    275275  fi
    276276else
     
    285285  if test -f "$with_ltdl_lib/libltdl.la"; then :
    286286  else
    287     AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
     287    AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
    288288  fi
    289289else
     
    308308        ;;
    309309  ,no*,no,*)
    310         AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
     310        AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
    311311        ;;
    312312  *)    with_included_ltdl=no
    313313        LIBLTDL="-L$with_ltdl_lib -lltdl"
    314314        LTDLDEPS=
    315         LTDLINCL=-I$with_ltdl_include
     315        LTDLINCL="-I$with_ltdl_include"
    316316        ;;
    317317esac
    318 INCLTDL=$LTDLINCL
     318INCLTDL="$LTDLINCL"
    319319
    320320# Report our decision...
     
    374374AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
    375375AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
    376 AC_REQUIRE([LT_FUNC_ARGZ])dnl
     376AC_REQUIRE([gl_FUNC_ARGZ])dnl
    377377
    378378m4_require([_LT_CHECK_OBJDIR])dnl
     
    398398    [LT_CONFIG_H=AH_HEADER],
    399399    [m4_ifset([AC_LIST_HEADERS],
    400             [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[      ]]*||;s|[[ :]].*$||'`],
     400            [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      ]]*,,;s,[[ :]].*$,,'`],
    401401        [])])])
    402402AC_SUBST([LT_CONFIG_H])
     
    428428    [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
    429429
    430 case ,$enable_ltdl_install,$enable_ltdl_convenience in
     430case ,${enable_ltdl_install},${enable_ltdl_convenience} in
    431431  *yes*) ;;
    432432  *) enable_ltdl_convenience=yes ;;
     
    434434
    435435m4_ifdef([AM_CONDITIONAL],
    436 [AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
    437  AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
     436[AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
     437 AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
    438438])# _LT_ENABLE_INSTALL
    439439
     
    453453  aix3*|aix4.1.*|aix4.2.*)
    454454    # Unknown whether this is true for these versions of AIX, but
    455     # we want this 'case' here to explicitly catch those versions.
     455    # we want this `case' here to explicitly catch those versions.
    456456    lt_cv_sys_dlopen_deplibs=unknown
    457457    ;;
     
    466466    esac
    467467    ;;
    468   bitrig*)
    469     lt_cv_sys_dlopen_deplibs=yes
    470     ;;
    471468  darwin*)
    472469    # Assuming the user has installed a libdl from somewhere, this is true
     
    506503    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
    507504    # it did *not* use an RPATH in a shared library to find objects the
    508     # library depends on, so we explicitly say 'no'.
     505    # library depends on, so we explicitly say `no'.
    509506    lt_cv_sys_dlopen_deplibs=no
    510507    ;;
     
    515512    # patch is installed.  Since this is the case, all we can really
    516513    # say is unknown -- it depends on the patch being installed.  If
    517     # it is, this changes to 'yes'.  Without it, it would be 'no'.
     514    # it is, this changes to `yes'.  Without it, it would be `no'.
    518515    lt_cv_sys_dlopen_deplibs=unknown
    519516    ;;
     
    522519    # the comments above for what we know about them.
    523520    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
    524     # is used to find them so we can finally say 'yes'.
     521    # is used to find them so we can finally say `yes'.
    525522    lt_cv_sys_dlopen_deplibs=yes
    526523    ;;
     
    536533  esac
    537534  ])
    538 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
     535if test "$lt_cv_sys_dlopen_deplibs" != yes; then
    539536 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
    540537    [Define if the OS needs help to load dependent libraries for dlopen().])
     
    552549AC_DEFUN([LT_SYS_MODULE_EXT],
    553550[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
    554 AC_CACHE_CHECK([what extension is used for runtime loadable modules],
     551AC_CACHE_CHECK([which extension is used for runtime loadable modules],
    555552  [libltdl_cv_shlibext],
    556553[
     
    570567    [Define to the shared library suffix, say, ".dylib".])
    571568fi
    572 if test -n "$shared_archive_member_spec"; then
    573   m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
    574   AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
    575     [Define to the shared archive member specification, say "(shr.o)".])
    576 fi
    577569])# LT_SYS_MODULE_EXT
    578570
     
    587579AC_DEFUN([LT_SYS_MODULE_PATH],
    588580[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
    589 AC_CACHE_CHECK([what variable specifies run-time module search path],
    590   [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
     581AC_CACHE_CHECK([which variable specifies run-time module search path],
     582  [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
    591583if test -n "$lt_cv_module_path_var"; then
    592584  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
     
    608600AC_CACHE_CHECK([for the default library search path],
    609601  [lt_cv_sys_dlsearch_path],
    610   [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
     602  [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
    611603if test -n "$lt_cv_sys_dlsearch_path"; then
    612604  sys_dlsearch_path=
    613605  for dir in $lt_cv_sys_dlsearch_path; do
    614606    if test -z "$sys_dlsearch_path"; then
    615       sys_dlsearch_path=$dir
     607      sys_dlsearch_path="$dir"
    616608    else
    617       sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
     609      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
    618610    fi
    619611  done
     
    642634  fi
    643635  ])
    644 if test yes = "$libltdl_cv_preloaded_symbols"; then
     636if test x"$libltdl_cv_preloaded_symbols" = xyes; then
    645637  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
    646638    [Define if libtool can extract symbol lists from object files.])
     
    657649
    658650AC_LANG_PUSH([C])
    659 lt_dlload_save_LIBS=$LIBS
    660651
    661652LIBADD_DLOPEN=
     
    663654        [AC_DEFINE([HAVE_LIBDL], [1],
    664655                   [Define if you have the libdl library or equivalent.])
    665         if test "$ac_cv_search_dlopen" != "none required"; then
    666           LIBADD_DLOPEN=-ldl
     656        if test "$ac_cv_search_dlopen" != "none required" ; then
     657          LIBADD_DLOPEN="-ldl"
    667658        fi
    668         libltdl_cv_lib_dl_dlopen=yes
     659        libltdl_cv_lib_dl_dlopen="yes"
    669660        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
    670661    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
     
    674665            [AC_DEFINE([HAVE_LIBDL], [1],
    675666                       [Define if you have the libdl library or equivalent.])
    676             libltdl_cv_func_dlopen=yes
     667            libltdl_cv_func_dlopen="yes"
    677668            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
    678669        [AC_CHECK_LIB([svld], [dlopen],
    679670                [AC_DEFINE([HAVE_LIBDL], [1],
    680671                         [Define if you have the libdl library or equivalent.])
    681                 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
     672                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
    682673                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
    683 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
     674if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
    684675then
    685   lt_save_LIBS=$LIBS
     676  lt_save_LIBS="$LIBS"
    686677  LIBS="$LIBS $LIBADD_DLOPEN"
    687678  AC_CHECK_FUNCS([dlerror])
    688   LIBS=$lt_save_LIBS
     679  LIBS="$lt_save_LIBS"
    689680fi
    690681AC_SUBST([LIBADD_DLOPEN])
     
    699690                       [Define if you have the shl_load function.])
    700691            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
    701             LIBADD_SHL_LOAD=-ldld])])
     692            LIBADD_SHL_LOAD="-ldld"])])
    702693AC_SUBST([LIBADD_SHL_LOAD])
    703694
     
    713704  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
    714705  ;;
    715 cygwin* | mingw* | pw32*)
     706cygwin* | mingw* | os2* | pw32*)
    716707  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
    717708  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
     
    741732AC_SUBST([LIBADD_DL])
    742733
    743 LIBS=$lt_dlload_save_LIBS
    744734AC_LANG_POP
    745735])# LT_LIB_DLLOAD
     
    799789# --------------------
    800790AC_DEFUN([LT_FUNC_DLSYM_USCORE],
    801 [AC_REQUIRE([_LT_COMPILER_PIC])dnl      for lt_prog_compiler_wl
    802 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl   for lt_cv_sys_symbol_underscore
    803 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl      for libltdl_cv_shlibext
    804 if test yes = "$lt_cv_sys_symbol_underscore"; then
    805   if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
    806     AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
    807       [libltdl_cv_need_uscore],
    808       [libltdl_cv_need_uscore=unknown
    809       dlsym_uscore_save_LIBS=$LIBS
    810       LIBS="$LIBS $LIBADD_DLOPEN"
    811       libname=conftmod # stay within 8.3 filename limits!
    812       cat >$libname.$ac_ext <<_LT_EOF
    813 [#line $LINENO "configure"
    814 #include "confdefs.h"
    815 /* When -fvisibility=hidden is used, assume the code has been annotated
    816    correspondingly for the symbols needed.  */
    817 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
    818 int fnord () __attribute__((visibility("default")));
    819 #endif
    820 int fnord () { return 42; }]
    821 _LT_EOF
    822 
    823       # ltfn_module_cmds module_cmds
    824       # Execute tilde-delimited MODULE_CMDS with environment primed for
    825       # $module_cmds or $archive_cmds type content.
    826       ltfn_module_cmds ()
    827       {( # subshell avoids polluting parent global environment
    828           module_cmds_save_ifs=$IFS; IFS='~'
    829           for cmd in @S|@1; do
    830             IFS=$module_cmds_save_ifs
    831             libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
    832             rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
    833             major=; versuffix=; verstring=; deplibs=
    834             ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
    835             eval $cmd
    836           done
    837           IFS=$module_cmds_save_ifs
    838       )}
    839 
    840       # Compile a loadable module using libtool macro expansion results.
    841       $CC $pic_flag -c $libname.$ac_ext
    842       ltfn_module_cmds "${module_cmds:-$archive_cmds}"
    843 
    844       # Try to fetch fnord with dlsym().
    845       libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
    846       cat >conftest.$ac_ext <<_LT_EOF
    847 [#line $LINENO "configure"
    848 #include "confdefs.h"
    849 #if HAVE_DLFCN_H
    850 #include <dlfcn.h>
    851 #endif
    852 #include <stdio.h>
    853 #ifndef RTLD_GLOBAL
    854 #  ifdef DL_GLOBAL
    855 #    define RTLD_GLOBAL DL_GLOBAL
    856 #  else
    857 #    define RTLD_GLOBAL 0
    858 #  endif
    859 #endif
    860 #ifndef RTLD_NOW
    861 #  ifdef DL_NOW
    862 #    define RTLD_NOW DL_NOW
    863 #  else
    864 #    define RTLD_NOW 0
    865 #  endif
    866 #endif
    867 int main () {
    868   void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
    869   int status = $libltdl_dlunknown;
    870   if (handle) {
    871     if (dlsym (handle, "fnord"))
    872       status = $libltdl_dlnouscore;
    873     else {
    874       if (dlsym (handle, "_fnord"))
    875         status = $libltdl_dluscore;
    876       else
    877         puts (dlerror ());
    878     }
    879     dlclose (handle);
    880   } else
    881     puts (dlerror ());
    882   return status;
    883 }]
    884 _LT_EOF
    885       if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
    886         (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    887         libltdl_status=$?
    888         case x$libltdl_status in
    889           x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
    890           x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
    891           x*) libltdl_cv_need_uscore=unknown ;;
    892         esac
    893       fi
    894       rm -rf conftest* $libname*
    895       LIBS=$dlsym_uscore_save_LIBS
    896     ])
     791[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
     792if test x"$lt_cv_sys_symbol_underscore" = xyes; then
     793  if test x"$libltdl_cv_func_dlopen" = xyes ||
     794     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
     795        AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
     796          [libltdl_cv_need_uscore],
     797          [libltdl_cv_need_uscore=unknown
     798          save_LIBS="$LIBS"
     799          LIBS="$LIBS $LIBADD_DLOPEN"
     800          _LT_TRY_DLOPEN_SELF(
     801            [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
     802            [],                          [libltdl_cv_need_uscore=cross])
     803          LIBS="$save_LIBS"
     804        ])
    897805  fi
    898806fi
    899807
    900 if test yes = "$libltdl_cv_need_uscore"; then
     808if test x"$libltdl_cv_need_uscore" = xyes; then
    901809  AC_DEFINE([NEED_USCORE], [1],
    902810    [Define if dlsym() requires a leading underscore in symbol names.])
Note: See TracChangeset for help on using the changeset viewer.