~ubuntu-branches/ubuntu/maverick/pygoocanvas/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Gasparini
  • Date: 2008-05-27 12:33:11 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080527123311-eqm2rj4gf17fjljc
Tags: 0.10.0-1ubuntu1
* Merge from Debian unstable. (LP: #235247) Remaining Ubuntu changes:
   - Included demo files in binary package.
   - debian/control:
      + added build-dependencies from python-gobject-doc
      + changed maintainer to Ubuntu MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for pygoocanvas 0.9.0.
 
3
# Generated by GNU Autoconf 2.61 for pygoocanvas 0.10.0.
4
4
#
5
5
# Report bugs to <http://developer.berlios.de/projects/pygoocanvas/>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='pygoocanvas'
730
730
PACKAGE_TARNAME='pygoocanvas'
731
 
PACKAGE_VERSION='0.9.0'
732
 
PACKAGE_STRING='pygoocanvas 0.9.0'
 
731
PACKAGE_VERSION='0.10.0'
 
732
PACKAGE_STRING='pygoocanvas 0.10.0'
733
733
PACKAGE_BUGREPORT='http://developer.berlios.de/projects/pygoocanvas/'
734
734
 
735
735
ac_unique_file="./goocanvasmodule.c"
855
855
CCDEPMODE
856
856
am__fastdepCC_TRUE
857
857
am__fastdepCC_FALSE
 
858
SED
858
859
GREP
859
860
EGREP
860
861
LN_S
861
862
ECHO
862
863
AR
863
864
RANLIB
 
865
DSYMUTIL
 
866
NMEDIT
864
867
DLLTOOL
865
868
AS
866
869
OBJDUMP
903
906
PYGTK_DATADIR
904
907
CODEGEN
905
908
HTML_DIR
 
909
GTKDOC_CHECK
906
910
ENABLE_GTK_DOC_TRUE
907
911
ENABLE_GTK_DOC_FALSE
908
912
GTK_DOC_USE_LIBTOOL_TRUE
1432
1436
  # Omit some internal or obsolete options to make the list less imposing.
1433
1437
  # This message is too long to be a string in the A/UX 3.1 sh.
1434
1438
  cat <<_ACEOF
1435
 
\`configure' configures pygoocanvas 0.9.0 to adapt to many kinds of systems.
 
1439
\`configure' configures pygoocanvas 0.10.0 to adapt to many kinds of systems.
1436
1440
 
1437
1441
Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1442
 
1502
1506
 
1503
1507
if test -n "$ac_init_help"; then
1504
1508
  case $ac_init_help in
1505
 
     short | recursive ) echo "Configuration of pygoocanvas 0.9.0:";;
 
1509
     short | recursive ) echo "Configuration of pygoocanvas 0.10.0:";;
1506
1510
   esac
1507
1511
  cat <<\_ACEOF
1508
1512
 
1517
1521
  --enable-dependency-tracking   do not reject slow dependency extractors
1518
1522
  --disable-libtool-lock  avoid locking (might break parallel builds)
1519
1523
  --disable-docs          Disable documentation building
1520
 
  --enable-gtk-doc        use gtk-doc to build documentation default=no
 
1524
  --enable-gtk-doc        use gtk-doc to build documentation [default=no]
1521
1525
 
1522
1526
Optional Packages:
1523
1527
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616
1620
test -n "$ac_init_help" && exit $ac_status
1617
1621
if $ac_init_version; then
1618
1622
  cat <<\_ACEOF
1619
 
pygoocanvas configure 0.9.0
 
1623
pygoocanvas configure 0.10.0
1620
1624
generated by GNU Autoconf 2.61
1621
1625
 
1622
1626
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630
1634
This file contains any messages produced by compilers while
1631
1635
running configure, to aid debugging if configure makes a mistake.
1632
1636
 
1633
 
It was created by pygoocanvas $as_me 0.9.0, which was
 
1637
It was created by pygoocanvas $as_me 0.10.0, which was
1634
1638
generated by GNU Autoconf 2.61.  Invocation command line was
1635
1639
 
1636
1640
  $ $0 $@
1991
1995
 
1992
1996
 
1993
1997
cat >>confdefs.h <<\_ACEOF
1994
 
#define PYGOOCANVAS_MINOR_VERSION 9
 
1998
#define PYGOOCANVAS_MINOR_VERSION 10
1995
1999
_ACEOF
1996
2000
 
1997
2001
 
2321
2325
 
2322
2326
# Define the identity of the package.
2323
2327
 PACKAGE=pygoocanvas
2324
 
 VERSION=0.9.0
 
2328
 VERSION=0.10.0
2325
2329
 
2326
2330
 
2327
2331
cat >>confdefs.h <<_ACEOF
3781
3785
  test -z "$as_dir" && as_dir=.
3782
3786
  for lt_ac_prog in sed gsed; do
3783
3787
    for ac_exec_ext in '' $ac_executable_extensions; do
3784
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3788
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3785
3789
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3786
3790
      fi
3787
3791
    done
3788
3792
  done
3789
3793
done
 
3794
IFS=$as_save_IFS
3790
3795
lt_ac_max=0
3791
3796
lt_ac_count=0
3792
3797
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3821
3826
fi
3822
3827
 
3823
3828
SED=$lt_cv_path_SED
 
3829
 
3824
3830
{ echo "$as_me:$LINENO: result: $SED" >&5
3825
3831
echo "${ECHO_T}$SED" >&6; }
3826
3832
 
4182
4188
echo "${ECHO_T}no, using $LN_S" >&6; }
4183
4189
fi
4184
4190
 
4185
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4186
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4191
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4192
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4187
4193
if test "${lt_cv_deplibs_check_method+set}" = set; then
4188
4194
  echo $ECHO_N "(cached) $ECHO_C" >&6
4189
4195
else
4202
4208
# whether `pass_all' will *always* work, you probably want this one.
4203
4209
 
4204
4210
case $host_os in
4205
 
aix4* | aix5*)
 
4211
aix[4-9]*)
4206
4212
  lt_cv_deplibs_check_method=pass_all
4207
4213
  ;;
4208
4214
 
4224
4230
 
4225
4231
mingw* | pw32*)
4226
4232
  # Base MSYS/MinGW do not provide the 'file' command needed by
4227
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4228
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4229
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4233
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4234
  # unless we find 'file', for example because we are cross-compiling.
 
4235
  if ( file / ) >/dev/null 2>&1; then
 
4236
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4237
    lt_cv_file_magic_cmd='func_win32_libid'
 
4238
  else
 
4239
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4240
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4241
  fi
4230
4242
  ;;
4231
4243
 
4232
4244
darwin* | rhapsody*)
4271
4283
  esac
4272
4284
  ;;
4273
4285
 
4274
 
interix3*)
 
4286
interix[3-9]*)
4275
4287
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4276
4288
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4277
4289
  ;;
4321
4333
  lt_cv_deplibs_check_method=pass_all
4322
4334
  ;;
4323
4335
 
 
4336
rdos*)
 
4337
  lt_cv_deplibs_check_method=pass_all
 
4338
  ;;
 
4339
 
4324
4340
solaris*)
4325
4341
  lt_cv_deplibs_check_method=pass_all
4326
4342
  ;;
4408
4424
  ;;
4409
4425
*-*-irix6*)
4410
4426
  # Find out which ABI we are using.
4411
 
  echo '#line 4411 "configure"' > conftest.$ac_ext
 
4427
  echo '#line 4427 "configure"' > conftest.$ac_ext
4412
4428
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413
4429
  (eval $ac_compile) 2>&5
4414
4430
  ac_status=$?
4443
4459
  rm -rf conftest*
4444
4460
  ;;
4445
4461
 
4446
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4462
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4463
s390*-*linux*|sparc*-*linux*)
4447
4464
  # Find out which ABI we are using.
4448
4465
  echo 'int i;' > conftest.$ac_ext
4449
4466
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454
4471
    case `/usr/bin/file conftest.o` in
4455
4472
    *32-bit*)
4456
4473
      case $host in
 
4474
        x86_64-*kfreebsd*-gnu)
 
4475
          LD="${LD-ld} -m elf_i386_fbsd"
 
4476
          ;;
4457
4477
        x86_64-*linux*)
4458
4478
          LD="${LD-ld} -m elf_i386"
4459
4479
          ;;
4470
4490
      ;;
4471
4491
    *64-bit*)
4472
4492
      case $host in
 
4493
        x86_64-*kfreebsd*-gnu)
 
4494
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4495
          ;;
4473
4496
        x86_64-*linux*)
4474
4497
          LD="${LD-ld} -m elf_x86_64"
4475
4498
          ;;
4573
4596
    *64-bit*)
4574
4597
      case $lt_cv_prog_gnu_ld in
4575
4598
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4576
 
      *)    LD="${LD-ld} -64" ;;
 
4599
      *)
 
4600
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4601
          LD="${LD-ld} -64"
 
4602
        fi
 
4603
        ;;
4577
4604
      esac
4578
4605
      ;;
4579
4606
    esac
6466
6493
 
6467
6494
 
6468
6495
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6469
 
 
6470
6496
# find the maximum length of command line arguments
6471
6497
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6472
6498
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6553
6579
    fi
6554
6580
    ;;
6555
6581
  *)
6556
 
    # If test is not a shell built-in, we'll probably end up computing a
6557
 
    # maximum length that is only half of the actual maximum length, but
6558
 
    # we can't tell.
6559
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6560
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6582
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6583
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6584
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6585
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6586
    else
 
6587
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6588
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6561
6589
               = "XX$teststring") >/dev/null 2>&1 &&
6562
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6563
 
            lt_cv_sys_max_cmd_len=$new_result &&
6564
 
            test $i != 17 # 1/2 MB should be enough
6565
 
    do
6566
 
      i=`expr $i + 1`
6567
 
      teststring=$teststring$teststring
6568
 
    done
6569
 
    teststring=
6570
 
    # Add a significant safety factor because C++ compilers can tack on massive
6571
 
    # amounts of additional arguments before passing them to the linker.
6572
 
    # It appears as though 1/2 is a usable value.
6573
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6590
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6591
              lt_cv_sys_max_cmd_len=$new_result &&
 
6592
              test $i != 17 # 1/2 MB should be enough
 
6593
      do
 
6594
        i=`expr $i + 1`
 
6595
        teststring=$teststring$teststring
 
6596
      done
 
6597
      teststring=
 
6598
      # Add a significant safety factor because C++ compilers can tack on massive
 
6599
      # amounts of additional arguments before passing them to the linker.
 
6600
      # It appears as though 1/2 is a usable value.
 
6601
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6602
    fi
6574
6603
    ;;
6575
6604
  esac
6576
6605
 
6587
6616
 
6588
6617
 
6589
6618
 
 
6619
 
6590
6620
# Check for command to grab the raw symbol name followed by C symbol from nm.
6591
6621
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6592
6622
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6777
6807
    echo "$progname: failed program was:" >&5
6778
6808
    cat conftest.$ac_ext >&5
6779
6809
  fi
6780
 
  rm -f conftest* conftst*
 
6810
  rm -rf conftest* conftst*
6781
6811
 
6782
6812
  # Do not use the global_symbol_pipe unless it works.
6783
6813
  if test "$pipe_works" = yes; then
7175
7205
test -z "$ac_objext" && ac_objext=o
7176
7206
 
7177
7207
# Determine commands to create old-style static archives.
7178
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7208
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7179
7209
old_postinstall_cmds='chmod 644 $oldlib'
7180
7210
old_postuninstall_cmds=
7181
7211
 
7337
7367
  ;;
7338
7368
esac
7339
7369
 
 
7370
 
 
7371
  case $host_os in
 
7372
    rhapsody* | darwin*)
 
7373
    if test -n "$ac_tool_prefix"; then
 
7374
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7375
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7376
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7378
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7380
else
 
7381
  if test -n "$DSYMUTIL"; then
 
7382
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7383
else
 
7384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7385
for as_dir in $PATH
 
7386
do
 
7387
  IFS=$as_save_IFS
 
7388
  test -z "$as_dir" && as_dir=.
 
7389
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7391
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7393
    break 2
 
7394
  fi
 
7395
done
 
7396
done
 
7397
IFS=$as_save_IFS
 
7398
 
 
7399
fi
 
7400
fi
 
7401
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7402
if test -n "$DSYMUTIL"; then
 
7403
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7404
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7405
else
 
7406
  { echo "$as_me:$LINENO: result: no" >&5
 
7407
echo "${ECHO_T}no" >&6; }
 
7408
fi
 
7409
 
 
7410
 
 
7411
fi
 
7412
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7413
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7414
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7415
set dummy dsymutil; ac_word=$2
 
7416
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7418
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7420
else
 
7421
  if test -n "$ac_ct_DSYMUTIL"; then
 
7422
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7423
else
 
7424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7425
for as_dir in $PATH
 
7426
do
 
7427
  IFS=$as_save_IFS
 
7428
  test -z "$as_dir" && as_dir=.
 
7429
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7430
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7431
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7432
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7433
    break 2
 
7434
  fi
 
7435
done
 
7436
done
 
7437
IFS=$as_save_IFS
 
7438
 
 
7439
fi
 
7440
fi
 
7441
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7442
if test -n "$ac_ct_DSYMUTIL"; then
 
7443
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7444
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7445
else
 
7446
  { echo "$as_me:$LINENO: result: no" >&5
 
7447
echo "${ECHO_T}no" >&6; }
 
7448
fi
 
7449
 
 
7450
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7451
    DSYMUTIL=":"
 
7452
  else
 
7453
    case $cross_compiling:$ac_tool_warned in
 
7454
yes:)
 
7455
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7456
whose name does not start with the host triplet.  If you think this
 
7457
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7458
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7459
whose name does not start with the host triplet.  If you think this
 
7460
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7461
ac_tool_warned=yes ;;
 
7462
esac
 
7463
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7464
  fi
 
7465
else
 
7466
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7467
fi
 
7468
 
 
7469
    if test -n "$ac_tool_prefix"; then
 
7470
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7471
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7472
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7473
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7474
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7476
else
 
7477
  if test -n "$NMEDIT"; then
 
7478
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7479
else
 
7480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7481
for as_dir in $PATH
 
7482
do
 
7483
  IFS=$as_save_IFS
 
7484
  test -z "$as_dir" && as_dir=.
 
7485
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7486
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7487
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7488
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7489
    break 2
 
7490
  fi
 
7491
done
 
7492
done
 
7493
IFS=$as_save_IFS
 
7494
 
 
7495
fi
 
7496
fi
 
7497
NMEDIT=$ac_cv_prog_NMEDIT
 
7498
if test -n "$NMEDIT"; then
 
7499
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7500
echo "${ECHO_T}$NMEDIT" >&6; }
 
7501
else
 
7502
  { echo "$as_me:$LINENO: result: no" >&5
 
7503
echo "${ECHO_T}no" >&6; }
 
7504
fi
 
7505
 
 
7506
 
 
7507
fi
 
7508
if test -z "$ac_cv_prog_NMEDIT"; then
 
7509
  ac_ct_NMEDIT=$NMEDIT
 
7510
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7511
set dummy nmedit; ac_word=$2
 
7512
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7513
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7514
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7516
else
 
7517
  if test -n "$ac_ct_NMEDIT"; then
 
7518
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7519
else
 
7520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7521
for as_dir in $PATH
 
7522
do
 
7523
  IFS=$as_save_IFS
 
7524
  test -z "$as_dir" && as_dir=.
 
7525
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7526
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7527
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7528
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7529
    break 2
 
7530
  fi
 
7531
done
 
7532
done
 
7533
IFS=$as_save_IFS
 
7534
 
 
7535
fi
 
7536
fi
 
7537
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7538
if test -n "$ac_ct_NMEDIT"; then
 
7539
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7540
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7541
else
 
7542
  { echo "$as_me:$LINENO: result: no" >&5
 
7543
echo "${ECHO_T}no" >&6; }
 
7544
fi
 
7545
 
 
7546
  if test "x$ac_ct_NMEDIT" = x; then
 
7547
    NMEDIT=":"
 
7548
  else
 
7549
    case $cross_compiling:$ac_tool_warned in
 
7550
yes:)
 
7551
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7552
whose name does not start with the host triplet.  If you think this
 
7553
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7554
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7555
whose name does not start with the host triplet.  If you think this
 
7556
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7557
ac_tool_warned=yes ;;
 
7558
esac
 
7559
    NMEDIT=$ac_ct_NMEDIT
 
7560
  fi
 
7561
else
 
7562
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7563
fi
 
7564
 
 
7565
 
 
7566
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7567
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7568
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7570
else
 
7571
  lt_cv_apple_cc_single_mod=no
 
7572
      if test -z "${LT_MULTI_MODULE}"; then
 
7573
   # By default we will add the -single_module flag. You can override
 
7574
   # by either setting the environment variable LT_MULTI_MODULE
 
7575
   # non-empty at configure time, or by adding -multi_module to the
 
7576
   # link flags.
 
7577
   echo "int foo(void){return 1;}" > conftest.c
 
7578
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7579
     -dynamiclib ${wl}-single_module conftest.c
 
7580
   if test -f libconftest.dylib; then
 
7581
     lt_cv_apple_cc_single_mod=yes
 
7582
     rm -rf libconftest.dylib*
 
7583
   fi
 
7584
   rm conftest.c
 
7585
      fi
 
7586
fi
 
7587
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7588
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7589
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7590
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7591
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7593
else
 
7594
  lt_cv_ld_exported_symbols_list=no
 
7595
      save_LDFLAGS=$LDFLAGS
 
7596
      echo "_main" > conftest.sym
 
7597
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7598
      cat >conftest.$ac_ext <<_ACEOF
 
7599
/* confdefs.h.  */
 
7600
_ACEOF
 
7601
cat confdefs.h >>conftest.$ac_ext
 
7602
cat >>conftest.$ac_ext <<_ACEOF
 
7603
/* end confdefs.h.  */
 
7604
 
 
7605
int
 
7606
main ()
 
7607
{
 
7608
 
 
7609
  ;
 
7610
  return 0;
 
7611
}
 
7612
_ACEOF
 
7613
rm -f conftest.$ac_objext conftest$ac_exeext
 
7614
if { (ac_try="$ac_link"
 
7615
case "(($ac_try" in
 
7616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7617
  *) ac_try_echo=$ac_try;;
 
7618
esac
 
7619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7620
  (eval "$ac_link") 2>conftest.er1
 
7621
  ac_status=$?
 
7622
  grep -v '^ *+' conftest.er1 >conftest.err
 
7623
  rm -f conftest.er1
 
7624
  cat conftest.err >&5
 
7625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7626
  (exit $ac_status); } && {
 
7627
         test -z "$ac_c_werror_flag" ||
 
7628
         test ! -s conftest.err
 
7629
       } && test -s conftest$ac_exeext &&
 
7630
       $as_test_x conftest$ac_exeext; then
 
7631
  lt_cv_ld_exported_symbols_list=yes
 
7632
else
 
7633
  echo "$as_me: failed program was:" >&5
 
7634
sed 's/^/| /' conftest.$ac_ext >&5
 
7635
 
 
7636
        lt_cv_ld_exported_symbols_list=no
 
7637
fi
 
7638
 
 
7639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7640
      conftest$ac_exeext conftest.$ac_ext
 
7641
   LDFLAGS="$save_LDFLAGS"
 
7642
 
 
7643
fi
 
7644
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7645
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7646
    case $host_os in
 
7647
    rhapsody* | darwin1.[0123])
 
7648
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7649
    darwin1.*)
 
7650
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7651
    darwin*)
 
7652
      # if running on 10.5 or later, the deployment target defaults
 
7653
      # to the OS version, if on x86, and 10.4, the deployment
 
7654
      # target defaults to 10.4. Don't you love it?
 
7655
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7656
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7657
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7658
   10.[012]*)
 
7659
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7660
   10.*)
 
7661
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7662
      esac
 
7663
    ;;
 
7664
  esac
 
7665
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7666
      _lt_dar_single_mod='$single_module'
 
7667
    fi
 
7668
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7669
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7670
    else
 
7671
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7672
    fi
 
7673
    if test "$DSYMUTIL" != ":"; then
 
7674
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7675
    else
 
7676
      _lt_dsymutil=
 
7677
    fi
 
7678
    ;;
 
7679
  esac
 
7680
 
 
7681
 
7340
7682
enable_dlopen=no
7341
7683
enable_win32_dll=yes
7342
7684
 
7375
7717
objext=$objext
7376
7718
 
7377
7719
# Code to be used in simple compile tests
7378
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7720
lt_simple_compile_test_code="int some_variable = 0;"
7379
7721
 
7380
7722
# Code to be used in simple link tests
7381
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
7723
lt_simple_link_test_code='int main(){return(0);}'
7382
7724
 
7383
7725
 
7384
7726
# If no C compiler was specified, use CC.
7393
7735
 
7394
7736
# save warnings/boilerplate of simple test code
7395
7737
ac_outfile=conftest.$ac_objext
7396
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7738
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7397
7739
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7398
7740
_lt_compiler_boilerplate=`cat conftest.err`
7399
7741
$rm conftest*
7400
7742
 
7401
7743
ac_outfile=conftest.$ac_objext
7402
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7744
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7403
7745
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7404
7746
_lt_linker_boilerplate=`cat conftest.err`
7405
 
$rm conftest*
 
7747
$rm -r conftest*
7406
7748
 
7407
7749
 
7408
7750
 
7419
7761
else
7420
7762
  lt_cv_prog_compiler_rtti_exceptions=no
7421
7763
  ac_outfile=conftest.$ac_objext
7422
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7764
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7423
7765
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7424
7766
   # Insert the option either (1) after the last *FLAGS variable, or
7425
7767
   # (2) before a word containing "conftest.", or (3) at the end.
7430
7772
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431
7773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7432
7774
   -e 's:$: $lt_compiler_flag:'`
7433
 
   (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
 
7775
   (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
7434
7776
   (eval "$lt_compile" 2>conftest.err)
7435
7777
   ac_status=$?
7436
7778
   cat conftest.err >&5
7437
 
   echo "$as_me:7437: \$? = $ac_status" >&5
 
7779
   echo "$as_me:7779: \$? = $ac_status" >&5
7438
7780
   if (exit $ac_status) && test -s "$ac_outfile"; then
7439
7781
     # The compiler can only warn and ignore the option if not recognized
7440
7782
     # So say no if there are warnings other than the usual output.
7485
7827
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7486
7828
      ;;
7487
7829
 
7488
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7830
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7489
7831
      # PIC is the default for these OSes.
7490
7832
      ;;
7491
7833
 
7492
 
    mingw* | pw32* | os2*)
 
7834
    mingw* | cygwin* | pw32* | os2*)
7493
7835
      # This hack is so that the source file can tell whether it is being
7494
7836
      # built for inclusion in a dll (and should export symbols for example).
 
7837
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7838
      # (--disable-auto-import) libraries
7495
7839
      lt_prog_compiler_pic='-DDLL_EXPORT'
7496
7840
      ;;
7497
7841
 
7501
7845
      lt_prog_compiler_pic='-fno-common'
7502
7846
      ;;
7503
7847
 
7504
 
    interix3*)
 
7848
    interix[3-9]*)
7505
7849
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7506
7850
      # Instead, we relocate shared libraries at runtime.
7507
7851
      ;;
7559
7903
       esac
7560
7904
       ;;
7561
7905
 
7562
 
    mingw* | pw32* | os2*)
 
7906
    mingw* | cygwin* | pw32* | os2*)
7563
7907
      # This hack is so that the source file can tell whether it is being
7564
7908
      # built for inclusion in a dll (and should export symbols for example).
7565
7909
      lt_prog_compiler_pic='-DDLL_EXPORT'
7611
7955
        # All Alpha code is PIC.
7612
7956
        lt_prog_compiler_static='-non_shared'
7613
7957
        ;;
 
7958
      *)
 
7959
        case `$CC -V 2>&1 | sed 5q` in
 
7960
        *Sun\ C*)
 
7961
          # Sun C 5.9
 
7962
          lt_prog_compiler_pic='-KPIC'
 
7963
          lt_prog_compiler_static='-Bstatic'
 
7964
          lt_prog_compiler_wl='-Wl,'
 
7965
          ;;
 
7966
        *Sun\ F*)
 
7967
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7968
          lt_prog_compiler_pic='-KPIC'
 
7969
          lt_prog_compiler_static='-Bstatic'
 
7970
          lt_prog_compiler_wl=''
 
7971
          ;;
 
7972
        esac
 
7973
        ;;
7614
7974
      esac
7615
7975
      ;;
7616
7976
 
7620
7980
      lt_prog_compiler_static='-non_shared'
7621
7981
      ;;
7622
7982
 
 
7983
    rdos*)
 
7984
      lt_prog_compiler_static='-non_shared'
 
7985
      ;;
 
7986
 
7623
7987
    solaris*)
7624
7988
      lt_prog_compiler_pic='-KPIC'
7625
7989
      lt_prog_compiler_static='-Bstatic'
7682
8046
 
7683
8047
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7684
8048
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7685
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8049
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7686
8050
  echo $ECHO_N "(cached) $ECHO_C" >&6
7687
8051
else
7688
 
  lt_prog_compiler_pic_works=no
 
8052
  lt_cv_prog_compiler_pic_works=no
7689
8053
  ac_outfile=conftest.$ac_objext
7690
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8054
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7691
8055
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7692
8056
   # Insert the option either (1) after the last *FLAGS variable, or
7693
8057
   # (2) before a word containing "conftest.", or (3) at the end.
7698
8062
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7699
8063
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700
8064
   -e 's:$: $lt_compiler_flag:'`
7701
 
   (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
 
8065
   (eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
7702
8066
   (eval "$lt_compile" 2>conftest.err)
7703
8067
   ac_status=$?
7704
8068
   cat conftest.err >&5
7705
 
   echo "$as_me:7705: \$? = $ac_status" >&5
 
8069
   echo "$as_me:8069: \$? = $ac_status" >&5
7706
8070
   if (exit $ac_status) && test -s "$ac_outfile"; then
7707
8071
     # The compiler can only warn and ignore the option if not recognized
7708
8072
     # So say no if there are warnings other than the usual output.
7709
8073
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7710
8074
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711
8075
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7712
 
       lt_prog_compiler_pic_works=yes
 
8076
       lt_cv_prog_compiler_pic_works=yes
7713
8077
     fi
7714
8078
   fi
7715
8079
   $rm conftest*
7716
8080
 
7717
8081
fi
7718
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7719
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
8082
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8083
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7720
8084
 
7721
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8085
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7722
8086
    case $lt_prog_compiler_pic in
7723
8087
     "" | " "*) ;;
7724
8088
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7745
8109
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7746
8110
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7747
8111
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7748
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8112
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7749
8113
  echo $ECHO_N "(cached) $ECHO_C" >&6
7750
8114
else
7751
 
  lt_prog_compiler_static_works=no
 
8115
  lt_cv_prog_compiler_static_works=no
7752
8116
   save_LDFLAGS="$LDFLAGS"
7753
8117
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7754
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8118
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7755
8119
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7756
8120
     # The linker can only warn and ignore the option if not recognized
7757
8121
     # So say no if there are warnings
7761
8125
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7762
8126
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7763
8127
       if diff conftest.exp conftest.er2 >/dev/null; then
7764
 
         lt_prog_compiler_static_works=yes
 
8128
         lt_cv_prog_compiler_static_works=yes
7765
8129
       fi
7766
8130
     else
7767
 
       lt_prog_compiler_static_works=yes
 
8131
       lt_cv_prog_compiler_static_works=yes
7768
8132
     fi
7769
8133
   fi
7770
 
   $rm conftest*
 
8134
   $rm -r conftest*
7771
8135
   LDFLAGS="$save_LDFLAGS"
7772
8136
 
7773
8137
fi
7774
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7775
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
8138
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8139
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7776
8140
 
7777
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8141
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7778
8142
    :
7779
8143
else
7780
8144
    lt_prog_compiler_static=
7791
8155
   mkdir conftest
7792
8156
   cd conftest
7793
8157
   mkdir out
7794
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8158
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7795
8159
 
7796
8160
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7797
8161
   # Insert the option either (1) after the last *FLAGS variable, or
7802
8166
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7803
8167
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7804
8168
   -e 's:$: $lt_compiler_flag:'`
7805
 
   (eval echo "\"\$as_me:7805: $lt_compile\"" >&5)
 
8169
   (eval echo "\"\$as_me:8169: $lt_compile\"" >&5)
7806
8170
   (eval "$lt_compile" 2>out/conftest.err)
7807
8171
   ac_status=$?
7808
8172
   cat out/conftest.err >&5
7809
 
   echo "$as_me:7809: \$? = $ac_status" >&5
 
8173
   echo "$as_me:8173: \$? = $ac_status" >&5
7810
8174
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7811
8175
   then
7812
8176
     # The compiler can only warn and ignore the option if not recognized
7886
8250
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7887
8251
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7888
8252
  # as well as any symbol that contains `d'.
7889
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8253
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7890
8254
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7891
8255
  # platforms (ab)use it in PIC code, but their linkers get confused if
7892
8256
  # the symbol is explicitly referenced.  Since portable code cannot
7893
8257
  # rely on this symbol name, it's probably fine to never include it in
7894
8258
  # preloaded symbol tables.
 
8259
  # Exclude shared library initialization/finalization symbols.
7895
8260
  extract_expsyms_cmds=
7896
8261
  # Just being paranoid about ensuring that cc_basename is set.
7897
8262
  for cc_temp in $compiler""; do
7950
8315
 
7951
8316
    # See if GNU ld supports shared libraries.
7952
8317
    case $host_os in
7953
 
    aix3* | aix4* | aix5*)
 
8318
    aix[3-9]*)
7954
8319
      # On AIX/PPC, the GNU linker is very broken
7955
8320
      if test "$host_cpu" != ia64; then
7956
8321
        ld_shlibs=no
7998
8363
      allow_undefined_flag=unsupported
7999
8364
      always_export_symbols=no
8000
8365
      enable_shared_with_static_runtimes=yes
8001
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8366
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8002
8367
 
8003
8368
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8004
8369
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8016
8381
      fi
8017
8382
      ;;
8018
8383
 
8019
 
    interix3*)
 
8384
    interix[3-9]*)
8020
8385
      hardcode_direct=no
8021
8386
      hardcode_shlibpath_var=no
8022
8387
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8031
8396
      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'
8032
8397
      ;;
8033
8398
 
8034
 
    linux* | k*bsd*-gnu)
 
8399
    gnu* | linux* | k*bsd*-gnu)
8035
8400
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036
8401
        tmp_addflag=
8037
8402
        case $cc_basename,$host_cpu in
8049
8414
        ifc* | ifort*)                  # Intel Fortran compiler
8050
8415
          tmp_addflag=' -nofor_main' ;;
8051
8416
        esac
8052
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8417
        case `$CC -V 2>&1 | sed 5q` in
 
8418
        *Sun\ C*)                       # Sun C 5.9
 
8419
          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'
 
8420
          tmp_sharedflag='-G' ;;
 
8421
        *Sun\ F*)                       # Sun Fortran 8.3
 
8422
          tmp_sharedflag='-G' ;;
 
8423
        *)
 
8424
          tmp_sharedflag='-shared' ;;
 
8425
        esac
 
8426
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053
8427
 
8054
8428
        if test $supports_anon_versioning = yes; then
8055
8429
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8056
8430
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8057
8431
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8058
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8432
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8059
8433
        fi
8060
8434
        link_all_deplibs=no
8061
8435
      else
8161
8535
      fi
8162
8536
      ;;
8163
8537
 
8164
 
    aix4* | aix5*)
 
8538
    aix[4-9]*)
8165
8539
      if test "$host_cpu" = ia64; then
8166
8540
        # On IA64, the linker does run time linking by default, so we don't
8167
8541
        # have to do anything special.
8181
8555
        # Test if we are trying to use run time linking or normal
8182
8556
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8183
8557
        # need to do runtime linking.
8184
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8558
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8185
8559
          for ld_flag in $LDFLAGS; do
8186
8560
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8187
8561
            aix_use_runtimelinking=yes
8215
8589
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8216
8590
          then
8217
8591
          # We have reworked collect2
8218
 
          hardcode_direct=yes
 
8592
          :
8219
8593
          else
8220
8594
          # We have old collect2
8221
8595
          hardcode_direct=unsupported
8289
8663
       } && test -s conftest$ac_exeext &&
8290
8664
       $as_test_x conftest$ac_exeext; then
8291
8665
 
8292
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8293
 
}'`
 
8666
lt_aix_libpath_sed='
 
8667
    /Import File Strings/,/^$/ {
 
8668
        /^0/ {
 
8669
            s/^0  *\(.*\)$/\1/
 
8670
            p
 
8671
        }
 
8672
    }'
 
8673
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8294
8674
# Check for a 64-bit object if we didn't find anything.
8295
 
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; }
8296
 
}'`; fi
 
8675
if test -z "$aix_libpath"; then
 
8676
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8677
fi
8297
8678
else
8298
8679
  echo "$as_me: failed program was:" >&5
8299
8680
sed 's/^/| /' conftest.$ac_ext >&5
8348
8729
       } && test -s conftest$ac_exeext &&
8349
8730
       $as_test_x conftest$ac_exeext; then
8350
8731
 
8351
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8352
 
}'`
 
8732
lt_aix_libpath_sed='
 
8733
    /Import File Strings/,/^$/ {
 
8734
        /^0/ {
 
8735
            s/^0  *\(.*\)$/\1/
 
8736
            p
 
8737
        }
 
8738
    }'
 
8739
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8353
8740
# Check for a 64-bit object if we didn't find anything.
8354
 
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; }
8355
 
}'`; fi
 
8741
if test -z "$aix_libpath"; then
 
8742
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8743
fi
8356
8744
else
8357
8745
  echo "$as_me: failed program was:" >&5
8358
8746
sed 's/^/| /' conftest.$ac_ext >&5
8406
8794
      # The linker will automatically build a .lib file if we build a DLL.
8407
8795
      old_archive_From_new_cmds='true'
8408
8796
      # FIXME: Should let the user specify the lib program.
8409
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8797
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8410
8798
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8411
8799
      enable_shared_with_static_runtimes=yes
8412
8800
      ;;
8439
8827
      link_all_deplibs=yes
8440
8828
    if test "$GCC" = yes ; then
8441
8829
        output_verbose_link_cmd='echo'
8442
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8443
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8444
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8445
 
      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}'
8446
 
      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}'
 
8830
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8831
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8832
        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}"
 
8833
        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}"
8447
8834
    else
8448
8835
      case $cc_basename in
8449
8836
        xlc*)
8450
8837
         output_verbose_link_cmd='echo'
8451
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8838
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8452
8839
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8453
8840
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8454
 
         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}'
 
8841
         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}'
8455
8842
          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}'
8456
8843
          ;;
8457
8844
       *)
8613
9000
      ;;
8614
9001
 
8615
9002
    openbsd*)
8616
 
      hardcode_direct=yes
8617
 
      hardcode_shlibpath_var=no
8618
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8619
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8620
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8621
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8622
 
        export_dynamic_flag_spec='${wl}-E'
 
9003
      if test -f /usr/libexec/ld.so; then
 
9004
        hardcode_direct=yes
 
9005
        hardcode_shlibpath_var=no
 
9006
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9007
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9008
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9009
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9010
          export_dynamic_flag_spec='${wl}-E'
 
9011
        else
 
9012
          case $host_os in
 
9013
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9014
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9015
             hardcode_libdir_flag_spec='-R$libdir'
 
9016
             ;;
 
9017
           *)
 
9018
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9019
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9020
             ;;
 
9021
          esac
 
9022
        fi
8623
9023
      else
8624
 
       case $host_os in
8625
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8626
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8627
 
           hardcode_libdir_flag_spec='-R$libdir'
8628
 
           ;;
8629
 
         *)
8630
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8631
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8632
 
           ;;
8633
 
       esac
 
9024
        ld_shlibs=no
8634
9025
      fi
8635
9026
      ;;
8636
9027
 
8689
9080
      case $host_os in
8690
9081
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8691
9082
      *)
8692
 
        # The compiler driver will combine linker options so we
8693
 
        # cannot just pass the convience library names through
8694
 
        # without $wl, iff we do not link with $LD.
8695
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
9083
        # The compiler driver will combine and reorder linker options,
 
9084
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9085
        # but is careful enough not to reorder.
8696
9086
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8697
 
        case $wlarc in
8698
 
        '')
8699
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8700
 
        *)
8701
 
          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' ;;
8702
 
        esac ;;
 
9087
        if test "$GCC" = yes; then
 
9088
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9089
        else
 
9090
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9091
        fi
 
9092
        ;;
8703
9093
      esac
8704
9094
      link_all_deplibs=yes
8705
9095
      ;;
8756
9146
      fi
8757
9147
      ;;
8758
9148
 
8759
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9149
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8760
9150
      no_undefined_flag='${wl}-z,text'
8761
9151
      archive_cmds_need_lc=no
8762
9152
      hardcode_shlibpath_var=no
8833
9223
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8834
9224
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8835
9225
      $rm conftest*
8836
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9226
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8837
9227
 
8838
9228
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839
9229
  (eval $ac_compile) 2>&5
8891
9281
version_type=none
8892
9282
dynamic_linker="$host_os ld.so"
8893
9283
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9284
 
8894
9285
if test "$GCC" = yes; then
8895
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8896
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9286
  case $host_os in
 
9287
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9288
    *) lt_awk_arg="/^libraries:/" ;;
 
9289
  esac
 
9290
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9291
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8897
9292
    # if the path contains ";" then we assume it to be the separator
8898
9293
    # otherwise default to the standard path separator (i.e. ":") - it is
8899
9294
    # assumed that no part of a normal pathname contains ";" but that should
8900
9295
    # okay in the real world where ";" in dirpaths is itself problematic.
8901
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9296
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8902
9297
  else
8903
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9298
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8904
9299
  fi
 
9300
  # Ok, now we have the path, separated by spaces, we can step through it
 
9301
  # and add multilib dir if necessary.
 
9302
  lt_tmp_lt_search_path_spec=
 
9303
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9304
  for lt_sys_path in $lt_search_path_spec; do
 
9305
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9306
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9307
    else
 
9308
      test -d "$lt_sys_path" && \
 
9309
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9310
    fi
 
9311
  done
 
9312
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9313
BEGIN {RS=" "; FS="/|\n";} {
 
9314
  lt_foo="";
 
9315
  lt_count=0;
 
9316
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9317
    if ($lt_i != "" && $lt_i != ".") {
 
9318
      if ($lt_i == "..") {
 
9319
        lt_count++;
 
9320
      } else {
 
9321
        if (lt_count == 0) {
 
9322
          lt_foo="/" $lt_i lt_foo;
 
9323
        } else {
 
9324
          lt_count--;
 
9325
        }
 
9326
      }
 
9327
    }
 
9328
  }
 
9329
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9330
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9331
}'`
 
9332
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8905
9333
else
8906
9334
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8907
9335
fi
8922
9350
  soname_spec='${libname}${release}${shared_ext}$major'
8923
9351
  ;;
8924
9352
 
8925
 
aix4* | aix5*)
 
9353
aix[4-9]*)
8926
9354
  version_type=linux
8927
9355
  need_lib_prefix=no
8928
9356
  need_version=no
9061
9489
  shlibpath_overrides_runpath=yes
9062
9490
  shlibpath_var=DYLD_LIBRARY_PATH
9063
9491
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9064
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9065
 
  if test "$GCC" = yes; then
9066
 
    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"`
9067
 
  else
9068
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9069
 
  fi
 
9492
 
 
9493
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9070
9494
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9071
9495
  ;;
9072
9496
 
9120
9544
    shlibpath_overrides_runpath=no
9121
9545
    hardcode_into_libs=yes
9122
9546
    ;;
9123
 
  freebsd*) # from 4.6 on
 
9547
  *) # from 4.6 on, and DragonFly
9124
9548
    shlibpath_overrides_runpath=yes
9125
9549
    hardcode_into_libs=yes
9126
9550
    ;;
9183
9607
  postinstall_cmds='chmod 555 $lib'
9184
9608
  ;;
9185
9609
 
9186
 
interix3*)
 
9610
interix[3-9]*)
9187
9611
  version_type=linux
9188
9612
  need_lib_prefix=no
9189
9613
  need_version=no
9254
9678
 
9255
9679
  # Append ld.so.conf contents to the search path
9256
9680
  if test -f /etc/ld.so.conf; then
9257
 
    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' ' '`
 
9681
    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' ' '`
9258
9682
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9259
9683
  fi
9260
9684
 
9360
9784
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9361
9785
  ;;
9362
9786
 
 
9787
rdos*)
 
9788
  dynamic_linker=no
 
9789
  ;;
 
9790
 
9363
9791
solaris*)
9364
9792
  version_type=linux
9365
9793
  need_lib_prefix=no
9456
9884
echo "${ECHO_T}$dynamic_linker" >&6; }
9457
9885
test "$dynamic_linker" = no && can_build_shared=no
9458
9886
 
 
9887
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9889
else
 
9890
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9891
fi
 
9892
 
 
9893
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9894
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9896
else
 
9897
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9898
fi
 
9899
 
 
9900
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9901
 
9459
9902
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9460
9903
if test "$GCC" = yes; then
9461
9904
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9513
9956
   darwin*)
9514
9957
       if test -n "$STRIP" ; then
9515
9958
         striplib="$STRIP -x"
 
9959
         old_striplib="$STRIP -S"
9516
9960
         { echo "$as_me:$LINENO: result: yes" >&5
9517
9961
echo "${ECHO_T}yes" >&6; }
9518
9962
       else
9774
10218
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9775
10219
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9776
10220
if test $ac_cv_lib_dld_shl_load = yes; then
9777
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10221
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9778
10222
else
9779
10223
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9780
10224
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10050
10494
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10051
10495
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10052
10496
if test $ac_cv_lib_dld_dld_link = yes; then
10053
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10497
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10054
10498
fi
10055
10499
 
10056
10500
 
10099
10543
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10100
10544
  lt_status=$lt_dlunknown
10101
10545
  cat > conftest.$ac_ext <<EOF
10102
 
#line 10102 "configure"
 
10546
#line 10546 "configure"
10103
10547
#include "confdefs.h"
10104
10548
 
10105
10549
#if HAVE_DLFCN_H
10199
10643
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10200
10644
  lt_status=$lt_dlunknown
10201
10645
  cat > conftest.$ac_ext <<EOF
10202
 
#line 10202 "configure"
 
10646
#line 10646 "configure"
10203
10647
#include "confdefs.h"
10204
10648
 
10205
10649
#if HAVE_DLFCN_H
10326
10770
  fi
10327
10771
  ;;
10328
10772
 
10329
 
aix4* | aix5*)
 
10773
aix[4-9]*)
10330
10774
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10331
10775
    test "$enable_shared" = yes && enable_static=no
10332
10776
  fi
10382
10826
    predeps \
10383
10827
    postdeps \
10384
10828
    compiler_lib_search_path \
 
10829
    compiler_lib_search_dirs \
10385
10830
    archive_cmds \
10386
10831
    archive_expsym_cmds \
10387
10832
    postinstall_cmds \
10397
10842
    module_cmds \
10398
10843
    module_expsym_cmds \
10399
10844
    lt_cv_prog_compiler_c_o \
 
10845
    fix_srcfile_path \
10400
10846
    exclude_expsyms \
10401
10847
    include_expsyms; do
10402
10848
 
10441
10887
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10442
10888
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10443
10889
#
10444
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10890
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10445
10891
# Free Software Foundation, Inc.
10446
10892
#
10447
10893
# This file is part of GNU Libtool:
10677
11123
# shared library.
10678
11124
postdeps=$lt_postdeps
10679
11125
 
 
11126
# The directories searched by this compiler when creating a shared
 
11127
# library
 
11128
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11129
 
10680
11130
# The library search path used internally by the compiler when linking
10681
11131
# a shared library.
10682
11132
compiler_lib_search_path=$lt_compiler_lib_search_path
10765
11215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10766
11216
 
10767
11217
# Fix the shell variable \$srcfile for the compiler.
10768
 
fix_srcfile_path="$fix_srcfile_path"
 
11218
fix_srcfile_path=$lt_fix_srcfile_path
10769
11219
 
10770
11220
# Set to yes if exported symbols are required.
10771
11221
always_export_symbols=$always_export_symbols
10925
11375
predeps_CXX=
10926
11376
postdeps_CXX=
10927
11377
compiler_lib_search_path_CXX=
 
11378
compiler_lib_search_dirs_CXX=
10928
11379
 
10929
11380
# Source file extension for C++ test sources.
10930
11381
ac_ext=cpp
10934
11385
objext_CXX=$objext
10935
11386
 
10936
11387
# Code to be used in simple compile tests
10937
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11388
lt_simple_compile_test_code="int some_variable = 0;"
10938
11389
 
10939
11390
# Code to be used in simple link tests
10940
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11391
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10941
11392
 
10942
11393
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10943
11394
 
10953
11404
 
10954
11405
# save warnings/boilerplate of simple test code
10955
11406
ac_outfile=conftest.$ac_objext
10956
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11407
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10957
11408
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10958
11409
_lt_compiler_boilerplate=`cat conftest.err`
10959
11410
$rm conftest*
10960
11411
 
10961
11412
ac_outfile=conftest.$ac_objext
10962
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11413
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10963
11414
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10964
11415
_lt_linker_boilerplate=`cat conftest.err`
10965
 
$rm conftest*
 
11416
$rm -r conftest*
10966
11417
 
10967
11418
 
10968
11419
# Allow CC to be a program name with arguments.
11169
11620
    # FIXME: insert proper C++ library support
11170
11621
    ld_shlibs_CXX=no
11171
11622
    ;;
11172
 
  aix4* | aix5*)
 
11623
  aix[4-9]*)
11173
11624
    if test "$host_cpu" = ia64; then
11174
11625
      # On IA64, the linker does run time linking by default, so we don't
11175
11626
      # have to do anything special.
11182
11633
      # Test if we are trying to use run time linking or normal
11183
11634
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11184
11635
      # need to do runtime linking.
11185
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11636
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11186
11637
        for ld_flag in $LDFLAGS; do
11187
11638
          case $ld_flag in
11188
11639
          *-brtl*)
11218
11669
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11219
11670
        then
11220
11671
          # We have reworked collect2
11221
 
          hardcode_direct_CXX=yes
 
11672
          :
11222
11673
        else
11223
11674
          # We have old collect2
11224
11675
          hardcode_direct_CXX=unsupported
11292
11743
       } && test -s conftest$ac_exeext &&
11293
11744
       $as_test_x conftest$ac_exeext; then
11294
11745
 
11295
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11296
 
}'`
 
11746
lt_aix_libpath_sed='
 
11747
    /Import File Strings/,/^$/ {
 
11748
        /^0/ {
 
11749
            s/^0  *\(.*\)$/\1/
 
11750
            p
 
11751
        }
 
11752
    }'
 
11753
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11297
11754
# Check for a 64-bit object if we didn't find anything.
11298
 
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; }
11299
 
}'`; fi
 
11755
if test -z "$aix_libpath"; then
 
11756
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11757
fi
11300
11758
else
11301
11759
  echo "$as_me: failed program was:" >&5
11302
11760
sed 's/^/| /' conftest.$ac_ext >&5
11352
11810
       } && test -s conftest$ac_exeext &&
11353
11811
       $as_test_x conftest$ac_exeext; then
11354
11812
 
11355
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11356
 
}'`
 
11813
lt_aix_libpath_sed='
 
11814
    /Import File Strings/,/^$/ {
 
11815
        /^0/ {
 
11816
            s/^0  *\(.*\)$/\1/
 
11817
            p
 
11818
        }
 
11819
    }'
 
11820
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11357
11821
# Check for a 64-bit object if we didn't find anything.
11358
 
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; }
11359
 
}'`; fi
 
11822
if test -z "$aix_libpath"; then
 
11823
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11824
fi
11360
11825
else
11361
11826
  echo "$as_me: failed program was:" >&5
11362
11827
sed 's/^/| /' conftest.$ac_ext >&5
11426
11891
    fi
11427
11892
  ;;
11428
11893
      darwin* | rhapsody*)
11429
 
        case $host_os in
11430
 
        rhapsody* | darwin1.[012])
11431
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11432
 
         ;;
11433
 
       *) # Darwin 1.3 on
11434
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11435
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11436
 
         else
11437
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11438
 
             10.[012])
11439
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11440
 
               ;;
11441
 
             10.*)
11442
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11443
 
               ;;
11444
 
           esac
11445
 
         fi
11446
 
         ;;
11447
 
        esac
11448
11894
      archive_cmds_need_lc_CXX=no
11449
11895
      hardcode_direct_CXX=no
11450
11896
      hardcode_automatic_CXX=yes
11451
11897
      hardcode_shlibpath_var_CXX=unsupported
11452
11898
      whole_archive_flag_spec_CXX=''
11453
11899
      link_all_deplibs_CXX=yes
11454
 
 
11455
 
    if test "$GXX" = yes ; then
11456
 
      lt_int_apple_cc_single_mod=no
 
11900
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11901
      if test "$GXX" = yes ; then
11457
11902
      output_verbose_link_cmd='echo'
11458
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11459
 
       lt_int_apple_cc_single_mod=yes
 
11903
      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}"
 
11904
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11905
      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}"
 
11906
      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}"
 
11907
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11908
        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}"
 
11909
        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}"
11460
11910
      fi
11461
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11462
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11463
 
      else
11464
 
          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'
11465
 
        fi
11466
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11467
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11468
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11469
 
            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}'
11470
 
          else
11471
 
            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}'
11472
 
          fi
11473
 
            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}'
11474
11911
      else
11475
11912
      case $cc_basename in
11476
11913
        xlc*)
11477
11914
         output_verbose_link_cmd='echo'
11478
 
          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'
 
11915
          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'
11479
11916
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11480
11917
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11481
 
          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}'
 
11918
          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}'
11482
11919
          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}'
11483
11920
          ;;
11484
11921
       *)
11561
11998
      hardcode_libdir_separator_CXX=:
11562
11999
 
11563
12000
      case $host_cpu in
11564
 
      hppa*64*|ia64*)
11565
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11566
 
        ;;
 
12001
      hppa*64*|ia64*) ;;
11567
12002
      *)
11568
12003
        export_dynamic_flag_spec_CXX='${wl}-E'
11569
12004
        ;;
11631
12066
        ;;
11632
12067
    esac
11633
12068
    ;;
11634
 
  interix3*)
 
12069
  interix[3-9]*)
11635
12070
    hardcode_direct_CXX=no
11636
12071
    hardcode_shlibpath_var_CXX=no
11637
12072
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11723
12158
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11724
12159
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11725
12160
        ;;
11726
 
      pgCC*)
 
12161
      pgCC* | pgcpp*)
11727
12162
        # Portland Group C++ compiler
11728
12163
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11729
12164
        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'
11751
12186
        # dependencies.
11752
12187
        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'
11753
12188
        ;;
 
12189
      *)
 
12190
        case `$CC -V 2>&1 | sed 5q` in
 
12191
        *Sun\ C*)
 
12192
          # Sun C++ 5.9
 
12193
          no_undefined_flag_CXX=' -zdefs'
 
12194
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12195
          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'
 
12196
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12197
          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'
 
12198
 
 
12199
          # Not sure whether something based on
 
12200
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12201
          # would be better.
 
12202
          output_verbose_link_cmd='echo'
 
12203
 
 
12204
          # Archives containing C++ object files must be created using
 
12205
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12206
          # necessary to make sure instantiated templates are included
 
12207
          # in the archive.
 
12208
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12209
          ;;
 
12210
        esac
 
12211
        ;;
11754
12212
    esac
11755
12213
    ;;
11756
12214
  lynxos*)
11789
12247
    ld_shlibs_CXX=no
11790
12248
    ;;
11791
12249
  openbsd*)
11792
 
    hardcode_direct_CXX=yes
11793
 
    hardcode_shlibpath_var_CXX=no
11794
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11795
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11796
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11797
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11798
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11799
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12250
    if test -f /usr/libexec/ld.so; then
 
12251
      hardcode_direct_CXX=yes
 
12252
      hardcode_shlibpath_var_CXX=no
 
12253
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12254
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12255
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12256
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12257
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12258
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12259
      fi
 
12260
      output_verbose_link_cmd='echo'
 
12261
    else
 
12262
      ld_shlibs_CXX=no
11800
12263
    fi
11801
 
    output_verbose_link_cmd='echo'
11802
12264
    ;;
11803
12265
  osf3*)
11804
12266
    case $cc_basename in
11960
12422
        case $host_os in
11961
12423
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11962
12424
          *)
11963
 
            # The C++ compiler is used as linker so we must use $wl
11964
 
            # flag to pass the commands to the underlying system
11965
 
            # linker. We must also pass each convience library through
11966
 
            # to the system linker between allextract/defaultextract.
11967
 
            # The C++ compiler will combine linker options so we
11968
 
            # cannot just pass the convience library names through
11969
 
            # without $wl.
 
12425
            # The compiler driver will combine and reorder linker options,
 
12426
            # but understands `-z linker_flag'.
11970
12427
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11971
 
            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'
 
12428
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11972
12429
            ;;
11973
12430
        esac
11974
12431
        link_all_deplibs_CXX=yes
12015
12472
          fi
12016
12473
 
12017
12474
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12475
          case $host_os in
 
12476
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12477
          *)
 
12478
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12479
            ;;
 
12480
          esac
12018
12481
        fi
12019
12482
        ;;
12020
12483
    esac
12102
12565
GCC_CXX="$GXX"
12103
12566
LD_CXX="$LD"
12104
12567
 
12105
 
 
12106
12568
cat > conftest.$ac_ext <<EOF
12107
12569
class Foo
12108
12570
{
12204
12666
 
12205
12667
$rm -f confest.$objext
12206
12668
 
 
12669
compiler_lib_search_dirs_CXX=
 
12670
if test -n "$compiler_lib_search_path_CXX"; then
 
12671
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12672
fi
 
12673
 
12207
12674
# PORTME: override above test on systems where it is broken
12208
12675
case $host_os in
12209
 
interix3*)
 
12676
interix[3-9]*)
12210
12677
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12211
12678
  # hack all around it, let's just trust "g++" to DTRT.
12212
12679
  predep_objects_CXX=
12214
12681
  postdeps_CXX=
12215
12682
  ;;
12216
12683
 
 
12684
linux*)
 
12685
  case `$CC -V 2>&1 | sed 5q` in
 
12686
  *Sun\ C*)
 
12687
    # Sun C++ 5.9
 
12688
    #
 
12689
    # The more standards-conforming stlport4 library is
 
12690
    # incompatible with the Cstd library. Avoid specifying
 
12691
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12692
    # -library=stlport4 depends on it.
 
12693
    case " $CXX $CXXFLAGS " in
 
12694
    *" -library=stlport4 "*)
 
12695
      solaris_use_stlport4=yes
 
12696
      ;;
 
12697
    esac
 
12698
    if test "$solaris_use_stlport4" != yes; then
 
12699
      postdeps_CXX='-library=Cstd -library=Crun'
 
12700
    fi
 
12701
    ;;
 
12702
  esac
 
12703
  ;;
 
12704
 
12217
12705
solaris*)
12218
12706
  case $cc_basename in
12219
12707
  CC*)
 
12708
    # The more standards-conforming stlport4 library is
 
12709
    # incompatible with the Cstd library. Avoid specifying
 
12710
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12711
    # -library=stlport4 depends on it.
 
12712
    case " $CXX $CXXFLAGS " in
 
12713
    *" -library=stlport4 "*)
 
12714
      solaris_use_stlport4=yes
 
12715
      ;;
 
12716
    esac
 
12717
 
12220
12718
    # Adding this requires a known-good setup of shared libraries for
12221
12719
    # Sun compiler versions before 5.6, else PIC objects from an old
12222
12720
    # archive will be linked into the output, leading to subtle bugs.
12223
 
    postdeps_CXX='-lCstd -lCrun'
 
12721
    if test "$solaris_use_stlport4" != yes; then
 
12722
      postdeps_CXX='-library=Cstd -library=Crun'
 
12723
    fi
12224
12724
    ;;
12225
12725
  esac
12226
12726
  ;;
12227
12727
esac
12228
12728
 
12229
 
 
12230
12729
case " $postdeps_CXX " in
12231
12730
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12232
12731
esac
12257
12756
      # like `-m68040'.
12258
12757
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12259
12758
      ;;
12260
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12759
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12261
12760
      # PIC is the default for these OSes.
12262
12761
      ;;
12263
 
    mingw* | os2* | pw32*)
 
12762
    mingw* | cygwin* | os2* | pw32*)
12264
12763
      # This hack is so that the source file can tell whether it is being
12265
12764
      # built for inclusion in a dll (and should export symbols for example).
 
12765
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12766
      # (--disable-auto-import) libraries
12266
12767
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12267
12768
      ;;
12268
12769
    darwin* | rhapsody*)
12274
12775
      # DJGPP does not support shared libraries at all
12275
12776
      lt_prog_compiler_pic_CXX=
12276
12777
      ;;
12277
 
    interix3*)
 
12778
    interix[3-9]*)
12278
12779
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12279
12780
      # Instead, we relocate shared libraries at runtime.
12280
12781
      ;;
12300
12801
    esac
12301
12802
  else
12302
12803
    case $host_os in
12303
 
      aix4* | aix5*)
 
12804
      aix[4-9]*)
12304
12805
        # All AIX code is PIC.
12305
12806
        if test "$host_cpu" = ia64; then
12306
12807
          # AIX 5 now supports IA64 processor
12396
12897
            lt_prog_compiler_pic_CXX='-KPIC'
12397
12898
            lt_prog_compiler_static_CXX='-static'
12398
12899
            ;;
12399
 
          pgCC*)
 
12900
          pgCC* | pgcpp*)
12400
12901
            # Portland Group C++ compiler.
12401
12902
            lt_prog_compiler_wl_CXX='-Wl,'
12402
12903
            lt_prog_compiler_pic_CXX='-fpic'
12410
12911
            lt_prog_compiler_static_CXX='-non_shared'
12411
12912
            ;;
12412
12913
          *)
 
12914
            case `$CC -V 2>&1 | sed 5q` in
 
12915
            *Sun\ C*)
 
12916
              # Sun C++ 5.9
 
12917
              lt_prog_compiler_pic_CXX='-KPIC'
 
12918
              lt_prog_compiler_static_CXX='-Bstatic'
 
12919
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12920
              ;;
 
12921
            esac
12413
12922
            ;;
12414
12923
        esac
12415
12924
        ;;
12519
13028
 
12520
13029
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12521
13030
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12522
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13031
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12523
13032
  echo $ECHO_N "(cached) $ECHO_C" >&6
12524
13033
else
12525
 
  lt_prog_compiler_pic_works_CXX=no
 
13034
  lt_cv_prog_compiler_pic_works_CXX=no
12526
13035
  ac_outfile=conftest.$ac_objext
12527
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13036
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12528
13037
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12529
13038
   # Insert the option either (1) after the last *FLAGS variable, or
12530
13039
   # (2) before a word containing "conftest.", or (3) at the end.
12535
13044
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12536
13045
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12537
13046
   -e 's:$: $lt_compiler_flag:'`
12538
 
   (eval echo "\"\$as_me:12538: $lt_compile\"" >&5)
 
13047
   (eval echo "\"\$as_me:13047: $lt_compile\"" >&5)
12539
13048
   (eval "$lt_compile" 2>conftest.err)
12540
13049
   ac_status=$?
12541
13050
   cat conftest.err >&5
12542
 
   echo "$as_me:12542: \$? = $ac_status" >&5
 
13051
   echo "$as_me:13051: \$? = $ac_status" >&5
12543
13052
   if (exit $ac_status) && test -s "$ac_outfile"; then
12544
13053
     # The compiler can only warn and ignore the option if not recognized
12545
13054
     # So say no if there are warnings other than the usual output.
12546
13055
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12547
13056
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12548
13057
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12549
 
       lt_prog_compiler_pic_works_CXX=yes
 
13058
       lt_cv_prog_compiler_pic_works_CXX=yes
12550
13059
     fi
12551
13060
   fi
12552
13061
   $rm conftest*
12553
13062
 
12554
13063
fi
12555
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12556
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
13064
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13065
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12557
13066
 
12558
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13067
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12559
13068
    case $lt_prog_compiler_pic_CXX in
12560
13069
     "" | " "*) ;;
12561
13070
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12582
13091
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12583
13092
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12584
13093
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12585
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
13094
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12586
13095
  echo $ECHO_N "(cached) $ECHO_C" >&6
12587
13096
else
12588
 
  lt_prog_compiler_static_works_CXX=no
 
13097
  lt_cv_prog_compiler_static_works_CXX=no
12589
13098
   save_LDFLAGS="$LDFLAGS"
12590
13099
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12591
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13100
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12592
13101
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12593
13102
     # The linker can only warn and ignore the option if not recognized
12594
13103
     # So say no if there are warnings
12598
13107
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12599
13108
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12600
13109
       if diff conftest.exp conftest.er2 >/dev/null; then
12601
 
         lt_prog_compiler_static_works_CXX=yes
 
13110
         lt_cv_prog_compiler_static_works_CXX=yes
12602
13111
       fi
12603
13112
     else
12604
 
       lt_prog_compiler_static_works_CXX=yes
 
13113
       lt_cv_prog_compiler_static_works_CXX=yes
12605
13114
     fi
12606
13115
   fi
12607
 
   $rm conftest*
 
13116
   $rm -r conftest*
12608
13117
   LDFLAGS="$save_LDFLAGS"
12609
13118
 
12610
13119
fi
12611
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12612
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
13120
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13121
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12613
13122
 
12614
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13123
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12615
13124
    :
12616
13125
else
12617
13126
    lt_prog_compiler_static_CXX=
12628
13137
   mkdir conftest
12629
13138
   cd conftest
12630
13139
   mkdir out
12631
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13140
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12632
13141
 
12633
13142
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12634
13143
   # Insert the option either (1) after the last *FLAGS variable, or
12639
13148
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12640
13149
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12641
13150
   -e 's:$: $lt_compiler_flag:'`
12642
 
   (eval echo "\"\$as_me:12642: $lt_compile\"" >&5)
 
13151
   (eval echo "\"\$as_me:13151: $lt_compile\"" >&5)
12643
13152
   (eval "$lt_compile" 2>out/conftest.err)
12644
13153
   ac_status=$?
12645
13154
   cat out/conftest.err >&5
12646
 
   echo "$as_me:12646: \$? = $ac_status" >&5
 
13155
   echo "$as_me:13155: \$? = $ac_status" >&5
12647
13156
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12648
13157
   then
12649
13158
     # The compiler can only warn and ignore the option if not recognized
12696
13205
 
12697
13206
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12698
13207
  case $host_os in
12699
 
  aix4* | aix5*)
 
13208
  aix[4-9]*)
12700
13209
    # If we're using GNU nm, then we don't want the "-C" option.
12701
13210
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12702
13211
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12709
13218
    export_symbols_cmds_CXX="$ltdll_cmds"
12710
13219
  ;;
12711
13220
  cygwin* | mingw*)
12712
 
    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'
 
13221
    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'
12713
13222
  ;;
12714
13223
  linux* | k*bsd*-gnu)
12715
13224
    link_all_deplibs_CXX=no
12718
13227
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12719
13228
  ;;
12720
13229
  esac
 
13230
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12721
13231
 
12722
13232
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12723
13233
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12743
13253
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12744
13254
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12745
13255
      $rm conftest*
12746
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13256
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12747
13257
 
12748
13258
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749
13259
  (eval $ac_compile) 2>&5
12801
13311
version_type=none
12802
13312
dynamic_linker="$host_os ld.so"
12803
13313
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12804
 
if test "$GCC" = yes; then
12805
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12806
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12807
 
    # if the path contains ";" then we assume it to be the separator
12808
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12809
 
    # assumed that no part of a normal pathname contains ";" but that should
12810
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12811
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12812
 
  else
12813
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12814
 
  fi
12815
 
else
12816
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12817
 
fi
 
13314
 
12818
13315
need_lib_prefix=unknown
12819
13316
hardcode_into_libs=no
12820
13317
 
12832
13329
  soname_spec='${libname}${release}${shared_ext}$major'
12833
13330
  ;;
12834
13331
 
12835
 
aix4* | aix5*)
 
13332
aix[4-9]*)
12836
13333
  version_type=linux
12837
13334
  need_lib_prefix=no
12838
13335
  need_version=no
12971
13468
  shlibpath_overrides_runpath=yes
12972
13469
  shlibpath_var=DYLD_LIBRARY_PATH
12973
13470
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12974
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12975
 
  if test "$GCC" = yes; then
12976
 
    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"`
12977
 
  else
12978
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12979
 
  fi
 
13471
 
12980
13472
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12981
13473
  ;;
12982
13474
 
13030
13522
    shlibpath_overrides_runpath=no
13031
13523
    hardcode_into_libs=yes
13032
13524
    ;;
13033
 
  freebsd*) # from 4.6 on
 
13525
  *) # from 4.6 on, and DragonFly
13034
13526
    shlibpath_overrides_runpath=yes
13035
13527
    hardcode_into_libs=yes
13036
13528
    ;;
13093
13585
  postinstall_cmds='chmod 555 $lib'
13094
13586
  ;;
13095
13587
 
13096
 
interix3*)
 
13588
interix[3-9]*)
13097
13589
  version_type=linux
13098
13590
  need_lib_prefix=no
13099
13591
  need_version=no
13164
13656
 
13165
13657
  # Append ld.so.conf contents to the search path
13166
13658
  if test -f /etc/ld.so.conf; then
13167
 
    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' ' '`
 
13659
    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' ' '`
13168
13660
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13169
13661
  fi
13170
13662
 
13270
13762
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13271
13763
  ;;
13272
13764
 
 
13765
rdos*)
 
13766
  dynamic_linker=no
 
13767
  ;;
 
13768
 
13273
13769
solaris*)
13274
13770
  version_type=linux
13275
13771
  need_lib_prefix=no
13366
13862
echo "${ECHO_T}$dynamic_linker" >&6; }
13367
13863
test "$dynamic_linker" = no && can_build_shared=no
13368
13864
 
 
13865
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13867
else
 
13868
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13869
fi
 
13870
 
 
13871
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13872
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13874
else
 
13875
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13876
fi
 
13877
 
 
13878
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13879
 
13369
13880
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13370
13881
if test "$GCC" = yes; then
13371
13882
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13449
13960
    predeps_CXX \
13450
13961
    postdeps_CXX \
13451
13962
    compiler_lib_search_path_CXX \
 
13963
    compiler_lib_search_dirs_CXX \
13452
13964
    archive_cmds_CXX \
13453
13965
    archive_expsym_cmds_CXX \
13454
13966
    postinstall_cmds_CXX \
13464
13976
    module_cmds_CXX \
13465
13977
    module_expsym_cmds_CXX \
13466
13978
    lt_cv_prog_compiler_c_o_CXX \
 
13979
    fix_srcfile_path_CXX \
13467
13980
    exclude_expsyms_CXX \
13468
13981
    include_expsyms_CXX; do
13469
13982
 
13696
14209
# shared library.
13697
14210
postdeps=$lt_postdeps_CXX
13698
14211
 
 
14212
# The directories searched by this compiler when creating a shared
 
14213
# library
 
14214
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14215
 
13699
14216
# The library search path used internally by the compiler when linking
13700
14217
# a shared library.
13701
14218
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13784
14301
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13785
14302
 
13786
14303
# Fix the shell variable \$srcfile for the compiler.
13787
 
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14304
fix_srcfile_path=$lt_fix_srcfile_path
13788
14305
 
13789
14306
# Set to yes if exported symbols are required.
13790
14307
always_export_symbols=$always_export_symbols_CXX
13875
14392
objext_F77=$objext
13876
14393
 
13877
14394
# Code to be used in simple compile tests
13878
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14395
lt_simple_compile_test_code="\
 
14396
      subroutine t
 
14397
      return
 
14398
      end
 
14399
"
13879
14400
 
13880
14401
# Code to be used in simple link tests
13881
 
lt_simple_link_test_code="      program t\n      end\n"
 
14402
lt_simple_link_test_code="\
 
14403
      program t
 
14404
      end
 
14405
"
13882
14406
 
13883
14407
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13884
14408
 
13894
14418
 
13895
14419
# save warnings/boilerplate of simple test code
13896
14420
ac_outfile=conftest.$ac_objext
13897
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14421
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13898
14422
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13899
14423
_lt_compiler_boilerplate=`cat conftest.err`
13900
14424
$rm conftest*
13901
14425
 
13902
14426
ac_outfile=conftest.$ac_objext
13903
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14427
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13904
14428
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13905
14429
_lt_linker_boilerplate=`cat conftest.err`
13906
 
$rm conftest*
 
14430
$rm -r conftest*
13907
14431
 
13908
14432
 
13909
14433
# Allow CC to be a program name with arguments.
13941
14465
    postinstall_cmds='$RANLIB $lib'
13942
14466
  fi
13943
14467
  ;;
13944
 
aix4* | aix5*)
 
14468
aix[4-9]*)
13945
14469
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13946
14470
    test "$enable_shared" = yes && enable_static=no
13947
14471
  fi
13987
14511
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13988
14512
      ;;
13989
14513
 
13990
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14514
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13991
14515
      # PIC is the default for these OSes.
13992
14516
      ;;
13993
14517
 
13994
 
    mingw* | pw32* | os2*)
 
14518
    mingw* | cygwin* | pw32* | os2*)
13995
14519
      # This hack is so that the source file can tell whether it is being
13996
14520
      # built for inclusion in a dll (and should export symbols for example).
 
14521
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14522
      # (--disable-auto-import) libraries
13997
14523
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13998
14524
      ;;
13999
14525
 
14003
14529
      lt_prog_compiler_pic_F77='-fno-common'
14004
14530
      ;;
14005
14531
 
14006
 
    interix3*)
 
14532
    interix[3-9]*)
14007
14533
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14008
14534
      # Instead, we relocate shared libraries at runtime.
14009
14535
      ;;
14061
14587
       esac
14062
14588
       ;;
14063
14589
 
14064
 
    mingw* | pw32* | os2*)
 
14590
    mingw* | cygwin* | pw32* | os2*)
14065
14591
      # This hack is so that the source file can tell whether it is being
14066
14592
      # built for inclusion in a dll (and should export symbols for example).
14067
14593
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14113
14639
        # All Alpha code is PIC.
14114
14640
        lt_prog_compiler_static_F77='-non_shared'
14115
14641
        ;;
 
14642
      *)
 
14643
        case `$CC -V 2>&1 | sed 5q` in
 
14644
        *Sun\ C*)
 
14645
          # Sun C 5.9
 
14646
          lt_prog_compiler_pic_F77='-KPIC'
 
14647
          lt_prog_compiler_static_F77='-Bstatic'
 
14648
          lt_prog_compiler_wl_F77='-Wl,'
 
14649
          ;;
 
14650
        *Sun\ F*)
 
14651
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14652
          lt_prog_compiler_pic_F77='-KPIC'
 
14653
          lt_prog_compiler_static_F77='-Bstatic'
 
14654
          lt_prog_compiler_wl_F77=''
 
14655
          ;;
 
14656
        esac
 
14657
        ;;
14116
14658
      esac
14117
14659
      ;;
14118
14660
 
14122
14664
      lt_prog_compiler_static_F77='-non_shared'
14123
14665
      ;;
14124
14666
 
 
14667
    rdos*)
 
14668
      lt_prog_compiler_static_F77='-non_shared'
 
14669
      ;;
 
14670
 
14125
14671
    solaris*)
14126
14672
      lt_prog_compiler_pic_F77='-KPIC'
14127
14673
      lt_prog_compiler_static_F77='-Bstatic'
14184
14730
 
14185
14731
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14186
14732
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14187
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14733
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14188
14734
  echo $ECHO_N "(cached) $ECHO_C" >&6
14189
14735
else
14190
 
  lt_prog_compiler_pic_works_F77=no
 
14736
  lt_cv_prog_compiler_pic_works_F77=no
14191
14737
  ac_outfile=conftest.$ac_objext
14192
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14738
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
14739
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14194
14740
   # Insert the option either (1) after the last *FLAGS variable, or
14195
14741
   # (2) before a word containing "conftest.", or (3) at the end.
14200
14746
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14201
14747
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14202
14748
   -e 's:$: $lt_compiler_flag:'`
14203
 
   (eval echo "\"\$as_me:14203: $lt_compile\"" >&5)
 
14749
   (eval echo "\"\$as_me:14749: $lt_compile\"" >&5)
14204
14750
   (eval "$lt_compile" 2>conftest.err)
14205
14751
   ac_status=$?
14206
14752
   cat conftest.err >&5
14207
 
   echo "$as_me:14207: \$? = $ac_status" >&5
 
14753
   echo "$as_me:14753: \$? = $ac_status" >&5
14208
14754
   if (exit $ac_status) && test -s "$ac_outfile"; then
14209
14755
     # The compiler can only warn and ignore the option if not recognized
14210
14756
     # So say no if there are warnings other than the usual output.
14211
14757
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14212
14758
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14213
14759
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14214
 
       lt_prog_compiler_pic_works_F77=yes
 
14760
       lt_cv_prog_compiler_pic_works_F77=yes
14215
14761
     fi
14216
14762
   fi
14217
14763
   $rm conftest*
14218
14764
 
14219
14765
fi
14220
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14221
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14766
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14767
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14222
14768
 
14223
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14769
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14224
14770
    case $lt_prog_compiler_pic_F77 in
14225
14771
     "" | " "*) ;;
14226
14772
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14247
14793
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14248
14794
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14249
14795
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14250
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14796
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14251
14797
  echo $ECHO_N "(cached) $ECHO_C" >&6
14252
14798
else
14253
 
  lt_prog_compiler_static_works_F77=no
 
14799
  lt_cv_prog_compiler_static_works_F77=no
14254
14800
   save_LDFLAGS="$LDFLAGS"
14255
14801
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14256
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14802
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14257
14803
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14258
14804
     # The linker can only warn and ignore the option if not recognized
14259
14805
     # So say no if there are warnings
14263
14809
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14264
14810
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265
14811
       if diff conftest.exp conftest.er2 >/dev/null; then
14266
 
         lt_prog_compiler_static_works_F77=yes
 
14812
         lt_cv_prog_compiler_static_works_F77=yes
14267
14813
       fi
14268
14814
     else
14269
 
       lt_prog_compiler_static_works_F77=yes
 
14815
       lt_cv_prog_compiler_static_works_F77=yes
14270
14816
     fi
14271
14817
   fi
14272
 
   $rm conftest*
 
14818
   $rm -r conftest*
14273
14819
   LDFLAGS="$save_LDFLAGS"
14274
14820
 
14275
14821
fi
14276
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14277
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14822
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14823
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14278
14824
 
14279
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14825
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14280
14826
    :
14281
14827
else
14282
14828
    lt_prog_compiler_static_F77=
14293
14839
   mkdir conftest
14294
14840
   cd conftest
14295
14841
   mkdir out
14296
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14842
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14297
14843
 
14298
14844
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14299
14845
   # Insert the option either (1) after the last *FLAGS variable, or
14304
14850
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14305
14851
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14306
14852
   -e 's:$: $lt_compiler_flag:'`
14307
 
   (eval echo "\"\$as_me:14307: $lt_compile\"" >&5)
 
14853
   (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14308
14854
   (eval "$lt_compile" 2>out/conftest.err)
14309
14855
   ac_status=$?
14310
14856
   cat out/conftest.err >&5
14311
 
   echo "$as_me:14311: \$? = $ac_status" >&5
 
14857
   echo "$as_me:14857: \$? = $ac_status" >&5
14312
14858
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14313
14859
   then
14314
14860
     # The compiler can only warn and ignore the option if not recognized
14388
14934
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14389
14935
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14390
14936
  # as well as any symbol that contains `d'.
14391
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14937
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14392
14938
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14393
14939
  # platforms (ab)use it in PIC code, but their linkers get confused if
14394
14940
  # the symbol is explicitly referenced.  Since portable code cannot
14395
14941
  # rely on this symbol name, it's probably fine to never include it in
14396
14942
  # preloaded symbol tables.
 
14943
  # Exclude shared library initialization/finalization symbols.
14397
14944
  extract_expsyms_cmds=
14398
14945
  # Just being paranoid about ensuring that cc_basename is set.
14399
14946
  for cc_temp in $compiler""; do
14452
14999
 
14453
15000
    # See if GNU ld supports shared libraries.
14454
15001
    case $host_os in
14455
 
    aix3* | aix4* | aix5*)
 
15002
    aix[3-9]*)
14456
15003
      # On AIX/PPC, the GNU linker is very broken
14457
15004
      if test "$host_cpu" != ia64; then
14458
15005
        ld_shlibs_F77=no
14500
15047
      allow_undefined_flag_F77=unsupported
14501
15048
      always_export_symbols_F77=no
14502
15049
      enable_shared_with_static_runtimes_F77=yes
14503
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15050
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14504
15051
 
14505
15052
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14506
15053
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14518
15065
      fi
14519
15066
      ;;
14520
15067
 
14521
 
    interix3*)
 
15068
    interix[3-9]*)
14522
15069
      hardcode_direct_F77=no
14523
15070
      hardcode_shlibpath_var_F77=no
14524
15071
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14533
15080
      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'
14534
15081
      ;;
14535
15082
 
14536
 
    linux* | k*bsd*-gnu)
 
15083
    gnu* | linux* | k*bsd*-gnu)
14537
15084
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538
15085
        tmp_addflag=
14539
15086
        case $cc_basename,$host_cpu in
14551
15098
        ifc* | ifort*)                  # Intel Fortran compiler
14552
15099
          tmp_addflag=' -nofor_main' ;;
14553
15100
        esac
14554
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15101
        case `$CC -V 2>&1 | sed 5q` in
 
15102
        *Sun\ C*)                       # Sun C 5.9
 
15103
          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'
 
15104
          tmp_sharedflag='-G' ;;
 
15105
        *Sun\ F*)                       # Sun Fortran 8.3
 
15106
          tmp_sharedflag='-G' ;;
 
15107
        *)
 
15108
          tmp_sharedflag='-shared' ;;
 
15109
        esac
 
15110
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555
15111
 
14556
15112
        if test $supports_anon_versioning = yes; then
14557
15113
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14558
15114
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14559
15115
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14560
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15116
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14561
15117
        fi
14562
15118
        link_all_deplibs_F77=no
14563
15119
      else
14663
15219
      fi
14664
15220
      ;;
14665
15221
 
14666
 
    aix4* | aix5*)
 
15222
    aix[4-9]*)
14667
15223
      if test "$host_cpu" = ia64; then
14668
15224
        # On IA64, the linker does run time linking by default, so we don't
14669
15225
        # have to do anything special.
14683
15239
        # Test if we are trying to use run time linking or normal
14684
15240
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14685
15241
        # need to do runtime linking.
14686
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15242
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14687
15243
          for ld_flag in $LDFLAGS; do
14688
15244
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14689
15245
            aix_use_runtimelinking=yes
14717
15273
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14718
15274
          then
14719
15275
          # We have reworked collect2
14720
 
          hardcode_direct_F77=yes
 
15276
          :
14721
15277
          else
14722
15278
          # We have old collect2
14723
15279
          hardcode_direct_F77=unsupported
14781
15337
       } && test -s conftest$ac_exeext &&
14782
15338
       $as_test_x conftest$ac_exeext; then
14783
15339
 
14784
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14785
 
}'`
 
15340
lt_aix_libpath_sed='
 
15341
    /Import File Strings/,/^$/ {
 
15342
        /^0/ {
 
15343
            s/^0  *\(.*\)$/\1/
 
15344
            p
 
15345
        }
 
15346
    }'
 
15347
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14786
15348
# Check for a 64-bit object if we didn't find anything.
14787
 
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; }
14788
 
}'`; fi
 
15349
if test -z "$aix_libpath"; then
 
15350
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15351
fi
14789
15352
else
14790
15353
  echo "$as_me: failed program was:" >&5
14791
15354
sed 's/^/| /' conftest.$ac_ext >&5
14830
15393
       } && test -s conftest$ac_exeext &&
14831
15394
       $as_test_x conftest$ac_exeext; then
14832
15395
 
14833
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14834
 
}'`
 
15396
lt_aix_libpath_sed='
 
15397
    /Import File Strings/,/^$/ {
 
15398
        /^0/ {
 
15399
            s/^0  *\(.*\)$/\1/
 
15400
            p
 
15401
        }
 
15402
    }'
 
15403
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14835
15404
# Check for a 64-bit object if we didn't find anything.
14836
 
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; }
14837
 
}'`; fi
 
15405
if test -z "$aix_libpath"; then
 
15406
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15407
fi
14838
15408
else
14839
15409
  echo "$as_me: failed program was:" >&5
14840
15410
sed 's/^/| /' conftest.$ac_ext >&5
14888
15458
      # The linker will automatically build a .lib file if we build a DLL.
14889
15459
      old_archive_From_new_cmds_F77='true'
14890
15460
      # FIXME: Should let the user specify the lib program.
14891
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15461
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14892
15462
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14893
15463
      enable_shared_with_static_runtimes_F77=yes
14894
15464
      ;;
14921
15491
      link_all_deplibs_F77=yes
14922
15492
    if test "$GCC" = yes ; then
14923
15493
        output_verbose_link_cmd='echo'
14924
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14925
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14926
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14927
 
      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}'
14928
 
      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}'
 
15494
        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}"
 
15495
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15496
        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}"
 
15497
        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}"
14929
15498
    else
14930
15499
      case $cc_basename in
14931
15500
        xlc*)
14932
15501
         output_verbose_link_cmd='echo'
14933
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15502
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14934
15503
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14935
15504
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14936
 
         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}'
 
15505
         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}'
14937
15506
          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}'
14938
15507
          ;;
14939
15508
       *)
15095
15664
      ;;
15096
15665
 
15097
15666
    openbsd*)
15098
 
      hardcode_direct_F77=yes
15099
 
      hardcode_shlibpath_var_F77=no
15100
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15101
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15102
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15103
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15104
 
        export_dynamic_flag_spec_F77='${wl}-E'
 
15667
      if test -f /usr/libexec/ld.so; then
 
15668
        hardcode_direct_F77=yes
 
15669
        hardcode_shlibpath_var_F77=no
 
15670
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15671
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15672
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15673
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15674
          export_dynamic_flag_spec_F77='${wl}-E'
 
15675
        else
 
15676
          case $host_os in
 
15677
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15678
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15679
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15680
             ;;
 
15681
           *)
 
15682
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15683
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15684
             ;;
 
15685
          esac
 
15686
        fi
15105
15687
      else
15106
 
       case $host_os in
15107
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15108
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15109
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15110
 
           ;;
15111
 
         *)
15112
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15113
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15114
 
           ;;
15115
 
       esac
 
15688
        ld_shlibs_F77=no
15116
15689
      fi
15117
15690
      ;;
15118
15691
 
15171
15744
      case $host_os in
15172
15745
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15173
15746
      *)
15174
 
        # The compiler driver will combine linker options so we
15175
 
        # cannot just pass the convience library names through
15176
 
        # without $wl, iff we do not link with $LD.
15177
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15747
        # The compiler driver will combine and reorder linker options,
 
15748
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15749
        # but is careful enough not to reorder.
15178
15750
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15179
 
        case $wlarc in
15180
 
        '')
15181
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15182
 
        *)
15183
 
          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' ;;
15184
 
        esac ;;
 
15751
        if test "$GCC" = yes; then
 
15752
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15753
        else
 
15754
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15755
        fi
 
15756
        ;;
15185
15757
      esac
15186
15758
      link_all_deplibs_F77=yes
15187
15759
      ;;
15238
15810
      fi
15239
15811
      ;;
15240
15812
 
15241
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15813
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15242
15814
      no_undefined_flag_F77='${wl}-z,text'
15243
15815
      archive_cmds_need_lc_F77=no
15244
15816
      hardcode_shlibpath_var_F77=no
15315
15887
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15316
15888
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15317
15889
      $rm conftest*
15318
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15890
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319
15891
 
15320
15892
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15321
15893
  (eval $ac_compile) 2>&5
15373
15945
version_type=none
15374
15946
dynamic_linker="$host_os ld.so"
15375
15947
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15376
 
if test "$GCC" = yes; then
15377
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15378
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15379
 
    # if the path contains ";" then we assume it to be the separator
15380
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15381
 
    # assumed that no part of a normal pathname contains ";" but that should
15382
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15383
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15384
 
  else
15385
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15386
 
  fi
15387
 
else
15388
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15389
 
fi
 
15948
 
15390
15949
need_lib_prefix=unknown
15391
15950
hardcode_into_libs=no
15392
15951
 
15404
15963
  soname_spec='${libname}${release}${shared_ext}$major'
15405
15964
  ;;
15406
15965
 
15407
 
aix4* | aix5*)
 
15966
aix[4-9]*)
15408
15967
  version_type=linux
15409
15968
  need_lib_prefix=no
15410
15969
  need_version=no
15543
16102
  shlibpath_overrides_runpath=yes
15544
16103
  shlibpath_var=DYLD_LIBRARY_PATH
15545
16104
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15546
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15547
 
  if test "$GCC" = yes; then
15548
 
    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"`
15549
 
  else
15550
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15551
 
  fi
 
16105
 
15552
16106
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15553
16107
  ;;
15554
16108
 
15602
16156
    shlibpath_overrides_runpath=no
15603
16157
    hardcode_into_libs=yes
15604
16158
    ;;
15605
 
  freebsd*) # from 4.6 on
 
16159
  *) # from 4.6 on, and DragonFly
15606
16160
    shlibpath_overrides_runpath=yes
15607
16161
    hardcode_into_libs=yes
15608
16162
    ;;
15665
16219
  postinstall_cmds='chmod 555 $lib'
15666
16220
  ;;
15667
16221
 
15668
 
interix3*)
 
16222
interix[3-9]*)
15669
16223
  version_type=linux
15670
16224
  need_lib_prefix=no
15671
16225
  need_version=no
15736
16290
 
15737
16291
  # Append ld.so.conf contents to the search path
15738
16292
  if test -f /etc/ld.so.conf; then
15739
 
    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' ' '`
 
16293
    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' ' '`
15740
16294
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15741
16295
  fi
15742
16296
 
15842
16396
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15843
16397
  ;;
15844
16398
 
 
16399
rdos*)
 
16400
  dynamic_linker=no
 
16401
  ;;
 
16402
 
15845
16403
solaris*)
15846
16404
  version_type=linux
15847
16405
  need_lib_prefix=no
15938
16496
echo "${ECHO_T}$dynamic_linker" >&6; }
15939
16497
test "$dynamic_linker" = no && can_build_shared=no
15940
16498
 
 
16499
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16501
else
 
16502
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16503
fi
 
16504
 
 
16505
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16506
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16508
else
 
16509
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16510
fi
 
16511
 
 
16512
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16513
 
15941
16514
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15942
16515
if test "$GCC" = yes; then
15943
16516
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16021
16594
    predeps_F77 \
16022
16595
    postdeps_F77 \
16023
16596
    compiler_lib_search_path_F77 \
 
16597
    compiler_lib_search_dirs_F77 \
16024
16598
    archive_cmds_F77 \
16025
16599
    archive_expsym_cmds_F77 \
16026
16600
    postinstall_cmds_F77 \
16036
16610
    module_cmds_F77 \
16037
16611
    module_expsym_cmds_F77 \
16038
16612
    lt_cv_prog_compiler_c_o_F77 \
 
16613
    fix_srcfile_path_F77 \
16039
16614
    exclude_expsyms_F77 \
16040
16615
    include_expsyms_F77; do
16041
16616
 
16268
16843
# shared library.
16269
16844
postdeps=$lt_postdeps_F77
16270
16845
 
 
16846
# The directories searched by this compiler when creating a shared
 
16847
# library
 
16848
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16849
 
16271
16850
# The library search path used internally by the compiler when linking
16272
16851
# a shared library.
16273
16852
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16356
16935
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16357
16936
 
16358
16937
# Fix the shell variable \$srcfile for the compiler.
16359
 
fix_srcfile_path="$fix_srcfile_path_F77"
 
16938
fix_srcfile_path=$lt_fix_srcfile_path
16360
16939
 
16361
16940
# Set to yes if exported symbols are required.
16362
16941
always_export_symbols=$always_export_symbols_F77
16414
16993
objext_GCJ=$objext
16415
16994
 
16416
16995
# Code to be used in simple compile tests
16417
 
lt_simple_compile_test_code="class foo {}\n"
 
16996
lt_simple_compile_test_code="class foo {}"
16418
16997
 
16419
16998
# Code to be used in simple link tests
16420
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16999
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16421
17000
 
16422
17001
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16423
17002
 
16433
17012
 
16434
17013
# save warnings/boilerplate of simple test code
16435
17014
ac_outfile=conftest.$ac_objext
16436
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17015
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16437
17016
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16438
17017
_lt_compiler_boilerplate=`cat conftest.err`
16439
17018
$rm conftest*
16440
17019
 
16441
17020
ac_outfile=conftest.$ac_objext
16442
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
17021
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16443
17022
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16444
17023
_lt_linker_boilerplate=`cat conftest.err`
16445
 
$rm conftest*
 
17024
$rm -r conftest*
16446
17025
 
16447
17026
 
16448
17027
# Allow CC to be a program name with arguments.
16480
17059
else
16481
17060
  lt_cv_prog_compiler_rtti_exceptions=no
16482
17061
  ac_outfile=conftest.$ac_objext
16483
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17062
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16484
17063
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16485
17064
   # Insert the option either (1) after the last *FLAGS variable, or
16486
17065
   # (2) before a word containing "conftest.", or (3) at the end.
16491
17070
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16492
17071
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16493
17072
   -e 's:$: $lt_compiler_flag:'`
16494
 
   (eval echo "\"\$as_me:16494: $lt_compile\"" >&5)
 
17073
   (eval echo "\"\$as_me:17073: $lt_compile\"" >&5)
16495
17074
   (eval "$lt_compile" 2>conftest.err)
16496
17075
   ac_status=$?
16497
17076
   cat conftest.err >&5
16498
 
   echo "$as_me:16498: \$? = $ac_status" >&5
 
17077
   echo "$as_me:17077: \$? = $ac_status" >&5
16499
17078
   if (exit $ac_status) && test -s "$ac_outfile"; then
16500
17079
     # The compiler can only warn and ignore the option if not recognized
16501
17080
     # So say no if there are warnings other than the usual output.
16546
17125
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16547
17126
      ;;
16548
17127
 
16549
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17128
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16550
17129
      # PIC is the default for these OSes.
16551
17130
      ;;
16552
17131
 
16553
 
    mingw* | pw32* | os2*)
 
17132
    mingw* | cygwin* | pw32* | os2*)
16554
17133
      # This hack is so that the source file can tell whether it is being
16555
17134
      # built for inclusion in a dll (and should export symbols for example).
16556
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17135
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17136
      # (--disable-auto-import) libraries
 
17137
 
16557
17138
      ;;
16558
17139
 
16559
17140
    darwin* | rhapsody*)
16562
17143
      lt_prog_compiler_pic_GCJ='-fno-common'
16563
17144
      ;;
16564
17145
 
16565
 
    interix3*)
 
17146
    interix[3-9]*)
16566
17147
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16567
17148
      # Instead, we relocate shared libraries at runtime.
16568
17149
      ;;
16620
17201
       esac
16621
17202
       ;;
16622
17203
 
16623
 
    mingw* | pw32* | os2*)
 
17204
    mingw* | cygwin* | pw32* | os2*)
16624
17205
      # This hack is so that the source file can tell whether it is being
16625
17206
      # built for inclusion in a dll (and should export symbols for example).
16626
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17207
 
16627
17208
      ;;
16628
17209
 
16629
17210
    hpux9* | hpux10* | hpux11*)
16672
17253
        # All Alpha code is PIC.
16673
17254
        lt_prog_compiler_static_GCJ='-non_shared'
16674
17255
        ;;
 
17256
      *)
 
17257
        case `$CC -V 2>&1 | sed 5q` in
 
17258
        *Sun\ C*)
 
17259
          # Sun C 5.9
 
17260
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17261
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17262
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17263
          ;;
 
17264
        *Sun\ F*)
 
17265
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17266
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17267
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17268
          lt_prog_compiler_wl_GCJ=''
 
17269
          ;;
 
17270
        esac
 
17271
        ;;
16675
17272
      esac
16676
17273
      ;;
16677
17274
 
16681
17278
      lt_prog_compiler_static_GCJ='-non_shared'
16682
17279
      ;;
16683
17280
 
 
17281
    rdos*)
 
17282
      lt_prog_compiler_static_GCJ='-non_shared'
 
17283
      ;;
 
17284
 
16684
17285
    solaris*)
16685
17286
      lt_prog_compiler_pic_GCJ='-KPIC'
16686
17287
      lt_prog_compiler_static_GCJ='-Bstatic'
16743
17344
 
16744
17345
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16745
17346
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16746
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17347
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16747
17348
  echo $ECHO_N "(cached) $ECHO_C" >&6
16748
17349
else
16749
 
  lt_prog_compiler_pic_works_GCJ=no
 
17350
  lt_cv_prog_compiler_pic_works_GCJ=no
16750
17351
  ac_outfile=conftest.$ac_objext
16751
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17352
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16752
17353
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16753
17354
   # Insert the option either (1) after the last *FLAGS variable, or
16754
17355
   # (2) before a word containing "conftest.", or (3) at the end.
16759
17360
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16760
17361
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16761
17362
   -e 's:$: $lt_compiler_flag:'`
16762
 
   (eval echo "\"\$as_me:16762: $lt_compile\"" >&5)
 
17363
   (eval echo "\"\$as_me:17363: $lt_compile\"" >&5)
16763
17364
   (eval "$lt_compile" 2>conftest.err)
16764
17365
   ac_status=$?
16765
17366
   cat conftest.err >&5
16766
 
   echo "$as_me:16766: \$? = $ac_status" >&5
 
17367
   echo "$as_me:17367: \$? = $ac_status" >&5
16767
17368
   if (exit $ac_status) && test -s "$ac_outfile"; then
16768
17369
     # The compiler can only warn and ignore the option if not recognized
16769
17370
     # So say no if there are warnings other than the usual output.
16770
17371
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16771
17372
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16772
17373
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16773
 
       lt_prog_compiler_pic_works_GCJ=yes
 
17374
       lt_cv_prog_compiler_pic_works_GCJ=yes
16774
17375
     fi
16775
17376
   fi
16776
17377
   $rm conftest*
16777
17378
 
16778
17379
fi
16779
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16780
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
17380
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17381
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16781
17382
 
16782
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17383
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16783
17384
    case $lt_prog_compiler_pic_GCJ in
16784
17385
     "" | " "*) ;;
16785
17386
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16806
17407
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16807
17408
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16808
17409
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16809
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17410
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16810
17411
  echo $ECHO_N "(cached) $ECHO_C" >&6
16811
17412
else
16812
 
  lt_prog_compiler_static_works_GCJ=no
 
17413
  lt_cv_prog_compiler_static_works_GCJ=no
16813
17414
   save_LDFLAGS="$LDFLAGS"
16814
17415
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16815
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17416
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16816
17417
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16817
17418
     # The linker can only warn and ignore the option if not recognized
16818
17419
     # So say no if there are warnings
16822
17423
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16823
17424
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16824
17425
       if diff conftest.exp conftest.er2 >/dev/null; then
16825
 
         lt_prog_compiler_static_works_GCJ=yes
 
17426
         lt_cv_prog_compiler_static_works_GCJ=yes
16826
17427
       fi
16827
17428
     else
16828
 
       lt_prog_compiler_static_works_GCJ=yes
 
17429
       lt_cv_prog_compiler_static_works_GCJ=yes
16829
17430
     fi
16830
17431
   fi
16831
 
   $rm conftest*
 
17432
   $rm -r conftest*
16832
17433
   LDFLAGS="$save_LDFLAGS"
16833
17434
 
16834
17435
fi
16835
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16836
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17436
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17437
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16837
17438
 
16838
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17439
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16839
17440
    :
16840
17441
else
16841
17442
    lt_prog_compiler_static_GCJ=
16852
17453
   mkdir conftest
16853
17454
   cd conftest
16854
17455
   mkdir out
16855
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17456
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16856
17457
 
16857
17458
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16858
17459
   # Insert the option either (1) after the last *FLAGS variable, or
16863
17464
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16864
17465
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16865
17466
   -e 's:$: $lt_compiler_flag:'`
16866
 
   (eval echo "\"\$as_me:16866: $lt_compile\"" >&5)
 
17467
   (eval echo "\"\$as_me:17467: $lt_compile\"" >&5)
16867
17468
   (eval "$lt_compile" 2>out/conftest.err)
16868
17469
   ac_status=$?
16869
17470
   cat out/conftest.err >&5
16870
 
   echo "$as_me:16870: \$? = $ac_status" >&5
 
17471
   echo "$as_me:17471: \$? = $ac_status" >&5
16871
17472
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16872
17473
   then
16873
17474
     # The compiler can only warn and ignore the option if not recognized
16947
17548
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16948
17549
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16949
17550
  # as well as any symbol that contains `d'.
16950
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17551
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16951
17552
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16952
17553
  # platforms (ab)use it in PIC code, but their linkers get confused if
16953
17554
  # the symbol is explicitly referenced.  Since portable code cannot
16954
17555
  # rely on this symbol name, it's probably fine to never include it in
16955
17556
  # preloaded symbol tables.
 
17557
  # Exclude shared library initialization/finalization symbols.
16956
17558
  extract_expsyms_cmds=
16957
17559
  # Just being paranoid about ensuring that cc_basename is set.
16958
17560
  for cc_temp in $compiler""; do
17011
17613
 
17012
17614
    # See if GNU ld supports shared libraries.
17013
17615
    case $host_os in
17014
 
    aix3* | aix4* | aix5*)
 
17616
    aix[3-9]*)
17015
17617
      # On AIX/PPC, the GNU linker is very broken
17016
17618
      if test "$host_cpu" != ia64; then
17017
17619
        ld_shlibs_GCJ=no
17059
17661
      allow_undefined_flag_GCJ=unsupported
17060
17662
      always_export_symbols_GCJ=no
17061
17663
      enable_shared_with_static_runtimes_GCJ=yes
17062
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17664
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17063
17665
 
17064
17666
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17065
17667
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17077
17679
      fi
17078
17680
      ;;
17079
17681
 
17080
 
    interix3*)
 
17682
    interix[3-9]*)
17081
17683
      hardcode_direct_GCJ=no
17082
17684
      hardcode_shlibpath_var_GCJ=no
17083
17685
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17092
17694
      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'
17093
17695
      ;;
17094
17696
 
17095
 
    linux* | k*bsd*-gnu)
 
17697
    gnu* | linux* | k*bsd*-gnu)
17096
17698
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097
17699
        tmp_addflag=
17098
17700
        case $cc_basename,$host_cpu in
17110
17712
        ifc* | ifort*)                  # Intel Fortran compiler
17111
17713
          tmp_addflag=' -nofor_main' ;;
17112
17714
        esac
17113
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17715
        case `$CC -V 2>&1 | sed 5q` in
 
17716
        *Sun\ C*)                       # Sun C 5.9
 
17717
          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'
 
17718
          tmp_sharedflag='-G' ;;
 
17719
        *Sun\ F*)                       # Sun Fortran 8.3
 
17720
          tmp_sharedflag='-G' ;;
 
17721
        *)
 
17722
          tmp_sharedflag='-shared' ;;
 
17723
        esac
 
17724
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17114
17725
 
17115
17726
        if test $supports_anon_versioning = yes; then
17116
17727
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17117
17728
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17118
17729
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17119
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17730
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17120
17731
        fi
17121
17732
        link_all_deplibs_GCJ=no
17122
17733
      else
17222
17833
      fi
17223
17834
      ;;
17224
17835
 
17225
 
    aix4* | aix5*)
 
17836
    aix[4-9]*)
17226
17837
      if test "$host_cpu" = ia64; then
17227
17838
        # On IA64, the linker does run time linking by default, so we don't
17228
17839
        # have to do anything special.
17242
17853
        # Test if we are trying to use run time linking or normal
17243
17854
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17244
17855
        # need to do runtime linking.
17245
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17856
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17246
17857
          for ld_flag in $LDFLAGS; do
17247
17858
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17248
17859
            aix_use_runtimelinking=yes
17276
17887
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17277
17888
          then
17278
17889
          # We have reworked collect2
17279
 
          hardcode_direct_GCJ=yes
 
17890
          :
17280
17891
          else
17281
17892
          # We have old collect2
17282
17893
          hardcode_direct_GCJ=unsupported
17350
17961
       } && test -s conftest$ac_exeext &&
17351
17962
       $as_test_x conftest$ac_exeext; then
17352
17963
 
17353
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17354
 
}'`
 
17964
lt_aix_libpath_sed='
 
17965
    /Import File Strings/,/^$/ {
 
17966
        /^0/ {
 
17967
            s/^0  *\(.*\)$/\1/
 
17968
            p
 
17969
        }
 
17970
    }'
 
17971
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17355
17972
# Check for a 64-bit object if we didn't find anything.
17356
 
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; }
17357
 
}'`; fi
 
17973
if test -z "$aix_libpath"; then
 
17974
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17975
fi
17358
17976
else
17359
17977
  echo "$as_me: failed program was:" >&5
17360
17978
sed 's/^/| /' conftest.$ac_ext >&5
17409
18027
       } && test -s conftest$ac_exeext &&
17410
18028
       $as_test_x conftest$ac_exeext; then
17411
18029
 
17412
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17413
 
}'`
 
18030
lt_aix_libpath_sed='
 
18031
    /Import File Strings/,/^$/ {
 
18032
        /^0/ {
 
18033
            s/^0  *\(.*\)$/\1/
 
18034
            p
 
18035
        }
 
18036
    }'
 
18037
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17414
18038
# Check for a 64-bit object if we didn't find anything.
17415
 
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; }
17416
 
}'`; fi
 
18039
if test -z "$aix_libpath"; then
 
18040
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18041
fi
17417
18042
else
17418
18043
  echo "$as_me: failed program was:" >&5
17419
18044
sed 's/^/| /' conftest.$ac_ext >&5
17467
18092
      # The linker will automatically build a .lib file if we build a DLL.
17468
18093
      old_archive_From_new_cmds_GCJ='true'
17469
18094
      # FIXME: Should let the user specify the lib program.
17470
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18095
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17471
18096
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17472
18097
      enable_shared_with_static_runtimes_GCJ=yes
17473
18098
      ;;
17500
18125
      link_all_deplibs_GCJ=yes
17501
18126
    if test "$GCC" = yes ; then
17502
18127
        output_verbose_link_cmd='echo'
17503
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17504
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17505
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17506
 
      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}'
17507
 
      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}'
 
18128
        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}"
 
18129
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18130
        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}"
 
18131
        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}"
17508
18132
    else
17509
18133
      case $cc_basename in
17510
18134
        xlc*)
17511
18135
         output_verbose_link_cmd='echo'
17512
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18136
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17513
18137
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17514
18138
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17515
 
         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}'
 
18139
         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}'
17516
18140
          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}'
17517
18141
          ;;
17518
18142
       *)
17674
18298
      ;;
17675
18299
 
17676
18300
    openbsd*)
17677
 
      hardcode_direct_GCJ=yes
17678
 
      hardcode_shlibpath_var_GCJ=no
17679
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17680
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17681
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17682
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17683
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18301
      if test -f /usr/libexec/ld.so; then
 
18302
        hardcode_direct_GCJ=yes
 
18303
        hardcode_shlibpath_var_GCJ=no
 
18304
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18305
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18306
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18307
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18308
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18309
        else
 
18310
          case $host_os in
 
18311
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18312
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18313
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18314
             ;;
 
18315
           *)
 
18316
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18317
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18318
             ;;
 
18319
          esac
 
18320
        fi
17684
18321
      else
17685
 
       case $host_os in
17686
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17687
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17688
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17689
 
           ;;
17690
 
         *)
17691
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17692
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17693
 
           ;;
17694
 
       esac
 
18322
        ld_shlibs_GCJ=no
17695
18323
      fi
17696
18324
      ;;
17697
18325
 
17750
18378
      case $host_os in
17751
18379
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17752
18380
      *)
17753
 
        # The compiler driver will combine linker options so we
17754
 
        # cannot just pass the convience library names through
17755
 
        # without $wl, iff we do not link with $LD.
17756
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18381
        # The compiler driver will combine and reorder linker options,
 
18382
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18383
        # but is careful enough not to reorder.
17757
18384
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17758
 
        case $wlarc in
17759
 
        '')
17760
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17761
 
        *)
17762
 
          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' ;;
17763
 
        esac ;;
 
18385
        if test "$GCC" = yes; then
 
18386
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18387
        else
 
18388
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18389
        fi
 
18390
        ;;
17764
18391
      esac
17765
18392
      link_all_deplibs_GCJ=yes
17766
18393
      ;;
17817
18444
      fi
17818
18445
      ;;
17819
18446
 
17820
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18447
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17821
18448
      no_undefined_flag_GCJ='${wl}-z,text'
17822
18449
      archive_cmds_need_lc_GCJ=no
17823
18450
      hardcode_shlibpath_var_GCJ=no
17894
18521
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17895
18522
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17896
18523
      $rm conftest*
17897
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18524
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17898
18525
 
17899
18526
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17900
18527
  (eval $ac_compile) 2>&5
17952
18579
version_type=none
17953
18580
dynamic_linker="$host_os ld.so"
17954
18581
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17955
 
if test "$GCC" = yes; then
17956
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17957
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17958
 
    # if the path contains ";" then we assume it to be the separator
17959
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17960
 
    # assumed that no part of a normal pathname contains ";" but that should
17961
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17962
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17963
 
  else
17964
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17965
 
  fi
17966
 
else
17967
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17968
 
fi
 
18582
 
17969
18583
need_lib_prefix=unknown
17970
18584
hardcode_into_libs=no
17971
18585
 
17983
18597
  soname_spec='${libname}${release}${shared_ext}$major'
17984
18598
  ;;
17985
18599
 
17986
 
aix4* | aix5*)
 
18600
aix[4-9]*)
17987
18601
  version_type=linux
17988
18602
  need_lib_prefix=no
17989
18603
  need_version=no
18122
18736
  shlibpath_overrides_runpath=yes
18123
18737
  shlibpath_var=DYLD_LIBRARY_PATH
18124
18738
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18125
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18126
 
  if test "$GCC" = yes; then
18127
 
    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"`
18128
 
  else
18129
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18130
 
  fi
 
18739
 
18131
18740
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18132
18741
  ;;
18133
18742
 
18181
18790
    shlibpath_overrides_runpath=no
18182
18791
    hardcode_into_libs=yes
18183
18792
    ;;
18184
 
  freebsd*) # from 4.6 on
 
18793
  *) # from 4.6 on, and DragonFly
18185
18794
    shlibpath_overrides_runpath=yes
18186
18795
    hardcode_into_libs=yes
18187
18796
    ;;
18244
18853
  postinstall_cmds='chmod 555 $lib'
18245
18854
  ;;
18246
18855
 
18247
 
interix3*)
 
18856
interix[3-9]*)
18248
18857
  version_type=linux
18249
18858
  need_lib_prefix=no
18250
18859
  need_version=no
18315
18924
 
18316
18925
  # Append ld.so.conf contents to the search path
18317
18926
  if test -f /etc/ld.so.conf; then
18318
 
    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' ' '`
 
18927
    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' ' '`
18319
18928
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18320
18929
  fi
18321
18930
 
18421
19030
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18422
19031
  ;;
18423
19032
 
 
19033
rdos*)
 
19034
  dynamic_linker=no
 
19035
  ;;
 
19036
 
18424
19037
solaris*)
18425
19038
  version_type=linux
18426
19039
  need_lib_prefix=no
18517
19130
echo "${ECHO_T}$dynamic_linker" >&6; }
18518
19131
test "$dynamic_linker" = no && can_build_shared=no
18519
19132
 
 
19133
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19135
else
 
19136
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19137
fi
 
19138
 
 
19139
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19140
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19142
else
 
19143
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19144
fi
 
19145
 
 
19146
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19147
 
18520
19148
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18521
19149
if test "$GCC" = yes; then
18522
19150
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18600
19228
    predeps_GCJ \
18601
19229
    postdeps_GCJ \
18602
19230
    compiler_lib_search_path_GCJ \
 
19231
    compiler_lib_search_dirs_GCJ \
18603
19232
    archive_cmds_GCJ \
18604
19233
    archive_expsym_cmds_GCJ \
18605
19234
    postinstall_cmds_GCJ \
18615
19244
    module_cmds_GCJ \
18616
19245
    module_expsym_cmds_GCJ \
18617
19246
    lt_cv_prog_compiler_c_o_GCJ \
 
19247
    fix_srcfile_path_GCJ \
18618
19248
    exclude_expsyms_GCJ \
18619
19249
    include_expsyms_GCJ; do
18620
19250
 
18847
19477
# shared library.
18848
19478
postdeps=$lt_postdeps_GCJ
18849
19479
 
 
19480
# The directories searched by this compiler when creating a shared
 
19481
# library
 
19482
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19483
 
18850
19484
# The library search path used internally by the compiler when linking
18851
19485
# a shared library.
18852
19486
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18935
19569
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18936
19570
 
18937
19571
# Fix the shell variable \$srcfile for the compiler.
18938
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19572
fix_srcfile_path=$lt_fix_srcfile_path
18939
19573
 
18940
19574
# Set to yes if exported symbols are required.
18941
19575
always_export_symbols=$always_export_symbols_GCJ
18992
19626
objext_RC=$objext
18993
19627
 
18994
19628
# Code to be used in simple compile tests
18995
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19629
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18996
19630
 
18997
19631
# Code to be used in simple link tests
18998
19632
lt_simple_link_test_code="$lt_simple_compile_test_code"
19011
19645
 
19012
19646
# save warnings/boilerplate of simple test code
19013
19647
ac_outfile=conftest.$ac_objext
19014
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19648
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19015
19649
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016
19650
_lt_compiler_boilerplate=`cat conftest.err`
19017
19651
$rm conftest*
19018
19652
 
19019
19653
ac_outfile=conftest.$ac_objext
19020
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19654
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19021
19655
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19022
19656
_lt_linker_boilerplate=`cat conftest.err`
19023
 
$rm conftest*
 
19657
$rm -r conftest*
19024
19658
 
19025
19659
 
19026
19660
# Allow CC to be a program name with arguments.
19080
19714
    predeps_RC \
19081
19715
    postdeps_RC \
19082
19716
    compiler_lib_search_path_RC \
 
19717
    compiler_lib_search_dirs_RC \
19083
19718
    archive_cmds_RC \
19084
19719
    archive_expsym_cmds_RC \
19085
19720
    postinstall_cmds_RC \
19095
19730
    module_cmds_RC \
19096
19731
    module_expsym_cmds_RC \
19097
19732
    lt_cv_prog_compiler_c_o_RC \
 
19733
    fix_srcfile_path_RC \
19098
19734
    exclude_expsyms_RC \
19099
19735
    include_expsyms_RC; do
19100
19736
 
19327
19963
# shared library.
19328
19964
postdeps=$lt_postdeps_RC
19329
19965
 
 
19966
# The directories searched by this compiler when creating a shared
 
19967
# library
 
19968
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19969
 
19330
19970
# The library search path used internally by the compiler when linking
19331
19971
# a shared library.
19332
19972
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19415
20055
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19416
20056
 
19417
20057
# Fix the shell variable \$srcfile for the compiler.
19418
 
fix_srcfile_path="$fix_srcfile_path_RC"
 
20058
fix_srcfile_path=$lt_fix_srcfile_path
19419
20059
 
19420
20060
# Set to yes if exported symbols are required.
19421
20061
always_export_symbols=$always_export_symbols_RC
19967
20607
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
19968
20608
See the pkg-config man page for more details.
19969
20609
 
19970
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20610
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19971
20611
See \`config.log' for more details." >&5
19972
20612
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19973
20613
is in your PATH or set the PKG_CONFIG environment variable to the full
19977
20617
and PYGOBJECT_LIBS to avoid the need to call pkg-config.
19978
20618
See the pkg-config man page for more details.
19979
20619
 
19980
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20620
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19981
20621
See \`config.log' for more details." >&2;}
19982
20622
   { (exit 1); exit 1; }; }
19983
20623
else
20085
20725
    else
20086
20726
        if test -n "$PKG_CONFIG" && \
20087
20727
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"                          pygtk-2.0 >= 2.10.0,
20088
 
                         goocanvas >= 0.9,
20089
 
                         pycairo >= 1.2.0
 
20728
                         goocanvas >= 0.10,
 
20729
                         pycairo >= 1.4.0
20090
20730
                         \"") >&5
20091
20731
  ($PKG_CONFIG --exists --print-errors "                          pygtk-2.0 >= 2.10.0,
20092
 
                         goocanvas >= 0.9,
20093
 
                         pycairo >= 1.2.0
 
20732
                         goocanvas >= 0.10,
 
20733
                         pycairo >= 1.4.0
20094
20734
                         ") 2>&5
20095
20735
  ac_status=$?
20096
20736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097
20737
  (exit $ac_status); }; then
20098
20738
  pkg_cv_PYGOOCANVAS_CFLAGS=`$PKG_CONFIG --cflags "                          pygtk-2.0 >= 2.10.0,
20099
 
                         goocanvas >= 0.9,
20100
 
                         pycairo >= 1.2.0
 
20739
                         goocanvas >= 0.10,
 
20740
                         pycairo >= 1.4.0
20101
20741
                         " 2>/dev/null`
20102
20742
else
20103
20743
  pkg_failed=yes
20112
20752
    else
20113
20753
        if test -n "$PKG_CONFIG" && \
20114
20754
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"                          pygtk-2.0 >= 2.10.0,
20115
 
                         goocanvas >= 0.9,
20116
 
                         pycairo >= 1.2.0
 
20755
                         goocanvas >= 0.10,
 
20756
                         pycairo >= 1.4.0
20117
20757
                         \"") >&5
20118
20758
  ($PKG_CONFIG --exists --print-errors "                          pygtk-2.0 >= 2.10.0,
20119
 
                         goocanvas >= 0.9,
20120
 
                         pycairo >= 1.2.0
 
20759
                         goocanvas >= 0.10,
 
20760
                         pycairo >= 1.4.0
20121
20761
                         ") 2>&5
20122
20762
  ac_status=$?
20123
20763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124
20764
  (exit $ac_status); }; then
20125
20765
  pkg_cv_PYGOOCANVAS_LIBS=`$PKG_CONFIG --libs "                          pygtk-2.0 >= 2.10.0,
20126
 
                         goocanvas >= 0.9,
20127
 
                         pycairo >= 1.2.0
 
20766
                         goocanvas >= 0.10,
 
20767
                         pycairo >= 1.4.0
20128
20768
                         " 2>/dev/null`
20129
20769
else
20130
20770
  pkg_failed=yes
20145
20785
fi
20146
20786
        if test $_pkg_short_errors_supported = yes; then
20147
20787
                PYGOOCANVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "                          pygtk-2.0 >= 2.10.0,
20148
 
                         goocanvas >= 0.9,
20149
 
                         pycairo >= 1.2.0
 
20788
                         goocanvas >= 0.10,
 
20789
                         pycairo >= 1.4.0
20150
20790
                         "`
20151
20791
        else
20152
20792
                PYGOOCANVAS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "                          pygtk-2.0 >= 2.10.0,
20153
 
                         goocanvas >= 0.9,
20154
 
                         pycairo >= 1.2.0
 
20793
                         goocanvas >= 0.10,
 
20794
                         pycairo >= 1.4.0
20155
20795
                         "`
20156
20796
        fi
20157
20797
        # Put the nasty error message in config.log where it belongs
20158
20798
        echo "$PYGOOCANVAS_PKG_ERRORS" >&5
20159
20799
 
20160
20800
        { { echo "$as_me:$LINENO: error: Package requirements (                          pygtk-2.0 >= 2.10.0,
20161
 
                         goocanvas >= 0.9,
20162
 
                         pycairo >= 1.2.0
 
20801
                         goocanvas >= 0.10,
 
20802
                         pycairo >= 1.4.0
20163
20803
                         ) were not met:
20164
20804
 
20165
20805
$PYGOOCANVAS_PKG_ERRORS
20172
20812
See the pkg-config man page for more details.
20173
20813
" >&5
20174
20814
echo "$as_me: error: Package requirements (                          pygtk-2.0 >= 2.10.0,
20175
 
                         goocanvas >= 0.9,
20176
 
                         pycairo >= 1.2.0
 
20815
                         goocanvas >= 0.10,
 
20816
                         pycairo >= 1.4.0
20177
20817
                         ) were not met:
20178
20818
 
20179
20819
$PYGOOCANVAS_PKG_ERRORS
20195
20835
and PYGOOCANVAS_LIBS to avoid the need to call pkg-config.
20196
20836
See the pkg-config man page for more details.
20197
20837
 
20198
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20838
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20199
20839
See \`config.log' for more details." >&5
20200
20840
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20201
20841
is in your PATH or set the PKG_CONFIG environment variable to the full
20205
20845
and PYGOOCANVAS_LIBS to avoid the need to call pkg-config.
20206
20846
See the pkg-config man page for more details.
20207
20847
 
20208
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20848
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20209
20849
See \`config.log' for more details." >&2;}
20210
20850
   { (exit 1); exit 1; }; }
20211
20851
else
20413
21053
  ;;
20414
21054
esac
20415
21055
 
20416
 
ac_config_files="$ac_config_files Makefile demo/Makefile docs/Makefile docs/reference/entities.docbook"
 
21056
ac_config_files="$ac_config_files Makefile demo/Makefile docs/Makefile docs/reference/entities.docbook pygoocanvas.pc"
20417
21057
 
20418
21058
 
20419
21059
 
20436
21076
fi
20437
21077
 
20438
21078
 
20439
 
  have_gtk_doc=no
20440
21079
  if test x$enable_gtk_doc = xyes; then
20441
 
    if test -z "$PKG_CONFIG"; then
20442
 
      # Extract the first word of "pkg-config", so it can be a program name with args.
20443
 
set dummy pkg-config; ac_word=$2
 
21080
    if test -n "$PKG_CONFIG" && \
 
21081
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.4\"") >&5
 
21082
  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.4") 2>&5
 
21083
  ac_status=$?
 
21084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21085
  (exit $ac_status); }; then
 
21086
  :
 
21087
else
 
21088
  { { echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.4 installed to build gtk-doc" >&5
 
21089
echo "$as_me: error: You need to have gtk-doc >= 1.4 installed to build gtk-doc" >&2;}
 
21090
   { (exit 1); exit 1; }; }
 
21091
fi
 
21092
  fi
 
21093
 
 
21094
  { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
 
21095
echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
 
21096
  { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
 
21097
echo "${ECHO_T}$enable_gtk_doc" >&6; }
 
21098
 
 
21099
  for ac_prog in gtkdoc-check
 
21100
do
 
21101
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21102
set dummy $ac_prog; ac_word=$2
20444
21103
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20445
21104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20446
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21105
if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
20447
21106
  echo $ECHO_N "(cached) $ECHO_C" >&6
20448
21107
else
20449
 
  case $PKG_CONFIG in
 
21108
  case $GTKDOC_CHECK in
20450
21109
  [\\/]* | ?:[\\/]*)
20451
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21110
  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20452
21111
  ;;
20453
21112
  *)
20454
21113
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458
21117
  test -z "$as_dir" && as_dir=.
20459
21118
  for ac_exec_ext in '' $ac_executable_extensions; do
20460
21119
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20461
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21120
    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20462
21121
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20463
21122
    break 2
20464
21123
  fi
20466
21125
done
20467
21126
IFS=$as_save_IFS
20468
21127
 
20469
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20470
21128
  ;;
20471
21129
esac
20472
21130
fi
20473
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20474
 
if test -n "$PKG_CONFIG"; then
20475
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20476
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
21131
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
 
21132
if test -n "$GTKDOC_CHECK"; then
 
21133
  { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
 
21134
echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
20477
21135
else
20478
21136
  { echo "$as_me:$LINENO: result: no" >&5
20479
21137
echo "${ECHO_T}no" >&6; }
20480
21138
fi
20481
21139
 
20482
21140
 
20483
 
    fi
20484
 
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
20485
 
      have_gtk_doc=yes
20486
 
    fi
20487
 
 
20488
 
  gtk_doc_min_version=1.4
20489
 
    if test "$have_gtk_doc" = yes; then
20490
 
      { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
20491
 
echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; }
20492
 
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
20493
 
        { echo "$as_me:$LINENO: result: yes" >&5
20494
 
echo "${ECHO_T}yes" >&6; }
20495
 
      else
20496
 
        { echo "$as_me:$LINENO: result: no" >&5
20497
 
echo "${ECHO_T}no" >&6; }
20498
 
        have_gtk_doc=no
20499
 
      fi
20500
 
    fi
20501
 
 
20502
 
    if test "$have_gtk_doc" != yes; then
20503
 
      enable_gtk_doc=no
20504
 
    fi
20505
 
  fi
 
21141
  test -n "$GTKDOC_CHECK" && break
 
21142
done
 
21143
 
20506
21144
 
20507
21145
 
20508
21146
 
20978
21616
# report actual input values of CONFIG_FILES etc. instead of their
20979
21617
# values after options handling.
20980
21618
ac_log="
20981
 
This file was extended by pygoocanvas $as_me 0.9.0, which was
 
21619
This file was extended by pygoocanvas $as_me 0.10.0, which was
20982
21620
generated by GNU Autoconf 2.61.  Invocation command line was
20983
21621
 
20984
21622
  CONFIG_FILES    = $CONFIG_FILES
21031
21669
_ACEOF
21032
21670
cat >>$CONFIG_STATUS <<_ACEOF
21033
21671
ac_cs_version="\\
21034
 
pygoocanvas config.status 0.9.0
 
21672
pygoocanvas config.status 0.10.0
21035
21673
configured by $0, generated by GNU Autoconf 2.61,
21036
21674
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21037
21675
 
21150
21788
    "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
21151
21789
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21152
21790
    "docs/reference/entities.docbook") CONFIG_FILES="$CONFIG_FILES docs/reference/entities.docbook" ;;
 
21791
    "pygoocanvas.pc") CONFIG_FILES="$CONFIG_FILES pygoocanvas.pc" ;;
21153
21792
 
21154
21793
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21155
21794
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21298
21937
CCDEPMODE!$CCDEPMODE$ac_delim
21299
21938
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21300
21939
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
21940
SED!$SED$ac_delim
21301
21941
GREP!$GREP$ac_delim
21302
21942
EGREP!$EGREP$ac_delim
21303
21943
LN_S!$LN_S$ac_delim
21304
21944
ECHO!$ECHO$ac_delim
21305
21945
AR!$AR$ac_delim
21306
21946
RANLIB!$RANLIB$ac_delim
 
21947
DSYMUTIL!$DSYMUTIL$ac_delim
 
21948
NMEDIT!$NMEDIT$ac_delim
21307
21949
DLLTOOL!$DLLTOOL$ac_delim
21308
21950
AS!$AS$ac_delim
 
21951
_ACEOF
 
21952
 
 
21953
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
21954
    break
 
21955
  elif $ac_last_try; then
 
21956
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21957
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21958
   { (exit 1); exit 1; }; }
 
21959
  else
 
21960
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21961
  fi
 
21962
done
 
21963
 
 
21964
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21965
if test -n "$ac_eof"; then
 
21966
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21967
  ac_eof=`expr $ac_eof + 1`
 
21968
fi
 
21969
 
 
21970
cat >>$CONFIG_STATUS <<_ACEOF
 
21971
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
21972
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21973
_ACEOF
 
21974
sed '
 
21975
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21976
s/^/s,@/; s/!/@,|#_!!_#|/
 
21977
:n
 
21978
t n
 
21979
s/'"$ac_delim"'$/,g/; t
 
21980
s/$/\\/; p
 
21981
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21982
' >>$CONFIG_STATUS <conf$$subs.sed
 
21983
rm -f conf$$subs.sed
 
21984
cat >>$CONFIG_STATUS <<_ACEOF
 
21985
CEOF$ac_eof
 
21986
_ACEOF
 
21987
 
 
21988
 
 
21989
ac_delim='%!_!# '
 
21990
for ac_last_try in false false false false false :; do
 
21991
  cat >conf$$subs.sed <<_ACEOF
21309
21992
OBJDUMP!$OBJDUMP$ac_delim
21310
21993
CPP!$CPP$ac_delim
21311
21994
CXX!$CXX$ac_delim
21312
 
_ACEOF
21313
 
 
21314
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21315
 
    break
21316
 
  elif $ac_last_try; then
21317
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21318
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21319
 
   { (exit 1); exit 1; }; }
21320
 
  else
21321
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21322
 
  fi
21323
 
done
21324
 
 
21325
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21326
 
if test -n "$ac_eof"; then
21327
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21328
 
  ac_eof=`expr $ac_eof + 1`
21329
 
fi
21330
 
 
21331
 
cat >>$CONFIG_STATUS <<_ACEOF
21332
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21333
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21334
 
_ACEOF
21335
 
sed '
21336
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21337
 
s/^/s,@/; s/!/@,|#_!!_#|/
21338
 
:n
21339
 
t n
21340
 
s/'"$ac_delim"'$/,g/; t
21341
 
s/$/\\/; p
21342
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21343
 
' >>$CONFIG_STATUS <conf$$subs.sed
21344
 
rm -f conf$$subs.sed
21345
 
cat >>$CONFIG_STATUS <<_ACEOF
21346
 
CEOF$ac_eof
21347
 
_ACEOF
21348
 
 
21349
 
 
21350
 
ac_delim='%!_!# '
21351
 
for ac_last_try in false false false false false :; do
21352
 
  cat >conf$$subs.sed <<_ACEOF
21353
21995
CXXFLAGS!$CXXFLAGS$ac_delim
21354
21996
ac_ct_CXX!$ac_ct_CXX$ac_delim
21355
21997
CXXDEPMODE!$CXXDEPMODE$ac_delim
21387
22029
PYGTK_DATADIR!$PYGTK_DATADIR$ac_delim
21388
22030
CODEGEN!$CODEGEN$ac_delim
21389
22031
HTML_DIR!$HTML_DIR$ac_delim
 
22032
GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
21390
22033
ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
21391
22034
ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
21392
22035
GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
21395
22038
LTLIBOBJS!$LTLIBOBJS$ac_delim
21396
22039
_ACEOF
21397
22040
 
21398
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
 
22041
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
21399
22042
    break
21400
22043
  elif $ac_last_try; then
21401
22044
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5