~darkxst/ubuntu/saucy/gdm/lp1212408

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-04-08 16:35:19 UTC
  • mto: This revision was merged to the branch mainline in revision 241.
  • Revision ID: james.westby@ubuntu.com-20110408163519-3b8ivhbvx4ypi3fm
Tags: upstream-2.32.1
ImportĀ upstreamĀ versionĀ 2.32.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
918
918
dnl
919
919
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
920
920
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
921
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
921
922
m4_require([_LT_CMD_RELOAD])dnl
922
923
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
924
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
923
925
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
924
926
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
927
m4_require([_LT_WITH_SYSROOT])dnl
925
928
 
926
929
_LT_CONFIG_LIBTOOL_INIT([
927
930
# See if we are running on zsh, and set the options which allow our
1492
1495
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1493
1496
  # text mode, it properly converts lines to CR/LF.  This bash problem
1494
1497
  # is reportedly fixed, but why not run on old versions too?
1495
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1496
 
    || (rm -f "$cfgfile"; exit 1)
1497
 
 
1498
 
  _LT_PROG_XSI_SHELLFNS
1499
 
 
1500
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1501
 
    || (rm -f "$cfgfile"; exit 1)
1502
 
 
1503
 
  mv -f "$cfgfile" "$ofile" ||
 
1498
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1499
     || (rm -f "$cfgfile"; exit 1)
 
1500
 
 
1501
  _LT_PROG_REPLACE_SHELLFNS
 
1502
 
 
1503
   mv -f "$cfgfile" "$ofile" ||
1504
1504
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1505
1505
  chmod +x "$ofile"
1506
1506
],
1817
1817
  fi
1818
1818
])
1819
1819
 
1820
 
# _LT_SYS_MODULE_PATH_AIX
1821
 
# -----------------------
 
1820
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1821
# ----------------------------------
1822
1822
# Links a minimal program and checks the executable
1823
1823
# for the system default hardcoded library path. In most cases,
1824
1824
# this is /usr/lib:/lib, but when the MPI compilers are used
1825
1825
# the location of the communication and MPI libs are included too.
1826
1826
# If we don't find anything, use the default library path according
1827
1827
# to the aix ld manual.
 
1828
# Store the results from the different compilers for each TAGNAME.
 
1829
# Allow to override them for all tags through lt_cv_aix_libpath.
1828
1830
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1829
1831
[m4_require([_LT_DECL_SED])dnl
1830
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1831
 
lt_aix_libpath_sed='
1832
 
    /Import File Strings/,/^$/ {
1833
 
        /^0/ {
1834
 
            s/^0  *\(.*\)$/\1/
1835
 
            p
1836
 
        }
1837
 
    }'
1838
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1839
 
# Check for a 64-bit object if we didn't find anything.
1840
 
if test -z "$aix_libpath"; then
1841
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1842
 
fi],[])
1843
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1832
if test "${lt_cv_aix_libpath+set}" = set; then
 
1833
  aix_libpath=$lt_cv_aix_libpath
 
1834
else
 
1835
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1836
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1837
  lt_aix_libpath_sed='[
 
1838
      /Import File Strings/,/^$/ {
 
1839
          /^0/ {
 
1840
              s/^0  *\([^ ]*\) *$/\1/
 
1841
              p
 
1842
          }
 
1843
      }]'
 
1844
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1845
  # Check for a 64-bit object if we didn't find anything.
 
1846
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1847
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1848
  fi],[])
 
1849
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1850
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1851
  fi
 
1852
  ])
 
1853
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1854
fi
1844
1855
])# _LT_SYS_MODULE_PATH_AIX
1845
1856
 
1846
1857
 
1865
1876
 
1866
1877
AC_MSG_CHECKING([how to print strings])
1867
1878
# Test print first, because it will be a builtin if present.
1868
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1879
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1869
1880
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1870
1881
  ECHO='print -r --'
1871
1882
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1909
1920
])# _LT_PROG_ECHO_BACKSLASH
1910
1921
 
1911
1922
 
 
1923
# _LT_WITH_SYSROOT
 
1924
# ----------------
 
1925
AC_DEFUN([_LT_WITH_SYSROOT],
 
1926
[AC_MSG_CHECKING([for sysroot])
 
1927
AC_ARG_WITH([sysroot],
 
1928
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1929
                        (or the compiler's sysroot if not specified).],
 
1930
[], [with_sysroot=no])
 
1931
 
 
1932
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1933
dnl in case the user passed a directory name.
 
1934
lt_sysroot=
 
1935
case ${with_sysroot} in #(
 
1936
 yes)
 
1937
   if test "$GCC" = yes; then
 
1938
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1939
   fi
 
1940
   ;; #(
 
1941
 /*)
 
1942
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1943
   ;; #(
 
1944
 no|'')
 
1945
   ;; #(
 
1946
 *)
 
1947
   AC_MSG_RESULT([${with_sysroot}])
 
1948
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1949
   ;;
 
1950
esac
 
1951
 
 
1952
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1953
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1954
[dependent libraries, and in which our libraries should be installed.])])
 
1955
 
1912
1956
# _LT_ENABLE_LOCK
1913
1957
# ---------------
1914
1958
m4_defun([_LT_ENABLE_LOCK],
2055
2099
])# _LT_ENABLE_LOCK
2056
2100
 
2057
2101
 
 
2102
# _LT_PROG_AR
 
2103
# -----------
 
2104
m4_defun([_LT_PROG_AR],
 
2105
[AC_CHECK_TOOLS(AR, [ar], false)
 
2106
: ${AR=ar}
 
2107
: ${AR_FLAGS=cru}
 
2108
_LT_DECL([], [AR], [1], [The archiver])
 
2109
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2110
 
 
2111
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2112
  [lt_cv_ar_at_file=no
 
2113
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2114
     [echo conftest.$ac_objext > conftest.lst
 
2115
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2116
      AC_TRY_EVAL([lt_ar_try])
 
2117
      if test "$ac_status" -eq 0; then
 
2118
        # Ensure the archiver fails upon bogus file names.
 
2119
        rm -f conftest.$ac_objext libconftest.a
 
2120
        AC_TRY_EVAL([lt_ar_try])
 
2121
        if test "$ac_status" -ne 0; then
 
2122
          lt_cv_ar_at_file=@
 
2123
        fi
 
2124
      fi
 
2125
      rm -f conftest.* libconftest.a
 
2126
     ])
 
2127
  ])
 
2128
 
 
2129
if test "x$lt_cv_ar_at_file" = xno; then
 
2130
  archiver_list_spec=
 
2131
else
 
2132
  archiver_list_spec=$lt_cv_ar_at_file
 
2133
fi
 
2134
_LT_DECL([], [archiver_list_spec], [1],
 
2135
  [How to feed a file listing to the archiver])
 
2136
])# _LT_PROG_AR
 
2137
 
 
2138
 
2058
2139
# _LT_CMD_OLD_ARCHIVE
2059
2140
# -------------------
2060
2141
m4_defun([_LT_CMD_OLD_ARCHIVE],
2061
 
[AC_CHECK_TOOL(AR, ar, false)
2062
 
test -z "$AR" && AR=ar
2063
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2064
 
_LT_DECL([], [AR], [1], [The archiver])
2065
 
_LT_DECL([], [AR_FLAGS], [1])
 
2142
[_LT_PROG_AR
2066
2143
 
2067
2144
AC_CHECK_TOOL(STRIP, strip, :)
2068
2145
test -z "$STRIP" && STRIP=:
2402
2479
/* When -fvisbility=hidden is used, assume the code has been annotated
2403
2480
   correspondingly for the symbols needed.  */
2404
2481
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2405
 
void fnord () __attribute__((visibility("default")));
 
2482
int fnord () __attribute__((visibility("default")));
2406
2483
#endif
2407
2484
 
2408
 
void fnord () { int i=42; }
 
2485
int fnord () { return 42; }
2409
2486
int main ()
2410
2487
{
2411
2488
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2945
3022
  need_version=no
2946
3023
  need_lib_prefix=no
2947
3024
 
2948
 
  case $GCC,$host_os in
2949
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3025
  case $GCC,$cc_basename in
 
3026
  yes,*)
 
3027
    # gcc
2950
3028
    library_names_spec='$libname.dll.a'
2951
3029
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2952
3030
    postinstall_cmds='base_file=`basename \${file}`~
2979
3057
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2980
3058
      ;;
2981
3059
    esac
 
3060
    dynamic_linker='Win32 ld.exe'
 
3061
    ;;
 
3062
 
 
3063
  *,cl*)
 
3064
    # Native MSVC
 
3065
    libname_spec='$name'
 
3066
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3067
    library_names_spec='${libname}.dll.lib'
 
3068
 
 
3069
    case $build_os in
 
3070
    mingw*)
 
3071
      sys_lib_search_path_spec=
 
3072
      lt_save_ifs=$IFS
 
3073
      IFS=';'
 
3074
      for lt_path in $LIB
 
3075
      do
 
3076
        IFS=$lt_save_ifs
 
3077
        # Let DOS variable expansion print the short 8.3 style file name.
 
3078
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3079
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3080
      done
 
3081
      IFS=$lt_save_ifs
 
3082
      # Convert to MSYS style.
 
3083
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3084
      ;;
 
3085
    cygwin*)
 
3086
      # Convert to unix form, then to dos form, then back to unix form
 
3087
      # but this time dos style (no spaces!) so that the unix form looks
 
3088
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3089
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3090
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3091
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3092
      ;;
 
3093
    *)
 
3094
      sys_lib_search_path_spec="$LIB"
 
3095
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3096
        # It is most probably a Windows format PATH.
 
3097
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3098
      else
 
3099
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3100
      fi
 
3101
      # FIXME: find the short name or the path components, as spaces are
 
3102
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3103
      ;;
 
3104
    esac
 
3105
 
 
3106
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3107
    postinstall_cmds='base_file=`basename \${file}`~
 
3108
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3109
      dldir=$destdir/`dirname \$dlpath`~
 
3110
      test -d \$dldir || mkdir -p \$dldir~
 
3111
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3112
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3113
      dlpath=$dir/\$dldll~
 
3114
       $RM \$dlpath'
 
3115
    shlibpath_overrides_runpath=yes
 
3116
    dynamic_linker='Win32 link.exe'
2982
3117
    ;;
2983
3118
 
2984
3119
  *)
 
3120
    # Assume MSVC wrapper
2985
3121
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3122
    dynamic_linker='Win32 ld.exe'
2986
3123
    ;;
2987
3124
  esac
2988
 
  dynamic_linker='Win32 ld.exe'
2989
3125
  # FIXME: first we should search . and the directory the executable is in
2990
3126
  shlibpath_var=PATH
2991
3127
  ;;
3693
3829
esac
3694
3830
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3695
3831
case $host_os in
 
3832
  cygwin* | mingw* | pw32* | cegcc*)
 
3833
    if test "$GCC" != yes; then
 
3834
      reload_cmds=false
 
3835
    fi
 
3836
    ;;
3696
3837
  darwin*)
3697
3838
    if test "$GCC" = yes; then
3698
3839
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3911
4052
  ;;
3912
4053
esac
3913
4054
])
 
4055
 
 
4056
file_magic_glob=
 
4057
want_nocaseglob=no
 
4058
if test "$build" = "$host"; then
 
4059
  case $host_os in
 
4060
  mingw* | pw32*)
 
4061
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4062
      want_nocaseglob=yes
 
4063
    else
 
4064
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4065
    fi
 
4066
    ;;
 
4067
  esac
 
4068
fi
 
4069
 
3914
4070
file_magic_cmd=$lt_cv_file_magic_cmd
3915
4071
deplibs_check_method=$lt_cv_deplibs_check_method
3916
4072
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3918
4074
_LT_DECL([], [deplibs_check_method], [1],
3919
4075
    [Method to check whether dependent libraries are shared objects])
3920
4076
_LT_DECL([], [file_magic_cmd], [1],
3921
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4077
    [Command to use when deplibs_check_method = "file_magic"])
 
4078
_LT_DECL([], [file_magic_glob], [1],
 
4079
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4080
_LT_DECL([], [want_nocaseglob], [1],
 
4081
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3922
4082
])# _LT_CHECK_MAGIC_METHOD
3923
4083
 
3924
4084
 
4021
4181
dnl AC_DEFUN([AM_PROG_NM], [])
4022
4182
dnl AC_DEFUN([AC_PROG_NM], [])
4023
4183
 
 
4184
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4185
# --------------------------------
 
4186
# how to determine the name of the shared library
 
4187
# associated with a specific link library.
 
4188
#  -- PORTME fill in with the dynamic library characteristics
 
4189
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4190
[m4_require([_LT_DECL_EGREP])
 
4191
m4_require([_LT_DECL_OBJDUMP])
 
4192
m4_require([_LT_DECL_DLLTOOL])
 
4193
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4194
lt_cv_sharedlib_from_linklib_cmd,
 
4195
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4196
 
 
4197
case $host_os in
 
4198
cygwin* | mingw* | pw32* | cegcc*)
 
4199
  # two different shell functions defined in ltmain.sh
 
4200
  # decide which to use based on capabilities of $DLLTOOL
 
4201
  case `$DLLTOOL --help 2>&1` in
 
4202
  *--identify-strict*)
 
4203
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4204
    ;;
 
4205
  *)
 
4206
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4207
    ;;
 
4208
  esac
 
4209
  ;;
 
4210
*)
 
4211
  # fallback: assume linklib IS sharedlib
 
4212
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4213
  ;;
 
4214
esac
 
4215
])
 
4216
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4217
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4218
 
 
4219
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4220
    [Command to associate shared and link libraries])
 
4221
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4222
 
 
4223
 
 
4224
# _LT_PATH_MANIFEST_TOOL
 
4225
# ----------------------
 
4226
# locate the manifest tool
 
4227
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4228
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4229
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4230
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4231
  [lt_cv_path_mainfest_tool=no
 
4232
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4233
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4234
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4235
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4236
    lt_cv_path_mainfest_tool=yes
 
4237
  fi
 
4238
  rm -f conftest*])
 
4239
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4240
  MANIFEST_TOOL=:
 
4241
fi
 
4242
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4243
])# _LT_PATH_MANIFEST_TOOL
 
4244
 
4024
4245
 
4025
4246
# LT_LIB_M
4026
4247
# --------
4147
4368
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4148
4369
 
4149
4370
# Transform an extracted symbol line into symbol name and symbol address
4150
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4151
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
4371
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4372
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4152
4373
 
4153
4374
# Handle CRLF in mingw tool chain
4154
4375
opt_cr=
4184
4405
  else
4185
4406
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4186
4407
  fi
 
4408
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4187
4409
 
4188
4410
  # Check to see that the pipe works correctly.
4189
4411
  pipe_works=no
4217
4439
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4218
4440
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4219
4441
          cat <<_LT_EOF > conftest.$ac_ext
 
4442
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4443
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4444
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4445
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4446
# define LT@&t@_DLSYM_CONST
 
4447
#elif defined(__osf__)
 
4448
/* This system does not cope well with relocations in const data.  */
 
4449
# define LT@&t@_DLSYM_CONST
 
4450
#else
 
4451
# define LT@&t@_DLSYM_CONST const
 
4452
#endif
 
4453
 
4220
4454
#ifdef __cplusplus
4221
4455
extern "C" {
4222
4456
#endif
4228
4462
          cat <<_LT_EOF >> conftest.$ac_ext
4229
4463
 
4230
4464
/* The mapping between symbol names and symbols.  */
4231
 
const struct {
 
4465
LT@&t@_DLSYM_CONST struct {
4232
4466
  const char *name;
4233
4467
  void       *address;
4234
4468
}
4254
4488
_LT_EOF
4255
4489
          # Now try linking the two files.
4256
4490
          mv conftest.$ac_objext conftstm.$ac_objext
4257
 
          lt_save_LIBS="$LIBS"
4258
 
          lt_save_CFLAGS="$CFLAGS"
 
4491
          lt_globsym_save_LIBS=$LIBS
 
4492
          lt_globsym_save_CFLAGS=$CFLAGS
4259
4493
          LIBS="conftstm.$ac_objext"
4260
4494
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4261
4495
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4262
4496
            pipe_works=yes
4263
4497
          fi
4264
 
          LIBS="$lt_save_LIBS"
4265
 
          CFLAGS="$lt_save_CFLAGS"
 
4498
          LIBS=$lt_globsym_save_LIBS
 
4499
          CFLAGS=$lt_globsym_save_CFLAGS
4266
4500
        else
4267
4501
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4268
4502
        fi
4295
4529
  AC_MSG_RESULT(ok)
4296
4530
fi
4297
4531
 
 
4532
# Response file support.
 
4533
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4534
  nm_file_list_spec='@'
 
4535
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4536
  nm_file_list_spec='@'
 
4537
fi
 
4538
 
4298
4539
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4299
4540
    [Take the output of nm and produce a listing of raw symbols and C names])
4300
4541
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4305
4546
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4306
4547
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4307
4548
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4549
_LT_DECL([], [nm_file_list_spec], [1],
 
4550
    [Specify filename containing input files for $NM])
4308
4551
]) # _LT_CMD_GLOBAL_SYMBOLS
4309
4552
 
4310
4553
 
4316
4559
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4317
4560
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4318
4561
 
4319
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4320
4562
m4_if([$1], [CXX], [
4321
4563
  # C++ specific cases for pic, static, wl, etc.
4322
4564
  if test "$GXX" = yes; then
4421
4663
          ;;
4422
4664
        esac
4423
4665
        ;;
 
4666
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4667
        # This hack is so that the source file can tell whether it is being
 
4668
        # built for inclusion in a dll (and should export symbols for example).
 
4669
        m4_if([$1], [GCJ], [],
 
4670
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4671
        ;;
4424
4672
      dgux*)
4425
4673
        case $cc_basename in
4426
4674
          ec++*)
4795
5043
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4796
5044
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4797
5045
        ;;
 
5046
      nagfor*)
 
5047
        # NAG Fortran compiler
 
5048
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5049
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5050
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5051
        ;;
4798
5052
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4799
5053
        # Portland Group compilers (*not* the Pentium gcc compiler,
4800
5054
        # which looks to be a dead project)
4914
5168
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4915
5169
    ;;
4916
5170
esac
4917
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4918
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4919
 
        [How to pass a linker flag through the compiler])
 
5171
 
 
5172
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5173
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5174
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5175
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4920
5176
 
4921
5177
#
4922
5178
# Check to make sure the PIC flag actually works.
4935
5191
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4936
5192
        [Additional compiler flags for building library objects])
4937
5193
 
 
5194
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5195
        [How to pass a linker flag through the compiler])
4938
5196
#
4939
5197
# Check to make sure the static flag actually works.
4940
5198
#
4955
5213
m4_defun([_LT_LINKER_SHLIBS],
4956
5214
[AC_REQUIRE([LT_PATH_LD])dnl
4957
5215
AC_REQUIRE([LT_PATH_NM])dnl
 
5216
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4958
5217
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4959
5218
m4_require([_LT_DECL_EGREP])dnl
4960
5219
m4_require([_LT_DECL_SED])dnl
4963
5222
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4964
5223
m4_if([$1], [CXX], [
4965
5224
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5225
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4966
5226
  case $host_os in
4967
5227
  aix[[4-9]]*)
4968
5228
    # If we're using GNU nm, then we don't want the "-C" option.
4977
5237
    ;;
4978
5238
  pw32*)
4979
5239
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4980
 
  ;;
 
5240
    ;;
4981
5241
  cygwin* | mingw* | cegcc*)
4982
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4983
 
  ;;
 
5242
    case $cc_basename in
 
5243
    cl*) ;;
 
5244
    *)
 
5245
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5246
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5247
      ;;
 
5248
    esac
 
5249
    ;;
4984
5250
  *)
4985
5251
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4986
 
  ;;
 
5252
    ;;
4987
5253
  esac
4988
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4989
5254
], [
4990
5255
  runpath_var=
4991
5256
  _LT_TAGVAR(allow_undefined_flag, $1)=
5153
5418
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5154
5419
      _LT_TAGVAR(always_export_symbols, $1)=no
5155
5420
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5156
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5421
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5422
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5157
5423
 
5158
5424
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5159
5425
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5201
5467
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5202
5468
         && test "$tmp_diet" = no
5203
5469
      then
5204
 
        tmp_addflag=
 
5470
        tmp_addflag=' $pic_flag'
5205
5471
        tmp_sharedflag='-shared'
5206
5472
        case $cc_basename,$host_cpu in
5207
5473
        pgcc*)                          # Portland Group C compiler
5271
5537
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5272
5538
        wlarc=
5273
5539
      else
5274
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5275
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5540
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5541
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5276
5542
      fi
5277
5543
      ;;
5278
5544
 
5290
5556
 
5291
5557
_LT_EOF
5292
5558
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5293
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5294
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5559
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5560
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5295
5561
      else
5296
5562
        _LT_TAGVAR(ld_shlibs, $1)=no
5297
5563
      fi
5337
5603
 
5338
5604
    *)
5339
5605
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5340
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5341
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5606
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5607
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5342
5608
      else
5343
5609
        _LT_TAGVAR(ld_shlibs, $1)=no
5344
5610
      fi
5468
5734
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5469
5735
        # Determine the default libpath from the value encoded in an
5470
5736
        # empty executable.
5471
 
        _LT_SYS_MODULE_PATH_AIX
 
5737
        _LT_SYS_MODULE_PATH_AIX([$1])
5472
5738
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5473
5739
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5474
5740
      else
5479
5745
        else
5480
5746
         # Determine the default libpath from the value encoded in an
5481
5747
         # empty executable.
5482
 
         _LT_SYS_MODULE_PATH_AIX
 
5748
         _LT_SYS_MODULE_PATH_AIX([$1])
5483
5749
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5484
5750
          # Warning - without using the other run time loading flags,
5485
5751
          # -berok will link without error, but may produce a broken library.
5523
5789
      # Microsoft Visual C++.
5524
5790
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5525
5791
      # no search path for DLLs.
5526
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5527
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5528
 
      # Tell ltmain to make .lib files, not .a files.
5529
 
      libext=lib
5530
 
      # Tell ltmain to make .dll files, not .so files.
5531
 
      shrext_cmds=".dll"
5532
 
      # FIXME: Setting linknames here is a bad hack.
5533
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5534
 
      # The linker will automatically build a .lib file if we build a DLL.
5535
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5536
 
      # FIXME: Should let the user specify the lib program.
5537
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5538
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5539
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5792
      case $cc_basename in
 
5793
      cl*)
 
5794
        # Native MSVC
 
5795
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5796
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5797
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5798
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5799
        # Tell ltmain to make .lib files, not .a files.
 
5800
        libext=lib
 
5801
        # Tell ltmain to make .dll files, not .so files.
 
5802
        shrext_cmds=".dll"
 
5803
        # FIXME: Setting linknames here is a bad hack.
 
5804
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5805
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5806
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5807
          else
 
5808
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5809
          fi~
 
5810
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5811
          linknames='
 
5812
        # The linker will not automatically build a static lib if we build a DLL.
 
5813
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5814
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5815
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5816
        # Don't use ranlib
 
5817
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5818
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5819
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5820
          case $lt_outputfile in
 
5821
            *.exe|*.EXE) ;;
 
5822
            *)
 
5823
              lt_outputfile="$lt_outputfile.exe"
 
5824
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5825
              ;;
 
5826
          esac~
 
5827
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5828
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5829
            $RM "$lt_outputfile.manifest";
 
5830
          fi'
 
5831
        ;;
 
5832
      *)
 
5833
        # Assume MSVC wrapper
 
5834
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5835
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5836
        # Tell ltmain to make .lib files, not .a files.
 
5837
        libext=lib
 
5838
        # Tell ltmain to make .dll files, not .so files.
 
5839
        shrext_cmds=".dll"
 
5840
        # FIXME: Setting linknames here is a bad hack.
 
5841
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5842
        # The linker will automatically build a .lib file if we build a DLL.
 
5843
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5844
        # FIXME: Should let the user specify the lib program.
 
5845
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5846
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5847
        ;;
 
5848
      esac
5540
5849
      ;;
5541
5850
 
5542
5851
    darwin* | rhapsody*)
5574
5883
 
5575
5884
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5576
5885
    freebsd* | dragonfly*)
5577
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5886
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5578
5887
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5579
5888
      _LT_TAGVAR(hardcode_direct, $1)=yes
5580
5889
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5582
5891
 
5583
5892
    hpux9*)
5584
5893
      if test "$GCC" = yes; then
5585
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5894
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5586
5895
      else
5587
5896
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5588
5897
      fi
5598
5907
 
5599
5908
    hpux10*)
5600
5909
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5601
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5910
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5602
5911
      else
5603
5912
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5604
5913
      fi
5622
5931
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5623
5932
          ;;
5624
5933
        ia64*)
5625
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5934
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5626
5935
          ;;
5627
5936
        *)
5628
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5937
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5629
5938
          ;;
5630
5939
        esac
5631
5940
      else
5672
5981
 
5673
5982
    irix5* | irix6* | nonstopux*)
5674
5983
      if test "$GCC" = yes; then
5675
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5984
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5676
5985
        # Try to use the -exported_symbol ld option, if it does not
5677
5986
        # work, assume that -exports_file does not work either and
5678
5987
        # implicitly export all symbols.
5679
 
        save_LDFLAGS="$LDFLAGS"
5680
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5681
 
        AC_LINK_IFELSE(int foo(void) {},
5682
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5683
 
        )
5684
 
        LDFLAGS="$save_LDFLAGS"
 
5988
        # This should be the same for all languages, so no per-tag cache variable.
 
5989
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5990
          [lt_cv_irix_exported_symbol],
 
5991
          [save_LDFLAGS="$LDFLAGS"
 
5992
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5993
           AC_LINK_IFELSE(
 
5994
             [AC_LANG_SOURCE(
 
5995
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5996
                              [C++], [[int foo (void) { return 0; }]],
 
5997
                              [Fortran 77], [[
 
5998
      subroutine foo
 
5999
      end]],
 
6000
                              [Fortran], [[
 
6001
      subroutine foo
 
6002
      end]])])],
 
6003
              [lt_cv_irix_exported_symbol=yes],
 
6004
              [lt_cv_irix_exported_symbol=no])
 
6005
           LDFLAGS="$save_LDFLAGS"])
 
6006
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6007
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
6008
        fi
5685
6009
      else
5686
6010
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5687
6011
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5766
6090
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5767
6091
      if test "$GCC" = yes; then
5768
6092
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5769
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6093
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5770
6094
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5771
6095
      else
5772
6096
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5785
6109
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5786
6110
      if test "$GCC" = yes; then
5787
6111
        wlarc='${wl}'
5788
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6112
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5789
6113
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5790
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6114
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5791
6115
      else
5792
6116
        case `$CC -V 2>&1` in
5793
6117
        *"Compilers 5.0"*)
6059
6383
    to runtime path list])
6060
6384
_LT_TAGDECL([], [link_all_deplibs], [0],
6061
6385
    [Whether libtool must link a program against all its dependency libraries])
6062
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6063
 
    [Fix the shell variable $srcfile for the compiler])
6064
6386
_LT_TAGDECL([], [always_export_symbols], [0],
6065
6387
    [Set to "yes" if exported symbols are required])
6066
6388
_LT_TAGDECL([], [export_symbols_cmds], [2],
6071
6393
    [Symbols that must always be exported])
6072
6394
_LT_TAGDECL([], [prelink_cmds], [2],
6073
6395
    [Commands necessary for linking programs (against libraries) with templates])
 
6396
_LT_TAGDECL([], [postlink_cmds], [2],
 
6397
    [Commands necessary for finishing linking programs])
6074
6398
_LT_TAGDECL([], [file_list_spec], [1],
6075
6399
    [Specify filename containing input files])
6076
6400
dnl FIXME: Not yet implemented
6168
6492
m4_defun([_LT_LANG_CXX_CONFIG],
6169
6493
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6170
6494
m4_require([_LT_DECL_EGREP])dnl
 
6495
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6171
6496
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6172
6497
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6173
6498
    (test "X$CXX" != "Xg++"))) ; then
6229
6554
 
6230
6555
  # Allow CC to be a program name with arguments.
6231
6556
  lt_save_CC=$CC
 
6557
  lt_save_CFLAGS=$CFLAGS
6232
6558
  lt_save_LD=$LD
6233
6559
  lt_save_GCC=$GCC
6234
6560
  GCC=$GXX
6246
6572
  fi
6247
6573
  test -z "${LDCXX+set}" || LD=$LDCXX
6248
6574
  CC=${CXX-"c++"}
 
6575
  CFLAGS=$CXXFLAGS
6249
6576
  compiler=$CC
6250
6577
  _LT_TAGVAR(compiler, $1)=$CC
6251
6578
  _LT_CC_BASENAME([$compiler])
6267
6594
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6268
6595
      # archiving commands below assume that GNU ld is being used.
6269
6596
      if test "$with_gnu_ld" = yes; then
6270
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6271
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6597
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6598
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6272
6599
 
6273
6600
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6274
6601
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6409
6736
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6410
6737
          # Determine the default libpath from the value encoded in an empty
6411
6738
          # executable.
6412
 
          _LT_SYS_MODULE_PATH_AIX
 
6739
          _LT_SYS_MODULE_PATH_AIX([$1])
6413
6740
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6414
6741
 
6415
6742
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6421
6748
          else
6422
6749
            # Determine the default libpath from the value encoded in an
6423
6750
            # empty executable.
6424
 
            _LT_SYS_MODULE_PATH_AIX
 
6751
            _LT_SYS_MODULE_PATH_AIX([$1])
6425
6752
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6426
6753
            # Warning - without using the other run time loading flags,
6427
6754
            # -berok will link without error, but may produce a broken library.
6463
6790
        ;;
6464
6791
 
6465
6792
      cygwin* | mingw* | pw32* | cegcc*)
6466
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6467
 
        # as there is no search path for DLLs.
6468
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6469
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6470
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6471
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6472
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6793
        case $GXX,$cc_basename in
 
6794
        ,cl* | no,cl*)
 
6795
          # Native MSVC
 
6796
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6797
          # no search path for DLLs.
 
6798
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6799
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6800
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6801
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6802
          # Tell ltmain to make .lib files, not .a files.
 
6803
          libext=lib
 
6804
          # Tell ltmain to make .dll files, not .so files.
 
6805
          shrext_cmds=".dll"
 
6806
          # FIXME: Setting linknames here is a bad hack.
 
6807
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6808
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6809
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6810
            else
 
6811
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6812
            fi~
 
6813
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6814
            linknames='
 
6815
          # The linker will not automatically build a static lib if we build a DLL.
 
6816
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6817
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6818
          # Don't use ranlib
 
6819
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6820
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6821
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6822
            case $lt_outputfile in
 
6823
              *.exe|*.EXE) ;;
 
6824
              *)
 
6825
                lt_outputfile="$lt_outputfile.exe"
 
6826
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6827
                ;;
 
6828
            esac~
 
6829
            func_to_tool_file "$lt_outputfile"~
 
6830
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6831
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6832
              $RM "$lt_outputfile.manifest";
 
6833
            fi'
 
6834
          ;;
 
6835
        *)
 
6836
          # g++
 
6837
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6838
          # as there is no search path for DLLs.
 
6839
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6840
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6841
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6842
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6843
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6473
6844
 
6474
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6475
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6476
 
          # If the export-symbols file already is a .def file (1st line
6477
 
          # is EXPORTS), use it as is; otherwise, prepend...
6478
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6479
 
            cp $export_symbols $output_objdir/$soname.def;
6480
 
          else
6481
 
            echo EXPORTS > $output_objdir/$soname.def;
6482
 
            cat $export_symbols >> $output_objdir/$soname.def;
6483
 
          fi~
6484
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6485
 
        else
6486
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6487
 
        fi
6488
 
        ;;
 
6845
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6846
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6847
            # If the export-symbols file already is a .def file (1st line
 
6848
            # is EXPORTS), use it as is; otherwise, prepend...
 
6849
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6850
              cp $export_symbols $output_objdir/$soname.def;
 
6851
            else
 
6852
              echo EXPORTS > $output_objdir/$soname.def;
 
6853
              cat $export_symbols >> $output_objdir/$soname.def;
 
6854
            fi~
 
6855
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6856
          else
 
6857
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6858
          fi
 
6859
          ;;
 
6860
        esac
 
6861
        ;;
6489
6862
      darwin* | rhapsody*)
6490
6863
        _LT_DARWIN_LINKER_FEATURES($1)
6491
6864
        ;;
6560
6933
            ;;
6561
6934
          *)
6562
6935
            if test "$GXX" = yes; then
6563
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6936
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6564
6937
            else
6565
6938
              # FIXME: insert proper C++ library support
6566
6939
              _LT_TAGVAR(ld_shlibs, $1)=no
6631
7004
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6632
7005
                    ;;
6633
7006
                  ia64*)
6634
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7007
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6635
7008
                    ;;
6636
7009
                  *)
6637
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7010
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6638
7011
                    ;;
6639
7012
                esac
6640
7013
              fi
6675
7048
          *)
6676
7049
            if test "$GXX" = yes; then
6677
7050
              if test "$with_gnu_ld" = no; then
6678
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7051
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6679
7052
              else
6680
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
7053
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6681
7054
              fi
6682
7055
            fi
6683
7056
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6955
7328
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6956
7329
                  ;;
6957
7330
                *)
6958
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7331
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6959
7332
                  ;;
6960
7333
              esac
6961
7334
 
7042
7415
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7043
7416
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7044
7417
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7045
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7418
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7046
7419
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7047
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7420
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7048
7421
 
7049
7422
                # Commands to make compiler produce verbose output that lists
7050
7423
                # what "hidden" libraries, object files and flags are used when
7173
7546
  fi # test -n "$compiler"
7174
7547
 
7175
7548
  CC=$lt_save_CC
 
7549
  CFLAGS=$lt_save_CFLAGS
7176
7550
  LDCXX=$LD
7177
7551
  LD=$lt_save_LD
7178
7552
  GCC=$lt_save_GCC
7187
7561
])# _LT_LANG_CXX_CONFIG
7188
7562
 
7189
7563
 
 
7564
# _LT_FUNC_STRIPNAME_CNF
 
7565
# ----------------------
 
7566
# func_stripname_cnf prefix suffix name
 
7567
# strip PREFIX and SUFFIX off of NAME.
 
7568
# PREFIX and SUFFIX must not contain globbing or regex special
 
7569
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7570
# dot (in which case that matches only a dot).
 
7571
#
 
7572
# This function is identical to the (non-XSI) version of func_stripname,
 
7573
# except this one can be used by m4 code that may be executed by configure,
 
7574
# rather than the libtool script.
 
7575
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7576
AC_REQUIRE([_LT_DECL_SED])
 
7577
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7578
func_stripname_cnf ()
 
7579
{
 
7580
  case ${2} in
 
7581
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7582
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7583
  esac
 
7584
} # func_stripname_cnf
 
7585
])# _LT_FUNC_STRIPNAME_CNF
 
7586
 
7190
7587
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7191
7588
# ---------------------------------
7192
7589
# Figure out "hidden" library dependencies from verbose
7195
7592
# objects, libraries and library flags.
7196
7593
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7197
7594
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7595
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7198
7596
# Dependencies to place before and after the object being linked:
7199
7597
_LT_TAGVAR(predep_objects, $1)=
7200
7598
_LT_TAGVAR(postdep_objects, $1)=
7245
7643
};
7246
7644
_LT_EOF
7247
7645
])
 
7646
 
 
7647
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7648
case "$CC $CFLAGS " in #(
 
7649
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7650
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7651
esac
 
7652
 
7248
7653
dnl Parse the compiler output and extract the necessary
7249
7654
dnl objects, libraries and library flags.
7250
7655
if AC_TRY_EVAL(ac_compile); then
7256
7661
  pre_test_object_deps_done=no
7257
7662
 
7258
7663
  for p in `eval "$output_verbose_link_cmd"`; do
7259
 
    case $p in
 
7664
    case ${prev}${p} in
7260
7665
 
7261
7666
    -L* | -R* | -l*)
7262
7667
       # Some compilers place space between "-{L,R}" and the path.
7265
7670
          test $p = "-R"; then
7266
7671
         prev=$p
7267
7672
         continue
7268
 
       else
7269
 
         prev=
7270
7673
       fi
7271
7674
 
 
7675
       # Expand the sysroot to ease extracting the directories later.
 
7676
       if test -z "$prev"; then
 
7677
         case $p in
 
7678
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7679
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7680
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7681
         esac
 
7682
       fi
 
7683
       case $p in
 
7684
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7685
       esac
7272
7686
       if test "$pre_test_object_deps_done" = no; then
7273
 
         case $p in
7274
 
         -L* | -R*)
 
7687
         case ${prev} in
 
7688
         -L | -R)
7275
7689
           # Internal compiler library paths should come after those
7276
7690
           # provided the user.  The postdeps already come after the
7277
7691
           # user supplied libs so there is no need to process them.
7291
7705
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7292
7706
         fi
7293
7707
       fi
 
7708
       prev=
7294
7709
       ;;
7295
7710
 
 
7711
    *.lto.$objext) ;; # Ignore GCC LTO objects
7296
7712
    *.$objext)
7297
7713
       # This assumes that the test object file only shows up
7298
7714
       # once in the compiler output.
7328
7744
fi
7329
7745
 
7330
7746
$RM -f confest.$objext
 
7747
CFLAGS=$_lt_libdeps_save_CFLAGS
7331
7748
 
7332
7749
# PORTME: override above test on systems where it is broken
7333
7750
m4_if([$1], [CXX],
7477
7894
  # Allow CC to be a program name with arguments.
7478
7895
  lt_save_CC="$CC"
7479
7896
  lt_save_GCC=$GCC
 
7897
  lt_save_CFLAGS=$CFLAGS
7480
7898
  CC=${F77-"f77"}
 
7899
  CFLAGS=$FFLAGS
7481
7900
  compiler=$CC
7482
7901
  _LT_TAGVAR(compiler, $1)=$CC
7483
7902
  _LT_CC_BASENAME([$compiler])
7531
7950
 
7532
7951
  GCC=$lt_save_GCC
7533
7952
  CC="$lt_save_CC"
 
7953
  CFLAGS="$lt_save_CFLAGS"
7534
7954
fi # test "$_lt_disable_F77" != yes
7535
7955
 
7536
7956
AC_LANG_POP
7607
8027
  # Allow CC to be a program name with arguments.
7608
8028
  lt_save_CC="$CC"
7609
8029
  lt_save_GCC=$GCC
 
8030
  lt_save_CFLAGS=$CFLAGS
7610
8031
  CC=${FC-"f95"}
 
8032
  CFLAGS=$FCFLAGS
7611
8033
  compiler=$CC
7612
8034
  GCC=$ac_cv_fc_compiler_gnu
7613
8035
 
7663
8085
  fi # test -n "$compiler"
7664
8086
 
7665
8087
  GCC=$lt_save_GCC
7666
 
  CC="$lt_save_CC"
 
8088
  CC=$lt_save_CC
 
8089
  CFLAGS=$lt_save_CFLAGS
7667
8090
fi # test "$_lt_disable_FC" != yes
7668
8091
 
7669
8092
AC_LANG_POP
7700
8123
_LT_LINKER_BOILERPLATE
7701
8124
 
7702
8125
# Allow CC to be a program name with arguments.
7703
 
lt_save_CC="$CC"
 
8126
lt_save_CC=$CC
 
8127
lt_save_CFLAGS=$CFLAGS
7704
8128
lt_save_GCC=$GCC
7705
8129
GCC=yes
7706
8130
CC=${GCJ-"gcj"}
 
8131
CFLAGS=$GCJFLAGS
7707
8132
compiler=$CC
7708
8133
_LT_TAGVAR(compiler, $1)=$CC
7709
8134
_LT_TAGVAR(LD, $1)="$LD"
7730
8155
AC_LANG_RESTORE
7731
8156
 
7732
8157
GCC=$lt_save_GCC
7733
 
CC="$lt_save_CC"
 
8158
CC=$lt_save_CC
 
8159
CFLAGS=$lt_save_CFLAGS
7734
8160
])# _LT_LANG_GCJ_CONFIG
7735
8161
 
7736
8162
 
7765
8191
 
7766
8192
# Allow CC to be a program name with arguments.
7767
8193
lt_save_CC="$CC"
 
8194
lt_save_CFLAGS=$CFLAGS
7768
8195
lt_save_GCC=$GCC
7769
8196
GCC=
7770
8197
CC=${RC-"windres"}
 
8198
CFLAGS=
7771
8199
compiler=$CC
7772
8200
_LT_TAGVAR(compiler, $1)=$CC
7773
8201
_LT_CC_BASENAME([$compiler])
7780
8208
 
7781
8209
GCC=$lt_save_GCC
7782
8210
AC_LANG_RESTORE
7783
 
CC="$lt_save_CC"
 
8211
CC=$lt_save_CC
 
8212
CFLAGS=$lt_save_CFLAGS
7784
8213
])# _LT_LANG_RC_CONFIG
7785
8214
 
7786
8215
 
7839
8268
AC_SUBST([OBJDUMP])
7840
8269
])
7841
8270
 
 
8271
# _LT_DECL_DLLTOOL
 
8272
# ----------------
 
8273
# Ensure DLLTOOL variable is set.
 
8274
m4_defun([_LT_DECL_DLLTOOL],
 
8275
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8276
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8277
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8278
AC_SUBST([DLLTOOL])
 
8279
])
7842
8280
 
7843
8281
# _LT_DECL_SED
7844
8282
# ------------
7930
8368
# Try some XSI features
7931
8369
xsi_shell=no
7932
8370
( _lt_dummy="a/b/c"
7933
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7934
 
      = c,a/b,, \
 
8371
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8372
      = c,a/b,b/c, \
7935
8373
    && eval 'test $(( 1 + 1 )) -eq 2 \
7936
8374
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7937
8375
  && xsi_shell=yes
7970
8408
])# _LT_CHECK_SHELL_FEATURES
7971
8409
 
7972
8410
 
7973
 
# _LT_PROG_XSI_SHELLFNS
7974
 
# ---------------------
7975
 
# Bourne and XSI compatible variants of some useful shell functions.
7976
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7977
 
[case $xsi_shell in
7978
 
  yes)
7979
 
    cat << \_LT_EOF >> "$cfgfile"
7980
 
 
7981
 
# func_dirname file append nondir_replacement
7982
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7983
 
# otherwise set result to NONDIR_REPLACEMENT.
7984
 
func_dirname ()
7985
 
{
7986
 
  case ${1} in
7987
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7988
 
    *  ) func_dirname_result="${3}" ;;
7989
 
  esac
7990
 
}
7991
 
 
7992
 
# func_basename file
7993
 
func_basename ()
7994
 
{
7995
 
  func_basename_result="${1##*/}"
7996
 
}
7997
 
 
7998
 
# func_dirname_and_basename file append nondir_replacement
7999
 
# perform func_basename and func_dirname in a single function
8000
 
# call:
8001
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8002
 
#             add APPEND to the result, otherwise set result
8003
 
#             to NONDIR_REPLACEMENT.
8004
 
#             value returned in "$func_dirname_result"
8005
 
#   basename: Compute filename of FILE.
8006
 
#             value retuned in "$func_basename_result"
8007
 
# Implementation must be kept synchronized with func_dirname
8008
 
# and func_basename. For efficiency, we do not delegate to
8009
 
# those functions but instead duplicate the functionality here.
8010
 
func_dirname_and_basename ()
8011
 
{
8012
 
  case ${1} in
8013
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8014
 
    *  ) func_dirname_result="${3}" ;;
8015
 
  esac
8016
 
  func_basename_result="${1##*/}"
8017
 
}
8018
 
 
8019
 
# func_stripname prefix suffix name
8020
 
# strip PREFIX and SUFFIX off of NAME.
8021
 
# PREFIX and SUFFIX must not contain globbing or regex special
8022
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8023
 
# dot (in which case that matches only a dot).
8024
 
func_stripname ()
8025
 
{
8026
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8027
 
  # positional parameters, so assign one to ordinary parameter first.
8028
 
  func_stripname_result=${3}
8029
 
  func_stripname_result=${func_stripname_result#"${1}"}
8030
 
  func_stripname_result=${func_stripname_result%"${2}"}
8031
 
}
8032
 
 
8033
 
# func_opt_split
8034
 
func_opt_split ()
8035
 
{
8036
 
  func_opt_split_opt=${1%%=*}
8037
 
  func_opt_split_arg=${1#*=}
8038
 
}
8039
 
 
8040
 
# func_lo2o object
8041
 
func_lo2o ()
8042
 
{
8043
 
  case ${1} in
8044
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8045
 
    *)    func_lo2o_result=${1} ;;
8046
 
  esac
8047
 
}
8048
 
 
8049
 
# func_xform libobj-or-source
8050
 
func_xform ()
8051
 
{
8052
 
  func_xform_result=${1%.*}.lo
8053
 
}
8054
 
 
8055
 
# func_arith arithmetic-term...
8056
 
func_arith ()
8057
 
{
8058
 
  func_arith_result=$(( $[*] ))
8059
 
}
8060
 
 
8061
 
# func_len string
8062
 
# STRING may not start with a hyphen.
8063
 
func_len ()
8064
 
{
8065
 
  func_len_result=${#1}
8066
 
}
8067
 
 
8068
 
_LT_EOF
8069
 
    ;;
8070
 
  *) # Bourne compatible functions.
8071
 
    cat << \_LT_EOF >> "$cfgfile"
8072
 
 
8073
 
# func_dirname file append nondir_replacement
8074
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8075
 
# otherwise set result to NONDIR_REPLACEMENT.
8076
 
func_dirname ()
8077
 
{
8078
 
  # Extract subdirectory from the argument.
8079
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8080
 
  if test "X$func_dirname_result" = "X${1}"; then
8081
 
    func_dirname_result="${3}"
8082
 
  else
8083
 
    func_dirname_result="$func_dirname_result${2}"
8084
 
  fi
8085
 
}
8086
 
 
8087
 
# func_basename file
8088
 
func_basename ()
8089
 
{
8090
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8091
 
}
8092
 
 
8093
 
dnl func_dirname_and_basename
8094
 
dnl A portable version of this function is already defined in general.m4sh
8095
 
dnl so there is no need for it here.
8096
 
 
8097
 
# func_stripname prefix suffix name
8098
 
# strip PREFIX and SUFFIX off of NAME.
8099
 
# PREFIX and SUFFIX must not contain globbing or regex special
8100
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8101
 
# dot (in which case that matches only a dot).
8102
 
# func_strip_suffix prefix name
8103
 
func_stripname ()
8104
 
{
8105
 
  case ${2} in
8106
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8107
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8108
 
  esac
8109
 
}
8110
 
 
8111
 
# sed scripts:
8112
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8113
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8114
 
 
8115
 
# func_opt_split
8116
 
func_opt_split ()
8117
 
{
8118
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8119
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8120
 
}
8121
 
 
8122
 
# func_lo2o object
8123
 
func_lo2o ()
8124
 
{
8125
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8126
 
}
8127
 
 
8128
 
# func_xform libobj-or-source
8129
 
func_xform ()
8130
 
{
8131
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8132
 
}
8133
 
 
8134
 
# func_arith arithmetic-term...
8135
 
func_arith ()
8136
 
{
8137
 
  func_arith_result=`expr "$[@]"`
8138
 
}
8139
 
 
8140
 
# func_len string
8141
 
# STRING may not start with a hyphen.
8142
 
func_len ()
8143
 
{
8144
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8145
 
}
8146
 
 
8147
 
_LT_EOF
8148
 
esac
8149
 
 
8150
 
case $lt_shell_append in
8151
 
  yes)
8152
 
    cat << \_LT_EOF >> "$cfgfile"
8153
 
 
8154
 
# func_append var value
8155
 
# Append VALUE to the end of shell variable VAR.
8156
 
func_append ()
8157
 
{
8158
 
  eval "$[1]+=\$[2]"
8159
 
}
8160
 
_LT_EOF
8161
 
    ;;
8162
 
  *)
8163
 
    cat << \_LT_EOF >> "$cfgfile"
8164
 
 
8165
 
# func_append var value
8166
 
# Append VALUE to the end of shell variable VAR.
8167
 
func_append ()
8168
 
{
8169
 
  eval "$[1]=\$$[1]\$[2]"
8170
 
}
8171
 
 
8172
 
_LT_EOF
8173
 
    ;;
8174
 
  esac
8175
 
])
 
8411
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8412
# ------------------------------------------------------
 
8413
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8414
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8415
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8416
[dnl {
 
8417
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8418
$1 ()\
 
8419
{\
 
8420
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8421
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8422
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8423
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8424
test 0 -eq $? || _lt_function_replace_fail=:
 
8425
])
 
8426
 
 
8427
 
 
8428
# _LT_PROG_REPLACE_SHELLFNS
 
8429
# -------------------------
 
8430
# Replace existing portable implementations of several shell functions with
 
8431
# equivalent extended shell implementations where those features are available..
 
8432
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8433
[if test x"$xsi_shell" = xyes; then
 
8434
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8435
    case ${1} in
 
8436
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8437
      *  ) func_dirname_result="${3}" ;;
 
8438
    esac])
 
8439
 
 
8440
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8441
    func_basename_result="${1##*/}"])
 
8442
 
 
8443
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8444
    case ${1} in
 
8445
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8446
      *  ) func_dirname_result="${3}" ;;
 
8447
    esac
 
8448
    func_basename_result="${1##*/}"])
 
8449
 
 
8450
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8451
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8452
    # positional parameters, so assign one to ordinary parameter first.
 
8453
    func_stripname_result=${3}
 
8454
    func_stripname_result=${func_stripname_result#"${1}"}
 
8455
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8456
 
 
8457
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8458
    func_split_long_opt_name=${1%%=*}
 
8459
    func_split_long_opt_arg=${1#*=}])
 
8460
 
 
8461
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8462
    func_split_short_opt_arg=${1#??}
 
8463
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8464
 
 
8465
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8466
    case ${1} in
 
8467
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8468
      *)    func_lo2o_result=${1} ;;
 
8469
    esac])
 
8470
 
 
8471
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8472
 
 
8473
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8474
 
 
8475
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8476
fi
 
8477
 
 
8478
if test x"$lt_shell_append" = xyes; then
 
8479
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8480
 
 
8481
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8482
    func_quote_for_eval "${2}"
 
8483
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8484
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8485
 
 
8486
  # Save a `func_append' function call where possible by direct use of '+='
 
8487
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8488
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8489
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8490
  test 0 -eq $? || _lt_function_replace_fail=:
 
8491
else
 
8492
  # Save a `func_append' function call even when '+=' is not available
 
8493
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8494
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8495
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8496
  test 0 -eq $? || _lt_function_replace_fail=:
 
8497
fi
 
8498
 
 
8499
if test x"$_lt_function_replace_fail" = x":"; then
 
8500
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8501
fi
 
8502
])
 
8503
 
 
8504
# _LT_PATH_CONVERSION_FUNCTIONS
 
8505
# -----------------------------
 
8506
# Determine which file name conversion functions should be used by
 
8507
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8508
# for certain cross-compile configurations and native mingw.
 
8509
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8510
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8511
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8512
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8513
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8514
[case $host in
 
8515
  *-*-mingw* )
 
8516
    case $build in
 
8517
      *-*-mingw* ) # actually msys
 
8518
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8519
        ;;
 
8520
      *-*-cygwin* )
 
8521
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8522
        ;;
 
8523
      * ) # otherwise, assume *nix
 
8524
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8525
        ;;
 
8526
    esac
 
8527
    ;;
 
8528
  *-*-cygwin* )
 
8529
    case $build in
 
8530
      *-*-mingw* ) # actually msys
 
8531
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8532
        ;;
 
8533
      *-*-cygwin* )
 
8534
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8535
        ;;
 
8536
      * ) # otherwise, assume *nix
 
8537
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8538
        ;;
 
8539
    esac
 
8540
    ;;
 
8541
  * ) # unhandled hosts (and "normal" native builds)
 
8542
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8543
    ;;
 
8544
esac
 
8545
])
 
8546
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8547
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8548
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8549
         [0], [convert $build file names to $host format])dnl
 
8550
 
 
8551
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8552
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8553
[#assume ordinary cross tools, or native build.
 
8554
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8555
case $host in
 
8556
  *-*-mingw* )
 
8557
    case $build in
 
8558
      *-*-mingw* ) # actually msys
 
8559
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8560
        ;;
 
8561
    esac
 
8562
    ;;
 
8563
esac
 
8564
])
 
8565
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8566
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8567
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8568
         [0], [convert $build files to toolchain format])dnl
 
8569
])# _LT_PATH_CONVERSION_FUNCTIONS
8176
8570
 
8177
8571
# Helper functions for option handling.                    -*- Autoconf -*-
8178
8572
#
8671
9065
# unlimited permission to copy and/or distribute it, with or without
8672
9066
# modifications, as long as this notice is preserved.
8673
9067
 
8674
 
# Generated from ltversion.in.
 
9068
# @configure_input@
8675
9069
 
8676
 
# serial 3175 ltversion.m4
 
9070
# serial 3293 ltversion.m4
8677
9071
# This file is part of GNU Libtool
8678
9072
 
8679
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
8680
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
 
9073
m4_define([LT_PACKAGE_VERSION], [2.4])
 
9074
m4_define([LT_PACKAGE_REVISION], [1.3293])
8681
9075
 
8682
9076
AC_DEFUN([LTVERSION_VERSION],
8683
 
[macro_version='2.2.10'
8684
 
macro_revision='1.3175'
 
9077
[macro_version='2.4'
 
9078
macro_revision='1.3293'
8685
9079
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8686
9080
_LT_DECL(, macro_revision, 0)
8687
9081
])