~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2010-01-23 05:08:37 UTC
  • mfrom: (8.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100123050837-rh5465ophfkjpsn2
Tags: 2.0.5-3
* Fix replace/drop bogus and/or obsolete configure options:
  + Use --without-ssl-dir/--with-ssl-dir (not --with-openssl-dir/
    --without-openssl-dir). Closes: bug#565969, thanks to Fabian
    Greffrath.
  + Use --enable-tcp-wrappers (not --with-tcp-wrappers).
  + Use --disable-srvloc (not --disable-slp).
  + Drop --disable-logger (obsolete since 2.0.1).
  + Drop --with-mangling (apparently obsolete since 2.0 alpha 1).
  + Drop --with-nls-dir and --without-xfs (apparently obsolete).
* Autoreconfigure during build (since upstream does not enable
  maintainer-mode). Disable autotools-related patches. Build-depend on
  libtool, automake1.11 and autoconf. Closes: bug#559060, thanks to
  Cyril Brulebois and others.
* Add safety-check to fail build if accidentally linked against
  libssl. Thanks to Fabian Greffrath (see bug#565969).
* Disable atalkd by default, to not require supported network active
  at daemon start time. Closes: bug#565568, thanks to Kurt Roeckx.
  Add NEWS entry about the change.
* Build-depend on and enable hardening-includes.
* Fix adjust "See also" of manpages referring to afile or achfile.
* Set urgency=medium as earlier lack of explicit disabling openssl
  caused the package to violate licensing for some architectures, also
  affecting testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
860
860
am__fastdepCC_TRUE
861
861
am__fastdepCC_FALSE
862
862
LN_S
 
863
SED
863
864
EGREP
864
865
ECHO
865
866
AR
866
867
RANLIB
 
868
DSYMUTIL
 
869
NMEDIT
867
870
CPP
868
871
CXX
869
872
CXXFLAGS
4032
4035
  test -z "$as_dir" && as_dir=.
4033
4036
  for lt_ac_prog in sed gsed; do
4034
4037
    for ac_exec_ext in '' $ac_executable_extensions; do
4035
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4038
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4036
4039
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4037
4040
      fi
4038
4041
    done
4039
4042
  done
4040
4043
done
 
4044
IFS=$as_save_IFS
4041
4045
lt_ac_max=0
4042
4046
lt_ac_count=0
4043
4047
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4072
4076
fi
4073
4077
 
4074
4078
SED=$lt_cv_path_SED
 
4079
 
4075
4080
{ echo "$as_me:$LINENO: result: $SED" >&5
4076
4081
echo "${ECHO_T}$SED" >&6; }
4077
4082
 
4390
4395
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4391
4396
NM="$lt_cv_path_NM"
4392
4397
 
4393
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4394
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4398
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4399
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4395
4400
if test "${lt_cv_deplibs_check_method+set}" = set; then
4396
4401
  echo $ECHO_N "(cached) $ECHO_C" >&6
4397
4402
else
4410
4415
# whether `pass_all' will *always* work, you probably want this one.
4411
4416
 
4412
4417
case $host_os in
4413
 
aix4* | aix5*)
 
4418
aix[4-9]*)
4414
4419
  lt_cv_deplibs_check_method=pass_all
4415
4420
  ;;
4416
4421
 
4432
4437
 
4433
4438
mingw* | pw32*)
4434
4439
  # Base MSYS/MinGW do not provide the 'file' command needed by
4435
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4436
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4437
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4440
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4441
  # unless we find 'file', for example because we are cross-compiling.
 
4442
  if ( file / ) >/dev/null 2>&1; then
 
4443
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4444
    lt_cv_file_magic_cmd='func_win32_libid'
 
4445
  else
 
4446
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4447
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4448
  fi
4438
4449
  ;;
4439
4450
 
4440
4451
darwin* | rhapsody*)
4479
4490
  esac
4480
4491
  ;;
4481
4492
 
4482
 
interix3*)
 
4493
interix[3-9]*)
4483
4494
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4484
4495
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4485
4496
  ;;
4529
4540
  lt_cv_deplibs_check_method=pass_all
4530
4541
  ;;
4531
4542
 
 
4543
rdos*)
 
4544
  lt_cv_deplibs_check_method=pass_all
 
4545
  ;;
 
4546
 
4532
4547
solaris*)
4533
4548
  lt_cv_deplibs_check_method=pass_all
4534
4549
  ;;
4615
4630
  ;;
4616
4631
*-*-irix6*)
4617
4632
  # Find out which ABI we are using.
4618
 
  echo '#line 4618 "configure"' > conftest.$ac_ext
 
4633
  echo '#line 4633 "configure"' > conftest.$ac_ext
4619
4634
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620
4635
  (eval $ac_compile) 2>&5
4621
4636
  ac_status=$?
4650
4665
  rm -rf conftest*
4651
4666
  ;;
4652
4667
 
4653
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4668
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4669
s390*-*linux*|sparc*-*linux*)
4654
4670
  # Find out which ABI we are using.
4655
4671
  echo 'int i;' > conftest.$ac_ext
4656
4672
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661
4677
    case `/usr/bin/file conftest.o` in
4662
4678
    *32-bit*)
4663
4679
      case $host in
 
4680
        x86_64-*kfreebsd*-gnu)
 
4681
          LD="${LD-ld} -m elf_i386_fbsd"
 
4682
          ;;
4664
4683
        x86_64-*linux*)
4665
4684
          LD="${LD-ld} -m elf_i386"
4666
4685
          ;;
4677
4696
      ;;
4678
4697
    *64-bit*)
4679
4698
      case $host in
 
4699
        x86_64-*kfreebsd*-gnu)
 
4700
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4701
          ;;
4680
4702
        x86_64-*linux*)
4681
4703
          LD="${LD-ld} -m elf_x86_64"
4682
4704
          ;;
4780
4802
    *64-bit*)
4781
4803
      case $lt_cv_prog_gnu_ld in
4782
4804
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4783
 
      *)    LD="${LD-ld} -64" ;;
 
4805
      *)
 
4806
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4807
          LD="${LD-ld} -64"
 
4808
        fi
 
4809
        ;;
4784
4810
      esac
4785
4811
      ;;
4786
4812
    esac
6377
6403
 
6378
6404
 
6379
6405
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6380
 
 
6381
6406
# find the maximum length of command line arguments
6382
6407
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6383
6408
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6464
6489
    fi
6465
6490
    ;;
6466
6491
  *)
6467
 
    # If test is not a shell built-in, we'll probably end up computing a
6468
 
    # maximum length that is only half of the actual maximum length, but
6469
 
    # we can't tell.
6470
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6492
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6493
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6494
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6495
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6496
    else
 
6497
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6498
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6472
6499
               = "XX$teststring") >/dev/null 2>&1 &&
6473
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6474
 
            lt_cv_sys_max_cmd_len=$new_result &&
6475
 
            test $i != 17 # 1/2 MB should be enough
6476
 
    do
6477
 
      i=`expr $i + 1`
6478
 
      teststring=$teststring$teststring
6479
 
    done
6480
 
    teststring=
6481
 
    # Add a significant safety factor because C++ compilers can tack on massive
6482
 
    # amounts of additional arguments before passing them to the linker.
6483
 
    # It appears as though 1/2 is a usable value.
6484
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6500
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6501
              lt_cv_sys_max_cmd_len=$new_result &&
 
6502
              test $i != 17 # 1/2 MB should be enough
 
6503
      do
 
6504
        i=`expr $i + 1`
 
6505
        teststring=$teststring$teststring
 
6506
      done
 
6507
      teststring=
 
6508
      # Add a significant safety factor because C++ compilers can tack on massive
 
6509
      # amounts of additional arguments before passing them to the linker.
 
6510
      # It appears as though 1/2 is a usable value.
 
6511
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6512
    fi
6485
6513
    ;;
6486
6514
  esac
6487
6515
 
6498
6526
 
6499
6527
 
6500
6528
 
 
6529
 
6501
6530
# Check for command to grab the raw symbol name followed by C symbol from nm.
6502
6531
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6503
6532
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6688
6717
    echo "$progname: failed program was:" >&5
6689
6718
    cat conftest.$ac_ext >&5
6690
6719
  fi
6691
 
  rm -f conftest* conftst*
 
6720
  rm -rf conftest* conftst*
6692
6721
 
6693
6722
  # Do not use the global_symbol_pipe unless it works.
6694
6723
  if test "$pipe_works" = yes; then
7086
7115
test -z "$ac_objext" && ac_objext=o
7087
7116
 
7088
7117
# Determine commands to create old-style static archives.
7089
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7118
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090
7119
old_postinstall_cmds='chmod 644 $oldlib'
7091
7120
old_postuninstall_cmds=
7092
7121
 
7248
7277
  ;;
7249
7278
esac
7250
7279
 
 
7280
 
 
7281
  case $host_os in
 
7282
    rhapsody* | darwin*)
 
7283
    if test -n "$ac_tool_prefix"; then
 
7284
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7285
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7288
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7290
else
 
7291
  if test -n "$DSYMUTIL"; then
 
7292
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7293
else
 
7294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7295
for as_dir in $PATH
 
7296
do
 
7297
  IFS=$as_save_IFS
 
7298
  test -z "$as_dir" && as_dir=.
 
7299
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7300
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7301
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7303
    break 2
 
7304
  fi
 
7305
done
 
7306
done
 
7307
IFS=$as_save_IFS
 
7308
 
 
7309
fi
 
7310
fi
 
7311
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7312
if test -n "$DSYMUTIL"; then
 
7313
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7314
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7315
else
 
7316
  { echo "$as_me:$LINENO: result: no" >&5
 
7317
echo "${ECHO_T}no" >&6; }
 
7318
fi
 
7319
 
 
7320
 
 
7321
fi
 
7322
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7323
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7324
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7325
set dummy dsymutil; ac_word=$2
 
7326
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7328
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7330
else
 
7331
  if test -n "$ac_ct_DSYMUTIL"; then
 
7332
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7333
else
 
7334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7335
for as_dir in $PATH
 
7336
do
 
7337
  IFS=$as_save_IFS
 
7338
  test -z "$as_dir" && as_dir=.
 
7339
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7341
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7342
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7343
    break 2
 
7344
  fi
 
7345
done
 
7346
done
 
7347
IFS=$as_save_IFS
 
7348
 
 
7349
fi
 
7350
fi
 
7351
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7352
if test -n "$ac_ct_DSYMUTIL"; then
 
7353
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7354
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7355
else
 
7356
  { echo "$as_me:$LINENO: result: no" >&5
 
7357
echo "${ECHO_T}no" >&6; }
 
7358
fi
 
7359
 
 
7360
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7361
    DSYMUTIL=":"
 
7362
  else
 
7363
    case $cross_compiling:$ac_tool_warned in
 
7364
yes:)
 
7365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7366
whose name does not start with the host triplet.  If you think this
 
7367
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7369
whose name does not start with the host triplet.  If you think this
 
7370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7371
ac_tool_warned=yes ;;
 
7372
esac
 
7373
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7374
  fi
 
7375
else
 
7376
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7377
fi
 
7378
 
 
7379
    if test -n "$ac_tool_prefix"; then
 
7380
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7381
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7382
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7384
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7386
else
 
7387
  if test -n "$NMEDIT"; then
 
7388
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7389
else
 
7390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7391
for as_dir in $PATH
 
7392
do
 
7393
  IFS=$as_save_IFS
 
7394
  test -z "$as_dir" && as_dir=.
 
7395
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7397
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7398
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7399
    break 2
 
7400
  fi
 
7401
done
 
7402
done
 
7403
IFS=$as_save_IFS
 
7404
 
 
7405
fi
 
7406
fi
 
7407
NMEDIT=$ac_cv_prog_NMEDIT
 
7408
if test -n "$NMEDIT"; then
 
7409
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7410
echo "${ECHO_T}$NMEDIT" >&6; }
 
7411
else
 
7412
  { echo "$as_me:$LINENO: result: no" >&5
 
7413
echo "${ECHO_T}no" >&6; }
 
7414
fi
 
7415
 
 
7416
 
 
7417
fi
 
7418
if test -z "$ac_cv_prog_NMEDIT"; then
 
7419
  ac_ct_NMEDIT=$NMEDIT
 
7420
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7421
set dummy nmedit; ac_word=$2
 
7422
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7424
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7426
else
 
7427
  if test -n "$ac_ct_NMEDIT"; then
 
7428
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7429
else
 
7430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7431
for as_dir in $PATH
 
7432
do
 
7433
  IFS=$as_save_IFS
 
7434
  test -z "$as_dir" && as_dir=.
 
7435
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7436
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7437
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7438
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7439
    break 2
 
7440
  fi
 
7441
done
 
7442
done
 
7443
IFS=$as_save_IFS
 
7444
 
 
7445
fi
 
7446
fi
 
7447
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7448
if test -n "$ac_ct_NMEDIT"; then
 
7449
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7450
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7451
else
 
7452
  { echo "$as_me:$LINENO: result: no" >&5
 
7453
echo "${ECHO_T}no" >&6; }
 
7454
fi
 
7455
 
 
7456
  if test "x$ac_ct_NMEDIT" = x; then
 
7457
    NMEDIT=":"
 
7458
  else
 
7459
    case $cross_compiling:$ac_tool_warned in
 
7460
yes:)
 
7461
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7462
whose name does not start with the host triplet.  If you think this
 
7463
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7464
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7465
whose name does not start with the host triplet.  If you think this
 
7466
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7467
ac_tool_warned=yes ;;
 
7468
esac
 
7469
    NMEDIT=$ac_ct_NMEDIT
 
7470
  fi
 
7471
else
 
7472
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7473
fi
 
7474
 
 
7475
 
 
7476
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7477
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7478
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7480
else
 
7481
  lt_cv_apple_cc_single_mod=no
 
7482
      if test -z "${LT_MULTI_MODULE}"; then
 
7483
   # By default we will add the -single_module flag. You can override
 
7484
   # by either setting the environment variable LT_MULTI_MODULE
 
7485
   # non-empty at configure time, or by adding -multi_module to the
 
7486
   # link flags.
 
7487
   echo "int foo(void){return 1;}" > conftest.c
 
7488
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7489
     -dynamiclib ${wl}-single_module conftest.c
 
7490
   if test -f libconftest.dylib; then
 
7491
     lt_cv_apple_cc_single_mod=yes
 
7492
     rm -rf libconftest.dylib*
 
7493
   fi
 
7494
   rm conftest.c
 
7495
      fi
 
7496
fi
 
7497
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7498
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7499
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7500
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7501
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7503
else
 
7504
  lt_cv_ld_exported_symbols_list=no
 
7505
      save_LDFLAGS=$LDFLAGS
 
7506
      echo "_main" > conftest.sym
 
7507
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7508
      cat >conftest.$ac_ext <<_ACEOF
 
7509
/* confdefs.h.  */
 
7510
_ACEOF
 
7511
cat confdefs.h >>conftest.$ac_ext
 
7512
cat >>conftest.$ac_ext <<_ACEOF
 
7513
/* end confdefs.h.  */
 
7514
 
 
7515
int
 
7516
main ()
 
7517
{
 
7518
 
 
7519
  ;
 
7520
  return 0;
 
7521
}
 
7522
_ACEOF
 
7523
rm -f conftest.$ac_objext conftest$ac_exeext
 
7524
if { (ac_try="$ac_link"
 
7525
case "(($ac_try" in
 
7526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7527
  *) ac_try_echo=$ac_try;;
 
7528
esac
 
7529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7530
  (eval "$ac_link") 2>conftest.er1
 
7531
  ac_status=$?
 
7532
  grep -v '^ *+' conftest.er1 >conftest.err
 
7533
  rm -f conftest.er1
 
7534
  cat conftest.err >&5
 
7535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7536
  (exit $ac_status); } && {
 
7537
         test -z "$ac_c_werror_flag" ||
 
7538
         test ! -s conftest.err
 
7539
       } && test -s conftest$ac_exeext &&
 
7540
       $as_test_x conftest$ac_exeext; then
 
7541
  lt_cv_ld_exported_symbols_list=yes
 
7542
else
 
7543
  echo "$as_me: failed program was:" >&5
 
7544
sed 's/^/| /' conftest.$ac_ext >&5
 
7545
 
 
7546
        lt_cv_ld_exported_symbols_list=no
 
7547
fi
 
7548
 
 
7549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7550
      conftest$ac_exeext conftest.$ac_ext
 
7551
   LDFLAGS="$save_LDFLAGS"
 
7552
 
 
7553
fi
 
7554
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7555
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7556
    case $host_os in
 
7557
    rhapsody* | darwin1.[0123])
 
7558
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7559
    darwin1.*)
 
7560
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7561
    darwin*)
 
7562
      # if running on 10.5 or later, the deployment target defaults
 
7563
      # to the OS version, if on x86, and 10.4, the deployment
 
7564
      # target defaults to 10.4. Don't you love it?
 
7565
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7566
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7567
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7568
   10.[012]*)
 
7569
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7570
   10.*)
 
7571
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7572
      esac
 
7573
    ;;
 
7574
  esac
 
7575
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7576
      _lt_dar_single_mod='$single_module'
 
7577
    fi
 
7578
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7579
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7580
    else
 
7581
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7582
    fi
 
7583
    if test "$DSYMUTIL" != ":"; then
 
7584
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7585
    else
 
7586
      _lt_dsymutil=
 
7587
    fi
 
7588
    ;;
 
7589
  esac
 
7590
 
 
7591
 
7251
7592
enable_dlopen=yes
7252
7593
enable_win32_dll=no
7253
7594
 
7286
7627
objext=$objext
7287
7628
 
7288
7629
# Code to be used in simple compile tests
7289
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7630
lt_simple_compile_test_code="int some_variable = 0;"
7290
7631
 
7291
7632
# Code to be used in simple link tests
7292
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7633
lt_simple_link_test_code='int main(){return(0);}'
7293
7634
 
7294
7635
 
7295
7636
# If no C compiler was specified, use CC.
7304
7645
 
7305
7646
# save warnings/boilerplate of simple test code
7306
7647
ac_outfile=conftest.$ac_objext
7307
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7648
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7308
7649
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7309
7650
_lt_compiler_boilerplate=`cat conftest.err`
7310
7651
$rm conftest*
7311
7652
 
7312
7653
ac_outfile=conftest.$ac_objext
7313
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7654
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7314
7655
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7315
7656
_lt_linker_boilerplate=`cat conftest.err`
7316
 
$rm conftest*
 
7657
$rm -r conftest*
7317
7658
 
7318
7659
 
7319
7660
 
7330
7671
else
7331
7672
  lt_cv_prog_compiler_rtti_exceptions=no
7332
7673
  ac_outfile=conftest.$ac_objext
7333
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7674
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7334
7675
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7335
7676
   # Insert the option either (1) after the last *FLAGS variable, or
7336
7677
   # (2) before a word containing "conftest.", or (3) at the end.
7341
7682
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7342
7683
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7343
7684
   -e 's:$: $lt_compiler_flag:'`
7344
 
   (eval echo "\"\$as_me:7344: $lt_compile\"" >&5)
 
7685
   (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7345
7686
   (eval "$lt_compile" 2>conftest.err)
7346
7687
   ac_status=$?
7347
7688
   cat conftest.err >&5
7348
 
   echo "$as_me:7348: \$? = $ac_status" >&5
 
7689
   echo "$as_me:7689: \$? = $ac_status" >&5
7349
7690
   if (exit $ac_status) && test -s "$ac_outfile"; then
7350
7691
     # The compiler can only warn and ignore the option if not recognized
7351
7692
     # So say no if there are warnings other than the usual output.
7396
7737
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7397
7738
      ;;
7398
7739
 
7399
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7740
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7400
7741
      # PIC is the default for these OSes.
7401
7742
      ;;
7402
7743
 
7403
 
    mingw* | pw32* | os2*)
 
7744
    mingw* | cygwin* | pw32* | os2*)
7404
7745
      # This hack is so that the source file can tell whether it is being
7405
7746
      # built for inclusion in a dll (and should export symbols for example).
 
7747
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7748
      # (--disable-auto-import) libraries
7406
7749
      lt_prog_compiler_pic='-DDLL_EXPORT'
7407
7750
      ;;
7408
7751
 
7412
7755
      lt_prog_compiler_pic='-fno-common'
7413
7756
      ;;
7414
7757
 
7415
 
    interix3*)
 
7758
    interix[3-9]*)
7416
7759
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7417
7760
      # Instead, we relocate shared libraries at runtime.
7418
7761
      ;;
7470
7813
       esac
7471
7814
       ;;
7472
7815
 
7473
 
    mingw* | pw32* | os2*)
 
7816
    mingw* | cygwin* | pw32* | os2*)
7474
7817
      # This hack is so that the source file can tell whether it is being
7475
7818
      # built for inclusion in a dll (and should export symbols for example).
7476
7819
      lt_prog_compiler_pic='-DDLL_EXPORT'
7522
7865
        # All Alpha code is PIC.
7523
7866
        lt_prog_compiler_static='-non_shared'
7524
7867
        ;;
 
7868
      *)
 
7869
        case `$CC -V 2>&1 | sed 5q` in
 
7870
        *Sun\ C*)
 
7871
          # Sun C 5.9
 
7872
          lt_prog_compiler_pic='-KPIC'
 
7873
          lt_prog_compiler_static='-Bstatic'
 
7874
          lt_prog_compiler_wl='-Wl,'
 
7875
          ;;
 
7876
        *Sun\ F*)
 
7877
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7878
          lt_prog_compiler_pic='-KPIC'
 
7879
          lt_prog_compiler_static='-Bstatic'
 
7880
          lt_prog_compiler_wl=''
 
7881
          ;;
 
7882
        esac
 
7883
        ;;
7525
7884
      esac
7526
7885
      ;;
7527
7886
 
7531
7890
      lt_prog_compiler_static='-non_shared'
7532
7891
      ;;
7533
7892
 
 
7893
    rdos*)
 
7894
      lt_prog_compiler_static='-non_shared'
 
7895
      ;;
 
7896
 
7534
7897
    solaris*)
7535
7898
      lt_prog_compiler_pic='-KPIC'
7536
7899
      lt_prog_compiler_static='-Bstatic'
7593
7956
 
7594
7957
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7595
7958
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7596
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7959
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7597
7960
  echo $ECHO_N "(cached) $ECHO_C" >&6
7598
7961
else
7599
 
  lt_prog_compiler_pic_works=no
 
7962
  lt_cv_prog_compiler_pic_works=no
7600
7963
  ac_outfile=conftest.$ac_objext
7601
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7964
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7602
7965
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7603
7966
   # Insert the option either (1) after the last *FLAGS variable, or
7604
7967
   # (2) before a word containing "conftest.", or (3) at the end.
7609
7972
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7610
7973
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7611
7974
   -e 's:$: $lt_compiler_flag:'`
7612
 
   (eval echo "\"\$as_me:7612: $lt_compile\"" >&5)
 
7975
   (eval echo "\"\$as_me:7975: $lt_compile\"" >&5)
7613
7976
   (eval "$lt_compile" 2>conftest.err)
7614
7977
   ac_status=$?
7615
7978
   cat conftest.err >&5
7616
 
   echo "$as_me:7616: \$? = $ac_status" >&5
 
7979
   echo "$as_me:7979: \$? = $ac_status" >&5
7617
7980
   if (exit $ac_status) && test -s "$ac_outfile"; then
7618
7981
     # The compiler can only warn and ignore the option if not recognized
7619
7982
     # So say no if there are warnings other than the usual output.
7620
7983
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7621
7984
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7622
7985
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7623
 
       lt_prog_compiler_pic_works=yes
 
7986
       lt_cv_prog_compiler_pic_works=yes
7624
7987
     fi
7625
7988
   fi
7626
7989
   $rm conftest*
7627
7990
 
7628
7991
fi
7629
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7630
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7992
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7993
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7631
7994
 
7632
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7995
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7633
7996
    case $lt_prog_compiler_pic in
7634
7997
     "" | " "*) ;;
7635
7998
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7656
8019
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7657
8020
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7658
8021
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7659
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8022
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7660
8023
  echo $ECHO_N "(cached) $ECHO_C" >&6
7661
8024
else
7662
 
  lt_prog_compiler_static_works=no
 
8025
  lt_cv_prog_compiler_static_works=no
7663
8026
   save_LDFLAGS="$LDFLAGS"
7664
8027
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7665
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8028
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7666
8029
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7667
8030
     # The linker can only warn and ignore the option if not recognized
7668
8031
     # So say no if there are warnings
7672
8035
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7673
8036
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7674
8037
       if diff conftest.exp conftest.er2 >/dev/null; then
7675
 
         lt_prog_compiler_static_works=yes
 
8038
         lt_cv_prog_compiler_static_works=yes
7676
8039
       fi
7677
8040
     else
7678
 
       lt_prog_compiler_static_works=yes
 
8041
       lt_cv_prog_compiler_static_works=yes
7679
8042
     fi
7680
8043
   fi
7681
 
   $rm conftest*
 
8044
   $rm -r conftest*
7682
8045
   LDFLAGS="$save_LDFLAGS"
7683
8046
 
7684
8047
fi
7685
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7686
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
8048
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8049
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7687
8050
 
7688
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8051
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7689
8052
    :
7690
8053
else
7691
8054
    lt_prog_compiler_static=
7702
8065
   mkdir conftest
7703
8066
   cd conftest
7704
8067
   mkdir out
7705
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8068
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7706
8069
 
7707
8070
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7708
8071
   # Insert the option either (1) after the last *FLAGS variable, or
7713
8076
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714
8077
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715
8078
   -e 's:$: $lt_compiler_flag:'`
7716
 
   (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
 
8079
   (eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
7717
8080
   (eval "$lt_compile" 2>out/conftest.err)
7718
8081
   ac_status=$?
7719
8082
   cat out/conftest.err >&5
7720
 
   echo "$as_me:7720: \$? = $ac_status" >&5
 
8083
   echo "$as_me:8083: \$? = $ac_status" >&5
7721
8084
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722
8085
   then
7723
8086
     # The compiler can only warn and ignore the option if not recognized
7797
8160
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7798
8161
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7799
8162
  # as well as any symbol that contains `d'.
7800
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8163
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7801
8164
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7802
8165
  # platforms (ab)use it in PIC code, but their linkers get confused if
7803
8166
  # the symbol is explicitly referenced.  Since portable code cannot
7804
8167
  # rely on this symbol name, it's probably fine to never include it in
7805
8168
  # preloaded symbol tables.
 
8169
  # Exclude shared library initialization/finalization symbols.
7806
8170
  extract_expsyms_cmds=
7807
8171
  # Just being paranoid about ensuring that cc_basename is set.
7808
8172
  for cc_temp in $compiler""; do
7861
8225
 
7862
8226
    # See if GNU ld supports shared libraries.
7863
8227
    case $host_os in
7864
 
    aix3* | aix4* | aix5*)
 
8228
    aix[3-9]*)
7865
8229
      # On AIX/PPC, the GNU linker is very broken
7866
8230
      if test "$host_cpu" != ia64; then
7867
8231
        ld_shlibs=no
7909
8273
      allow_undefined_flag=unsupported
7910
8274
      always_export_symbols=no
7911
8275
      enable_shared_with_static_runtimes=yes
7912
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8276
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7913
8277
 
7914
8278
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7915
8279
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927
8291
      fi
7928
8292
      ;;
7929
8293
 
7930
 
    interix3*)
 
8294
    interix[3-9]*)
7931
8295
      hardcode_direct=no
7932
8296
      hardcode_shlibpath_var=no
7933
8297
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7942
8306
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943
8307
      ;;
7944
8308
 
7945
 
    linux* | k*bsd*-gnu)
 
8309
    gnu* | linux* | k*bsd*-gnu)
7946
8310
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7947
8311
        tmp_addflag=
7948
8312
        case $cc_basename,$host_cpu in
7960
8324
        ifc* | ifort*)                  # Intel Fortran compiler
7961
8325
          tmp_addflag=' -nofor_main' ;;
7962
8326
        esac
7963
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8327
        case `$CC -V 2>&1 | sed 5q` in
 
8328
        *Sun\ C*)                       # Sun C 5.9
 
8329
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8330
          tmp_sharedflag='-G' ;;
 
8331
        *Sun\ F*)                       # Sun Fortran 8.3
 
8332
          tmp_sharedflag='-G' ;;
 
8333
        *)
 
8334
          tmp_sharedflag='-shared' ;;
 
8335
        esac
 
8336
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964
8337
 
7965
8338
        if test $supports_anon_versioning = yes; then
7966
8339
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7967
8340
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7968
8341
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7969
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8342
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7970
8343
        fi
7971
8344
        link_all_deplibs=no
7972
8345
      else
8072
8445
      fi
8073
8446
      ;;
8074
8447
 
8075
 
    aix4* | aix5*)
 
8448
    aix[4-9]*)
8076
8449
      if test "$host_cpu" = ia64; then
8077
8450
        # On IA64, the linker does run time linking by default, so we don't
8078
8451
        # have to do anything special.
8092
8465
        # Test if we are trying to use run time linking or normal
8093
8466
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8094
8467
        # need to do runtime linking.
8095
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8468
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8096
8469
          for ld_flag in $LDFLAGS; do
8097
8470
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8098
8471
            aix_use_runtimelinking=yes
8126
8499
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8127
8500
          then
8128
8501
          # We have reworked collect2
8129
 
          hardcode_direct=yes
 
8502
          :
8130
8503
          else
8131
8504
          # We have old collect2
8132
8505
          hardcode_direct=unsupported
8200
8573
       } && test -s conftest$ac_exeext &&
8201
8574
       $as_test_x conftest$ac_exeext; then
8202
8575
 
8203
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8204
 
}'`
 
8576
lt_aix_libpath_sed='
 
8577
    /Import File Strings/,/^$/ {
 
8578
        /^0/ {
 
8579
            s/^0  *\(.*\)$/\1/
 
8580
            p
 
8581
        }
 
8582
    }'
 
8583
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8205
8584
# Check for a 64-bit object if we didn't find anything.
8206
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8207
 
}'`; fi
 
8585
if test -z "$aix_libpath"; then
 
8586
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8587
fi
8208
8588
else
8209
8589
  echo "$as_me: failed program was:" >&5
8210
8590
sed 's/^/| /' conftest.$ac_ext >&5
8259
8639
       } && test -s conftest$ac_exeext &&
8260
8640
       $as_test_x conftest$ac_exeext; then
8261
8641
 
8262
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8263
 
}'`
 
8642
lt_aix_libpath_sed='
 
8643
    /Import File Strings/,/^$/ {
 
8644
        /^0/ {
 
8645
            s/^0  *\(.*\)$/\1/
 
8646
            p
 
8647
        }
 
8648
    }'
 
8649
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8264
8650
# Check for a 64-bit object if we didn't find anything.
8265
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8266
 
}'`; fi
 
8651
if test -z "$aix_libpath"; then
 
8652
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8653
fi
8267
8654
else
8268
8655
  echo "$as_me: failed program was:" >&5
8269
8656
sed 's/^/| /' conftest.$ac_ext >&5
8317
8704
      # The linker will automatically build a .lib file if we build a DLL.
8318
8705
      old_archive_From_new_cmds='true'
8319
8706
      # FIXME: Should let the user specify the lib program.
8320
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8707
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8321
8708
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8322
8709
      enable_shared_with_static_runtimes=yes
8323
8710
      ;;
8350
8737
      link_all_deplibs=yes
8351
8738
    if test "$GCC" = yes ; then
8352
8739
        output_verbose_link_cmd='echo'
8353
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8354
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8355
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8356
 
      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}'
8357
 
      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}'
 
8740
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8741
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8742
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8743
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8358
8744
    else
8359
8745
      case $cc_basename in
8360
8746
        xlc*)
8361
8747
         output_verbose_link_cmd='echo'
8362
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8748
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8363
8749
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8364
8750
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8365
 
         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}'
 
8751
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8366
8752
          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}'
8367
8753
          ;;
8368
8754
       *)
8524
8910
      ;;
8525
8911
 
8526
8912
    openbsd*)
8527
 
      hardcode_direct=yes
8528
 
      hardcode_shlibpath_var=no
8529
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8530
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8531
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8532
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8533
 
        export_dynamic_flag_spec='${wl}-E'
 
8913
      if test -f /usr/libexec/ld.so; then
 
8914
        hardcode_direct=yes
 
8915
        hardcode_shlibpath_var=no
 
8916
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8917
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8918
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8919
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8920
          export_dynamic_flag_spec='${wl}-E'
 
8921
        else
 
8922
          case $host_os in
 
8923
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8924
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8925
             hardcode_libdir_flag_spec='-R$libdir'
 
8926
             ;;
 
8927
           *)
 
8928
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8929
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8930
             ;;
 
8931
          esac
 
8932
        fi
8534
8933
      else
8535
 
       case $host_os in
8536
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8537
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8538
 
           hardcode_libdir_flag_spec='-R$libdir'
8539
 
           ;;
8540
 
         *)
8541
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8542
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8543
 
           ;;
8544
 
       esac
 
8934
        ld_shlibs=no
8545
8935
      fi
8546
8936
      ;;
8547
8937
 
8600
8990
      case $host_os in
8601
8991
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8602
8992
      *)
8603
 
        # The compiler driver will combine linker options so we
8604
 
        # cannot just pass the convience library names through
8605
 
        # without $wl, iff we do not link with $LD.
8606
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8993
        # The compiler driver will combine and reorder linker options,
 
8994
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8995
        # but is careful enough not to reorder.
8607
8996
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8608
 
        case $wlarc in
8609
 
        '')
8610
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8611
 
        *)
8612
 
          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' ;;
8613
 
        esac ;;
 
8997
        if test "$GCC" = yes; then
 
8998
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8999
        else
 
9000
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9001
        fi
 
9002
        ;;
8614
9003
      esac
8615
9004
      link_all_deplibs=yes
8616
9005
      ;;
8667
9056
      fi
8668
9057
      ;;
8669
9058
 
8670
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9059
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8671
9060
      no_undefined_flag='${wl}-z,text'
8672
9061
      archive_cmds_need_lc=no
8673
9062
      hardcode_shlibpath_var=no
8744
9133
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8745
9134
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8746
9135
      $rm conftest*
8747
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9136
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748
9137
 
8749
9138
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750
9139
  (eval $ac_compile) 2>&5
8802
9191
version_type=none
8803
9192
dynamic_linker="$host_os ld.so"
8804
9193
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9194
 
8805
9195
if test "$GCC" = yes; then
8806
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9196
  case $host_os in
 
9197
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9198
    *) lt_awk_arg="/^libraries:/" ;;
 
9199
  esac
 
9200
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9201
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8808
9202
    # if the path contains ";" then we assume it to be the separator
8809
9203
    # otherwise default to the standard path separator (i.e. ":") - it is
8810
9204
    # assumed that no part of a normal pathname contains ";" but that should
8811
9205
    # okay in the real world where ";" in dirpaths is itself problematic.
8812
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9206
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8813
9207
  else
8814
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9208
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8815
9209
  fi
 
9210
  # Ok, now we have the path, separated by spaces, we can step through it
 
9211
  # and add multilib dir if necessary.
 
9212
  lt_tmp_lt_search_path_spec=
 
9213
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9214
  for lt_sys_path in $lt_search_path_spec; do
 
9215
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9216
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9217
    else
 
9218
      test -d "$lt_sys_path" && \
 
9219
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9220
    fi
 
9221
  done
 
9222
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9223
BEGIN {RS=" "; FS="/|\n";} {
 
9224
  lt_foo="";
 
9225
  lt_count=0;
 
9226
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9227
    if ($lt_i != "" && $lt_i != ".") {
 
9228
      if ($lt_i == "..") {
 
9229
        lt_count++;
 
9230
      } else {
 
9231
        if (lt_count == 0) {
 
9232
          lt_foo="/" $lt_i lt_foo;
 
9233
        } else {
 
9234
          lt_count--;
 
9235
        }
 
9236
      }
 
9237
    }
 
9238
  }
 
9239
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9240
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9241
}'`
 
9242
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8816
9243
else
8817
9244
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8818
9245
fi
8833
9260
  soname_spec='${libname}${release}${shared_ext}$major'
8834
9261
  ;;
8835
9262
 
8836
 
aix4* | aix5*)
 
9263
aix[4-9]*)
8837
9264
  version_type=linux
8838
9265
  need_lib_prefix=no
8839
9266
  need_version=no
8972
9399
  shlibpath_overrides_runpath=yes
8973
9400
  shlibpath_var=DYLD_LIBRARY_PATH
8974
9401
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8975
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8976
 
  if test "$GCC" = yes; then
8977
 
    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"`
8978
 
  else
8979
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8980
 
  fi
 
9402
 
 
9403
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8981
9404
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8982
9405
  ;;
8983
9406
 
9031
9454
    shlibpath_overrides_runpath=no
9032
9455
    hardcode_into_libs=yes
9033
9456
    ;;
9034
 
  freebsd*) # from 4.6 on
 
9457
  *) # from 4.6 on, and DragonFly
9035
9458
    shlibpath_overrides_runpath=yes
9036
9459
    hardcode_into_libs=yes
9037
9460
    ;;
9094
9517
  postinstall_cmds='chmod 555 $lib'
9095
9518
  ;;
9096
9519
 
9097
 
interix3*)
 
9520
interix[3-9]*)
9098
9521
  version_type=linux
9099
9522
  need_lib_prefix=no
9100
9523
  need_version=no
9165
9588
 
9166
9589
  # Append ld.so.conf contents to the search path
9167
9590
  if test -f /etc/ld.so.conf; then
9168
 
    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' ' '`
 
9591
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9169
9592
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9170
9593
  fi
9171
9594
 
9271
9694
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9272
9695
  ;;
9273
9696
 
 
9697
rdos*)
 
9698
  dynamic_linker=no
 
9699
  ;;
 
9700
 
9274
9701
solaris*)
9275
9702
  version_type=linux
9276
9703
  need_lib_prefix=no
9367
9794
echo "${ECHO_T}$dynamic_linker" >&6; }
9368
9795
test "$dynamic_linker" = no && can_build_shared=no
9369
9796
 
 
9797
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9799
else
 
9800
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9801
fi
 
9802
 
 
9803
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9804
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9806
else
 
9807
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9808
fi
 
9809
 
 
9810
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9811
 
9370
9812
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9371
9813
if test "$GCC" = yes; then
9372
9814
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9424
9866
   darwin*)
9425
9867
       if test -n "$STRIP" ; then
9426
9868
         striplib="$STRIP -x"
 
9869
         old_striplib="$STRIP -S"
9427
9870
         { echo "$as_me:$LINENO: result: yes" >&5
9428
9871
echo "${ECHO_T}yes" >&6; }
9429
9872
       else
9685
10128
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9686
10129
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9687
10130
if test $ac_cv_lib_dld_shl_load = yes; then
9688
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10131
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9689
10132
else
9690
10133
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9691
10134
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9961
10404
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9962
10405
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9963
10406
if test $ac_cv_lib_dld_dld_link = yes; then
9964
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10407
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9965
10408
fi
9966
10409
 
9967
10410
 
10010
10453
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10011
10454
  lt_status=$lt_dlunknown
10012
10455
  cat > conftest.$ac_ext <<EOF
10013
 
#line 10013 "configure"
 
10456
#line 10456 "configure"
10014
10457
#include "confdefs.h"
10015
10458
 
10016
10459
#if HAVE_DLFCN_H
10110
10553
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10111
10554
  lt_status=$lt_dlunknown
10112
10555
  cat > conftest.$ac_ext <<EOF
10113
 
#line 10113 "configure"
 
10556
#line 10556 "configure"
10114
10557
#include "confdefs.h"
10115
10558
 
10116
10559
#if HAVE_DLFCN_H
10237
10680
  fi
10238
10681
  ;;
10239
10682
 
10240
 
aix4* | aix5*)
 
10683
aix[4-9]*)
10241
10684
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10242
10685
    test "$enable_shared" = yes && enable_static=no
10243
10686
  fi
10293
10736
    predeps \
10294
10737
    postdeps \
10295
10738
    compiler_lib_search_path \
 
10739
    compiler_lib_search_dirs \
10296
10740
    archive_cmds \
10297
10741
    archive_expsym_cmds \
10298
10742
    postinstall_cmds \
10308
10752
    module_cmds \
10309
10753
    module_expsym_cmds \
10310
10754
    lt_cv_prog_compiler_c_o \
 
10755
    fix_srcfile_path \
10311
10756
    exclude_expsyms \
10312
10757
    include_expsyms; do
10313
10758
 
10352
10797
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10353
10798
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10354
10799
#
10355
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10800
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10356
10801
# Free Software Foundation, Inc.
10357
10802
#
10358
10803
# This file is part of GNU Libtool:
10588
11033
# shared library.
10589
11034
postdeps=$lt_postdeps
10590
11035
 
 
11036
# The directories searched by this compiler when creating a shared
 
11037
# library
 
11038
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11039
 
10591
11040
# The library search path used internally by the compiler when linking
10592
11041
# a shared library.
10593
11042
compiler_lib_search_path=$lt_compiler_lib_search_path
10676
11125
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10677
11126
 
10678
11127
# Fix the shell variable \$srcfile for the compiler.
10679
 
fix_srcfile_path="$fix_srcfile_path"
 
11128
fix_srcfile_path=$lt_fix_srcfile_path
10680
11129
 
10681
11130
# Set to yes if exported symbols are required.
10682
11131
always_export_symbols=$always_export_symbols
10836
11285
predeps_CXX=
10837
11286
postdeps_CXX=
10838
11287
compiler_lib_search_path_CXX=
 
11288
compiler_lib_search_dirs_CXX=
10839
11289
 
10840
11290
# Source file extension for C++ test sources.
10841
11291
ac_ext=cpp
10845
11295
objext_CXX=$objext
10846
11296
 
10847
11297
# Code to be used in simple compile tests
10848
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11298
lt_simple_compile_test_code="int some_variable = 0;"
10849
11299
 
10850
11300
# Code to be used in simple link tests
10851
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11301
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10852
11302
 
10853
11303
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10854
11304
 
10864
11314
 
10865
11315
# save warnings/boilerplate of simple test code
10866
11316
ac_outfile=conftest.$ac_objext
10867
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11317
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10868
11318
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10869
11319
_lt_compiler_boilerplate=`cat conftest.err`
10870
11320
$rm conftest*
10871
11321
 
10872
11322
ac_outfile=conftest.$ac_objext
10873
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11323
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10874
11324
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10875
11325
_lt_linker_boilerplate=`cat conftest.err`
10876
 
$rm conftest*
 
11326
$rm -r conftest*
10877
11327
 
10878
11328
 
10879
11329
# Allow CC to be a program name with arguments.
11080
11530
    # FIXME: insert proper C++ library support
11081
11531
    ld_shlibs_CXX=no
11082
11532
    ;;
11083
 
  aix4* | aix5*)
 
11533
  aix[4-9]*)
11084
11534
    if test "$host_cpu" = ia64; then
11085
11535
      # On IA64, the linker does run time linking by default, so we don't
11086
11536
      # have to do anything special.
11093
11543
      # Test if we are trying to use run time linking or normal
11094
11544
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11095
11545
      # need to do runtime linking.
11096
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11546
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11097
11547
        for ld_flag in $LDFLAGS; do
11098
11548
          case $ld_flag in
11099
11549
          *-brtl*)
11129
11579
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11130
11580
        then
11131
11581
          # We have reworked collect2
11132
 
          hardcode_direct_CXX=yes
 
11582
          :
11133
11583
        else
11134
11584
          # We have old collect2
11135
11585
          hardcode_direct_CXX=unsupported
11203
11653
       } && test -s conftest$ac_exeext &&
11204
11654
       $as_test_x conftest$ac_exeext; then
11205
11655
 
11206
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11207
 
}'`
 
11656
lt_aix_libpath_sed='
 
11657
    /Import File Strings/,/^$/ {
 
11658
        /^0/ {
 
11659
            s/^0  *\(.*\)$/\1/
 
11660
            p
 
11661
        }
 
11662
    }'
 
11663
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208
11664
# Check for a 64-bit object if we didn't find anything.
11209
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11210
 
}'`; fi
 
11665
if test -z "$aix_libpath"; then
 
11666
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11667
fi
11211
11668
else
11212
11669
  echo "$as_me: failed program was:" >&5
11213
11670
sed 's/^/| /' conftest.$ac_ext >&5
11263
11720
       } && test -s conftest$ac_exeext &&
11264
11721
       $as_test_x conftest$ac_exeext; then
11265
11722
 
11266
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11267
 
}'`
 
11723
lt_aix_libpath_sed='
 
11724
    /Import File Strings/,/^$/ {
 
11725
        /^0/ {
 
11726
            s/^0  *\(.*\)$/\1/
 
11727
            p
 
11728
        }
 
11729
    }'
 
11730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11268
11731
# Check for a 64-bit object if we didn't find anything.
11269
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11270
 
}'`; fi
 
11732
if test -z "$aix_libpath"; then
 
11733
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11734
fi
11271
11735
else
11272
11736
  echo "$as_me: failed program was:" >&5
11273
11737
sed 's/^/| /' conftest.$ac_ext >&5
11337
11801
    fi
11338
11802
  ;;
11339
11803
      darwin* | rhapsody*)
11340
 
        case $host_os in
11341
 
        rhapsody* | darwin1.[012])
11342
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11343
 
         ;;
11344
 
       *) # Darwin 1.3 on
11345
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11346
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11347
 
         else
11348
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11349
 
             10.[012])
11350
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11351
 
               ;;
11352
 
             10.*)
11353
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11354
 
               ;;
11355
 
           esac
11356
 
         fi
11357
 
         ;;
11358
 
        esac
11359
11804
      archive_cmds_need_lc_CXX=no
11360
11805
      hardcode_direct_CXX=no
11361
11806
      hardcode_automatic_CXX=yes
11362
11807
      hardcode_shlibpath_var_CXX=unsupported
11363
11808
      whole_archive_flag_spec_CXX=''
11364
11809
      link_all_deplibs_CXX=yes
11365
 
 
11366
 
    if test "$GXX" = yes ; then
11367
 
      lt_int_apple_cc_single_mod=no
 
11810
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11811
      if test "$GXX" = yes ; then
11368
11812
      output_verbose_link_cmd='echo'
11369
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11370
 
       lt_int_apple_cc_single_mod=yes
 
11813
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11814
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11815
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11816
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11817
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11818
        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${_lt_dsymutil}"
 
11819
        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11371
11820
      fi
11372
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11373
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11374
 
      else
11375
 
          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'
11376
 
        fi
11377
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11378
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11379
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11380
 
            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}'
11381
 
          else
11382
 
            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}'
11383
 
          fi
11384
 
            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}'
11385
11821
      else
11386
11822
      case $cc_basename in
11387
11823
        xlc*)
11388
11824
         output_verbose_link_cmd='echo'
11389
 
          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'
 
11825
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11390
11826
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11391
11827
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11392
 
          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}'
 
11828
          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11393
11829
          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}'
11394
11830
          ;;
11395
11831
       *)
11472
11908
      hardcode_libdir_separator_CXX=:
11473
11909
 
11474
11910
      case $host_cpu in
11475
 
      hppa*64*|ia64*)
11476
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11477
 
        ;;
 
11911
      hppa*64*|ia64*) ;;
11478
11912
      *)
11479
11913
        export_dynamic_flag_spec_CXX='${wl}-E'
11480
11914
        ;;
11542
11976
        ;;
11543
11977
    esac
11544
11978
    ;;
11545
 
  interix3*)
 
11979
  interix[3-9]*)
11546
11980
    hardcode_direct_CXX=no
11547
11981
    hardcode_shlibpath_var_CXX=no
11548
11982
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11634
12068
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11635
12069
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11636
12070
        ;;
11637
 
      pgCC*)
 
12071
      pgCC* | pgcpp*)
11638
12072
        # Portland Group C++ compiler
11639
12073
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11640
12074
        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'
11662
12096
        # dependencies.
11663
12097
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11664
12098
        ;;
 
12099
      *)
 
12100
        case `$CC -V 2>&1 | sed 5q` in
 
12101
        *Sun\ C*)
 
12102
          # Sun C++ 5.9
 
12103
          no_undefined_flag_CXX=' -zdefs'
 
12104
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12105
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12106
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12107
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12108
 
 
12109
          # Not sure whether something based on
 
12110
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12111
          # would be better.
 
12112
          output_verbose_link_cmd='echo'
 
12113
 
 
12114
          # Archives containing C++ object files must be created using
 
12115
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12116
          # necessary to make sure instantiated templates are included
 
12117
          # in the archive.
 
12118
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12119
          ;;
 
12120
        esac
 
12121
        ;;
11665
12122
    esac
11666
12123
    ;;
11667
12124
  lynxos*)
11700
12157
    ld_shlibs_CXX=no
11701
12158
    ;;
11702
12159
  openbsd*)
11703
 
    hardcode_direct_CXX=yes
11704
 
    hardcode_shlibpath_var_CXX=no
11705
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11706
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11707
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11708
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11709
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11710
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12160
    if test -f /usr/libexec/ld.so; then
 
12161
      hardcode_direct_CXX=yes
 
12162
      hardcode_shlibpath_var_CXX=no
 
12163
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12164
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12165
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12166
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12167
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12168
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12169
      fi
 
12170
      output_verbose_link_cmd='echo'
 
12171
    else
 
12172
      ld_shlibs_CXX=no
11711
12173
    fi
11712
 
    output_verbose_link_cmd='echo'
11713
12174
    ;;
11714
12175
  osf3*)
11715
12176
    case $cc_basename in
11871
12332
        case $host_os in
11872
12333
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11873
12334
          *)
11874
 
            # The C++ compiler is used as linker so we must use $wl
11875
 
            # flag to pass the commands to the underlying system
11876
 
            # linker. We must also pass each convience library through
11877
 
            # to the system linker between allextract/defaultextract.
11878
 
            # The C++ compiler will combine linker options so we
11879
 
            # cannot just pass the convience library names through
11880
 
            # without $wl.
 
12335
            # The compiler driver will combine and reorder linker options,
 
12336
            # but understands `-z linker_flag'.
11881
12337
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11882
 
            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'
 
12338
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11883
12339
            ;;
11884
12340
        esac
11885
12341
        link_all_deplibs_CXX=yes
11926
12382
          fi
11927
12383
 
11928
12384
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12385
          case $host_os in
 
12386
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12387
          *)
 
12388
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12389
            ;;
 
12390
          esac
11929
12391
        fi
11930
12392
        ;;
11931
12393
    esac
12013
12475
GCC_CXX="$GXX"
12014
12476
LD_CXX="$LD"
12015
12477
 
12016
 
 
12017
12478
cat > conftest.$ac_ext <<EOF
12018
12479
class Foo
12019
12480
{
12115
12576
 
12116
12577
$rm -f confest.$objext
12117
12578
 
 
12579
compiler_lib_search_dirs_CXX=
 
12580
if test -n "$compiler_lib_search_path_CXX"; then
 
12581
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12582
fi
 
12583
 
12118
12584
# PORTME: override above test on systems where it is broken
12119
12585
case $host_os in
12120
 
interix3*)
 
12586
interix[3-9]*)
12121
12587
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12122
12588
  # hack all around it, let's just trust "g++" to DTRT.
12123
12589
  predep_objects_CXX=
12125
12591
  postdeps_CXX=
12126
12592
  ;;
12127
12593
 
 
12594
linux*)
 
12595
  case `$CC -V 2>&1 | sed 5q` in
 
12596
  *Sun\ C*)
 
12597
    # Sun C++ 5.9
 
12598
    #
 
12599
    # The more standards-conforming stlport4 library is
 
12600
    # incompatible with the Cstd library. Avoid specifying
 
12601
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12602
    # -library=stlport4 depends on it.
 
12603
    case " $CXX $CXXFLAGS " in
 
12604
    *" -library=stlport4 "*)
 
12605
      solaris_use_stlport4=yes
 
12606
      ;;
 
12607
    esac
 
12608
    if test "$solaris_use_stlport4" != yes; then
 
12609
      postdeps_CXX='-library=Cstd -library=Crun'
 
12610
    fi
 
12611
    ;;
 
12612
  esac
 
12613
  ;;
 
12614
 
12128
12615
solaris*)
12129
12616
  case $cc_basename in
12130
12617
  CC*)
 
12618
    # The more standards-conforming stlport4 library is
 
12619
    # incompatible with the Cstd library. Avoid specifying
 
12620
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12621
    # -library=stlport4 depends on it.
 
12622
    case " $CXX $CXXFLAGS " in
 
12623
    *" -library=stlport4 "*)
 
12624
      solaris_use_stlport4=yes
 
12625
      ;;
 
12626
    esac
 
12627
 
12131
12628
    # Adding this requires a known-good setup of shared libraries for
12132
12629
    # Sun compiler versions before 5.6, else PIC objects from an old
12133
12630
    # archive will be linked into the output, leading to subtle bugs.
12134
 
    postdeps_CXX='-lCstd -lCrun'
 
12631
    if test "$solaris_use_stlport4" != yes; then
 
12632
      postdeps_CXX='-library=Cstd -library=Crun'
 
12633
    fi
12135
12634
    ;;
12136
12635
  esac
12137
12636
  ;;
12138
12637
esac
12139
12638
 
12140
 
 
12141
12639
case " $postdeps_CXX " in
12142
12640
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12143
12641
esac
12168
12666
      # like `-m68040'.
12169
12667
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12170
12668
      ;;
12171
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12669
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12172
12670
      # PIC is the default for these OSes.
12173
12671
      ;;
12174
 
    mingw* | os2* | pw32*)
 
12672
    mingw* | cygwin* | os2* | pw32*)
12175
12673
      # This hack is so that the source file can tell whether it is being
12176
12674
      # built for inclusion in a dll (and should export symbols for example).
 
12675
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12676
      # (--disable-auto-import) libraries
12177
12677
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12178
12678
      ;;
12179
12679
    darwin* | rhapsody*)
12185
12685
      # DJGPP does not support shared libraries at all
12186
12686
      lt_prog_compiler_pic_CXX=
12187
12687
      ;;
12188
 
    interix3*)
 
12688
    interix[3-9]*)
12189
12689
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12190
12690
      # Instead, we relocate shared libraries at runtime.
12191
12691
      ;;
12211
12711
    esac
12212
12712
  else
12213
12713
    case $host_os in
12214
 
      aix4* | aix5*)
 
12714
      aix[4-9]*)
12215
12715
        # All AIX code is PIC.
12216
12716
        if test "$host_cpu" = ia64; then
12217
12717
          # AIX 5 now supports IA64 processor
12307
12807
            lt_prog_compiler_pic_CXX='-KPIC'
12308
12808
            lt_prog_compiler_static_CXX='-static'
12309
12809
            ;;
12310
 
          pgCC*)
 
12810
          pgCC* | pgcpp*)
12311
12811
            # Portland Group C++ compiler.
12312
12812
            lt_prog_compiler_wl_CXX='-Wl,'
12313
12813
            lt_prog_compiler_pic_CXX='-fpic'
12321
12821
            lt_prog_compiler_static_CXX='-non_shared'
12322
12822
            ;;
12323
12823
          *)
 
12824
            case `$CC -V 2>&1 | sed 5q` in
 
12825
            *Sun\ C*)
 
12826
              # Sun C++ 5.9
 
12827
              lt_prog_compiler_pic_CXX='-KPIC'
 
12828
              lt_prog_compiler_static_CXX='-Bstatic'
 
12829
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12830
              ;;
 
12831
            esac
12324
12832
            ;;
12325
12833
        esac
12326
12834
        ;;
12430
12938
 
12431
12939
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12432
12940
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12433
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12941
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12434
12942
  echo $ECHO_N "(cached) $ECHO_C" >&6
12435
12943
else
12436
 
  lt_prog_compiler_pic_works_CXX=no
 
12944
  lt_cv_prog_compiler_pic_works_CXX=no
12437
12945
  ac_outfile=conftest.$ac_objext
12438
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12946
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12439
12947
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12440
12948
   # Insert the option either (1) after the last *FLAGS variable, or
12441
12949
   # (2) before a word containing "conftest.", or (3) at the end.
12446
12954
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12447
12955
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12448
12956
   -e 's:$: $lt_compiler_flag:'`
12449
 
   (eval echo "\"\$as_me:12449: $lt_compile\"" >&5)
 
12957
   (eval echo "\"\$as_me:12957: $lt_compile\"" >&5)
12450
12958
   (eval "$lt_compile" 2>conftest.err)
12451
12959
   ac_status=$?
12452
12960
   cat conftest.err >&5
12453
 
   echo "$as_me:12453: \$? = $ac_status" >&5
 
12961
   echo "$as_me:12961: \$? = $ac_status" >&5
12454
12962
   if (exit $ac_status) && test -s "$ac_outfile"; then
12455
12963
     # The compiler can only warn and ignore the option if not recognized
12456
12964
     # So say no if there are warnings other than the usual output.
12457
12965
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12458
12966
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12459
12967
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12460
 
       lt_prog_compiler_pic_works_CXX=yes
 
12968
       lt_cv_prog_compiler_pic_works_CXX=yes
12461
12969
     fi
12462
12970
   fi
12463
12971
   $rm conftest*
12464
12972
 
12465
12973
fi
12466
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12467
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12974
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12975
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12468
12976
 
12469
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12977
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12470
12978
    case $lt_prog_compiler_pic_CXX in
12471
12979
     "" | " "*) ;;
12472
12980
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12493
13001
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12494
13002
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12495
13003
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12496
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
13004
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12497
13005
  echo $ECHO_N "(cached) $ECHO_C" >&6
12498
13006
else
12499
 
  lt_prog_compiler_static_works_CXX=no
 
13007
  lt_cv_prog_compiler_static_works_CXX=no
12500
13008
   save_LDFLAGS="$LDFLAGS"
12501
13009
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12502
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13010
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12503
13011
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12504
13012
     # The linker can only warn and ignore the option if not recognized
12505
13013
     # So say no if there are warnings
12509
13017
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12510
13018
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12511
13019
       if diff conftest.exp conftest.er2 >/dev/null; then
12512
 
         lt_prog_compiler_static_works_CXX=yes
 
13020
         lt_cv_prog_compiler_static_works_CXX=yes
12513
13021
       fi
12514
13022
     else
12515
 
       lt_prog_compiler_static_works_CXX=yes
 
13023
       lt_cv_prog_compiler_static_works_CXX=yes
12516
13024
     fi
12517
13025
   fi
12518
 
   $rm conftest*
 
13026
   $rm -r conftest*
12519
13027
   LDFLAGS="$save_LDFLAGS"
12520
13028
 
12521
13029
fi
12522
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12523
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
13030
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13031
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12524
13032
 
12525
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13033
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12526
13034
    :
12527
13035
else
12528
13036
    lt_prog_compiler_static_CXX=
12539
13047
   mkdir conftest
12540
13048
   cd conftest
12541
13049
   mkdir out
12542
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13050
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12543
13051
 
12544
13052
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12545
13053
   # Insert the option either (1) after the last *FLAGS variable, or
12550
13058
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12551
13059
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12552
13060
   -e 's:$: $lt_compiler_flag:'`
12553
 
   (eval echo "\"\$as_me:12553: $lt_compile\"" >&5)
 
13061
   (eval echo "\"\$as_me:13061: $lt_compile\"" >&5)
12554
13062
   (eval "$lt_compile" 2>out/conftest.err)
12555
13063
   ac_status=$?
12556
13064
   cat out/conftest.err >&5
12557
 
   echo "$as_me:12557: \$? = $ac_status" >&5
 
13065
   echo "$as_me:13065: \$? = $ac_status" >&5
12558
13066
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12559
13067
   then
12560
13068
     # The compiler can only warn and ignore the option if not recognized
12607
13115
 
12608
13116
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12609
13117
  case $host_os in
12610
 
  aix4* | aix5*)
 
13118
  aix[4-9]*)
12611
13119
    # If we're using GNU nm, then we don't want the "-C" option.
12612
13120
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12613
13121
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12620
13128
    export_symbols_cmds_CXX="$ltdll_cmds"
12621
13129
  ;;
12622
13130
  cygwin* | mingw*)
12623
 
    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'
 
13131
    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'
12624
13132
  ;;
12625
13133
  linux* | k*bsd*-gnu)
12626
13134
    link_all_deplibs_CXX=no
12629
13137
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12630
13138
  ;;
12631
13139
  esac
 
13140
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12632
13141
 
12633
13142
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12634
13143
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12654
13163
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12655
13164
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12656
13165
      $rm conftest*
12657
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13166
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12658
13167
 
12659
13168
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660
13169
  (eval $ac_compile) 2>&5
12712
13221
version_type=none
12713
13222
dynamic_linker="$host_os ld.so"
12714
13223
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12715
 
if test "$GCC" = yes; then
12716
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12717
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12718
 
    # if the path contains ";" then we assume it to be the separator
12719
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12720
 
    # assumed that no part of a normal pathname contains ";" but that should
12721
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12722
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12723
 
  else
12724
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12725
 
  fi
12726
 
else
12727
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12728
 
fi
 
13224
 
12729
13225
need_lib_prefix=unknown
12730
13226
hardcode_into_libs=no
12731
13227
 
12743
13239
  soname_spec='${libname}${release}${shared_ext}$major'
12744
13240
  ;;
12745
13241
 
12746
 
aix4* | aix5*)
 
13242
aix[4-9]*)
12747
13243
  version_type=linux
12748
13244
  need_lib_prefix=no
12749
13245
  need_version=no
12882
13378
  shlibpath_overrides_runpath=yes
12883
13379
  shlibpath_var=DYLD_LIBRARY_PATH
12884
13380
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12885
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12886
 
  if test "$GCC" = yes; then
12887
 
    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"`
12888
 
  else
12889
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12890
 
  fi
 
13381
 
12891
13382
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12892
13383
  ;;
12893
13384
 
12941
13432
    shlibpath_overrides_runpath=no
12942
13433
    hardcode_into_libs=yes
12943
13434
    ;;
12944
 
  freebsd*) # from 4.6 on
 
13435
  *) # from 4.6 on, and DragonFly
12945
13436
    shlibpath_overrides_runpath=yes
12946
13437
    hardcode_into_libs=yes
12947
13438
    ;;
13004
13495
  postinstall_cmds='chmod 555 $lib'
13005
13496
  ;;
13006
13497
 
13007
 
interix3*)
 
13498
interix[3-9]*)
13008
13499
  version_type=linux
13009
13500
  need_lib_prefix=no
13010
13501
  need_version=no
13075
13566
 
13076
13567
  # Append ld.so.conf contents to the search path
13077
13568
  if test -f /etc/ld.so.conf; then
13078
 
    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' ' '`
 
13569
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13079
13570
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13080
13571
  fi
13081
13572
 
13181
13672
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13182
13673
  ;;
13183
13674
 
 
13675
rdos*)
 
13676
  dynamic_linker=no
 
13677
  ;;
 
13678
 
13184
13679
solaris*)
13185
13680
  version_type=linux
13186
13681
  need_lib_prefix=no
13277
13772
echo "${ECHO_T}$dynamic_linker" >&6; }
13278
13773
test "$dynamic_linker" = no && can_build_shared=no
13279
13774
 
 
13775
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13777
else
 
13778
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13779
fi
 
13780
 
 
13781
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13782
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13784
else
 
13785
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13786
fi
 
13787
 
 
13788
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13789
 
13280
13790
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13281
13791
if test "$GCC" = yes; then
13282
13792
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13360
13870
    predeps_CXX \
13361
13871
    postdeps_CXX \
13362
13872
    compiler_lib_search_path_CXX \
 
13873
    compiler_lib_search_dirs_CXX \
13363
13874
    archive_cmds_CXX \
13364
13875
    archive_expsym_cmds_CXX \
13365
13876
    postinstall_cmds_CXX \
13375
13886
    module_cmds_CXX \
13376
13887
    module_expsym_cmds_CXX \
13377
13888
    lt_cv_prog_compiler_c_o_CXX \
 
13889
    fix_srcfile_path_CXX \
13378
13890
    exclude_expsyms_CXX \
13379
13891
    include_expsyms_CXX; do
13380
13892
 
13607
14119
# shared library.
13608
14120
postdeps=$lt_postdeps_CXX
13609
14121
 
 
14122
# The directories searched by this compiler when creating a shared
 
14123
# library
 
14124
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14125
 
13610
14126
# The library search path used internally by the compiler when linking
13611
14127
# a shared library.
13612
14128
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13695
14211
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13696
14212
 
13697
14213
# Fix the shell variable \$srcfile for the compiler.
13698
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14214
fix_srcfile_path=$lt_fix_srcfile_path
13699
14215
 
13700
14216
# Set to yes if exported symbols are required.
13701
14217
always_export_symbols=$always_export_symbols_CXX
13786
14302
objext_F77=$objext
13787
14303
 
13788
14304
# Code to be used in simple compile tests
13789
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14305
lt_simple_compile_test_code="\
 
14306
      subroutine t
 
14307
      return
 
14308
      end
 
14309
"
13790
14310
 
13791
14311
# Code to be used in simple link tests
13792
 
lt_simple_link_test_code="      program t\n      end\n"
 
14312
lt_simple_link_test_code="\
 
14313
      program t
 
14314
      end
 
14315
"
13793
14316
 
13794
14317
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13795
14318
 
13805
14328
 
13806
14329
# save warnings/boilerplate of simple test code
13807
14330
ac_outfile=conftest.$ac_objext
13808
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14331
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13809
14332
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13810
14333
_lt_compiler_boilerplate=`cat conftest.err`
13811
14334
$rm conftest*
13812
14335
 
13813
14336
ac_outfile=conftest.$ac_objext
13814
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14337
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13815
14338
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13816
14339
_lt_linker_boilerplate=`cat conftest.err`
13817
 
$rm conftest*
 
14340
$rm -r conftest*
13818
14341
 
13819
14342
 
13820
14343
# Allow CC to be a program name with arguments.
13852
14375
    postinstall_cmds='$RANLIB $lib'
13853
14376
  fi
13854
14377
  ;;
13855
 
aix4* | aix5*)
 
14378
aix[4-9]*)
13856
14379
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13857
14380
    test "$enable_shared" = yes && enable_static=no
13858
14381
  fi
13898
14421
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13899
14422
      ;;
13900
14423
 
13901
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14424
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13902
14425
      # PIC is the default for these OSes.
13903
14426
      ;;
13904
14427
 
13905
 
    mingw* | pw32* | os2*)
 
14428
    mingw* | cygwin* | pw32* | os2*)
13906
14429
      # This hack is so that the source file can tell whether it is being
13907
14430
      # built for inclusion in a dll (and should export symbols for example).
 
14431
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14432
      # (--disable-auto-import) libraries
13908
14433
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13909
14434
      ;;
13910
14435
 
13914
14439
      lt_prog_compiler_pic_F77='-fno-common'
13915
14440
      ;;
13916
14441
 
13917
 
    interix3*)
 
14442
    interix[3-9]*)
13918
14443
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13919
14444
      # Instead, we relocate shared libraries at runtime.
13920
14445
      ;;
13972
14497
       esac
13973
14498
       ;;
13974
14499
 
13975
 
    mingw* | pw32* | os2*)
 
14500
    mingw* | cygwin* | pw32* | os2*)
13976
14501
      # This hack is so that the source file can tell whether it is being
13977
14502
      # built for inclusion in a dll (and should export symbols for example).
13978
14503
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14024
14549
        # All Alpha code is PIC.
14025
14550
        lt_prog_compiler_static_F77='-non_shared'
14026
14551
        ;;
 
14552
      *)
 
14553
        case `$CC -V 2>&1 | sed 5q` in
 
14554
        *Sun\ C*)
 
14555
          # Sun C 5.9
 
14556
          lt_prog_compiler_pic_F77='-KPIC'
 
14557
          lt_prog_compiler_static_F77='-Bstatic'
 
14558
          lt_prog_compiler_wl_F77='-Wl,'
 
14559
          ;;
 
14560
        *Sun\ F*)
 
14561
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14562
          lt_prog_compiler_pic_F77='-KPIC'
 
14563
          lt_prog_compiler_static_F77='-Bstatic'
 
14564
          lt_prog_compiler_wl_F77=''
 
14565
          ;;
 
14566
        esac
 
14567
        ;;
14027
14568
      esac
14028
14569
      ;;
14029
14570
 
14033
14574
      lt_prog_compiler_static_F77='-non_shared'
14034
14575
      ;;
14035
14576
 
 
14577
    rdos*)
 
14578
      lt_prog_compiler_static_F77='-non_shared'
 
14579
      ;;
 
14580
 
14036
14581
    solaris*)
14037
14582
      lt_prog_compiler_pic_F77='-KPIC'
14038
14583
      lt_prog_compiler_static_F77='-Bstatic'
14095
14640
 
14096
14641
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14097
14642
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14098
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14643
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14099
14644
  echo $ECHO_N "(cached) $ECHO_C" >&6
14100
14645
else
14101
 
  lt_prog_compiler_pic_works_F77=no
 
14646
  lt_cv_prog_compiler_pic_works_F77=no
14102
14647
  ac_outfile=conftest.$ac_objext
14103
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14648
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14104
14649
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14105
14650
   # Insert the option either (1) after the last *FLAGS variable, or
14106
14651
   # (2) before a word containing "conftest.", or (3) at the end.
14111
14656
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14112
14657
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14113
14658
   -e 's:$: $lt_compiler_flag:'`
14114
 
   (eval echo "\"\$as_me:14114: $lt_compile\"" >&5)
 
14659
   (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
14115
14660
   (eval "$lt_compile" 2>conftest.err)
14116
14661
   ac_status=$?
14117
14662
   cat conftest.err >&5
14118
 
   echo "$as_me:14118: \$? = $ac_status" >&5
 
14663
   echo "$as_me:14663: \$? = $ac_status" >&5
14119
14664
   if (exit $ac_status) && test -s "$ac_outfile"; then
14120
14665
     # The compiler can only warn and ignore the option if not recognized
14121
14666
     # So say no if there are warnings other than the usual output.
14122
14667
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14123
14668
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14124
14669
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14125
 
       lt_prog_compiler_pic_works_F77=yes
 
14670
       lt_cv_prog_compiler_pic_works_F77=yes
14126
14671
     fi
14127
14672
   fi
14128
14673
   $rm conftest*
14129
14674
 
14130
14675
fi
14131
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14132
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14676
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14677
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14133
14678
 
14134
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14679
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14135
14680
    case $lt_prog_compiler_pic_F77 in
14136
14681
     "" | " "*) ;;
14137
14682
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14158
14703
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14159
14704
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14160
14705
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14161
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14706
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14162
14707
  echo $ECHO_N "(cached) $ECHO_C" >&6
14163
14708
else
14164
 
  lt_prog_compiler_static_works_F77=no
 
14709
  lt_cv_prog_compiler_static_works_F77=no
14165
14710
   save_LDFLAGS="$LDFLAGS"
14166
14711
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14167
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14712
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14168
14713
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14169
14714
     # The linker can only warn and ignore the option if not recognized
14170
14715
     # So say no if there are warnings
14174
14719
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14175
14720
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14176
14721
       if diff conftest.exp conftest.er2 >/dev/null; then
14177
 
         lt_prog_compiler_static_works_F77=yes
 
14722
         lt_cv_prog_compiler_static_works_F77=yes
14178
14723
       fi
14179
14724
     else
14180
 
       lt_prog_compiler_static_works_F77=yes
 
14725
       lt_cv_prog_compiler_static_works_F77=yes
14181
14726
     fi
14182
14727
   fi
14183
 
   $rm conftest*
 
14728
   $rm -r conftest*
14184
14729
   LDFLAGS="$save_LDFLAGS"
14185
14730
 
14186
14731
fi
14187
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14188
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14732
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14733
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14189
14734
 
14190
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14735
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14191
14736
    :
14192
14737
else
14193
14738
    lt_prog_compiler_static_F77=
14204
14749
   mkdir conftest
14205
14750
   cd conftest
14206
14751
   mkdir out
14207
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14752
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14208
14753
 
14209
14754
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14210
14755
   # Insert the option either (1) after the last *FLAGS variable, or
14215
14760
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14216
14761
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14217
14762
   -e 's:$: $lt_compiler_flag:'`
14218
 
   (eval echo "\"\$as_me:14218: $lt_compile\"" >&5)
 
14763
   (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
14219
14764
   (eval "$lt_compile" 2>out/conftest.err)
14220
14765
   ac_status=$?
14221
14766
   cat out/conftest.err >&5
14222
 
   echo "$as_me:14222: \$? = $ac_status" >&5
 
14767
   echo "$as_me:14767: \$? = $ac_status" >&5
14223
14768
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14224
14769
   then
14225
14770
     # The compiler can only warn and ignore the option if not recognized
14299
14844
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14300
14845
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14301
14846
  # as well as any symbol that contains `d'.
14302
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14847
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14303
14848
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14304
14849
  # platforms (ab)use it in PIC code, but their linkers get confused if
14305
14850
  # the symbol is explicitly referenced.  Since portable code cannot
14306
14851
  # rely on this symbol name, it's probably fine to never include it in
14307
14852
  # preloaded symbol tables.
 
14853
  # Exclude shared library initialization/finalization symbols.
14308
14854
  extract_expsyms_cmds=
14309
14855
  # Just being paranoid about ensuring that cc_basename is set.
14310
14856
  for cc_temp in $compiler""; do
14363
14909
 
14364
14910
    # See if GNU ld supports shared libraries.
14365
14911
    case $host_os in
14366
 
    aix3* | aix4* | aix5*)
 
14912
    aix[3-9]*)
14367
14913
      # On AIX/PPC, the GNU linker is very broken
14368
14914
      if test "$host_cpu" != ia64; then
14369
14915
        ld_shlibs_F77=no
14411
14957
      allow_undefined_flag_F77=unsupported
14412
14958
      always_export_symbols_F77=no
14413
14959
      enable_shared_with_static_runtimes_F77=yes
14414
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14960
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14415
14961
 
14416
14962
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14417
14963
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14429
14975
      fi
14430
14976
      ;;
14431
14977
 
14432
 
    interix3*)
 
14978
    interix[3-9]*)
14433
14979
      hardcode_direct_F77=no
14434
14980
      hardcode_shlibpath_var_F77=no
14435
14981
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444
14990
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14445
14991
      ;;
14446
14992
 
14447
 
    linux* | k*bsd*-gnu)
 
14993
    gnu* | linux* | k*bsd*-gnu)
14448
14994
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14449
14995
        tmp_addflag=
14450
14996
        case $cc_basename,$host_cpu in
14462
15008
        ifc* | ifort*)                  # Intel Fortran compiler
14463
15009
          tmp_addflag=' -nofor_main' ;;
14464
15010
        esac
14465
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15011
        case `$CC -V 2>&1 | sed 5q` in
 
15012
        *Sun\ C*)                       # Sun C 5.9
 
15013
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15014
          tmp_sharedflag='-G' ;;
 
15015
        *Sun\ F*)                       # Sun Fortran 8.3
 
15016
          tmp_sharedflag='-G' ;;
 
15017
        *)
 
15018
          tmp_sharedflag='-shared' ;;
 
15019
        esac
 
15020
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14466
15021
 
14467
15022
        if test $supports_anon_versioning = yes; then
14468
15023
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14469
15024
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14470
15025
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14471
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15026
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14472
15027
        fi
14473
15028
        link_all_deplibs_F77=no
14474
15029
      else
14574
15129
      fi
14575
15130
      ;;
14576
15131
 
14577
 
    aix4* | aix5*)
 
15132
    aix[4-9]*)
14578
15133
      if test "$host_cpu" = ia64; then
14579
15134
        # On IA64, the linker does run time linking by default, so we don't
14580
15135
        # have to do anything special.
14594
15149
        # Test if we are trying to use run time linking or normal
14595
15150
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14596
15151
        # need to do runtime linking.
14597
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15152
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14598
15153
          for ld_flag in $LDFLAGS; do
14599
15154
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14600
15155
            aix_use_runtimelinking=yes
14628
15183
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14629
15184
          then
14630
15185
          # We have reworked collect2
14631
 
          hardcode_direct_F77=yes
 
15186
          :
14632
15187
          else
14633
15188
          # We have old collect2
14634
15189
          hardcode_direct_F77=unsupported
14692
15247
       } && test -s conftest$ac_exeext &&
14693
15248
       $as_test_x conftest$ac_exeext; then
14694
15249
 
14695
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14696
 
}'`
 
15250
lt_aix_libpath_sed='
 
15251
    /Import File Strings/,/^$/ {
 
15252
        /^0/ {
 
15253
            s/^0  *\(.*\)$/\1/
 
15254
            p
 
15255
        }
 
15256
    }'
 
15257
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14697
15258
# Check for a 64-bit object if we didn't find anything.
14698
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14699
 
}'`; fi
 
15259
if test -z "$aix_libpath"; then
 
15260
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15261
fi
14700
15262
else
14701
15263
  echo "$as_me: failed program was:" >&5
14702
15264
sed 's/^/| /' conftest.$ac_ext >&5
14741
15303
       } && test -s conftest$ac_exeext &&
14742
15304
       $as_test_x conftest$ac_exeext; then
14743
15305
 
14744
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14745
 
}'`
 
15306
lt_aix_libpath_sed='
 
15307
    /Import File Strings/,/^$/ {
 
15308
        /^0/ {
 
15309
            s/^0  *\(.*\)$/\1/
 
15310
            p
 
15311
        }
 
15312
    }'
 
15313
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14746
15314
# Check for a 64-bit object if we didn't find anything.
14747
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14748
 
}'`; fi
 
15315
if test -z "$aix_libpath"; then
 
15316
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15317
fi
14749
15318
else
14750
15319
  echo "$as_me: failed program was:" >&5
14751
15320
sed 's/^/| /' conftest.$ac_ext >&5
14799
15368
      # The linker will automatically build a .lib file if we build a DLL.
14800
15369
      old_archive_From_new_cmds_F77='true'
14801
15370
      # FIXME: Should let the user specify the lib program.
14802
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15371
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14803
15372
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14804
15373
      enable_shared_with_static_runtimes_F77=yes
14805
15374
      ;;
14832
15401
      link_all_deplibs_F77=yes
14833
15402
    if test "$GCC" = yes ; then
14834
15403
        output_verbose_link_cmd='echo'
14835
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14836
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14837
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14838
 
      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}'
14839
 
      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}'
 
15404
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15405
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15406
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15407
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14840
15408
    else
14841
15409
      case $cc_basename in
14842
15410
        xlc*)
14843
15411
         output_verbose_link_cmd='echo'
14844
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15412
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14845
15413
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14846
15414
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14847
 
         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}'
 
15415
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14848
15416
          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}'
14849
15417
          ;;
14850
15418
       *)
15006
15574
      ;;
15007
15575
 
15008
15576
    openbsd*)
15009
 
      hardcode_direct_F77=yes
15010
 
      hardcode_shlibpath_var_F77=no
15011
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15012
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15013
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15014
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15015
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15577
      if test -f /usr/libexec/ld.so; then
 
15578
        hardcode_direct_F77=yes
 
15579
        hardcode_shlibpath_var_F77=no
 
15580
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15581
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15582
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15583
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15584
          export_dynamic_flag_spec_F77='${wl}-E'
 
15585
        else
 
15586
          case $host_os in
 
15587
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15588
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15589
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15590
             ;;
 
15591
           *)
 
15592
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15593
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15594
             ;;
 
15595
          esac
 
15596
        fi
15016
15597
      else
15017
 
       case $host_os in
15018
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15019
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15020
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15021
 
           ;;
15022
 
         *)
15023
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15024
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15025
 
           ;;
15026
 
       esac
 
15598
        ld_shlibs_F77=no
15027
15599
      fi
15028
15600
      ;;
15029
15601
 
15082
15654
      case $host_os in
15083
15655
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15084
15656
      *)
15085
 
        # The compiler driver will combine linker options so we
15086
 
        # cannot just pass the convience library names through
15087
 
        # without $wl, iff we do not link with $LD.
15088
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15657
        # The compiler driver will combine and reorder linker options,
 
15658
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15659
        # but is careful enough not to reorder.
15089
15660
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15090
 
        case $wlarc in
15091
 
        '')
15092
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15093
 
        *)
15094
 
          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' ;;
15095
 
        esac ;;
 
15661
        if test "$GCC" = yes; then
 
15662
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15663
        else
 
15664
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15665
        fi
 
15666
        ;;
15096
15667
      esac
15097
15668
      link_all_deplibs_F77=yes
15098
15669
      ;;
15149
15720
      fi
15150
15721
      ;;
15151
15722
 
15152
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15723
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15153
15724
      no_undefined_flag_F77='${wl}-z,text'
15154
15725
      archive_cmds_need_lc_F77=no
15155
15726
      hardcode_shlibpath_var_F77=no
15226
15797
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15227
15798
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15228
15799
      $rm conftest*
15229
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15800
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15230
15801
 
15231
15802
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15232
15803
  (eval $ac_compile) 2>&5
15284
15855
version_type=none
15285
15856
dynamic_linker="$host_os ld.so"
15286
15857
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15287
 
if test "$GCC" = yes; then
15288
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15289
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15290
 
    # if the path contains ";" then we assume it to be the separator
15291
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15292
 
    # assumed that no part of a normal pathname contains ";" but that should
15293
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15294
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15295
 
  else
15296
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15297
 
  fi
15298
 
else
15299
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15300
 
fi
 
15858
 
15301
15859
need_lib_prefix=unknown
15302
15860
hardcode_into_libs=no
15303
15861
 
15315
15873
  soname_spec='${libname}${release}${shared_ext}$major'
15316
15874
  ;;
15317
15875
 
15318
 
aix4* | aix5*)
 
15876
aix[4-9]*)
15319
15877
  version_type=linux
15320
15878
  need_lib_prefix=no
15321
15879
  need_version=no
15454
16012
  shlibpath_overrides_runpath=yes
15455
16013
  shlibpath_var=DYLD_LIBRARY_PATH
15456
16014
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15457
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15458
 
  if test "$GCC" = yes; then
15459
 
    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"`
15460
 
  else
15461
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15462
 
  fi
 
16015
 
15463
16016
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15464
16017
  ;;
15465
16018
 
15513
16066
    shlibpath_overrides_runpath=no
15514
16067
    hardcode_into_libs=yes
15515
16068
    ;;
15516
 
  freebsd*) # from 4.6 on
 
16069
  *) # from 4.6 on, and DragonFly
15517
16070
    shlibpath_overrides_runpath=yes
15518
16071
    hardcode_into_libs=yes
15519
16072
    ;;
15576
16129
  postinstall_cmds='chmod 555 $lib'
15577
16130
  ;;
15578
16131
 
15579
 
interix3*)
 
16132
interix[3-9]*)
15580
16133
  version_type=linux
15581
16134
  need_lib_prefix=no
15582
16135
  need_version=no
15647
16200
 
15648
16201
  # Append ld.so.conf contents to the search path
15649
16202
  if test -f /etc/ld.so.conf; then
15650
 
    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' ' '`
 
16203
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15651
16204
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15652
16205
  fi
15653
16206
 
15753
16306
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15754
16307
  ;;
15755
16308
 
 
16309
rdos*)
 
16310
  dynamic_linker=no
 
16311
  ;;
 
16312
 
15756
16313
solaris*)
15757
16314
  version_type=linux
15758
16315
  need_lib_prefix=no
15849
16406
echo "${ECHO_T}$dynamic_linker" >&6; }
15850
16407
test "$dynamic_linker" = no && can_build_shared=no
15851
16408
 
 
16409
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16411
else
 
16412
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16413
fi
 
16414
 
 
16415
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16416
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16418
else
 
16419
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16420
fi
 
16421
 
 
16422
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16423
 
15852
16424
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15853
16425
if test "$GCC" = yes; then
15854
16426
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15932
16504
    predeps_F77 \
15933
16505
    postdeps_F77 \
15934
16506
    compiler_lib_search_path_F77 \
 
16507
    compiler_lib_search_dirs_F77 \
15935
16508
    archive_cmds_F77 \
15936
16509
    archive_expsym_cmds_F77 \
15937
16510
    postinstall_cmds_F77 \
15947
16520
    module_cmds_F77 \
15948
16521
    module_expsym_cmds_F77 \
15949
16522
    lt_cv_prog_compiler_c_o_F77 \
 
16523
    fix_srcfile_path_F77 \
15950
16524
    exclude_expsyms_F77 \
15951
16525
    include_expsyms_F77; do
15952
16526
 
16179
16753
# shared library.
16180
16754
postdeps=$lt_postdeps_F77
16181
16755
 
 
16756
# The directories searched by this compiler when creating a shared
 
16757
# library
 
16758
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16759
 
16182
16760
# The library search path used internally by the compiler when linking
16183
16761
# a shared library.
16184
16762
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16267
16845
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16268
16846
 
16269
16847
# Fix the shell variable \$srcfile for the compiler.
16270
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16848
fix_srcfile_path=$lt_fix_srcfile_path
16271
16849
 
16272
16850
# Set to yes if exported symbols are required.
16273
16851
always_export_symbols=$always_export_symbols_F77
16325
16903
objext_GCJ=$objext
16326
16904
 
16327
16905
# Code to be used in simple compile tests
16328
 
lt_simple_compile_test_code="class foo {}\n"
 
16906
lt_simple_compile_test_code="class foo {}"
16329
16907
 
16330
16908
# Code to be used in simple link tests
16331
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16909
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16332
16910
 
16333
16911
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16334
16912
 
16344
16922
 
16345
16923
# save warnings/boilerplate of simple test code
16346
16924
ac_outfile=conftest.$ac_objext
16347
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16925
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16348
16926
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16349
16927
_lt_compiler_boilerplate=`cat conftest.err`
16350
16928
$rm conftest*
16351
16929
 
16352
16930
ac_outfile=conftest.$ac_objext
16353
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16931
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16354
16932
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16355
16933
_lt_linker_boilerplate=`cat conftest.err`
16356
 
$rm conftest*
 
16934
$rm -r conftest*
16357
16935
 
16358
16936
 
16359
16937
# Allow CC to be a program name with arguments.
16391
16969
else
16392
16970
  lt_cv_prog_compiler_rtti_exceptions=no
16393
16971
  ac_outfile=conftest.$ac_objext
16394
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16972
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16395
16973
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16396
16974
   # Insert the option either (1) after the last *FLAGS variable, or
16397
16975
   # (2) before a word containing "conftest.", or (3) at the end.
16402
16980
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16403
16981
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16404
16982
   -e 's:$: $lt_compiler_flag:'`
16405
 
   (eval echo "\"\$as_me:16405: $lt_compile\"" >&5)
 
16983
   (eval echo "\"\$as_me:16983: $lt_compile\"" >&5)
16406
16984
   (eval "$lt_compile" 2>conftest.err)
16407
16985
   ac_status=$?
16408
16986
   cat conftest.err >&5
16409
 
   echo "$as_me:16409: \$? = $ac_status" >&5
 
16987
   echo "$as_me:16987: \$? = $ac_status" >&5
16410
16988
   if (exit $ac_status) && test -s "$ac_outfile"; then
16411
16989
     # The compiler can only warn and ignore the option if not recognized
16412
16990
     # So say no if there are warnings other than the usual output.
16457
17035
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16458
17036
      ;;
16459
17037
 
16460
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16461
17039
      # PIC is the default for these OSes.
16462
17040
      ;;
16463
17041
 
16464
 
    mingw* | pw32* | os2*)
 
17042
    mingw* | cygwin* | pw32* | os2*)
16465
17043
      # This hack is so that the source file can tell whether it is being
16466
17044
      # built for inclusion in a dll (and should export symbols for example).
16467
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17045
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17046
      # (--disable-auto-import) libraries
 
17047
 
16468
17048
      ;;
16469
17049
 
16470
17050
    darwin* | rhapsody*)
16473
17053
      lt_prog_compiler_pic_GCJ='-fno-common'
16474
17054
      ;;
16475
17055
 
16476
 
    interix3*)
 
17056
    interix[3-9]*)
16477
17057
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16478
17058
      # Instead, we relocate shared libraries at runtime.
16479
17059
      ;;
16531
17111
       esac
16532
17112
       ;;
16533
17113
 
16534
 
    mingw* | pw32* | os2*)
 
17114
    mingw* | cygwin* | pw32* | os2*)
16535
17115
      # This hack is so that the source file can tell whether it is being
16536
17116
      # built for inclusion in a dll (and should export symbols for example).
16537
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17117
 
16538
17118
      ;;
16539
17119
 
16540
17120
    hpux9* | hpux10* | hpux11*)
16583
17163
        # All Alpha code is PIC.
16584
17164
        lt_prog_compiler_static_GCJ='-non_shared'
16585
17165
        ;;
 
17166
      *)
 
17167
        case `$CC -V 2>&1 | sed 5q` in
 
17168
        *Sun\ C*)
 
17169
          # Sun C 5.9
 
17170
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17171
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17172
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17173
          ;;
 
17174
        *Sun\ F*)
 
17175
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17176
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17177
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17178
          lt_prog_compiler_wl_GCJ=''
 
17179
          ;;
 
17180
        esac
 
17181
        ;;
16586
17182
      esac
16587
17183
      ;;
16588
17184
 
16592
17188
      lt_prog_compiler_static_GCJ='-non_shared'
16593
17189
      ;;
16594
17190
 
 
17191
    rdos*)
 
17192
      lt_prog_compiler_static_GCJ='-non_shared'
 
17193
      ;;
 
17194
 
16595
17195
    solaris*)
16596
17196
      lt_prog_compiler_pic_GCJ='-KPIC'
16597
17197
      lt_prog_compiler_static_GCJ='-Bstatic'
16654
17254
 
16655
17255
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16656
17256
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16657
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17257
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16658
17258
  echo $ECHO_N "(cached) $ECHO_C" >&6
16659
17259
else
16660
 
  lt_prog_compiler_pic_works_GCJ=no
 
17260
  lt_cv_prog_compiler_pic_works_GCJ=no
16661
17261
  ac_outfile=conftest.$ac_objext
16662
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17262
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16663
17263
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16664
17264
   # Insert the option either (1) after the last *FLAGS variable, or
16665
17265
   # (2) before a word containing "conftest.", or (3) at the end.
16670
17270
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16671
17271
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16672
17272
   -e 's:$: $lt_compiler_flag:'`
16673
 
   (eval echo "\"\$as_me:16673: $lt_compile\"" >&5)
 
17273
   (eval echo "\"\$as_me:17273: $lt_compile\"" >&5)
16674
17274
   (eval "$lt_compile" 2>conftest.err)
16675
17275
   ac_status=$?
16676
17276
   cat conftest.err >&5
16677
 
   echo "$as_me:16677: \$? = $ac_status" >&5
 
17277
   echo "$as_me:17277: \$? = $ac_status" >&5
16678
17278
   if (exit $ac_status) && test -s "$ac_outfile"; then
16679
17279
     # The compiler can only warn and ignore the option if not recognized
16680
17280
     # So say no if there are warnings other than the usual output.
16681
17281
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16682
17282
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16683
17283
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16684
 
       lt_prog_compiler_pic_works_GCJ=yes
 
17284
       lt_cv_prog_compiler_pic_works_GCJ=yes
16685
17285
     fi
16686
17286
   fi
16687
17287
   $rm conftest*
16688
17288
 
16689
17289
fi
16690
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16691
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
17290
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17291
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16692
17292
 
16693
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17293
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16694
17294
    case $lt_prog_compiler_pic_GCJ in
16695
17295
     "" | " "*) ;;
16696
17296
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16717
17317
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16718
17318
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16719
17319
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16720
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17320
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16721
17321
  echo $ECHO_N "(cached) $ECHO_C" >&6
16722
17322
else
16723
 
  lt_prog_compiler_static_works_GCJ=no
 
17323
  lt_cv_prog_compiler_static_works_GCJ=no
16724
17324
   save_LDFLAGS="$LDFLAGS"
16725
17325
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16726
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17326
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16727
17327
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16728
17328
     # The linker can only warn and ignore the option if not recognized
16729
17329
     # So say no if there are warnings
16733
17333
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16734
17334
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16735
17335
       if diff conftest.exp conftest.er2 >/dev/null; then
16736
 
         lt_prog_compiler_static_works_GCJ=yes
 
17336
         lt_cv_prog_compiler_static_works_GCJ=yes
16737
17337
       fi
16738
17338
     else
16739
 
       lt_prog_compiler_static_works_GCJ=yes
 
17339
       lt_cv_prog_compiler_static_works_GCJ=yes
16740
17340
     fi
16741
17341
   fi
16742
 
   $rm conftest*
 
17342
   $rm -r conftest*
16743
17343
   LDFLAGS="$save_LDFLAGS"
16744
17344
 
16745
17345
fi
16746
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16747
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17346
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17347
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16748
17348
 
16749
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17349
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16750
17350
    :
16751
17351
else
16752
17352
    lt_prog_compiler_static_GCJ=
16763
17363
   mkdir conftest
16764
17364
   cd conftest
16765
17365
   mkdir out
16766
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17366
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16767
17367
 
16768
17368
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16769
17369
   # Insert the option either (1) after the last *FLAGS variable, or
16774
17374
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16775
17375
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16776
17376
   -e 's:$: $lt_compiler_flag:'`
16777
 
   (eval echo "\"\$as_me:16777: $lt_compile\"" >&5)
 
17377
   (eval echo "\"\$as_me:17377: $lt_compile\"" >&5)
16778
17378
   (eval "$lt_compile" 2>out/conftest.err)
16779
17379
   ac_status=$?
16780
17380
   cat out/conftest.err >&5
16781
 
   echo "$as_me:16781: \$? = $ac_status" >&5
 
17381
   echo "$as_me:17381: \$? = $ac_status" >&5
16782
17382
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16783
17383
   then
16784
17384
     # The compiler can only warn and ignore the option if not recognized
16858
17458
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16859
17459
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16860
17460
  # as well as any symbol that contains `d'.
16861
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17461
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16862
17462
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16863
17463
  # platforms (ab)use it in PIC code, but their linkers get confused if
16864
17464
  # the symbol is explicitly referenced.  Since portable code cannot
16865
17465
  # rely on this symbol name, it's probably fine to never include it in
16866
17466
  # preloaded symbol tables.
 
17467
  # Exclude shared library initialization/finalization symbols.
16867
17468
  extract_expsyms_cmds=
16868
17469
  # Just being paranoid about ensuring that cc_basename is set.
16869
17470
  for cc_temp in $compiler""; do
16922
17523
 
16923
17524
    # See if GNU ld supports shared libraries.
16924
17525
    case $host_os in
16925
 
    aix3* | aix4* | aix5*)
 
17526
    aix[3-9]*)
16926
17527
      # On AIX/PPC, the GNU linker is very broken
16927
17528
      if test "$host_cpu" != ia64; then
16928
17529
        ld_shlibs_GCJ=no
16970
17571
      allow_undefined_flag_GCJ=unsupported
16971
17572
      always_export_symbols_GCJ=no
16972
17573
      enable_shared_with_static_runtimes_GCJ=yes
16973
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17574
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16974
17575
 
16975
17576
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16976
17577
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16988
17589
      fi
16989
17590
      ;;
16990
17591
 
16991
 
    interix3*)
 
17592
    interix[3-9]*)
16992
17593
      hardcode_direct_GCJ=no
16993
17594
      hardcode_shlibpath_var_GCJ=no
16994
17595
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17003
17604
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17004
17605
      ;;
17005
17606
 
17006
 
    linux* | k*bsd*-gnu)
 
17607
    gnu* | linux* | k*bsd*-gnu)
17007
17608
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17008
17609
        tmp_addflag=
17009
17610
        case $cc_basename,$host_cpu in
17021
17622
        ifc* | ifort*)                  # Intel Fortran compiler
17022
17623
          tmp_addflag=' -nofor_main' ;;
17023
17624
        esac
17024
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17625
        case `$CC -V 2>&1 | sed 5q` in
 
17626
        *Sun\ C*)                       # Sun C 5.9
 
17627
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17628
          tmp_sharedflag='-G' ;;
 
17629
        *Sun\ F*)                       # Sun Fortran 8.3
 
17630
          tmp_sharedflag='-G' ;;
 
17631
        *)
 
17632
          tmp_sharedflag='-shared' ;;
 
17633
        esac
 
17634
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025
17635
 
17026
17636
        if test $supports_anon_versioning = yes; then
17027
17637
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17028
17638
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17029
17639
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17030
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17640
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17031
17641
        fi
17032
17642
        link_all_deplibs_GCJ=no
17033
17643
      else
17133
17743
      fi
17134
17744
      ;;
17135
17745
 
17136
 
    aix4* | aix5*)
 
17746
    aix[4-9]*)
17137
17747
      if test "$host_cpu" = ia64; then
17138
17748
        # On IA64, the linker does run time linking by default, so we don't
17139
17749
        # have to do anything special.
17153
17763
        # Test if we are trying to use run time linking or normal
17154
17764
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17155
17765
        # need to do runtime linking.
17156
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17766
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17157
17767
          for ld_flag in $LDFLAGS; do
17158
17768
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17159
17769
            aix_use_runtimelinking=yes
17187
17797
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17188
17798
          then
17189
17799
          # We have reworked collect2
17190
 
          hardcode_direct_GCJ=yes
 
17800
          :
17191
17801
          else
17192
17802
          # We have old collect2
17193
17803
          hardcode_direct_GCJ=unsupported
17261
17871
       } && test -s conftest$ac_exeext &&
17262
17872
       $as_test_x conftest$ac_exeext; then
17263
17873
 
17264
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17265
 
}'`
 
17874
lt_aix_libpath_sed='
 
17875
    /Import File Strings/,/^$/ {
 
17876
        /^0/ {
 
17877
            s/^0  *\(.*\)$/\1/
 
17878
            p
 
17879
        }
 
17880
    }'
 
17881
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17266
17882
# Check for a 64-bit object if we didn't find anything.
17267
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17268
 
}'`; fi
 
17883
if test -z "$aix_libpath"; then
 
17884
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17885
fi
17269
17886
else
17270
17887
  echo "$as_me: failed program was:" >&5
17271
17888
sed 's/^/| /' conftest.$ac_ext >&5
17320
17937
       } && test -s conftest$ac_exeext &&
17321
17938
       $as_test_x conftest$ac_exeext; then
17322
17939
 
17323
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17324
 
}'`
 
17940
lt_aix_libpath_sed='
 
17941
    /Import File Strings/,/^$/ {
 
17942
        /^0/ {
 
17943
            s/^0  *\(.*\)$/\1/
 
17944
            p
 
17945
        }
 
17946
    }'
 
17947
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17325
17948
# Check for a 64-bit object if we didn't find anything.
17326
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17327
 
}'`; fi
 
17949
if test -z "$aix_libpath"; then
 
17950
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17951
fi
17328
17952
else
17329
17953
  echo "$as_me: failed program was:" >&5
17330
17954
sed 's/^/| /' conftest.$ac_ext >&5
17378
18002
      # The linker will automatically build a .lib file if we build a DLL.
17379
18003
      old_archive_From_new_cmds_GCJ='true'
17380
18004
      # FIXME: Should let the user specify the lib program.
17381
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18005
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17382
18006
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17383
18007
      enable_shared_with_static_runtimes_GCJ=yes
17384
18008
      ;;
17411
18035
      link_all_deplibs_GCJ=yes
17412
18036
    if test "$GCC" = yes ; then
17413
18037
        output_verbose_link_cmd='echo'
17414
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17415
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17416
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17417
 
      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}'
17418
 
      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}'
 
18038
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
18039
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18040
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
18041
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17419
18042
    else
17420
18043
      case $cc_basename in
17421
18044
        xlc*)
17422
18045
         output_verbose_link_cmd='echo'
17423
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18046
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17424
18047
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17425
18048
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17426
 
         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}'
 
18049
         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17427
18050
          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}'
17428
18051
          ;;
17429
18052
       *)
17585
18208
      ;;
17586
18209
 
17587
18210
    openbsd*)
17588
 
      hardcode_direct_GCJ=yes
17589
 
      hardcode_shlibpath_var_GCJ=no
17590
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17591
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17592
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17593
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17594
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18211
      if test -f /usr/libexec/ld.so; then
 
18212
        hardcode_direct_GCJ=yes
 
18213
        hardcode_shlibpath_var_GCJ=no
 
18214
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18215
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18216
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18217
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18218
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18219
        else
 
18220
          case $host_os in
 
18221
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18222
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18223
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18224
             ;;
 
18225
           *)
 
18226
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18227
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18228
             ;;
 
18229
          esac
 
18230
        fi
17595
18231
      else
17596
 
       case $host_os in
17597
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17598
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17599
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17600
 
           ;;
17601
 
         *)
17602
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17603
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17604
 
           ;;
17605
 
       esac
 
18232
        ld_shlibs_GCJ=no
17606
18233
      fi
17607
18234
      ;;
17608
18235
 
17661
18288
      case $host_os in
17662
18289
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17663
18290
      *)
17664
 
        # The compiler driver will combine linker options so we
17665
 
        # cannot just pass the convience library names through
17666
 
        # without $wl, iff we do not link with $LD.
17667
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18291
        # The compiler driver will combine and reorder linker options,
 
18292
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18293
        # but is careful enough not to reorder.
17668
18294
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17669
 
        case $wlarc in
17670
 
        '')
17671
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17672
 
        *)
17673
 
          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' ;;
17674
 
        esac ;;
 
18295
        if test "$GCC" = yes; then
 
18296
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18297
        else
 
18298
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18299
        fi
 
18300
        ;;
17675
18301
      esac
17676
18302
      link_all_deplibs_GCJ=yes
17677
18303
      ;;
17728
18354
      fi
17729
18355
      ;;
17730
18356
 
17731
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18357
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17732
18358
      no_undefined_flag_GCJ='${wl}-z,text'
17733
18359
      archive_cmds_need_lc_GCJ=no
17734
18360
      hardcode_shlibpath_var_GCJ=no
17805
18431
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17806
18432
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17807
18433
      $rm conftest*
17808
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18434
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17809
18435
 
17810
18436
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811
18437
  (eval $ac_compile) 2>&5
17863
18489
version_type=none
17864
18490
dynamic_linker="$host_os ld.so"
17865
18491
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17866
 
if test "$GCC" = yes; then
17867
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17868
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17869
 
    # if the path contains ";" then we assume it to be the separator
17870
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17871
 
    # assumed that no part of a normal pathname contains ";" but that should
17872
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17873
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17874
 
  else
17875
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17876
 
  fi
17877
 
else
17878
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17879
 
fi
 
18492
 
17880
18493
need_lib_prefix=unknown
17881
18494
hardcode_into_libs=no
17882
18495
 
17894
18507
  soname_spec='${libname}${release}${shared_ext}$major'
17895
18508
  ;;
17896
18509
 
17897
 
aix4* | aix5*)
 
18510
aix[4-9]*)
17898
18511
  version_type=linux
17899
18512
  need_lib_prefix=no
17900
18513
  need_version=no
18033
18646
  shlibpath_overrides_runpath=yes
18034
18647
  shlibpath_var=DYLD_LIBRARY_PATH
18035
18648
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18036
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18037
 
  if test "$GCC" = yes; then
18038
 
    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"`
18039
 
  else
18040
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18041
 
  fi
 
18649
 
18042
18650
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18043
18651
  ;;
18044
18652
 
18092
18700
    shlibpath_overrides_runpath=no
18093
18701
    hardcode_into_libs=yes
18094
18702
    ;;
18095
 
  freebsd*) # from 4.6 on
 
18703
  *) # from 4.6 on, and DragonFly
18096
18704
    shlibpath_overrides_runpath=yes
18097
18705
    hardcode_into_libs=yes
18098
18706
    ;;
18155
18763
  postinstall_cmds='chmod 555 $lib'
18156
18764
  ;;
18157
18765
 
18158
 
interix3*)
 
18766
interix[3-9]*)
18159
18767
  version_type=linux
18160
18768
  need_lib_prefix=no
18161
18769
  need_version=no
18226
18834
 
18227
18835
  # Append ld.so.conf contents to the search path
18228
18836
  if test -f /etc/ld.so.conf; then
18229
 
    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' ' '`
 
18837
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18230
18838
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18231
18839
  fi
18232
18840
 
18332
18940
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18333
18941
  ;;
18334
18942
 
 
18943
rdos*)
 
18944
  dynamic_linker=no
 
18945
  ;;
 
18946
 
18335
18947
solaris*)
18336
18948
  version_type=linux
18337
18949
  need_lib_prefix=no
18428
19040
echo "${ECHO_T}$dynamic_linker" >&6; }
18429
19041
test "$dynamic_linker" = no && can_build_shared=no
18430
19042
 
 
19043
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19045
else
 
19046
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19047
fi
 
19048
 
 
19049
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19050
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19052
else
 
19053
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19054
fi
 
19055
 
 
19056
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19057
 
18431
19058
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18432
19059
if test "$GCC" = yes; then
18433
19060
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18511
19138
    predeps_GCJ \
18512
19139
    postdeps_GCJ \
18513
19140
    compiler_lib_search_path_GCJ \
 
19141
    compiler_lib_search_dirs_GCJ \
18514
19142
    archive_cmds_GCJ \
18515
19143
    archive_expsym_cmds_GCJ \
18516
19144
    postinstall_cmds_GCJ \
18526
19154
    module_cmds_GCJ \
18527
19155
    module_expsym_cmds_GCJ \
18528
19156
    lt_cv_prog_compiler_c_o_GCJ \
 
19157
    fix_srcfile_path_GCJ \
18529
19158
    exclude_expsyms_GCJ \
18530
19159
    include_expsyms_GCJ; do
18531
19160
 
18758
19387
# shared library.
18759
19388
postdeps=$lt_postdeps_GCJ
18760
19389
 
 
19390
# The directories searched by this compiler when creating a shared
 
19391
# library
 
19392
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19393
 
18761
19394
# The library search path used internally by the compiler when linking
18762
19395
# a shared library.
18763
19396
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18846
19479
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18847
19480
 
18848
19481
# Fix the shell variable \$srcfile for the compiler.
18849
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19482
fix_srcfile_path=$lt_fix_srcfile_path
18850
19483
 
18851
19484
# Set to yes if exported symbols are required.
18852
19485
always_export_symbols=$always_export_symbols_GCJ
18903
19536
objext_RC=$objext
18904
19537
 
18905
19538
# Code to be used in simple compile tests
18906
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19539
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18907
19540
 
18908
19541
# Code to be used in simple link tests
18909
19542
lt_simple_link_test_code="$lt_simple_compile_test_code"
18922
19555
 
18923
19556
# save warnings/boilerplate of simple test code
18924
19557
ac_outfile=conftest.$ac_objext
18925
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19558
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18926
19559
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18927
19560
_lt_compiler_boilerplate=`cat conftest.err`
18928
19561
$rm conftest*
18929
19562
 
18930
19563
ac_outfile=conftest.$ac_objext
18931
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19564
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18932
19565
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18933
19566
_lt_linker_boilerplate=`cat conftest.err`
18934
 
$rm conftest*
 
19567
$rm -r conftest*
18935
19568
 
18936
19569
 
18937
19570
# Allow CC to be a program name with arguments.
18991
19624
    predeps_RC \
18992
19625
    postdeps_RC \
18993
19626
    compiler_lib_search_path_RC \
 
19627
    compiler_lib_search_dirs_RC \
18994
19628
    archive_cmds_RC \
18995
19629
    archive_expsym_cmds_RC \
18996
19630
    postinstall_cmds_RC \
19006
19640
    module_cmds_RC \
19007
19641
    module_expsym_cmds_RC \
19008
19642
    lt_cv_prog_compiler_c_o_RC \
 
19643
    fix_srcfile_path_RC \
19009
19644
    exclude_expsyms_RC \
19010
19645
    include_expsyms_RC; do
19011
19646
 
19238
19873
# shared library.
19239
19874
postdeps=$lt_postdeps_RC
19240
19875
 
 
19876
# The directories searched by this compiler when creating a shared
 
19877
# library
 
19878
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19879
 
19241
19880
# The library search path used internally by the compiler when linking
19242
19881
# a shared library.
19243
19882
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19326
19965
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19327
19966
 
19328
19967
# Fix the shell variable \$srcfile for the compiler.
19329
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
19968
fix_srcfile_path=$lt_fix_srcfile_path
19330
19969
 
19331
19970
# Set to yes if exported symbols are required.
19332
19971
always_export_symbols=$always_export_symbols_RC
22565
23204
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22566
23205
  lt_status=$lt_dlunknown
22567
23206
  cat > conftest.$ac_ext <<EOF
22568
 
#line 22568 "configure"
 
23207
#line 23207 "configure"
22569
23208
#include "confdefs.h"
22570
23209
 
22571
23210
#if HAVE_DLFCN_H
32631
33270
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32632
33271
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32633
33272
LN_S!$LN_S$ac_delim
 
33273
SED!$SED$ac_delim
32634
33274
EGREP!$EGREP$ac_delim
32635
33275
ECHO!$ECHO$ac_delim
32636
33276
AR!$AR$ac_delim
32637
33277
RANLIB!$RANLIB$ac_delim
 
33278
_ACEOF
 
33279
 
 
33280
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
33281
    break
 
33282
  elif $ac_last_try; then
 
33283
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33284
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33285
   { (exit 1); exit 1; }; }
 
33286
  else
 
33287
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
33288
  fi
 
33289
done
 
33290
 
 
33291
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
33292
if test -n "$ac_eof"; then
 
33293
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
33294
  ac_eof=`expr $ac_eof + 1`
 
33295
fi
 
33296
 
 
33297
cat >>$CONFIG_STATUS <<_ACEOF
 
33298
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
33299
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
33300
_ACEOF
 
33301
sed '
 
33302
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
33303
s/^/s,@/; s/!/@,|#_!!_#|/
 
33304
:n
 
33305
t n
 
33306
s/'"$ac_delim"'$/,g/; t
 
33307
s/$/\\/; p
 
33308
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
33309
' >>$CONFIG_STATUS <conf$$subs.sed
 
33310
rm -f conf$$subs.sed
 
33311
cat >>$CONFIG_STATUS <<_ACEOF
 
33312
CEOF$ac_eof
 
33313
_ACEOF
 
33314
 
 
33315
 
 
33316
ac_delim='%!_!# '
 
33317
for ac_last_try in false false false false false :; do
 
33318
  cat >conf$$subs.sed <<_ACEOF
 
33319
DSYMUTIL!$DSYMUTIL$ac_delim
 
33320
NMEDIT!$NMEDIT$ac_delim
32638
33321
CPP!$CPP$ac_delim
32639
 
_ACEOF
32640
 
 
32641
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32642
 
    break
32643
 
  elif $ac_last_try; then
32644
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32645
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32646
 
   { (exit 1); exit 1; }; }
32647
 
  else
32648
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32649
 
  fi
32650
 
done
32651
 
 
32652
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32653
 
if test -n "$ac_eof"; then
32654
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32655
 
  ac_eof=`expr $ac_eof + 1`
32656
 
fi
32657
 
 
32658
 
cat >>$CONFIG_STATUS <<_ACEOF
32659
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32660
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32661
 
_ACEOF
32662
 
sed '
32663
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32664
 
s/^/s,@/; s/!/@,|#_!!_#|/
32665
 
:n
32666
 
t n
32667
 
s/'"$ac_delim"'$/,g/; t
32668
 
s/$/\\/; p
32669
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32670
 
' >>$CONFIG_STATUS <conf$$subs.sed
32671
 
rm -f conf$$subs.sed
32672
 
cat >>$CONFIG_STATUS <<_ACEOF
32673
 
CEOF$ac_eof
32674
 
_ACEOF
32675
 
 
32676
 
 
32677
 
ac_delim='%!_!# '
32678
 
for ac_last_try in false false false false false :; do
32679
 
  cat >conf$$subs.sed <<_ACEOF
32680
33322
CXX!$CXX$ac_delim
32681
33323
CXXFLAGS!$CXXFLAGS$ac_delim
32682
33324
ac_ct_CXX!$ac_ct_CXX$ac_delim
32771
33413
USE_REDHAT_FALSE!$USE_REDHAT_FALSE$ac_delim
32772
33414
USE_SUSE_TRUE!$USE_SUSE_TRUE$ac_delim
32773
33415
USE_SUSE_FALSE!$USE_SUSE_FALSE$ac_delim
 
33416
_ACEOF
 
33417
 
 
33418
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
33419
    break
 
33420
  elif $ac_last_try; then
 
33421
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33422
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33423
   { (exit 1); exit 1; }; }
 
33424
  else
 
33425
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
33426
  fi
 
33427
done
 
33428
 
 
33429
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
33430
if test -n "$ac_eof"; then
 
33431
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
33432
  ac_eof=`expr $ac_eof + 1`
 
33433
fi
 
33434
 
 
33435
cat >>$CONFIG_STATUS <<_ACEOF
 
33436
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
33437
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
33438
_ACEOF
 
33439
sed '
 
33440
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
33441
s/^/s,@/; s/!/@,|#_!!_#|/
 
33442
:n
 
33443
t n
 
33444
s/'"$ac_delim"'$/,g/; t
 
33445
s/$/\\/; p
 
33446
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
33447
' >>$CONFIG_STATUS <conf$$subs.sed
 
33448
rm -f conf$$subs.sed
 
33449
cat >>$CONFIG_STATUS <<_ACEOF
 
33450
CEOF$ac_eof
 
33451
_ACEOF
 
33452
 
 
33453
 
 
33454
ac_delim='%!_!# '
 
33455
for ac_last_try in false false false false false :; do
 
33456
  cat >conf$$subs.sed <<_ACEOF
32774
33457
USE_SHADOWPW_TRUE!$USE_SHADOWPW_TRUE$ac_delim
32775
33458
USE_SHADOWPW_FALSE!$USE_SHADOWPW_FALSE$ac_delim
32776
33459
USE_TRU64_TRUE!$USE_TRU64_TRUE$ac_delim
32777
 
_ACEOF
32778
 
 
32779
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32780
 
    break
32781
 
  elif $ac_last_try; then
32782
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32783
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32784
 
   { (exit 1); exit 1; }; }
32785
 
  else
32786
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32787
 
  fi
32788
 
done
32789
 
 
32790
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32791
 
if test -n "$ac_eof"; then
32792
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32793
 
  ac_eof=`expr $ac_eof + 1`
32794
 
fi
32795
 
 
32796
 
cat >>$CONFIG_STATUS <<_ACEOF
32797
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32798
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32799
 
_ACEOF
32800
 
sed '
32801
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32802
 
s/^/s,@/; s/!/@,|#_!!_#|/
32803
 
:n
32804
 
t n
32805
 
s/'"$ac_delim"'$/,g/; t
32806
 
s/$/\\/; p
32807
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32808
 
' >>$CONFIG_STATUS <conf$$subs.sed
32809
 
rm -f conf$$subs.sed
32810
 
cat >>$CONFIG_STATUS <<_ACEOF
32811
 
CEOF$ac_eof
32812
 
_ACEOF
32813
 
 
32814
 
 
32815
 
ac_delim='%!_!# '
32816
 
for ac_last_try in false false false false false :; do
32817
 
  cat >conf$$subs.sed <<_ACEOF
32818
33460
USE_TRU64_FALSE!$USE_TRU64_FALSE$ac_delim
32819
33461
USE_SOLARIS_TRUE!$USE_SOLARIS_TRUE$ac_delim
32820
33462
USE_SOLARIS_FALSE!$USE_SOLARIS_FALSE$ac_delim
32829
33471
LTLIBOBJS!$LTLIBOBJS$ac_delim
32830
33472
_ACEOF
32831
33473
 
32832
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
 
33474
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
32833
33475
    break
32834
33476
  elif $ac_last_try; then
32835
33477
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33230
33872
  fi
33231
33873
  rm -f "$tmp/out12"
33232
33874
# Compute $ac_file's index in $config_headers.
 
33875
_am_arg=$ac_file
33233
33876
_am_stamp_count=1
33234
33877
for _am_header in $config_headers :; do
33235
33878
  case $_am_header in
33236
 
    $ac_file | $ac_file:* )
 
33879
    $_am_arg | $_am_arg:* )
33237
33880
      break ;;
33238
33881
    * )
33239
33882
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33240
33883
  esac
33241
33884
done
33242
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33243
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33244
 
         X$ac_file : 'X\(//\)[^/]' \| \
33245
 
         X$ac_file : 'X\(//\)$' \| \
33246
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33247
 
echo X$ac_file |
 
33885
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
33886
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
33887
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
33888
         X"$_am_arg" : 'X\(//\)$' \| \
 
33889
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
33890
echo X"$_am_arg" |
33248
33891
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33249
33892
            s//\1/
33250
33893
            q
33281
33924
  # each Makefile.in and add a new line on top of each file to say so.
33282
33925
  # Grep'ing the whole file is not good either: AIX grep has a line
33283
33926
  # limit of 2048, but all sed's we know have understand at least 4000.
33284
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
33927
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33285
33928
    dirpart=`$as_dirname -- "$mf" ||
33286
33929
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33287
33930
         X"$mf" : 'X\(//\)[^/]' \| \