~ubuntu-branches/ubuntu/edgy/djvulibre/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-07-03 11:38:23 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060703113823-un2te7742kk04c63
Tags: 3.5.17-1ubuntu1
* Sync with Debian
* debian/rules:
  - use dh_iconcache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# From configure.ac Id: configure.ac.
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.59 for djvulibre 3.5.16.
 
4
# Generated by GNU Autoconf 2.59 for djvulibre 3.5.17.
5
5
#
6
6
# Copyright (C) 2003 Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
279
279
 
280
280
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
281
# if CDPATH is set.
282
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
283
 
284
284
if test -z "$ECHO"; then
285
285
if test "X${echo_test_string+set}" != Xset; then
286
286
# find a string as large as possible, as long as the shell can cope with it
287
287
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288
288
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290
 
       echo_test_string="`eval $cmd`" &&
 
289
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
290
       echo_test_string=`eval $cmd` &&
291
291
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292
292
    then
293
293
      break
422
422
# Identity of this package.
423
423
PACKAGE_NAME='djvulibre'
424
424
PACKAGE_TARNAME='djvulibre'
425
 
PACKAGE_VERSION='3.5.16'
426
 
PACKAGE_STRING='djvulibre 3.5.16'
 
425
PACKAGE_VERSION='3.5.17'
 
426
PACKAGE_STRING='djvulibre 3.5.17'
427
427
PACKAGE_BUGREPORT=''
428
428
 
429
429
ac_unique_file="INSTALL"
998
998
  # Omit some internal or obsolete options to make the list less imposing.
999
999
  # This message is too long to be a string in the A/UX 3.1 sh.
1000
1000
  cat <<_ACEOF
1001
 
\`configure' configures djvulibre 3.5.16 to adapt to many kinds of systems.
 
1001
\`configure' configures djvulibre 3.5.17 to adapt to many kinds of systems.
1002
1002
 
1003
1003
Usage: $0 [OPTION]... [VAR=VALUE]...
1004
1004
 
1063
1063
 
1064
1064
if test -n "$ac_init_help"; then
1065
1065
  case $ac_init_help in
1066
 
     short | recursive ) echo "Configuration of djvulibre 3.5.16:";;
 
1066
     short | recursive ) echo "Configuration of djvulibre 3.5.17:";;
1067
1067
   esac
1068
1068
  cat <<\_ACEOF
1069
1069
 
1228
1228
test -n "$ac_init_help" && exit 0
1229
1229
if $ac_init_version; then
1230
1230
  cat <<\_ACEOF
1231
 
djvulibre configure 3.5.16
 
1231
djvulibre configure 3.5.17
1232
1232
generated by GNU Autoconf 2.59
1233
1233
 
1234
1234
Copyright (C) 2003 Free Software Foundation, Inc.
1242
1242
This file contains any messages produced by compilers while
1243
1243
running configure, to aid debugging if configure makes a mistake.
1244
1244
 
1245
 
It was created by djvulibre $as_me 3.5.16, which was
 
1245
It was created by djvulibre $as_me 3.5.17, which was
1246
1246
generated by GNU Autoconf 2.59.  Invocation command line was
1247
1247
 
1248
1248
  $ $0 $@
3026
3026
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3027
3027
# along with /bin/sed that truncates output.
3028
3028
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3029
 
  test ! -f $lt_ac_sed && break
 
3029
  test ! -f $lt_ac_sed && continue
3030
3030
  cat /dev/null > conftest.in
3031
3031
  lt_ac_count=0
3032
3032
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3051
3051
    fi
3052
3052
  done
3053
3053
done
 
3054
 
 
3055
fi
 
3056
 
3054
3057
SED=$lt_cv_path_SED
3055
 
 
3056
 
fi
3057
 
 
3058
3058
echo "$as_me:$LINENO: result: $SED" >&5
3059
3059
echo "${ECHO_T}$SED" >&6
3060
3060
 
3131
3131
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3132
3132
      lt_cv_path_LD="$ac_dir/$ac_prog"
3133
3133
      # Check to see if the program is GNU ld.  I'd rather use --version,
3134
 
      # but apparently some GNU ld's only accept -v.
 
3134
      # but apparently some variants of GNU ld only accept -v.
3135
3135
      # Break only if it was the GNU/non-GNU ld that we prefer.
3136
3136
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3137
3137
      *GNU* | *'with BFD'*)
3165
3165
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3166
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
3167
3167
else
3168
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3168
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3169
3169
case `$LD -v 2>&1 </dev/null` in
3170
3170
*GNU* | *'with BFD'*)
3171
3171
  lt_cv_prog_gnu_ld=yes
3195
3195
*) reload_flag=" $reload_flag" ;;
3196
3196
esac
3197
3197
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3198
case $host_os in
 
3199
  darwin*)
 
3200
    if test "$GCC" = yes; then
 
3201
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3202
    else
 
3203
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3204
    fi
 
3205
    ;;
 
3206
esac
3198
3207
 
3199
3208
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3200
3209
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3270
3279
  lt_cv_deplibs_check_method=pass_all
3271
3280
  ;;
3272
3281
 
3273
 
bsdi4*)
 
3282
bsdi[45]*)
3274
3283
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3275
3284
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3276
3285
  lt_cv_file_magic_test_file=/shlib/libc.so
3293
3302
  lt_cv_deplibs_check_method=pass_all
3294
3303
  ;;
3295
3304
 
3296
 
freebsd* | kfreebsd*-gnu)
 
3305
freebsd* | kfreebsd*-gnu | dragonfly*)
3297
3306
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3298
3307
    case $host_cpu in
3299
3308
    i*86 )
3300
3309
      # Not sure whether the presence of OpenBSD here was a mistake.
3301
3310
      # Let's accept both of them until this is cleared up.
3302
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3311
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3303
3312
      lt_cv_file_magic_cmd=/usr/bin/file
3304
3313
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3305
3314
      ;;
3315
3324
 
3316
3325
hpux10.20* | hpux11*)
3317
3326
  lt_cv_file_magic_cmd=/usr/bin/file
3318
 
  case "$host_cpu" in
 
3327
  case $host_cpu in
3319
3328
  ia64*)
3320
3329
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3321
3330
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3365
3374
  ;;
3366
3375
 
3367
3376
openbsd*)
3368
 
  lt_cv_file_magic_cmd=/usr/bin/file
3369
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3370
3377
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3371
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3378
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3372
3379
  else
3373
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3380
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3374
3381
  fi
3375
3382
  ;;
3376
3383
 
3463
3470
  ;;
3464
3471
*-*-irix6*)
3465
3472
  # Find out which ABI we are using.
3466
 
  echo '#line 3466 "configure"' > conftest.$ac_ext
 
3473
  echo '#line 3473 "configure"' > conftest.$ac_ext
3467
3474
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468
3475
  (eval $ac_compile) 2>&5
3469
3476
  ac_status=$?
3506
3513
  ac_status=$?
3507
3514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508
3515
  (exit $ac_status); }; then
3509
 
    case "`/usr/bin/file conftest.o`" in
 
3516
    case `/usr/bin/file conftest.o` in
3510
3517
    *32-bit*)
3511
3518
      case $host in
3512
3519
        x86_64-*linux*)
4595
4602
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596
4603
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597
4604
 
4598
 
ac_ext=cc
 
4605
 
 
4606
 
 
4607
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4608
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4609
    (test "X$CXX" != "Xg++"))) ; then
 
4610
  ac_ext=cc
4599
4611
ac_cpp='$CXXCPP $CPPFLAGS'
4600
4612
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601
4613
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825
4837
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826
4838
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4827
4839
 
 
4840
fi
 
4841
 
4828
4842
 
4829
4843
ac_ext=f
4830
4844
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4918
4932
 
4919
4933
 
4920
4934
# Provide some information about the compiler.
4921
 
echo "$as_me:4921:" \
 
4935
echo "$as_me:4935:" \
4922
4936
     "checking for Fortran 77 compiler version" >&5
4923
4937
ac_compiler=`set X $ac_compile; echo $2`
4924
4938
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5106
5120
    lt_cv_sys_max_cmd_len=8192;
5107
5121
    ;;
5108
5122
 
5109
 
 *)
 
5123
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5124
    # This has been around since 386BSD, at least.  Likely further.
 
5125
    if test -x /sbin/sysctl; then
 
5126
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5127
    elif test -x /usr/sbin/sysctl; then
 
5128
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5129
    else
 
5130
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5131
    fi
 
5132
    # And add a safety zone
 
5133
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5134
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5135
    ;;
 
5136
  osf*)
 
5137
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5138
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5139
    # nice to cause kernel panics so lets avoid the loop below.
 
5140
    # First set a reasonable default.
 
5141
    lt_cv_sys_max_cmd_len=16384
 
5142
    #
 
5143
    if test -x /sbin/sysconfig; then
 
5144
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5145
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5146
      esac
 
5147
    fi
 
5148
    ;;
 
5149
  *)
5110
5150
    # If test is not a shell built-in, we'll probably end up computing a
5111
5151
    # maximum length that is only half of the actual maximum length, but
5112
5152
    # we can't tell.
5113
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5153
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5154
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5114
5155
               = "XX$teststring") >/dev/null 2>&1 &&
5115
5156
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5116
5157
            lt_cv_sys_max_cmd_len=$new_result &&
5156
5197
# Regexp to match symbols that can be accessed directly from C.
5157
5198
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5158
5199
 
5159
 
# Transform the above into a raw symbol and a C symbol.
5160
 
symxfrm='\1 \2\3 \3'
5161
 
 
5162
5200
# Transform an extracted symbol line into a proper C declaration
5163
5201
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5164
5202
 
5180
5218
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5181
5219
  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'"
5182
5220
  ;;
 
5221
linux*)
 
5222
  if test "$host_cpu" = ia64; then
 
5223
    symcode='[ABCDGIRSTW]'
 
5224
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5225
    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'"
 
5226
  fi
 
5227
  ;;
5183
5228
irix* | nonstopux*)
5184
5229
  symcode='[BCDEGRST]'
5185
5230
  ;;
5211
5256
# Try without a prefix undercore, then with it.
5212
5257
for ac_symprfx in "" "_"; do
5213
5258
 
 
5259
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5260
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5261
 
5214
5262
  # Write the raw and C identifiers.
5215
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5263
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5216
5264
 
5217
5265
  # Check to see that the pipe works correctly.
5218
5266
  pipe_works=no
5374
5422
 
5375
5423
# Sed substitution that helps us do robust quoting.  It backslashifies
5376
5424
# metacharacters that are still active within double-quoted strings.
5377
 
Xsed='sed -e s/^X//'
 
5425
Xsed='sed -e 1s/^X//'
5378
5426
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5379
5427
 
5380
5428
# Same as above, but do not quote variable references.
5394
5442
default_ofile=libtool
5395
5443
can_build_shared=yes
5396
5444
 
5397
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5445
# All known linkers require a `.a' archive for static linking (except MSVC,
5398
5446
# which needs '.lib').
5399
5447
libext=a
5400
5448
ltmain="$ac_aux_dir/ltmain.sh"
5679
5727
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5680
5728
fi
5681
5729
 
 
5730
for cc_temp in $compiler""; do
 
5731
  case $cc_temp in
 
5732
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
5733
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
5734
    \-*) ;;
 
5735
    *) break;;
 
5736
  esac
 
5737
done
 
5738
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
5739
 
 
5740
 
5682
5741
# Only perform the check for file, if the check method requires it
5683
5742
case $deplibs_check_method in
5684
5743
file_magic*)
5704
5763
      if test -n "$file_magic_test_file"; then
5705
5764
        case $deplibs_check_method in
5706
5765
        "file_magic "*)
5707
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5766
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5708
5767
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5709
5768
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5710
5769
            $EGREP "$file_magic_regex" > /dev/null; then
5766
5825
      if test -n "$file_magic_test_file"; then
5767
5826
        case $deplibs_check_method in
5768
5827
        "file_magic "*)
5769
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5828
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5770
5829
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5771
5830
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5772
5831
            $EGREP "$file_magic_regex" > /dev/null; then
5865
5924
compiler=$CC
5866
5925
 
5867
5926
 
 
5927
# save warnings/boilerplate of simple test code
 
5928
ac_outfile=conftest.$ac_objext
 
5929
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
5930
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5931
_lt_compiler_boilerplate=`cat conftest.err`
 
5932
$rm conftest*
 
5933
 
 
5934
ac_outfile=conftest.$ac_objext
 
5935
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
5936
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5937
_lt_linker_boilerplate=`cat conftest.err`
 
5938
$rm conftest*
 
5939
 
 
5940
 
5868
5941
#
5869
5942
# Check for any special shared library compilation flags.
5870
5943
#
5901
5974
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5902
5975
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
5903
5976
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5904
 
     # The compiler can only warn and ignore the option if not recognized
 
5977
     # The linker can only warn and ignore the option if not recognized
5905
5978
     # So say no if there are warnings
5906
5979
     if test -s conftest.err; then
5907
5980
       # Append any errors to the config.log.
5908
5981
       cat conftest.err 1>&5
 
5982
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
5983
       $SED '/^$/d' conftest.err >conftest.er2
 
5984
       if diff conftest.exp conftest.er2 >/dev/null; then
 
5985
         lt_prog_compiler_static_works=yes
 
5986
       fi
5909
5987
     else
5910
5988
       lt_prog_compiler_static_works=yes
5911
5989
     fi
5951
6029
   # with a dollar sign (not a hyphen), so the echo should work correctly.
5952
6030
   # The option is referenced via a variable to avoid confusing sed.
5953
6031
   lt_compile=`echo "$ac_compile" | $SED \
5954
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6032
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5955
6033
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5956
6034
   -e 's:$: $lt_compiler_flag:'`
5957
 
   (eval echo "\"\$as_me:5957: $lt_compile\"" >&5)
 
6035
   (eval echo "\"\$as_me:6035: $lt_compile\"" >&5)
5958
6036
   (eval "$lt_compile" 2>conftest.err)
5959
6037
   ac_status=$?
5960
6038
   cat conftest.err >&5
5961
 
   echo "$as_me:5961: \$? = $ac_status" >&5
 
6039
   echo "$as_me:6039: \$? = $ac_status" >&5
5962
6040
   if (exit $ac_status) && test -s "$ac_outfile"; then
5963
6041
     # The compiler can only warn and ignore the option if not recognized
5964
 
     # So say no if there are warnings
5965
 
     if test ! -s conftest.err; then
 
6042
     # So say no if there are warnings other than the usual output.
 
6043
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6044
     $SED '/^$/d' conftest.err >conftest.er2
 
6045
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5966
6046
       lt_cv_prog_compiler_rtti_exceptions=yes
5967
6047
     fi
5968
6048
   fi
6039
6119
    hpux*)
6040
6120
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6041
6121
      # not for PA HP-UX.
6042
 
      case "$host_cpu" in
 
6122
      case $host_cpu in
6043
6123
      hppa*64*|ia64*)
6044
6124
        # +Z the default
6045
6125
        ;;
6065
6145
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6066
6146
      fi
6067
6147
      ;;
 
6148
      darwin*)
 
6149
        # PIC is the default on this platform
 
6150
        # Common symbols not allowed in MH_DYLIB files
 
6151
       case $cc_basename in
 
6152
         xlc*)
 
6153
         lt_prog_compiler_pic='-qnocommon'
 
6154
         lt_prog_compiler_wl='-Wl,'
 
6155
         ;;
 
6156
       esac
 
6157
       ;;
6068
6158
 
6069
6159
    mingw* | pw32* | os2*)
6070
6160
      # This hack is so that the source file can tell whether it is being
6076
6166
      lt_prog_compiler_wl='-Wl,'
6077
6167
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6078
6168
      # not for PA HP-UX.
6079
 
      case "$host_cpu" in
 
6169
      case $host_cpu in
6080
6170
      hppa*64*|ia64*)
6081
6171
        # +Z the default
6082
6172
        ;;
6100
6190
      ;;
6101
6191
 
6102
6192
    linux*)
6103
 
      case $CC in
 
6193
      case $cc_basename in
6104
6194
      icc* | ecc*)
6105
6195
        lt_prog_compiler_wl='-Wl,'
6106
6196
        lt_prog_compiler_pic='-KPIC'
6107
6197
        lt_prog_compiler_static='-static'
6108
6198
        ;;
 
6199
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6200
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6201
        # which looks to be a dead project)
 
6202
        lt_prog_compiler_wl='-Wl,'
 
6203
        lt_prog_compiler_pic='-fpic'
 
6204
        lt_prog_compiler_static='-Bstatic'
 
6205
        ;;
6109
6206
      ccc*)
6110
6207
        lt_prog_compiler_wl='-Wl,'
6111
6208
        # All Alpha code is PIC.
6126
6223
      ;;
6127
6224
 
6128
6225
    solaris*)
6129
 
      lt_prog_compiler_wl='-Wl,'
6130
6226
      lt_prog_compiler_pic='-KPIC'
6131
6227
      lt_prog_compiler_static='-Bstatic'
 
6228
      case $cc_basename in
 
6229
      f77* | f90* | f95*)
 
6230
        lt_prog_compiler_wl='-Qoption ld ';;
 
6231
      *)
 
6232
        lt_prog_compiler_wl='-Wl,';;
 
6233
      esac
6132
6234
      ;;
6133
6235
 
6134
6236
    sunos4*)
6150
6252
      fi
6151
6253
      ;;
6152
6254
 
 
6255
    unicos*)
 
6256
      lt_prog_compiler_wl='-Wl,'
 
6257
      lt_prog_compiler_can_build_shared=no
 
6258
      ;;
 
6259
 
6153
6260
    uts4*)
6154
6261
      lt_prog_compiler_pic='-pic'
6155
6262
      lt_prog_compiler_static='-Bstatic'
6184
6291
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6185
6292
   # The option is referenced via a variable to avoid confusing sed.
6186
6293
   lt_compile=`echo "$ac_compile" | $SED \
6187
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6294
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6188
6295
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6189
6296
   -e 's:$: $lt_compiler_flag:'`
6190
 
   (eval echo "\"\$as_me:6190: $lt_compile\"" >&5)
 
6297
   (eval echo "\"\$as_me:6297: $lt_compile\"" >&5)
6191
6298
   (eval "$lt_compile" 2>conftest.err)
6192
6299
   ac_status=$?
6193
6300
   cat conftest.err >&5
6194
 
   echo "$as_me:6194: \$? = $ac_status" >&5
 
6301
   echo "$as_me:6301: \$? = $ac_status" >&5
6195
6302
   if (exit $ac_status) && test -s "$ac_outfile"; then
6196
6303
     # The compiler can only warn and ignore the option if not recognized
6197
 
     # So say no if there are warnings
6198
 
     if test ! -s conftest.err; then
 
6304
     # So say no if there are warnings other than the usual output.
 
6305
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6306
     $SED '/^$/d' conftest.err >conftest.er2
 
6307
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6199
6308
       lt_prog_compiler_pic_works=yes
6200
6309
     fi
6201
6310
   fi
6216
6325
fi
6217
6326
 
6218
6327
fi
6219
 
case "$host_os" in
 
6328
case $host_os in
6220
6329
  # For platforms which do not support PIC, -DPIC is meaningless:
6221
6330
  *djgpp*)
6222
6331
    lt_prog_compiler_pic=
6244
6353
   # Note that $ac_compile itself does not contain backslashes and begins
6245
6354
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6246
6355
   lt_compile=`echo "$ac_compile" | $SED \
6247
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6356
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6248
6357
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249
6358
   -e 's:$: $lt_compiler_flag:'`
6250
 
   (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
 
6359
   (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6251
6360
   (eval "$lt_compile" 2>out/conftest.err)
6252
6361
   ac_status=$?
6253
6362
   cat out/conftest.err >&5
6254
 
   echo "$as_me:6254: \$? = $ac_status" >&5
 
6363
   echo "$as_me:6363: \$? = $ac_status" >&5
6255
6364
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6256
6365
   then
6257
6366
     # The compiler can only warn and ignore the option if not recognized
6258
6367
     # So say no if there are warnings
6259
 
     if test ! -s out/conftest.err; then
 
6368
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6369
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6370
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6260
6371
       lt_cv_prog_compiler_c_o=yes
6261
6372
     fi
6262
6373
   fi
6263
 
   chmod u+w .
 
6374
   chmod u+w . 2>&5
6264
6375
   $rm conftest*
6265
6376
   # SGI C++ compiler will create directory out/ii_files/ for
6266
6377
   # template instantiation
6336
6447
  # rely on this symbol name, it's probably fine to never include it in
6337
6448
  # preloaded symbol tables.
6338
6449
  extract_expsyms_cmds=
 
6450
  # Just being paranoid about ensuring that cc_basename is set.
 
6451
  for cc_temp in $compiler""; do
 
6452
  case $cc_temp in
 
6453
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6454
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6455
    \-*) ;;
 
6456
    *) break;;
 
6457
  esac
 
6458
done
 
6459
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6339
6460
 
6340
6461
  case $host_os in
6341
6462
  cygwin* | mingw* | pw32*)
6356
6477
    # If archive_cmds runs LD, not CC, wlarc should be empty
6357
6478
    wlarc='${wl}'
6358
6479
 
 
6480
    # Set some defaults for GNU ld with shared library support. These
 
6481
    # are reset later if shared libraries are not supported. Putting them
 
6482
    # here allows them to be overridden if necessary.
 
6483
    runpath_var=LD_RUN_PATH
 
6484
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6485
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6486
    # ancient GNU ld didn't support --whole-archive et. al.
 
6487
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6488
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6489
      else
 
6490
        whole_archive_flag_spec=
 
6491
    fi
 
6492
    supports_anon_versioning=no
 
6493
    case `$LD -v 2>/dev/null` in
 
6494
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6495
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6496
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6497
      *\ 2.11.*) ;; # other 2.11 versions
 
6498
      *) supports_anon_versioning=yes ;;
 
6499
    esac
 
6500
 
6359
6501
    # See if GNU ld supports shared libraries.
6360
6502
    case $host_os in
6361
6503
    aix3* | aix4* | aix5*)
6406
6548
      allow_undefined_flag=unsupported
6407
6549
      always_export_symbols=no
6408
6550
      enable_shared_with_static_runtimes=yes
6409
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6551
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6410
6552
 
6411
6553
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6412
6554
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6424
6566
      fi
6425
6567
      ;;
6426
6568
 
 
6569
    linux*)
 
6570
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6571
        tmp_addflag=
 
6572
        case $cc_basename,$host_cpu in
 
6573
        pgcc*)                          # Portland Group C compiler
 
6574
          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'
 
6575
          tmp_addflag=' $pic_flag'
 
6576
          ;;
 
6577
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6578
          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'
 
6579
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6580
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6581
          tmp_addflag=' -i_dynamic' ;;
 
6582
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6583
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6584
        ifc* | ifort*)                  # Intel Fortran compiler
 
6585
          tmp_addflag=' -nofor_main' ;;
 
6586
        esac
 
6587
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6588
 
 
6589
        if test $supports_anon_versioning = yes; then
 
6590
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6591
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6592
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6593
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6594
        fi
 
6595
        link_all_deplibs=no
 
6596
      else
 
6597
        ld_shlibs=no
 
6598
      fi
 
6599
      ;;
 
6600
 
6427
6601
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6428
6602
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6429
6603
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6462
6636
      hardcode_shlibpath_var=no
6463
6637
      ;;
6464
6638
 
6465
 
  linux*)
6466
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6467
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6468
 
        archive_cmds="$tmp_archive_cmds"
6469
 
      supports_anon_versioning=no
6470
 
      case `$LD -v 2>/dev/null` in
6471
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6472
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6473
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6474
 
        *\ 2.11.*) ;; # other 2.11 versions
6475
 
        *) supports_anon_versioning=yes ;;
6476
 
      esac
6477
 
      if test $supports_anon_versioning = yes; then
6478
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6479
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6480
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6481
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6482
 
      else
6483
 
        archive_expsym_cmds="$tmp_archive_cmds"
6484
 
      fi
6485
 
      link_all_deplibs=no
6486
 
    else
6487
 
      ld_shlibs=no
6488
 
    fi
6489
 
    ;;
6490
 
 
6491
6639
    *)
6492
6640
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6493
6641
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6498
6646
      ;;
6499
6647
    esac
6500
6648
 
6501
 
    if test "$ld_shlibs" = yes; then
6502
 
      runpath_var=LD_RUN_PATH
6503
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6504
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6505
 
      # ancient GNU ld didn't support --whole-archive et. al.
6506
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6507
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6508
 
      else
6509
 
        whole_archive_flag_spec=
6510
 
      fi
 
6649
    if test "$ld_shlibs" = no; then
 
6650
      runpath_var=
 
6651
      hardcode_libdir_flag_spec=
 
6652
      export_dynamic_flag_spec=
 
6653
      whole_archive_flag_spec=
6511
6654
    fi
6512
6655
  else
6513
6656
    # PORTME fill in a description of your system's linker (not GNU ld)
6571
6714
      link_all_deplibs=yes
6572
6715
 
6573
6716
      if test "$GCC" = yes; then
6574
 
        case $host_os in aix4.012|aix4.012.*)
 
6717
        case $host_os in aix4.[012]|aix4.[012].*)
6575
6718
        # We only want to do this on AIX 4.2 and lower, the check
6576
6719
        # below for broken collect2 doesn't work under 4.3+
6577
6720
          collect2name=`${CC} -print-prog-name=collect2`
6592
6735
          fi
6593
6736
        esac
6594
6737
        shared_flag='-shared'
 
6738
        if test "$aix_use_runtimelinking" = yes; then
 
6739
          shared_flag="$shared_flag "'${wl}-G'
 
6740
        fi
6595
6741
      else
6596
6742
        # not using gcc
6597
6743
        if test "$host_cpu" = ia64; then
6736
6882
          # Exported symbols can be pulled into shared objects from archives
6737
6883
          whole_archive_flag_spec=' '
6738
6884
          archive_cmds_need_lc=yes
6739
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6885
          # This is similar to how AIX traditionally builds its shared libraries.
6740
6886
          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'
6741
6887
        fi
6742
6888
      fi
6750
6896
      ld_shlibs=no
6751
6897
      ;;
6752
6898
 
6753
 
    bsdi4*)
 
6899
    bsdi[45]*)
6754
6900
      export_dynamic_flag_spec=-rdynamic
6755
6901
      ;;
6756
6902
 
6776
6922
      ;;
6777
6923
 
6778
6924
    darwin* | rhapsody*)
6779
 
    if test "$GXX" = yes ; then
 
6925
      case $host_os in
 
6926
        rhapsody* | darwin1.[012])
 
6927
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6928
         ;;
 
6929
       *) # Darwin 1.3 on
 
6930
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6931
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6932
         else
 
6933
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6934
             10.[012])
 
6935
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6936
               ;;
 
6937
             10.*)
 
6938
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6939
               ;;
 
6940
           esac
 
6941
         fi
 
6942
         ;;
 
6943
      esac
6780
6944
      archive_cmds_need_lc=no
6781
 
      case "$host_os" in
6782
 
      rhapsody* | darwin1.[012])
6783
 
        allow_undefined_flag='-undefined suppress'
6784
 
        ;;
6785
 
      *) # Darwin 1.3 on
6786
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6787
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
6788
 
      else
6789
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6790
 
          10.[012])
6791
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
6792
 
            ;;
6793
 
          10.*)
6794
 
            allow_undefined_flag='-undefined dynamic_lookup'
6795
 
            ;;
6796
 
        esac
6797
 
      fi
6798
 
        ;;
6799
 
      esac
6800
 
        lt_int_apple_cc_single_mod=no
6801
 
        output_verbose_link_cmd='echo'
6802
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6803
 
          lt_int_apple_cc_single_mod=yes
6804
 
        fi
6805
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6806
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6807
 
        else
6808
 
        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'
6809
 
      fi
6810
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6811
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6812
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6813
 
          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}'
6814
 
        else
6815
 
          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}'
6816
 
        fi
6817
 
          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}'
6818
6945
      hardcode_direct=no
6819
6946
      hardcode_automatic=yes
6820
6947
      hardcode_shlibpath_var=unsupported
6821
 
      whole_archive_flag_spec='-all_load $convenience'
 
6948
      whole_archive_flag_spec=''
6822
6949
      link_all_deplibs=yes
 
6950
    if test "$GCC" = yes ; then
 
6951
        output_verbose_link_cmd='echo'
 
6952
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6953
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6954
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6955
      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}'
 
6956
      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}'
6823
6957
    else
6824
 
      ld_shlibs=no
 
6958
      case $cc_basename in
 
6959
        xlc*)
 
6960
         output_verbose_link_cmd='echo'
 
6961
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6962
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6963
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6964
         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}'
 
6965
          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}'
 
6966
          ;;
 
6967
       *)
 
6968
         ld_shlibs=no
 
6969
          ;;
 
6970
      esac
6825
6971
    fi
6826
6972
      ;;
6827
6973
 
6855
7001
      ;;
6856
7002
 
6857
7003
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6858
 
    freebsd* | kfreebsd*-gnu)
 
7004
    freebsd* | kfreebsd*-gnu | dragonfly*)
6859
7005
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6860
7006
      hardcode_libdir_flag_spec='-R$libdir'
6861
7007
      hardcode_direct=yes
6880
7026
 
6881
7027
    hpux10* | hpux11*)
6882
7028
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6883
 
        case "$host_cpu" in
 
7029
        case $host_cpu in
6884
7030
        hppa*64*|ia64*)
6885
7031
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6886
7032
          ;;
6889
7035
          ;;
6890
7036
        esac
6891
7037
      else
6892
 
        case "$host_cpu" in
 
7038
        case $host_cpu in
6893
7039
        hppa*64*|ia64*)
6894
7040
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6895
7041
          ;;
6899
7045
        esac
6900
7046
      fi
6901
7047
      if test "$with_gnu_ld" = no; then
6902
 
        case "$host_cpu" in
 
7048
        case $host_cpu in
6903
7049
        hppa*64*)
6904
7050
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6905
7051
          hardcode_libdir_flag_spec_ld='+b $libdir'
6966
7112
      hardcode_shlibpath_var=no
6967
7113
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6968
7114
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7115
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6969
7116
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6970
7117
        export_dynamic_flag_spec='${wl}-E'
6971
7118
      else
7011
7158
        allow_undefined_flag=' -expect_unresolved \*'
7012
7159
        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'
7013
7160
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7014
 
        $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'
 
7161
        $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'
7015
7162
 
7016
7163
        # Both c and cxx compiler support -rpath directly
7017
7164
        hardcode_libdir_flag_spec='-rpath $libdir'
7030
7177
    solaris*)
7031
7178
      no_undefined_flag=' -z text'
7032
7179
      if test "$GCC" = yes; then
 
7180
        wlarc='${wl}'
7033
7181
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7034
7182
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7035
7183
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7036
7184
      else
 
7185
        wlarc=''
7037
7186
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7038
7187
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7039
7188
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7042
7191
      hardcode_shlibpath_var=no
7043
7192
      case $host_os in
7044
7193
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7045
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7046
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7194
      *)
 
7195
        # The compiler driver will combine linker options so we
 
7196
        # cannot just pass the convience library names through
 
7197
        # without $wl, iff we do not link with $LD.
 
7198
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7199
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7200
        case $wlarc in
 
7201
        '')
 
7202
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7203
        *)
 
7204
          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' ;;
 
7205
        esac ;;
7047
7206
      esac
7048
7207
      link_all_deplibs=yes
7049
7208
      ;;
7317
7476
  shlibpath_var=LIBRARY_PATH
7318
7477
  ;;
7319
7478
 
7320
 
bsdi4*)
 
7479
bsdi[45]*)
7321
7480
  version_type=linux
7322
7481
  need_version=no
7323
7482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345
7504
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7346
7505
      dldir=$destdir/`dirname \$dlpath`~
7347
7506
      test -d \$dldir || mkdir -p \$dldir~
7348
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7507
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7508
      chmod a+x \$dldir/$dlname'
7349
7509
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7350
7510
      dlpath=$dir/\$dldll~
7351
7511
       $rm \$dlpath'
7375
7535
      ;;
7376
7536
    pw32*)
7377
7537
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7378
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7538
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7379
7539
      ;;
7380
7540
    esac
7381
7541
    ;;
7398
7558
  soname_spec='${libname}${release}${major}$shared_ext'
7399
7559
  shlibpath_overrides_runpath=yes
7400
7560
  shlibpath_var=DYLD_LIBRARY_PATH
7401
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7561
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7402
7562
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7403
7563
  if test "$GCC" = yes; then
7404
7564
    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"`
7433
7593
  dynamic_linker='GNU ld.so'
7434
7594
  ;;
7435
7595
 
7436
 
freebsd*)
7437
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7596
freebsd* | dragonfly*)
 
7597
  # DragonFly does not have aout.  When/if they implement a new
 
7598
  # versioning mechanism, adjust this.
 
7599
  if test -x /usr/bin/objformat; then
 
7600
    objformat=`/usr/bin/objformat`
 
7601
  else
 
7602
    case $host_os in
 
7603
    freebsd[123]*) objformat=aout ;;
 
7604
    *) objformat=elf ;;
 
7605
    esac
 
7606
  fi
7438
7607
  version_type=freebsd-$objformat
7439
7608
  case $version_type in
7440
7609
    freebsd-elf*)
7452
7621
  freebsd2*)
7453
7622
    shlibpath_overrides_runpath=yes
7454
7623
    ;;
7455
 
  freebsd3.01* | freebsdelf3.01*)
 
7624
  freebsd3.[01]* | freebsdelf3.[01]*)
7456
7625
    shlibpath_overrides_runpath=yes
7457
7626
    hardcode_into_libs=yes
7458
7627
    ;;
7479
7648
  version_type=sunos
7480
7649
  need_lib_prefix=no
7481
7650
  need_version=no
7482
 
  case "$host_cpu" in
 
7651
  case $host_cpu in
7483
7652
  ia64*)
7484
7653
    shrext_cmds='.so'
7485
7654
    hardcode_into_libs=yes
7578
7747
 
7579
7748
  # Append ld.so.conf contents to the search path
7580
7749
  if test -f /etc/ld.so.conf; then
7581
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7750
    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' ' '`
7582
7751
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7583
7752
  fi
7584
7753
 
7653
7822
openbsd*)
7654
7823
  version_type=sunos
7655
7824
  need_lib_prefix=no
7656
 
  need_version=yes
 
7825
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
7826
  case $host_os in
 
7827
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
7828
    *)                         need_version=no  ;;
 
7829
  esac
7657
7830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7658
7831
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7659
7832
  shlibpath_var=LD_LIBRARY_PATH
7775
7948
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7776
7949
hardcode_action=
7777
7950
if test -n "$hardcode_libdir_flag_spec" || \
7778
 
   test -n "$runpath_var " || \
7779
 
   test "X$hardcode_automatic"="Xyes" ; then
 
7951
   test -n "$runpath_var" || \
 
7952
   test "X$hardcode_automatic" = "Xyes" ; then
7780
7953
 
7781
7954
  # We can hardcode non-existant directories.
7782
7955
  if test "$hardcode_direct" != no &&
8435
8608
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8436
8609
  lt_status=$lt_dlunknown
8437
8610
  cat > conftest.$ac_ext <<EOF
8438
 
#line 8438 "configure"
 
8611
#line 8611 "configure"
8439
8612
#include "confdefs.h"
8440
8613
 
8441
8614
#if HAVE_DLFCN_H
8501
8674
  ac_status=$?
8502
8675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503
8676
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8504
 
    (./conftest; exit; ) 2>/dev/null
 
8677
    (./conftest; exit; ) >&5 2>/dev/null
8505
8678
    lt_status=$?
8506
8679
    case x$lt_status in
8507
8680
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8533
8706
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8534
8707
  lt_status=$lt_dlunknown
8535
8708
  cat > conftest.$ac_ext <<EOF
8536
 
#line 8536 "configure"
 
8709
#line 8709 "configure"
8537
8710
#include "confdefs.h"
8538
8711
 
8539
8712
#if HAVE_DLFCN_H
8599
8772
  ac_status=$?
8600
8773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601
8774
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8602
 
    (./conftest; exit; ) 2>/dev/null
 
8775
    (./conftest; exit; ) >&5 2>/dev/null
8603
8776
    lt_status=$?
8604
8777
    case x$lt_status in
8605
8778
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8649
8822
 
8650
8823
# On AIX, shared libraries and static libraries use the same namespace, and
8651
8824
# are all built from PIC.
8652
 
case "$host_os" in
 
8825
case $host_os in
8653
8826
aix3*)
8654
8827
  test "$enable_shared" = yes && enable_static=no
8655
8828
  if test -n "$RANLIB"; then
8662
8835
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8663
8836
    test "$enable_shared" = yes && enable_static=no
8664
8837
  fi
8665
 
  ;;
8666
 
  darwin* | rhapsody*)
8667
 
  if test "$GCC" = yes; then
8668
 
    archive_cmds_need_lc=no
8669
 
    case "$host_os" in
8670
 
    rhapsody* | darwin1.[012])
8671
 
      allow_undefined_flag='-undefined suppress'
8672
 
      ;;
8673
 
    *) # Darwin 1.3 on
8674
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8675
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8676
 
      else
8677
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8678
 
          10.[012])
8679
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8680
 
            ;;
8681
 
          10.*)
8682
 
            allow_undefined_flag='-undefined dynamic_lookup'
8683
 
            ;;
8684
 
        esac
8685
 
      fi
8686
 
      ;;
8687
 
    esac
8688
 
    output_verbose_link_cmd='echo'
8689
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8690
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8691
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8692
 
    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}'
8693
 
    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}'
8694
 
    hardcode_direct=no
8695
 
    hardcode_automatic=yes
8696
 
    hardcode_shlibpath_var=unsupported
8697
 
    whole_archive_flag_spec='-all_load $convenience'
8698
 
    link_all_deplibs=yes
8699
 
  else
8700
 
    ld_shlibs=no
8701
 
  fi
8702
8838
    ;;
8703
8839
esac
8704
8840
echo "$as_me:$LINENO: result: $enable_shared" >&5
8828
8964
#
8829
8965
# You should have received a copy of the GNU General Public License
8830
8966
# along with this program; if not, write to the Free Software
8831
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8967
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8832
8968
#
8833
8969
# As a special exception to the GNU General Public License, if you
8834
8970
# distribute this file as part of a program that contains a
8839
8975
SED=$lt_SED
8840
8976
 
8841
8977
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8842
 
Xsed="$SED -e s/^X//"
 
8978
Xsed="$SED -e 1s/^X//"
8843
8979
 
8844
8980
# The HP-UX ksh and POSIX shell print the target directory to stdout
8845
8981
# if CDPATH is set.
8846
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8982
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8847
8983
 
8848
8984
# The names of the tagged configurations supported by this script.
8849
8985
available_tags=
8873
9009
# The host system.
8874
9010
host_alias=$host_alias
8875
9011
host=$host
 
9012
host_os=$host_os
 
9013
 
 
9014
# The build system.
 
9015
build_alias=$build_alias
 
9016
build=$build
 
9017
build_os=$build_os
8876
9018
 
8877
9019
# An echo program that does not interpret backslashes.
8878
9020
echo=$lt_echo
8949
9091
# Does compiler simultaneously support -c and -o options?
8950
9092
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8951
9093
 
8952
 
# Must we lock files when doing compilation ?
 
9094
# Must we lock files when doing compilation?
8953
9095
need_locks=$lt_need_locks
8954
9096
 
8955
9097
# Do we need the lib prefix for modules?
9244
9386
 
9245
9387
      case $tagname in
9246
9388
      CXX)
9247
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9389
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9390
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9391
            (test "X$CXX" != "Xg++"))) ; then
9248
9392
          ac_ext=cc
9249
9393
ac_cpp='$CXXCPP $CPPFLAGS'
9250
9394
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281
9425
compiler_lib_search_path_CXX=
9282
9426
 
9283
9427
# Source file extension for C++ test sources.
9284
 
ac_ext=cc
 
9428
ac_ext=cpp
9285
9429
 
9286
9430
# Object file extension for compiled C++ test sources.
9287
9431
objext=o
9302
9446
compiler=$CC
9303
9447
 
9304
9448
 
 
9449
# save warnings/boilerplate of simple test code
 
9450
ac_outfile=conftest.$ac_objext
 
9451
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9452
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9453
_lt_compiler_boilerplate=`cat conftest.err`
 
9454
$rm conftest*
 
9455
 
 
9456
ac_outfile=conftest.$ac_objext
 
9457
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9458
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9459
_lt_linker_boilerplate=`cat conftest.err`
 
9460
$rm conftest*
 
9461
 
 
9462
 
9305
9463
# Allow CC to be a program name with arguments.
9306
9464
lt_save_CC=$CC
9307
9465
lt_save_LD=$LD
9323
9481
CC=${CXX-"c++"}
9324
9482
compiler=$CC
9325
9483
compiler_CXX=$CC
9326
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9484
for cc_temp in $compiler""; do
 
9485
  case $cc_temp in
 
9486
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9487
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9488
    \-*) ;;
 
9489
    *) break;;
 
9490
  esac
 
9491
done
 
9492
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9493
 
9327
9494
 
9328
9495
# We don't want -fno-exception wen compiling C++ code, so set the
9329
9496
# no_builtin_flag separately
9394
9561
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9395
9562
      lt_cv_path_LD="$ac_dir/$ac_prog"
9396
9563
      # Check to see if the program is GNU ld.  I'd rather use --version,
9397
 
      # but apparently some GNU ld's only accept -v.
 
9564
      # but apparently some variants of GNU ld only accept -v.
9398
9565
      # Break only if it was the GNU/non-GNU ld that we prefer.
9399
9566
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9400
9567
      *GNU* | *'with BFD'*)
9428
9595
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9429
9596
  echo $ECHO_N "(cached) $ECHO_C" >&6
9430
9597
else
9431
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9598
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9432
9599
case `$LD -v 2>&1 </dev/null` in
9433
9600
*GNU* | *'with BFD'*)
9434
9601
  lt_cv_prog_gnu_ld=yes
9537
9704
    link_all_deplibs_CXX=yes
9538
9705
 
9539
9706
    if test "$GXX" = yes; then
9540
 
      case $host_os in aix4.012|aix4.012.*)
 
9707
      case $host_os in aix4.[012]|aix4.[012].*)
9541
9708
      # We only want to do this on AIX 4.2 and lower, the check
9542
9709
      # below for broken collect2 doesn't work under 4.3+
9543
9710
        collect2name=`${CC} -print-prog-name=collect2`
9558
9725
        fi
9559
9726
      esac
9560
9727
      shared_flag='-shared'
 
9728
      if test "$aix_use_runtimelinking" = yes; then
 
9729
        shared_flag="$shared_flag "'${wl}-G'
 
9730
      fi
9561
9731
    else
9562
9732
      # not using gcc
9563
9733
      if test "$host_cpu" = ia64; then
9703
9873
        # Exported symbols can be pulled into shared objects from archives
9704
9874
        whole_archive_flag_spec_CXX=' '
9705
9875
        archive_cmds_need_lc_CXX=yes
9706
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9876
        # This is similar to how AIX traditionally builds its shared libraries.
9707
9877
        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'
9708
9878
      fi
9709
9879
    fi
9717
9887
    esac
9718
9888
    ;;
9719
9889
 
 
9890
 
9720
9891
  cygwin* | mingw* | pw32*)
9721
9892
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9722
9893
    # as there is no search path for DLLs.
9740
9911
      ld_shlibs_CXX=no
9741
9912
    fi
9742
9913
  ;;
9743
 
 
9744
 
  darwin* | rhapsody*)
9745
 
  if test "$GXX" = yes; then
9746
 
    archive_cmds_need_lc_CXX=no
9747
 
    case "$host_os" in
9748
 
    rhapsody* | darwin1.[012])
9749
 
      allow_undefined_flag_CXX='-undefined suppress'
9750
 
      ;;
9751
 
    *) # Darwin 1.3 on
9752
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9753
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9754
 
      else
9755
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9756
 
          10.[012])
9757
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9758
 
            ;;
9759
 
          10.*)
9760
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
9761
 
            ;;
 
9914
      darwin* | rhapsody*)
 
9915
        case $host_os in
 
9916
        rhapsody* | darwin1.[012])
 
9917
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
9918
         ;;
 
9919
       *) # Darwin 1.3 on
 
9920
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9921
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9922
         else
 
9923
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9924
             10.[012])
 
9925
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9926
               ;;
 
9927
             10.*)
 
9928
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
9929
               ;;
 
9930
           esac
 
9931
         fi
 
9932
         ;;
9762
9933
        esac
9763
 
      fi
9764
 
      ;;
9765
 
    esac
9766
 
    lt_int_apple_cc_single_mod=no
9767
 
    output_verbose_link_cmd='echo'
9768
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9769
 
      lt_int_apple_cc_single_mod=yes
9770
 
    fi
9771
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9772
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9773
 
    else
9774
 
      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'
9775
 
    fi
9776
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9934
      archive_cmds_need_lc_CXX=no
 
9935
      hardcode_direct_CXX=no
 
9936
      hardcode_automatic_CXX=yes
 
9937
      hardcode_shlibpath_var_CXX=unsupported
 
9938
      whole_archive_flag_spec_CXX=''
 
9939
      link_all_deplibs_CXX=yes
9777
9940
 
9778
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9779
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9780
 
      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}'
9781
 
    else
9782
 
      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}'
9783
 
    fi
9784
 
    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}'
9785
 
    hardcode_direct_CXX=no
9786
 
    hardcode_automatic_CXX=yes
9787
 
    hardcode_shlibpath_var_CXX=unsupported
9788
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
9789
 
    link_all_deplibs_CXX=yes
9790
 
  else
9791
 
    ld_shlibs_CXX=no
9792
 
  fi
9793
 
    ;;
 
9941
    if test "$GXX" = yes ; then
 
9942
      lt_int_apple_cc_single_mod=no
 
9943
      output_verbose_link_cmd='echo'
 
9944
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
9945
       lt_int_apple_cc_single_mod=yes
 
9946
      fi
 
9947
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9948
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9949
      else
 
9950
          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'
 
9951
        fi
 
9952
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9953
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9954
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9955
            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}'
 
9956
          else
 
9957
            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}'
 
9958
          fi
 
9959
            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}'
 
9960
      else
 
9961
      case $cc_basename in
 
9962
        xlc*)
 
9963
         output_verbose_link_cmd='echo'
 
9964
          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'
 
9965
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9966
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9967
          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}'
 
9968
          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}'
 
9969
          ;;
 
9970
       *)
 
9971
         ld_shlibs_CXX=no
 
9972
          ;;
 
9973
      esac
 
9974
      fi
 
9975
        ;;
9794
9976
 
9795
9977
  dgux*)
9796
9978
    case $cc_basename in
9797
 
      ec++)
 
9979
      ec++*)
9798
9980
        # FIXME: insert proper C++ library support
9799
9981
        ld_shlibs_CXX=no
9800
9982
        ;;
9801
 
      ghcx)
 
9983
      ghcx*)
9802
9984
        # Green Hills C++ Compiler
9803
9985
        # FIXME: insert proper C++ library support
9804
9986
        ld_shlibs_CXX=no
9809
9991
        ;;
9810
9992
    esac
9811
9993
    ;;
9812
 
  freebsd12*)
 
9994
  freebsd[12]*)
9813
9995
    # C++ shared libraries reported to be fairly broken before switch to ELF
9814
9996
    ld_shlibs_CXX=no
9815
9997
    ;;
9816
9998
  freebsd-elf*)
9817
9999
    archive_cmds_need_lc_CXX=no
9818
10000
    ;;
9819
 
  freebsd* | kfreebsd*-gnu)
 
10001
  freebsd* | kfreebsd*-gnu | dragonfly*)
9820
10002
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9821
10003
    # conventions
9822
10004
    ld_shlibs_CXX=yes
9833
10015
                                # location of the library.
9834
10016
 
9835
10017
    case $cc_basename in
9836
 
    CC)
 
10018
    CC*)
9837
10019
      # FIXME: insert proper C++ library support
9838
10020
      ld_shlibs_CXX=no
9839
10021
      ;;
9840
 
    aCC)
 
10022
    aCC*)
9841
10023
      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'
9842
10024
      # Commands to make compiler produce verbose output that lists
9843
10025
      # what "hidden" libraries, object files and flags are used when
9847
10029
      # explicitly linking system object files so we need to strip them
9848
10030
      # from the output so that they don't get included in the library
9849
10031
      # dependencies.
9850
 
      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'
 
10032
      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'
9851
10033
      ;;
9852
10034
    *)
9853
10035
      if test "$GXX" = yes; then
9861
10043
    ;;
9862
10044
  hpux10*|hpux11*)
9863
10045
    if test $with_gnu_ld = no; then
9864
 
      case "$host_cpu" in
 
10046
      case $host_cpu in
9865
10047
      hppa*64*)
9866
10048
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9867
10049
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9877
10059
        ;;
9878
10060
      esac
9879
10061
    fi
9880
 
    case "$host_cpu" in
 
10062
    case $host_cpu in
9881
10063
    hppa*64*)
9882
10064
      hardcode_direct_CXX=no
9883
10065
      hardcode_shlibpath_var_CXX=no
9898
10080
    esac
9899
10081
 
9900
10082
    case $cc_basename in
9901
 
      CC)
 
10083
      CC*)
9902
10084
        # FIXME: insert proper C++ library support
9903
10085
        ld_shlibs_CXX=no
9904
10086
        ;;
9905
 
      aCC)
9906
 
        case "$host_cpu" in
 
10087
      aCC*)
 
10088
        case $host_cpu in
9907
10089
        hppa*64*|ia64*)
9908
10090
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9909
10091
          ;;
9924
10106
      *)
9925
10107
        if test "$GXX" = yes; then
9926
10108
          if test $with_gnu_ld = no; then
9927
 
            case "$host_cpu" in
 
10109
            case $host_cpu in
9928
10110
            ia64*|hppa*64*)
9929
10111
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9930
10112
              ;;
9942
10124
    ;;
9943
10125
  irix5* | irix6*)
9944
10126
    case $cc_basename in
9945
 
      CC)
 
10127
      CC*)
9946
10128
        # SGI C++
9947
 
        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'
 
10129
        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'
9948
10130
 
9949
10131
        # Archives containing C++ object files must be created using
9950
10132
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9955
10137
      *)
9956
10138
        if test "$GXX" = yes; then
9957
10139
          if test "$with_gnu_ld" = no; then
9958
 
            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'
 
10140
            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'
9959
10141
          else
9960
10142
            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'
9961
10143
          fi
9968
10150
    ;;
9969
10151
  linux*)
9970
10152
    case $cc_basename in
9971
 
      KCC)
 
10153
      KCC*)
9972
10154
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9973
10155
 
9974
10156
        # KCC will only create a shared library if the output file
9993
10175
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9994
10176
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9995
10177
        ;;
9996
 
      icpc)
 
10178
      icpc*)
9997
10179
        # Intel C++
9998
10180
        with_gnu_ld=yes
 
10181
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10182
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10183
        # earlier do not add the objects themselves.
 
10184
        case `$CC -V 2>&1` in
 
10185
        *"Version 7."*)
 
10186
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10187
          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'
 
10188
          ;;
 
10189
        *)  # Version 8.0 or newer
 
10190
          tmp_idyn=
 
10191
          case $host_cpu in
 
10192
            ia64*) tmp_idyn=' -i_dynamic';;
 
10193
          esac
 
10194
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10195
          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'
 
10196
          ;;
 
10197
        esac
9999
10198
        archive_cmds_need_lc_CXX=no
10000
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001
 
        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'
10002
10199
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10003
10200
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10004
10201
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10005
10202
        ;;
10006
 
      cxx)
 
10203
      pgCC*)
 
10204
        # Portland Group C++ compiler
 
10205
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10206
        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'
 
10207
 
 
10208
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10209
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10210
        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'
 
10211
        ;;
 
10212
      cxx*)
10007
10213
        # Compaq C++
10008
10214
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009
10215
        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'
10034
10240
    ;;
10035
10241
  mvs*)
10036
10242
    case $cc_basename in
10037
 
      cxx)
 
10243
      cxx*)
10038
10244
        # FIXME: insert proper C++ library support
10039
10245
        ld_shlibs_CXX=no
10040
10246
        ;;
10055
10261
    # Workaround some broken pre-1.5 toolchains
10056
10262
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10057
10263
    ;;
 
10264
  openbsd2*)
 
10265
    # C++ shared libraries are fairly broken
 
10266
    ld_shlibs_CXX=no
 
10267
    ;;
 
10268
  openbsd*)
 
10269
    hardcode_direct_CXX=yes
 
10270
    hardcode_shlibpath_var_CXX=no
 
10271
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10272
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10273
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10274
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10275
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10276
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10277
    fi
 
10278
    output_verbose_link_cmd='echo'
 
10279
    ;;
10058
10280
  osf3*)
10059
10281
    case $cc_basename in
10060
 
      KCC)
 
10282
      KCC*)
10061
10283
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10062
10284
 
10063
10285
        # KCC will only create a shared library if the output file
10073
10295
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10074
10296
 
10075
10297
        ;;
10076
 
      RCC)
 
10298
      RCC*)
10077
10299
        # Rational C++ 2.4.1
10078
10300
        # FIXME: insert proper C++ library support
10079
10301
        ld_shlibs_CXX=no
10080
10302
        ;;
10081
 
      cxx)
 
10303
      cxx*)
10082
10304
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10083
 
        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'
 
10305
        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'
10084
10306
 
10085
10307
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10086
10308
        hardcode_libdir_separator_CXX=:
10098
10320
      *)
10099
10321
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10100
10322
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10101
 
          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'
 
10323
          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'
10102
10324
 
10103
10325
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10104
10326
          hardcode_libdir_separator_CXX=:
10117
10339
    ;;
10118
10340
  osf4* | osf5*)
10119
10341
    case $cc_basename in
10120
 
      KCC)
 
10342
      KCC*)
10121
10343
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10122
10344
 
10123
10345
        # KCC will only create a shared library if the output file
10132
10354
        # the KAI C++ compiler.
10133
10355
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10134
10356
        ;;
10135
 
      RCC)
 
10357
      RCC*)
10136
10358
        # Rational C++ 2.4.1
10137
10359
        # FIXME: insert proper C++ library support
10138
10360
        ld_shlibs_CXX=no
10139
10361
        ;;
10140
 
      cxx)
 
10362
      cxx*)
10141
10363
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10142
 
        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'
 
10364
        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'
10143
10365
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10144
10366
          echo "-hidden">> $lib.exp~
10145
 
          $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~
 
10367
          $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~
10146
10368
          $rm $lib.exp'
10147
10369
 
10148
10370
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10161
10383
      *)
10162
10384
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10163
10385
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10164
 
         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'
 
10386
         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'
10165
10387
 
10166
10388
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10167
10389
          hardcode_libdir_separator_CXX=:
10185
10407
  sco*)
10186
10408
    archive_cmds_need_lc_CXX=no
10187
10409
    case $cc_basename in
10188
 
      CC)
 
10410
      CC*)
10189
10411
        # FIXME: insert proper C++ library support
10190
10412
        ld_shlibs_CXX=no
10191
10413
        ;;
10197
10419
    ;;
10198
10420
  sunos4*)
10199
10421
    case $cc_basename in
10200
 
      CC)
 
10422
      CC*)
10201
10423
        # Sun C++ 4.x
10202
10424
        # FIXME: insert proper C++ library support
10203
10425
        ld_shlibs_CXX=no
10204
10426
        ;;
10205
 
      lcc)
 
10427
      lcc*)
10206
10428
        # Lucid
10207
10429
        # FIXME: insert proper C++ library support
10208
10430
        ld_shlibs_CXX=no
10215
10437
    ;;
10216
10438
  solaris*)
10217
10439
    case $cc_basename in
10218
 
      CC)
 
10440
      CC*)
10219
10441
        # Sun C++ 4.2, 5.x and Centerline C++
 
10442
        archive_cmds_need_lc_CXX=yes
10220
10443
        no_undefined_flag_CXX=' -zdefs'
10221
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10444
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10222
10445
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10223
 
        $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'
 
10446
        $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'
10224
10447
 
10225
10448
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10226
10449
        hardcode_shlibpath_var_CXX=no
10227
10450
        case $host_os in
10228
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10451
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10229
10452
          *)
10230
10453
            # The C++ compiler is used as linker so we must use $wl
10231
10454
            # flag to pass the commands to the underlying system
10232
 
            # linker.
 
10455
            # linker. We must also pass each convience library through
 
10456
            # to the system linker between allextract/defaultextract.
 
10457
            # The C++ compiler will combine linker options so we
 
10458
            # cannot just pass the convience library names through
 
10459
            # without $wl.
10233
10460
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10234
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10461
            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'
10235
10462
            ;;
10236
10463
        esac
10237
10464
        link_all_deplibs_CXX=yes
10238
10465
 
10239
 
        # Commands to make compiler produce verbose output that lists
10240
 
        # what "hidden" libraries, object files and flags are used when
10241
 
        # linking a shared library.
10242
 
        #
10243
 
        # There doesn't appear to be a way to prevent this compiler from
10244
 
        # explicitly linking system object files so we need to strip them
10245
 
        # from the output so that they don't get included in the library
10246
 
        # dependencies.
10247
 
        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'
 
10466
        output_verbose_link_cmd='echo'
10248
10467
 
10249
10468
        # Archives containing C++ object files must be created using
10250
10469
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10252
10471
        # in the archive.
10253
10472
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10254
10473
        ;;
10255
 
      gcx)
 
10474
      gcx*)
10256
10475
        # Green Hills C++ Compiler
10257
10476
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10258
10477
 
10295
10514
    ;;
10296
10515
  tandem*)
10297
10516
    case $cc_basename in
10298
 
      NCC)
 
10517
      NCC*)
10299
10518
        # NonStop-UX NCC 3.20
10300
10519
        # FIXME: insert proper C++ library support
10301
10520
        ld_shlibs_CXX=no
10352
10571
  # The `*' in the case matches for architectures that use `case' in
10353
10572
  # $output_verbose_cmd can trigger glob expansion during the loop
10354
10573
  # eval without this substitution.
10355
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10574
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10356
10575
 
10357
10576
  for p in `eval $output_verbose_link_cmd`; do
10358
10577
    case $p in
10428
10647
 
10429
10648
$rm -f confest.$objext
10430
10649
 
 
10650
# PORTME: override above test on systems where it is broken
 
10651
case $host_os in
 
10652
solaris*)
 
10653
  case $cc_basename in
 
10654
  CC*)
 
10655
    # Adding this requires a known-good setup of shared libraries for
 
10656
    # Sun compiler versions before 5.6, else PIC objects from an old
 
10657
    # archive will be linked into the output, leading to subtle bugs.
 
10658
    postdeps_CXX='-lCstd -lCrun'
 
10659
    ;;
 
10660
  esac
 
10661
esac
 
10662
 
 
10663
 
10431
10664
case " $postdeps_CXX " in
10432
10665
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10433
10666
esac
10483
10716
    hpux*)
10484
10717
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10485
10718
      # not for PA HP-UX.
10486
 
      case "$host_cpu" in
 
10719
      case $host_cpu in
10487
10720
      hppa*64*|ia64*)
10488
10721
        ;;
10489
10722
      *)
10508
10741
        ;;
10509
10742
      chorus*)
10510
10743
        case $cc_basename in
10511
 
        cxch68)
 
10744
        cxch68*)
10512
10745
          # Green Hills C++ Compiler
10513
10746
          # _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"
10514
10747
          ;;
10515
10748
        esac
10516
10749
        ;;
 
10750
       darwin*)
 
10751
         # PIC is the default on this platform
 
10752
         # Common symbols not allowed in MH_DYLIB files
 
10753
         case $cc_basename in
 
10754
           xlc*)
 
10755
           lt_prog_compiler_pic_CXX='-qnocommon'
 
10756
           lt_prog_compiler_wl_CXX='-Wl,'
 
10757
           ;;
 
10758
         esac
 
10759
       ;;
10517
10760
      dgux*)
10518
10761
        case $cc_basename in
10519
 
          ec++)
 
10762
          ec++*)
10520
10763
            lt_prog_compiler_pic_CXX='-KPIC'
10521
10764
            ;;
10522
 
          ghcx)
 
10765
          ghcx*)
10523
10766
            # Green Hills C++ Compiler
10524
10767
            lt_prog_compiler_pic_CXX='-pic'
10525
10768
            ;;
10527
10770
            ;;
10528
10771
        esac
10529
10772
        ;;
10530
 
      freebsd* | kfreebsd*-gnu)
 
10773
      freebsd* | kfreebsd*-gnu | dragonfly*)
10531
10774
        # FreeBSD uses GNU C++
10532
10775
        ;;
10533
10776
      hpux9* | hpux10* | hpux11*)
10534
10777
        case $cc_basename in
10535
 
          CC)
 
10778
          CC*)
10536
10779
            lt_prog_compiler_wl_CXX='-Wl,'
10537
10780
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10538
10781
            if test "$host_cpu" != ia64; then
10539
10782
              lt_prog_compiler_pic_CXX='+Z'
10540
10783
            fi
10541
10784
            ;;
10542
 
          aCC)
 
10785
          aCC*)
10543
10786
            lt_prog_compiler_wl_CXX='-Wl,'
10544
10787
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10545
 
            case "$host_cpu" in
 
10788
            case $host_cpu in
10546
10789
            hppa*64*|ia64*)
10547
10790
              # +Z the default
10548
10791
              ;;
10557
10800
        ;;
10558
10801
      irix5* | irix6* | nonstopux*)
10559
10802
        case $cc_basename in
10560
 
          CC)
 
10803
          CC*)
10561
10804
            lt_prog_compiler_wl_CXX='-Wl,'
10562
10805
            lt_prog_compiler_static_CXX='-non_shared'
10563
10806
            # CC pic flag -KPIC is the default.
10568
10811
        ;;
10569
10812
      linux*)
10570
10813
        case $cc_basename in
10571
 
          KCC)
 
10814
          KCC*)
10572
10815
            # KAI C++ Compiler
10573
10816
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10574
10817
            lt_prog_compiler_pic_CXX='-fPIC'
10575
10818
            ;;
10576
 
          icpc)
 
10819
          icpc* | ecpc*)
10577
10820
            # Intel C++
10578
10821
            lt_prog_compiler_wl_CXX='-Wl,'
10579
10822
            lt_prog_compiler_pic_CXX='-KPIC'
10580
10823
            lt_prog_compiler_static_CXX='-static'
10581
10824
            ;;
10582
 
          cxx)
 
10825
          pgCC*)
 
10826
            # Portland Group C++ compiler.
 
10827
            lt_prog_compiler_wl_CXX='-Wl,'
 
10828
            lt_prog_compiler_pic_CXX='-fpic'
 
10829
            lt_prog_compiler_static_CXX='-Bstatic'
 
10830
            ;;
 
10831
          cxx*)
10583
10832
            # Compaq C++
10584
10833
            # Make sure the PIC flag is empty.  It appears that all Alpha
10585
10834
            # Linux and Compaq Tru64 Unix objects are PIC.
10596
10845
        ;;
10597
10846
      mvs*)
10598
10847
        case $cc_basename in
10599
 
          cxx)
 
10848
          cxx*)
10600
10849
            lt_prog_compiler_pic_CXX='-W c,exportall'
10601
10850
            ;;
10602
10851
          *)
10607
10856
        ;;
10608
10857
      osf3* | osf4* | osf5*)
10609
10858
        case $cc_basename in
10610
 
          KCC)
 
10859
          KCC*)
10611
10860
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10612
10861
            ;;
10613
 
          RCC)
 
10862
          RCC*)
10614
10863
            # Rational C++ 2.4.1
10615
10864
            lt_prog_compiler_pic_CXX='-pic'
10616
10865
            ;;
10617
 
          cxx)
 
10866
          cxx*)
10618
10867
            # Digital/Compaq C++
10619
10868
            lt_prog_compiler_wl_CXX='-Wl,'
10620
10869
            # Make sure the PIC flag is empty.  It appears that all Alpha
10630
10879
        ;;
10631
10880
      sco*)
10632
10881
        case $cc_basename in
10633
 
          CC)
 
10882
          CC*)
10634
10883
            lt_prog_compiler_pic_CXX='-fPIC'
10635
10884
            ;;
10636
10885
          *)
10639
10888
        ;;
10640
10889
      solaris*)
10641
10890
        case $cc_basename in
10642
 
          CC)
 
10891
          CC*)
10643
10892
            # Sun C++ 4.2, 5.x and Centerline C++
10644
10893
            lt_prog_compiler_pic_CXX='-KPIC'
10645
10894
            lt_prog_compiler_static_CXX='-Bstatic'
10646
10895
            lt_prog_compiler_wl_CXX='-Qoption ld '
10647
10896
            ;;
10648
 
          gcx)
 
10897
          gcx*)
10649
10898
            # Green Hills C++ Compiler
10650
10899
            lt_prog_compiler_pic_CXX='-PIC'
10651
10900
            ;;
10655
10904
        ;;
10656
10905
      sunos4*)
10657
10906
        case $cc_basename in
10658
 
          CC)
 
10907
          CC*)
10659
10908
            # Sun C++ 4.x
10660
10909
            lt_prog_compiler_pic_CXX='-pic'
10661
10910
            lt_prog_compiler_static_CXX='-Bstatic'
10662
10911
            ;;
10663
 
          lcc)
 
10912
          lcc*)
10664
10913
            # Lucid
10665
10914
            lt_prog_compiler_pic_CXX='-pic'
10666
10915
            ;;
10670
10919
        ;;
10671
10920
      tandem*)
10672
10921
        case $cc_basename in
10673
 
          NCC)
 
10922
          NCC*)
10674
10923
            # NonStop-UX NCC 3.20
10675
10924
            lt_prog_compiler_pic_CXX='-KPIC'
10676
10925
            ;;
10711
10960
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10712
10961
   # The option is referenced via a variable to avoid confusing sed.
10713
10962
   lt_compile=`echo "$ac_compile" | $SED \
10714
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10963
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10715
10964
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10716
10965
   -e 's:$: $lt_compiler_flag:'`
10717
 
   (eval echo "\"\$as_me:10717: $lt_compile\"" >&5)
 
10966
   (eval echo "\"\$as_me:10966: $lt_compile\"" >&5)
10718
10967
   (eval "$lt_compile" 2>conftest.err)
10719
10968
   ac_status=$?
10720
10969
   cat conftest.err >&5
10721
 
   echo "$as_me:10721: \$? = $ac_status" >&5
 
10970
   echo "$as_me:10970: \$? = $ac_status" >&5
10722
10971
   if (exit $ac_status) && test -s "$ac_outfile"; then
10723
10972
     # The compiler can only warn and ignore the option if not recognized
10724
 
     # So say no if there are warnings
10725
 
     if test ! -s conftest.err; then
 
10973
     # So say no if there are warnings other than the usual output.
 
10974
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10975
     $SED '/^$/d' conftest.err >conftest.er2
 
10976
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10726
10977
       lt_prog_compiler_pic_works_CXX=yes
10727
10978
     fi
10728
10979
   fi
10743
10994
fi
10744
10995
 
10745
10996
fi
10746
 
case "$host_os" in
 
10997
case $host_os in
10747
10998
  # For platforms which do not support PIC, -DPIC is meaningless:
10748
10999
  *djgpp*)
10749
11000
    lt_prog_compiler_pic_CXX=
10771
11022
   # Note that $ac_compile itself does not contain backslashes and begins
10772
11023
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10773
11024
   lt_compile=`echo "$ac_compile" | $SED \
10774
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11025
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10775
11026
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10776
11027
   -e 's:$: $lt_compiler_flag:'`
10777
 
   (eval echo "\"\$as_me:10777: $lt_compile\"" >&5)
 
11028
   (eval echo "\"\$as_me:11028: $lt_compile\"" >&5)
10778
11029
   (eval "$lt_compile" 2>out/conftest.err)
10779
11030
   ac_status=$?
10780
11031
   cat out/conftest.err >&5
10781
 
   echo "$as_me:10781: \$? = $ac_status" >&5
 
11032
   echo "$as_me:11032: \$? = $ac_status" >&5
10782
11033
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10783
11034
   then
10784
11035
     # The compiler can only warn and ignore the option if not recognized
10785
11036
     # So say no if there are warnings
10786
 
     if test ! -s out/conftest.err; then
 
11037
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11038
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11039
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10787
11040
       lt_cv_prog_compiler_c_o_CXX=yes
10788
11041
     fi
10789
11042
   fi
10790
 
   chmod u+w .
 
11043
   chmod u+w . 2>&5
10791
11044
   $rm conftest*
10792
11045
   # SGI C++ compiler will create directory out/ii_files/ for
10793
11046
   # template instantiation
10842
11095
    export_symbols_cmds_CXX="$ltdll_cmds"
10843
11096
  ;;
10844
11097
  cygwin* | mingw*)
10845
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11098
    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'
10846
11099
  ;;
10847
11100
  linux*)
10848
11101
    link_all_deplibs_CXX=no
11025
11278
  shlibpath_var=LIBRARY_PATH
11026
11279
  ;;
11027
11280
 
11028
 
bsdi4*)
 
11281
bsdi[45]*)
11029
11282
  version_type=linux
11030
11283
  need_version=no
11031
11284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053
11306
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11054
11307
      dldir=$destdir/`dirname \$dlpath`~
11055
11308
      test -d \$dldir || mkdir -p \$dldir~
11056
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11309
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11310
      chmod a+x \$dldir/$dlname'
11057
11311
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11058
11312
      dlpath=$dir/\$dldll~
11059
11313
       $rm \$dlpath'
11083
11337
      ;;
11084
11338
    pw32*)
11085
11339
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11086
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11340
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11087
11341
      ;;
11088
11342
    esac
11089
11343
    ;;
11106
11360
  soname_spec='${libname}${release}${major}$shared_ext'
11107
11361
  shlibpath_overrides_runpath=yes
11108
11362
  shlibpath_var=DYLD_LIBRARY_PATH
11109
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11363
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11110
11364
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11111
11365
  if test "$GCC" = yes; then
11112
11366
    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"`
11141
11395
  dynamic_linker='GNU ld.so'
11142
11396
  ;;
11143
11397
 
11144
 
freebsd*)
11145
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11398
freebsd* | dragonfly*)
 
11399
  # DragonFly does not have aout.  When/if they implement a new
 
11400
  # versioning mechanism, adjust this.
 
11401
  if test -x /usr/bin/objformat; then
 
11402
    objformat=`/usr/bin/objformat`
 
11403
  else
 
11404
    case $host_os in
 
11405
    freebsd[123]*) objformat=aout ;;
 
11406
    *) objformat=elf ;;
 
11407
    esac
 
11408
  fi
11146
11409
  version_type=freebsd-$objformat
11147
11410
  case $version_type in
11148
11411
    freebsd-elf*)
11160
11423
  freebsd2*)
11161
11424
    shlibpath_overrides_runpath=yes
11162
11425
    ;;
11163
 
  freebsd3.01* | freebsdelf3.01*)
 
11426
  freebsd3.[01]* | freebsdelf3.[01]*)
11164
11427
    shlibpath_overrides_runpath=yes
11165
11428
    hardcode_into_libs=yes
11166
11429
    ;;
11187
11450
  version_type=sunos
11188
11451
  need_lib_prefix=no
11189
11452
  need_version=no
11190
 
  case "$host_cpu" in
 
11453
  case $host_cpu in
11191
11454
  ia64*)
11192
11455
    shrext_cmds='.so'
11193
11456
    hardcode_into_libs=yes
11286
11549
 
11287
11550
  # Append ld.so.conf contents to the search path
11288
11551
  if test -f /etc/ld.so.conf; then
11289
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11552
    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' ' '`
11290
11553
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11291
11554
  fi
11292
11555
 
11361
11624
openbsd*)
11362
11625
  version_type=sunos
11363
11626
  need_lib_prefix=no
11364
 
  need_version=yes
 
11627
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11628
  case $host_os in
 
11629
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
11630
    *)                         need_version=no  ;;
 
11631
  esac
11365
11632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366
11633
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367
11634
  shlibpath_var=LD_LIBRARY_PATH
11483
11750
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11484
11751
hardcode_action_CXX=
11485
11752
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11486
 
   test -n "$runpath_var CXX" || \
11487
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11753
   test -n "$runpath_var_CXX" || \
 
11754
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11488
11755
 
11489
11756
  # We can hardcode non-existant directories.
11490
11757
  if test "$hardcode_direct_CXX" != no &&
12143
12410
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12144
12411
  lt_status=$lt_dlunknown
12145
12412
  cat > conftest.$ac_ext <<EOF
12146
 
#line 12146 "configure"
 
12413
#line 12413 "configure"
12147
12414
#include "confdefs.h"
12148
12415
 
12149
12416
#if HAVE_DLFCN_H
12209
12476
  ac_status=$?
12210
12477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211
12478
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12212
 
    (./conftest; exit; ) 2>/dev/null
 
12479
    (./conftest; exit; ) >&5 2>/dev/null
12213
12480
    lt_status=$?
12214
12481
    case x$lt_status in
12215
12482
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12241
12508
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12242
12509
  lt_status=$lt_dlunknown
12243
12510
  cat > conftest.$ac_ext <<EOF
12244
 
#line 12244 "configure"
 
12511
#line 12511 "configure"
12245
12512
#include "confdefs.h"
12246
12513
 
12247
12514
#if HAVE_DLFCN_H
12307
12574
  ac_status=$?
12308
12575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309
12576
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12310
 
    (./conftest; exit; ) 2>/dev/null
 
12577
    (./conftest; exit; ) >&5 2>/dev/null
12311
12578
    lt_status=$?
12312
12579
    case x$lt_status in
12313
12580
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12459
12726
# The host system.
12460
12727
host_alias=$host_alias
12461
12728
host=$host
 
12729
host_os=$host_os
 
12730
 
 
12731
# The build system.
 
12732
build_alias=$build_alias
 
12733
build=$build
 
12734
build_os=$build_os
12462
12735
 
12463
12736
# An echo program that does not interpret backslashes.
12464
12737
echo=$lt_echo
12535
12808
# Does compiler simultaneously support -c and -o options?
12536
12809
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12537
12810
 
12538
 
# Must we lock files when doing compilation ?
 
12811
# Must we lock files when doing compilation?
12539
12812
need_locks=$lt_need_locks
12540
12813
 
12541
12814
# Do we need the lib prefix for modules?
12816
13089
compiler=$CC
12817
13090
 
12818
13091
 
 
13092
# save warnings/boilerplate of simple test code
 
13093
ac_outfile=conftest.$ac_objext
 
13094
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13095
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13096
_lt_compiler_boilerplate=`cat conftest.err`
 
13097
$rm conftest*
 
13098
 
 
13099
ac_outfile=conftest.$ac_objext
 
13100
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13101
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13102
_lt_linker_boilerplate=`cat conftest.err`
 
13103
$rm conftest*
 
13104
 
 
13105
 
12819
13106
# Allow CC to be a program name with arguments.
12820
13107
lt_save_CC="$CC"
12821
13108
CC=${F77-"f77"}
12822
13109
compiler=$CC
12823
13110
compiler_F77=$CC
12824
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13111
for cc_temp in $compiler""; do
 
13112
  case $cc_temp in
 
13113
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13114
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13115
    \-*) ;;
 
13116
    *) break;;
 
13117
  esac
 
13118
done
 
13119
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13120
 
12825
13121
 
12826
13122
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12827
13123
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12834
13130
 
12835
13131
# On AIX, shared libraries and static libraries use the same namespace, and
12836
13132
# are all built from PIC.
12837
 
case "$host_os" in
 
13133
case $host_os in
12838
13134
aix3*)
12839
13135
  test "$enable_shared" = yes && enable_static=no
12840
13136
  if test -n "$RANLIB"; then
12843
13139
  fi
12844
13140
  ;;
12845
13141
aix4* | aix5*)
12846
 
  test "$enable_shared" = yes && enable_static=no
 
13142
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13143
    test "$enable_shared" = yes && enable_static=no
 
13144
  fi
12847
13145
  ;;
12848
13146
esac
12849
13147
echo "$as_me:$LINENO: result: $enable_shared" >&5
12920
13218
    hpux*)
12921
13219
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12922
13220
      # not for PA HP-UX.
12923
 
      case "$host_cpu" in
 
13221
      case $host_cpu in
12924
13222
      hppa*64*|ia64*)
12925
13223
        # +Z the default
12926
13224
        ;;
12946
13244
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12947
13245
      fi
12948
13246
      ;;
 
13247
      darwin*)
 
13248
        # PIC is the default on this platform
 
13249
        # Common symbols not allowed in MH_DYLIB files
 
13250
       case $cc_basename in
 
13251
         xlc*)
 
13252
         lt_prog_compiler_pic_F77='-qnocommon'
 
13253
         lt_prog_compiler_wl_F77='-Wl,'
 
13254
         ;;
 
13255
       esac
 
13256
       ;;
12949
13257
 
12950
13258
    mingw* | pw32* | os2*)
12951
13259
      # This hack is so that the source file can tell whether it is being
12957
13265
      lt_prog_compiler_wl_F77='-Wl,'
12958
13266
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12959
13267
      # not for PA HP-UX.
12960
 
      case "$host_cpu" in
 
13268
      case $host_cpu in
12961
13269
      hppa*64*|ia64*)
12962
13270
        # +Z the default
12963
13271
        ;;
12981
13289
      ;;
12982
13290
 
12983
13291
    linux*)
12984
 
      case $CC in
 
13292
      case $cc_basename in
12985
13293
      icc* | ecc*)
12986
13294
        lt_prog_compiler_wl_F77='-Wl,'
12987
13295
        lt_prog_compiler_pic_F77='-KPIC'
12988
13296
        lt_prog_compiler_static_F77='-static'
12989
13297
        ;;
 
13298
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13299
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13300
        # which looks to be a dead project)
 
13301
        lt_prog_compiler_wl_F77='-Wl,'
 
13302
        lt_prog_compiler_pic_F77='-fpic'
 
13303
        lt_prog_compiler_static_F77='-Bstatic'
 
13304
        ;;
12990
13305
      ccc*)
12991
13306
        lt_prog_compiler_wl_F77='-Wl,'
12992
13307
        # All Alpha code is PIC.
13007
13322
      ;;
13008
13323
 
13009
13324
    solaris*)
13010
 
      lt_prog_compiler_wl_F77='-Wl,'
13011
13325
      lt_prog_compiler_pic_F77='-KPIC'
13012
13326
      lt_prog_compiler_static_F77='-Bstatic'
 
13327
      case $cc_basename in
 
13328
      f77* | f90* | f95*)
 
13329
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13330
      *)
 
13331
        lt_prog_compiler_wl_F77='-Wl,';;
 
13332
      esac
13013
13333
      ;;
13014
13334
 
13015
13335
    sunos4*)
13031
13351
      fi
13032
13352
      ;;
13033
13353
 
 
13354
    unicos*)
 
13355
      lt_prog_compiler_wl_F77='-Wl,'
 
13356
      lt_prog_compiler_can_build_shared_F77=no
 
13357
      ;;
 
13358
 
13034
13359
    uts4*)
13035
13360
      lt_prog_compiler_pic_F77='-pic'
13036
13361
      lt_prog_compiler_static_F77='-Bstatic'
13065
13390
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13066
13391
   # The option is referenced via a variable to avoid confusing sed.
13067
13392
   lt_compile=`echo "$ac_compile" | $SED \
13068
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13393
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13069
13394
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13070
13395
   -e 's:$: $lt_compiler_flag:'`
13071
 
   (eval echo "\"\$as_me:13071: $lt_compile\"" >&5)
 
13396
   (eval echo "\"\$as_me:13396: $lt_compile\"" >&5)
13072
13397
   (eval "$lt_compile" 2>conftest.err)
13073
13398
   ac_status=$?
13074
13399
   cat conftest.err >&5
13075
 
   echo "$as_me:13075: \$? = $ac_status" >&5
 
13400
   echo "$as_me:13400: \$? = $ac_status" >&5
13076
13401
   if (exit $ac_status) && test -s "$ac_outfile"; then
13077
13402
     # The compiler can only warn and ignore the option if not recognized
13078
 
     # So say no if there are warnings
13079
 
     if test ! -s conftest.err; then
 
13403
     # So say no if there are warnings other than the usual output.
 
13404
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13405
     $SED '/^$/d' conftest.err >conftest.er2
 
13406
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13080
13407
       lt_prog_compiler_pic_works_F77=yes
13081
13408
     fi
13082
13409
   fi
13097
13424
fi
13098
13425
 
13099
13426
fi
13100
 
case "$host_os" in
 
13427
case $host_os in
13101
13428
  # For platforms which do not support PIC, -DPIC is meaningless:
13102
13429
  *djgpp*)
13103
13430
    lt_prog_compiler_pic_F77=
13125
13452
   # Note that $ac_compile itself does not contain backslashes and begins
13126
13453
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13127
13454
   lt_compile=`echo "$ac_compile" | $SED \
13128
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13455
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13129
13456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130
13457
   -e 's:$: $lt_compiler_flag:'`
13131
 
   (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
 
13458
   (eval echo "\"\$as_me:13458: $lt_compile\"" >&5)
13132
13459
   (eval "$lt_compile" 2>out/conftest.err)
13133
13460
   ac_status=$?
13134
13461
   cat out/conftest.err >&5
13135
 
   echo "$as_me:13135: \$? = $ac_status" >&5
 
13462
   echo "$as_me:13462: \$? = $ac_status" >&5
13136
13463
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13137
13464
   then
13138
13465
     # The compiler can only warn and ignore the option if not recognized
13139
13466
     # So say no if there are warnings
13140
 
     if test ! -s out/conftest.err; then
 
13467
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13468
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13469
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13141
13470
       lt_cv_prog_compiler_c_o_F77=yes
13142
13471
     fi
13143
13472
   fi
13144
 
   chmod u+w .
 
13473
   chmod u+w . 2>&5
13145
13474
   $rm conftest*
13146
13475
   # SGI C++ compiler will create directory out/ii_files/ for
13147
13476
   # template instantiation
13217
13546
  # rely on this symbol name, it's probably fine to never include it in
13218
13547
  # preloaded symbol tables.
13219
13548
  extract_expsyms_cmds=
 
13549
  # Just being paranoid about ensuring that cc_basename is set.
 
13550
  for cc_temp in $compiler""; do
 
13551
  case $cc_temp in
 
13552
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13553
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13554
    \-*) ;;
 
13555
    *) break;;
 
13556
  esac
 
13557
done
 
13558
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13220
13559
 
13221
13560
  case $host_os in
13222
13561
  cygwin* | mingw* | pw32*)
13237
13576
    # If archive_cmds runs LD, not CC, wlarc should be empty
13238
13577
    wlarc='${wl}'
13239
13578
 
 
13579
    # Set some defaults for GNU ld with shared library support. These
 
13580
    # are reset later if shared libraries are not supported. Putting them
 
13581
    # here allows them to be overridden if necessary.
 
13582
    runpath_var=LD_RUN_PATH
 
13583
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13584
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13585
    # ancient GNU ld didn't support --whole-archive et. al.
 
13586
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13587
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13588
      else
 
13589
        whole_archive_flag_spec_F77=
 
13590
    fi
 
13591
    supports_anon_versioning=no
 
13592
    case `$LD -v 2>/dev/null` in
 
13593
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13594
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13595
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13596
      *\ 2.11.*) ;; # other 2.11 versions
 
13597
      *) supports_anon_versioning=yes ;;
 
13598
    esac
 
13599
 
13240
13600
    # See if GNU ld supports shared libraries.
13241
13601
    case $host_os in
13242
13602
    aix3* | aix4* | aix5*)
13287
13647
      allow_undefined_flag_F77=unsupported
13288
13648
      always_export_symbols_F77=no
13289
13649
      enable_shared_with_static_runtimes_F77=yes
13290
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13650
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13291
13651
 
13292
13652
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13293
13653
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13301
13661
        fi~
13302
13662
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13303
13663
      else
13304
 
        ld_shlibs=no
 
13664
        ld_shlibs_F77=no
 
13665
      fi
 
13666
      ;;
 
13667
 
 
13668
    linux*)
 
13669
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13670
        tmp_addflag=
 
13671
        case $cc_basename,$host_cpu in
 
13672
        pgcc*)                          # Portland Group C compiler
 
13673
          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'
 
13674
          tmp_addflag=' $pic_flag'
 
13675
          ;;
 
13676
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13677
          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'
 
13678
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13679
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13680
          tmp_addflag=' -i_dynamic' ;;
 
13681
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13682
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13683
        ifc* | ifort*)                  # Intel Fortran compiler
 
13684
          tmp_addflag=' -nofor_main' ;;
 
13685
        esac
 
13686
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13687
 
 
13688
        if test $supports_anon_versioning = yes; then
 
13689
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13690
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13691
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13692
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13693
        fi
 
13694
        link_all_deplibs_F77=no
 
13695
      else
 
13696
        ld_shlibs_F77=no
13305
13697
      fi
13306
13698
      ;;
13307
13699
 
13343
13735
      hardcode_shlibpath_var_F77=no
13344
13736
      ;;
13345
13737
 
13346
 
  linux*)
13347
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13348
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349
 
        archive_cmds_F77="$tmp_archive_cmds"
13350
 
      supports_anon_versioning=no
13351
 
      case `$LD -v 2>/dev/null` in
13352
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13353
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13354
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13355
 
        *\ 2.11.*) ;; # other 2.11 versions
13356
 
        *) supports_anon_versioning=yes ;;
13357
 
      esac
13358
 
      if test $supports_anon_versioning = yes; then
13359
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13360
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13361
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13362
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13363
 
      else
13364
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13365
 
      fi
13366
 
      link_all_deplibs_F77=no
13367
 
    else
13368
 
      ld_shlibs_F77=no
13369
 
    fi
13370
 
    ;;
13371
 
 
13372
13738
    *)
13373
13739
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374
13740
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379
13745
      ;;
13380
13746
    esac
13381
13747
 
13382
 
    if test "$ld_shlibs_F77" = yes; then
13383
 
      runpath_var=LD_RUN_PATH
13384
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13385
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13386
 
      # ancient GNU ld didn't support --whole-archive et. al.
13387
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13388
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13389
 
      else
13390
 
        whole_archive_flag_spec_F77=
13391
 
      fi
 
13748
    if test "$ld_shlibs_F77" = no; then
 
13749
      runpath_var=
 
13750
      hardcode_libdir_flag_spec_F77=
 
13751
      export_dynamic_flag_spec_F77=
 
13752
      whole_archive_flag_spec_F77=
13392
13753
    fi
13393
13754
  else
13394
13755
    # PORTME fill in a description of your system's linker (not GNU ld)
13452
13813
      link_all_deplibs_F77=yes
13453
13814
 
13454
13815
      if test "$GCC" = yes; then
13455
 
        case $host_os in aix4.012|aix4.012.*)
 
13816
        case $host_os in aix4.[012]|aix4.[012].*)
13456
13817
        # We only want to do this on AIX 4.2 and lower, the check
13457
13818
        # below for broken collect2 doesn't work under 4.3+
13458
13819
          collect2name=`${CC} -print-prog-name=collect2`
13473
13834
          fi
13474
13835
        esac
13475
13836
        shared_flag='-shared'
 
13837
        if test "$aix_use_runtimelinking" = yes; then
 
13838
          shared_flag="$shared_flag "'${wl}-G'
 
13839
        fi
13476
13840
      else
13477
13841
        # not using gcc
13478
13842
        if test "$host_cpu" = ia64; then
13597
13961
          # Exported symbols can be pulled into shared objects from archives
13598
13962
          whole_archive_flag_spec_F77=' '
13599
13963
          archive_cmds_need_lc_F77=yes
13600
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13964
          # This is similar to how AIX traditionally builds its shared libraries.
13601
13965
          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'
13602
13966
        fi
13603
13967
      fi
13611
13975
      ld_shlibs_F77=no
13612
13976
      ;;
13613
13977
 
13614
 
    bsdi4*)
 
13978
    bsdi[45]*)
13615
13979
      export_dynamic_flag_spec_F77=-rdynamic
13616
13980
      ;;
13617
13981
 
13632
13996
      old_archive_From_new_cmds_F77='true'
13633
13997
      # FIXME: Should let the user specify the lib program.
13634
13998
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13635
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13999
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13636
14000
      enable_shared_with_static_runtimes_F77=yes
13637
14001
      ;;
13638
14002
 
13639
14003
    darwin* | rhapsody*)
13640
 
    if test "$GXX" = yes ; then
 
14004
      case $host_os in
 
14005
        rhapsody* | darwin1.[012])
 
14006
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14007
         ;;
 
14008
       *) # Darwin 1.3 on
 
14009
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14010
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14011
         else
 
14012
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14013
             10.[012])
 
14014
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14015
               ;;
 
14016
             10.*)
 
14017
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14018
               ;;
 
14019
           esac
 
14020
         fi
 
14021
         ;;
 
14022
      esac
13641
14023
      archive_cmds_need_lc_F77=no
13642
 
      case "$host_os" in
13643
 
      rhapsody* | darwin1.[012])
13644
 
        allow_undefined_flag_F77='-undefined suppress'
13645
 
        ;;
13646
 
      *) # Darwin 1.3 on
13647
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13648
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13649
 
      else
13650
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
13651
 
          10.[012])
13652
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13653
 
            ;;
13654
 
          10.*)
13655
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
13656
 
            ;;
13657
 
        esac
13658
 
      fi
13659
 
        ;;
13660
 
      esac
13661
 
        lt_int_apple_cc_single_mod=no
13662
 
        output_verbose_link_cmd='echo'
13663
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13664
 
          lt_int_apple_cc_single_mod=yes
13665
 
        fi
13666
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13667
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13668
 
        else
13669
 
        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'
13670
 
      fi
13671
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13672
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13673
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13674
 
          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}'
13675
 
        else
13676
 
          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}'
13677
 
        fi
13678
 
          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}'
13679
14024
      hardcode_direct_F77=no
13680
14025
      hardcode_automatic_F77=yes
13681
14026
      hardcode_shlibpath_var_F77=unsupported
13682
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14027
      whole_archive_flag_spec_F77=''
13683
14028
      link_all_deplibs_F77=yes
 
14029
    if test "$GCC" = yes ; then
 
14030
        output_verbose_link_cmd='echo'
 
14031
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14032
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14033
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14034
      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}'
 
14035
      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}'
13684
14036
    else
13685
 
      ld_shlibs_F77=no
 
14037
      case $cc_basename in
 
14038
        xlc*)
 
14039
         output_verbose_link_cmd='echo'
 
14040
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14041
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14042
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14043
         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}'
 
14044
          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}'
 
14045
          ;;
 
14046
       *)
 
14047
         ld_shlibs_F77=no
 
14048
          ;;
 
14049
      esac
13686
14050
    fi
13687
14051
      ;;
13688
14052
 
13716
14080
      ;;
13717
14081
 
13718
14082
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13719
 
    freebsd* | kfreebsd*-gnu)
 
14083
    freebsd* | kfreebsd*-gnu | dragonfly*)
13720
14084
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13721
14085
      hardcode_libdir_flag_spec_F77='-R$libdir'
13722
14086
      hardcode_direct_F77=yes
13741
14105
 
13742
14106
    hpux10* | hpux11*)
13743
14107
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13744
 
        case "$host_cpu" in
 
14108
        case $host_cpu in
13745
14109
        hppa*64*|ia64*)
13746
14110
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13747
14111
          ;;
13750
14114
          ;;
13751
14115
        esac
13752
14116
      else
13753
 
        case "$host_cpu" in
 
14117
        case $host_cpu in
13754
14118
        hppa*64*|ia64*)
13755
14119
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13756
14120
          ;;
13760
14124
        esac
13761
14125
      fi
13762
14126
      if test "$with_gnu_ld" = no; then
13763
 
        case "$host_cpu" in
 
14127
        case $host_cpu in
13764
14128
        hppa*64*)
13765
14129
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13766
14130
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13827
14191
      hardcode_shlibpath_var_F77=no
13828
14192
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13829
14193
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14194
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13830
14195
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13831
14196
        export_dynamic_flag_spec_F77='${wl}-E'
13832
14197
      else
13872
14237
        allow_undefined_flag_F77=' -expect_unresolved \*'
13873
14238
        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'
13874
14239
        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~
13875
 
        $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'
 
14240
        $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'
13876
14241
 
13877
14242
        # Both c and cxx compiler support -rpath directly
13878
14243
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
13891
14256
    solaris*)
13892
14257
      no_undefined_flag_F77=' -z text'
13893
14258
      if test "$GCC" = yes; then
 
14259
        wlarc='${wl}'
13894
14260
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13895
14261
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13896
14262
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13897
14263
      else
 
14264
        wlarc=''
13898
14265
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899
14266
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13900
14267
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13903
14270
      hardcode_shlibpath_var_F77=no
13904
14271
      case $host_os in
13905
14272
      solaris2.[0-5] | solaris2.[0-5].*) ;;
13906
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13907
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14273
      *)
 
14274
        # The compiler driver will combine linker options so we
 
14275
        # cannot just pass the convience library names through
 
14276
        # without $wl, iff we do not link with $LD.
 
14277
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14278
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14279
        case $wlarc in
 
14280
        '')
 
14281
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14282
        *)
 
14283
          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' ;;
 
14284
        esac ;;
13908
14285
      esac
13909
14286
      link_all_deplibs_F77=yes
13910
14287
      ;;
14178
14555
  shlibpath_var=LIBRARY_PATH
14179
14556
  ;;
14180
14557
 
14181
 
bsdi4*)
 
14558
bsdi[45]*)
14182
14559
  version_type=linux
14183
14560
  need_version=no
14184
14561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206
14583
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14207
14584
      dldir=$destdir/`dirname \$dlpath`~
14208
14585
      test -d \$dldir || mkdir -p \$dldir~
14209
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14586
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14587
      chmod a+x \$dldir/$dlname'
14210
14588
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14211
14589
      dlpath=$dir/\$dldll~
14212
14590
       $rm \$dlpath'
14236
14614
      ;;
14237
14615
    pw32*)
14238
14616
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14239
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14617
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240
14618
      ;;
14241
14619
    esac
14242
14620
    ;;
14259
14637
  soname_spec='${libname}${release}${major}$shared_ext'
14260
14638
  shlibpath_overrides_runpath=yes
14261
14639
  shlibpath_var=DYLD_LIBRARY_PATH
14262
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14640
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14263
14641
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14264
14642
  if test "$GCC" = yes; then
14265
14643
    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"`
14294
14672
  dynamic_linker='GNU ld.so'
14295
14673
  ;;
14296
14674
 
14297
 
freebsd*)
14298
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14675
freebsd* | dragonfly*)
 
14676
  # DragonFly does not have aout.  When/if they implement a new
 
14677
  # versioning mechanism, adjust this.
 
14678
  if test -x /usr/bin/objformat; then
 
14679
    objformat=`/usr/bin/objformat`
 
14680
  else
 
14681
    case $host_os in
 
14682
    freebsd[123]*) objformat=aout ;;
 
14683
    *) objformat=elf ;;
 
14684
    esac
 
14685
  fi
14299
14686
  version_type=freebsd-$objformat
14300
14687
  case $version_type in
14301
14688
    freebsd-elf*)
14313
14700
  freebsd2*)
14314
14701
    shlibpath_overrides_runpath=yes
14315
14702
    ;;
14316
 
  freebsd3.01* | freebsdelf3.01*)
 
14703
  freebsd3.[01]* | freebsdelf3.[01]*)
14317
14704
    shlibpath_overrides_runpath=yes
14318
14705
    hardcode_into_libs=yes
14319
14706
    ;;
14340
14727
  version_type=sunos
14341
14728
  need_lib_prefix=no
14342
14729
  need_version=no
14343
 
  case "$host_cpu" in
 
14730
  case $host_cpu in
14344
14731
  ia64*)
14345
14732
    shrext_cmds='.so'
14346
14733
    hardcode_into_libs=yes
14439
14826
 
14440
14827
  # Append ld.so.conf contents to the search path
14441
14828
  if test -f /etc/ld.so.conf; then
14442
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14829
    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' ' '`
14443
14830
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14444
14831
  fi
14445
14832
 
14514
14901
openbsd*)
14515
14902
  version_type=sunos
14516
14903
  need_lib_prefix=no
14517
 
  need_version=yes
 
14904
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14905
  case $host_os in
 
14906
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14907
    *)                         need_version=no  ;;
 
14908
  esac
14518
14909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14519
14910
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14520
14911
  shlibpath_var=LD_LIBRARY_PATH
14636
15027
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14637
15028
hardcode_action_F77=
14638
15029
if test -n "$hardcode_libdir_flag_spec_F77" || \
14639
 
   test -n "$runpath_var F77" || \
14640
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15030
   test -n "$runpath_var_F77" || \
 
15031
   test "X$hardcode_automatic_F77" = "Xyes" ; then
14641
15032
 
14642
15033
  # We can hardcode non-existant directories.
14643
15034
  if test "$hardcode_direct_F77" != no &&
14814
15205
# The host system.
14815
15206
host_alias=$host_alias
14816
15207
host=$host
 
15208
host_os=$host_os
 
15209
 
 
15210
# The build system.
 
15211
build_alias=$build_alias
 
15212
build=$build
 
15213
build_os=$build_os
14817
15214
 
14818
15215
# An echo program that does not interpret backslashes.
14819
15216
echo=$lt_echo
14890
15287
# Does compiler simultaneously support -c and -o options?
14891
15288
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14892
15289
 
14893
 
# Must we lock files when doing compilation ?
 
15290
# Must we lock files when doing compilation?
14894
15291
need_locks=$lt_need_locks
14895
15292
 
14896
15293
# Do we need the lib prefix for modules?
15128
15525
lt_simple_compile_test_code="class foo {}\n"
15129
15526
 
15130
15527
# Code to be used in simple link tests
15131
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15528
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15132
15529
 
15133
15530
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15134
15531
 
15139
15536
compiler=$CC
15140
15537
 
15141
15538
 
 
15539
# save warnings/boilerplate of simple test code
 
15540
ac_outfile=conftest.$ac_objext
 
15541
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15543
_lt_compiler_boilerplate=`cat conftest.err`
 
15544
$rm conftest*
 
15545
 
 
15546
ac_outfile=conftest.$ac_objext
 
15547
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15549
_lt_linker_boilerplate=`cat conftest.err`
 
15550
$rm conftest*
 
15551
 
 
15552
 
15142
15553
# Allow CC to be a program name with arguments.
15143
15554
lt_save_CC="$CC"
15144
15555
CC=${GCJ-"gcj"}
15145
15556
compiler=$CC
15146
15557
compiler_GCJ=$CC
 
15558
for cc_temp in $compiler""; do
 
15559
  case $cc_temp in
 
15560
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15561
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15562
    \-*) ;;
 
15563
    *) break;;
 
15564
  esac
 
15565
done
 
15566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15567
 
15147
15568
 
15148
15569
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15149
15570
archive_cmds_need_lc_GCJ=no
15150
15571
 
 
15572
old_archive_cmds_GCJ=$old_archive_cmds
 
15573
 
15151
15574
## CAVEAT EMPTOR:
15152
15575
## There is no encapsulation within the following macros, do not change
15153
15576
## the running order or otherwise move them around unless you know exactly
15174
15597
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15175
15598
   # The option is referenced via a variable to avoid confusing sed.
15176
15599
   lt_compile=`echo "$ac_compile" | $SED \
15177
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15600
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15178
15601
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15179
15602
   -e 's:$: $lt_compiler_flag:'`
15180
 
   (eval echo "\"\$as_me:15180: $lt_compile\"" >&5)
 
15603
   (eval echo "\"\$as_me:15603: $lt_compile\"" >&5)
15181
15604
   (eval "$lt_compile" 2>conftest.err)
15182
15605
   ac_status=$?
15183
15606
   cat conftest.err >&5
15184
 
   echo "$as_me:15184: \$? = $ac_status" >&5
 
15607
   echo "$as_me:15607: \$? = $ac_status" >&5
15185
15608
   if (exit $ac_status) && test -s "$ac_outfile"; then
15186
15609
     # The compiler can only warn and ignore the option if not recognized
15187
 
     # So say no if there are warnings
15188
 
     if test ! -s conftest.err; then
 
15610
     # So say no if there are warnings other than the usual output.
 
15611
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15612
     $SED '/^$/d' conftest.err >conftest.er2
 
15613
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15189
15614
       lt_cv_prog_compiler_rtti_exceptions=yes
15190
15615
     fi
15191
15616
   fi
15262
15687
    hpux*)
15263
15688
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15264
15689
      # not for PA HP-UX.
15265
 
      case "$host_cpu" in
 
15690
      case $host_cpu in
15266
15691
      hppa*64*|ia64*)
15267
15692
        # +Z the default
15268
15693
        ;;
15288
15713
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15289
15714
      fi
15290
15715
      ;;
 
15716
      darwin*)
 
15717
        # PIC is the default on this platform
 
15718
        # Common symbols not allowed in MH_DYLIB files
 
15719
       case $cc_basename in
 
15720
         xlc*)
 
15721
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15722
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15723
         ;;
 
15724
       esac
 
15725
       ;;
15291
15726
 
15292
15727
    mingw* | pw32* | os2*)
15293
15728
      # This hack is so that the source file can tell whether it is being
15299
15734
      lt_prog_compiler_wl_GCJ='-Wl,'
15300
15735
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15301
15736
      # not for PA HP-UX.
15302
 
      case "$host_cpu" in
 
15737
      case $host_cpu in
15303
15738
      hppa*64*|ia64*)
15304
15739
        # +Z the default
15305
15740
        ;;
15323
15758
      ;;
15324
15759
 
15325
15760
    linux*)
15326
 
      case $CC in
 
15761
      case $cc_basename in
15327
15762
      icc* | ecc*)
15328
15763
        lt_prog_compiler_wl_GCJ='-Wl,'
15329
15764
        lt_prog_compiler_pic_GCJ='-KPIC'
15330
15765
        lt_prog_compiler_static_GCJ='-static'
15331
15766
        ;;
 
15767
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15768
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15769
        # which looks to be a dead project)
 
15770
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15771
        lt_prog_compiler_pic_GCJ='-fpic'
 
15772
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15773
        ;;
15332
15774
      ccc*)
15333
15775
        lt_prog_compiler_wl_GCJ='-Wl,'
15334
15776
        # All Alpha code is PIC.
15349
15791
      ;;
15350
15792
 
15351
15793
    solaris*)
15352
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15353
15794
      lt_prog_compiler_pic_GCJ='-KPIC'
15354
15795
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15796
      case $cc_basename in
 
15797
      f77* | f90* | f95*)
 
15798
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15799
      *)
 
15800
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15801
      esac
15355
15802
      ;;
15356
15803
 
15357
15804
    sunos4*)
15373
15820
      fi
15374
15821
      ;;
15375
15822
 
 
15823
    unicos*)
 
15824
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15825
      lt_prog_compiler_can_build_shared_GCJ=no
 
15826
      ;;
 
15827
 
15376
15828
    uts4*)
15377
15829
      lt_prog_compiler_pic_GCJ='-pic'
15378
15830
      lt_prog_compiler_static_GCJ='-Bstatic'
15407
15859
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15408
15860
   # The option is referenced via a variable to avoid confusing sed.
15409
15861
   lt_compile=`echo "$ac_compile" | $SED \
15410
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15862
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15411
15863
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15412
15864
   -e 's:$: $lt_compiler_flag:'`
15413
 
   (eval echo "\"\$as_me:15413: $lt_compile\"" >&5)
 
15865
   (eval echo "\"\$as_me:15865: $lt_compile\"" >&5)
15414
15866
   (eval "$lt_compile" 2>conftest.err)
15415
15867
   ac_status=$?
15416
15868
   cat conftest.err >&5
15417
 
   echo "$as_me:15417: \$? = $ac_status" >&5
 
15869
   echo "$as_me:15869: \$? = $ac_status" >&5
15418
15870
   if (exit $ac_status) && test -s "$ac_outfile"; then
15419
15871
     # The compiler can only warn and ignore the option if not recognized
15420
 
     # So say no if there are warnings
15421
 
     if test ! -s conftest.err; then
 
15872
     # So say no if there are warnings other than the usual output.
 
15873
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15874
     $SED '/^$/d' conftest.err >conftest.er2
 
15875
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15422
15876
       lt_prog_compiler_pic_works_GCJ=yes
15423
15877
     fi
15424
15878
   fi
15439
15893
fi
15440
15894
 
15441
15895
fi
15442
 
case "$host_os" in
 
15896
case $host_os in
15443
15897
  # For platforms which do not support PIC, -DPIC is meaningless:
15444
15898
  *djgpp*)
15445
15899
    lt_prog_compiler_pic_GCJ=
15467
15921
   # Note that $ac_compile itself does not contain backslashes and begins
15468
15922
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15469
15923
   lt_compile=`echo "$ac_compile" | $SED \
15470
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15924
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15471
15925
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15472
15926
   -e 's:$: $lt_compiler_flag:'`
15473
 
   (eval echo "\"\$as_me:15473: $lt_compile\"" >&5)
 
15927
   (eval echo "\"\$as_me:15927: $lt_compile\"" >&5)
15474
15928
   (eval "$lt_compile" 2>out/conftest.err)
15475
15929
   ac_status=$?
15476
15930
   cat out/conftest.err >&5
15477
 
   echo "$as_me:15477: \$? = $ac_status" >&5
 
15931
   echo "$as_me:15931: \$? = $ac_status" >&5
15478
15932
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15479
15933
   then
15480
15934
     # The compiler can only warn and ignore the option if not recognized
15481
15935
     # So say no if there are warnings
15482
 
     if test ! -s out/conftest.err; then
 
15936
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15937
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15938
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15483
15939
       lt_cv_prog_compiler_c_o_GCJ=yes
15484
15940
     fi
15485
15941
   fi
15486
 
   chmod u+w .
 
15942
   chmod u+w . 2>&5
15487
15943
   $rm conftest*
15488
15944
   # SGI C++ compiler will create directory out/ii_files/ for
15489
15945
   # template instantiation
15559
16015
  # rely on this symbol name, it's probably fine to never include it in
15560
16016
  # preloaded symbol tables.
15561
16017
  extract_expsyms_cmds=
 
16018
  # Just being paranoid about ensuring that cc_basename is set.
 
16019
  for cc_temp in $compiler""; do
 
16020
  case $cc_temp in
 
16021
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16022
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16023
    \-*) ;;
 
16024
    *) break;;
 
16025
  esac
 
16026
done
 
16027
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15562
16028
 
15563
16029
  case $host_os in
15564
16030
  cygwin* | mingw* | pw32*)
15579
16045
    # If archive_cmds runs LD, not CC, wlarc should be empty
15580
16046
    wlarc='${wl}'
15581
16047
 
 
16048
    # Set some defaults for GNU ld with shared library support. These
 
16049
    # are reset later if shared libraries are not supported. Putting them
 
16050
    # here allows them to be overridden if necessary.
 
16051
    runpath_var=LD_RUN_PATH
 
16052
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16053
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16054
    # ancient GNU ld didn't support --whole-archive et. al.
 
16055
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16056
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16057
      else
 
16058
        whole_archive_flag_spec_GCJ=
 
16059
    fi
 
16060
    supports_anon_versioning=no
 
16061
    case `$LD -v 2>/dev/null` in
 
16062
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16063
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16064
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16065
      *\ 2.11.*) ;; # other 2.11 versions
 
16066
      *) supports_anon_versioning=yes ;;
 
16067
    esac
 
16068
 
15582
16069
    # See if GNU ld supports shared libraries.
15583
16070
    case $host_os in
15584
16071
    aix3* | aix4* | aix5*)
15629
16116
      allow_undefined_flag_GCJ=unsupported
15630
16117
      always_export_symbols_GCJ=no
15631
16118
      enable_shared_with_static_runtimes_GCJ=yes
15632
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16119
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15633
16120
 
15634
16121
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15635
16122
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15643
16130
        fi~
15644
16131
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15645
16132
      else
15646
 
        ld_shlibs=no
 
16133
        ld_shlibs_GCJ=no
 
16134
      fi
 
16135
      ;;
 
16136
 
 
16137
    linux*)
 
16138
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16139
        tmp_addflag=
 
16140
        case $cc_basename,$host_cpu in
 
16141
        pgcc*)                          # Portland Group C compiler
 
16142
          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'
 
16143
          tmp_addflag=' $pic_flag'
 
16144
          ;;
 
16145
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16146
          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'
 
16147
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16148
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16149
          tmp_addflag=' -i_dynamic' ;;
 
16150
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16151
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16152
        ifc* | ifort*)                  # Intel Fortran compiler
 
16153
          tmp_addflag=' -nofor_main' ;;
 
16154
        esac
 
16155
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16156
 
 
16157
        if test $supports_anon_versioning = yes; then
 
16158
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16159
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16160
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16161
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16162
        fi
 
16163
        link_all_deplibs_GCJ=no
 
16164
      else
 
16165
        ld_shlibs_GCJ=no
15647
16166
      fi
15648
16167
      ;;
15649
16168
 
15685
16204
      hardcode_shlibpath_var_GCJ=no
15686
16205
      ;;
15687
16206
 
15688
 
  linux*)
15689
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691
 
        archive_cmds_GCJ="$tmp_archive_cmds"
15692
 
      supports_anon_versioning=no
15693
 
      case `$LD -v 2>/dev/null` in
15694
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15695
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15696
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15697
 
        *\ 2.11.*) ;; # other 2.11 versions
15698
 
        *) supports_anon_versioning=yes ;;
15699
 
      esac
15700
 
      if test $supports_anon_versioning = yes; then
15701
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15702
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15703
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15704
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15705
 
      else
15706
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15707
 
      fi
15708
 
      link_all_deplibs_GCJ=no
15709
 
    else
15710
 
      ld_shlibs_GCJ=no
15711
 
    fi
15712
 
    ;;
15713
 
 
15714
16207
    *)
15715
16208
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15716
16209
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15721
16214
      ;;
15722
16215
    esac
15723
16216
 
15724
 
    if test "$ld_shlibs_GCJ" = yes; then
15725
 
      runpath_var=LD_RUN_PATH
15726
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15727
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15728
 
      # ancient GNU ld didn't support --whole-archive et. al.
15729
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15730
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15731
 
      else
15732
 
        whole_archive_flag_spec_GCJ=
15733
 
      fi
 
16217
    if test "$ld_shlibs_GCJ" = no; then
 
16218
      runpath_var=
 
16219
      hardcode_libdir_flag_spec_GCJ=
 
16220
      export_dynamic_flag_spec_GCJ=
 
16221
      whole_archive_flag_spec_GCJ=
15734
16222
    fi
15735
16223
  else
15736
16224
    # PORTME fill in a description of your system's linker (not GNU ld)
15794
16282
      link_all_deplibs_GCJ=yes
15795
16283
 
15796
16284
      if test "$GCC" = yes; then
15797
 
        case $host_os in aix4.012|aix4.012.*)
 
16285
        case $host_os in aix4.[012]|aix4.[012].*)
15798
16286
        # We only want to do this on AIX 4.2 and lower, the check
15799
16287
        # below for broken collect2 doesn't work under 4.3+
15800
16288
          collect2name=`${CC} -print-prog-name=collect2`
15815
16303
          fi
15816
16304
        esac
15817
16305
        shared_flag='-shared'
 
16306
        if test "$aix_use_runtimelinking" = yes; then
 
16307
          shared_flag="$shared_flag "'${wl}-G'
 
16308
        fi
15818
16309
      else
15819
16310
        # not using gcc
15820
16311
        if test "$host_cpu" = ia64; then
15959
16450
          # Exported symbols can be pulled into shared objects from archives
15960
16451
          whole_archive_flag_spec_GCJ=' '
15961
16452
          archive_cmds_need_lc_GCJ=yes
15962
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16453
          # This is similar to how AIX traditionally builds its shared libraries.
15963
16454
          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'
15964
16455
        fi
15965
16456
      fi
15973
16464
      ld_shlibs_GCJ=no
15974
16465
      ;;
15975
16466
 
15976
 
    bsdi4*)
 
16467
    bsdi[45]*)
15977
16468
      export_dynamic_flag_spec_GCJ=-rdynamic
15978
16469
      ;;
15979
16470
 
15994
16485
      old_archive_From_new_cmds_GCJ='true'
15995
16486
      # FIXME: Should let the user specify the lib program.
15996
16487
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15997
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16488
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
15998
16489
      enable_shared_with_static_runtimes_GCJ=yes
15999
16490
      ;;
16000
16491
 
16001
16492
    darwin* | rhapsody*)
16002
 
    if test "$GXX" = yes ; then
 
16493
      case $host_os in
 
16494
        rhapsody* | darwin1.[012])
 
16495
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16496
         ;;
 
16497
       *) # Darwin 1.3 on
 
16498
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16499
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16500
         else
 
16501
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16502
             10.[012])
 
16503
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16504
               ;;
 
16505
             10.*)
 
16506
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16507
               ;;
 
16508
           esac
 
16509
         fi
 
16510
         ;;
 
16511
      esac
16003
16512
      archive_cmds_need_lc_GCJ=no
16004
 
      case "$host_os" in
16005
 
      rhapsody* | darwin1.[012])
16006
 
        allow_undefined_flag_GCJ='-undefined suppress'
16007
 
        ;;
16008
 
      *) # Darwin 1.3 on
16009
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16010
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16011
 
      else
16012
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16013
 
          10.[012])
16014
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16015
 
            ;;
16016
 
          10.*)
16017
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16018
 
            ;;
16019
 
        esac
16020
 
      fi
16021
 
        ;;
16022
 
      esac
16023
 
        lt_int_apple_cc_single_mod=no
16024
 
        output_verbose_link_cmd='echo'
16025
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16026
 
          lt_int_apple_cc_single_mod=yes
16027
 
        fi
16028
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16029
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16030
 
        else
16031
 
        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'
16032
 
      fi
16033
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16034
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16035
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16036
 
          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}'
16037
 
        else
16038
 
          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}'
16039
 
        fi
16040
 
          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}'
16041
16513
      hardcode_direct_GCJ=no
16042
16514
      hardcode_automatic_GCJ=yes
16043
16515
      hardcode_shlibpath_var_GCJ=unsupported
16044
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16516
      whole_archive_flag_spec_GCJ=''
16045
16517
      link_all_deplibs_GCJ=yes
 
16518
    if test "$GCC" = yes ; then
 
16519
        output_verbose_link_cmd='echo'
 
16520
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16521
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16522
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16523
      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}'
 
16524
      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}'
16046
16525
    else
16047
 
      ld_shlibs_GCJ=no
 
16526
      case $cc_basename in
 
16527
        xlc*)
 
16528
         output_verbose_link_cmd='echo'
 
16529
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16530
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16531
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16532
         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}'
 
16533
          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}'
 
16534
          ;;
 
16535
       *)
 
16536
         ld_shlibs_GCJ=no
 
16537
          ;;
 
16538
      esac
16048
16539
    fi
16049
16540
      ;;
16050
16541
 
16078
16569
      ;;
16079
16570
 
16080
16571
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16081
 
    freebsd* | kfreebsd*-gnu)
 
16572
    freebsd* | kfreebsd*-gnu | dragonfly*)
16082
16573
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16083
16574
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16084
16575
      hardcode_direct_GCJ=yes
16103
16594
 
16104
16595
    hpux10* | hpux11*)
16105
16596
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16106
 
        case "$host_cpu" in
 
16597
        case $host_cpu in
16107
16598
        hppa*64*|ia64*)
16108
16599
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16109
16600
          ;;
16112
16603
          ;;
16113
16604
        esac
16114
16605
      else
16115
 
        case "$host_cpu" in
 
16606
        case $host_cpu in
16116
16607
        hppa*64*|ia64*)
16117
16608
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16118
16609
          ;;
16122
16613
        esac
16123
16614
      fi
16124
16615
      if test "$with_gnu_ld" = no; then
16125
 
        case "$host_cpu" in
 
16616
        case $host_cpu in
16126
16617
        hppa*64*)
16127
16618
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16128
16619
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16189
16680
      hardcode_shlibpath_var_GCJ=no
16190
16681
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16191
16682
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16683
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16192
16684
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16193
16685
        export_dynamic_flag_spec_GCJ='${wl}-E'
16194
16686
      else
16234
16726
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16235
16727
        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'
16236
16728
        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~
16237
 
        $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'
 
16729
        $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'
16238
16730
 
16239
16731
        # Both c and cxx compiler support -rpath directly
16240
16732
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16253
16745
    solaris*)
16254
16746
      no_undefined_flag_GCJ=' -z text'
16255
16747
      if test "$GCC" = yes; then
 
16748
        wlarc='${wl}'
16256
16749
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16257
16750
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16258
16751
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16259
16752
      else
 
16753
        wlarc=''
16260
16754
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261
16755
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16262
16756
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16265
16759
      hardcode_shlibpath_var_GCJ=no
16266
16760
      case $host_os in
16267
16761
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16268
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16269
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16762
      *)
 
16763
        # The compiler driver will combine linker options so we
 
16764
        # cannot just pass the convience library names through
 
16765
        # without $wl, iff we do not link with $LD.
 
16766
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16767
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16768
        case $wlarc in
 
16769
        '')
 
16770
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16771
        *)
 
16772
          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' ;;
 
16773
        esac ;;
16270
16774
      esac
16271
16775
      link_all_deplibs_GCJ=yes
16272
16776
      ;;
16540
17044
  shlibpath_var=LIBRARY_PATH
16541
17045
  ;;
16542
17046
 
16543
 
bsdi4*)
 
17047
bsdi[45]*)
16544
17048
  version_type=linux
16545
17049
  need_version=no
16546
17050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568
17072
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16569
17073
      dldir=$destdir/`dirname \$dlpath`~
16570
17074
      test -d \$dldir || mkdir -p \$dldir~
16571
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17075
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17076
      chmod a+x \$dldir/$dlname'
16572
17077
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16573
17078
      dlpath=$dir/\$dldll~
16574
17079
       $rm \$dlpath'
16598
17103
      ;;
16599
17104
    pw32*)
16600
17105
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16601
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17106
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602
17107
      ;;
16603
17108
    esac
16604
17109
    ;;
16621
17126
  soname_spec='${libname}${release}${major}$shared_ext'
16622
17127
  shlibpath_overrides_runpath=yes
16623
17128
  shlibpath_var=DYLD_LIBRARY_PATH
16624
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17129
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16625
17130
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16626
17131
  if test "$GCC" = yes; then
16627
17132
    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"`
16656
17161
  dynamic_linker='GNU ld.so'
16657
17162
  ;;
16658
17163
 
16659
 
freebsd*)
16660
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17164
freebsd* | dragonfly*)
 
17165
  # DragonFly does not have aout.  When/if they implement a new
 
17166
  # versioning mechanism, adjust this.
 
17167
  if test -x /usr/bin/objformat; then
 
17168
    objformat=`/usr/bin/objformat`
 
17169
  else
 
17170
    case $host_os in
 
17171
    freebsd[123]*) objformat=aout ;;
 
17172
    *) objformat=elf ;;
 
17173
    esac
 
17174
  fi
16661
17175
  version_type=freebsd-$objformat
16662
17176
  case $version_type in
16663
17177
    freebsd-elf*)
16675
17189
  freebsd2*)
16676
17190
    shlibpath_overrides_runpath=yes
16677
17191
    ;;
16678
 
  freebsd3.01* | freebsdelf3.01*)
 
17192
  freebsd3.[01]* | freebsdelf3.[01]*)
16679
17193
    shlibpath_overrides_runpath=yes
16680
17194
    hardcode_into_libs=yes
16681
17195
    ;;
16702
17216
  version_type=sunos
16703
17217
  need_lib_prefix=no
16704
17218
  need_version=no
16705
 
  case "$host_cpu" in
 
17219
  case $host_cpu in
16706
17220
  ia64*)
16707
17221
    shrext_cmds='.so'
16708
17222
    hardcode_into_libs=yes
16801
17315
 
16802
17316
  # Append ld.so.conf contents to the search path
16803
17317
  if test -f /etc/ld.so.conf; then
16804
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17318
    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' ' '`
16805
17319
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16806
17320
  fi
16807
17321
 
16876
17390
openbsd*)
16877
17391
  version_type=sunos
16878
17392
  need_lib_prefix=no
16879
 
  need_version=yes
 
17393
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17394
  case $host_os in
 
17395
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17396
    *)                         need_version=no  ;;
 
17397
  esac
16880
17398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16881
17399
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16882
17400
  shlibpath_var=LD_LIBRARY_PATH
16998
17516
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16999
17517
hardcode_action_GCJ=
17000
17518
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17001
 
   test -n "$runpath_var GCJ" || \
17002
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17519
   test -n "$runpath_var_GCJ" || \
 
17520
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17003
17521
 
17004
17522
  # We can hardcode non-existant directories.
17005
17523
  if test "$hardcode_direct_GCJ" != no &&
17658
18176
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17659
18177
  lt_status=$lt_dlunknown
17660
18178
  cat > conftest.$ac_ext <<EOF
17661
 
#line 17661 "configure"
 
18179
#line 18179 "configure"
17662
18180
#include "confdefs.h"
17663
18181
 
17664
18182
#if HAVE_DLFCN_H
17724
18242
  ac_status=$?
17725
18243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726
18244
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17727
 
    (./conftest; exit; ) 2>/dev/null
 
18245
    (./conftest; exit; ) >&5 2>/dev/null
17728
18246
    lt_status=$?
17729
18247
    case x$lt_status in
17730
18248
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17756
18274
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17757
18275
  lt_status=$lt_dlunknown
17758
18276
  cat > conftest.$ac_ext <<EOF
17759
 
#line 17759 "configure"
 
18277
#line 18277 "configure"
17760
18278
#include "confdefs.h"
17761
18279
 
17762
18280
#if HAVE_DLFCN_H
17822
18340
  ac_status=$?
17823
18341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824
18342
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17825
 
    (./conftest; exit; ) 2>/dev/null
 
18343
    (./conftest; exit; ) >&5 2>/dev/null
17826
18344
    lt_status=$?
17827
18345
    case x$lt_status in
17828
18346
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17974
18492
# The host system.
17975
18493
host_alias=$host_alias
17976
18494
host=$host
 
18495
host_os=$host_os
 
18496
 
 
18497
# The build system.
 
18498
build_alias=$build_alias
 
18499
build=$build
 
18500
build_os=$build_os
17977
18501
 
17978
18502
# An echo program that does not interpret backslashes.
17979
18503
echo=$lt_echo
18050
18574
# Does compiler simultaneously support -c and -o options?
18051
18575
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18052
18576
 
18053
 
# Must we lock files when doing compilation ?
 
18577
# Must we lock files when doing compilation?
18054
18578
need_locks=$lt_need_locks
18055
18579
 
18056
18580
# Do we need the lib prefix for modules?
18298
18822
compiler=$CC
18299
18823
 
18300
18824
 
 
18825
# save warnings/boilerplate of simple test code
 
18826
ac_outfile=conftest.$ac_objext
 
18827
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18828
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18829
_lt_compiler_boilerplate=`cat conftest.err`
 
18830
$rm conftest*
 
18831
 
 
18832
ac_outfile=conftest.$ac_objext
 
18833
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18834
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18835
_lt_linker_boilerplate=`cat conftest.err`
 
18836
$rm conftest*
 
18837
 
 
18838
 
18301
18839
# Allow CC to be a program name with arguments.
18302
18840
lt_save_CC="$CC"
18303
18841
CC=${RC-"windres"}
18304
18842
compiler=$CC
18305
18843
compiler_RC=$CC
 
18844
for cc_temp in $compiler""; do
 
18845
  case $cc_temp in
 
18846
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18847
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18848
    \-*) ;;
 
18849
    *) break;;
 
18850
  esac
 
18851
done
 
18852
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18853
 
18306
18854
lt_cv_prog_compiler_c_o_RC=yes
18307
18855
 
18308
18856
# The else clause should only fire when bootstrapping the
18419
18967
# The host system.
18420
18968
host_alias=$host_alias
18421
18969
host=$host
 
18970
host_os=$host_os
 
18971
 
 
18972
# The build system.
 
18973
build_alias=$build_alias
 
18974
build=$build
 
18975
build_os=$build_os
18422
18976
 
18423
18977
# An echo program that does not interpret backslashes.
18424
18978
echo=$lt_echo
18495
19049
# Does compiler simultaneously support -c and -o options?
18496
19050
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18497
19051
 
18498
 
# Must we lock files when doing compilation ?
 
19052
# Must we lock files when doing compilation?
18499
19053
need_locks=$lt_need_locks
18500
19054
 
18501
19055
# Do we need the lib prefix for modules?
20009
20563
 
20010
20564
 fi
20011
20565
 
 
20566
 
 
20567
 opt="-Wno-non-virtual-dtor"
 
20568
 echo "$as_me:$LINENO: checking if $CXX accepts $opt" >&5
 
20569
echo $ECHO_N "checking if $CXX accepts $opt... $ECHO_C" >&6
 
20570
 echo 'void f(){}' > conftest.cc
 
20571
 if test -z "`${CXX} ${CXXFLAGS} ${OPTS} $opt -c conftest.cc 2>&1`"; then
 
20572
    echo "$as_me:$LINENO: result: yes" >&5
 
20573
echo "${ECHO_T}yes" >&6
 
20574
    rm conftest.*
 
20575
    OPTS="$OPTS -Wno-non-virtual-dtor"
 
20576
 else
 
20577
    echo "$as_me:$LINENO: result: no" >&5
 
20578
echo "${ECHO_T}no" >&6
 
20579
    rm conftest.*
 
20580
 
 
20581
 fi
 
20582
 
20012
20583
   fi
20013
20584
   case x"$ac_debug" in
20014
20585
     x[0-9])  OPTS="$OPTS -DDEBUGLVL=$ac_debug" ;;
23148
23719
  if test x$ac_jpeg = xyes ; then
23149
23720
     test x${JPEG_LIBS+set} != xset && JPEG_LIBS="-ljpeg"
23150
23721
  elif test x$ac_jpeg != xno ; then
23151
 
     test x${JPEG_LIBS+set} != xset && JPEG_LIBS="-L$ac_jpeg -ljpeg"
23152
 
     test x${JPEG_CFLAGS+set} != xset && JPEG_CFLAGS="-I$ac_jpeg"
 
23722
     test x${JPEG_LIBS+set} != xset && JPEG_LIBS="-L$ac_jpeg/lib -ljpeg"
 
23723
     test x${JPEG_CFLAGS+set} != xset && JPEG_CFLAGS="-I$ac_jpeg/include"
23153
23724
  fi
23154
23725
  # Try linking
23155
23726
  if test x$ac_jpeg != xno ; then
23258
23829
  if test x$ac_tiff = xyes ; then
23259
23830
     test x${TIFF_LIBS+set} != xset && TIFF_LIBS="-ltiff"
23260
23831
  elif test x$ac_tiff != xno ; then
23261
 
     test x${TIFF_LIBS+set} != xset && TIFF_LIBS="-L$ac_tiff -ltiff"
23262
 
     test x${TIFF_CFLAGS+set} != xset && TIFF_CFLAGS="-I$ac_tiff"
 
23832
     test x${TIFF_LIBS+set} != xset && TIFF_LIBS="-L$ac_tiff/lib -ltiff"
 
23833
     test x${TIFF_CFLAGS+set} != xset && TIFF_CFLAGS="-I$ac_tiff/include"
23263
23834
  fi
23264
23835
  # Try linking
23265
23836
  if test x$ac_tiff != xno ; then
23907
24478
fi
23908
24479
 
23909
24480
 
 
24481
 
 
24482
 
23910
24483
echo "$as_me:$LINENO: checking threading model" >&5
23911
24484
echo $ECHO_N "checking threading model... $ECHO_C" >&6
23912
24485
echo "$as_me:$LINENO: result: $ac_threads" >&5
25622
26195
                      break 3
25623
26196
                  fi
25624
26197
              done
 
26198
              for l in libqt.dll.a libqt-mt.dll.a libqt-mt.la libqt.a libqt-mt.a; do
 
26199
                  if test -r $d/$lib/$n/$lib/$l ; then
 
26200
                      QT_CFLAGS="-I$d/include/$n"
 
26201
                      QT_LIBS="-L$d/$lib/$n/$lib -lqt"
 
26202
                      QTDIR=$d/$lib/$n
 
26203
                      ac_has_qt="cygwin-style Qt install"
 
26204
                      break 3
 
26205
                  fi
 
26206
              done
25625
26207
              for l in libqt.so libqt-mt.so libqt-mt.dylib libqt.a libqt-mt.a; do
25626
26208
                  if test -r $d/$lib/$l ; then
25627
26209
                      QT_CFLAGS="-I$d/include/$n"
26093
26675
 
26094
26676
   if test $ac_desktopfiles != no
26095
26677
   then
26096
 
       # kde-config
 
26678
       # kde-config, kde-version
26097
26679
       KDE_CONFIG=
26098
26680
       # Extract the first word of "kde-config", so it can be a program name with args.
26099
26681
set dummy kde-config; ac_word=$2
26138
26720
       # dtop_menu
26139
26721
       echo "$as_me:$LINENO: checking for Debian menu directory" >&5
26140
26722
echo $ECHO_N "checking for Debian menu directory... $ECHO_C" >&6
26141
 
       if test -d /etc/menu-methods -a -d /usr/lib/menu ; then
 
26723
       if test -d /etc/menu-methods -a -d /usr/share/menu ; then
 
26724
           dtop_menu="/usr/share/menu"
 
26725
       elif test -d /etc/menu-methods -a -d /usr/lib/menu ; then
26142
26726
           dtop_menu="/usr/lib/menu"
26143
26727
       fi
26144
26728
 
26155
26739
echo "${ECHO_T}${dtop_menu:-no}" >&6
26156
26740
 
26157
26741
       # dtop_applications
26158
 
       if test -z "$dtop_menu" ; then
26159
 
           echo "$as_me:$LINENO: checking for XDG menu directory" >&5
 
26742
       echo "$as_me:$LINENO: checking for XDG menu directory" >&5
26160
26743
echo $ECHO_N "checking for XDG menu directory... $ECHO_C" >&6
26161
 
           if test -d /usr/share/applications ; then
26162
 
               if test -r /etc/xdg/menus/applications.menu ||
26163
 
                  test -r /etc/X11/desktop-menus/applications.menu ; then
26164
 
                    dtop_applications="/usr/share/applications"
26165
 
               fi
 
26744
       if test -d /usr/share/applications ; then
 
26745
           if test -r /etc/xdg/menus/applications.menu ||
 
26746
              test -r /etc/X11/desktop-menus/applications.menu ; then
 
26747
                dtop_applications="/usr/share/applications"
26166
26748
           fi
 
26749
       fi
26167
26750
 
26168
26751
    xdir="`eval echo \"$libdir\"`"
26169
26752
    dtop_applications=`echo $dtop_applications | sed -e 's:^'"$xdir"'/:${libdir}/:'`
26174
26757
    xdir="`eval echo \"$prefix\"`"
26175
26758
    dtop_applications=`echo $dtop_applications | sed -e 's:^'"$xdir"'/:${prefix}/:'`
26176
26759
 
26177
 
           echo "$as_me:$LINENO: result: ${dtop_applications:-no}" >&5
 
26760
       echo "$as_me:$LINENO: result: ${dtop_applications:-no}" >&5
26178
26761
echo "${ECHO_T}${dtop_applications:-no}" >&6
26179
 
       fi
26180
26762
 
26181
26763
       # dtop_pixmaps
26182
26764
       echo "$as_me:$LINENO: checking for Gnome icon directory" >&5
26282
26864
       # dtop_mimelnk
26283
26865
       echo "$as_me:$LINENO: checking for KDE mimetype directory" >&5
26284
26866
echo $ECHO_N "checking for KDE mimetype directory... $ECHO_C" >&6
 
26867
       cause=no
26285
26868
       if test -x "$KDE_CONFIG" ; then
26286
26869
           dtop_mimelnk=`$KDE_CONFIG --expandvars --install mime`
 
26870
           case "`$KDE_CONFIG --version | grep KDE`" in
 
26871
              *3.[5-9]*) dtop_mimelnk=''; cause='no need (kde>=3.5)' ;;
 
26872
              *) ;;
 
26873
           esac
26287
26874
       elif test -d "/usr/share/mimelnk" ; then
26288
26875
           dtop_mimelnk="/usr/share/mimelnk"
26289
26876
       fi
 
26877
       if test "${kde_version-0}" -ge 343 ; then
 
26878
           dtop_mimelnk=""
 
26879
           cause="no (kde>=3.4.5)"
 
26880
       fi
26290
26881
 
26291
26882
    xdir="`eval echo \"$libdir\"`"
26292
26883
    dtop_mimelnk=`echo $dtop_mimelnk | sed -e 's:^'"$xdir"'/:${libdir}/:'`
26297
26888
    xdir="`eval echo \"$prefix\"`"
26298
26889
    dtop_mimelnk=`echo $dtop_mimelnk | sed -e 's:^'"$xdir"'/:${prefix}/:'`
26299
26890
 
26300
 
       echo "$as_me:$LINENO: result: ${dtop_mimelnk:-no}" >&5
26301
 
echo "${ECHO_T}${dtop_mimelnk:-no}" >&6
 
26891
       echo "$as_me:$LINENO: result: ${dtop_mimelnk:-$cause}" >&5
 
26892
echo "${ECHO_T}${dtop_mimelnk:-$cause}" >&6
26302
26893
   fi
26303
26894
 
26304
26895
 
26534
27125
 
26535
27126
          ac_config_files="$ac_config_files libdjvu/Makefile"
26536
27127
 
 
27128
          ac_config_files="$ac_config_files libdjvu/ddjvuapi.pc"
 
27129
 
26537
27130
          ac_config_files="$ac_config_files tools/Makefile"
26538
27131
 
26539
27132
          ac_config_files="$ac_config_files tools/jb2cmp/Makefile"
26921
27514
} >&5
26922
27515
cat >&5 <<_CSEOF
26923
27516
 
26924
 
This file was extended by djvulibre $as_me 3.5.16, which was
 
27517
This file was extended by djvulibre $as_me 3.5.17, which was
26925
27518
generated by GNU Autoconf 2.59.  Invocation command line was
26926
27519
 
26927
27520
  CONFIG_FILES    = $CONFIG_FILES
26981
27574
 
26982
27575
cat >>$CONFIG_STATUS <<_ACEOF
26983
27576
ac_cs_version="\\
26984
 
djvulibre config.status 3.5.16
 
27577
djvulibre config.status 3.5.17
26985
27578
configured by $0, generated by GNU Autoconf 2.59,
26986
27579
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26987
27580
 
27086
27679
  # Handling of arguments.
27087
27680
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27088
27681
  "libdjvu/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdjvu/Makefile" ;;
 
27682
  "libdjvu/ddjvuapi.pc" ) CONFIG_FILES="$CONFIG_FILES libdjvu/ddjvuapi.pc" ;;
27089
27683
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27090
27684
  "tools/jb2cmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/jb2cmp/Makefile" ;;
27091
27685
  "xmltools/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmltools/Makefile" ;;