~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-12 15:04:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051212150452-2ymlra67b2p7kjyy
Tags: 7.15.1-1ubuntu1
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
(CVE-2005-4077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
 
285
285
# The HP-UX ksh and POSIX shell print the target directory to stdout
286
286
# if CDPATH is set.
287
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
287
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
288
288
 
289
289
if test -z "$ECHO"; then
290
290
if test "X${echo_test_string+set}" != Xset; then
291
291
# find a string as large as possible, as long as the shell can cope with it
292
292
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
293
293
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
294
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
295
 
       echo_test_string="`eval $cmd`" &&
 
294
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
295
       echo_test_string=`eval $cmd` &&
296
296
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
297
    then
298
298
      break
470
470
#endif"
471
471
 
472
472
ac_subdirs_all="$ac_subdirs_all ares"
473
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED KRB4_ENABLED PKGCONFIG USE_SSLEAY RANDOM_FILE USE_GNUTLS CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE IDN_ENABLED PERL NROFF MANOPT USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs CURL_DISABLE_VERBOSE_STRINGS USE_WINDOWS_SSPI CURL_DISABLE_CRYPTO_AUTH CURL_DISABLE_COOKIES CROSSCOMPILING_TRUE CROSSCOMPILING_FALSE LIBOBJS LTLIBOBJS'
 
473
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET CURL_DISABLE_TFTP IPV6_ENABLED KRB4_ENABLED PKGCONFIG USE_SSLEAY RANDOM_FILE USE_GNUTLS CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE VERSIONED_FLAVOUR VERSIONED_SYMBOLS_TRUE VERSIONED_SYMBOLS_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE IDN_ENABLED PERL NROFF MANOPT USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs CURL_DISABLE_VERBOSE_STRINGS USE_WINDOWS_SSPI CURL_DISABLE_CRYPTO_AUTH CURL_DISABLE_COOKIES CROSSCOMPILING_TRUE CROSSCOMPILING_FALSE LIBOBJS LTLIBOBJS'
474
474
ac_subst_files=''
475
475
 
476
476
# Initialize some variables set by options.
1058
1058
  --disable-dict          Disable DICT support
1059
1059
  --enable-telnet         Enable TELNET support
1060
1060
  --disable-telnet        Disable TELNET support
 
1061
  --enable-tftp           Enable TFTP support
 
1062
  --disable-tftp          Disable TFTP support
1061
1063
  --enable-manual         Enable built-in manual
1062
1064
  --disable-manual        Disable built-in manual
1063
1065
  --enable-libgcc         use libgcc when linking
1065
1067
  --disable-ipv6          Disable ipv6 support
1066
1068
  --enable-nonblocking    Enable detecting how to do it
1067
1069
  --disable-nonblocking   Disable non-blocking socket detection
 
1070
  --enable-versioned-symbols
 
1071
                          Enable versioned symbols in shared library
 
1072
  --disable-versioned-symbols
 
1073
                          Disable versioned symbols in shared library
1068
1074
  --disable-thread        don't look for thread-safe functions
1069
1075
  --enable-thread         look for thread-safe functions
1070
1076
  --enable-ares=PATH      Enable ares for name lookups
4895
4901
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4896
4902
# along with /bin/sed that truncates output.
4897
4903
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4898
 
  test ! -f $lt_ac_sed && break
 
4904
  test ! -f $lt_ac_sed && continue
4899
4905
  cat /dev/null > conftest.in
4900
4906
  lt_ac_count=0
4901
4907
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4920
4926
    fi
4921
4927
  done
4922
4928
done
 
4929
 
 
4930
fi
 
4931
 
4923
4932
SED=$lt_cv_path_SED
4924
 
 
4925
 
fi
4926
 
 
4927
4933
echo "$as_me:$LINENO: result: $SED" >&5
4928
4934
echo "${ECHO_T}$SED" >&6
4929
4935
 
4985
4991
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4986
4992
      lt_cv_path_LD="$ac_dir/$ac_prog"
4987
4993
      # Check to see if the program is GNU ld.  I'd rather use --version,
4988
 
      # but apparently some GNU ld's only accept -v.
 
4994
      # but apparently some variants of GNU ld only accept -v.
4989
4995
      # Break only if it was the GNU/non-GNU ld that we prefer.
4990
4996
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4991
4997
      *GNU* | *'with BFD'*)
5019
5025
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5020
5026
  echo $ECHO_N "(cached) $ECHO_C" >&6
5021
5027
else
5022
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5028
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5023
5029
case `$LD -v 2>&1 </dev/null` in
5024
5030
*GNU* | *'with BFD'*)
5025
5031
  lt_cv_prog_gnu_ld=yes
5049
5055
*) reload_flag=" $reload_flag" ;;
5050
5056
esac
5051
5057
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5058
case $host_os in
 
5059
  darwin*)
 
5060
    if test "$GCC" = yes; then
 
5061
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5062
    else
 
5063
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5064
    fi
 
5065
    ;;
 
5066
esac
5052
5067
 
5053
5068
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5054
5069
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5135
5150
  lt_cv_deplibs_check_method=pass_all
5136
5151
  ;;
5137
5152
 
5138
 
bsdi4*)
 
5153
bsdi[45]*)
5139
5154
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5140
5155
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5141
5156
  lt_cv_file_magic_test_file=/shlib/libc.so
5158
5173
  lt_cv_deplibs_check_method=pass_all
5159
5174
  ;;
5160
5175
 
5161
 
freebsd* | kfreebsd*-gnu)
 
5176
freebsd* | kfreebsd*-gnu | dragonfly*)
5162
5177
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5163
5178
    case $host_cpu in
5164
5179
    i*86 )
5165
5180
      # Not sure whether the presence of OpenBSD here was a mistake.
5166
5181
      # Let's accept both of them until this is cleared up.
5167
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5182
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5168
5183
      lt_cv_file_magic_cmd=/usr/bin/file
5169
5184
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5170
5185
      ;;
5180
5195
 
5181
5196
hpux10.20* | hpux11*)
5182
5197
  lt_cv_file_magic_cmd=/usr/bin/file
5183
 
  case "$host_cpu" in
 
5198
  case $host_cpu in
5184
5199
  ia64*)
5185
5200
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5186
5201
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230
5245
  ;;
5231
5246
 
5232
5247
openbsd*)
5233
 
  lt_cv_file_magic_cmd=/usr/bin/file
5234
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5235
5248
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5236
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
5249
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5237
5250
  else
5238
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
5251
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239
5252
  fi
5240
5253
  ;;
5241
5254
 
5327
5340
  ;;
5328
5341
*-*-irix6*)
5329
5342
  # Find out which ABI we are using.
5330
 
  echo '#line 5330 "configure"' > conftest.$ac_ext
 
5343
  echo '#line 5343 "configure"' > conftest.$ac_ext
5331
5344
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332
5345
  (eval $ac_compile) 2>&5
5333
5346
  ac_status=$?
5370
5383
  ac_status=$?
5371
5384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
5385
  (exit $ac_status); }; then
5373
 
    case "`/usr/bin/file conftest.o`" in
 
5386
    case `/usr/bin/file conftest.o` in
5374
5387
    *32-bit*)
5375
5388
      case $host in
5376
5389
        x86_64-*linux*)
6568
6581
fi
6569
6582
 
6570
6583
 
6571
 
ac_ext=cc
 
6584
 
 
6585
 
 
6586
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6587
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6588
    (test "X$CXX" != "Xg++"))) ; then
 
6589
  ac_ext=cc
6572
6590
ac_cpp='$CXXCPP $CPPFLAGS'
6573
6591
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574
6592
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798
6816
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799
6817
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6800
6818
 
 
6819
fi
 
6820
 
6801
6821
 
6802
6822
ac_ext=f
6803
6823
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6891
6911
 
6892
6912
 
6893
6913
# Provide some information about the compiler.
6894
 
echo "$as_me:6894:" \
 
6914
echo "$as_me:6914:" \
6895
6915
     "checking for Fortran 77 compiler version" >&5
6896
6916
ac_compiler=`set X $ac_compile; echo $2`
6897
6917
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7079
7099
    lt_cv_sys_max_cmd_len=8192;
7080
7100
    ;;
7081
7101
 
7082
 
 *)
 
7102
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
7103
    # This has been around since 386BSD, at least.  Likely further.
 
7104
    if test -x /sbin/sysctl; then
 
7105
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7106
    elif test -x /usr/sbin/sysctl; then
 
7107
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7108
    else
 
7109
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
7110
    fi
 
7111
    # And add a safety zone
 
7112
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7113
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7114
    ;;
 
7115
  osf*)
 
7116
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7117
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7118
    # nice to cause kernel panics so lets avoid the loop below.
 
7119
    # First set a reasonable default.
 
7120
    lt_cv_sys_max_cmd_len=16384
 
7121
    #
 
7122
    if test -x /sbin/sysconfig; then
 
7123
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7124
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7125
      esac
 
7126
    fi
 
7127
    ;;
 
7128
  *)
7083
7129
    # If test is not a shell built-in, we'll probably end up computing a
7084
7130
    # maximum length that is only half of the actual maximum length, but
7085
7131
    # we can't tell.
7086
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7132
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7133
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7087
7134
               = "XX$teststring") >/dev/null 2>&1 &&
7088
7135
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7089
7136
            lt_cv_sys_max_cmd_len=$new_result &&
7129
7176
# Regexp to match symbols that can be accessed directly from C.
7130
7177
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7131
7178
 
7132
 
# Transform the above into a raw symbol and a C symbol.
7133
 
symxfrm='\1 \2\3 \3'
7134
 
 
7135
7179
# Transform an extracted symbol line into a proper C declaration
7136
7180
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7137
7181
 
7153
7197
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154
7198
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7155
7199
  ;;
 
7200
linux*)
 
7201
  if test "$host_cpu" = ia64; then
 
7202
    symcode='[ABCDGIRSTW]'
 
7203
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7204
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7205
  fi
 
7206
  ;;
7156
7207
irix* | nonstopux*)
7157
7208
  symcode='[BCDEGRST]'
7158
7209
  ;;
7184
7235
# Try without a prefix undercore, then with it.
7185
7236
for ac_symprfx in "" "_"; do
7186
7237
 
 
7238
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7239
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7240
 
7187
7241
  # Write the raw and C identifiers.
7188
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
7242
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7189
7243
 
7190
7244
  # Check to see that the pipe works correctly.
7191
7245
  pipe_works=no
7347
7401
 
7348
7402
# Sed substitution that helps us do robust quoting.  It backslashifies
7349
7403
# metacharacters that are still active within double-quoted strings.
7350
 
Xsed='sed -e s/^X//'
 
7404
Xsed='sed -e 1s/^X//'
7351
7405
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7352
7406
 
7353
7407
# Same as above, but do not quote variable references.
7367
7421
default_ofile=libtool
7368
7422
can_build_shared=yes
7369
7423
 
7370
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7424
# All known linkers require a `.a' archive for static linking (except MSVC,
7371
7425
# which needs '.lib').
7372
7426
libext=a
7373
7427
ltmain="$ac_aux_dir/ltmain.sh"
7652
7706
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7653
7707
fi
7654
7708
 
 
7709
for cc_temp in $compiler""; do
 
7710
  case $cc_temp in
 
7711
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7712
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7713
    \-*) ;;
 
7714
    *) break;;
 
7715
  esac
 
7716
done
 
7717
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7718
 
 
7719
 
7655
7720
# Only perform the check for file, if the check method requires it
7656
7721
case $deplibs_check_method in
7657
7722
file_magic*)
7677
7742
      if test -n "$file_magic_test_file"; then
7678
7743
        case $deplibs_check_method in
7679
7744
        "file_magic "*)
7680
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7745
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7681
7746
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7682
7747
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7683
7748
            $EGREP "$file_magic_regex" > /dev/null; then
7739
7804
      if test -n "$file_magic_test_file"; then
7740
7805
        case $deplibs_check_method in
7741
7806
        "file_magic "*)
7742
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7807
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7743
7808
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744
7809
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7745
7810
            $EGREP "$file_magic_regex" > /dev/null; then
7838
7903
compiler=$CC
7839
7904
 
7840
7905
 
 
7906
# save warnings/boilerplate of simple test code
 
7907
ac_outfile=conftest.$ac_objext
 
7908
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7909
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7910
_lt_compiler_boilerplate=`cat conftest.err`
 
7911
$rm conftest*
 
7912
 
 
7913
ac_outfile=conftest.$ac_objext
 
7914
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7915
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7916
_lt_linker_boilerplate=`cat conftest.err`
 
7917
$rm conftest*
 
7918
 
 
7919
 
7841
7920
#
7842
7921
# Check for any special shared library compilation flags.
7843
7922
#
7874
7953
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7875
7954
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7876
7955
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7877
 
     # The compiler can only warn and ignore the option if not recognized
 
7956
     # The linker can only warn and ignore the option if not recognized
7878
7957
     # So say no if there are warnings
7879
7958
     if test -s conftest.err; then
7880
7959
       # Append any errors to the config.log.
7881
7960
       cat conftest.err 1>&5
 
7961
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
7962
       $SED '/^$/d' conftest.err >conftest.er2
 
7963
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7964
         lt_prog_compiler_static_works=yes
 
7965
       fi
7882
7966
     else
7883
7967
       lt_prog_compiler_static_works=yes
7884
7968
     fi
7920
8004
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7921
8005
   # The option is referenced via a variable to avoid confusing sed.
7922
8006
   lt_compile=`echo "$ac_compile" | $SED \
7923
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8007
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7924
8008
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7925
8009
   -e 's:$: $lt_compiler_flag:'`
7926
 
   (eval echo "\"\$as_me:7926: $lt_compile\"" >&5)
 
8010
   (eval echo "\"\$as_me:8010: $lt_compile\"" >&5)
7927
8011
   (eval "$lt_compile" 2>conftest.err)
7928
8012
   ac_status=$?
7929
8013
   cat conftest.err >&5
7930
 
   echo "$as_me:7930: \$? = $ac_status" >&5
 
8014
   echo "$as_me:8014: \$? = $ac_status" >&5
7931
8015
   if (exit $ac_status) && test -s "$ac_outfile"; then
7932
8016
     # The compiler can only warn and ignore the option if not recognized
7933
 
     # So say no if there are warnings
7934
 
     if test ! -s conftest.err; then
 
8017
     # So say no if there are warnings other than the usual output.
 
8018
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
8019
     $SED '/^$/d' conftest.err >conftest.er2
 
8020
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7935
8021
       lt_cv_prog_compiler_rtti_exceptions=yes
7936
8022
     fi
7937
8023
   fi
8008
8094
    hpux*)
8009
8095
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010
8096
      # not for PA HP-UX.
8011
 
      case "$host_cpu" in
 
8097
      case $host_cpu in
8012
8098
      hppa*64*|ia64*)
8013
8099
        # +Z the default
8014
8100
        ;;
8034
8120
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8035
8121
      fi
8036
8122
      ;;
 
8123
      darwin*)
 
8124
        # PIC is the default on this platform
 
8125
        # Common symbols not allowed in MH_DYLIB files
 
8126
       case $cc_basename in
 
8127
         xlc*)
 
8128
         lt_prog_compiler_pic='-qnocommon'
 
8129
         lt_prog_compiler_wl='-Wl,'
 
8130
         ;;
 
8131
       esac
 
8132
       ;;
8037
8133
 
8038
8134
    mingw* | pw32* | os2*)
8039
8135
      # This hack is so that the source file can tell whether it is being
8045
8141
      lt_prog_compiler_wl='-Wl,'
8046
8142
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8047
8143
      # not for PA HP-UX.
8048
 
      case "$host_cpu" in
 
8144
      case $host_cpu in
8049
8145
      hppa*64*|ia64*)
8050
8146
        # +Z the default
8051
8147
        ;;
8069
8165
      ;;
8070
8166
 
8071
8167
    linux*)
8072
 
      case $CC in
 
8168
      case $cc_basename in
8073
8169
      icc* | ecc*)
8074
8170
        lt_prog_compiler_wl='-Wl,'
8075
8171
        lt_prog_compiler_pic='-KPIC'
8076
8172
        lt_prog_compiler_static='-static'
8077
8173
        ;;
 
8174
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8175
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8176
        # which looks to be a dead project)
 
8177
        lt_prog_compiler_wl='-Wl,'
 
8178
        lt_prog_compiler_pic='-fpic'
 
8179
        lt_prog_compiler_static='-Bstatic'
 
8180
        ;;
8078
8181
      ccc*)
8079
8182
        lt_prog_compiler_wl='-Wl,'
8080
8183
        # All Alpha code is PIC.
8095
8198
      ;;
8096
8199
 
8097
8200
    solaris*)
8098
 
      lt_prog_compiler_wl='-Wl,'
8099
8201
      lt_prog_compiler_pic='-KPIC'
8100
8202
      lt_prog_compiler_static='-Bstatic'
 
8203
      case $cc_basename in
 
8204
      f77* | f90* | f95*)
 
8205
        lt_prog_compiler_wl='-Qoption ld ';;
 
8206
      *)
 
8207
        lt_prog_compiler_wl='-Wl,';;
 
8208
      esac
8101
8209
      ;;
8102
8210
 
8103
8211
    sunos4*)
8119
8227
      fi
8120
8228
      ;;
8121
8229
 
 
8230
    unicos*)
 
8231
      lt_prog_compiler_wl='-Wl,'
 
8232
      lt_prog_compiler_can_build_shared=no
 
8233
      ;;
 
8234
 
8122
8235
    uts4*)
8123
8236
      lt_prog_compiler_pic='-pic'
8124
8237
      lt_prog_compiler_static='-Bstatic'
8153
8266
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8154
8267
   # The option is referenced via a variable to avoid confusing sed.
8155
8268
   lt_compile=`echo "$ac_compile" | $SED \
8156
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8269
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8157
8270
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8158
8271
   -e 's:$: $lt_compiler_flag:'`
8159
 
   (eval echo "\"\$as_me:8159: $lt_compile\"" >&5)
 
8272
   (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8160
8273
   (eval "$lt_compile" 2>conftest.err)
8161
8274
   ac_status=$?
8162
8275
   cat conftest.err >&5
8163
 
   echo "$as_me:8163: \$? = $ac_status" >&5
 
8276
   echo "$as_me:8276: \$? = $ac_status" >&5
8164
8277
   if (exit $ac_status) && test -s "$ac_outfile"; then
8165
8278
     # The compiler can only warn and ignore the option if not recognized
8166
 
     # So say no if there are warnings
8167
 
     if test ! -s conftest.err; then
 
8279
     # So say no if there are warnings other than the usual output.
 
8280
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
8281
     $SED '/^$/d' conftest.err >conftest.er2
 
8282
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8168
8283
       lt_prog_compiler_pic_works=yes
8169
8284
     fi
8170
8285
   fi
8185
8300
fi
8186
8301
 
8187
8302
fi
8188
 
case "$host_os" in
 
8303
case $host_os in
8189
8304
  # For platforms which do not support PIC, -DPIC is meaningless:
8190
8305
  *djgpp*)
8191
8306
    lt_prog_compiler_pic=
8213
8328
   # Note that $ac_compile itself does not contain backslashes and begins
8214
8329
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8215
8330
   lt_compile=`echo "$ac_compile" | $SED \
8216
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8331
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217
8332
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218
8333
   -e 's:$: $lt_compiler_flag:'`
8219
 
   (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
 
8334
   (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8220
8335
   (eval "$lt_compile" 2>out/conftest.err)
8221
8336
   ac_status=$?
8222
8337
   cat out/conftest.err >&5
8223
 
   echo "$as_me:8223: \$? = $ac_status" >&5
 
8338
   echo "$as_me:8338: \$? = $ac_status" >&5
8224
8339
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8225
8340
   then
8226
8341
     # The compiler can only warn and ignore the option if not recognized
8227
8342
     # So say no if there are warnings
8228
 
     if test ! -s out/conftest.err; then
 
8343
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
8344
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
8345
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229
8346
       lt_cv_prog_compiler_c_o=yes
8230
8347
     fi
8231
8348
   fi
8232
 
   chmod u+w .
 
8349
   chmod u+w . 2>&5
8233
8350
   $rm conftest*
8234
8351
   # SGI C++ compiler will create directory out/ii_files/ for
8235
8352
   # template instantiation
8305
8422
  # rely on this symbol name, it's probably fine to never include it in
8306
8423
  # preloaded symbol tables.
8307
8424
  extract_expsyms_cmds=
 
8425
  # Just being paranoid about ensuring that cc_basename is set.
 
8426
  for cc_temp in $compiler""; do
 
8427
  case $cc_temp in
 
8428
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8429
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8430
    \-*) ;;
 
8431
    *) break;;
 
8432
  esac
 
8433
done
 
8434
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8308
8435
 
8309
8436
  case $host_os in
8310
8437
  cygwin* | mingw* | pw32*)
8325
8452
    # If archive_cmds runs LD, not CC, wlarc should be empty
8326
8453
    wlarc='${wl}'
8327
8454
 
 
8455
    # Set some defaults for GNU ld with shared library support. These
 
8456
    # are reset later if shared libraries are not supported. Putting them
 
8457
    # here allows them to be overridden if necessary.
 
8458
    runpath_var=LD_RUN_PATH
 
8459
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8460
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8461
    # ancient GNU ld didn't support --whole-archive et. al.
 
8462
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8463
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8464
      else
 
8465
        whole_archive_flag_spec=
 
8466
    fi
 
8467
    supports_anon_versioning=no
 
8468
    case `$LD -v 2>/dev/null` in
 
8469
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8470
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8471
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8472
      *\ 2.11.*) ;; # other 2.11 versions
 
8473
      *) supports_anon_versioning=yes ;;
 
8474
    esac
 
8475
 
8328
8476
    # See if GNU ld supports shared libraries.
8329
8477
    case $host_os in
8330
8478
    aix3* | aix4* | aix5*)
8375
8523
      allow_undefined_flag=unsupported
8376
8524
      always_export_symbols=no
8377
8525
      enable_shared_with_static_runtimes=yes
8378
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8526
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8379
8527
 
8380
8528
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8381
8529
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8393
8541
      fi
8394
8542
      ;;
8395
8543
 
 
8544
    linux*)
 
8545
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8546
        tmp_addflag=
 
8547
        case $cc_basename,$host_cpu in
 
8548
        pgcc*)                          # Portland Group C compiler
 
8549
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8550
          tmp_addflag=' $pic_flag'
 
8551
          ;;
 
8552
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8553
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8554
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8555
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8556
          tmp_addflag=' -i_dynamic' ;;
 
8557
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8558
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8559
        ifc* | ifort*)                  # Intel Fortran compiler
 
8560
          tmp_addflag=' -nofor_main' ;;
 
8561
        esac
 
8562
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8563
 
 
8564
        if test $supports_anon_versioning = yes; then
 
8565
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8566
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8567
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8568
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8569
        fi
 
8570
        link_all_deplibs=no
 
8571
      else
 
8572
        ld_shlibs=no
 
8573
      fi
 
8574
      ;;
 
8575
 
8396
8576
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8397
8577
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8398
8578
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8431
8611
      hardcode_shlibpath_var=no
8432
8612
      ;;
8433
8613
 
8434
 
  linux*)
8435
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8436
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437
 
        archive_cmds="$tmp_archive_cmds"
8438
 
      supports_anon_versioning=no
8439
 
      case `$LD -v 2>/dev/null` in
8440
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8441
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8442
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8443
 
        *\ 2.11.*) ;; # other 2.11 versions
8444
 
        *) supports_anon_versioning=yes ;;
8445
 
      esac
8446
 
      if test $supports_anon_versioning = yes; then
8447
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8448
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8449
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8450
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8451
 
      else
8452
 
        archive_expsym_cmds="$tmp_archive_cmds"
8453
 
      fi
8454
 
      link_all_deplibs=no
8455
 
    else
8456
 
      ld_shlibs=no
8457
 
    fi
8458
 
    ;;
8459
 
 
8460
8614
    *)
8461
8615
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8462
8616
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467
8621
      ;;
8468
8622
    esac
8469
8623
 
8470
 
    if test "$ld_shlibs" = yes; then
8471
 
      runpath_var=LD_RUN_PATH
8472
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8473
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8474
 
      # ancient GNU ld didn't support --whole-archive et. al.
8475
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8476
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8477
 
      else
8478
 
        whole_archive_flag_spec=
8479
 
      fi
 
8624
    if test "$ld_shlibs" = no; then
 
8625
      runpath_var=
 
8626
      hardcode_libdir_flag_spec=
 
8627
      export_dynamic_flag_spec=
 
8628
      whole_archive_flag_spec=
8480
8629
    fi
8481
8630
  else
8482
8631
    # PORTME fill in a description of your system's linker (not GNU ld)
8540
8689
      link_all_deplibs=yes
8541
8690
 
8542
8691
      if test "$GCC" = yes; then
8543
 
        case $host_os in aix4.012|aix4.012.*)
 
8692
        case $host_os in aix4.[012]|aix4.[012].*)
8544
8693
        # We only want to do this on AIX 4.2 and lower, the check
8545
8694
        # below for broken collect2 doesn't work under 4.3+
8546
8695
          collect2name=`${CC} -print-prog-name=collect2`
8561
8710
          fi
8562
8711
        esac
8563
8712
        shared_flag='-shared'
 
8713
        if test "$aix_use_runtimelinking" = yes; then
 
8714
          shared_flag="$shared_flag "'${wl}-G'
 
8715
        fi
8564
8716
      else
8565
8717
        # not using gcc
8566
8718
        if test "$host_cpu" = ia64; then
8705
8857
          # Exported symbols can be pulled into shared objects from archives
8706
8858
          whole_archive_flag_spec=' '
8707
8859
          archive_cmds_need_lc=yes
8708
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8860
          # This is similar to how AIX traditionally builds its shared libraries.
8709
8861
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8710
8862
        fi
8711
8863
      fi
8719
8871
      ld_shlibs=no
8720
8872
      ;;
8721
8873
 
8722
 
    bsdi4*)
 
8874
    bsdi[45]*)
8723
8875
      export_dynamic_flag_spec=-rdynamic
8724
8876
      ;;
8725
8877
 
8745
8897
      ;;
8746
8898
 
8747
8899
    darwin* | rhapsody*)
8748
 
    if test "$GXX" = yes ; then
 
8900
      case $host_os in
 
8901
        rhapsody* | darwin1.[012])
 
8902
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8903
         ;;
 
8904
       *) # Darwin 1.3 on
 
8905
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8906
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8907
         else
 
8908
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8909
             10.[012])
 
8910
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8911
               ;;
 
8912
             10.*)
 
8913
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8914
               ;;
 
8915
           esac
 
8916
         fi
 
8917
         ;;
 
8918
      esac
8749
8919
      archive_cmds_need_lc=no
8750
 
      case "$host_os" in
8751
 
      rhapsody* | darwin1.[012])
8752
 
        allow_undefined_flag='-undefined suppress'
8753
 
        ;;
8754
 
      *) # Darwin 1.3 on
8755
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8756
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8757
 
      else
8758
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8759
 
          10.[012])
8760
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8761
 
            ;;
8762
 
          10.*)
8763
 
            allow_undefined_flag='-undefined dynamic_lookup'
8764
 
            ;;
8765
 
        esac
8766
 
      fi
8767
 
        ;;
8768
 
      esac
8769
 
        lt_int_apple_cc_single_mod=no
8770
 
        output_verbose_link_cmd='echo'
8771
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8772
 
          lt_int_apple_cc_single_mod=yes
8773
 
        fi
8774
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8775
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8776
 
        else
8777
 
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8778
 
      fi
8779
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8780
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8781
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8782
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8783
 
        else
8784
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8785
 
        fi
8786
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8787
8920
      hardcode_direct=no
8788
8921
      hardcode_automatic=yes
8789
8922
      hardcode_shlibpath_var=unsupported
8790
 
      whole_archive_flag_spec='-all_load $convenience'
 
8923
      whole_archive_flag_spec=''
8791
8924
      link_all_deplibs=yes
 
8925
    if test "$GCC" = yes ; then
 
8926
        output_verbose_link_cmd='echo'
 
8927
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8928
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8929
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8930
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8931
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8792
8932
    else
8793
 
      ld_shlibs=no
 
8933
      case $cc_basename in
 
8934
        xlc*)
 
8935
         output_verbose_link_cmd='echo'
 
8936
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8937
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8938
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8939
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8940
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8941
          ;;
 
8942
       *)
 
8943
         ld_shlibs=no
 
8944
          ;;
 
8945
      esac
8794
8946
    fi
8795
8947
      ;;
8796
8948
 
8824
8976
      ;;
8825
8977
 
8826
8978
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8827
 
    freebsd* | kfreebsd*-gnu)
 
8979
    freebsd* | kfreebsd*-gnu | dragonfly*)
8828
8980
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8829
8981
      hardcode_libdir_flag_spec='-R$libdir'
8830
8982
      hardcode_direct=yes
8849
9001
 
8850
9002
    hpux10* | hpux11*)
8851
9003
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8852
 
        case "$host_cpu" in
 
9004
        case $host_cpu in
8853
9005
        hppa*64*|ia64*)
8854
9006
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855
9007
          ;;
8858
9010
          ;;
8859
9011
        esac
8860
9012
      else
8861
 
        case "$host_cpu" in
 
9013
        case $host_cpu in
8862
9014
        hppa*64*|ia64*)
8863
9015
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8864
9016
          ;;
8868
9020
        esac
8869
9021
      fi
8870
9022
      if test "$with_gnu_ld" = no; then
8871
 
        case "$host_cpu" in
 
9023
        case $host_cpu in
8872
9024
        hppa*64*)
8873
9025
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8874
9026
          hardcode_libdir_flag_spec_ld='+b $libdir'
8935
9087
      hardcode_shlibpath_var=no
8936
9088
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8937
9089
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9090
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8938
9091
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939
9092
        export_dynamic_flag_spec='${wl}-E'
8940
9093
      else
8980
9133
        allow_undefined_flag=' -expect_unresolved \*'
8981
9134
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8982
9135
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8983
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
9136
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8984
9137
 
8985
9138
        # Both c and cxx compiler support -rpath directly
8986
9139
        hardcode_libdir_flag_spec='-rpath $libdir'
8999
9152
    solaris*)
9000
9153
      no_undefined_flag=' -z text'
9001
9154
      if test "$GCC" = yes; then
 
9155
        wlarc='${wl}'
9002
9156
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9003
9157
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9004
9158
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9005
9159
      else
 
9160
        wlarc=''
9006
9161
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007
9162
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9008
9163
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9011
9166
      hardcode_shlibpath_var=no
9012
9167
      case $host_os in
9013
9168
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9014
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9015
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9169
      *)
 
9170
        # The compiler driver will combine linker options so we
 
9171
        # cannot just pass the convience library names through
 
9172
        # without $wl, iff we do not link with $LD.
 
9173
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
9174
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9175
        case $wlarc in
 
9176
        '')
 
9177
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9178
        *)
 
9179
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
9180
        esac ;;
9016
9181
      esac
9017
9182
      link_all_deplibs=yes
9018
9183
      ;;
9286
9451
  shlibpath_var=LIBRARY_PATH
9287
9452
  ;;
9288
9453
 
9289
 
bsdi4*)
 
9454
bsdi[45]*)
9290
9455
  version_type=linux
9291
9456
  need_version=no
9292
9457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314
9479
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9315
9480
      dldir=$destdir/`dirname \$dlpath`~
9316
9481
      test -d \$dldir || mkdir -p \$dldir~
9317
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9482
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9483
      chmod a+x \$dldir/$dlname'
9318
9484
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9319
9485
      dlpath=$dir/\$dldll~
9320
9486
       $rm \$dlpath'
9344
9510
      ;;
9345
9511
    pw32*)
9346
9512
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9347
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9513
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9348
9514
      ;;
9349
9515
    esac
9350
9516
    ;;
9367
9533
  soname_spec='${libname}${release}${major}$shared_ext'
9368
9534
  shlibpath_overrides_runpath=yes
9369
9535
  shlibpath_var=DYLD_LIBRARY_PATH
9370
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9536
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9371
9537
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9372
9538
  if test "$GCC" = yes; then
9373
9539
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9402
9568
  dynamic_linker='GNU ld.so'
9403
9569
  ;;
9404
9570
 
9405
 
freebsd*)
9406
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9571
freebsd* | dragonfly*)
 
9572
  # DragonFly does not have aout.  When/if they implement a new
 
9573
  # versioning mechanism, adjust this.
 
9574
  if test -x /usr/bin/objformat; then
 
9575
    objformat=`/usr/bin/objformat`
 
9576
  else
 
9577
    case $host_os in
 
9578
    freebsd[123]*) objformat=aout ;;
 
9579
    *) objformat=elf ;;
 
9580
    esac
 
9581
  fi
9407
9582
  version_type=freebsd-$objformat
9408
9583
  case $version_type in
9409
9584
    freebsd-elf*)
9421
9596
  freebsd2*)
9422
9597
    shlibpath_overrides_runpath=yes
9423
9598
    ;;
9424
 
  freebsd3.01* | freebsdelf3.01*)
 
9599
  freebsd3.[01]* | freebsdelf3.[01]*)
9425
9600
    shlibpath_overrides_runpath=yes
9426
9601
    hardcode_into_libs=yes
9427
9602
    ;;
9448
9623
  version_type=sunos
9449
9624
  need_lib_prefix=no
9450
9625
  need_version=no
9451
 
  case "$host_cpu" in
 
9626
  case $host_cpu in
9452
9627
  ia64*)
9453
9628
    shrext_cmds='.so'
9454
9629
    hardcode_into_libs=yes
9547
9722
 
9548
9723
  # Append ld.so.conf contents to the search path
9549
9724
  if test -f /etc/ld.so.conf; then
9550
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9725
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9551
9726
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9552
9727
  fi
9553
9728
 
9622
9797
openbsd*)
9623
9798
  version_type=sunos
9624
9799
  need_lib_prefix=no
9625
 
  need_version=yes
 
9800
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9801
  case $host_os in
 
9802
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9803
    *)                         need_version=no  ;;
 
9804
  esac
9626
9805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627
9806
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628
9807
  shlibpath_var=LD_LIBRARY_PATH
9744
9923
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9745
9924
hardcode_action=
9746
9925
if test -n "$hardcode_libdir_flag_spec" || \
9747
 
   test -n "$runpath_var " || \
9748
 
   test "X$hardcode_automatic"="Xyes" ; then
 
9926
   test -n "$runpath_var" || \
 
9927
   test "X$hardcode_automatic" = "Xyes" ; then
9749
9928
 
9750
9929
  # We can hardcode non-existant directories.
9751
9930
  if test "$hardcode_direct" != no &&
10404
10583
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10405
10584
  lt_status=$lt_dlunknown
10406
10585
  cat > conftest.$ac_ext <<EOF
10407
 
#line 10407 "configure"
 
10586
#line 10586 "configure"
10408
10587
#include "confdefs.h"
10409
10588
 
10410
10589
#if HAVE_DLFCN_H
10470
10649
  ac_status=$?
10471
10650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472
10651
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10473
 
    (./conftest; exit; ) 2>/dev/null
 
10652
    (./conftest; exit; ) >&5 2>/dev/null
10474
10653
    lt_status=$?
10475
10654
    case x$lt_status in
10476
10655
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10502
10681
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10503
10682
  lt_status=$lt_dlunknown
10504
10683
  cat > conftest.$ac_ext <<EOF
10505
 
#line 10505 "configure"
 
10684
#line 10684 "configure"
10506
10685
#include "confdefs.h"
10507
10686
 
10508
10687
#if HAVE_DLFCN_H
10568
10747
  ac_status=$?
10569
10748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570
10749
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571
 
    (./conftest; exit; ) 2>/dev/null
 
10750
    (./conftest; exit; ) >&5 2>/dev/null
10572
10751
    lt_status=$?
10573
10752
    case x$lt_status in
10574
10753
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10618
10797
 
10619
10798
# On AIX, shared libraries and static libraries use the same namespace, and
10620
10799
# are all built from PIC.
10621
 
case "$host_os" in
 
10800
case $host_os in
10622
10801
aix3*)
10623
10802
  test "$enable_shared" = yes && enable_static=no
10624
10803
  if test -n "$RANLIB"; then
10631
10810
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10632
10811
    test "$enable_shared" = yes && enable_static=no
10633
10812
  fi
10634
 
  ;;
10635
 
  darwin* | rhapsody*)
10636
 
  if test "$GCC" = yes; then
10637
 
    archive_cmds_need_lc=no
10638
 
    case "$host_os" in
10639
 
    rhapsody* | darwin1.[012])
10640
 
      allow_undefined_flag='-undefined suppress'
10641
 
      ;;
10642
 
    *) # Darwin 1.3 on
10643
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10644
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
10645
 
      else
10646
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10647
 
          10.[012])
10648
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
10649
 
            ;;
10650
 
          10.*)
10651
 
            allow_undefined_flag='-undefined dynamic_lookup'
10652
 
            ;;
10653
 
        esac
10654
 
      fi
10655
 
      ;;
10656
 
    esac
10657
 
    output_verbose_link_cmd='echo'
10658
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10659
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10661
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10662
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10663
 
    hardcode_direct=no
10664
 
    hardcode_automatic=yes
10665
 
    hardcode_shlibpath_var=unsupported
10666
 
    whole_archive_flag_spec='-all_load $convenience'
10667
 
    link_all_deplibs=yes
10668
 
  else
10669
 
    ld_shlibs=no
10670
 
  fi
10671
10813
    ;;
10672
10814
esac
10673
10815
echo "$as_me:$LINENO: result: $enable_shared" >&5
10797
10939
#
10798
10940
# You should have received a copy of the GNU General Public License
10799
10941
# along with this program; if not, write to the Free Software
10800
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10942
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10801
10943
#
10802
10944
# As a special exception to the GNU General Public License, if you
10803
10945
# distribute this file as part of a program that contains a
10808
10950
SED=$lt_SED
10809
10951
 
10810
10952
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10811
 
Xsed="$SED -e s/^X//"
 
10953
Xsed="$SED -e 1s/^X//"
10812
10954
 
10813
10955
# The HP-UX ksh and POSIX shell print the target directory to stdout
10814
10956
# if CDPATH is set.
10815
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10957
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10816
10958
 
10817
10959
# The names of the tagged configurations supported by this script.
10818
10960
available_tags=
10842
10984
# The host system.
10843
10985
host_alias=$host_alias
10844
10986
host=$host
 
10987
host_os=$host_os
 
10988
 
 
10989
# The build system.
 
10990
build_alias=$build_alias
 
10991
build=$build
 
10992
build_os=$build_os
10845
10993
 
10846
10994
# An echo program that does not interpret backslashes.
10847
10995
echo=$lt_echo
10918
11066
# Does compiler simultaneously support -c and -o options?
10919
11067
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10920
11068
 
10921
 
# Must we lock files when doing compilation ?
 
11069
# Must we lock files when doing compilation?
10922
11070
need_locks=$lt_need_locks
10923
11071
 
10924
11072
# Do we need the lib prefix for modules?
11213
11361
 
11214
11362
      case $tagname in
11215
11363
      CXX)
11216
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
11364
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11365
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11366
            (test "X$CXX" != "Xg++"))) ; then
11217
11367
          ac_ext=cc
11218
11368
ac_cpp='$CXXCPP $CPPFLAGS'
11219
11369
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250
11400
compiler_lib_search_path_CXX=
11251
11401
 
11252
11402
# Source file extension for C++ test sources.
11253
 
ac_ext=cc
 
11403
ac_ext=cpp
11254
11404
 
11255
11405
# Object file extension for compiled C++ test sources.
11256
11406
objext=o
11271
11421
compiler=$CC
11272
11422
 
11273
11423
 
 
11424
# save warnings/boilerplate of simple test code
 
11425
ac_outfile=conftest.$ac_objext
 
11426
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11427
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
11428
_lt_compiler_boilerplate=`cat conftest.err`
 
11429
$rm conftest*
 
11430
 
 
11431
ac_outfile=conftest.$ac_objext
 
11432
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11433
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
11434
_lt_linker_boilerplate=`cat conftest.err`
 
11435
$rm conftest*
 
11436
 
 
11437
 
11274
11438
# Allow CC to be a program name with arguments.
11275
11439
lt_save_CC=$CC
11276
11440
lt_save_LD=$LD
11292
11456
CC=${CXX-"c++"}
11293
11457
compiler=$CC
11294
11458
compiler_CXX=$CC
11295
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11459
for cc_temp in $compiler""; do
 
11460
  case $cc_temp in
 
11461
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11462
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11463
    \-*) ;;
 
11464
    *) break;;
 
11465
  esac
 
11466
done
 
11467
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11468
 
11296
11469
 
11297
11470
# We don't want -fno-exception wen compiling C++ code, so set the
11298
11471
# no_builtin_flag separately
11363
11536
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11364
11537
      lt_cv_path_LD="$ac_dir/$ac_prog"
11365
11538
      # Check to see if the program is GNU ld.  I'd rather use --version,
11366
 
      # but apparently some GNU ld's only accept -v.
 
11539
      # but apparently some variants of GNU ld only accept -v.
11367
11540
      # Break only if it was the GNU/non-GNU ld that we prefer.
11368
11541
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11369
11542
      *GNU* | *'with BFD'*)
11397
11570
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11398
11571
  echo $ECHO_N "(cached) $ECHO_C" >&6
11399
11572
else
11400
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11573
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11401
11574
case `$LD -v 2>&1 </dev/null` in
11402
11575
*GNU* | *'with BFD'*)
11403
11576
  lt_cv_prog_gnu_ld=yes
11506
11679
    link_all_deplibs_CXX=yes
11507
11680
 
11508
11681
    if test "$GXX" = yes; then
11509
 
      case $host_os in aix4.012|aix4.012.*)
 
11682
      case $host_os in aix4.[012]|aix4.[012].*)
11510
11683
      # We only want to do this on AIX 4.2 and lower, the check
11511
11684
      # below for broken collect2 doesn't work under 4.3+
11512
11685
        collect2name=`${CC} -print-prog-name=collect2`
11527
11700
        fi
11528
11701
      esac
11529
11702
      shared_flag='-shared'
 
11703
      if test "$aix_use_runtimelinking" = yes; then
 
11704
        shared_flag="$shared_flag "'${wl}-G'
 
11705
      fi
11530
11706
    else
11531
11707
      # not using gcc
11532
11708
      if test "$host_cpu" = ia64; then
11672
11848
        # Exported symbols can be pulled into shared objects from archives
11673
11849
        whole_archive_flag_spec_CXX=' '
11674
11850
        archive_cmds_need_lc_CXX=yes
11675
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11851
        # This is similar to how AIX traditionally builds its shared libraries.
11676
11852
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11677
11853
      fi
11678
11854
    fi
11686
11862
    esac
11687
11863
    ;;
11688
11864
 
 
11865
 
11689
11866
  cygwin* | mingw* | pw32*)
11690
11867
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11691
11868
    # as there is no search path for DLLs.
11709
11886
      ld_shlibs_CXX=no
11710
11887
    fi
11711
11888
  ;;
11712
 
 
11713
 
  darwin* | rhapsody*)
11714
 
  if test "$GXX" = yes; then
11715
 
    archive_cmds_need_lc_CXX=no
11716
 
    case "$host_os" in
11717
 
    rhapsody* | darwin1.[012])
11718
 
      allow_undefined_flag_CXX='-undefined suppress'
11719
 
      ;;
11720
 
    *) # Darwin 1.3 on
11721
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11722
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11723
 
      else
11724
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
11725
 
          10.[012])
11726
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11727
 
            ;;
11728
 
          10.*)
11729
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
11730
 
            ;;
 
11889
      darwin* | rhapsody*)
 
11890
        case $host_os in
 
11891
        rhapsody* | darwin1.[012])
 
11892
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11893
         ;;
 
11894
       *) # Darwin 1.3 on
 
11895
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11896
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11897
         else
 
11898
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11899
             10.[012])
 
11900
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11901
               ;;
 
11902
             10.*)
 
11903
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11904
               ;;
 
11905
           esac
 
11906
         fi
 
11907
         ;;
11731
11908
        esac
11732
 
      fi
11733
 
      ;;
11734
 
    esac
11735
 
    lt_int_apple_cc_single_mod=no
11736
 
    output_verbose_link_cmd='echo'
11737
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11738
 
      lt_int_apple_cc_single_mod=yes
11739
 
    fi
11740
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11741
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11742
 
    else
11743
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11744
 
    fi
11745
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11909
      archive_cmds_need_lc_CXX=no
 
11910
      hardcode_direct_CXX=no
 
11911
      hardcode_automatic_CXX=yes
 
11912
      hardcode_shlibpath_var_CXX=unsupported
 
11913
      whole_archive_flag_spec_CXX=''
 
11914
      link_all_deplibs_CXX=yes
11746
11915
 
11747
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11748
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11749
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11750
 
    else
11751
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11752
 
    fi
11753
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11754
 
    hardcode_direct_CXX=no
11755
 
    hardcode_automatic_CXX=yes
11756
 
    hardcode_shlibpath_var_CXX=unsupported
11757
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
11758
 
    link_all_deplibs_CXX=yes
11759
 
  else
11760
 
    ld_shlibs_CXX=no
11761
 
  fi
11762
 
    ;;
 
11916
    if test "$GXX" = yes ; then
 
11917
      lt_int_apple_cc_single_mod=no
 
11918
      output_verbose_link_cmd='echo'
 
11919
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11920
       lt_int_apple_cc_single_mod=yes
 
11921
      fi
 
11922
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11923
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11924
      else
 
11925
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11926
        fi
 
11927
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11928
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11929
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11930
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11931
          else
 
11932
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11933
          fi
 
11934
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11935
      else
 
11936
      case $cc_basename in
 
11937
        xlc*)
 
11938
         output_verbose_link_cmd='echo'
 
11939
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11940
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11941
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11942
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11943
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11944
          ;;
 
11945
       *)
 
11946
         ld_shlibs_CXX=no
 
11947
          ;;
 
11948
      esac
 
11949
      fi
 
11950
        ;;
11763
11951
 
11764
11952
  dgux*)
11765
11953
    case $cc_basename in
11766
 
      ec++)
 
11954
      ec++*)
11767
11955
        # FIXME: insert proper C++ library support
11768
11956
        ld_shlibs_CXX=no
11769
11957
        ;;
11770
 
      ghcx)
 
11958
      ghcx*)
11771
11959
        # Green Hills C++ Compiler
11772
11960
        # FIXME: insert proper C++ library support
11773
11961
        ld_shlibs_CXX=no
11778
11966
        ;;
11779
11967
    esac
11780
11968
    ;;
11781
 
  freebsd12*)
 
11969
  freebsd[12]*)
11782
11970
    # C++ shared libraries reported to be fairly broken before switch to ELF
11783
11971
    ld_shlibs_CXX=no
11784
11972
    ;;
11785
11973
  freebsd-elf*)
11786
11974
    archive_cmds_need_lc_CXX=no
11787
11975
    ;;
11788
 
  freebsd* | kfreebsd*-gnu)
 
11976
  freebsd* | kfreebsd*-gnu | dragonfly*)
11789
11977
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11790
11978
    # conventions
11791
11979
    ld_shlibs_CXX=yes
11802
11990
                                # location of the library.
11803
11991
 
11804
11992
    case $cc_basename in
11805
 
    CC)
 
11993
    CC*)
11806
11994
      # FIXME: insert proper C++ library support
11807
11995
      ld_shlibs_CXX=no
11808
11996
      ;;
11809
 
    aCC)
 
11997
    aCC*)
11810
11998
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${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'
11811
11999
      # Commands to make compiler produce verbose output that lists
11812
12000
      # what "hidden" libraries, object files and flags are used when
11816
12004
      # explicitly linking system object files so we need to strip them
11817
12005
      # from the output so that they don't get included in the library
11818
12006
      # dependencies.
11819
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12007
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11820
12008
      ;;
11821
12009
    *)
11822
12010
      if test "$GXX" = yes; then
11830
12018
    ;;
11831
12019
  hpux10*|hpux11*)
11832
12020
    if test $with_gnu_ld = no; then
11833
 
      case "$host_cpu" in
 
12021
      case $host_cpu in
11834
12022
      hppa*64*)
11835
12023
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11836
12024
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11846
12034
        ;;
11847
12035
      esac
11848
12036
    fi
11849
 
    case "$host_cpu" in
 
12037
    case $host_cpu in
11850
12038
    hppa*64*)
11851
12039
      hardcode_direct_CXX=no
11852
12040
      hardcode_shlibpath_var_CXX=no
11867
12055
    esac
11868
12056
 
11869
12057
    case $cc_basename in
11870
 
      CC)
 
12058
      CC*)
11871
12059
        # FIXME: insert proper C++ library support
11872
12060
        ld_shlibs_CXX=no
11873
12061
        ;;
11874
 
      aCC)
11875
 
        case "$host_cpu" in
 
12062
      aCC*)
 
12063
        case $host_cpu in
11876
12064
        hppa*64*|ia64*)
11877
12065
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11878
12066
          ;;
11893
12081
      *)
11894
12082
        if test "$GXX" = yes; then
11895
12083
          if test $with_gnu_ld = no; then
11896
 
            case "$host_cpu" in
 
12084
            case $host_cpu in
11897
12085
            ia64*|hppa*64*)
11898
12086
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11899
12087
              ;;
11911
12099
    ;;
11912
12100
  irix5* | irix6*)
11913
12101
    case $cc_basename in
11914
 
      CC)
 
12102
      CC*)
11915
12103
        # SGI C++
11916
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12104
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11917
12105
 
11918
12106
        # Archives containing C++ object files must be created using
11919
12107
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11924
12112
      *)
11925
12113
        if test "$GXX" = yes; then
11926
12114
          if test "$with_gnu_ld" = no; then
11927
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12115
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11928
12116
          else
11929
12117
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11930
12118
          fi
11937
12125
    ;;
11938
12126
  linux*)
11939
12127
    case $cc_basename in
11940
 
      KCC)
 
12128
      KCC*)
11941
12129
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11942
12130
 
11943
12131
        # KCC will only create a shared library if the output file
11962
12150
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11963
12151
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11964
12152
        ;;
11965
 
      icpc)
 
12153
      icpc*)
11966
12154
        # Intel C++
11967
12155
        with_gnu_ld=yes
 
12156
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12157
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12158
        # earlier do not add the objects themselves.
 
12159
        case `$CC -V 2>&1` in
 
12160
        *"Version 7."*)
 
12161
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12162
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12163
          ;;
 
12164
        *)  # Version 8.0 or newer
 
12165
          tmp_idyn=
 
12166
          case $host_cpu in
 
12167
            ia64*) tmp_idyn=' -i_dynamic';;
 
12168
          esac
 
12169
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12170
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12171
          ;;
 
12172
        esac
11968
12173
        archive_cmds_need_lc_CXX=no
11969
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11970
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11971
12174
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972
12175
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11973
12176
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11974
12177
        ;;
11975
 
      cxx)
 
12178
      pgCC*)
 
12179
        # Portland Group C++ compiler
 
12180
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12181
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12182
 
 
12183
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12184
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12185
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12186
        ;;
 
12187
      cxx*)
11976
12188
        # Compaq C++
11977
12189
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11978
12190
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12003
12215
    ;;
12004
12216
  mvs*)
12005
12217
    case $cc_basename in
12006
 
      cxx)
 
12218
      cxx*)
12007
12219
        # FIXME: insert proper C++ library support
12008
12220
        ld_shlibs_CXX=no
12009
12221
        ;;
12024
12236
    # Workaround some broken pre-1.5 toolchains
12025
12237
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12026
12238
    ;;
 
12239
  openbsd2*)
 
12240
    # C++ shared libraries are fairly broken
 
12241
    ld_shlibs_CXX=no
 
12242
    ;;
 
12243
  openbsd*)
 
12244
    hardcode_direct_CXX=yes
 
12245
    hardcode_shlibpath_var_CXX=no
 
12246
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12247
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12248
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12249
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12250
      export_dynamic_flag_spec_CXX='${wl}-E'
 
12251
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12252
    fi
 
12253
    output_verbose_link_cmd='echo'
 
12254
    ;;
12027
12255
  osf3*)
12028
12256
    case $cc_basename in
12029
 
      KCC)
 
12257
      KCC*)
12030
12258
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12031
12259
 
12032
12260
        # KCC will only create a shared library if the output file
12042
12270
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12043
12271
 
12044
12272
        ;;
12045
 
      RCC)
 
12273
      RCC*)
12046
12274
        # Rational C++ 2.4.1
12047
12275
        # FIXME: insert proper C++ library support
12048
12276
        ld_shlibs_CXX=no
12049
12277
        ;;
12050
 
      cxx)
 
12278
      cxx*)
12051
12279
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12052
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12280
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12053
12281
 
12054
12282
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12055
12283
        hardcode_libdir_separator_CXX=:
12067
12295
      *)
12068
12296
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12069
12297
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12070
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12298
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12071
12299
 
12072
12300
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12073
12301
          hardcode_libdir_separator_CXX=:
12086
12314
    ;;
12087
12315
  osf4* | osf5*)
12088
12316
    case $cc_basename in
12089
 
      KCC)
 
12317
      KCC*)
12090
12318
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12091
12319
 
12092
12320
        # KCC will only create a shared library if the output file
12101
12329
        # the KAI C++ compiler.
12102
12330
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12103
12331
        ;;
12104
 
      RCC)
 
12332
      RCC*)
12105
12333
        # Rational C++ 2.4.1
12106
12334
        # FIXME: insert proper C++ library support
12107
12335
        ld_shlibs_CXX=no
12108
12336
        ;;
12109
 
      cxx)
 
12337
      cxx*)
12110
12338
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12111
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12339
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12112
12340
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12113
12341
          echo "-hidden">> $lib.exp~
12114
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
12342
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12115
12343
          $rm $lib.exp'
12116
12344
 
12117
12345
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12130
12358
      *)
12131
12359
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12132
12360
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12133
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12361
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12134
12362
 
12135
12363
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12136
12364
          hardcode_libdir_separator_CXX=:
12154
12382
  sco*)
12155
12383
    archive_cmds_need_lc_CXX=no
12156
12384
    case $cc_basename in
12157
 
      CC)
 
12385
      CC*)
12158
12386
        # FIXME: insert proper C++ library support
12159
12387
        ld_shlibs_CXX=no
12160
12388
        ;;
12166
12394
    ;;
12167
12395
  sunos4*)
12168
12396
    case $cc_basename in
12169
 
      CC)
 
12397
      CC*)
12170
12398
        # Sun C++ 4.x
12171
12399
        # FIXME: insert proper C++ library support
12172
12400
        ld_shlibs_CXX=no
12173
12401
        ;;
12174
 
      lcc)
 
12402
      lcc*)
12175
12403
        # Lucid
12176
12404
        # FIXME: insert proper C++ library support
12177
12405
        ld_shlibs_CXX=no
12184
12412
    ;;
12185
12413
  solaris*)
12186
12414
    case $cc_basename in
12187
 
      CC)
 
12415
      CC*)
12188
12416
        # Sun C++ 4.2, 5.x and Centerline C++
 
12417
        archive_cmds_need_lc_CXX=yes
12189
12418
        no_undefined_flag_CXX=' -zdefs'
12190
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12419
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191
12420
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12192
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12421
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12193
12422
 
12194
12423
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12195
12424
        hardcode_shlibpath_var_CXX=no
12196
12425
        case $host_os in
12197
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12426
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12198
12427
          *)
12199
12428
            # The C++ compiler is used as linker so we must use $wl
12200
12429
            # flag to pass the commands to the underlying system
12201
 
            # linker.
 
12430
            # linker. We must also pass each convience library through
 
12431
            # to the system linker between allextract/defaultextract.
 
12432
            # The C++ compiler will combine linker options so we
 
12433
            # cannot just pass the convience library names through
 
12434
            # without $wl.
12202
12435
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12203
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12436
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12204
12437
            ;;
12205
12438
        esac
12206
12439
        link_all_deplibs_CXX=yes
12207
12440
 
12208
 
        # Commands to make compiler produce verbose output that lists
12209
 
        # what "hidden" libraries, object files and flags are used when
12210
 
        # linking a shared library.
12211
 
        #
12212
 
        # There doesn't appear to be a way to prevent this compiler from
12213
 
        # explicitly linking system object files so we need to strip them
12214
 
        # from the output so that they don't get included in the library
12215
 
        # dependencies.
12216
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12441
        output_verbose_link_cmd='echo'
12217
12442
 
12218
12443
        # Archives containing C++ object files must be created using
12219
12444
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12221
12446
        # in the archive.
12222
12447
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12223
12448
        ;;
12224
 
      gcx)
 
12449
      gcx*)
12225
12450
        # Green Hills C++ Compiler
12226
12451
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12227
12452
 
12264
12489
    ;;
12265
12490
  tandem*)
12266
12491
    case $cc_basename in
12267
 
      NCC)
 
12492
      NCC*)
12268
12493
        # NonStop-UX NCC 3.20
12269
12494
        # FIXME: insert proper C++ library support
12270
12495
        ld_shlibs_CXX=no
12317
12542
  # The `*' in the case matches for architectures that use `case' in
12318
12543
  # $output_verbose_cmd can trigger glob expansion during the loop
12319
12544
  # eval without this substitution.
12320
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12545
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12321
12546
 
12322
12547
  for p in `eval $output_verbose_link_cmd`; do
12323
12548
    case $p in
12393
12618
 
12394
12619
$rm -f confest.$objext
12395
12620
 
 
12621
# PORTME: override above test on systems where it is broken
 
12622
case $host_os in
 
12623
solaris*)
 
12624
  case $cc_basename in
 
12625
  CC*)
 
12626
    # Adding this requires a known-good setup of shared libraries for
 
12627
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12628
    # archive will be linked into the output, leading to subtle bugs.
 
12629
    postdeps_CXX='-lCstd -lCrun'
 
12630
    ;;
 
12631
  esac
 
12632
esac
 
12633
 
 
12634
 
12396
12635
case " $postdeps_CXX " in
12397
12636
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12398
12637
esac
12448
12687
    hpux*)
12449
12688
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12450
12689
      # not for PA HP-UX.
12451
 
      case "$host_cpu" in
 
12690
      case $host_cpu in
12452
12691
      hppa*64*|ia64*)
12453
12692
        ;;
12454
12693
      *)
12473
12712
        ;;
12474
12713
      chorus*)
12475
12714
        case $cc_basename in
12476
 
        cxch68)
 
12715
        cxch68*)
12477
12716
          # Green Hills C++ Compiler
12478
12717
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12479
12718
          ;;
12480
12719
        esac
12481
12720
        ;;
 
12721
       darwin*)
 
12722
         # PIC is the default on this platform
 
12723
         # Common symbols not allowed in MH_DYLIB files
 
12724
         case $cc_basename in
 
12725
           xlc*)
 
12726
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12727
           lt_prog_compiler_wl_CXX='-Wl,'
 
12728
           ;;
 
12729
         esac
 
12730
       ;;
12482
12731
      dgux*)
12483
12732
        case $cc_basename in
12484
 
          ec++)
 
12733
          ec++*)
12485
12734
            lt_prog_compiler_pic_CXX='-KPIC'
12486
12735
            ;;
12487
 
          ghcx)
 
12736
          ghcx*)
12488
12737
            # Green Hills C++ Compiler
12489
12738
            lt_prog_compiler_pic_CXX='-pic'
12490
12739
            ;;
12492
12741
            ;;
12493
12742
        esac
12494
12743
        ;;
12495
 
      freebsd* | kfreebsd*-gnu)
 
12744
      freebsd* | kfreebsd*-gnu | dragonfly*)
12496
12745
        # FreeBSD uses GNU C++
12497
12746
        ;;
12498
12747
      hpux9* | hpux10* | hpux11*)
12499
12748
        case $cc_basename in
12500
 
          CC)
 
12749
          CC*)
12501
12750
            lt_prog_compiler_wl_CXX='-Wl,'
12502
12751
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12503
12752
            if test "$host_cpu" != ia64; then
12504
12753
              lt_prog_compiler_pic_CXX='+Z'
12505
12754
            fi
12506
12755
            ;;
12507
 
          aCC)
 
12756
          aCC*)
12508
12757
            lt_prog_compiler_wl_CXX='-Wl,'
12509
12758
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12510
 
            case "$host_cpu" in
 
12759
            case $host_cpu in
12511
12760
            hppa*64*|ia64*)
12512
12761
              # +Z the default
12513
12762
              ;;
12522
12771
        ;;
12523
12772
      irix5* | irix6* | nonstopux*)
12524
12773
        case $cc_basename in
12525
 
          CC)
 
12774
          CC*)
12526
12775
            lt_prog_compiler_wl_CXX='-Wl,'
12527
12776
            lt_prog_compiler_static_CXX='-non_shared'
12528
12777
            # CC pic flag -KPIC is the default.
12533
12782
        ;;
12534
12783
      linux*)
12535
12784
        case $cc_basename in
12536
 
          KCC)
 
12785
          KCC*)
12537
12786
            # KAI C++ Compiler
12538
12787
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12539
12788
            lt_prog_compiler_pic_CXX='-fPIC'
12540
12789
            ;;
12541
 
          icpc)
 
12790
          icpc* | ecpc*)
12542
12791
            # Intel C++
12543
12792
            lt_prog_compiler_wl_CXX='-Wl,'
12544
12793
            lt_prog_compiler_pic_CXX='-KPIC'
12545
12794
            lt_prog_compiler_static_CXX='-static'
12546
12795
            ;;
12547
 
          cxx)
 
12796
          pgCC*)
 
12797
            # Portland Group C++ compiler.
 
12798
            lt_prog_compiler_wl_CXX='-Wl,'
 
12799
            lt_prog_compiler_pic_CXX='-fpic'
 
12800
            lt_prog_compiler_static_CXX='-Bstatic'
 
12801
            ;;
 
12802
          cxx*)
12548
12803
            # Compaq C++
12549
12804
            # Make sure the PIC flag is empty.  It appears that all Alpha
12550
12805
            # Linux and Compaq Tru64 Unix objects are PIC.
12561
12816
        ;;
12562
12817
      mvs*)
12563
12818
        case $cc_basename in
12564
 
          cxx)
 
12819
          cxx*)
12565
12820
            lt_prog_compiler_pic_CXX='-W c,exportall'
12566
12821
            ;;
12567
12822
          *)
12572
12827
        ;;
12573
12828
      osf3* | osf4* | osf5*)
12574
12829
        case $cc_basename in
12575
 
          KCC)
 
12830
          KCC*)
12576
12831
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12577
12832
            ;;
12578
 
          RCC)
 
12833
          RCC*)
12579
12834
            # Rational C++ 2.4.1
12580
12835
            lt_prog_compiler_pic_CXX='-pic'
12581
12836
            ;;
12582
 
          cxx)
 
12837
          cxx*)
12583
12838
            # Digital/Compaq C++
12584
12839
            lt_prog_compiler_wl_CXX='-Wl,'
12585
12840
            # Make sure the PIC flag is empty.  It appears that all Alpha
12595
12850
        ;;
12596
12851
      sco*)
12597
12852
        case $cc_basename in
12598
 
          CC)
 
12853
          CC*)
12599
12854
            lt_prog_compiler_pic_CXX='-fPIC'
12600
12855
            ;;
12601
12856
          *)
12604
12859
        ;;
12605
12860
      solaris*)
12606
12861
        case $cc_basename in
12607
 
          CC)
 
12862
          CC*)
12608
12863
            # Sun C++ 4.2, 5.x and Centerline C++
12609
12864
            lt_prog_compiler_pic_CXX='-KPIC'
12610
12865
            lt_prog_compiler_static_CXX='-Bstatic'
12611
12866
            lt_prog_compiler_wl_CXX='-Qoption ld '
12612
12867
            ;;
12613
 
          gcx)
 
12868
          gcx*)
12614
12869
            # Green Hills C++ Compiler
12615
12870
            lt_prog_compiler_pic_CXX='-PIC'
12616
12871
            ;;
12620
12875
        ;;
12621
12876
      sunos4*)
12622
12877
        case $cc_basename in
12623
 
          CC)
 
12878
          CC*)
12624
12879
            # Sun C++ 4.x
12625
12880
            lt_prog_compiler_pic_CXX='-pic'
12626
12881
            lt_prog_compiler_static_CXX='-Bstatic'
12627
12882
            ;;
12628
 
          lcc)
 
12883
          lcc*)
12629
12884
            # Lucid
12630
12885
            lt_prog_compiler_pic_CXX='-pic'
12631
12886
            ;;
12635
12890
        ;;
12636
12891
      tandem*)
12637
12892
        case $cc_basename in
12638
 
          NCC)
 
12893
          NCC*)
12639
12894
            # NonStop-UX NCC 3.20
12640
12895
            lt_prog_compiler_pic_CXX='-KPIC'
12641
12896
            ;;
12676
12931
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12677
12932
   # The option is referenced via a variable to avoid confusing sed.
12678
12933
   lt_compile=`echo "$ac_compile" | $SED \
12679
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12934
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12680
12935
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12681
12936
   -e 's:$: $lt_compiler_flag:'`
12682
 
   (eval echo "\"\$as_me:12682: $lt_compile\"" >&5)
 
12937
   (eval echo "\"\$as_me:12937: $lt_compile\"" >&5)
12683
12938
   (eval "$lt_compile" 2>conftest.err)
12684
12939
   ac_status=$?
12685
12940
   cat conftest.err >&5
12686
 
   echo "$as_me:12686: \$? = $ac_status" >&5
 
12941
   echo "$as_me:12941: \$? = $ac_status" >&5
12687
12942
   if (exit $ac_status) && test -s "$ac_outfile"; then
12688
12943
     # The compiler can only warn and ignore the option if not recognized
12689
 
     # So say no if there are warnings
12690
 
     if test ! -s conftest.err; then
 
12944
     # So say no if there are warnings other than the usual output.
 
12945
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
12946
     $SED '/^$/d' conftest.err >conftest.er2
 
12947
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12691
12948
       lt_prog_compiler_pic_works_CXX=yes
12692
12949
     fi
12693
12950
   fi
12708
12965
fi
12709
12966
 
12710
12967
fi
12711
 
case "$host_os" in
 
12968
case $host_os in
12712
12969
  # For platforms which do not support PIC, -DPIC is meaningless:
12713
12970
  *djgpp*)
12714
12971
    lt_prog_compiler_pic_CXX=
12736
12993
   # Note that $ac_compile itself does not contain backslashes and begins
12737
12994
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12738
12995
   lt_compile=`echo "$ac_compile" | $SED \
12739
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12996
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12740
12997
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12741
12998
   -e 's:$: $lt_compiler_flag:'`
12742
 
   (eval echo "\"\$as_me:12742: $lt_compile\"" >&5)
 
12999
   (eval echo "\"\$as_me:12999: $lt_compile\"" >&5)
12743
13000
   (eval "$lt_compile" 2>out/conftest.err)
12744
13001
   ac_status=$?
12745
13002
   cat out/conftest.err >&5
12746
 
   echo "$as_me:12746: \$? = $ac_status" >&5
 
13003
   echo "$as_me:13003: \$? = $ac_status" >&5
12747
13004
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12748
13005
   then
12749
13006
     # The compiler can only warn and ignore the option if not recognized
12750
13007
     # So say no if there are warnings
12751
 
     if test ! -s out/conftest.err; then
 
13008
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13009
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13010
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12752
13011
       lt_cv_prog_compiler_c_o_CXX=yes
12753
13012
     fi
12754
13013
   fi
12755
 
   chmod u+w .
 
13014
   chmod u+w . 2>&5
12756
13015
   $rm conftest*
12757
13016
   # SGI C++ compiler will create directory out/ii_files/ for
12758
13017
   # template instantiation
12807
13066
    export_symbols_cmds_CXX="$ltdll_cmds"
12808
13067
  ;;
12809
13068
  cygwin* | mingw*)
12810
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13069
    export_symbols_cmds_CXX='$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'
12811
13070
  ;;
12812
13071
  linux*)
12813
13072
    link_all_deplibs_CXX=no
12990
13249
  shlibpath_var=LIBRARY_PATH
12991
13250
  ;;
12992
13251
 
12993
 
bsdi4*)
 
13252
bsdi[45]*)
12994
13253
  version_type=linux
12995
13254
  need_version=no
12996
13255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13018
13277
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13019
13278
      dldir=$destdir/`dirname \$dlpath`~
13020
13279
      test -d \$dldir || mkdir -p \$dldir~
13021
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13280
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13281
      chmod a+x \$dldir/$dlname'
13022
13282
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13023
13283
      dlpath=$dir/\$dldll~
13024
13284
       $rm \$dlpath'
13048
13308
      ;;
13049
13309
    pw32*)
13050
13310
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13051
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13311
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13052
13312
      ;;
13053
13313
    esac
13054
13314
    ;;
13071
13331
  soname_spec='${libname}${release}${major}$shared_ext'
13072
13332
  shlibpath_overrides_runpath=yes
13073
13333
  shlibpath_var=DYLD_LIBRARY_PATH
13074
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
13334
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13075
13335
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13076
13336
  if test "$GCC" = yes; then
13077
13337
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13106
13366
  dynamic_linker='GNU ld.so'
13107
13367
  ;;
13108
13368
 
13109
 
freebsd*)
13110
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13369
freebsd* | dragonfly*)
 
13370
  # DragonFly does not have aout.  When/if they implement a new
 
13371
  # versioning mechanism, adjust this.
 
13372
  if test -x /usr/bin/objformat; then
 
13373
    objformat=`/usr/bin/objformat`
 
13374
  else
 
13375
    case $host_os in
 
13376
    freebsd[123]*) objformat=aout ;;
 
13377
    *) objformat=elf ;;
 
13378
    esac
 
13379
  fi
13111
13380
  version_type=freebsd-$objformat
13112
13381
  case $version_type in
13113
13382
    freebsd-elf*)
13125
13394
  freebsd2*)
13126
13395
    shlibpath_overrides_runpath=yes
13127
13396
    ;;
13128
 
  freebsd3.01* | freebsdelf3.01*)
 
13397
  freebsd3.[01]* | freebsdelf3.[01]*)
13129
13398
    shlibpath_overrides_runpath=yes
13130
13399
    hardcode_into_libs=yes
13131
13400
    ;;
13152
13421
  version_type=sunos
13153
13422
  need_lib_prefix=no
13154
13423
  need_version=no
13155
 
  case "$host_cpu" in
 
13424
  case $host_cpu in
13156
13425
  ia64*)
13157
13426
    shrext_cmds='.so'
13158
13427
    hardcode_into_libs=yes
13251
13520
 
13252
13521
  # Append ld.so.conf contents to the search path
13253
13522
  if test -f /etc/ld.so.conf; then
13254
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
13523
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13255
13524
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13256
13525
  fi
13257
13526
 
13326
13595
openbsd*)
13327
13596
  version_type=sunos
13328
13597
  need_lib_prefix=no
13329
 
  need_version=yes
 
13598
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13599
  case $host_os in
 
13600
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13601
    *)                         need_version=no  ;;
 
13602
  esac
13330
13603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13331
13604
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13332
13605
  shlibpath_var=LD_LIBRARY_PATH
13448
13721
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13449
13722
hardcode_action_CXX=
13450
13723
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13451
 
   test -n "$runpath_var CXX" || \
13452
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13724
   test -n "$runpath_var_CXX" || \
 
13725
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13453
13726
 
13454
13727
  # We can hardcode non-existant directories.
13455
13728
  if test "$hardcode_direct_CXX" != no &&
14108
14381
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14109
14382
  lt_status=$lt_dlunknown
14110
14383
  cat > conftest.$ac_ext <<EOF
14111
 
#line 14111 "configure"
 
14384
#line 14384 "configure"
14112
14385
#include "confdefs.h"
14113
14386
 
14114
14387
#if HAVE_DLFCN_H
14174
14447
  ac_status=$?
14175
14448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176
14449
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14177
 
    (./conftest; exit; ) 2>/dev/null
 
14450
    (./conftest; exit; ) >&5 2>/dev/null
14178
14451
    lt_status=$?
14179
14452
    case x$lt_status in
14180
14453
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14206
14479
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14207
14480
  lt_status=$lt_dlunknown
14208
14481
  cat > conftest.$ac_ext <<EOF
14209
 
#line 14209 "configure"
 
14482
#line 14482 "configure"
14210
14483
#include "confdefs.h"
14211
14484
 
14212
14485
#if HAVE_DLFCN_H
14272
14545
  ac_status=$?
14273
14546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274
14547
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14275
 
    (./conftest; exit; ) 2>/dev/null
 
14548
    (./conftest; exit; ) >&5 2>/dev/null
14276
14549
    lt_status=$?
14277
14550
    case x$lt_status in
14278
14551
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14424
14697
# The host system.
14425
14698
host_alias=$host_alias
14426
14699
host=$host
 
14700
host_os=$host_os
 
14701
 
 
14702
# The build system.
 
14703
build_alias=$build_alias
 
14704
build=$build
 
14705
build_os=$build_os
14427
14706
 
14428
14707
# An echo program that does not interpret backslashes.
14429
14708
echo=$lt_echo
14500
14779
# Does compiler simultaneously support -c and -o options?
14501
14780
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14502
14781
 
14503
 
# Must we lock files when doing compilation ?
 
14782
# Must we lock files when doing compilation?
14504
14783
need_locks=$lt_need_locks
14505
14784
 
14506
14785
# Do we need the lib prefix for modules?
14781
15060
compiler=$CC
14782
15061
 
14783
15062
 
 
15063
# save warnings/boilerplate of simple test code
 
15064
ac_outfile=conftest.$ac_objext
 
15065
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15066
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15067
_lt_compiler_boilerplate=`cat conftest.err`
 
15068
$rm conftest*
 
15069
 
 
15070
ac_outfile=conftest.$ac_objext
 
15071
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15072
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15073
_lt_linker_boilerplate=`cat conftest.err`
 
15074
$rm conftest*
 
15075
 
 
15076
 
14784
15077
# Allow CC to be a program name with arguments.
14785
15078
lt_save_CC="$CC"
14786
15079
CC=${F77-"f77"}
14787
15080
compiler=$CC
14788
15081
compiler_F77=$CC
14789
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15082
for cc_temp in $compiler""; do
 
15083
  case $cc_temp in
 
15084
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15085
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15086
    \-*) ;;
 
15087
    *) break;;
 
15088
  esac
 
15089
done
 
15090
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15091
 
14790
15092
 
14791
15093
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14792
15094
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14799
15101
 
14800
15102
# On AIX, shared libraries and static libraries use the same namespace, and
14801
15103
# are all built from PIC.
14802
 
case "$host_os" in
 
15104
case $host_os in
14803
15105
aix3*)
14804
15106
  test "$enable_shared" = yes && enable_static=no
14805
15107
  if test -n "$RANLIB"; then
14808
15110
  fi
14809
15111
  ;;
14810
15112
aix4* | aix5*)
14811
 
  test "$enable_shared" = yes && enable_static=no
 
15113
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
15114
    test "$enable_shared" = yes && enable_static=no
 
15115
  fi
14812
15116
  ;;
14813
15117
esac
14814
15118
echo "$as_me:$LINENO: result: $enable_shared" >&5
14885
15189
    hpux*)
14886
15190
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14887
15191
      # not for PA HP-UX.
14888
 
      case "$host_cpu" in
 
15192
      case $host_cpu in
14889
15193
      hppa*64*|ia64*)
14890
15194
        # +Z the default
14891
15195
        ;;
14911
15215
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14912
15216
      fi
14913
15217
      ;;
 
15218
      darwin*)
 
15219
        # PIC is the default on this platform
 
15220
        # Common symbols not allowed in MH_DYLIB files
 
15221
       case $cc_basename in
 
15222
         xlc*)
 
15223
         lt_prog_compiler_pic_F77='-qnocommon'
 
15224
         lt_prog_compiler_wl_F77='-Wl,'
 
15225
         ;;
 
15226
       esac
 
15227
       ;;
14914
15228
 
14915
15229
    mingw* | pw32* | os2*)
14916
15230
      # This hack is so that the source file can tell whether it is being
14922
15236
      lt_prog_compiler_wl_F77='-Wl,'
14923
15237
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14924
15238
      # not for PA HP-UX.
14925
 
      case "$host_cpu" in
 
15239
      case $host_cpu in
14926
15240
      hppa*64*|ia64*)
14927
15241
        # +Z the default
14928
15242
        ;;
14946
15260
      ;;
14947
15261
 
14948
15262
    linux*)
14949
 
      case $CC in
 
15263
      case $cc_basename in
14950
15264
      icc* | ecc*)
14951
15265
        lt_prog_compiler_wl_F77='-Wl,'
14952
15266
        lt_prog_compiler_pic_F77='-KPIC'
14953
15267
        lt_prog_compiler_static_F77='-static'
14954
15268
        ;;
 
15269
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15270
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15271
        # which looks to be a dead project)
 
15272
        lt_prog_compiler_wl_F77='-Wl,'
 
15273
        lt_prog_compiler_pic_F77='-fpic'
 
15274
        lt_prog_compiler_static_F77='-Bstatic'
 
15275
        ;;
14955
15276
      ccc*)
14956
15277
        lt_prog_compiler_wl_F77='-Wl,'
14957
15278
        # All Alpha code is PIC.
14972
15293
      ;;
14973
15294
 
14974
15295
    solaris*)
14975
 
      lt_prog_compiler_wl_F77='-Wl,'
14976
15296
      lt_prog_compiler_pic_F77='-KPIC'
14977
15297
      lt_prog_compiler_static_F77='-Bstatic'
 
15298
      case $cc_basename in
 
15299
      f77* | f90* | f95*)
 
15300
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
15301
      *)
 
15302
        lt_prog_compiler_wl_F77='-Wl,';;
 
15303
      esac
14978
15304
      ;;
14979
15305
 
14980
15306
    sunos4*)
14996
15322
      fi
14997
15323
      ;;
14998
15324
 
 
15325
    unicos*)
 
15326
      lt_prog_compiler_wl_F77='-Wl,'
 
15327
      lt_prog_compiler_can_build_shared_F77=no
 
15328
      ;;
 
15329
 
14999
15330
    uts4*)
15000
15331
      lt_prog_compiler_pic_F77='-pic'
15001
15332
      lt_prog_compiler_static_F77='-Bstatic'
15030
15361
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15031
15362
   # The option is referenced via a variable to avoid confusing sed.
15032
15363
   lt_compile=`echo "$ac_compile" | $SED \
15033
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15364
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15034
15365
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15035
15366
   -e 's:$: $lt_compiler_flag:'`
15036
 
   (eval echo "\"\$as_me:15036: $lt_compile\"" >&5)
 
15367
   (eval echo "\"\$as_me:15367: $lt_compile\"" >&5)
15037
15368
   (eval "$lt_compile" 2>conftest.err)
15038
15369
   ac_status=$?
15039
15370
   cat conftest.err >&5
15040
 
   echo "$as_me:15040: \$? = $ac_status" >&5
 
15371
   echo "$as_me:15371: \$? = $ac_status" >&5
15041
15372
   if (exit $ac_status) && test -s "$ac_outfile"; then
15042
15373
     # The compiler can only warn and ignore the option if not recognized
15043
 
     # So say no if there are warnings
15044
 
     if test ! -s conftest.err; then
 
15374
     # So say no if there are warnings other than the usual output.
 
15375
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15376
     $SED '/^$/d' conftest.err >conftest.er2
 
15377
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15045
15378
       lt_prog_compiler_pic_works_F77=yes
15046
15379
     fi
15047
15380
   fi
15062
15395
fi
15063
15396
 
15064
15397
fi
15065
 
case "$host_os" in
 
15398
case $host_os in
15066
15399
  # For platforms which do not support PIC, -DPIC is meaningless:
15067
15400
  *djgpp*)
15068
15401
    lt_prog_compiler_pic_F77=
15090
15423
   # Note that $ac_compile itself does not contain backslashes and begins
15091
15424
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15092
15425
   lt_compile=`echo "$ac_compile" | $SED \
15093
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15426
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094
15427
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095
15428
   -e 's:$: $lt_compiler_flag:'`
15096
 
   (eval echo "\"\$as_me:15096: $lt_compile\"" >&5)
 
15429
   (eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
15097
15430
   (eval "$lt_compile" 2>out/conftest.err)
15098
15431
   ac_status=$?
15099
15432
   cat out/conftest.err >&5
15100
 
   echo "$as_me:15100: \$? = $ac_status" >&5
 
15433
   echo "$as_me:15433: \$? = $ac_status" >&5
15101
15434
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15102
15435
   then
15103
15436
     # The compiler can only warn and ignore the option if not recognized
15104
15437
     # So say no if there are warnings
15105
 
     if test ! -s out/conftest.err; then
 
15438
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15439
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15440
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15106
15441
       lt_cv_prog_compiler_c_o_F77=yes
15107
15442
     fi
15108
15443
   fi
15109
 
   chmod u+w .
 
15444
   chmod u+w . 2>&5
15110
15445
   $rm conftest*
15111
15446
   # SGI C++ compiler will create directory out/ii_files/ for
15112
15447
   # template instantiation
15182
15517
  # rely on this symbol name, it's probably fine to never include it in
15183
15518
  # preloaded symbol tables.
15184
15519
  extract_expsyms_cmds=
 
15520
  # Just being paranoid about ensuring that cc_basename is set.
 
15521
  for cc_temp in $compiler""; do
 
15522
  case $cc_temp in
 
15523
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15524
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15525
    \-*) ;;
 
15526
    *) break;;
 
15527
  esac
 
15528
done
 
15529
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15185
15530
 
15186
15531
  case $host_os in
15187
15532
  cygwin* | mingw* | pw32*)
15202
15547
    # If archive_cmds runs LD, not CC, wlarc should be empty
15203
15548
    wlarc='${wl}'
15204
15549
 
 
15550
    # Set some defaults for GNU ld with shared library support. These
 
15551
    # are reset later if shared libraries are not supported. Putting them
 
15552
    # here allows them to be overridden if necessary.
 
15553
    runpath_var=LD_RUN_PATH
 
15554
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15555
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15556
    # ancient GNU ld didn't support --whole-archive et. al.
 
15557
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15558
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15559
      else
 
15560
        whole_archive_flag_spec_F77=
 
15561
    fi
 
15562
    supports_anon_versioning=no
 
15563
    case `$LD -v 2>/dev/null` in
 
15564
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15565
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15566
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15567
      *\ 2.11.*) ;; # other 2.11 versions
 
15568
      *) supports_anon_versioning=yes ;;
 
15569
    esac
 
15570
 
15205
15571
    # See if GNU ld supports shared libraries.
15206
15572
    case $host_os in
15207
15573
    aix3* | aix4* | aix5*)
15252
15618
      allow_undefined_flag_F77=unsupported
15253
15619
      always_export_symbols_F77=no
15254
15620
      enable_shared_with_static_runtimes_F77=yes
15255
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15621
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15256
15622
 
15257
15623
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15258
15624
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15266
15632
        fi~
15267
15633
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15268
15634
      else
15269
 
        ld_shlibs=no
 
15635
        ld_shlibs_F77=no
 
15636
      fi
 
15637
      ;;
 
15638
 
 
15639
    linux*)
 
15640
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15641
        tmp_addflag=
 
15642
        case $cc_basename,$host_cpu in
 
15643
        pgcc*)                          # Portland Group C compiler
 
15644
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15645
          tmp_addflag=' $pic_flag'
 
15646
          ;;
 
15647
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15648
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15649
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15650
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15651
          tmp_addflag=' -i_dynamic' ;;
 
15652
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15653
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15654
        ifc* | ifort*)                  # Intel Fortran compiler
 
15655
          tmp_addflag=' -nofor_main' ;;
 
15656
        esac
 
15657
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15658
 
 
15659
        if test $supports_anon_versioning = yes; then
 
15660
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15661
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15662
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15663
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15664
        fi
 
15665
        link_all_deplibs_F77=no
 
15666
      else
 
15667
        ld_shlibs_F77=no
15270
15668
      fi
15271
15669
      ;;
15272
15670
 
15308
15706
      hardcode_shlibpath_var_F77=no
15309
15707
      ;;
15310
15708
 
15311
 
  linux*)
15312
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15313
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314
 
        archive_cmds_F77="$tmp_archive_cmds"
15315
 
      supports_anon_versioning=no
15316
 
      case `$LD -v 2>/dev/null` in
15317
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15318
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15319
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15320
 
        *\ 2.11.*) ;; # other 2.11 versions
15321
 
        *) supports_anon_versioning=yes ;;
15322
 
      esac
15323
 
      if test $supports_anon_versioning = yes; then
15324
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15325
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15326
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15327
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15328
 
      else
15329
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
15330
 
      fi
15331
 
      link_all_deplibs_F77=no
15332
 
    else
15333
 
      ld_shlibs_F77=no
15334
 
    fi
15335
 
    ;;
15336
 
 
15337
15709
    *)
15338
15710
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15339
15711
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344
15716
      ;;
15345
15717
    esac
15346
15718
 
15347
 
    if test "$ld_shlibs_F77" = yes; then
15348
 
      runpath_var=LD_RUN_PATH
15349
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15350
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15351
 
      # ancient GNU ld didn't support --whole-archive et. al.
15352
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15353
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15354
 
      else
15355
 
        whole_archive_flag_spec_F77=
15356
 
      fi
 
15719
    if test "$ld_shlibs_F77" = no; then
 
15720
      runpath_var=
 
15721
      hardcode_libdir_flag_spec_F77=
 
15722
      export_dynamic_flag_spec_F77=
 
15723
      whole_archive_flag_spec_F77=
15357
15724
    fi
15358
15725
  else
15359
15726
    # PORTME fill in a description of your system's linker (not GNU ld)
15417
15784
      link_all_deplibs_F77=yes
15418
15785
 
15419
15786
      if test "$GCC" = yes; then
15420
 
        case $host_os in aix4.012|aix4.012.*)
 
15787
        case $host_os in aix4.[012]|aix4.[012].*)
15421
15788
        # We only want to do this on AIX 4.2 and lower, the check
15422
15789
        # below for broken collect2 doesn't work under 4.3+
15423
15790
          collect2name=`${CC} -print-prog-name=collect2`
15438
15805
          fi
15439
15806
        esac
15440
15807
        shared_flag='-shared'
 
15808
        if test "$aix_use_runtimelinking" = yes; then
 
15809
          shared_flag="$shared_flag "'${wl}-G'
 
15810
        fi
15441
15811
      else
15442
15812
        # not using gcc
15443
15813
        if test "$host_cpu" = ia64; then
15562
15932
          # Exported symbols can be pulled into shared objects from archives
15563
15933
          whole_archive_flag_spec_F77=' '
15564
15934
          archive_cmds_need_lc_F77=yes
15565
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15935
          # This is similar to how AIX traditionally builds its shared libraries.
15566
15936
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15567
15937
        fi
15568
15938
      fi
15576
15946
      ld_shlibs_F77=no
15577
15947
      ;;
15578
15948
 
15579
 
    bsdi4*)
 
15949
    bsdi[45]*)
15580
15950
      export_dynamic_flag_spec_F77=-rdynamic
15581
15951
      ;;
15582
15952
 
15597
15967
      old_archive_From_new_cmds_F77='true'
15598
15968
      # FIXME: Should let the user specify the lib program.
15599
15969
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15600
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15970
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15601
15971
      enable_shared_with_static_runtimes_F77=yes
15602
15972
      ;;
15603
15973
 
15604
15974
    darwin* | rhapsody*)
15605
 
    if test "$GXX" = yes ; then
 
15975
      case $host_os in
 
15976
        rhapsody* | darwin1.[012])
 
15977
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15978
         ;;
 
15979
       *) # Darwin 1.3 on
 
15980
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15981
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15982
         else
 
15983
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15984
             10.[012])
 
15985
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15986
               ;;
 
15987
             10.*)
 
15988
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15989
               ;;
 
15990
           esac
 
15991
         fi
 
15992
         ;;
 
15993
      esac
15606
15994
      archive_cmds_need_lc_F77=no
15607
 
      case "$host_os" in
15608
 
      rhapsody* | darwin1.[012])
15609
 
        allow_undefined_flag_F77='-undefined suppress'
15610
 
        ;;
15611
 
      *) # Darwin 1.3 on
15612
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15613
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15614
 
      else
15615
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
15616
 
          10.[012])
15617
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15618
 
            ;;
15619
 
          10.*)
15620
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
15621
 
            ;;
15622
 
        esac
15623
 
      fi
15624
 
        ;;
15625
 
      esac
15626
 
        lt_int_apple_cc_single_mod=no
15627
 
        output_verbose_link_cmd='echo'
15628
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15629
 
          lt_int_apple_cc_single_mod=yes
15630
 
        fi
15631
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15632
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15633
 
        else
15634
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15635
 
      fi
15636
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15637
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15638
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15639
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15640
 
        else
15641
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15642
 
        fi
15643
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15644
15995
      hardcode_direct_F77=no
15645
15996
      hardcode_automatic_F77=yes
15646
15997
      hardcode_shlibpath_var_F77=unsupported
15647
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15998
      whole_archive_flag_spec_F77=''
15648
15999
      link_all_deplibs_F77=yes
 
16000
    if test "$GCC" = yes ; then
 
16001
        output_verbose_link_cmd='echo'
 
16002
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16003
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16004
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16005
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16006
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15649
16007
    else
15650
 
      ld_shlibs_F77=no
 
16008
      case $cc_basename in
 
16009
        xlc*)
 
16010
         output_verbose_link_cmd='echo'
 
16011
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16012
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16013
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16014
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16015
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16016
          ;;
 
16017
       *)
 
16018
         ld_shlibs_F77=no
 
16019
          ;;
 
16020
      esac
15651
16021
    fi
15652
16022
      ;;
15653
16023
 
15681
16051
      ;;
15682
16052
 
15683
16053
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15684
 
    freebsd* | kfreebsd*-gnu)
 
16054
    freebsd* | kfreebsd*-gnu | dragonfly*)
15685
16055
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15686
16056
      hardcode_libdir_flag_spec_F77='-R$libdir'
15687
16057
      hardcode_direct_F77=yes
15706
16076
 
15707
16077
    hpux10* | hpux11*)
15708
16078
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15709
 
        case "$host_cpu" in
 
16079
        case $host_cpu in
15710
16080
        hppa*64*|ia64*)
15711
16081
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712
16082
          ;;
15715
16085
          ;;
15716
16086
        esac
15717
16087
      else
15718
 
        case "$host_cpu" in
 
16088
        case $host_cpu in
15719
16089
        hppa*64*|ia64*)
15720
16090
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15721
16091
          ;;
15725
16095
        esac
15726
16096
      fi
15727
16097
      if test "$with_gnu_ld" = no; then
15728
 
        case "$host_cpu" in
 
16098
        case $host_cpu in
15729
16099
        hppa*64*)
15730
16100
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15731
16101
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15792
16162
      hardcode_shlibpath_var_F77=no
15793
16163
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15794
16164
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16165
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15795
16166
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15796
16167
        export_dynamic_flag_spec_F77='${wl}-E'
15797
16168
      else
15837
16208
        allow_undefined_flag_F77=' -expect_unresolved \*'
15838
16209
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15839
16210
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15840
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16211
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15841
16212
 
15842
16213
        # Both c and cxx compiler support -rpath directly
15843
16214
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15856
16227
    solaris*)
15857
16228
      no_undefined_flag_F77=' -z text'
15858
16229
      if test "$GCC" = yes; then
 
16230
        wlarc='${wl}'
15859
16231
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15860
16232
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15861
16233
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15862
16234
      else
 
16235
        wlarc=''
15863
16236
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864
16237
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15865
16238
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15868
16241
      hardcode_shlibpath_var_F77=no
15869
16242
      case $host_os in
15870
16243
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15871
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15872
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16244
      *)
 
16245
        # The compiler driver will combine linker options so we
 
16246
        # cannot just pass the convience library names through
 
16247
        # without $wl, iff we do not link with $LD.
 
16248
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16249
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16250
        case $wlarc in
 
16251
        '')
 
16252
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16253
        *)
 
16254
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16255
        esac ;;
15873
16256
      esac
15874
16257
      link_all_deplibs_F77=yes
15875
16258
      ;;
16143
16526
  shlibpath_var=LIBRARY_PATH
16144
16527
  ;;
16145
16528
 
16146
 
bsdi4*)
 
16529
bsdi[45]*)
16147
16530
  version_type=linux
16148
16531
  need_version=no
16149
16532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171
16554
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16172
16555
      dldir=$destdir/`dirname \$dlpath`~
16173
16556
      test -d \$dldir || mkdir -p \$dldir~
16174
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16557
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16558
      chmod a+x \$dldir/$dlname'
16175
16559
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16176
16560
      dlpath=$dir/\$dldll~
16177
16561
       $rm \$dlpath'
16201
16585
      ;;
16202
16586
    pw32*)
16203
16587
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16204
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16588
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16205
16589
      ;;
16206
16590
    esac
16207
16591
    ;;
16224
16608
  soname_spec='${libname}${release}${major}$shared_ext'
16225
16609
  shlibpath_overrides_runpath=yes
16226
16610
  shlibpath_var=DYLD_LIBRARY_PATH
16227
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16611
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16228
16612
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16229
16613
  if test "$GCC" = yes; then
16230
16614
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16259
16643
  dynamic_linker='GNU ld.so'
16260
16644
  ;;
16261
16645
 
16262
 
freebsd*)
16263
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16646
freebsd* | dragonfly*)
 
16647
  # DragonFly does not have aout.  When/if they implement a new
 
16648
  # versioning mechanism, adjust this.
 
16649
  if test -x /usr/bin/objformat; then
 
16650
    objformat=`/usr/bin/objformat`
 
16651
  else
 
16652
    case $host_os in
 
16653
    freebsd[123]*) objformat=aout ;;
 
16654
    *) objformat=elf ;;
 
16655
    esac
 
16656
  fi
16264
16657
  version_type=freebsd-$objformat
16265
16658
  case $version_type in
16266
16659
    freebsd-elf*)
16278
16671
  freebsd2*)
16279
16672
    shlibpath_overrides_runpath=yes
16280
16673
    ;;
16281
 
  freebsd3.01* | freebsdelf3.01*)
 
16674
  freebsd3.[01]* | freebsdelf3.[01]*)
16282
16675
    shlibpath_overrides_runpath=yes
16283
16676
    hardcode_into_libs=yes
16284
16677
    ;;
16305
16698
  version_type=sunos
16306
16699
  need_lib_prefix=no
16307
16700
  need_version=no
16308
 
  case "$host_cpu" in
 
16701
  case $host_cpu in
16309
16702
  ia64*)
16310
16703
    shrext_cmds='.so'
16311
16704
    hardcode_into_libs=yes
16404
16797
 
16405
16798
  # Append ld.so.conf contents to the search path
16406
16799
  if test -f /etc/ld.so.conf; then
16407
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16800
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16408
16801
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16409
16802
  fi
16410
16803
 
16479
16872
openbsd*)
16480
16873
  version_type=sunos
16481
16874
  need_lib_prefix=no
16482
 
  need_version=yes
 
16875
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16876
  case $host_os in
 
16877
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16878
    *)                         need_version=no  ;;
 
16879
  esac
16483
16880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16484
16881
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16485
16882
  shlibpath_var=LD_LIBRARY_PATH
16601
16998
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16602
16999
hardcode_action_F77=
16603
17000
if test -n "$hardcode_libdir_flag_spec_F77" || \
16604
 
   test -n "$runpath_var F77" || \
16605
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17001
   test -n "$runpath_var_F77" || \
 
17002
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16606
17003
 
16607
17004
  # We can hardcode non-existant directories.
16608
17005
  if test "$hardcode_direct_F77" != no &&
16779
17176
# The host system.
16780
17177
host_alias=$host_alias
16781
17178
host=$host
 
17179
host_os=$host_os
 
17180
 
 
17181
# The build system.
 
17182
build_alias=$build_alias
 
17183
build=$build
 
17184
build_os=$build_os
16782
17185
 
16783
17186
# An echo program that does not interpret backslashes.
16784
17187
echo=$lt_echo
16855
17258
# Does compiler simultaneously support -c and -o options?
16856
17259
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16857
17260
 
16858
 
# Must we lock files when doing compilation ?
 
17261
# Must we lock files when doing compilation?
16859
17262
need_locks=$lt_need_locks
16860
17263
 
16861
17264
# Do we need the lib prefix for modules?
17093
17496
lt_simple_compile_test_code="class foo {}\n"
17094
17497
 
17095
17498
# Code to be used in simple link tests
17096
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17499
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17097
17500
 
17098
17501
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17099
17502
 
17104
17507
compiler=$CC
17105
17508
 
17106
17509
 
 
17510
# save warnings/boilerplate of simple test code
 
17511
ac_outfile=conftest.$ac_objext
 
17512
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17513
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17514
_lt_compiler_boilerplate=`cat conftest.err`
 
17515
$rm conftest*
 
17516
 
 
17517
ac_outfile=conftest.$ac_objext
 
17518
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
17519
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17520
_lt_linker_boilerplate=`cat conftest.err`
 
17521
$rm conftest*
 
17522
 
 
17523
 
17107
17524
# Allow CC to be a program name with arguments.
17108
17525
lt_save_CC="$CC"
17109
17526
CC=${GCJ-"gcj"}
17110
17527
compiler=$CC
17111
17528
compiler_GCJ=$CC
 
17529
for cc_temp in $compiler""; do
 
17530
  case $cc_temp in
 
17531
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17532
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17533
    \-*) ;;
 
17534
    *) break;;
 
17535
  esac
 
17536
done
 
17537
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17538
 
17112
17539
 
17113
17540
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17114
17541
archive_cmds_need_lc_GCJ=no
17115
17542
 
 
17543
old_archive_cmds_GCJ=$old_archive_cmds
 
17544
 
17116
17545
 
17117
17546
lt_prog_compiler_no_builtin_flag_GCJ=
17118
17547
 
17135
17564
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17136
17565
   # The option is referenced via a variable to avoid confusing sed.
17137
17566
   lt_compile=`echo "$ac_compile" | $SED \
17138
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17567
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139
17568
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140
17569
   -e 's:$: $lt_compiler_flag:'`
17141
 
   (eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
 
17570
   (eval echo "\"\$as_me:17570: $lt_compile\"" >&5)
17142
17571
   (eval "$lt_compile" 2>conftest.err)
17143
17572
   ac_status=$?
17144
17573
   cat conftest.err >&5
17145
 
   echo "$as_me:17145: \$? = $ac_status" >&5
 
17574
   echo "$as_me:17574: \$? = $ac_status" >&5
17146
17575
   if (exit $ac_status) && test -s "$ac_outfile"; then
17147
17576
     # The compiler can only warn and ignore the option if not recognized
17148
 
     # So say no if there are warnings
17149
 
     if test ! -s conftest.err; then
 
17577
     # So say no if there are warnings other than the usual output.
 
17578
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
17579
     $SED '/^$/d' conftest.err >conftest.er2
 
17580
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17150
17581
       lt_cv_prog_compiler_rtti_exceptions=yes
17151
17582
     fi
17152
17583
   fi
17223
17654
    hpux*)
17224
17655
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17225
17656
      # not for PA HP-UX.
17226
 
      case "$host_cpu" in
 
17657
      case $host_cpu in
17227
17658
      hppa*64*|ia64*)
17228
17659
        # +Z the default
17229
17660
        ;;
17249
17680
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17250
17681
      fi
17251
17682
      ;;
 
17683
      darwin*)
 
17684
        # PIC is the default on this platform
 
17685
        # Common symbols not allowed in MH_DYLIB files
 
17686
       case $cc_basename in
 
17687
         xlc*)
 
17688
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17689
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17690
         ;;
 
17691
       esac
 
17692
       ;;
17252
17693
 
17253
17694
    mingw* | pw32* | os2*)
17254
17695
      # This hack is so that the source file can tell whether it is being
17260
17701
      lt_prog_compiler_wl_GCJ='-Wl,'
17261
17702
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17262
17703
      # not for PA HP-UX.
17263
 
      case "$host_cpu" in
 
17704
      case $host_cpu in
17264
17705
      hppa*64*|ia64*)
17265
17706
        # +Z the default
17266
17707
        ;;
17284
17725
      ;;
17285
17726
 
17286
17727
    linux*)
17287
 
      case $CC in
 
17728
      case $cc_basename in
17288
17729
      icc* | ecc*)
17289
17730
        lt_prog_compiler_wl_GCJ='-Wl,'
17290
17731
        lt_prog_compiler_pic_GCJ='-KPIC'
17291
17732
        lt_prog_compiler_static_GCJ='-static'
17292
17733
        ;;
 
17734
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17735
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17736
        # which looks to be a dead project)
 
17737
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17738
        lt_prog_compiler_pic_GCJ='-fpic'
 
17739
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17740
        ;;
17293
17741
      ccc*)
17294
17742
        lt_prog_compiler_wl_GCJ='-Wl,'
17295
17743
        # All Alpha code is PIC.
17310
17758
      ;;
17311
17759
 
17312
17760
    solaris*)
17313
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17314
17761
      lt_prog_compiler_pic_GCJ='-KPIC'
17315
17762
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17763
      case $cc_basename in
 
17764
      f77* | f90* | f95*)
 
17765
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17766
      *)
 
17767
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17768
      esac
17316
17769
      ;;
17317
17770
 
17318
17771
    sunos4*)
17334
17787
      fi
17335
17788
      ;;
17336
17789
 
 
17790
    unicos*)
 
17791
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17792
      lt_prog_compiler_can_build_shared_GCJ=no
 
17793
      ;;
 
17794
 
17337
17795
    uts4*)
17338
17796
      lt_prog_compiler_pic_GCJ='-pic'
17339
17797
      lt_prog_compiler_static_GCJ='-Bstatic'
17368
17826
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17369
17827
   # The option is referenced via a variable to avoid confusing sed.
17370
17828
   lt_compile=`echo "$ac_compile" | $SED \
17371
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17829
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17372
17830
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17373
17831
   -e 's:$: $lt_compiler_flag:'`
17374
 
   (eval echo "\"\$as_me:17374: $lt_compile\"" >&5)
 
17832
   (eval echo "\"\$as_me:17832: $lt_compile\"" >&5)
17375
17833
   (eval "$lt_compile" 2>conftest.err)
17376
17834
   ac_status=$?
17377
17835
   cat conftest.err >&5
17378
 
   echo "$as_me:17378: \$? = $ac_status" >&5
 
17836
   echo "$as_me:17836: \$? = $ac_status" >&5
17379
17837
   if (exit $ac_status) && test -s "$ac_outfile"; then
17380
17838
     # The compiler can only warn and ignore the option if not recognized
17381
 
     # So say no if there are warnings
17382
 
     if test ! -s conftest.err; then
 
17839
     # So say no if there are warnings other than the usual output.
 
17840
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
17841
     $SED '/^$/d' conftest.err >conftest.er2
 
17842
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17383
17843
       lt_prog_compiler_pic_works_GCJ=yes
17384
17844
     fi
17385
17845
   fi
17400
17860
fi
17401
17861
 
17402
17862
fi
17403
 
case "$host_os" in
 
17863
case $host_os in
17404
17864
  # For platforms which do not support PIC, -DPIC is meaningless:
17405
17865
  *djgpp*)
17406
17866
    lt_prog_compiler_pic_GCJ=
17428
17888
   # Note that $ac_compile itself does not contain backslashes and begins
17429
17889
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17430
17890
   lt_compile=`echo "$ac_compile" | $SED \
17431
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17891
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17432
17892
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17433
17893
   -e 's:$: $lt_compiler_flag:'`
17434
 
   (eval echo "\"\$as_me:17434: $lt_compile\"" >&5)
 
17894
   (eval echo "\"\$as_me:17894: $lt_compile\"" >&5)
17435
17895
   (eval "$lt_compile" 2>out/conftest.err)
17436
17896
   ac_status=$?
17437
17897
   cat out/conftest.err >&5
17438
 
   echo "$as_me:17438: \$? = $ac_status" >&5
 
17898
   echo "$as_me:17898: \$? = $ac_status" >&5
17439
17899
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17440
17900
   then
17441
17901
     # The compiler can only warn and ignore the option if not recognized
17442
17902
     # So say no if there are warnings
17443
 
     if test ! -s out/conftest.err; then
 
17903
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
17904
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
17905
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17444
17906
       lt_cv_prog_compiler_c_o_GCJ=yes
17445
17907
     fi
17446
17908
   fi
17447
 
   chmod u+w .
 
17909
   chmod u+w . 2>&5
17448
17910
   $rm conftest*
17449
17911
   # SGI C++ compiler will create directory out/ii_files/ for
17450
17912
   # template instantiation
17520
17982
  # rely on this symbol name, it's probably fine to never include it in
17521
17983
  # preloaded symbol tables.
17522
17984
  extract_expsyms_cmds=
 
17985
  # Just being paranoid about ensuring that cc_basename is set.
 
17986
  for cc_temp in $compiler""; do
 
17987
  case $cc_temp in
 
17988
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17989
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17990
    \-*) ;;
 
17991
    *) break;;
 
17992
  esac
 
17993
done
 
17994
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17523
17995
 
17524
17996
  case $host_os in
17525
17997
  cygwin* | mingw* | pw32*)
17540
18012
    # If archive_cmds runs LD, not CC, wlarc should be empty
17541
18013
    wlarc='${wl}'
17542
18014
 
 
18015
    # Set some defaults for GNU ld with shared library support. These
 
18016
    # are reset later if shared libraries are not supported. Putting them
 
18017
    # here allows them to be overridden if necessary.
 
18018
    runpath_var=LD_RUN_PATH
 
18019
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18020
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18021
    # ancient GNU ld didn't support --whole-archive et. al.
 
18022
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18023
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18024
      else
 
18025
        whole_archive_flag_spec_GCJ=
 
18026
    fi
 
18027
    supports_anon_versioning=no
 
18028
    case `$LD -v 2>/dev/null` in
 
18029
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18030
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18031
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18032
      *\ 2.11.*) ;; # other 2.11 versions
 
18033
      *) supports_anon_versioning=yes ;;
 
18034
    esac
 
18035
 
17543
18036
    # See if GNU ld supports shared libraries.
17544
18037
    case $host_os in
17545
18038
    aix3* | aix4* | aix5*)
17590
18083
      allow_undefined_flag_GCJ=unsupported
17591
18084
      always_export_symbols_GCJ=no
17592
18085
      enable_shared_with_static_runtimes_GCJ=yes
17593
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18086
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17594
18087
 
17595
18088
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17596
18089
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17604
18097
        fi~
17605
18098
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17606
18099
      else
17607
 
        ld_shlibs=no
 
18100
        ld_shlibs_GCJ=no
 
18101
      fi
 
18102
      ;;
 
18103
 
 
18104
    linux*)
 
18105
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18106
        tmp_addflag=
 
18107
        case $cc_basename,$host_cpu in
 
18108
        pgcc*)                          # Portland Group C compiler
 
18109
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18110
          tmp_addflag=' $pic_flag'
 
18111
          ;;
 
18112
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
18113
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18114
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
18115
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
18116
          tmp_addflag=' -i_dynamic' ;;
 
18117
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
18118
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
18119
        ifc* | ifort*)                  # Intel Fortran compiler
 
18120
          tmp_addflag=' -nofor_main' ;;
 
18121
        esac
 
18122
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18123
 
 
18124
        if test $supports_anon_versioning = yes; then
 
18125
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18126
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18127
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
18128
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18129
        fi
 
18130
        link_all_deplibs_GCJ=no
 
18131
      else
 
18132
        ld_shlibs_GCJ=no
17608
18133
      fi
17609
18134
      ;;
17610
18135
 
17646
18171
      hardcode_shlibpath_var_GCJ=no
17647
18172
      ;;
17648
18173
 
17649
 
  linux*)
17650
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17651
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652
 
        archive_cmds_GCJ="$tmp_archive_cmds"
17653
 
      supports_anon_versioning=no
17654
 
      case `$LD -v 2>/dev/null` in
17655
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17656
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17657
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17658
 
        *\ 2.11.*) ;; # other 2.11 versions
17659
 
        *) supports_anon_versioning=yes ;;
17660
 
      esac
17661
 
      if test $supports_anon_versioning = yes; then
17662
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17663
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17664
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17665
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17666
 
      else
17667
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17668
 
      fi
17669
 
      link_all_deplibs_GCJ=no
17670
 
    else
17671
 
      ld_shlibs_GCJ=no
17672
 
    fi
17673
 
    ;;
17674
 
 
17675
18174
    *)
17676
18175
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17677
18176
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17682
18181
      ;;
17683
18182
    esac
17684
18183
 
17685
 
    if test "$ld_shlibs_GCJ" = yes; then
17686
 
      runpath_var=LD_RUN_PATH
17687
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17688
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17689
 
      # ancient GNU ld didn't support --whole-archive et. al.
17690
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17691
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17692
 
      else
17693
 
        whole_archive_flag_spec_GCJ=
17694
 
      fi
 
18184
    if test "$ld_shlibs_GCJ" = no; then
 
18185
      runpath_var=
 
18186
      hardcode_libdir_flag_spec_GCJ=
 
18187
      export_dynamic_flag_spec_GCJ=
 
18188
      whole_archive_flag_spec_GCJ=
17695
18189
    fi
17696
18190
  else
17697
18191
    # PORTME fill in a description of your system's linker (not GNU ld)
17755
18249
      link_all_deplibs_GCJ=yes
17756
18250
 
17757
18251
      if test "$GCC" = yes; then
17758
 
        case $host_os in aix4.012|aix4.012.*)
 
18252
        case $host_os in aix4.[012]|aix4.[012].*)
17759
18253
        # We only want to do this on AIX 4.2 and lower, the check
17760
18254
        # below for broken collect2 doesn't work under 4.3+
17761
18255
          collect2name=`${CC} -print-prog-name=collect2`
17776
18270
          fi
17777
18271
        esac
17778
18272
        shared_flag='-shared'
 
18273
        if test "$aix_use_runtimelinking" = yes; then
 
18274
          shared_flag="$shared_flag "'${wl}-G'
 
18275
        fi
17779
18276
      else
17780
18277
        # not using gcc
17781
18278
        if test "$host_cpu" = ia64; then
17920
18417
          # Exported symbols can be pulled into shared objects from archives
17921
18418
          whole_archive_flag_spec_GCJ=' '
17922
18419
          archive_cmds_need_lc_GCJ=yes
17923
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18420
          # This is similar to how AIX traditionally builds its shared libraries.
17924
18421
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17925
18422
        fi
17926
18423
      fi
17934
18431
      ld_shlibs_GCJ=no
17935
18432
      ;;
17936
18433
 
17937
 
    bsdi4*)
 
18434
    bsdi[45]*)
17938
18435
      export_dynamic_flag_spec_GCJ=-rdynamic
17939
18436
      ;;
17940
18437
 
17955
18452
      old_archive_From_new_cmds_GCJ='true'
17956
18453
      # FIXME: Should let the user specify the lib program.
17957
18454
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17958
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18455
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17959
18456
      enable_shared_with_static_runtimes_GCJ=yes
17960
18457
      ;;
17961
18458
 
17962
18459
    darwin* | rhapsody*)
17963
 
    if test "$GXX" = yes ; then
 
18460
      case $host_os in
 
18461
        rhapsody* | darwin1.[012])
 
18462
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18463
         ;;
 
18464
       *) # Darwin 1.3 on
 
18465
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18466
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18467
         else
 
18468
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18469
             10.[012])
 
18470
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18471
               ;;
 
18472
             10.*)
 
18473
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18474
               ;;
 
18475
           esac
 
18476
         fi
 
18477
         ;;
 
18478
      esac
17964
18479
      archive_cmds_need_lc_GCJ=no
17965
 
      case "$host_os" in
17966
 
      rhapsody* | darwin1.[012])
17967
 
        allow_undefined_flag_GCJ='-undefined suppress'
17968
 
        ;;
17969
 
      *) # Darwin 1.3 on
17970
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17971
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17972
 
      else
17973
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
17974
 
          10.[012])
17975
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17976
 
            ;;
17977
 
          10.*)
17978
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17979
 
            ;;
17980
 
        esac
17981
 
      fi
17982
 
        ;;
17983
 
      esac
17984
 
        lt_int_apple_cc_single_mod=no
17985
 
        output_verbose_link_cmd='echo'
17986
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17987
 
          lt_int_apple_cc_single_mod=yes
17988
 
        fi
17989
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17990
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17991
 
        else
17992
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17993
 
      fi
17994
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17995
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17996
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17997
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17998
 
        else
17999
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18000
 
        fi
18001
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18002
18480
      hardcode_direct_GCJ=no
18003
18481
      hardcode_automatic_GCJ=yes
18004
18482
      hardcode_shlibpath_var_GCJ=unsupported
18005
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18483
      whole_archive_flag_spec_GCJ=''
18006
18484
      link_all_deplibs_GCJ=yes
 
18485
    if test "$GCC" = yes ; then
 
18486
        output_verbose_link_cmd='echo'
 
18487
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18488
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18489
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18490
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18491
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18007
18492
    else
18008
 
      ld_shlibs_GCJ=no
 
18493
      case $cc_basename in
 
18494
        xlc*)
 
18495
         output_verbose_link_cmd='echo'
 
18496
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18497
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18498
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18499
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18500
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18501
          ;;
 
18502
       *)
 
18503
         ld_shlibs_GCJ=no
 
18504
          ;;
 
18505
      esac
18009
18506
    fi
18010
18507
      ;;
18011
18508
 
18039
18536
      ;;
18040
18537
 
18041
18538
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18042
 
    freebsd* | kfreebsd*-gnu)
 
18539
    freebsd* | kfreebsd*-gnu | dragonfly*)
18043
18540
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18044
18541
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18045
18542
      hardcode_direct_GCJ=yes
18064
18561
 
18065
18562
    hpux10* | hpux11*)
18066
18563
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18067
 
        case "$host_cpu" in
 
18564
        case $host_cpu in
18068
18565
        hppa*64*|ia64*)
18069
18566
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070
18567
          ;;
18073
18570
          ;;
18074
18571
        esac
18075
18572
      else
18076
 
        case "$host_cpu" in
 
18573
        case $host_cpu in
18077
18574
        hppa*64*|ia64*)
18078
18575
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18079
18576
          ;;
18083
18580
        esac
18084
18581
      fi
18085
18582
      if test "$with_gnu_ld" = no; then
18086
 
        case "$host_cpu" in
 
18583
        case $host_cpu in
18087
18584
        hppa*64*)
18088
18585
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18089
18586
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18150
18647
      hardcode_shlibpath_var_GCJ=no
18151
18648
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18152
18649
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18650
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18153
18651
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18154
18652
        export_dynamic_flag_spec_GCJ='${wl}-E'
18155
18653
      else
18195
18693
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18196
18694
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18197
18695
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18198
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
18696
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18199
18697
 
18200
18698
        # Both c and cxx compiler support -rpath directly
18201
18699
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18214
18712
    solaris*)
18215
18713
      no_undefined_flag_GCJ=' -z text'
18216
18714
      if test "$GCC" = yes; then
 
18715
        wlarc='${wl}'
18217
18716
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18218
18717
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18219
18718
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18220
18719
      else
 
18720
        wlarc=''
18221
18721
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222
18722
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18223
18723
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18226
18726
      hardcode_shlibpath_var_GCJ=no
18227
18727
      case $host_os in
18228
18728
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18229
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18230
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18729
      *)
 
18730
        # The compiler driver will combine linker options so we
 
18731
        # cannot just pass the convience library names through
 
18732
        # without $wl, iff we do not link with $LD.
 
18733
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18734
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18735
        case $wlarc in
 
18736
        '')
 
18737
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18738
        *)
 
18739
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
18740
        esac ;;
18231
18741
      esac
18232
18742
      link_all_deplibs_GCJ=yes
18233
18743
      ;;
18501
19011
  shlibpath_var=LIBRARY_PATH
18502
19012
  ;;
18503
19013
 
18504
 
bsdi4*)
 
19014
bsdi[45]*)
18505
19015
  version_type=linux
18506
19016
  need_version=no
18507
19017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529
19039
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18530
19040
      dldir=$destdir/`dirname \$dlpath`~
18531
19041
      test -d \$dldir || mkdir -p \$dldir~
18532
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19042
      $install_prog $dir/$dlname \$dldir/$dlname~
 
19043
      chmod a+x \$dldir/$dlname'
18533
19044
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18534
19045
      dlpath=$dir/\$dldll~
18535
19046
       $rm \$dlpath'
18559
19070
      ;;
18560
19071
    pw32*)
18561
19072
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18562
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19073
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18563
19074
      ;;
18564
19075
    esac
18565
19076
    ;;
18582
19093
  soname_spec='${libname}${release}${major}$shared_ext'
18583
19094
  shlibpath_overrides_runpath=yes
18584
19095
  shlibpath_var=DYLD_LIBRARY_PATH
18585
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
19096
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18586
19097
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18587
19098
  if test "$GCC" = yes; then
18588
19099
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18617
19128
  dynamic_linker='GNU ld.so'
18618
19129
  ;;
18619
19130
 
18620
 
freebsd*)
18621
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19131
freebsd* | dragonfly*)
 
19132
  # DragonFly does not have aout.  When/if they implement a new
 
19133
  # versioning mechanism, adjust this.
 
19134
  if test -x /usr/bin/objformat; then
 
19135
    objformat=`/usr/bin/objformat`
 
19136
  else
 
19137
    case $host_os in
 
19138
    freebsd[123]*) objformat=aout ;;
 
19139
    *) objformat=elf ;;
 
19140
    esac
 
19141
  fi
18622
19142
  version_type=freebsd-$objformat
18623
19143
  case $version_type in
18624
19144
    freebsd-elf*)
18636
19156
  freebsd2*)
18637
19157
    shlibpath_overrides_runpath=yes
18638
19158
    ;;
18639
 
  freebsd3.01* | freebsdelf3.01*)
 
19159
  freebsd3.[01]* | freebsdelf3.[01]*)
18640
19160
    shlibpath_overrides_runpath=yes
18641
19161
    hardcode_into_libs=yes
18642
19162
    ;;
18663
19183
  version_type=sunos
18664
19184
  need_lib_prefix=no
18665
19185
  need_version=no
18666
 
  case "$host_cpu" in
 
19186
  case $host_cpu in
18667
19187
  ia64*)
18668
19188
    shrext_cmds='.so'
18669
19189
    hardcode_into_libs=yes
18762
19282
 
18763
19283
  # Append ld.so.conf contents to the search path
18764
19284
  if test -f /etc/ld.so.conf; then
18765
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
19285
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18766
19286
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18767
19287
  fi
18768
19288
 
18837
19357
openbsd*)
18838
19358
  version_type=sunos
18839
19359
  need_lib_prefix=no
18840
 
  need_version=yes
 
19360
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19361
  case $host_os in
 
19362
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19363
    *)                         need_version=no  ;;
 
19364
  esac
18841
19365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18842
19366
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18843
19367
  shlibpath_var=LD_LIBRARY_PATH
18959
19483
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18960
19484
hardcode_action_GCJ=
18961
19485
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18962
 
   test -n "$runpath_var GCJ" || \
18963
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
19486
   test -n "$runpath_var_GCJ" || \
 
19487
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18964
19488
 
18965
19489
  # We can hardcode non-existant directories.
18966
19490
  if test "$hardcode_direct_GCJ" != no &&
19619
20143
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19620
20144
  lt_status=$lt_dlunknown
19621
20145
  cat > conftest.$ac_ext <<EOF
19622
 
#line 19622 "configure"
 
20146
#line 20146 "configure"
19623
20147
#include "confdefs.h"
19624
20148
 
19625
20149
#if HAVE_DLFCN_H
19685
20209
  ac_status=$?
19686
20210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687
20211
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19688
 
    (./conftest; exit; ) 2>/dev/null
 
20212
    (./conftest; exit; ) >&5 2>/dev/null
19689
20213
    lt_status=$?
19690
20214
    case x$lt_status in
19691
20215
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19717
20241
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19718
20242
  lt_status=$lt_dlunknown
19719
20243
  cat > conftest.$ac_ext <<EOF
19720
 
#line 19720 "configure"
 
20244
#line 20244 "configure"
19721
20245
#include "confdefs.h"
19722
20246
 
19723
20247
#if HAVE_DLFCN_H
19783
20307
  ac_status=$?
19784
20308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785
20309
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19786
 
    (./conftest; exit; ) 2>/dev/null
 
20310
    (./conftest; exit; ) >&5 2>/dev/null
19787
20311
    lt_status=$?
19788
20312
    case x$lt_status in
19789
20313
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19935
20459
# The host system.
19936
20460
host_alias=$host_alias
19937
20461
host=$host
 
20462
host_os=$host_os
 
20463
 
 
20464
# The build system.
 
20465
build_alias=$build_alias
 
20466
build=$build
 
20467
build_os=$build_os
19938
20468
 
19939
20469
# An echo program that does not interpret backslashes.
19940
20470
echo=$lt_echo
20011
20541
# Does compiler simultaneously support -c and -o options?
20012
20542
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20013
20543
 
20014
 
# Must we lock files when doing compilation ?
 
20544
# Must we lock files when doing compilation?
20015
20545
need_locks=$lt_need_locks
20016
20546
 
20017
20547
# Do we need the lib prefix for modules?
20259
20789
compiler=$CC
20260
20790
 
20261
20791
 
 
20792
# save warnings/boilerplate of simple test code
 
20793
ac_outfile=conftest.$ac_objext
 
20794
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
20795
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20796
_lt_compiler_boilerplate=`cat conftest.err`
 
20797
$rm conftest*
 
20798
 
 
20799
ac_outfile=conftest.$ac_objext
 
20800
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
20801
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20802
_lt_linker_boilerplate=`cat conftest.err`
 
20803
$rm conftest*
 
20804
 
 
20805
 
20262
20806
# Allow CC to be a program name with arguments.
20263
20807
lt_save_CC="$CC"
20264
20808
CC=${RC-"windres"}
20265
20809
compiler=$CC
20266
20810
compiler_RC=$CC
 
20811
for cc_temp in $compiler""; do
 
20812
  case $cc_temp in
 
20813
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
20814
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
20815
    \-*) ;;
 
20816
    *) break;;
 
20817
  esac
 
20818
done
 
20819
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
20820
 
20267
20821
lt_cv_prog_compiler_c_o_RC=yes
20268
20822
 
20269
20823
# The else clause should only fire when bootstrapping the
20380
20934
# The host system.
20381
20935
host_alias=$host_alias
20382
20936
host=$host
 
20937
host_os=$host_os
 
20938
 
 
20939
# The build system.
 
20940
build_alias=$build_alias
 
20941
build=$build
 
20942
build_os=$build_os
20383
20943
 
20384
20944
# An echo program that does not interpret backslashes.
20385
20945
echo=$lt_echo
20456
21016
# Does compiler simultaneously support -c and -o options?
20457
21017
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20458
21018
 
20459
 
# Must we lock files when doing compilation ?
 
21019
# Must we lock files when doing compilation?
20460
21020
need_locks=$lt_need_locks
20461
21021
 
20462
21022
# Do we need the lib prefix for modules?
20791
21351
 
20792
21352
    echo "$as_me:$LINENO: result: yes" >&5
20793
21353
echo "${ECHO_T}yes" >&6
20794
 
 � �echo "$as_me:$LINENO: checking if we need CURL_STATICLIB" >&5
 
21354
    echo "$as_me:$LINENO: checking if we need CURL_STATICLIB" >&5
20795
21355
echo $ECHO_N "checking if we need CURL_STATICLIB... $ECHO_C" >&6
20796
21356
    if test "X$enable_shared" = "Xno"
20797
21357
    then
20802
21362
 
20803
21363
      echo "$as_me:$LINENO: result: yes" >&5
20804
21364
echo "${ECHO_T}yes" >&6
20805
 
 � �else
20806
 
 � � �echo "$as_me:$LINENO: result: no" >&5
 
21365
    else
 
21366
      echo "$as_me:$LINENO: result: no" >&5
20807
21367
echo "${ECHO_T}no" >&6
20808
21368
    fi
20809
21369
    ;;
21034
21594
echo "${ECHO_T}yes" >&6
21035
21595
 
21036
21596
fi;
 
21597
echo "$as_me:$LINENO: checking whether to support tftp" >&5
 
21598
echo $ECHO_N "checking whether to support tftp... $ECHO_C" >&6
 
21599
# Check whether --enable-tftp or --disable-tftp was given.
 
21600
if test "${enable_tftp+set}" = set; then
 
21601
  enableval="$enable_tftp"
 
21602
   case "$enableval" in
 
21603
  no)
 
21604
       echo "$as_me:$LINENO: result: no" >&5
 
21605
echo "${ECHO_T}no" >&6
 
21606
 
 
21607
cat >>confdefs.h <<\_ACEOF
 
21608
#define CURL_DISABLE_TFTP 1
 
21609
_ACEOF
 
21610
 
 
21611
       CURL_DISABLE_TFTP=1
 
21612
 
 
21613
       ;;
 
21614
  *)   echo "$as_me:$LINENO: result: yes" >&5
 
21615
echo "${ECHO_T}yes" >&6
 
21616
       ;;
 
21617
  esac
 
21618
else
 
21619
  echo "$as_me:$LINENO: result: yes" >&5
 
21620
echo "${ECHO_T}yes" >&6
 
21621
 
 
21622
fi;
21037
21623
 
21038
21624
 
21039
21625
echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
23385
23971
  withval="$with_krb4"
23386
23972
 
23387
23973
  OPT_KRB4="$withval"
23388
 
  if test X"$OPT_KRB4" != Xyes
23389
 
  then
23390
 
    LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
23391
 
    KRB4LIB="$OPT_KRB4/lib$libsuff"
23392
 
    CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
23393
 
    KRB4INC="$OPT_KRB4/include"
 
23974
  if test X"$OPT_KRB4" != Xno; then
 
23975
    want_krb4="yes"
 
23976
    if test X"$OPT_KRB4" != Xyes; then
 
23977
      LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
 
23978
      KRB4LIB="$OPT_KRB4/lib$libsuff"
 
23979
      CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
 
23980
      KRB4INC="$OPT_KRB4/include"
 
23981
    fi
23394
23982
  fi
23395
 
  want_krb4="yes"
23396
23983
 
23397
23984
fi;
23398
23985
 
24251
24838
# Check whether --with-spnego or --without-spnego was given.
24252
24839
if test "${with_spnego+set}" = set; then
24253
24840
  withval="$with_spnego"
24254
 
   SPNEGO_ROOT="$withval"
 
24841
 
 
24842
  SPNEGO_ROOT="$withval"
 
24843
  if test x"$SPNEGO_ROOT" != xno; then
24255
24844
    want_spnego="yes"
 
24845
  fi
24256
24846
 
24257
24847
fi;
 
24848
 
24258
24849
echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
24259
24850
echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
24260
24851
if test x"$want_spnego" = xyes; then
24300
24891
# Check whether --with-gssapi-libs or --without-gssapi-libs was given.
24301
24892
if test "${with_gssapi_libs+set}" = set; then
24302
24893
  withval="$with_gssapi_libs"
24303
 
   GSSAPI_LIBS="-L$withval -lgssapi"
 
24894
   GSSAPI_LIBS="-L$withval"
24304
24895
    want_gss="yes"
24305
24896
 
24306
24897
fi;
24309
24900
# Check whether --with-gssapi or --without-gssapi was given.
24310
24901
if test "${with_gssapi+set}" = set; then
24311
24902
  withval="$with_gssapi"
24312
 
   GSSAPI_ROOT="$withval"
 
24903
 
 
24904
  GSSAPI_ROOT="$withval"
 
24905
  if test x"$GSSAPI_ROOT" != xno; then
24313
24906
    want_gss="yes"
 
24907
  fi
24314
24908
 
24315
24909
fi;
24316
24910
 
 
24911
save_CPPFLAGS="$CPPFLAGS"
24317
24912
echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
24318
24913
echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
24319
24914
if test x"$want_gss" = xyes; then
 
24915
  echo "$as_me:$LINENO: result: yes" >&5
 
24916
echo "${ECHO_T}yes" >&6
 
24917
 
24320
24918
  if test -z "$GSSAPI_INCS"; then
24321
24919
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24322
24920
        GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
24326
24924
  fi
24327
24925
  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24328
24926
 
24329
 
  if test -z "$GSSAPI_LIB_DIR"; then
24330
 
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24331
 
        gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
24332
 
        LDFLAGS="$LDFLAGS $gss_ldflags"
24333
 
     elif test "$GSSAPI_ROOT" != "yes"; then
24334
 
        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
24335
 
     else
24336
 
        LDFLAGS="$LDFLAGS -lgssapi"
24337
 
     fi
 
24927
  if test "${ac_cv_header_gss_h+set}" = set; then
 
24928
  echo "$as_me:$LINENO: checking for gss.h" >&5
 
24929
echo $ECHO_N "checking for gss.h... $ECHO_C" >&6
 
24930
if test "${ac_cv_header_gss_h+set}" = set; then
 
24931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24932
fi
 
24933
echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
 
24934
echo "${ECHO_T}$ac_cv_header_gss_h" >&6
 
24935
else
 
24936
  # Is the header compilable?
 
24937
echo "$as_me:$LINENO: checking gss.h usability" >&5
 
24938
echo $ECHO_N "checking gss.h usability... $ECHO_C" >&6
 
24939
cat >conftest.$ac_ext <<_ACEOF
 
24940
/* confdefs.h.  */
 
24941
_ACEOF
 
24942
cat confdefs.h >>conftest.$ac_ext
 
24943
cat >>conftest.$ac_ext <<_ACEOF
 
24944
/* end confdefs.h.  */
 
24945
$ac_includes_default
 
24946
#include <gss.h>
 
24947
_ACEOF
 
24948
rm -f conftest.$ac_objext
 
24949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24950
  (eval $ac_compile) 2>conftest.er1
 
24951
  ac_status=$?
 
24952
  grep -v '^ *+' conftest.er1 >conftest.err
 
24953
  rm -f conftest.er1
 
24954
  cat conftest.err >&5
 
24955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24956
  (exit $ac_status); } &&
 
24957
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24959
  (eval $ac_try) 2>&5
 
24960
  ac_status=$?
 
24961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24962
  (exit $ac_status); }; } &&
 
24963
         { ac_try='test -s conftest.$ac_objext'
 
24964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24965
  (eval $ac_try) 2>&5
 
24966
  ac_status=$?
 
24967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24968
  (exit $ac_status); }; }; then
 
24969
  ac_header_compiler=yes
 
24970
else
 
24971
  echo "$as_me: failed program was:" >&5
 
24972
sed 's/^/| /' conftest.$ac_ext >&5
 
24973
 
 
24974
ac_header_compiler=no
 
24975
fi
 
24976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24977
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24978
echo "${ECHO_T}$ac_header_compiler" >&6
 
24979
 
 
24980
# Is the header present?
 
24981
echo "$as_me:$LINENO: checking gss.h presence" >&5
 
24982
echo $ECHO_N "checking gss.h presence... $ECHO_C" >&6
 
24983
cat >conftest.$ac_ext <<_ACEOF
 
24984
/* confdefs.h.  */
 
24985
_ACEOF
 
24986
cat confdefs.h >>conftest.$ac_ext
 
24987
cat >>conftest.$ac_ext <<_ACEOF
 
24988
/* end confdefs.h.  */
 
24989
#include <gss.h>
 
24990
_ACEOF
 
24991
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24992
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24993
  ac_status=$?
 
24994
  grep -v '^ *+' conftest.er1 >conftest.err
 
24995
  rm -f conftest.er1
 
24996
  cat conftest.err >&5
 
24997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24998
  (exit $ac_status); } >/dev/null; then
 
24999
  if test -s conftest.err; then
 
25000
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25001
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24338
25002
  else
24339
 
     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
 
25003
    ac_cpp_err=
24340
25004
  fi
24341
 
 
24342
 
  echo "$as_me:$LINENO: result: yes" >&5
24343
 
echo "${ECHO_T}yes" >&6
 
25005
else
 
25006
  ac_cpp_err=yes
 
25007
fi
 
25008
if test -z "$ac_cpp_err"; then
 
25009
  ac_header_preproc=yes
 
25010
else
 
25011
  echo "$as_me: failed program was:" >&5
 
25012
sed 's/^/| /' conftest.$ac_ext >&5
 
25013
 
 
25014
  ac_header_preproc=no
 
25015
fi
 
25016
rm -f conftest.err conftest.$ac_ext
 
25017
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25018
echo "${ECHO_T}$ac_header_preproc" >&6
 
25019
 
 
25020
# So?  What about this header?
 
25021
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25022
  yes:no: )
 
25023
    { echo "$as_me:$LINENO: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25024
echo "$as_me: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25025
    { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the compiler's result" >&5
 
25026
echo "$as_me: WARNING: gss.h: proceeding with the compiler's result" >&2;}
 
25027
    ac_header_preproc=yes
 
25028
    ;;
 
25029
  no:yes:* )
 
25030
    { echo "$as_me:$LINENO: WARNING: gss.h: present but cannot be compiled" >&5
 
25031
echo "$as_me: WARNING: gss.h: present but cannot be compiled" >&2;}
 
25032
    { echo "$as_me:$LINENO: WARNING: gss.h:     check for missing prerequisite headers?" >&5
 
25033
echo "$as_me: WARNING: gss.h:     check for missing prerequisite headers?" >&2;}
 
25034
    { echo "$as_me:$LINENO: WARNING: gss.h: see the Autoconf documentation" >&5
 
25035
echo "$as_me: WARNING: gss.h: see the Autoconf documentation" >&2;}
 
25036
    { echo "$as_me:$LINENO: WARNING: gss.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25037
echo "$as_me: WARNING: gss.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25038
    { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the preprocessor's result" >&5
 
25039
echo "$as_me: WARNING: gss.h: proceeding with the preprocessor's result" >&2;}
 
25040
    { echo "$as_me:$LINENO: WARNING: gss.h: in the future, the compiler will take precedence" >&5
 
25041
echo "$as_me: WARNING: gss.h: in the future, the compiler will take precedence" >&2;}
 
25042
    (
 
25043
      cat <<\_ASBOX
 
25044
## ------------------------------------------------------------------------ ##
 
25045
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
25046
## ------------------------------------------------------------------------ ##
 
25047
_ASBOX
 
25048
    ) |
 
25049
      sed "s/^/$as_me: WARNING:     /" >&2
 
25050
    ;;
 
25051
esac
 
25052
echo "$as_me:$LINENO: checking for gss.h" >&5
 
25053
echo $ECHO_N "checking for gss.h... $ECHO_C" >&6
 
25054
if test "${ac_cv_header_gss_h+set}" = set; then
 
25055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25056
else
 
25057
  ac_cv_header_gss_h=$ac_header_preproc
 
25058
fi
 
25059
echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
 
25060
echo "${ECHO_T}$ac_cv_header_gss_h" >&6
 
25061
 
 
25062
fi
 
25063
if test $ac_cv_header_gss_h = yes; then
 
25064
 
24344
25065
 
24345
25066
cat >>confdefs.h <<\_ACEOF
24346
 
#define HAVE_GSSAPI 1
 
25067
#define HAVE_GSSGNU 1
24347
25068
_ACEOF
24348
25069
 
24349
 
 
24350
 
  curl_gss_msg="enabled"
24351
 
 
24352
 
  if test "${ac_cv_header_gssapi_h+set}" = set; then
 
25070
      gnu_gss=yes
 
25071
 
 
25072
else
 
25073
 
 
25074
            if test "${ac_cv_header_gssapi_h+set}" = set; then
24353
25075
  echo "$as_me:$LINENO: checking for gssapi.h" >&5
24354
25076
echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
24355
25077
if test "${ac_cv_header_gssapi_h+set}" = set; then
24495
25217
 
24496
25218
else
24497
25219
 
24498
 
            if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
 
25220
                    if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
24499
25221
  echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
24500
25222
echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
24501
25223
if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
24633
25355
fi
24634
25356
if test $ac_cv_header_gssapi_gssapi_h = yes; then
24635
25357
 
 
25358
 
24636
25359
cat >>confdefs.h <<\_ACEOF
24637
25360
#define HAVE_GSSMIT 1
24638
25361
_ACEOF
24639
25362
 
24640
25363
 
24641
 
fi
24642
 
 
24643
 
 
24644
 
 
24645
 
 
24646
 
 
24647
 
fi
24648
 
 
 
25364
else
 
25365
 
 
25366
                            want_gss=no
 
25367
              { echo "$as_me:$LINENO: WARNING: disabling GSSAPI since no header files was found" >&5
 
25368
echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
 
25369
 
 
25370
 
 
25371
fi
 
25372
 
 
25373
 
 
25374
 
 
25375
 
 
25376
fi
 
25377
 
 
25378
 
 
25379
 
 
25380
 
 
25381
fi
24649
25382
 
24650
25383
 
24651
25384
else
24652
25385
  echo "$as_me:$LINENO: result: no" >&5
24653
25386
echo "${ECHO_T}no" >&6
24654
25387
fi
 
25388
if test x"$want_gss" = xyes; then
 
25389
 
 
25390
cat >>confdefs.h <<\_ACEOF
 
25391
#define HAVE_GSSAPI 1
 
25392
_ACEOF
 
25393
 
 
25394
 
 
25395
  curl_gss_msg="enabled (MIT/Heimdal)"
 
25396
 
 
25397
  if test -n "$gnu_gss"; then
 
25398
    curl_gss_msg="enabled (GNU GSS)"
 
25399
    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgss"
 
25400
  elif test -z "$GSSAPI_LIB_DIR"; then
 
25401
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
 
25402
        gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
 
25403
        LDFLAGS="$LDFLAGS $gss_ldflags"
 
25404
     elif test "$GSSAPI_ROOT" != "yes"; then
 
25405
        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
 
25406
     else
 
25407
        LDFLAGS="$LDFLAGS -lgssapi"
 
25408
     fi
 
25409
  else
 
25410
     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgssapi"
 
25411
  fi
 
25412
else
 
25413
  CPPFLAGS="$save_CPPFLAGS"
 
25414
fi
24655
25415
 
24656
25416
 
24657
25417
OPT_SSL=off
24673
25433
        if test x$cross_compiling != xyes; then
24674
25434
            PKGTEST="yes"
24675
25435
    fi
24676
 
    EXTRA_SSL=/usr/local/ssl ;;
 
25436
    PREFIX_OPENSSL=/usr/local/ssl
 
25437
    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
 
25438
    ;;
24677
25439
  off)
24678
25440
        if test x$cross_compiling != xyes; then
24679
25441
            PKGTEST="yes"
24680
25442
    fi
24681
 
    EXTRA_SSL= ;;
 
25443
    PREFIX_OPENSSL=
 
25444
    ;;
24682
25445
  *)
24683
25446
        PKGTEST="no"
24684
 
    EXTRA_SSL=$OPT_SSL
24685
 
    LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
24686
 
    CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
 
25447
    PREFIX_OPENSSL=$OPT_SSL
 
25448
    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
 
25449
    LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
 
25450
    CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
24687
25451
    ;;
24688
25452
  esac
24689
25453
 
24743
25507
        SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
24744
25508
        SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
24745
25509
 
 
25510
        LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
 
25511
 
24746
25512
                LIBS="$LIBS $SSL_LIBS"
24747
25513
        CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
24748
25514
        LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
24880
25646
 
24881
25647
else
24882
25648
 
24883
 
     LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
24884
 
     CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
 
25649
     LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
 
25650
     CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
24885
25651
     echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24886
25652
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24887
25653
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
26076
26842
  fi
26077
26843
 
26078
26844
  if test "$OPENSSL_ENABLED" = "1"; then
26079
 
                LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SSL/lib$libsuff"
26080
 
    export LD_LIBRARY_PATH
 
26845
    if test -n "$LIB_OPENSSL"; then
 
26846
 
 
26847
       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
 
26848
       export LD_LIBRARY_PATH
 
26849
       { echo "$as_me:$LINENO: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
 
26850
echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
 
26851
    fi
26081
26852
  fi
26082
26853
 
26083
26854
fi
26141
26912
fi
26142
26913
 
26143
26914
 
26144
 
OPT_GNUTLS=off
 
26915
OPT_GNUTLS=no
26145
26916
 
26146
26917
 
26147
26918
# Check whether --with-gnutls or --without-gnutls was given.
26152
26923
 
26153
26924
if test "$OPENSSL_ENABLED" != "1"; then
26154
26925
 
26155
 
  if test X"$OPT_GNUTLS" != Xoff; then
 
26926
  if test X"$OPT_GNUTLS" != Xno; then
26156
26927
    if test "x$OPT_GNUTLS" = "xyes"; then
26157
26928
     check=`libgnutls-config --version 2>/dev/null`
26158
26929
     if test -n "$check"; then
26270
27041
 
26271
27042
        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
26272
27043
        export LD_LIBRARY_PATH
 
27044
        { echo "$as_me:$LINENO: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
 
27045
echo "$as_me: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
26273
27046
      fi
26274
27047
 
26275
27048
    fi
26323
27096
 
26324
27097
 
26325
27098
 
 
27099
echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
 
27100
echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6
 
27101
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
 
27102
if test -z "$GLD"; then
 
27103
    versioned_symbols_flavour=
 
27104
    echo "$as_me:$LINENO: result: no" >&5
 
27105
echo "${ECHO_T}no" >&6
 
27106
    { echo "$as_me:$LINENO: WARNING: ***
 
27107
*** You may want to rerun configure using --with-gnu-ld to enable versioned symbols.
 
27108
" >&5
 
27109
echo "$as_me: WARNING: ***
 
27110
*** You may want to rerun configure using --with-gnu-ld to enable versioned symbols.
 
27111
" >&2;}
 
27112
else
 
27113
    echo "$as_me:$LINENO: result: yes" >&5
 
27114
echo "${ECHO_T}yes" >&6
 
27115
 
 
27116
echo "$as_me:$LINENO: checking whether versioned symbols are wanted" >&5
 
27117
echo $ECHO_N "checking whether versioned symbols are wanted... $ECHO_C" >&6
 
27118
versioned_symbols_flavour=
 
27119
 
 
27120
# Check whether --enable-versioned-symbols or --disable-versioned-symbols was given.
 
27121
if test "${enable_versioned_symbols+set}" = set; then
 
27122
  enableval="$enable_versioned_symbols"
 
27123
   case "$enableval" in
 
27124
  yes) echo "$as_me:$LINENO: result: yes" >&5
 
27125
echo "${ECHO_T}yes" >&6
 
27126
           if test "$OPENSSL_ENABLED" = "1"; then
 
27127
                   versioned_symbols_flavour="OPENSSL_"
 
27128
           else
 
27129
                   if test "$OPT_GNUTLS" != "no"; then
 
27130
                           versioned_symbols_flavour="GNUTLS_"
 
27131
                   fi
 
27132
           fi
 
27133
           ;;
 
27134
 
 
27135
  *)   echo "$as_me:$LINENO: result: no" >&5
 
27136
echo "${ECHO_T}no" >&6
 
27137
           ;;
 
27138
  esac
 
27139
 
 
27140
else
 
27141
 
 
27142
echo "$as_me:$LINENO: result: no" >&5
 
27143
echo "${ECHO_T}no" >&6
 
27144
 
 
27145
 
 
27146
fi;
 
27147
fi
 
27148
 
 
27149
VERSIONED_FLAVOUR="$versioned_symbols_flavour"
 
27150
 
 
27151
 
 
27152
 
 
27153
if test "$versioned_symbols_flavour" != ""; then
 
27154
  VERSIONED_SYMBOLS_TRUE=
 
27155
  VERSIONED_SYMBOLS_FALSE='#'
 
27156
else
 
27157
  VERSIONED_SYMBOLS_TRUE='#'
 
27158
  VERSIONED_SYMBOLS_FALSE=
 
27159
fi
26326
27160
 
26327
27161
 
26328
27162
 
26708
27542
       idn=""
26709
27543
              if test -n "$LIBIDN"; then
26710
27544
         if test "x$LIBIDN" != "xyes"; then
26711
 
            { echo "$as_me:$LINENO: WARNING: moo moo $LIBIDN" >&5
26712
 
echo "$as_me: WARNING: moo moo $LIBIDN" >&2;}
26713
27545
            oldLDFLAGS=$LDFLAGS
26714
27546
            oldCPPFLAGS=$CPPFLAGS
26715
27547
            LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
28007
28839
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28008
28840
_ACEOF
28009
28841
 
 
28842
fi
 
28843
done
 
28844
 
 
28845
 
 
28846
  if test "x$ac_cv_func_strerror_r" = "xyes"; then
 
28847
 
28010
28848
    echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28011
28849
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28012
28850
    cat >conftest.$ac_ext <<_ACEOF
28021
28859
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28022
28860
  $EGREP "strerror_r" >/dev/null 2>&1; then
28023
28861
 
28024
 
      strerror_r="yes"
28025
28862
      echo "$as_me:$LINENO: result: yes" >&5
28026
28863
echo "${ECHO_T}yes" >&6
28027
28864
else
28028
28865
 
28029
28866
      echo "$as_me:$LINENO: result: no" >&5
28030
28867
echo "${ECHO_T}no" >&6
28031
 
      echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
28032
 
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
 
28868
      echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
 
28869
echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6
28033
28870
      cat >conftest.$ac_ext <<_ACEOF
28034
28871
/* confdefs.h.  */
28035
28872
_ACEOF
28037
28874
cat >>conftest.$ac_ext <<_ACEOF
28038
28875
/* end confdefs.h.  */
28039
28876
 
28040
 
#define _THREAD_SAFE
 
28877
#define _REENTRANT
28041
28878
#include <string.h>
28042
28879
_ACEOF
28043
28880
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28044
28881
  $EGREP "strerror_r" >/dev/null 2>&1; then
28045
28882
 
28046
 
        strerror_r="yes"
28047
 
        CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
 
28883
        CPPFLAGS="-D_REENTRANT $CPPFLAGS"
28048
28884
        echo "$as_me:$LINENO: result: yes" >&5
28049
28885
echo "${ECHO_T}yes" >&6
28050
28886
else
28051
28887
  echo "$as_me:$LINENO: result: no" >&5
28052
28888
echo "${ECHO_T}no" >&6
28053
 
fi
28054
 
rm -f conftest*
28055
 
 
28056
 
fi
28057
 
rm -f conftest*
28058
 
 
28059
 
fi
28060
 
done
28061
 
 
28062
 
 
28063
 
  if test "x$strerror_r" = "xyes"; then
28064
 
 
28065
 
        echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28066
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28067
 
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
28068
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28069
 
else
28070
 
  cat >conftest.$ac_ext <<_ACEOF
28071
 
/* confdefs.h.  */
28072
 
_ACEOF
28073
 
cat confdefs.h >>conftest.$ac_ext
28074
 
cat >>conftest.$ac_ext <<_ACEOF
28075
 
/* end confdefs.h.  */
28076
 
#include <stdlib.h>
28077
 
#include <stdio.h>
28078
 
#include <string.h>
28079
 
#include <errno.h>
28080
 
 
28081
 
 
28082
 
int
28083
 
main ()
28084
 
{
28085
 
#ifndef strerror_r
28086
 
  char *p = (char *) strerror_r;
28087
 
#endif
28088
 
 
28089
 
  ;
28090
 
  return 0;
28091
 
}
28092
 
_ACEOF
28093
 
rm -f conftest.$ac_objext
28094
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28095
 
  (eval $ac_compile) 2>conftest.er1
28096
 
  ac_status=$?
28097
 
  grep -v '^ *+' conftest.er1 >conftest.err
28098
 
  rm -f conftest.er1
28099
 
  cat conftest.err >&5
28100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101
 
  (exit $ac_status); } &&
28102
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28103
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104
 
  (eval $ac_try) 2>&5
28105
 
  ac_status=$?
28106
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107
 
  (exit $ac_status); }; } &&
28108
 
         { ac_try='test -s conftest.$ac_objext'
28109
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110
 
  (eval $ac_try) 2>&5
28111
 
  ac_status=$?
28112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113
 
  (exit $ac_status); }; }; then
28114
 
  ac_cv_have_decl_strerror_r=yes
28115
 
else
28116
 
  echo "$as_me: failed program was:" >&5
28117
 
sed 's/^/| /' conftest.$ac_ext >&5
28118
 
 
28119
 
ac_cv_have_decl_strerror_r=no
28120
 
fi
28121
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28122
 
fi
28123
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
28124
 
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
28125
 
if test $ac_cv_have_decl_strerror_r = yes; then
28126
 
  :
28127
 
else
28128
28889
 
28129
28890
cat >>confdefs.h <<\_ACEOF
28130
28891
#define HAVE_NO_STRERROR_R_DECL 1
28132
28893
 
28133
28894
 
28134
28895
fi
 
28896
rm -f conftest*
28135
28897
 
 
28898
fi
 
28899
rm -f conftest*
28136
28900
 
28137
28901
        echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
28138
28902
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
28139
28903
    if test "$cross_compiling" = yes; then
28140
 
      { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
 
28904
      cat >conftest.$ac_ext <<_ACEOF
 
28905
/* confdefs.h.  */
 
28906
_ACEOF
 
28907
cat confdefs.h >>conftest.$ac_ext
 
28908
cat >>conftest.$ac_ext <<_ACEOF
 
28909
/* end confdefs.h.  */
 
28910
 
 
28911
#include <features.h>
 
28912
#ifdef __GLIBC__
 
28913
yes
 
28914
#endif
 
28915
 
 
28916
_ACEOF
 
28917
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
28918
  $EGREP "yes" >/dev/null 2>&1; then
 
28919
        GLIBC_STRERROR_R="1"
 
28920
 
 
28921
cat >>confdefs.h <<\_ACEOF
 
28922
#define HAVE_GLIBC_STRERROR_R 1
 
28923
_ACEOF
 
28924
 
 
28925
      echo "$as_me:$LINENO: result: yes" >&5
 
28926
echo "${ECHO_T}yes" >&6
 
28927
else
 
28928
  { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
28141
28929
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
28142
28930
 
 
28931
fi
 
28932
rm -f conftest*
 
28933
 
28143
28934
else
28144
28935
  cat >conftest.$ac_ext <<_ACEOF
28145
28936
/* confdefs.h.  */
28258
29049
  fi
28259
29050
 
28260
29051
 
28261
 
 
28262
 
for ac_func in gmtime_r
28263
 
do
28264
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28265
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
28266
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28267
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
28268
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28269
 
else
28270
 
  cat >conftest.$ac_ext <<_ACEOF
28271
 
/* confdefs.h.  */
28272
 
_ACEOF
28273
 
cat confdefs.h >>conftest.$ac_ext
28274
 
cat >>conftest.$ac_ext <<_ACEOF
28275
 
/* end confdefs.h.  */
28276
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28277
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28278
 
#define $ac_func innocuous_$ac_func
28279
 
 
28280
 
/* System header to define __stub macros and hopefully few prototypes,
28281
 
    which can conflict with char $ac_func (); below.
28282
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28283
 
    <limits.h> exists even on freestanding compilers.  */
28284
 
 
28285
 
#ifdef __STDC__
28286
 
# include <limits.h>
28287
 
#else
28288
 
# include <assert.h>
28289
 
#endif
28290
 
 
28291
 
#undef $ac_func
28292
 
 
28293
 
/* Override any gcc2 internal prototype to avoid an error.  */
28294
 
#ifdef __cplusplus
28295
 
extern "C"
28296
 
{
28297
 
#endif
28298
 
/* We use char because int might match the return type of a gcc2
28299
 
   builtin and then its argument prototype would still apply.  */
28300
 
char $ac_func ();
28301
 
/* The GNU C library defines this for functions which it implements
28302
 
    to always fail with ENOSYS.  Some functions are actually named
28303
 
    something starting with __ and the normal name is an alias.  */
28304
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28305
 
choke me
28306
 
#else
28307
 
char (*f) () = $ac_func;
28308
 
#endif
28309
 
#ifdef __cplusplus
28310
 
}
28311
 
#endif
28312
 
 
28313
 
int
28314
 
main ()
28315
 
{
28316
 
return f != $ac_func;
28317
 
  ;
28318
 
  return 0;
28319
 
}
28320
 
_ACEOF
28321
 
rm -f conftest.$ac_objext conftest$ac_exeext
28322
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28323
 
  (eval $ac_link) 2>conftest.er1
28324
 
  ac_status=$?
28325
 
  grep -v '^ *+' conftest.er1 >conftest.err
28326
 
  rm -f conftest.er1
28327
 
  cat conftest.err >&5
28328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329
 
  (exit $ac_status); } &&
28330
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332
 
  (eval $ac_try) 2>&5
28333
 
  ac_status=$?
28334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335
 
  (exit $ac_status); }; } &&
28336
 
         { ac_try='test -s conftest$ac_exeext'
28337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338
 
  (eval $ac_try) 2>&5
28339
 
  ac_status=$?
28340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341
 
  (exit $ac_status); }; }; then
28342
 
  eval "$as_ac_var=yes"
28343
 
else
28344
 
  echo "$as_me: failed program was:" >&5
28345
 
sed 's/^/| /' conftest.$ac_ext >&5
28346
 
 
28347
 
eval "$as_ac_var=no"
28348
 
fi
28349
 
rm -f conftest.err conftest.$ac_objext \
28350
 
      conftest$ac_exeext conftest.$ac_ext
28351
 
fi
28352
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28353
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28354
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
28355
 
  cat >>confdefs.h <<_ACEOF
28356
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28357
 
_ACEOF
28358
 
 
28359
 
fi
28360
 
done
28361
 
 
 
29052
  checkfor_gmtime_r="yes"
28362
29053
fi
28363
29054
 
28364
29055
 
28650
29341
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28651
29342
_ACEOF
28652
29343
 
 
29344
fi
 
29345
done
 
29346
 
 
29347
 
 
29348
  if test "x$ac_cv_func_strerror_r" = "xyes"; then
 
29349
 
28653
29350
    echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28654
29351
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28655
29352
    cat >conftest.$ac_ext <<_ACEOF
28664
29361
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28665
29362
  $EGREP "strerror_r" >/dev/null 2>&1; then
28666
29363
 
28667
 
      strerror_r="yes"
28668
29364
      echo "$as_me:$LINENO: result: yes" >&5
28669
29365
echo "${ECHO_T}yes" >&6
28670
29366
else
28671
29367
 
28672
29368
      echo "$as_me:$LINENO: result: no" >&5
28673
29369
echo "${ECHO_T}no" >&6
28674
 
      echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
28675
 
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
 
29370
      echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
 
29371
echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6
28676
29372
      cat >conftest.$ac_ext <<_ACEOF
28677
29373
/* confdefs.h.  */
28678
29374
_ACEOF
28680
29376
cat >>conftest.$ac_ext <<_ACEOF
28681
29377
/* end confdefs.h.  */
28682
29378
 
28683
 
#define _THREAD_SAFE
 
29379
#define _REENTRANT
28684
29380
#include <string.h>
28685
29381
_ACEOF
28686
29382
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687
29383
  $EGREP "strerror_r" >/dev/null 2>&1; then
28688
29384
 
28689
 
        strerror_r="yes"
28690
 
        CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
 
29385
        CPPFLAGS="-D_REENTRANT $CPPFLAGS"
28691
29386
        echo "$as_me:$LINENO: result: yes" >&5
28692
29387
echo "${ECHO_T}yes" >&6
28693
29388
else
28694
29389
  echo "$as_me:$LINENO: result: no" >&5
28695
29390
echo "${ECHO_T}no" >&6
28696
 
fi
28697
 
rm -f conftest*
28698
 
 
28699
 
fi
28700
 
rm -f conftest*
28701
 
 
28702
 
fi
28703
 
done
28704
 
 
28705
 
 
28706
 
  if test "x$strerror_r" = "xyes"; then
28707
 
 
28708
 
        echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28709
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28710
 
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
28711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28712
 
else
28713
 
  cat >conftest.$ac_ext <<_ACEOF
28714
 
/* confdefs.h.  */
28715
 
_ACEOF
28716
 
cat confdefs.h >>conftest.$ac_ext
28717
 
cat >>conftest.$ac_ext <<_ACEOF
28718
 
/* end confdefs.h.  */
28719
 
#include <stdlib.h>
28720
 
#include <stdio.h>
28721
 
#include <string.h>
28722
 
#include <errno.h>
28723
 
 
28724
 
 
28725
 
int
28726
 
main ()
28727
 
{
28728
 
#ifndef strerror_r
28729
 
  char *p = (char *) strerror_r;
28730
 
#endif
28731
 
 
28732
 
  ;
28733
 
  return 0;
28734
 
}
28735
 
_ACEOF
28736
 
rm -f conftest.$ac_objext
28737
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28738
 
  (eval $ac_compile) 2>conftest.er1
28739
 
  ac_status=$?
28740
 
  grep -v '^ *+' conftest.er1 >conftest.err
28741
 
  rm -f conftest.er1
28742
 
  cat conftest.err >&5
28743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744
 
  (exit $ac_status); } &&
28745
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747
 
  (eval $ac_try) 2>&5
28748
 
  ac_status=$?
28749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750
 
  (exit $ac_status); }; } &&
28751
 
         { ac_try='test -s conftest.$ac_objext'
28752
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753
 
  (eval $ac_try) 2>&5
28754
 
  ac_status=$?
28755
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756
 
  (exit $ac_status); }; }; then
28757
 
  ac_cv_have_decl_strerror_r=yes
28758
 
else
28759
 
  echo "$as_me: failed program was:" >&5
28760
 
sed 's/^/| /' conftest.$ac_ext >&5
28761
 
 
28762
 
ac_cv_have_decl_strerror_r=no
28763
 
fi
28764
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28765
 
fi
28766
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
28767
 
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
28768
 
if test $ac_cv_have_decl_strerror_r = yes; then
28769
 
  :
28770
 
else
28771
29391
 
28772
29392
cat >>confdefs.h <<\_ACEOF
28773
29393
#define HAVE_NO_STRERROR_R_DECL 1
28775
29395
 
28776
29396
 
28777
29397
fi
 
29398
rm -f conftest*
28778
29399
 
 
29400
fi
 
29401
rm -f conftest*
28779
29402
 
28780
29403
        echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
28781
29404
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
28782
29405
    if test "$cross_compiling" = yes; then
28783
 
      { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
 
29406
      cat >conftest.$ac_ext <<_ACEOF
 
29407
/* confdefs.h.  */
 
29408
_ACEOF
 
29409
cat confdefs.h >>conftest.$ac_ext
 
29410
cat >>conftest.$ac_ext <<_ACEOF
 
29411
/* end confdefs.h.  */
 
29412
 
 
29413
#include <features.h>
 
29414
#ifdef __GLIBC__
 
29415
yes
 
29416
#endif
 
29417
 
 
29418
_ACEOF
 
29419
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
29420
  $EGREP "yes" >/dev/null 2>&1; then
 
29421
        GLIBC_STRERROR_R="1"
 
29422
 
 
29423
cat >>confdefs.h <<\_ACEOF
 
29424
#define HAVE_GLIBC_STRERROR_R 1
 
29425
_ACEOF
 
29426
 
 
29427
      echo "$as_me:$LINENO: result: yes" >&5
 
29428
echo "${ECHO_T}yes" >&6
 
29429
else
 
29430
  { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
28784
29431
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
28785
29432
 
 
29433
fi
 
29434
rm -f conftest*
 
29435
 
28786
29436
else
28787
29437
  cat >conftest.$ac_ext <<_ACEOF
28788
29438
/* confdefs.h.  */
28901
29551
  fi
28902
29552
 
28903
29553
 
 
29554
  checkfor_gmtime_r="yes"
 
29555
fi
 
29556
 
 
29557
if test x$cross_compiling != xyes; then
 
29558
 
 
29559
  if test x$checkfor_gmtime_r = xyes; then
 
29560
 
 
29561
 
 
29562
    echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
 
29563
echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6
 
29564
    if test "$cross_compiling" = yes; then
 
29565
      ]
 
29566
else
 
29567
  cat >conftest.$ac_ext <<_ACEOF
 
29568
 
 
29569
    #include <time.h>
 
29570
    int main(void)
 
29571
    {
 
29572
    time_t local = 1170352587;
 
29573
    struct tm *gmt;
 
29574
    struct tm keeper;
 
29575
    putenv("TZ=CST6CDT");
 
29576
    tzset();
 
29577
    gmt = gmtime_r(&local, &keeper);
 
29578
    if(gmt) {
 
29579
      return 0;
 
29580
    }
 
29581
    return 1; /* failure */
 
29582
    }
 
29583
 
 
29584
_ACEOF
 
29585
rm -f conftest$ac_exeext
 
29586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29587
  (eval $ac_link) 2>&5
 
29588
  ac_status=$?
 
29589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29590
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29592
  (eval $ac_try) 2>&5
 
29593
  ac_status=$?
 
29594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29595
  (exit $ac_status); }; }; then
 
29596
       echo "$as_me:$LINENO: result: yes" >&5
 
29597
echo "${ECHO_T}yes" >&6
 
29598
 
 
29599
cat >>confdefs.h <<\_ACEOF
 
29600
#define HAVE_GMTIME_R 1
 
29601
_ACEOF
 
29602
 
 
29603
 
 
29604
else
 
29605
  echo "$as_me: program exited with status $ac_status" >&5
 
29606
echo "$as_me: failed program was:" >&5
 
29607
sed 's/^/| /' conftest.$ac_ext >&5
 
29608
 
 
29609
( exit $ac_status )
 
29610
     echo "$as_me:$LINENO: result: no" >&5
 
29611
echo "${ECHO_T}no" >&6
 
29612
 
 
29613
fi
 
29614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29615
fi
 
29616
  fi
 
29617
else
28904
29618
 
28905
29619
for ac_func in gmtime_r
28906
29620
do
29209
29923
 
29210
29924
 
29211
29925
 
 
29926
 
 
29927
 
29212
29928
for ac_header in sys/types.h \
29213
29929
        sys/time.h \
29214
29930
        sys/select.h \
29245
29961
        libgen.h \
29246
29962
        locale.h \
29247
29963
        errno.h \
 
29964
        arpa/tftp.h \
 
29965
        sys/filio.h \
29248
29966
        setjmp.h
29249
29967
do
29250
29968
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31717
32435
#ifdef HAVE_ARPA_INET_H
31718
32436
#include <arpa/inet.h>
31719
32437
#endif
 
32438
#ifdef HAVE_WINSOCK2_H
 
32439
#include <winsock2.h>
 
32440
#endif
31720
32441
 
31721
32442
 
31722
32443
int
32082
32803
_ACEOF
32083
32804
 
32084
32805
 
 
32806
case $host in
 
32807
  *msdosdjgpp)
 
32808
     ac_cv_func_pipe=no
 
32809
     skipcheck_pipe=yes
 
32810
     { echo "$as_me:$LINENO: skip check for pipe on msdosdjgpp" >&5
 
32811
echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
 
32812
    ;;
 
32813
esac
32085
32814
 
32086
32815
 
32087
32816
 
32247
32976
_ACEOF
32248
32977
 
32249
32978
else
32250
 
    func="$ac_func"
 
32979
  func="$ac_func"
 
32980
eval skipcheck=\$skipcheck_$func
 
32981
if test "x$skipcheck" != "xyes"; then
32251
32982
  echo "$as_me:$LINENO: checking deeper for $func" >&5
32252
32983
echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
32253
32984
  cat >conftest.$ac_ext <<_ACEOF
32305
33036
fi
32306
33037
rm -f conftest.err conftest.$ac_objext \
32307
33038
      conftest$ac_exeext conftest.$ac_ext
32308
 
 
 
33039
fi
32309
33040
 
32310
33041
fi
32311
33042
done
32446
33177
#ifdef HAVE_LIBGEN_H
32447
33178
#include <libgen.h>
32448
33179
#endif
 
33180
#ifdef HAVE_UNISTD_H
 
33181
#include <unistd.h>
 
33182
#endif
32449
33183
 
32450
33184
 
32451
33185
int
32502
33236
fi
32503
33237
 
32504
33238
 
 
33239
echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
 
33240
echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6
 
33241
if test "${ac_cv_have_decl_inet_pton+set}" = set; then
 
33242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33243
else
 
33244
  cat >conftest.$ac_ext <<_ACEOF
 
33245
/* confdefs.h.  */
 
33246
_ACEOF
 
33247
cat confdefs.h >>conftest.$ac_ext
 
33248
cat >>conftest.$ac_ext <<_ACEOF
 
33249
/* end confdefs.h.  */
 
33250
 
 
33251
#ifdef HAVE_ARPA_INET_H
 
33252
#include <arpa/inet.h>
 
33253
#endif
 
33254
 
 
33255
 
 
33256
 
 
33257
int
 
33258
main ()
 
33259
{
 
33260
#ifndef inet_pton
 
33261
  char *p = (char *) inet_pton;
 
33262
#endif
 
33263
 
 
33264
  ;
 
33265
  return 0;
 
33266
}
 
33267
_ACEOF
 
33268
rm -f conftest.$ac_objext
 
33269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33270
  (eval $ac_compile) 2>conftest.er1
 
33271
  ac_status=$?
 
33272
  grep -v '^ *+' conftest.er1 >conftest.err
 
33273
  rm -f conftest.er1
 
33274
  cat conftest.err >&5
 
33275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33276
  (exit $ac_status); } &&
 
33277
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
33278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33279
  (eval $ac_try) 2>&5
 
33280
  ac_status=$?
 
33281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33282
  (exit $ac_status); }; } &&
 
33283
         { ac_try='test -s conftest.$ac_objext'
 
33284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33285
  (eval $ac_try) 2>&5
 
33286
  ac_status=$?
 
33287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33288
  (exit $ac_status); }; }; then
 
33289
  ac_cv_have_decl_inet_pton=yes
 
33290
else
 
33291
  echo "$as_me: failed program was:" >&5
 
33292
sed 's/^/| /' conftest.$ac_ext >&5
 
33293
 
 
33294
ac_cv_have_decl_inet_pton=no
 
33295
fi
 
33296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33297
fi
 
33298
echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
 
33299
echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6
 
33300
if test $ac_cv_have_decl_inet_pton = yes; then
 
33301
  :
 
33302
else
 
33303
 
 
33304
cat >>confdefs.h <<\_ACEOF
 
33305
#define HAVE_NO_INET_PTON_PROTO 1
 
33306
_ACEOF
 
33307
 
 
33308
fi
 
33309
 
 
33310
 
32505
33311
echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
32506
33312
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6
32507
33313
disable_poll=no
32730
33536
echo "${ECHO_T}yes" >&6
32731
33537
 
32732
33538
       if test "x$IPV6_ENABLED" = "x1"; then
32733
 
         { { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
32734
 
echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
32735
 
   { (exit 1); exit 1; }; }
 
33539
         { echo "$as_me:$LINENO: ares may not work properly with ipv6" >&5
 
33540
echo "$as_me: ares may not work properly with ipv6" >&6;}
32736
33541
       fi
32737
33542
 
32738
33543
 
32744
33549
 
32745
33550
       curl_ares_msg="enabled"
32746
33551
 
32747
 
       LIBS="$LIBS -lcares"
 
33552
       LIBS="-lcares $LIBS"
32748
33553
 
32749
33554
                                   if test "x$enableval" = "xyes" ; then
32750
33555
         if test -d "$srcdir/ares"; then
32870
33675
_ACEOF
32871
33676
 
32872
33677
 
32873
 
       LIBS="$LIBS -lsecur32"
32874
33678
       curl_sspi_msg="yes"
32875
33679
       ;;
32876
33680
  *)
32963
33767
                      WARN="$WARN -Wno-format-nonliteral"
32964
33768
         fi
32965
33769
 
32966
 
                           if test "$gccnum" -ge "303"; then
 
33770
 
 
33771
         if test "$gccnum" -ge "303"; then
32967
33772
                      WARN="$WARN -Wendif-labels -Wstrict-prototypes"
32968
33773
         fi
32969
33774
 
32970
33775
         if test "$gccnum" -ge "304"; then
32971
 
           # try -Wunreachable-code on gcc 3.4
32972
 
           WARN="$WARN -Wunreachable-code"
 
33776
           # try these on gcc 3.4
 
33777
           WARN="$WARN -Wdeclaration-after-statement"
32973
33778
         fi
32974
33779
 
32975
33780
         for flag in $CPPFLAGS; do
33084
33889
fi
33085
33890
 
33086
33891
 
33087
 
                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config libcurl.pc"
 
33892
                                                                                                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile lib/libcurl.vers tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config libcurl.pc"
33088
33893
 
33089
33894
cat >confcache <<\_ACEOF
33090
33895
# This file is a shell script that caches the results of configure
33233
34038
Usually this means the macro was only invoked conditionally." >&2;}
33234
34039
   { (exit 1); exit 1; }; }
33235
34040
fi
 
34041
if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
 
34042
  { { echo "$as_me:$LINENO: error: conditional \"VERSIONED_SYMBOLS\" was never defined.
 
34043
Usually this means the macro was only invoked conditionally." >&5
 
34044
echo "$as_me: error: conditional \"VERSIONED_SYMBOLS\" was never defined.
 
34045
Usually this means the macro was only invoked conditionally." >&2;}
 
34046
   { (exit 1); exit 1; }; }
 
34047
fi
33236
34048
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
33237
34049
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
33238
34050
Usually this means the macro was only invoked conditionally." >&5
33706
34518
  "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
33707
34519
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33708
34520
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
34521
  "lib/libcurl.vers" ) CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
33709
34522
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33710
34523
  "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
33711
34524
  "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
33899
34712
s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
33900
34713
s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
33901
34714
s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
 
34715
s,@CURL_DISABLE_TFTP@,$CURL_DISABLE_TFTP,;t t
33902
34716
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
33903
34717
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
33904
34718
s,@PKGCONFIG@,$PKGCONFIG,;t t
33908
34722
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
33909
34723
s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
33910
34724
s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
 
34725
s,@VERSIONED_FLAVOUR@,$VERSIONED_FLAVOUR,;t t
 
34726
s,@VERSIONED_SYMBOLS_TRUE@,$VERSIONED_SYMBOLS_TRUE,;t t
 
34727
s,@VERSIONED_SYMBOLS_FALSE@,$VERSIONED_SYMBOLS_FALSE,;t t
33911
34728
s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
33912
34729
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
33913
34730
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t