~chasedouglas/frame/ubuntu-upstream-xi

« back to all changes in this revision

Viewing changes to configure

  • Committer: Chase Douglas
  • Date: 2011-12-09 01:36:45 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: chase.douglas@ubuntu.com-20111209013645-n24l4myiumblzsfu
* New upstream release.
  - Version 2 adds a new API built on top of XInput multitouch

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.68 for Touch Frame Library 1.1.4.
 
3
# Generated by GNU Autoconf 2.68 for Touch Frame Library 2.0.0.
4
4
#
5
5
#
6
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
567
567
# Identity of this package.
568
568
PACKAGE_NAME='Touch Frame Library'
569
569
PACKAGE_TARNAME='utouch-frame'
570
 
PACKAGE_VERSION='1.1.4'
571
 
PACKAGE_STRING='Touch Frame Library 1.1.4'
 
570
PACKAGE_VERSION='2.0.0'
 
571
PACKAGE_STRING='Touch Frame Library 2.0.0'
572
572
PACKAGE_BUGREPORT=''
573
573
PACKAGE_URL=''
574
574
 
613
613
am__EXEEXT_TRUE
614
614
LTLIBOBJS
615
615
LIBOBJS
 
616
AM_LDFLAGS
 
617
AM_CXXFLAGS
 
618
AM_CFLAGS
 
619
AM_CPPFLAGS
 
620
SUDO
 
621
HAVE_GCOV_FALSE
 
622
HAVE_GCOV_TRUE
 
623
GCOVR_verbose_1
 
624
GCOVR_verbose_0
 
625
GCOVR_verbose_
 
626
GCOVR_verbose
 
627
GENHTML_verbose_1
 
628
GENHTML_verbose_0
 
629
GENHTML_verbose_
 
630
GENHTML_verbose
 
631
LCOV_verbose_1
 
632
LCOV_verbose_0
 
633
LCOV_verbose_
 
634
LCOV_verbose
 
635
GCOVR
 
636
GENHTML
 
637
LCOV
 
638
SHTOOL
 
639
GTEST_CXXFLAGS
 
640
GTEST_LDFLAGS
 
641
HAVE_GTEST_FALSE
 
642
HAVE_GTEST_TRUE
 
643
XORG_GTEST_LIBS
 
644
XORG_GTEST_CFLAGS
616
645
HAVE_DOCTOOLS_FALSE
617
646
HAVE_DOCTOOLS_TRUE
618
647
ASCIIDOC
627
656
PKG_CONFIG_LIBDIR
628
657
PKG_CONFIG_PATH
629
658
PKG_CONFIG
 
659
CXXCPP
 
660
am__fastdepCXX_FALSE
 
661
am__fastdepCXX_TRUE
 
662
CXXDEPMODE
 
663
ac_ct_CXX
 
664
CXXFLAGS
 
665
CXX
630
666
CPP
631
667
OTOOL64
632
668
OTOOL
754
790
with_sysroot
755
791
enable_libtool_lock
756
792
with_xi
 
793
with_gtest_include_path
 
794
with_gtest_lib_path
 
795
enable_gcov
757
796
'
758
797
      ac_precious_vars='build_alias
759
798
host_alias
764
803
LIBS
765
804
CPPFLAGS
766
805
CPP
 
806
CXX
 
807
CXXFLAGS
 
808
CCC
 
809
CXXCPP
767
810
PKG_CONFIG
768
811
PKG_CONFIG_PATH
769
812
PKG_CONFIG_LIBDIR
772
815
EVEMU_CFLAGS
773
816
EVEMU_LIBS
774
817
XINPUT_CFLAGS
775
 
XINPUT_LIBS'
 
818
XINPUT_LIBS
 
819
XORG_GTEST_CFLAGS
 
820
XORG_GTEST_LIBS'
776
821
 
777
822
 
778
823
# Initialize some variables set by options.
1315
1360
  # Omit some internal or obsolete options to make the list less imposing.
1316
1361
  # This message is too long to be a string in the A/UX 3.1 sh.
1317
1362
  cat <<_ACEOF
1318
 
\`configure' configures Touch Frame Library 1.1.4 to adapt to many kinds of systems.
 
1363
\`configure' configures Touch Frame Library 2.0.0 to adapt to many kinds of systems.
1319
1364
 
1320
1365
Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1366
 
1385
1430
 
1386
1431
if test -n "$ac_init_help"; then
1387
1432
  case $ac_init_help in
1388
 
     short | recursive ) echo "Configuration of Touch Frame Library 1.1.4:";;
 
1433
     short | recursive ) echo "Configuration of Touch Frame Library 2.0.0:";;
1389
1434
   esac
1390
1435
  cat <<\_ACEOF
1391
1436
 
1404
1449
  --disable-dependency-tracking  speeds up one-time build
1405
1450
  --enable-dependency-tracking   do not reject slow dependency extractors
1406
1451
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1452
  --enable-gcov           enable coverage testing with gcov
1407
1453
 
1408
1454
Optional Packages:
1409
1455
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414
1460
  --with-sysroot=DIR Search for dependent libraries within DIR
1415
1461
                        (or the compiler's sysroot if not specified).
1416
1462
  --with-xi               Build with XI2.1 support
 
1463
  --with-gtest-include-path
 
1464
                          location of the Google test headers, defaults to
 
1465
                          /usr/include
 
1466
  --with-gtest-lib-path   location of the Google test libraries
1417
1467
 
1418
1468
Some influential environment variables:
1419
1469
  CC          C compiler command
1424
1474
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425
1475
              you have headers in a nonstandard directory <include dir>
1426
1476
  CPP         C preprocessor
 
1477
  CXX         C++ compiler command
 
1478
  CXXFLAGS    C++ compiler flags
 
1479
  CXXCPP      C++ preprocessor
1427
1480
  PKG_CONFIG  path to pkg-config utility
1428
1481
  PKG_CONFIG_PATH
1429
1482
              directories to add to pkg-config's search path
1438
1491
  XINPUT_CFLAGS
1439
1492
              C compiler flags for XINPUT, overriding pkg-config
1440
1493
  XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
 
1494
  XORG_GTEST_CFLAGS
 
1495
              C compiler flags for XORG_GTEST, overriding pkg-config
 
1496
  XORG_GTEST_LIBS
 
1497
              linker flags for XORG_GTEST, overriding pkg-config
1441
1498
 
1442
1499
Use these variables to override the choices made by `configure' or to help
1443
1500
it to find libraries and programs with nonstandard names/locations.
1505
1562
test -n "$ac_init_help" && exit $ac_status
1506
1563
if $ac_init_version; then
1507
1564
  cat <<\_ACEOF
1508
 
Touch Frame Library configure 1.1.4
 
1565
Touch Frame Library configure 2.0.0
1509
1566
generated by GNU Autoconf 2.68
1510
1567
 
1511
1568
Copyright (C) 2010 Free Software Foundation, Inc.
1779
1836
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1837
 
1781
1838
} # ac_fn_c_check_func
 
1839
 
 
1840
# ac_fn_cxx_try_compile LINENO
 
1841
# ----------------------------
 
1842
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1843
ac_fn_cxx_try_compile ()
 
1844
{
 
1845
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1846
  rm -f conftest.$ac_objext
 
1847
  if { { ac_try="$ac_compile"
 
1848
case "(($ac_try" in
 
1849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1850
  *) ac_try_echo=$ac_try;;
 
1851
esac
 
1852
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1853
$as_echo "$ac_try_echo"; } >&5
 
1854
  (eval "$ac_compile") 2>conftest.err
 
1855
  ac_status=$?
 
1856
  if test -s conftest.err; then
 
1857
    grep -v '^ *+' conftest.err >conftest.er1
 
1858
    cat conftest.er1 >&5
 
1859
    mv -f conftest.er1 conftest.err
 
1860
  fi
 
1861
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1862
  test $ac_status = 0; } && {
 
1863
         test -z "$ac_cxx_werror_flag" ||
 
1864
         test ! -s conftest.err
 
1865
       } && test -s conftest.$ac_objext; then :
 
1866
  ac_retval=0
 
1867
else
 
1868
  $as_echo "$as_me: failed program was:" >&5
 
1869
sed 's/^/| /' conftest.$ac_ext >&5
 
1870
 
 
1871
        ac_retval=1
 
1872
fi
 
1873
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1874
  as_fn_set_status $ac_retval
 
1875
 
 
1876
} # ac_fn_cxx_try_compile
 
1877
 
 
1878
# ac_fn_cxx_try_cpp LINENO
 
1879
# ------------------------
 
1880
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1881
ac_fn_cxx_try_cpp ()
 
1882
{
 
1883
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1884
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1885
case "(($ac_try" in
 
1886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1887
  *) ac_try_echo=$ac_try;;
 
1888
esac
 
1889
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1890
$as_echo "$ac_try_echo"; } >&5
 
1891
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1892
  ac_status=$?
 
1893
  if test -s conftest.err; then
 
1894
    grep -v '^ *+' conftest.err >conftest.er1
 
1895
    cat conftest.er1 >&5
 
1896
    mv -f conftest.er1 conftest.err
 
1897
  fi
 
1898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1899
  test $ac_status = 0; } > conftest.i && {
 
1900
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1901
         test ! -s conftest.err
 
1902
       }; then :
 
1903
  ac_retval=0
 
1904
else
 
1905
  $as_echo "$as_me: failed program was:" >&5
 
1906
sed 's/^/| /' conftest.$ac_ext >&5
 
1907
 
 
1908
    ac_retval=1
 
1909
fi
 
1910
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1911
  as_fn_set_status $ac_retval
 
1912
 
 
1913
} # ac_fn_cxx_try_cpp
 
1914
 
 
1915
# ac_fn_cxx_try_link LINENO
 
1916
# -------------------------
 
1917
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1918
ac_fn_cxx_try_link ()
 
1919
{
 
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1921
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1922
  if { { ac_try="$ac_link"
 
1923
case "(($ac_try" in
 
1924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1925
  *) ac_try_echo=$ac_try;;
 
1926
esac
 
1927
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1928
$as_echo "$ac_try_echo"; } >&5
 
1929
  (eval "$ac_link") 2>conftest.err
 
1930
  ac_status=$?
 
1931
  if test -s conftest.err; then
 
1932
    grep -v '^ *+' conftest.err >conftest.er1
 
1933
    cat conftest.er1 >&5
 
1934
    mv -f conftest.er1 conftest.err
 
1935
  fi
 
1936
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1937
  test $ac_status = 0; } && {
 
1938
         test -z "$ac_cxx_werror_flag" ||
 
1939
         test ! -s conftest.err
 
1940
       } && test -s conftest$ac_exeext && {
 
1941
         test "$cross_compiling" = yes ||
 
1942
         $as_test_x conftest$ac_exeext
 
1943
       }; then :
 
1944
  ac_retval=0
 
1945
else
 
1946
  $as_echo "$as_me: failed program was:" >&5
 
1947
sed 's/^/| /' conftest.$ac_ext >&5
 
1948
 
 
1949
        ac_retval=1
 
1950
fi
 
1951
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1952
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1953
  # interfere with the next link command; also delete a directory that is
 
1954
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1955
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1956
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1957
  as_fn_set_status $ac_retval
 
1958
 
 
1959
} # ac_fn_cxx_try_link
1782
1960
cat >config.log <<_ACEOF
1783
1961
This file contains any messages produced by compilers while
1784
1962
running configure, to aid debugging if configure makes a mistake.
1785
1963
 
1786
 
It was created by Touch Frame Library $as_me 1.1.4, which was
 
1964
It was created by Touch Frame Library $as_me 2.0.0, which was
1787
1965
generated by GNU Autoconf 2.68.  Invocation command line was
1788
1966
 
1789
1967
  $ $0 $@
2164
2342
 
2165
2343
 
2166
2344
 
 
2345
 
 
2346
# Checks for existence of coverage tools:
 
2347
#  * gcov
 
2348
#  * lcov
 
2349
#  * genhtml
 
2350
#  * gcovr
 
2351
#
 
2352
# Sets ac_cv_check_gcov to yes if tooling is present
 
2353
# and reports the executables to the variables LCOV, GCOVR and GENHTML.
 
2354
 # AC_TDD_GCOV
 
2355
 
 
2356
 
 
2357
# Checks whether the gtest library is available on the system
 
2358
# Allows for adjusting the include and library path.
 
2359
# Sets have_gtest=yes if the library is present and
 
2360
# reports the compiler and linker flags in
 
2361
# GTEST_CXXFLAGS AND GTEST_LDFLAGS, respectively.
 
2362
 # AC_CHECK_GTEST
 
2363
 
 
2364
 
 
2365
 
2167
2366
# Initialize Automake
2168
2367
am__api_version='1.11'
2169
2368
 
2603
2802
 
2604
2803
# Define the identity of the package.
2605
2804
 PACKAGE='utouch-frame'
2606
 
 VERSION='1.1.4'
 
2805
 VERSION='2.0.0'
2607
2806
 
2608
2807
 
2609
2808
cat >>confdefs.h <<_ACEOF
2679
2878
 
2680
2879
 
2681
2880
 
2682
 
LIB_VERSION=2:0:1
 
2881
LIB_VERSION=3:0:2
2683
2882
 
2684
2883
 
2685
2884
# Initialize libtool
7653
7852
$RM -r conftest*
7654
7853
 
7655
7854
 
 
7855
## CAVEAT EMPTOR:
 
7856
## There is no encapsulation within the following macros, do not change
 
7857
## the running order or otherwise move them around unless you know exactly
 
7858
## what you are doing...
7656
7859
if test -n "$compiler"; then
7657
7860
 
7658
7861
lt_prog_compiler_no_builtin_flag=
11872
12075
fi
11873
12076
 
11874
12077
 
 
12078
ac_ext=cpp
 
12079
ac_cpp='$CXXCPP $CPPFLAGS'
 
12080
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12081
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12082
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12083
if test -z "$CXX"; then
 
12084
  if test -n "$CCC"; then
 
12085
    CXX=$CCC
 
12086
  else
 
12087
    if test -n "$ac_tool_prefix"; then
 
12088
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12089
  do
 
12090
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
12091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
12092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12093
$as_echo_n "checking for $ac_word... " >&6; }
 
12094
if ${ac_cv_prog_CXX+:} false; then :
 
12095
  $as_echo_n "(cached) " >&6
 
12096
else
 
12097
  if test -n "$CXX"; then
 
12098
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
12099
else
 
12100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12101
for as_dir in $PATH
 
12102
do
 
12103
  IFS=$as_save_IFS
 
12104
  test -z "$as_dir" && as_dir=.
 
12105
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12106
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12107
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
12108
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12109
    break 2
 
12110
  fi
 
12111
done
 
12112
  done
 
12113
IFS=$as_save_IFS
 
12114
 
 
12115
fi
 
12116
fi
 
12117
CXX=$ac_cv_prog_CXX
 
12118
if test -n "$CXX"; then
 
12119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
12120
$as_echo "$CXX" >&6; }
 
12121
else
 
12122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12123
$as_echo "no" >&6; }
 
12124
fi
 
12125
 
 
12126
 
 
12127
    test -n "$CXX" && break
 
12128
  done
 
12129
fi
 
12130
if test -z "$CXX"; then
 
12131
  ac_ct_CXX=$CXX
 
12132
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
12133
do
 
12134
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12135
set dummy $ac_prog; ac_word=$2
 
12136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12137
$as_echo_n "checking for $ac_word... " >&6; }
 
12138
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
12139
  $as_echo_n "(cached) " >&6
 
12140
else
 
12141
  if test -n "$ac_ct_CXX"; then
 
12142
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
12143
else
 
12144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12145
for as_dir in $PATH
 
12146
do
 
12147
  IFS=$as_save_IFS
 
12148
  test -z "$as_dir" && as_dir=.
 
12149
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12150
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12151
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
12152
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12153
    break 2
 
12154
  fi
 
12155
done
 
12156
  done
 
12157
IFS=$as_save_IFS
 
12158
 
 
12159
fi
 
12160
fi
 
12161
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
12162
if test -n "$ac_ct_CXX"; then
 
12163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
12164
$as_echo "$ac_ct_CXX" >&6; }
 
12165
else
 
12166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12167
$as_echo "no" >&6; }
 
12168
fi
 
12169
 
 
12170
 
 
12171
  test -n "$ac_ct_CXX" && break
 
12172
done
 
12173
 
 
12174
  if test "x$ac_ct_CXX" = x; then
 
12175
    CXX="g++"
 
12176
  else
 
12177
    case $cross_compiling:$ac_tool_warned in
 
12178
yes:)
 
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12180
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12181
ac_tool_warned=yes ;;
 
12182
esac
 
12183
    CXX=$ac_ct_CXX
 
12184
  fi
 
12185
fi
 
12186
 
 
12187
  fi
 
12188
fi
 
12189
# Provide some information about the compiler.
 
12190
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
12191
set X $ac_compile
 
12192
ac_compiler=$2
 
12193
for ac_option in --version -v -V -qversion; do
 
12194
  { { ac_try="$ac_compiler $ac_option >&5"
 
12195
case "(($ac_try" in
 
12196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12197
  *) ac_try_echo=$ac_try;;
 
12198
esac
 
12199
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
12200
$as_echo "$ac_try_echo"; } >&5
 
12201
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
12202
  ac_status=$?
 
12203
  if test -s conftest.err; then
 
12204
    sed '10a\
 
12205
... rest of stderr output deleted ...
 
12206
         10q' conftest.err >conftest.er1
 
12207
    cat conftest.er1 >&5
 
12208
  fi
 
12209
  rm -f conftest.er1 conftest.err
 
12210
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12211
  test $ac_status = 0; }
 
12212
done
 
12213
 
 
12214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
12215
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
12216
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
12217
  $as_echo_n "(cached) " >&6
 
12218
else
 
12219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12220
/* end confdefs.h.  */
 
12221
 
 
12222
int
 
12223
main ()
 
12224
{
 
12225
#ifndef __GNUC__
 
12226
       choke me
 
12227
#endif
 
12228
 
 
12229
  ;
 
12230
  return 0;
 
12231
}
 
12232
_ACEOF
 
12233
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12234
  ac_compiler_gnu=yes
 
12235
else
 
12236
  ac_compiler_gnu=no
 
12237
fi
 
12238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12239
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
12240
 
 
12241
fi
 
12242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
12243
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
12244
if test $ac_compiler_gnu = yes; then
 
12245
  GXX=yes
 
12246
else
 
12247
  GXX=
 
12248
fi
 
12249
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
12250
ac_save_CXXFLAGS=$CXXFLAGS
 
12251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
12252
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
12253
if ${ac_cv_prog_cxx_g+:} false; then :
 
12254
  $as_echo_n "(cached) " >&6
 
12255
else
 
12256
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
12257
   ac_cxx_werror_flag=yes
 
12258
   ac_cv_prog_cxx_g=no
 
12259
   CXXFLAGS="-g"
 
12260
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12261
/* end confdefs.h.  */
 
12262
 
 
12263
int
 
12264
main ()
 
12265
{
 
12266
 
 
12267
  ;
 
12268
  return 0;
 
12269
}
 
12270
_ACEOF
 
12271
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12272
  ac_cv_prog_cxx_g=yes
 
12273
else
 
12274
  CXXFLAGS=""
 
12275
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12276
/* end confdefs.h.  */
 
12277
 
 
12278
int
 
12279
main ()
 
12280
{
 
12281
 
 
12282
  ;
 
12283
  return 0;
 
12284
}
 
12285
_ACEOF
 
12286
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12287
 
 
12288
else
 
12289
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12290
         CXXFLAGS="-g"
 
12291
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12292
/* end confdefs.h.  */
 
12293
 
 
12294
int
 
12295
main ()
 
12296
{
 
12297
 
 
12298
  ;
 
12299
  return 0;
 
12300
}
 
12301
_ACEOF
 
12302
if ac_fn_cxx_try_compile "$LINENO"; then :
 
12303
  ac_cv_prog_cxx_g=yes
 
12304
fi
 
12305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12306
fi
 
12307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12308
fi
 
12309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12310
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
12311
fi
 
12312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
12313
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
12314
if test "$ac_test_CXXFLAGS" = set; then
 
12315
  CXXFLAGS=$ac_save_CXXFLAGS
 
12316
elif test $ac_cv_prog_cxx_g = yes; then
 
12317
  if test "$GXX" = yes; then
 
12318
    CXXFLAGS="-g -O2"
 
12319
  else
 
12320
    CXXFLAGS="-g"
 
12321
  fi
 
12322
else
 
12323
  if test "$GXX" = yes; then
 
12324
    CXXFLAGS="-O2"
 
12325
  else
 
12326
    CXXFLAGS=
 
12327
  fi
 
12328
fi
 
12329
ac_ext=c
 
12330
ac_cpp='$CPP $CPPFLAGS'
 
12331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12334
 
 
12335
depcc="$CXX"  am_compiler_list=
 
12336
 
 
12337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
12338
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
12339
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
12340
  $as_echo_n "(cached) " >&6
 
12341
else
 
12342
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
12343
  # We make a subdir and do the tests there.  Otherwise we can end up
 
12344
  # making bogus files that we don't know about and never remove.  For
 
12345
  # instance it was reported that on HP-UX the gcc test will end up
 
12346
  # making a dummy file named `D' -- because `-MD' means `put the output
 
12347
  # in D'.
 
12348
  mkdir conftest.dir
 
12349
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
12350
  # using a relative directory.
 
12351
  cp "$am_depcomp" conftest.dir
 
12352
  cd conftest.dir
 
12353
  # We will build objects and dependencies in a subdirectory because
 
12354
  # it helps to detect inapplicable dependency modes.  For instance
 
12355
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
12356
  # side effect of compilation, but ICC will put the dependencies in
 
12357
  # the current directory while Tru64 will put them in the object
 
12358
  # directory.
 
12359
  mkdir sub
 
12360
 
 
12361
  am_cv_CXX_dependencies_compiler_type=none
 
12362
  if test "$am_compiler_list" = ""; then
 
12363
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
12364
  fi
 
12365
  am__universal=false
 
12366
  case " $depcc " in #(
 
12367
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12368
     esac
 
12369
 
 
12370
  for depmode in $am_compiler_list; do
 
12371
    # Setup a source with many dependencies, because some compilers
 
12372
    # like to wrap large dependency lists on column 80 (with \), and
 
12373
    # we should not choose a depcomp mode which is confused by this.
 
12374
    #
 
12375
    # We need to recreate these files for each test, as the compiler may
 
12376
    # overwrite some of them when testing with obscure command lines.
 
12377
    # This happens at least with the AIX C compiler.
 
12378
    : > sub/conftest.c
 
12379
    for i in 1 2 3 4 5 6; do
 
12380
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
12381
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
12382
      # Solaris 8's {/usr,}/bin/sh.
 
12383
      touch sub/conftst$i.h
 
12384
    done
 
12385
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12386
 
 
12387
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12388
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12389
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12390
    # versions had trouble with output in subdirs
 
12391
    am__obj=sub/conftest.${OBJEXT-o}
 
12392
    am__minus_obj="-o $am__obj"
 
12393
    case $depmode in
 
12394
    gcc)
 
12395
      # This depmode causes a compiler race in universal mode.
 
12396
      test "$am__universal" = false || continue
 
12397
      ;;
 
12398
    nosideeffect)
 
12399
      # after this tag, mechanisms are not by side-effect, so they'll
 
12400
      # only be used when explicitly requested
 
12401
      if test "x$enable_dependency_tracking" = xyes; then
 
12402
        continue
 
12403
      else
 
12404
        break
 
12405
      fi
 
12406
      ;;
 
12407
    msvisualcpp | msvcmsys)
 
12408
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12409
      # not run yet.  These depmodes are late enough in the game, and
 
12410
      # so weak that their functioning should not be impacted.
 
12411
      am__obj=conftest.${OBJEXT-o}
 
12412
      am__minus_obj=
 
12413
      ;;
 
12414
    none) break ;;
 
12415
    esac
 
12416
    if depmode=$depmode \
 
12417
       source=sub/conftest.c object=$am__obj \
 
12418
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12419
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12420
         >/dev/null 2>conftest.err &&
 
12421
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12422
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12423
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12424
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12425
      # icc doesn't choke on unknown options, it will just issue warnings
 
12426
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12427
      # that says an option was ignored or not supported.
 
12428
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12429
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12430
      # The diagnosis changed in icc 8.0:
 
12431
      #   icc: Command line remark: option '-MP' not supported
 
12432
      if (grep 'ignoring option' conftest.err ||
 
12433
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12434
        am_cv_CXX_dependencies_compiler_type=$depmode
 
12435
        break
 
12436
      fi
 
12437
    fi
 
12438
  done
 
12439
 
 
12440
  cd ..
 
12441
  rm -rf conftest.dir
 
12442
else
 
12443
  am_cv_CXX_dependencies_compiler_type=none
 
12444
fi
 
12445
 
 
12446
fi
 
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
12448
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
12449
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
12450
 
 
12451
 if
 
12452
  test "x$enable_dependency_tracking" != xno \
 
12453
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
12454
  am__fastdepCXX_TRUE=
 
12455
  am__fastdepCXX_FALSE='#'
 
12456
else
 
12457
  am__fastdepCXX_TRUE='#'
 
12458
  am__fastdepCXX_FALSE=
 
12459
fi
 
12460
 
 
12461
 
 
12462
 
 
12463
 
 
12464
func_stripname_cnf ()
 
12465
{
 
12466
  case ${2} in
 
12467
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
12468
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
12469
  esac
 
12470
} # func_stripname_cnf
 
12471
 
 
12472
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12473
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12474
    (test "X$CXX" != "Xg++"))) ; then
 
12475
  ac_ext=cpp
 
12476
ac_cpp='$CXXCPP $CPPFLAGS'
 
12477
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12478
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12479
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12481
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12482
if test -z "$CXXCPP"; then
 
12483
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12484
  $as_echo_n "(cached) " >&6
 
12485
else
 
12486
      # Double quotes because CXXCPP needs to be expanded
 
12487
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12488
    do
 
12489
      ac_preproc_ok=false
 
12490
for ac_cxx_preproc_warn_flag in '' yes
 
12491
do
 
12492
  # Use a header file that comes with gcc, so configuring glibc
 
12493
  # with a fresh cross-compiler works.
 
12494
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12495
  # <limits.h> exists even on freestanding compilers.
 
12496
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12497
  # not just through cpp. "Syntax error" is here to catch this case.
 
12498
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12499
/* end confdefs.h.  */
 
12500
#ifdef __STDC__
 
12501
# include <limits.h>
 
12502
#else
 
12503
# include <assert.h>
 
12504
#endif
 
12505
                     Syntax error
 
12506
_ACEOF
 
12507
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12508
 
 
12509
else
 
12510
  # Broken: fails on valid input.
 
12511
continue
 
12512
fi
 
12513
rm -f conftest.err conftest.i conftest.$ac_ext
 
12514
 
 
12515
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12516
  # can be detected and how.
 
12517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12518
/* end confdefs.h.  */
 
12519
#include <ac_nonexistent.h>
 
12520
_ACEOF
 
12521
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12522
  # Broken: success on invalid input.
 
12523
continue
 
12524
else
 
12525
  # Passes both tests.
 
12526
ac_preproc_ok=:
 
12527
break
 
12528
fi
 
12529
rm -f conftest.err conftest.i conftest.$ac_ext
 
12530
 
 
12531
done
 
12532
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12533
rm -f conftest.i conftest.err conftest.$ac_ext
 
12534
if $ac_preproc_ok; then :
 
12535
  break
 
12536
fi
 
12537
 
 
12538
    done
 
12539
    ac_cv_prog_CXXCPP=$CXXCPP
 
12540
 
 
12541
fi
 
12542
  CXXCPP=$ac_cv_prog_CXXCPP
 
12543
else
 
12544
  ac_cv_prog_CXXCPP=$CXXCPP
 
12545
fi
 
12546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12547
$as_echo "$CXXCPP" >&6; }
 
12548
ac_preproc_ok=false
 
12549
for ac_cxx_preproc_warn_flag in '' yes
 
12550
do
 
12551
  # Use a header file that comes with gcc, so configuring glibc
 
12552
  # with a fresh cross-compiler works.
 
12553
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12554
  # <limits.h> exists even on freestanding compilers.
 
12555
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12556
  # not just through cpp. "Syntax error" is here to catch this case.
 
12557
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12558
/* end confdefs.h.  */
 
12559
#ifdef __STDC__
 
12560
# include <limits.h>
 
12561
#else
 
12562
# include <assert.h>
 
12563
#endif
 
12564
                     Syntax error
 
12565
_ACEOF
 
12566
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12567
 
 
12568
else
 
12569
  # Broken: fails on valid input.
 
12570
continue
 
12571
fi
 
12572
rm -f conftest.err conftest.i conftest.$ac_ext
 
12573
 
 
12574
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12575
  # can be detected and how.
 
12576
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12577
/* end confdefs.h.  */
 
12578
#include <ac_nonexistent.h>
 
12579
_ACEOF
 
12580
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12581
  # Broken: success on invalid input.
 
12582
continue
 
12583
else
 
12584
  # Passes both tests.
 
12585
ac_preproc_ok=:
 
12586
break
 
12587
fi
 
12588
rm -f conftest.err conftest.i conftest.$ac_ext
 
12589
 
 
12590
done
 
12591
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12592
rm -f conftest.i conftest.err conftest.$ac_ext
 
12593
if $ac_preproc_ok; then :
 
12594
 
 
12595
else
 
12596
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12598
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12599
See \`config.log' for more details" "$LINENO" 5; }
 
12600
fi
 
12601
 
 
12602
ac_ext=c
 
12603
ac_cpp='$CPP $CPPFLAGS'
 
12604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12607
 
 
12608
else
 
12609
  _lt_caught_CXX_error=yes
 
12610
fi
 
12611
 
 
12612
ac_ext=cpp
 
12613
ac_cpp='$CXXCPP $CPPFLAGS'
 
12614
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12615
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12616
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12617
 
 
12618
archive_cmds_need_lc_CXX=no
 
12619
allow_undefined_flag_CXX=
 
12620
always_export_symbols_CXX=no
 
12621
archive_expsym_cmds_CXX=
 
12622
compiler_needs_object_CXX=no
 
12623
export_dynamic_flag_spec_CXX=
 
12624
hardcode_direct_CXX=no
 
12625
hardcode_direct_absolute_CXX=no
 
12626
hardcode_libdir_flag_spec_CXX=
 
12627
hardcode_libdir_flag_spec_ld_CXX=
 
12628
hardcode_libdir_separator_CXX=
 
12629
hardcode_minus_L_CXX=no
 
12630
hardcode_shlibpath_var_CXX=unsupported
 
12631
hardcode_automatic_CXX=no
 
12632
inherit_rpath_CXX=no
 
12633
module_cmds_CXX=
 
12634
module_expsym_cmds_CXX=
 
12635
link_all_deplibs_CXX=unknown
 
12636
old_archive_cmds_CXX=$old_archive_cmds
 
12637
reload_flag_CXX=$reload_flag
 
12638
reload_cmds_CXX=$reload_cmds
 
12639
no_undefined_flag_CXX=
 
12640
whole_archive_flag_spec_CXX=
 
12641
enable_shared_with_static_runtimes_CXX=no
 
12642
 
 
12643
# Source file extension for C++ test sources.
 
12644
ac_ext=cpp
 
12645
 
 
12646
# Object file extension for compiled C++ test sources.
 
12647
objext=o
 
12648
objext_CXX=$objext
 
12649
 
 
12650
# No sense in running all these tests if we already determined that
 
12651
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12652
# are currently assumed to apply to all compilers on this platform,
 
12653
# and will be corrupted by setting them based on a non-working compiler.
 
12654
if test "$_lt_caught_CXX_error" != yes; then
 
12655
  # Code to be used in simple compile tests
 
12656
  lt_simple_compile_test_code="int some_variable = 0;"
 
12657
 
 
12658
  # Code to be used in simple link tests
 
12659
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12660
 
 
12661
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12662
 
 
12663
 
 
12664
 
 
12665
 
 
12666
 
 
12667
 
 
12668
# If no C compiler was specified, use CC.
 
12669
LTCC=${LTCC-"$CC"}
 
12670
 
 
12671
# If no C compiler flags were specified, use CFLAGS.
 
12672
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12673
 
 
12674
# Allow CC to be a program name with arguments.
 
12675
compiler=$CC
 
12676
 
 
12677
 
 
12678
  # save warnings/boilerplate of simple test code
 
12679
  ac_outfile=conftest.$ac_objext
 
12680
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12681
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12682
_lt_compiler_boilerplate=`cat conftest.err`
 
12683
$RM conftest*
 
12684
 
 
12685
  ac_outfile=conftest.$ac_objext
 
12686
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12687
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12688
_lt_linker_boilerplate=`cat conftest.err`
 
12689
$RM -r conftest*
 
12690
 
 
12691
 
 
12692
  # Allow CC to be a program name with arguments.
 
12693
  lt_save_CC=$CC
 
12694
  lt_save_CFLAGS=$CFLAGS
 
12695
  lt_save_LD=$LD
 
12696
  lt_save_GCC=$GCC
 
12697
  GCC=$GXX
 
12698
  lt_save_with_gnu_ld=$with_gnu_ld
 
12699
  lt_save_path_LD=$lt_cv_path_LD
 
12700
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12701
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12702
  else
 
12703
    $as_unset lt_cv_prog_gnu_ld
 
12704
  fi
 
12705
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12706
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12707
  else
 
12708
    $as_unset lt_cv_path_LD
 
12709
  fi
 
12710
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12711
  CC=${CXX-"c++"}
 
12712
  CFLAGS=$CXXFLAGS
 
12713
  compiler=$CC
 
12714
  compiler_CXX=$CC
 
12715
  for cc_temp in $compiler""; do
 
12716
  case $cc_temp in
 
12717
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12718
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12719
    \-*) ;;
 
12720
    *) break;;
 
12721
  esac
 
12722
done
 
12723
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12724
 
 
12725
 
 
12726
  if test -n "$compiler"; then
 
12727
    # We don't want -fno-exception when compiling C++ code, so set the
 
12728
    # no_builtin_flag separately
 
12729
    if test "$GXX" = yes; then
 
12730
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12731
    else
 
12732
      lt_prog_compiler_no_builtin_flag_CXX=
 
12733
    fi
 
12734
 
 
12735
    if test "$GXX" = yes; then
 
12736
      # Set up default GNU C++ configuration
 
12737
 
 
12738
 
 
12739
 
 
12740
# Check whether --with-gnu-ld was given.
 
12741
if test "${with_gnu_ld+set}" = set; then :
 
12742
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12743
else
 
12744
  with_gnu_ld=no
 
12745
fi
 
12746
 
 
12747
ac_prog=ld
 
12748
if test "$GCC" = yes; then
 
12749
  # Check if gcc -print-prog-name=ld gives a path.
 
12750
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12751
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12752
  case $host in
 
12753
  *-*-mingw*)
 
12754
    # gcc leaves a trailing carriage return which upsets mingw
 
12755
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12756
  *)
 
12757
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12758
  esac
 
12759
  case $ac_prog in
 
12760
    # Accept absolute paths.
 
12761
    [\\/]* | ?:[\\/]*)
 
12762
      re_direlt='/[^/][^/]*/\.\./'
 
12763
      # Canonicalize the pathname of ld
 
12764
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12765
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12766
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12767
      done
 
12768
      test -z "$LD" && LD="$ac_prog"
 
12769
      ;;
 
12770
  "")
 
12771
    # If it fails, then pretend we aren't using GCC.
 
12772
    ac_prog=ld
 
12773
    ;;
 
12774
  *)
 
12775
    # If it is relative, then search for the first ld in PATH.
 
12776
    with_gnu_ld=unknown
 
12777
    ;;
 
12778
  esac
 
12779
elif test "$with_gnu_ld" = yes; then
 
12780
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12781
$as_echo_n "checking for GNU ld... " >&6; }
 
12782
else
 
12783
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12784
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12785
fi
 
12786
if ${lt_cv_path_LD+:} false; then :
 
12787
  $as_echo_n "(cached) " >&6
 
12788
else
 
12789
  if test -z "$LD"; then
 
12790
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12791
  for ac_dir in $PATH; do
 
12792
    IFS="$lt_save_ifs"
 
12793
    test -z "$ac_dir" && ac_dir=.
 
12794
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12795
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12796
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12797
      # but apparently some variants of GNU ld only accept -v.
 
12798
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12799
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12800
      *GNU* | *'with BFD'*)
 
12801
        test "$with_gnu_ld" != no && break
 
12802
        ;;
 
12803
      *)
 
12804
        test "$with_gnu_ld" != yes && break
 
12805
        ;;
 
12806
      esac
 
12807
    fi
 
12808
  done
 
12809
  IFS="$lt_save_ifs"
 
12810
else
 
12811
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12812
fi
 
12813
fi
 
12814
 
 
12815
LD="$lt_cv_path_LD"
 
12816
if test -n "$LD"; then
 
12817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12818
$as_echo "$LD" >&6; }
 
12819
else
 
12820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12821
$as_echo "no" >&6; }
 
12822
fi
 
12823
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12825
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12826
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12827
  $as_echo_n "(cached) " >&6
 
12828
else
 
12829
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12830
case `$LD -v 2>&1 </dev/null` in
 
12831
*GNU* | *'with BFD'*)
 
12832
  lt_cv_prog_gnu_ld=yes
 
12833
  ;;
 
12834
*)
 
12835
  lt_cv_prog_gnu_ld=no
 
12836
  ;;
 
12837
esac
 
12838
fi
 
12839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12840
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12841
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12842
 
 
12843
 
 
12844
 
 
12845
 
 
12846
 
 
12847
 
 
12848
 
 
12849
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12850
      # archiving commands below assume that GNU ld is being used.
 
12851
      if test "$with_gnu_ld" = yes; then
 
12852
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12853
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12854
 
 
12855
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12856
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12857
 
 
12858
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12859
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12860
        #     investigate it a little bit more. (MM)
 
12861
        wlarc='${wl}'
 
12862
 
 
12863
        # ancient GNU ld didn't support --whole-archive et. al.
 
12864
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12865
          $GREP 'no-whole-archive' > /dev/null; then
 
12866
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12867
        else
 
12868
          whole_archive_flag_spec_CXX=
 
12869
        fi
 
12870
      else
 
12871
        with_gnu_ld=no
 
12872
        wlarc=
 
12873
 
 
12874
        # A generic and very simple default shared library creation
 
12875
        # command for GNU C++ for the case where it uses the native
 
12876
        # linker, instead of GNU ld.  If possible, this setting should
 
12877
        # overridden to take advantage of the native linker features on
 
12878
        # the platform it is being used on.
 
12879
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12880
      fi
 
12881
 
 
12882
      # Commands to make compiler produce verbose output that lists
 
12883
      # what "hidden" libraries, object files and flags are used when
 
12884
      # linking a shared library.
 
12885
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12886
 
 
12887
    else
 
12888
      GXX=no
 
12889
      with_gnu_ld=no
 
12890
      wlarc=
 
12891
    fi
 
12892
 
 
12893
    # PORTME: fill in a description of your system's C++ link characteristics
 
12894
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12895
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12896
    ld_shlibs_CXX=yes
 
12897
    case $host_os in
 
12898
      aix3*)
 
12899
        # FIXME: insert proper C++ library support
 
12900
        ld_shlibs_CXX=no
 
12901
        ;;
 
12902
      aix[4-9]*)
 
12903
        if test "$host_cpu" = ia64; then
 
12904
          # On IA64, the linker does run time linking by default, so we don't
 
12905
          # have to do anything special.
 
12906
          aix_use_runtimelinking=no
 
12907
          exp_sym_flag='-Bexport'
 
12908
          no_entry_flag=""
 
12909
        else
 
12910
          aix_use_runtimelinking=no
 
12911
 
 
12912
          # Test if we are trying to use run time linking or normal
 
12913
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12914
          # need to do runtime linking.
 
12915
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12916
            for ld_flag in $LDFLAGS; do
 
12917
              case $ld_flag in
 
12918
              *-brtl*)
 
12919
                aix_use_runtimelinking=yes
 
12920
                break
 
12921
                ;;
 
12922
              esac
 
12923
            done
 
12924
            ;;
 
12925
          esac
 
12926
 
 
12927
          exp_sym_flag='-bexport'
 
12928
          no_entry_flag='-bnoentry'
 
12929
        fi
 
12930
 
 
12931
        # When large executables or shared objects are built, AIX ld can
 
12932
        # have problems creating the table of contents.  If linking a library
 
12933
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12934
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12935
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12936
 
 
12937
        archive_cmds_CXX=''
 
12938
        hardcode_direct_CXX=yes
 
12939
        hardcode_direct_absolute_CXX=yes
 
12940
        hardcode_libdir_separator_CXX=':'
 
12941
        link_all_deplibs_CXX=yes
 
12942
        file_list_spec_CXX='${wl}-f,'
 
12943
 
 
12944
        if test "$GXX" = yes; then
 
12945
          case $host_os in aix4.[012]|aix4.[012].*)
 
12946
          # We only want to do this on AIX 4.2 and lower, the check
 
12947
          # below for broken collect2 doesn't work under 4.3+
 
12948
          collect2name=`${CC} -print-prog-name=collect2`
 
12949
          if test -f "$collect2name" &&
 
12950
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12951
          then
 
12952
            # We have reworked collect2
 
12953
            :
 
12954
          else
 
12955
            # We have old collect2
 
12956
            hardcode_direct_CXX=unsupported
 
12957
            # It fails to find uninstalled libraries when the uninstalled
 
12958
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12959
            # to unsupported forces relinking
 
12960
            hardcode_minus_L_CXX=yes
 
12961
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12962
            hardcode_libdir_separator_CXX=
 
12963
          fi
 
12964
          esac
 
12965
          shared_flag='-shared'
 
12966
          if test "$aix_use_runtimelinking" = yes; then
 
12967
            shared_flag="$shared_flag "'${wl}-G'
 
12968
          fi
 
12969
        else
 
12970
          # not using gcc
 
12971
          if test "$host_cpu" = ia64; then
 
12972
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12973
          # chokes on -Wl,-G. The following line is correct:
 
12974
          shared_flag='-G'
 
12975
          else
 
12976
            if test "$aix_use_runtimelinking" = yes; then
 
12977
              shared_flag='${wl}-G'
 
12978
            else
 
12979
              shared_flag='${wl}-bM:SRE'
 
12980
            fi
 
12981
          fi
 
12982
        fi
 
12983
 
 
12984
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12985
        # It seems that -bexpall does not export symbols beginning with
 
12986
        # underscore (_), so it is better to generate a list of symbols to
 
12987
        # export.
 
12988
        always_export_symbols_CXX=yes
 
12989
        if test "$aix_use_runtimelinking" = yes; then
 
12990
          # Warning - without using the other runtime loading flags (-brtl),
 
12991
          # -berok will link without error, but may produce a broken library.
 
12992
          allow_undefined_flag_CXX='-berok'
 
12993
          # Determine the default libpath from the value encoded in an empty
 
12994
          # executable.
 
12995
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12996
  aix_libpath=$lt_cv_aix_libpath
 
12997
else
 
12998
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12999
  $as_echo_n "(cached) " >&6
 
13000
else
 
13001
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13002
/* end confdefs.h.  */
 
13003
 
 
13004
int
 
13005
main ()
 
13006
{
 
13007
 
 
13008
  ;
 
13009
  return 0;
 
13010
}
 
13011
_ACEOF
 
13012
if ac_fn_cxx_try_link "$LINENO"; then :
 
13013
 
 
13014
  lt_aix_libpath_sed='
 
13015
      /Import File Strings/,/^$/ {
 
13016
          /^0/ {
 
13017
              s/^0  *\([^ ]*\) *$/\1/
 
13018
              p
 
13019
          }
 
13020
      }'
 
13021
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13022
  # Check for a 64-bit object if we didn't find anything.
 
13023
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13024
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13025
  fi
 
13026
fi
 
13027
rm -f core conftest.err conftest.$ac_objext \
 
13028
    conftest$ac_exeext conftest.$ac_ext
 
13029
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13030
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13031
  fi
 
13032
 
 
13033
fi
 
13034
 
 
13035
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13036
fi
 
13037
 
 
13038
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13039
 
 
13040
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13041
        else
 
13042
          if test "$host_cpu" = ia64; then
 
13043
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13044
            allow_undefined_flag_CXX="-z nodefs"
 
13045
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13046
          else
 
13047
            # Determine the default libpath from the value encoded in an
 
13048
            # empty executable.
 
13049
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13050
  aix_libpath=$lt_cv_aix_libpath
 
13051
else
 
13052
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13053
  $as_echo_n "(cached) " >&6
 
13054
else
 
13055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13056
/* end confdefs.h.  */
 
13057
 
 
13058
int
 
13059
main ()
 
13060
{
 
13061
 
 
13062
  ;
 
13063
  return 0;
 
13064
}
 
13065
_ACEOF
 
13066
if ac_fn_cxx_try_link "$LINENO"; then :
 
13067
 
 
13068
  lt_aix_libpath_sed='
 
13069
      /Import File Strings/,/^$/ {
 
13070
          /^0/ {
 
13071
              s/^0  *\([^ ]*\) *$/\1/
 
13072
              p
 
13073
          }
 
13074
      }'
 
13075
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13076
  # Check for a 64-bit object if we didn't find anything.
 
13077
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13078
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13079
  fi
 
13080
fi
 
13081
rm -f core conftest.err conftest.$ac_objext \
 
13082
    conftest$ac_exeext conftest.$ac_ext
 
13083
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13084
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13085
  fi
 
13086
 
 
13087
fi
 
13088
 
 
13089
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13090
fi
 
13091
 
 
13092
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13093
            # Warning - without using the other run time loading flags,
 
13094
            # -berok will link without error, but may produce a broken library.
 
13095
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13096
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13097
            if test "$with_gnu_ld" = yes; then
 
13098
              # We only use this code for GNU lds that support --whole-archive.
 
13099
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13100
            else
 
13101
              # Exported symbols can be pulled into shared objects from archives
 
13102
              whole_archive_flag_spec_CXX='$convenience'
 
13103
            fi
 
13104
            archive_cmds_need_lc_CXX=yes
 
13105
            # This is similar to how AIX traditionally builds its shared
 
13106
            # libraries.
 
13107
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13108
          fi
 
13109
        fi
 
13110
        ;;
 
13111
 
 
13112
      beos*)
 
13113
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13114
          allow_undefined_flag_CXX=unsupported
 
13115
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13116
          # support --undefined.  This deserves some investigation.  FIXME
 
13117
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13118
        else
 
13119
          ld_shlibs_CXX=no
 
13120
        fi
 
13121
        ;;
 
13122
 
 
13123
      chorus*)
 
13124
        case $cc_basename in
 
13125
          *)
 
13126
          # FIXME: insert proper C++ library support
 
13127
          ld_shlibs_CXX=no
 
13128
          ;;
 
13129
        esac
 
13130
        ;;
 
13131
 
 
13132
      cygwin* | mingw* | pw32* | cegcc*)
 
13133
        case $GXX,$cc_basename in
 
13134
        ,cl* | no,cl*)
 
13135
          # Native MSVC
 
13136
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13137
          # no search path for DLLs.
 
13138
          hardcode_libdir_flag_spec_CXX=' '
 
13139
          allow_undefined_flag_CXX=unsupported
 
13140
          always_export_symbols_CXX=yes
 
13141
          file_list_spec_CXX='@'
 
13142
          # Tell ltmain to make .lib files, not .a files.
 
13143
          libext=lib
 
13144
          # Tell ltmain to make .dll files, not .so files.
 
13145
          shrext_cmds=".dll"
 
13146
          # FIXME: Setting linknames here is a bad hack.
 
13147
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
13148
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13149
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
13150
            else
 
13151
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
13152
            fi~
 
13153
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
13154
            linknames='
 
13155
          # The linker will not automatically build a static lib if we build a DLL.
 
13156
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
13157
          enable_shared_with_static_runtimes_CXX=yes
 
13158
          # Don't use ranlib
 
13159
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
13160
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
13161
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
13162
            case $lt_outputfile in
 
13163
              *.exe|*.EXE) ;;
 
13164
              *)
 
13165
                lt_outputfile="$lt_outputfile.exe"
 
13166
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
13167
                ;;
 
13168
            esac~
 
13169
            func_to_tool_file "$lt_outputfile"~
 
13170
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
13171
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
13172
              $RM "$lt_outputfile.manifest";
 
13173
            fi'
 
13174
          ;;
 
13175
        *)
 
13176
          # g++
 
13177
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13178
          # as there is no search path for DLLs.
 
13179
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13180
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
13181
          allow_undefined_flag_CXX=unsupported
 
13182
          always_export_symbols_CXX=no
 
13183
          enable_shared_with_static_runtimes_CXX=yes
 
13184
 
 
13185
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13186
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13187
            # If the export-symbols file already is a .def file (1st line
 
13188
            # is EXPORTS), use it as is; otherwise, prepend...
 
13189
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13190
              cp $export_symbols $output_objdir/$soname.def;
 
13191
            else
 
13192
              echo EXPORTS > $output_objdir/$soname.def;
 
13193
              cat $export_symbols >> $output_objdir/$soname.def;
 
13194
            fi~
 
13195
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13196
          else
 
13197
            ld_shlibs_CXX=no
 
13198
          fi
 
13199
          ;;
 
13200
        esac
 
13201
        ;;
 
13202
      darwin* | rhapsody*)
 
13203
 
 
13204
 
 
13205
  archive_cmds_need_lc_CXX=no
 
13206
  hardcode_direct_CXX=no
 
13207
  hardcode_automatic_CXX=yes
 
13208
  hardcode_shlibpath_var_CXX=unsupported
 
13209
  if test "$lt_cv_ld_force_load" = "yes"; then
 
13210
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
13211
  else
 
13212
    whole_archive_flag_spec_CXX=''
 
13213
  fi
 
13214
  link_all_deplibs_CXX=yes
 
13215
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13216
  case $cc_basename in
 
13217
     ifort*) _lt_dar_can_shared=yes ;;
 
13218
     *) _lt_dar_can_shared=$GCC ;;
 
13219
  esac
 
13220
  if test "$_lt_dar_can_shared" = "yes"; then
 
13221
    output_verbose_link_cmd=func_echo_all
 
13222
    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}"
 
13223
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13224
    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}"
 
13225
    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}"
 
13226
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13227
      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}"
 
13228
      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}"
 
13229
    fi
 
13230
 
 
13231
  else
 
13232
  ld_shlibs_CXX=no
 
13233
  fi
 
13234
 
 
13235
        ;;
 
13236
 
 
13237
      dgux*)
 
13238
        case $cc_basename in
 
13239
          ec++*)
 
13240
            # FIXME: insert proper C++ library support
 
13241
            ld_shlibs_CXX=no
 
13242
            ;;
 
13243
          ghcx*)
 
13244
            # Green Hills C++ Compiler
 
13245
            # FIXME: insert proper C++ library support
 
13246
            ld_shlibs_CXX=no
 
13247
            ;;
 
13248
          *)
 
13249
            # FIXME: insert proper C++ library support
 
13250
            ld_shlibs_CXX=no
 
13251
            ;;
 
13252
        esac
 
13253
        ;;
 
13254
 
 
13255
      freebsd[12]*)
 
13256
        # C++ shared libraries reported to be fairly broken before
 
13257
        # switch to ELF
 
13258
        ld_shlibs_CXX=no
 
13259
        ;;
 
13260
 
 
13261
      freebsd-elf*)
 
13262
        archive_cmds_need_lc_CXX=no
 
13263
        ;;
 
13264
 
 
13265
      freebsd* | dragonfly*)
 
13266
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13267
        # conventions
 
13268
        ld_shlibs_CXX=yes
 
13269
        ;;
 
13270
 
 
13271
      gnu*)
 
13272
        ;;
 
13273
 
 
13274
      haiku*)
 
13275
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13276
        link_all_deplibs_CXX=yes
 
13277
        ;;
 
13278
 
 
13279
      hpux9*)
 
13280
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13281
        hardcode_libdir_separator_CXX=:
 
13282
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13283
        hardcode_direct_CXX=yes
 
13284
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13285
                                             # but as the default
 
13286
                                             # location of the library.
 
13287
 
 
13288
        case $cc_basename in
 
13289
          CC*)
 
13290
            # FIXME: insert proper C++ library support
 
13291
            ld_shlibs_CXX=no
 
13292
            ;;
 
13293
          aCC*)
 
13294
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13295
            # Commands to make compiler produce verbose output that lists
 
13296
            # what "hidden" libraries, object files and flags are used when
 
13297
            # linking a shared library.
 
13298
            #
 
13299
            # There doesn't appear to be a way to prevent this compiler from
 
13300
            # explicitly linking system object files so we need to strip them
 
13301
            # from the output so that they don't get included in the library
 
13302
            # dependencies.
 
13303
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13304
            ;;
 
13305
          *)
 
13306
            if test "$GXX" = yes; then
 
13307
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13308
            else
 
13309
              # FIXME: insert proper C++ library support
 
13310
              ld_shlibs_CXX=no
 
13311
            fi
 
13312
            ;;
 
13313
        esac
 
13314
        ;;
 
13315
 
 
13316
      hpux10*|hpux11*)
 
13317
        if test $with_gnu_ld = no; then
 
13318
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13319
          hardcode_libdir_separator_CXX=:
 
13320
 
 
13321
          case $host_cpu in
 
13322
            hppa*64*|ia64*)
 
13323
              ;;
 
13324
            *)
 
13325
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13326
              ;;
 
13327
          esac
 
13328
        fi
 
13329
        case $host_cpu in
 
13330
          hppa*64*|ia64*)
 
13331
            hardcode_direct_CXX=no
 
13332
            hardcode_shlibpath_var_CXX=no
 
13333
            ;;
 
13334
          *)
 
13335
            hardcode_direct_CXX=yes
 
13336
            hardcode_direct_absolute_CXX=yes
 
13337
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13338
                                                 # but as the default
 
13339
                                                 # location of the library.
 
13340
            ;;
 
13341
        esac
 
13342
 
 
13343
        case $cc_basename in
 
13344
          CC*)
 
13345
            # FIXME: insert proper C++ library support
 
13346
            ld_shlibs_CXX=no
 
13347
            ;;
 
13348
          aCC*)
 
13349
            case $host_cpu in
 
13350
              hppa*64*)
 
13351
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13352
                ;;
 
13353
              ia64*)
 
13354
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13355
                ;;
 
13356
              *)
 
13357
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13358
                ;;
 
13359
            esac
 
13360
            # Commands to make compiler produce verbose output that lists
 
13361
            # what "hidden" libraries, object files and flags are used when
 
13362
            # linking a shared library.
 
13363
            #
 
13364
            # There doesn't appear to be a way to prevent this compiler from
 
13365
            # explicitly linking system object files so we need to strip them
 
13366
            # from the output so that they don't get included in the library
 
13367
            # dependencies.
 
13368
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13369
            ;;
 
13370
          *)
 
13371
            if test "$GXX" = yes; then
 
13372
              if test $with_gnu_ld = no; then
 
13373
                case $host_cpu in
 
13374
                  hppa*64*)
 
13375
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13376
                    ;;
 
13377
                  ia64*)
 
13378
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13379
                    ;;
 
13380
                  *)
 
13381
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13382
                    ;;
 
13383
                esac
 
13384
              fi
 
13385
            else
 
13386
              # FIXME: insert proper C++ library support
 
13387
              ld_shlibs_CXX=no
 
13388
            fi
 
13389
            ;;
 
13390
        esac
 
13391
        ;;
 
13392
 
 
13393
      interix[3-9]*)
 
13394
        hardcode_direct_CXX=no
 
13395
        hardcode_shlibpath_var_CXX=no
 
13396
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13397
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13398
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13399
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13400
        # default) and relocated if they conflict, which is a slow very memory
 
13401
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13402
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13403
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13404
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13405
        archive_expsym_cmds_CXX='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'
 
13406
        ;;
 
13407
      irix5* | irix6*)
 
13408
        case $cc_basename in
 
13409
          CC*)
 
13410
            # SGI C++
 
13411
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13412
 
 
13413
            # Archives containing C++ object files must be created using
 
13414
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13415
            # necessary to make sure instantiated templates are included
 
13416
            # in the archive.
 
13417
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13418
            ;;
 
13419
          *)
 
13420
            if test "$GXX" = yes; then
 
13421
              if test "$with_gnu_ld" = no; then
 
13422
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13423
              else
 
13424
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
13425
              fi
 
13426
            fi
 
13427
            link_all_deplibs_CXX=yes
 
13428
            ;;
 
13429
        esac
 
13430
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13431
        hardcode_libdir_separator_CXX=:
 
13432
        inherit_rpath_CXX=yes
 
13433
        ;;
 
13434
 
 
13435
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13436
        case $cc_basename in
 
13437
          KCC*)
 
13438
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13439
 
 
13440
            # KCC will only create a shared library if the output file
 
13441
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13442
            # to its proper name (with version) after linking.
 
13443
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13444
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
13445
            # Commands to make compiler produce verbose output that lists
 
13446
            # what "hidden" libraries, object files and flags are used when
 
13447
            # linking a shared library.
 
13448
            #
 
13449
            # There doesn't appear to be a way to prevent this compiler from
 
13450
            # explicitly linking system object files so we need to strip them
 
13451
            # from the output so that they don't get included in the library
 
13452
            # dependencies.
 
13453
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13454
 
 
13455
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13456
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13457
 
 
13458
            # Archives containing C++ object files must be created using
 
13459
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13460
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13461
            ;;
 
13462
          icpc* | ecpc* )
 
13463
            # Intel C++
 
13464
            with_gnu_ld=yes
 
13465
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13466
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13467
            # earlier do not add the objects themselves.
 
13468
            case `$CC -V 2>&1` in
 
13469
              *"Version 7."*)
 
13470
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13471
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13472
                ;;
 
13473
              *)  # Version 8.0 or newer
 
13474
                tmp_idyn=
 
13475
                case $host_cpu in
 
13476
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13477
                esac
 
13478
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13479
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13480
                ;;
 
13481
            esac
 
13482
            archive_cmds_need_lc_CXX=no
 
13483
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13484
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13485
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13486
            ;;
 
13487
          pgCC* | pgcpp*)
 
13488
            # Portland Group C++ compiler
 
13489
            case `$CC -V` in
 
13490
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13491
              prelink_cmds_CXX='tpldir=Template.dir~
 
13492
                rm -rf $tpldir~
 
13493
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13494
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13495
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13496
                rm -rf $tpldir~
 
13497
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13498
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13499
                $RANLIB $oldlib'
 
13500
              archive_cmds_CXX='tpldir=Template.dir~
 
13501
                rm -rf $tpldir~
 
13502
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13503
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13504
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13505
                rm -rf $tpldir~
 
13506
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13507
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13508
              ;;
 
13509
            *) # Version 6 and above use weak symbols
 
13510
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13511
              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'
 
13512
              ;;
 
13513
            esac
 
13514
 
 
13515
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13516
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13517
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13518
            ;;
 
13519
          cxx*)
 
13520
            # Compaq C++
 
13521
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13522
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
13523
 
 
13524
            runpath_var=LD_RUN_PATH
 
13525
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13526
            hardcode_libdir_separator_CXX=:
 
13527
 
 
13528
            # Commands to make compiler produce verbose output that lists
 
13529
            # what "hidden" libraries, object files and flags are used when
 
13530
            # linking a shared library.
 
13531
            #
 
13532
            # There doesn't appear to be a way to prevent this compiler from
 
13533
            # explicitly linking system object files so we need to strip them
 
13534
            # from the output so that they don't get included in the library
 
13535
            # dependencies.
 
13536
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
 
13537
            ;;
 
13538
          xl* | mpixl* | bgxl*)
 
13539
            # IBM XL 8.0 on PPC, with GNU ld
 
13540
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13541
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13542
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13543
            if test "x$supports_anon_versioning" = xyes; then
 
13544
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13545
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13546
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13547
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13548
            fi
 
13549
            ;;
 
13550
          *)
 
13551
            case `$CC -V 2>&1 | sed 5q` in
 
13552
            *Sun\ C*)
 
13553
              # Sun C++ 5.9
 
13554
              no_undefined_flag_CXX=' -zdefs'
 
13555
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13556
              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'
 
13557
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13558
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13559
              compiler_needs_object_CXX=yes
 
13560
 
 
13561
              # Not sure whether something based on
 
13562
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13563
              # would be better.
 
13564
              output_verbose_link_cmd='func_echo_all'
 
13565
 
 
13566
              # Archives containing C++ object files must be created using
 
13567
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13568
              # necessary to make sure instantiated templates are included
 
13569
              # in the archive.
 
13570
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13571
              ;;
 
13572
            esac
 
13573
            ;;
 
13574
        esac
 
13575
        ;;
 
13576
 
 
13577
      lynxos*)
 
13578
        # FIXME: insert proper C++ library support
 
13579
        ld_shlibs_CXX=no
 
13580
        ;;
 
13581
 
 
13582
      m88k*)
 
13583
        # FIXME: insert proper C++ library support
 
13584
        ld_shlibs_CXX=no
 
13585
        ;;
 
13586
 
 
13587
      mvs*)
 
13588
        case $cc_basename in
 
13589
          cxx*)
 
13590
            # FIXME: insert proper C++ library support
 
13591
            ld_shlibs_CXX=no
 
13592
            ;;
 
13593
          *)
 
13594
            # FIXME: insert proper C++ library support
 
13595
            ld_shlibs_CXX=no
 
13596
            ;;
 
13597
        esac
 
13598
        ;;
 
13599
 
 
13600
      netbsd*)
 
13601
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13602
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13603
          wlarc=
 
13604
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13605
          hardcode_direct_CXX=yes
 
13606
          hardcode_shlibpath_var_CXX=no
 
13607
        fi
 
13608
        # Workaround some broken pre-1.5 toolchains
 
13609
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13610
        ;;
 
13611
 
 
13612
      *nto* | *qnx*)
 
13613
        ld_shlibs_CXX=yes
 
13614
        ;;
 
13615
 
 
13616
      openbsd2*)
 
13617
        # C++ shared libraries are fairly broken
 
13618
        ld_shlibs_CXX=no
 
13619
        ;;
 
13620
 
 
13621
      openbsd*)
 
13622
        if test -f /usr/libexec/ld.so; then
 
13623
          hardcode_direct_CXX=yes
 
13624
          hardcode_shlibpath_var_CXX=no
 
13625
          hardcode_direct_absolute_CXX=yes
 
13626
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13627
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13628
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13629
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13630
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13631
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13632
          fi
 
13633
          output_verbose_link_cmd=func_echo_all
 
13634
        else
 
13635
          ld_shlibs_CXX=no
 
13636
        fi
 
13637
        ;;
 
13638
 
 
13639
      osf3* | osf4* | osf5*)
 
13640
        case $cc_basename in
 
13641
          KCC*)
 
13642
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13643
 
 
13644
            # KCC will only create a shared library if the output file
 
13645
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13646
            # to its proper name (with version) after linking.
 
13647
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13648
 
 
13649
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13650
            hardcode_libdir_separator_CXX=:
 
13651
 
 
13652
            # Archives containing C++ object files must be created using
 
13653
            # the KAI C++ compiler.
 
13654
            case $host in
 
13655
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13656
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13657
            esac
 
13658
            ;;
 
13659
          RCC*)
 
13660
            # Rational C++ 2.4.1
 
13661
            # FIXME: insert proper C++ library support
 
13662
            ld_shlibs_CXX=no
 
13663
            ;;
 
13664
          cxx*)
 
13665
            case $host in
 
13666
              osf3*)
 
13667
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13668
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13669
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13670
                ;;
 
13671
              *)
 
13672
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13673
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13674
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13675
                  echo "-hidden">> $lib.exp~
 
13676
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
13677
                  $RM $lib.exp'
 
13678
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13679
                ;;
 
13680
            esac
 
13681
 
 
13682
            hardcode_libdir_separator_CXX=:
 
13683
 
 
13684
            # Commands to make compiler produce verbose output that lists
 
13685
            # what "hidden" libraries, object files and flags are used when
 
13686
            # linking a shared library.
 
13687
            #
 
13688
            # There doesn't appear to be a way to prevent this compiler from
 
13689
            # explicitly linking system object files so we need to strip them
 
13690
            # from the output so that they don't get included in the library
 
13691
            # dependencies.
 
13692
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
 
13693
            ;;
 
13694
          *)
 
13695
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13696
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13697
              case $host in
 
13698
                osf3*)
 
13699
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13700
                  ;;
 
13701
                *)
 
13702
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13703
                  ;;
 
13704
              esac
 
13705
 
 
13706
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13707
              hardcode_libdir_separator_CXX=:
 
13708
 
 
13709
              # Commands to make compiler produce verbose output that lists
 
13710
              # what "hidden" libraries, object files and flags are used when
 
13711
              # linking a shared library.
 
13712
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13713
 
 
13714
            else
 
13715
              # FIXME: insert proper C++ library support
 
13716
              ld_shlibs_CXX=no
 
13717
            fi
 
13718
            ;;
 
13719
        esac
 
13720
        ;;
 
13721
 
 
13722
      psos*)
 
13723
        # FIXME: insert proper C++ library support
 
13724
        ld_shlibs_CXX=no
 
13725
        ;;
 
13726
 
 
13727
      sunos4*)
 
13728
        case $cc_basename in
 
13729
          CC*)
 
13730
            # Sun C++ 4.x
 
13731
            # FIXME: insert proper C++ library support
 
13732
            ld_shlibs_CXX=no
 
13733
            ;;
 
13734
          lcc*)
 
13735
            # Lucid
 
13736
            # FIXME: insert proper C++ library support
 
13737
            ld_shlibs_CXX=no
 
13738
            ;;
 
13739
          *)
 
13740
            # FIXME: insert proper C++ library support
 
13741
            ld_shlibs_CXX=no
 
13742
            ;;
 
13743
        esac
 
13744
        ;;
 
13745
 
 
13746
      solaris*)
 
13747
        case $cc_basename in
 
13748
          CC* | sunCC*)
 
13749
            # Sun C++ 4.2, 5.x and Centerline C++
 
13750
            archive_cmds_need_lc_CXX=yes
 
13751
            no_undefined_flag_CXX=' -zdefs'
 
13752
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13753
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13754
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13755
 
 
13756
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13757
            hardcode_shlibpath_var_CXX=no
 
13758
            case $host_os in
 
13759
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13760
              *)
 
13761
                # The compiler driver will combine and reorder linker options,
 
13762
                # but understands `-z linker_flag'.
 
13763
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13764
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13765
                ;;
 
13766
            esac
 
13767
            link_all_deplibs_CXX=yes
 
13768
 
 
13769
            output_verbose_link_cmd='func_echo_all'
 
13770
 
 
13771
            # Archives containing C++ object files must be created using
 
13772
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13773
            # necessary to make sure instantiated templates are included
 
13774
            # in the archive.
 
13775
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13776
            ;;
 
13777
          gcx*)
 
13778
            # Green Hills C++ Compiler
 
13779
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13780
 
 
13781
            # The C++ compiler must be used to create the archive.
 
13782
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13783
            ;;
 
13784
          *)
 
13785
            # GNU C++ compiler with Solaris linker
 
13786
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13787
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13788
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13789
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13790
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13791
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13792
 
 
13793
                # Commands to make compiler produce verbose output that lists
 
13794
                # what "hidden" libraries, object files and flags are used when
 
13795
                # linking a shared library.
 
13796
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13797
              else
 
13798
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13799
                # platform.
 
13800
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13801
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13802
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13803
 
 
13804
                # Commands to make compiler produce verbose output that lists
 
13805
                # what "hidden" libraries, object files and flags are used when
 
13806
                # linking a shared library.
 
13807
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13808
              fi
 
13809
 
 
13810
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13811
              case $host_os in
 
13812
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13813
                *)
 
13814
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13815
                  ;;
 
13816
              esac
 
13817
            fi
 
13818
            ;;
 
13819
        esac
 
13820
        ;;
 
13821
 
 
13822
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13823
      no_undefined_flag_CXX='${wl}-z,text'
 
13824
      archive_cmds_need_lc_CXX=no
 
13825
      hardcode_shlibpath_var_CXX=no
 
13826
      runpath_var='LD_RUN_PATH'
 
13827
 
 
13828
      case $cc_basename in
 
13829
        CC*)
 
13830
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13831
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13832
          ;;
 
13833
        *)
 
13834
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13835
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13836
          ;;
 
13837
      esac
 
13838
      ;;
 
13839
 
 
13840
      sysv5* | sco3.2v5* | sco5v6*)
 
13841
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13842
        # link with -lc, and that would cause any symbols used from libc to
 
13843
        # always be unresolved, which means just about no library would
 
13844
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13845
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13846
        # as -z defs.
 
13847
        no_undefined_flag_CXX='${wl}-z,text'
 
13848
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13849
        archive_cmds_need_lc_CXX=no
 
13850
        hardcode_shlibpath_var_CXX=no
 
13851
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13852
        hardcode_libdir_separator_CXX=':'
 
13853
        link_all_deplibs_CXX=yes
 
13854
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13855
        runpath_var='LD_RUN_PATH'
 
13856
 
 
13857
        case $cc_basename in
 
13858
          CC*)
 
13859
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13860
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13861
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13862
              '"$old_archive_cmds_CXX"
 
13863
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13864
              '"$reload_cmds_CXX"
 
13865
            ;;
 
13866
          *)
 
13867
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13868
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13869
            ;;
 
13870
        esac
 
13871
      ;;
 
13872
 
 
13873
      tandem*)
 
13874
        case $cc_basename in
 
13875
          NCC*)
 
13876
            # NonStop-UX NCC 3.20
 
13877
            # FIXME: insert proper C++ library support
 
13878
            ld_shlibs_CXX=no
 
13879
            ;;
 
13880
          *)
 
13881
            # FIXME: insert proper C++ library support
 
13882
            ld_shlibs_CXX=no
 
13883
            ;;
 
13884
        esac
 
13885
        ;;
 
13886
 
 
13887
      vxworks*)
 
13888
        # FIXME: insert proper C++ library support
 
13889
        ld_shlibs_CXX=no
 
13890
        ;;
 
13891
 
 
13892
      *)
 
13893
        # FIXME: insert proper C++ library support
 
13894
        ld_shlibs_CXX=no
 
13895
        ;;
 
13896
    esac
 
13897
 
 
13898
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13899
$as_echo "$ld_shlibs_CXX" >&6; }
 
13900
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13901
 
 
13902
    GCC_CXX="$GXX"
 
13903
    LD_CXX="$LD"
 
13904
 
 
13905
    ## CAVEAT EMPTOR:
 
13906
    ## There is no encapsulation within the following macros, do not change
 
13907
    ## the running order or otherwise move them around unless you know exactly
 
13908
    ## what you are doing...
 
13909
    # Dependencies to place before and after the object being linked:
 
13910
predep_objects_CXX=
 
13911
postdep_objects_CXX=
 
13912
predeps_CXX=
 
13913
postdeps_CXX=
 
13914
compiler_lib_search_path_CXX=
 
13915
 
 
13916
cat > conftest.$ac_ext <<_LT_EOF
 
13917
class Foo
 
13918
{
 
13919
public:
 
13920
  Foo (void) { a = 0; }
 
13921
private:
 
13922
  int a;
 
13923
};
 
13924
_LT_EOF
 
13925
 
 
13926
 
 
13927
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13928
case "$CC $CFLAGS " in #(
 
13929
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13930
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13931
esac
 
13932
 
 
13933
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13934
  (eval $ac_compile) 2>&5
 
13935
  ac_status=$?
 
13936
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13937
  test $ac_status = 0; }; then
 
13938
  # Parse the compiler output and extract the necessary
 
13939
  # objects, libraries and library flags.
 
13940
 
 
13941
  # Sentinel used to keep track of whether or not we are before
 
13942
  # the conftest object file.
 
13943
  pre_test_object_deps_done=no
 
13944
 
 
13945
  for p in `eval "$output_verbose_link_cmd"`; do
 
13946
    case ${prev}${p} in
 
13947
 
 
13948
    -L* | -R* | -l*)
 
13949
       # Some compilers place space between "-{L,R}" and the path.
 
13950
       # Remove the space.
 
13951
       if test $p = "-L" ||
 
13952
          test $p = "-R"; then
 
13953
         prev=$p
 
13954
         continue
 
13955
       fi
 
13956
 
 
13957
       # Expand the sysroot to ease extracting the directories later.
 
13958
       if test -z "$prev"; then
 
13959
         case $p in
 
13960
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13961
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13962
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13963
         esac
 
13964
       fi
 
13965
       case $p in
 
13966
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13967
       esac
 
13968
       if test "$pre_test_object_deps_done" = no; then
 
13969
         case ${prev} in
 
13970
         -L | -R)
 
13971
           # Internal compiler library paths should come after those
 
13972
           # provided the user.  The postdeps already come after the
 
13973
           # user supplied libs so there is no need to process them.
 
13974
           if test -z "$compiler_lib_search_path_CXX"; then
 
13975
             compiler_lib_search_path_CXX="${prev}${p}"
 
13976
           else
 
13977
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13978
           fi
 
13979
           ;;
 
13980
         # The "-l" case would never come before the object being
 
13981
         # linked, so don't bother handling this case.
 
13982
         esac
 
13983
       else
 
13984
         if test -z "$postdeps_CXX"; then
 
13985
           postdeps_CXX="${prev}${p}"
 
13986
         else
 
13987
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13988
         fi
 
13989
       fi
 
13990
       prev=
 
13991
       ;;
 
13992
 
 
13993
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13994
    *.$objext)
 
13995
       # This assumes that the test object file only shows up
 
13996
       # once in the compiler output.
 
13997
       if test "$p" = "conftest.$objext"; then
 
13998
         pre_test_object_deps_done=yes
 
13999
         continue
 
14000
       fi
 
14001
 
 
14002
       if test "$pre_test_object_deps_done" = no; then
 
14003
         if test -z "$predep_objects_CXX"; then
 
14004
           predep_objects_CXX="$p"
 
14005
         else
 
14006
           predep_objects_CXX="$predep_objects_CXX $p"
 
14007
         fi
 
14008
       else
 
14009
         if test -z "$postdep_objects_CXX"; then
 
14010
           postdep_objects_CXX="$p"
 
14011
         else
 
14012
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14013
         fi
 
14014
       fi
 
14015
       ;;
 
14016
 
 
14017
    *) ;; # Ignore the rest.
 
14018
 
 
14019
    esac
 
14020
  done
 
14021
 
 
14022
  # Clean up.
 
14023
  rm -f a.out a.exe
 
14024
else
 
14025
  echo "libtool.m4: error: problem compiling CXX test program"
 
14026
fi
 
14027
 
 
14028
$RM -f confest.$objext
 
14029
CFLAGS=$_lt_libdeps_save_CFLAGS
 
14030
 
 
14031
# PORTME: override above test on systems where it is broken
 
14032
case $host_os in
 
14033
interix[3-9]*)
 
14034
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14035
  # hack all around it, let's just trust "g++" to DTRT.
 
14036
  predep_objects_CXX=
 
14037
  postdep_objects_CXX=
 
14038
  postdeps_CXX=
 
14039
  ;;
 
14040
 
 
14041
linux*)
 
14042
  case `$CC -V 2>&1 | sed 5q` in
 
14043
  *Sun\ C*)
 
14044
    # Sun C++ 5.9
 
14045
 
 
14046
    # The more standards-conforming stlport4 library is
 
14047
    # incompatible with the Cstd library. Avoid specifying
 
14048
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14049
    # -library=stlport4 depends on it.
 
14050
    case " $CXX $CXXFLAGS " in
 
14051
    *" -library=stlport4 "*)
 
14052
      solaris_use_stlport4=yes
 
14053
      ;;
 
14054
    esac
 
14055
 
 
14056
    if test "$solaris_use_stlport4" != yes; then
 
14057
      postdeps_CXX='-library=Cstd -library=Crun'
 
14058
    fi
 
14059
    ;;
 
14060
  esac
 
14061
  ;;
 
14062
 
 
14063
solaris*)
 
14064
  case $cc_basename in
 
14065
  CC* | sunCC*)
 
14066
    # The more standards-conforming stlport4 library is
 
14067
    # incompatible with the Cstd library. Avoid specifying
 
14068
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14069
    # -library=stlport4 depends on it.
 
14070
    case " $CXX $CXXFLAGS " in
 
14071
    *" -library=stlport4 "*)
 
14072
      solaris_use_stlport4=yes
 
14073
      ;;
 
14074
    esac
 
14075
 
 
14076
    # Adding this requires a known-good setup of shared libraries for
 
14077
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14078
    # archive will be linked into the output, leading to subtle bugs.
 
14079
    if test "$solaris_use_stlport4" != yes; then
 
14080
      postdeps_CXX='-library=Cstd -library=Crun'
 
14081
    fi
 
14082
    ;;
 
14083
  esac
 
14084
  ;;
 
14085
esac
 
14086
 
 
14087
 
 
14088
case " $postdeps_CXX " in
 
14089
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14090
esac
 
14091
 compiler_lib_search_dirs_CXX=
 
14092
if test -n "${compiler_lib_search_path_CXX}"; then
 
14093
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14094
fi
 
14095
 
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
 
 
14101
 
 
14102
 
 
14103
 
 
14104
 
 
14105
 
 
14106
 
 
14107
 
 
14108
 
 
14109
 
 
14110
 
 
14111
 
 
14112
 
 
14113
 
 
14114
 
 
14115
 
 
14116
 
 
14117
 
 
14118
 
 
14119
 
 
14120
 
 
14121
 
 
14122
 
 
14123
 
 
14124
 
 
14125
 
 
14126
    lt_prog_compiler_wl_CXX=
 
14127
lt_prog_compiler_pic_CXX=
 
14128
lt_prog_compiler_static_CXX=
 
14129
 
 
14130
 
 
14131
  # C++ specific cases for pic, static, wl, etc.
 
14132
  if test "$GXX" = yes; then
 
14133
    lt_prog_compiler_wl_CXX='-Wl,'
 
14134
    lt_prog_compiler_static_CXX='-static'
 
14135
 
 
14136
    case $host_os in
 
14137
    aix*)
 
14138
      # All AIX code is PIC.
 
14139
      if test "$host_cpu" = ia64; then
 
14140
        # AIX 5 now supports IA64 processor
 
14141
        lt_prog_compiler_static_CXX='-Bstatic'
 
14142
      fi
 
14143
      ;;
 
14144
 
 
14145
    amigaos*)
 
14146
      case $host_cpu in
 
14147
      powerpc)
 
14148
            # see comment about AmigaOS4 .so support
 
14149
            lt_prog_compiler_pic_CXX='-fPIC'
 
14150
        ;;
 
14151
      m68k)
 
14152
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14153
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14154
            # like `-m68040'.
 
14155
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14156
        ;;
 
14157
      esac
 
14158
      ;;
 
14159
 
 
14160
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14161
      # PIC is the default for these OSes.
 
14162
      ;;
 
14163
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14164
      # This hack is so that the source file can tell whether it is being
 
14165
      # built for inclusion in a dll (and should export symbols for example).
 
14166
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14167
      # (--disable-auto-import) libraries
 
14168
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14169
      ;;
 
14170
    darwin* | rhapsody*)
 
14171
      # PIC is the default on this platform
 
14172
      # Common symbols not allowed in MH_DYLIB files
 
14173
      lt_prog_compiler_pic_CXX='-fno-common'
 
14174
      ;;
 
14175
    *djgpp*)
 
14176
      # DJGPP does not support shared libraries at all
 
14177
      lt_prog_compiler_pic_CXX=
 
14178
      ;;
 
14179
    haiku*)
 
14180
      # PIC is the default for Haiku.
 
14181
      # The "-static" flag exists, but is broken.
 
14182
      lt_prog_compiler_static_CXX=
 
14183
      ;;
 
14184
    interix[3-9]*)
 
14185
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14186
      # Instead, we relocate shared libraries at runtime.
 
14187
      ;;
 
14188
    sysv4*MP*)
 
14189
      if test -d /usr/nec; then
 
14190
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14191
      fi
 
14192
      ;;
 
14193
    hpux*)
 
14194
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
14195
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
14196
      # sets the default TLS model and affects inlining.
 
14197
      case $host_cpu in
 
14198
      hppa*64*)
 
14199
        ;;
 
14200
      *)
 
14201
        lt_prog_compiler_pic_CXX='-fPIC'
 
14202
        ;;
 
14203
      esac
 
14204
      ;;
 
14205
    *qnx* | *nto*)
 
14206
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14207
      # it will coredump.
 
14208
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14209
      ;;
 
14210
    *)
 
14211
      lt_prog_compiler_pic_CXX='-fPIC'
 
14212
      ;;
 
14213
    esac
 
14214
  else
 
14215
    case $host_os in
 
14216
      aix[4-9]*)
 
14217
        # All AIX code is PIC.
 
14218
        if test "$host_cpu" = ia64; then
 
14219
          # AIX 5 now supports IA64 processor
 
14220
          lt_prog_compiler_static_CXX='-Bstatic'
 
14221
        else
 
14222
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14223
        fi
 
14224
        ;;
 
14225
      chorus*)
 
14226
        case $cc_basename in
 
14227
        cxch68*)
 
14228
          # Green Hills C++ Compiler
 
14229
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
14230
          ;;
 
14231
        esac
 
14232
        ;;
 
14233
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14234
        # This hack is so that the source file can tell whether it is being
 
14235
        # built for inclusion in a dll (and should export symbols for example).
 
14236
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14237
        ;;
 
14238
      dgux*)
 
14239
        case $cc_basename in
 
14240
          ec++*)
 
14241
            lt_prog_compiler_pic_CXX='-KPIC'
 
14242
            ;;
 
14243
          ghcx*)
 
14244
            # Green Hills C++ Compiler
 
14245
            lt_prog_compiler_pic_CXX='-pic'
 
14246
            ;;
 
14247
          *)
 
14248
            ;;
 
14249
        esac
 
14250
        ;;
 
14251
      freebsd* | dragonfly*)
 
14252
        # FreeBSD uses GNU C++
 
14253
        ;;
 
14254
      hpux9* | hpux10* | hpux11*)
 
14255
        case $cc_basename in
 
14256
          CC*)
 
14257
            lt_prog_compiler_wl_CXX='-Wl,'
 
14258
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14259
            if test "$host_cpu" != ia64; then
 
14260
              lt_prog_compiler_pic_CXX='+Z'
 
14261
            fi
 
14262
            ;;
 
14263
          aCC*)
 
14264
            lt_prog_compiler_wl_CXX='-Wl,'
 
14265
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14266
            case $host_cpu in
 
14267
            hppa*64*|ia64*)
 
14268
              # +Z the default
 
14269
              ;;
 
14270
            *)
 
14271
              lt_prog_compiler_pic_CXX='+Z'
 
14272
              ;;
 
14273
            esac
 
14274
            ;;
 
14275
          *)
 
14276
            ;;
 
14277
        esac
 
14278
        ;;
 
14279
      interix*)
 
14280
        # This is c89, which is MS Visual C++ (no shared libs)
 
14281
        # Anyone wants to do a port?
 
14282
        ;;
 
14283
      irix5* | irix6* | nonstopux*)
 
14284
        case $cc_basename in
 
14285
          CC*)
 
14286
            lt_prog_compiler_wl_CXX='-Wl,'
 
14287
            lt_prog_compiler_static_CXX='-non_shared'
 
14288
            # CC pic flag -KPIC is the default.
 
14289
            ;;
 
14290
          *)
 
14291
            ;;
 
14292
        esac
 
14293
        ;;
 
14294
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14295
        case $cc_basename in
 
14296
          KCC*)
 
14297
            # KAI C++ Compiler
 
14298
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14299
            lt_prog_compiler_pic_CXX='-fPIC'
 
14300
            ;;
 
14301
          ecpc* )
 
14302
            # old Intel C++ for x86_64 which still supported -KPIC.
 
14303
            lt_prog_compiler_wl_CXX='-Wl,'
 
14304
            lt_prog_compiler_pic_CXX='-KPIC'
 
14305
            lt_prog_compiler_static_CXX='-static'
 
14306
            ;;
 
14307
          icpc* )
 
14308
            # Intel C++, used to be incompatible with GCC.
 
14309
            # ICC 10 doesn't accept -KPIC any more.
 
14310
            lt_prog_compiler_wl_CXX='-Wl,'
 
14311
            lt_prog_compiler_pic_CXX='-fPIC'
 
14312
            lt_prog_compiler_static_CXX='-static'
 
14313
            ;;
 
14314
          pgCC* | pgcpp*)
 
14315
            # Portland Group C++ compiler
 
14316
            lt_prog_compiler_wl_CXX='-Wl,'
 
14317
            lt_prog_compiler_pic_CXX='-fpic'
 
14318
            lt_prog_compiler_static_CXX='-Bstatic'
 
14319
            ;;
 
14320
          cxx*)
 
14321
            # Compaq C++
 
14322
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14323
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14324
            lt_prog_compiler_pic_CXX=
 
14325
            lt_prog_compiler_static_CXX='-non_shared'
 
14326
            ;;
 
14327
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14328
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
14329
            lt_prog_compiler_wl_CXX='-Wl,'
 
14330
            lt_prog_compiler_pic_CXX='-qpic'
 
14331
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14332
            ;;
 
14333
          *)
 
14334
            case `$CC -V 2>&1 | sed 5q` in
 
14335
            *Sun\ C*)
 
14336
              # Sun C++ 5.9
 
14337
              lt_prog_compiler_pic_CXX='-KPIC'
 
14338
              lt_prog_compiler_static_CXX='-Bstatic'
 
14339
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14340
              ;;
 
14341
            esac
 
14342
            ;;
 
14343
        esac
 
14344
        ;;
 
14345
      lynxos*)
 
14346
        ;;
 
14347
      m88k*)
 
14348
        ;;
 
14349
      mvs*)
 
14350
        case $cc_basename in
 
14351
          cxx*)
 
14352
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14353
            ;;
 
14354
          *)
 
14355
            ;;
 
14356
        esac
 
14357
        ;;
 
14358
      netbsd* | netbsdelf*-gnu)
 
14359
        ;;
 
14360
      *qnx* | *nto*)
 
14361
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14362
        # it will coredump.
 
14363
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14364
        ;;
 
14365
      osf3* | osf4* | osf5*)
 
14366
        case $cc_basename in
 
14367
          KCC*)
 
14368
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14369
            ;;
 
14370
          RCC*)
 
14371
            # Rational C++ 2.4.1
 
14372
            lt_prog_compiler_pic_CXX='-pic'
 
14373
            ;;
 
14374
          cxx*)
 
14375
            # Digital/Compaq C++
 
14376
            lt_prog_compiler_wl_CXX='-Wl,'
 
14377
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14378
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14379
            lt_prog_compiler_pic_CXX=
 
14380
            lt_prog_compiler_static_CXX='-non_shared'
 
14381
            ;;
 
14382
          *)
 
14383
            ;;
 
14384
        esac
 
14385
        ;;
 
14386
      psos*)
 
14387
        ;;
 
14388
      solaris*)
 
14389
        case $cc_basename in
 
14390
          CC* | sunCC*)
 
14391
            # Sun C++ 4.2, 5.x and Centerline C++
 
14392
            lt_prog_compiler_pic_CXX='-KPIC'
 
14393
            lt_prog_compiler_static_CXX='-Bstatic'
 
14394
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14395
            ;;
 
14396
          gcx*)
 
14397
            # Green Hills C++ Compiler
 
14398
            lt_prog_compiler_pic_CXX='-PIC'
 
14399
            ;;
 
14400
          *)
 
14401
            ;;
 
14402
        esac
 
14403
        ;;
 
14404
      sunos4*)
 
14405
        case $cc_basename in
 
14406
          CC*)
 
14407
            # Sun C++ 4.x
 
14408
            lt_prog_compiler_pic_CXX='-pic'
 
14409
            lt_prog_compiler_static_CXX='-Bstatic'
 
14410
            ;;
 
14411
          lcc*)
 
14412
            # Lucid
 
14413
            lt_prog_compiler_pic_CXX='-pic'
 
14414
            ;;
 
14415
          *)
 
14416
            ;;
 
14417
        esac
 
14418
        ;;
 
14419
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14420
        case $cc_basename in
 
14421
          CC*)
 
14422
            lt_prog_compiler_wl_CXX='-Wl,'
 
14423
            lt_prog_compiler_pic_CXX='-KPIC'
 
14424
            lt_prog_compiler_static_CXX='-Bstatic'
 
14425
            ;;
 
14426
        esac
 
14427
        ;;
 
14428
      tandem*)
 
14429
        case $cc_basename in
 
14430
          NCC*)
 
14431
            # NonStop-UX NCC 3.20
 
14432
            lt_prog_compiler_pic_CXX='-KPIC'
 
14433
            ;;
 
14434
          *)
 
14435
            ;;
 
14436
        esac
 
14437
        ;;
 
14438
      vxworks*)
 
14439
        ;;
 
14440
      *)
 
14441
        lt_prog_compiler_can_build_shared_CXX=no
 
14442
        ;;
 
14443
    esac
 
14444
  fi
 
14445
 
 
14446
case $host_os in
 
14447
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14448
  *djgpp*)
 
14449
    lt_prog_compiler_pic_CXX=
 
14450
    ;;
 
14451
  *)
 
14452
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14453
    ;;
 
14454
esac
 
14455
 
 
14456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14457
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14458
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14459
  $as_echo_n "(cached) " >&6
 
14460
else
 
14461
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14462
fi
 
14463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14464
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14465
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14466
 
 
14467
#
 
14468
# Check to make sure the PIC flag actually works.
 
14469
#
 
14470
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14472
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14473
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14474
  $as_echo_n "(cached) " >&6
 
14475
else
 
14476
  lt_cv_prog_compiler_pic_works_CXX=no
 
14477
   ac_outfile=conftest.$ac_objext
 
14478
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14479
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14480
   # Insert the option either (1) after the last *FLAGS variable, or
 
14481
   # (2) before a word containing "conftest.", or (3) at the end.
 
14482
   # Note that $ac_compile itself does not contain backslashes and begins
 
14483
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14484
   # The option is referenced via a variable to avoid confusing sed.
 
14485
   lt_compile=`echo "$ac_compile" | $SED \
 
14486
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14487
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14488
   -e 's:$: $lt_compiler_flag:'`
 
14489
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14490
   (eval "$lt_compile" 2>conftest.err)
 
14491
   ac_status=$?
 
14492
   cat conftest.err >&5
 
14493
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14494
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14495
     # The compiler can only warn and ignore the option if not recognized
 
14496
     # So say no if there are warnings other than the usual output.
 
14497
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14498
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14499
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14500
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14501
     fi
 
14502
   fi
 
14503
   $RM conftest*
 
14504
 
 
14505
fi
 
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14507
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14508
 
 
14509
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14510
    case $lt_prog_compiler_pic_CXX in
 
14511
     "" | " "*) ;;
 
14512
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14513
     esac
 
14514
else
 
14515
    lt_prog_compiler_pic_CXX=
 
14516
     lt_prog_compiler_can_build_shared_CXX=no
 
14517
fi
 
14518
 
 
14519
fi
 
14520
 
 
14521
 
 
14522
 
 
14523
 
 
14524
 
 
14525
#
 
14526
# Check to make sure the static flag actually works.
 
14527
#
 
14528
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14530
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14531
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14532
  $as_echo_n "(cached) " >&6
 
14533
else
 
14534
  lt_cv_prog_compiler_static_works_CXX=no
 
14535
   save_LDFLAGS="$LDFLAGS"
 
14536
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14537
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14538
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14539
     # The linker can only warn and ignore the option if not recognized
 
14540
     # So say no if there are warnings
 
14541
     if test -s conftest.err; then
 
14542
       # Append any errors to the config.log.
 
14543
       cat conftest.err 1>&5
 
14544
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14545
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14546
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14547
         lt_cv_prog_compiler_static_works_CXX=yes
 
14548
       fi
 
14549
     else
 
14550
       lt_cv_prog_compiler_static_works_CXX=yes
 
14551
     fi
 
14552
   fi
 
14553
   $RM -r conftest*
 
14554
   LDFLAGS="$save_LDFLAGS"
 
14555
 
 
14556
fi
 
14557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14558
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14559
 
 
14560
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14561
    :
 
14562
else
 
14563
    lt_prog_compiler_static_CXX=
 
14564
fi
 
14565
 
 
14566
 
 
14567
 
 
14568
 
 
14569
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14570
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14571
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14572
  $as_echo_n "(cached) " >&6
 
14573
else
 
14574
  lt_cv_prog_compiler_c_o_CXX=no
 
14575
   $RM -r conftest 2>/dev/null
 
14576
   mkdir conftest
 
14577
   cd conftest
 
14578
   mkdir out
 
14579
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14580
 
 
14581
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14582
   # Insert the option either (1) after the last *FLAGS variable, or
 
14583
   # (2) before a word containing "conftest.", or (3) at the end.
 
14584
   # Note that $ac_compile itself does not contain backslashes and begins
 
14585
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14586
   lt_compile=`echo "$ac_compile" | $SED \
 
14587
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14588
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14589
   -e 's:$: $lt_compiler_flag:'`
 
14590
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14591
   (eval "$lt_compile" 2>out/conftest.err)
 
14592
   ac_status=$?
 
14593
   cat out/conftest.err >&5
 
14594
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14595
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14596
   then
 
14597
     # The compiler can only warn and ignore the option if not recognized
 
14598
     # So say no if there are warnings
 
14599
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14600
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14601
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14602
       lt_cv_prog_compiler_c_o_CXX=yes
 
14603
     fi
 
14604
   fi
 
14605
   chmod u+w . 2>&5
 
14606
   $RM conftest*
 
14607
   # SGI C++ compiler will create directory out/ii_files/ for
 
14608
   # template instantiation
 
14609
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14610
   $RM out/* && rmdir out
 
14611
   cd ..
 
14612
   $RM -r conftest
 
14613
   $RM conftest*
 
14614
 
 
14615
fi
 
14616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14617
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14618
 
 
14619
 
 
14620
 
 
14621
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14622
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14623
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14624
  $as_echo_n "(cached) " >&6
 
14625
else
 
14626
  lt_cv_prog_compiler_c_o_CXX=no
 
14627
   $RM -r conftest 2>/dev/null
 
14628
   mkdir conftest
 
14629
   cd conftest
 
14630
   mkdir out
 
14631
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14632
 
 
14633
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14634
   # Insert the option either (1) after the last *FLAGS variable, or
 
14635
   # (2) before a word containing "conftest.", or (3) at the end.
 
14636
   # Note that $ac_compile itself does not contain backslashes and begins
 
14637
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14638
   lt_compile=`echo "$ac_compile" | $SED \
 
14639
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14640
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14641
   -e 's:$: $lt_compiler_flag:'`
 
14642
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14643
   (eval "$lt_compile" 2>out/conftest.err)
 
14644
   ac_status=$?
 
14645
   cat out/conftest.err >&5
 
14646
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14647
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14648
   then
 
14649
     # The compiler can only warn and ignore the option if not recognized
 
14650
     # So say no if there are warnings
 
14651
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14652
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14653
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14654
       lt_cv_prog_compiler_c_o_CXX=yes
 
14655
     fi
 
14656
   fi
 
14657
   chmod u+w . 2>&5
 
14658
   $RM conftest*
 
14659
   # SGI C++ compiler will create directory out/ii_files/ for
 
14660
   # template instantiation
 
14661
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14662
   $RM out/* && rmdir out
 
14663
   cd ..
 
14664
   $RM -r conftest
 
14665
   $RM conftest*
 
14666
 
 
14667
fi
 
14668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14669
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14670
 
 
14671
 
 
14672
 
 
14673
 
 
14674
hard_links="nottested"
 
14675
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14676
  # do not overwrite the value of need_locks provided by the user
 
14677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14678
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14679
  hard_links=yes
 
14680
  $RM conftest*
 
14681
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14682
  touch conftest.a
 
14683
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14684
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14686
$as_echo "$hard_links" >&6; }
 
14687
  if test "$hard_links" = no; then
 
14688
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14689
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14690
    need_locks=warn
 
14691
  fi
 
14692
else
 
14693
  need_locks=no
 
14694
fi
 
14695
 
 
14696
 
 
14697
 
 
14698
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14699
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14700
 
 
14701
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14702
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14703
  case $host_os in
 
14704
  aix[4-9]*)
 
14705
    # If we're using GNU nm, then we don't want the "-C" option.
 
14706
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14707
    # Also, AIX nm treats weak defined symbols like other global defined
 
14708
    # symbols, whereas GNU nm marks them as "W".
 
14709
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14710
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14711
    else
 
14712
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14713
    fi
 
14714
    ;;
 
14715
  pw32*)
 
14716
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14717
    ;;
 
14718
  cygwin* | mingw* | cegcc*)
 
14719
    case $cc_basename in
 
14720
    cl*) ;;
 
14721
    *)
 
14722
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14723
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14724
      ;;
 
14725
    esac
 
14726
    ;;
 
14727
  linux* | k*bsd*-gnu | gnu*)
 
14728
    link_all_deplibs_CXX=no
 
14729
    ;;
 
14730
  *)
 
14731
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14732
    ;;
 
14733
  esac
 
14734
 
 
14735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14736
$as_echo "$ld_shlibs_CXX" >&6; }
 
14737
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14738
 
 
14739
with_gnu_ld_CXX=$with_gnu_ld
 
14740
 
 
14741
 
 
14742
 
 
14743
 
 
14744
 
 
14745
 
 
14746
#
 
14747
# Do we need to explicitly link libc?
 
14748
#
 
14749
case "x$archive_cmds_need_lc_CXX" in
 
14750
x|xyes)
 
14751
  # Assume -lc should be added
 
14752
  archive_cmds_need_lc_CXX=yes
 
14753
 
 
14754
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14755
    case $archive_cmds_CXX in
 
14756
    *'~'*)
 
14757
      # FIXME: we may have to deal with multi-command sequences.
 
14758
      ;;
 
14759
    '$CC '*)
 
14760
      # Test whether the compiler implicitly links with -lc since on some
 
14761
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14762
      # to ld, don't add -lc before -lgcc.
 
14763
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14764
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14765
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14766
  $as_echo_n "(cached) " >&6
 
14767
else
 
14768
  $RM conftest*
 
14769
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14770
 
 
14771
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14772
  (eval $ac_compile) 2>&5
 
14773
  ac_status=$?
 
14774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14775
  test $ac_status = 0; } 2>conftest.err; then
 
14776
          soname=conftest
 
14777
          lib=conftest
 
14778
          libobjs=conftest.$ac_objext
 
14779
          deplibs=
 
14780
          wl=$lt_prog_compiler_wl_CXX
 
14781
          pic_flag=$lt_prog_compiler_pic_CXX
 
14782
          compiler_flags=-v
 
14783
          linker_flags=-v
 
14784
          verstring=
 
14785
          output_objdir=.
 
14786
          libname=conftest
 
14787
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14788
          allow_undefined_flag_CXX=
 
14789
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14790
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14791
  ac_status=$?
 
14792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14793
  test $ac_status = 0; }
 
14794
          then
 
14795
            lt_cv_archive_cmds_need_lc_CXX=no
 
14796
          else
 
14797
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14798
          fi
 
14799
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14800
        else
 
14801
          cat conftest.err 1>&5
 
14802
        fi
 
14803
        $RM conftest*
 
14804
 
 
14805
fi
 
14806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14807
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14808
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14809
      ;;
 
14810
    esac
 
14811
  fi
 
14812
  ;;
 
14813
esac
 
14814
 
 
14815
 
 
14816
 
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
 
14846
 
 
14847
 
 
14848
 
 
14849
 
 
14850
 
 
14851
 
 
14852
 
 
14853
 
 
14854
 
 
14855
 
 
14856
 
 
14857
 
 
14858
 
 
14859
 
 
14860
 
 
14861
 
 
14862
 
 
14863
 
 
14864
 
 
14865
 
 
14866
 
 
14867
 
 
14868
 
 
14869
 
 
14870
 
 
14871
 
 
14872
 
 
14873
 
 
14874
 
 
14875
 
 
14876
 
 
14877
 
 
14878
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14879
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14880
 
 
14881
library_names_spec=
 
14882
libname_spec='lib$name'
 
14883
soname_spec=
 
14884
shrext_cmds=".so"
 
14885
postinstall_cmds=
 
14886
postuninstall_cmds=
 
14887
finish_cmds=
 
14888
finish_eval=
 
14889
shlibpath_var=
 
14890
shlibpath_overrides_runpath=unknown
 
14891
version_type=none
 
14892
dynamic_linker="$host_os ld.so"
 
14893
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14894
need_lib_prefix=unknown
 
14895
hardcode_into_libs=no
 
14896
 
 
14897
# when you set need_version to no, make sure it does not cause -set_version
 
14898
# flags to be left without arguments
 
14899
need_version=unknown
 
14900
 
 
14901
case $host_os in
 
14902
aix3*)
 
14903
  version_type=linux
 
14904
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14905
  shlibpath_var=LIBPATH
 
14906
 
 
14907
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14908
  soname_spec='${libname}${release}${shared_ext}$major'
 
14909
  ;;
 
14910
 
 
14911
aix[4-9]*)
 
14912
  version_type=linux
 
14913
  need_lib_prefix=no
 
14914
  need_version=no
 
14915
  hardcode_into_libs=yes
 
14916
  if test "$host_cpu" = ia64; then
 
14917
    # AIX 5 supports IA64
 
14918
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14919
    shlibpath_var=LD_LIBRARY_PATH
 
14920
  else
 
14921
    # With GCC up to 2.95.x, collect2 would create an import file
 
14922
    # for dependence libraries.  The import file would start with
 
14923
    # the line `#! .'.  This would cause the generated library to
 
14924
    # depend on `.', always an invalid library.  This was fixed in
 
14925
    # development snapshots of GCC prior to 3.0.
 
14926
    case $host_os in
 
14927
      aix4 | aix4.[01] | aix4.[01].*)
 
14928
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14929
           echo ' yes '
 
14930
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14931
        :
 
14932
      else
 
14933
        can_build_shared=no
 
14934
      fi
 
14935
      ;;
 
14936
    esac
 
14937
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14938
    # soname into executable. Probably we can add versioning support to
 
14939
    # collect2, so additional links can be useful in future.
 
14940
    if test "$aix_use_runtimelinking" = yes; then
 
14941
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14942
      # instead of lib<name>.a to let people know that these are not
 
14943
      # typical AIX shared libraries.
 
14944
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14945
    else
 
14946
      # We preserve .a as extension for shared libraries through AIX4.2
 
14947
      # and later when we are not doing run time linking.
 
14948
      library_names_spec='${libname}${release}.a $libname.a'
 
14949
      soname_spec='${libname}${release}${shared_ext}$major'
 
14950
    fi
 
14951
    shlibpath_var=LIBPATH
 
14952
  fi
 
14953
  ;;
 
14954
 
 
14955
amigaos*)
 
14956
  case $host_cpu in
 
14957
  powerpc)
 
14958
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14959
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14960
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14961
    ;;
 
14962
  m68k)
 
14963
    library_names_spec='$libname.ixlibrary $libname.a'
 
14964
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14965
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14966
    ;;
 
14967
  esac
 
14968
  ;;
 
14969
 
 
14970
beos*)
 
14971
  library_names_spec='${libname}${shared_ext}'
 
14972
  dynamic_linker="$host_os ld.so"
 
14973
  shlibpath_var=LIBRARY_PATH
 
14974
  ;;
 
14975
 
 
14976
bsdi[45]*)
 
14977
  version_type=linux
 
14978
  need_version=no
 
14979
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14980
  soname_spec='${libname}${release}${shared_ext}$major'
 
14981
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14982
  shlibpath_var=LD_LIBRARY_PATH
 
14983
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14984
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14985
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14986
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14987
  # libtool to hard-code these into programs
 
14988
  ;;
 
14989
 
 
14990
cygwin* | mingw* | pw32* | cegcc*)
 
14991
  version_type=windows
 
14992
  shrext_cmds=".dll"
 
14993
  need_version=no
 
14994
  need_lib_prefix=no
 
14995
 
 
14996
  case $GCC,$cc_basename in
 
14997
  yes,*)
 
14998
    # gcc
 
14999
    library_names_spec='$libname.dll.a'
 
15000
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15001
    postinstall_cmds='base_file=`basename \${file}`~
 
15002
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15003
      dldir=$destdir/`dirname \$dlpath`~
 
15004
      test -d \$dldir || mkdir -p \$dldir~
 
15005
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15006
      chmod a+x \$dldir/$dlname~
 
15007
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15008
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15009
      fi'
 
15010
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15011
      dlpath=$dir/\$dldll~
 
15012
       $RM \$dlpath'
 
15013
    shlibpath_overrides_runpath=yes
 
15014
 
 
15015
    case $host_os in
 
15016
    cygwin*)
 
15017
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15018
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15019
 
 
15020
      ;;
 
15021
    mingw* | cegcc*)
 
15022
      # MinGW DLLs use traditional 'lib' prefix
 
15023
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15024
      ;;
 
15025
    pw32*)
 
15026
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15027
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15028
      ;;
 
15029
    esac
 
15030
    dynamic_linker='Win32 ld.exe'
 
15031
    ;;
 
15032
 
 
15033
  *,cl*)
 
15034
    # Native MSVC
 
15035
    libname_spec='$name'
 
15036
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15037
    library_names_spec='${libname}.dll.lib'
 
15038
 
 
15039
    case $build_os in
 
15040
    mingw*)
 
15041
      sys_lib_search_path_spec=
 
15042
      lt_save_ifs=$IFS
 
15043
      IFS=';'
 
15044
      for lt_path in $LIB
 
15045
      do
 
15046
        IFS=$lt_save_ifs
 
15047
        # Let DOS variable expansion print the short 8.3 style file name.
 
15048
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
15049
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
15050
      done
 
15051
      IFS=$lt_save_ifs
 
15052
      # Convert to MSYS style.
 
15053
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
15054
      ;;
 
15055
    cygwin*)
 
15056
      # Convert to unix form, then to dos form, then back to unix form
 
15057
      # but this time dos style (no spaces!) so that the unix form looks
 
15058
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
15059
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
15060
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
15061
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15062
      ;;
 
15063
    *)
 
15064
      sys_lib_search_path_spec="$LIB"
 
15065
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15066
        # It is most probably a Windows format PATH.
 
15067
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15068
      else
 
15069
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15070
      fi
 
15071
      # FIXME: find the short name or the path components, as spaces are
 
15072
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
15073
      ;;
 
15074
    esac
 
15075
 
 
15076
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15077
    postinstall_cmds='base_file=`basename \${file}`~
 
15078
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15079
      dldir=$destdir/`dirname \$dlpath`~
 
15080
      test -d \$dldir || mkdir -p \$dldir~
 
15081
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15082
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15083
      dlpath=$dir/\$dldll~
 
15084
       $RM \$dlpath'
 
15085
    shlibpath_overrides_runpath=yes
 
15086
    dynamic_linker='Win32 link.exe'
 
15087
    ;;
 
15088
 
 
15089
  *)
 
15090
    # Assume MSVC wrapper
 
15091
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15092
    dynamic_linker='Win32 ld.exe'
 
15093
    ;;
 
15094
  esac
 
15095
  # FIXME: first we should search . and the directory the executable is in
 
15096
  shlibpath_var=PATH
 
15097
  ;;
 
15098
 
 
15099
darwin* | rhapsody*)
 
15100
  dynamic_linker="$host_os dyld"
 
15101
  version_type=darwin
 
15102
  need_lib_prefix=no
 
15103
  need_version=no
 
15104
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15105
  soname_spec='${libname}${release}${major}$shared_ext'
 
15106
  shlibpath_overrides_runpath=yes
 
15107
  shlibpath_var=DYLD_LIBRARY_PATH
 
15108
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15109
 
 
15110
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15111
  ;;
 
15112
 
 
15113
dgux*)
 
15114
  version_type=linux
 
15115
  need_lib_prefix=no
 
15116
  need_version=no
 
15117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15118
  soname_spec='${libname}${release}${shared_ext}$major'
 
15119
  shlibpath_var=LD_LIBRARY_PATH
 
15120
  ;;
 
15121
 
 
15122
freebsd1*)
 
15123
  dynamic_linker=no
 
15124
  ;;
 
15125
 
 
15126
freebsd* | dragonfly*)
 
15127
  # DragonFly does not have aout.  When/if they implement a new
 
15128
  # versioning mechanism, adjust this.
 
15129
  if test -x /usr/bin/objformat; then
 
15130
    objformat=`/usr/bin/objformat`
 
15131
  else
 
15132
    case $host_os in
 
15133
    freebsd[123]*) objformat=aout ;;
 
15134
    *) objformat=elf ;;
 
15135
    esac
 
15136
  fi
 
15137
  version_type=freebsd-$objformat
 
15138
  case $version_type in
 
15139
    freebsd-elf*)
 
15140
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15141
      need_version=no
 
15142
      need_lib_prefix=no
 
15143
      ;;
 
15144
    freebsd-*)
 
15145
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15146
      need_version=yes
 
15147
      ;;
 
15148
  esac
 
15149
  shlibpath_var=LD_LIBRARY_PATH
 
15150
  case $host_os in
 
15151
  freebsd2*)
 
15152
    shlibpath_overrides_runpath=yes
 
15153
    ;;
 
15154
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15155
    shlibpath_overrides_runpath=yes
 
15156
    hardcode_into_libs=yes
 
15157
    ;;
 
15158
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15159
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15160
    shlibpath_overrides_runpath=no
 
15161
    hardcode_into_libs=yes
 
15162
    ;;
 
15163
  *) # from 4.6 on, and DragonFly
 
15164
    shlibpath_overrides_runpath=yes
 
15165
    hardcode_into_libs=yes
 
15166
    ;;
 
15167
  esac
 
15168
  ;;
 
15169
 
 
15170
gnu*)
 
15171
  version_type=linux
 
15172
  need_lib_prefix=no
 
15173
  need_version=no
 
15174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15175
  soname_spec='${libname}${release}${shared_ext}$major'
 
15176
  shlibpath_var=LD_LIBRARY_PATH
 
15177
  shlibpath_overrides_runpath=no
 
15178
  hardcode_into_libs=yes
 
15179
  ;;
 
15180
 
 
15181
haiku*)
 
15182
  version_type=linux
 
15183
  need_lib_prefix=no
 
15184
  need_version=no
 
15185
  dynamic_linker="$host_os runtime_loader"
 
15186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15187
  soname_spec='${libname}${release}${shared_ext}$major'
 
15188
  shlibpath_var=LIBRARY_PATH
 
15189
  shlibpath_overrides_runpath=yes
 
15190
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
15191
  hardcode_into_libs=yes
 
15192
  ;;
 
15193
 
 
15194
hpux9* | hpux10* | hpux11*)
 
15195
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15196
  # link against other versions.
 
15197
  version_type=sunos
 
15198
  need_lib_prefix=no
 
15199
  need_version=no
 
15200
  case $host_cpu in
 
15201
  ia64*)
 
15202
    shrext_cmds='.so'
 
15203
    hardcode_into_libs=yes
 
15204
    dynamic_linker="$host_os dld.so"
 
15205
    shlibpath_var=LD_LIBRARY_PATH
 
15206
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15207
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15208
    soname_spec='${libname}${release}${shared_ext}$major'
 
15209
    if test "X$HPUX_IA64_MODE" = X32; then
 
15210
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15211
    else
 
15212
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15213
    fi
 
15214
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15215
    ;;
 
15216
  hppa*64*)
 
15217
    shrext_cmds='.sl'
 
15218
    hardcode_into_libs=yes
 
15219
    dynamic_linker="$host_os dld.sl"
 
15220
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15221
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15223
    soname_spec='${libname}${release}${shared_ext}$major'
 
15224
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15225
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15226
    ;;
 
15227
  *)
 
15228
    shrext_cmds='.sl'
 
15229
    dynamic_linker="$host_os dld.sl"
 
15230
    shlibpath_var=SHLIB_PATH
 
15231
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15232
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15233
    soname_spec='${libname}${release}${shared_ext}$major'
 
15234
    ;;
 
15235
  esac
 
15236
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
15237
  postinstall_cmds='chmod 555 $lib'
 
15238
  # or fails outright, so override atomically:
 
15239
  install_override_mode=555
 
15240
  ;;
 
15241
 
 
15242
interix[3-9]*)
 
15243
  version_type=linux
 
15244
  need_lib_prefix=no
 
15245
  need_version=no
 
15246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15247
  soname_spec='${libname}${release}${shared_ext}$major'
 
15248
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15249
  shlibpath_var=LD_LIBRARY_PATH
 
15250
  shlibpath_overrides_runpath=no
 
15251
  hardcode_into_libs=yes
 
15252
  ;;
 
15253
 
 
15254
irix5* | irix6* | nonstopux*)
 
15255
  case $host_os in
 
15256
    nonstopux*) version_type=nonstopux ;;
 
15257
    *)
 
15258
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15259
                version_type=linux
 
15260
        else
 
15261
                version_type=irix
 
15262
        fi ;;
 
15263
  esac
 
15264
  need_lib_prefix=no
 
15265
  need_version=no
 
15266
  soname_spec='${libname}${release}${shared_ext}$major'
 
15267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15268
  case $host_os in
 
15269
  irix5* | nonstopux*)
 
15270
    libsuff= shlibsuff=
 
15271
    ;;
 
15272
  *)
 
15273
    case $LD in # libtool.m4 will add one of these switches to LD
 
15274
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15275
      libsuff= shlibsuff= libmagic=32-bit;;
 
15276
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15277
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15278
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15279
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15280
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15281
    esac
 
15282
    ;;
 
15283
  esac
 
15284
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15285
  shlibpath_overrides_runpath=no
 
15286
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15287
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15288
  hardcode_into_libs=yes
 
15289
  ;;
 
15290
 
 
15291
# No shared lib support for Linux oldld, aout, or coff.
 
15292
linux*oldld* | linux*aout* | linux*coff*)
 
15293
  dynamic_linker=no
 
15294
  ;;
 
15295
 
 
15296
# This must be Linux ELF.
 
15297
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
15298
  version_type=linux
 
15299
  need_lib_prefix=no
 
15300
  need_version=no
 
15301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15302
  soname_spec='${libname}${release}${shared_ext}$major'
 
15303
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15304
  shlibpath_var=LD_LIBRARY_PATH
 
15305
  shlibpath_overrides_runpath=no
 
15306
 
 
15307
  # Some binutils ld are patched to set DT_RUNPATH
 
15308
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15309
  $as_echo_n "(cached) " >&6
 
15310
else
 
15311
  lt_cv_shlibpath_overrides_runpath=no
 
15312
    save_LDFLAGS=$LDFLAGS
 
15313
    save_libdir=$libdir
 
15314
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15315
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15316
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15317
/* end confdefs.h.  */
 
15318
 
 
15319
int
 
15320
main ()
 
15321
{
 
15322
 
 
15323
  ;
 
15324
  return 0;
 
15325
}
 
15326
_ACEOF
 
15327
if ac_fn_cxx_try_link "$LINENO"; then :
 
15328
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
15329
  lt_cv_shlibpath_overrides_runpath=yes
 
15330
fi
 
15331
fi
 
15332
rm -f core conftest.err conftest.$ac_objext \
 
15333
    conftest$ac_exeext conftest.$ac_ext
 
15334
    LDFLAGS=$save_LDFLAGS
 
15335
    libdir=$save_libdir
 
15336
 
 
15337
fi
 
15338
 
 
15339
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
15340
 
 
15341
  # This implies no fast_install, which is unacceptable.
 
15342
  # Some rework will be needed to allow for fast_install
 
15343
  # before this can be enabled.
 
15344
  hardcode_into_libs=yes
 
15345
 
 
15346
  # Append ld.so.conf contents to the search path
 
15347
  if test -f /etc/ld.so.conf; then
 
15348
    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;s/"//g;/^$/d' | tr '\n' ' '`
 
15349
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15350
  fi
 
15351
 
 
15352
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15353
  # powerpc, because MkLinux only supported shared libraries with the
 
15354
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15355
  # most powerpc-linux boxes support dynamic linking these days and
 
15356
  # people can always --disable-shared, the test was removed, and we
 
15357
  # assume the GNU/Linux dynamic linker is in use.
 
15358
  dynamic_linker='GNU/Linux ld.so'
 
15359
  ;;
 
15360
 
 
15361
netbsdelf*-gnu)
 
15362
  version_type=linux
 
15363
  need_lib_prefix=no
 
15364
  need_version=no
 
15365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15366
  soname_spec='${libname}${release}${shared_ext}$major'
 
15367
  shlibpath_var=LD_LIBRARY_PATH
 
15368
  shlibpath_overrides_runpath=no
 
15369
  hardcode_into_libs=yes
 
15370
  dynamic_linker='NetBSD ld.elf_so'
 
15371
  ;;
 
15372
 
 
15373
netbsd*)
 
15374
  version_type=sunos
 
15375
  need_lib_prefix=no
 
15376
  need_version=no
 
15377
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15378
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15379
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15380
    dynamic_linker='NetBSD (a.out) ld.so'
 
15381
  else
 
15382
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15383
    soname_spec='${libname}${release}${shared_ext}$major'
 
15384
    dynamic_linker='NetBSD ld.elf_so'
 
15385
  fi
 
15386
  shlibpath_var=LD_LIBRARY_PATH
 
15387
  shlibpath_overrides_runpath=yes
 
15388
  hardcode_into_libs=yes
 
15389
  ;;
 
15390
 
 
15391
newsos6)
 
15392
  version_type=linux
 
15393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15394
  shlibpath_var=LD_LIBRARY_PATH
 
15395
  shlibpath_overrides_runpath=yes
 
15396
  ;;
 
15397
 
 
15398
*nto* | *qnx*)
 
15399
  version_type=qnx
 
15400
  need_lib_prefix=no
 
15401
  need_version=no
 
15402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15403
  soname_spec='${libname}${release}${shared_ext}$major'
 
15404
  shlibpath_var=LD_LIBRARY_PATH
 
15405
  shlibpath_overrides_runpath=no
 
15406
  hardcode_into_libs=yes
 
15407
  dynamic_linker='ldqnx.so'
 
15408
  ;;
 
15409
 
 
15410
openbsd*)
 
15411
  version_type=sunos
 
15412
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15413
  need_lib_prefix=no
 
15414
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15415
  case $host_os in
 
15416
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15417
    *)                          need_version=no  ;;
 
15418
  esac
 
15419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15420
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15421
  shlibpath_var=LD_LIBRARY_PATH
 
15422
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15423
    case $host_os in
 
15424
      openbsd2.[89] | openbsd2.[89].*)
 
15425
        shlibpath_overrides_runpath=no
 
15426
        ;;
 
15427
      *)
 
15428
        shlibpath_overrides_runpath=yes
 
15429
        ;;
 
15430
      esac
 
15431
  else
 
15432
    shlibpath_overrides_runpath=yes
 
15433
  fi
 
15434
  ;;
 
15435
 
 
15436
os2*)
 
15437
  libname_spec='$name'
 
15438
  shrext_cmds=".dll"
 
15439
  need_lib_prefix=no
 
15440
  library_names_spec='$libname${shared_ext} $libname.a'
 
15441
  dynamic_linker='OS/2 ld.exe'
 
15442
  shlibpath_var=LIBPATH
 
15443
  ;;
 
15444
 
 
15445
osf3* | osf4* | osf5*)
 
15446
  version_type=osf
 
15447
  need_lib_prefix=no
 
15448
  need_version=no
 
15449
  soname_spec='${libname}${release}${shared_ext}$major'
 
15450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15451
  shlibpath_var=LD_LIBRARY_PATH
 
15452
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15453
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15454
  ;;
 
15455
 
 
15456
rdos*)
 
15457
  dynamic_linker=no
 
15458
  ;;
 
15459
 
 
15460
solaris*)
 
15461
  version_type=linux
 
15462
  need_lib_prefix=no
 
15463
  need_version=no
 
15464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15465
  soname_spec='${libname}${release}${shared_ext}$major'
 
15466
  shlibpath_var=LD_LIBRARY_PATH
 
15467
  shlibpath_overrides_runpath=yes
 
15468
  hardcode_into_libs=yes
 
15469
  # ldd complains unless libraries are executable
 
15470
  postinstall_cmds='chmod +x $lib'
 
15471
  ;;
 
15472
 
 
15473
sunos4*)
 
15474
  version_type=sunos
 
15475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15476
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15477
  shlibpath_var=LD_LIBRARY_PATH
 
15478
  shlibpath_overrides_runpath=yes
 
15479
  if test "$with_gnu_ld" = yes; then
 
15480
    need_lib_prefix=no
 
15481
  fi
 
15482
  need_version=yes
 
15483
  ;;
 
15484
 
 
15485
sysv4 | sysv4.3*)
 
15486
  version_type=linux
 
15487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15488
  soname_spec='${libname}${release}${shared_ext}$major'
 
15489
  shlibpath_var=LD_LIBRARY_PATH
 
15490
  case $host_vendor in
 
15491
    sni)
 
15492
      shlibpath_overrides_runpath=no
 
15493
      need_lib_prefix=no
 
15494
      runpath_var=LD_RUN_PATH
 
15495
      ;;
 
15496
    siemens)
 
15497
      need_lib_prefix=no
 
15498
      ;;
 
15499
    motorola)
 
15500
      need_lib_prefix=no
 
15501
      need_version=no
 
15502
      shlibpath_overrides_runpath=no
 
15503
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15504
      ;;
 
15505
  esac
 
15506
  ;;
 
15507
 
 
15508
sysv4*MP*)
 
15509
  if test -d /usr/nec ;then
 
15510
    version_type=linux
 
15511
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15512
    soname_spec='$libname${shared_ext}.$major'
 
15513
    shlibpath_var=LD_LIBRARY_PATH
 
15514
  fi
 
15515
  ;;
 
15516
 
 
15517
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15518
  version_type=freebsd-elf
 
15519
  need_lib_prefix=no
 
15520
  need_version=no
 
15521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15522
  soname_spec='${libname}${release}${shared_ext}$major'
 
15523
  shlibpath_var=LD_LIBRARY_PATH
 
15524
  shlibpath_overrides_runpath=yes
 
15525
  hardcode_into_libs=yes
 
15526
  if test "$with_gnu_ld" = yes; then
 
15527
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15528
  else
 
15529
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15530
    case $host_os in
 
15531
      sco3.2v5*)
 
15532
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15533
        ;;
 
15534
    esac
 
15535
  fi
 
15536
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15537
  ;;
 
15538
 
 
15539
tpf*)
 
15540
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15541
  version_type=linux
 
15542
  need_lib_prefix=no
 
15543
  need_version=no
 
15544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15545
  shlibpath_var=LD_LIBRARY_PATH
 
15546
  shlibpath_overrides_runpath=no
 
15547
  hardcode_into_libs=yes
 
15548
  ;;
 
15549
 
 
15550
uts4*)
 
15551
  version_type=linux
 
15552
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15553
  soname_spec='${libname}${release}${shared_ext}$major'
 
15554
  shlibpath_var=LD_LIBRARY_PATH
 
15555
  ;;
 
15556
 
 
15557
*)
 
15558
  dynamic_linker=no
 
15559
  ;;
 
15560
esac
 
15561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15562
$as_echo "$dynamic_linker" >&6; }
 
15563
test "$dynamic_linker" = no && can_build_shared=no
 
15564
 
 
15565
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15566
if test "$GCC" = yes; then
 
15567
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15568
fi
 
15569
 
 
15570
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15571
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15572
fi
 
15573
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15574
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15575
fi
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
 
 
15584
 
 
15585
 
 
15586
 
 
15587
 
 
15588
 
 
15589
 
 
15590
 
 
15591
 
 
15592
 
 
15593
 
 
15594
 
 
15595
 
 
15596
 
 
15597
 
 
15598
 
 
15599
 
 
15600
 
 
15601
 
 
15602
 
 
15603
 
 
15604
 
 
15605
 
 
15606
 
 
15607
 
 
15608
 
 
15609
 
 
15610
 
 
15611
 
 
15612
 
 
15613
 
 
15614
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15615
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15616
hardcode_action_CXX=
 
15617
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15618
   test -n "$runpath_var_CXX" ||
 
15619
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15620
 
 
15621
  # We can hardcode non-existent directories.
 
15622
  if test "$hardcode_direct_CXX" != no &&
 
15623
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15624
     # have to relink, otherwise we might link with an installed library
 
15625
     # when we should be linking with a yet-to-be-installed one
 
15626
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15627
     test "$hardcode_minus_L_CXX" != no; then
 
15628
    # Linking always hardcodes the temporary library directory.
 
15629
    hardcode_action_CXX=relink
 
15630
  else
 
15631
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15632
    hardcode_action_CXX=immediate
 
15633
  fi
 
15634
else
 
15635
  # We cannot hardcode anything, or else we can only hardcode existing
 
15636
  # directories.
 
15637
  hardcode_action_CXX=unsupported
 
15638
fi
 
15639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15640
$as_echo "$hardcode_action_CXX" >&6; }
 
15641
 
 
15642
if test "$hardcode_action_CXX" = relink ||
 
15643
   test "$inherit_rpath_CXX" = yes; then
 
15644
  # Fast installation is not supported
 
15645
  enable_fast_install=no
 
15646
elif test "$shlibpath_overrides_runpath" = yes ||
 
15647
     test "$enable_shared" = no; then
 
15648
  # Fast installation is not necessary
 
15649
  enable_fast_install=needless
 
15650
fi
 
15651
 
 
15652
 
 
15653
 
 
15654
 
 
15655
 
 
15656
 
 
15657
 
 
15658
  fi # test -n "$compiler"
 
15659
 
 
15660
  CC=$lt_save_CC
 
15661
  CFLAGS=$lt_save_CFLAGS
 
15662
  LDCXX=$LD
 
15663
  LD=$lt_save_LD
 
15664
  GCC=$lt_save_GCC
 
15665
  with_gnu_ld=$lt_save_with_gnu_ld
 
15666
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15667
  lt_cv_path_LD=$lt_save_path_LD
 
15668
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15669
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15670
fi # test "$_lt_caught_CXX_error" != yes
 
15671
 
 
15672
ac_ext=c
 
15673
ac_cpp='$CPP $CPPFLAGS'
 
15674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15677
 
 
15678
 
11875
15679
 
11876
15680
 
11877
15681
 
12366
16170
$as_echo "$as_me: WARNING: asciidoc not installed, man pages will not be created" >&2;}
12367
16171
fi
12368
16172
 
12369
 
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile tools/Makefile utouch-frame.pc"
 
16173
# Check for TDD tools
 
16174
 
 
16175
 
 
16176
# Check whether --with-gtest-include-path was given.
 
16177
if test "${with_gtest_include_path+set}" = set; then :
 
16178
  withval=$with_gtest_include_path; GTEST_CXXFLAGS="-I$withval"
 
16179
else
 
16180
  GTEST_CXXFLAGS='-I/usr/include'
 
16181
fi
 
16182
 
 
16183
 
 
16184
 
 
16185
# Check whether --with-gtest-lib-path was given.
 
16186
if test "${with_gtest_lib_path+set}" = set; then :
 
16187
  withval=$with_gtest_lib_path; GTEST_LDFLAGS="-L$withval -lpthread"
 
16188
else
 
16189
  GTEST_LDFLAGS='-lgtest -lpthread'
 
16190
fi
 
16191
 
 
16192
 
 
16193
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
 
16194
$as_echo_n "checking for main in -lgtest... " >&6; }
 
16195
if ${ac_cv_lib_gtest_main+:} false; then :
 
16196
  $as_echo_n "(cached) " >&6
 
16197
else
 
16198
  ac_check_lib_save_LIBS=$LIBS
 
16199
LIBS="-lgtest  $LIBS"
 
16200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16201
/* end confdefs.h.  */
 
16202
 
 
16203
 
 
16204
int
 
16205
main ()
 
16206
{
 
16207
return main ();
 
16208
  ;
 
16209
  return 0;
 
16210
}
 
16211
_ACEOF
 
16212
if ac_fn_c_try_link "$LINENO"; then :
 
16213
  ac_cv_lib_gtest_main=yes
 
16214
else
 
16215
  ac_cv_lib_gtest_main=no
 
16216
fi
 
16217
rm -f core conftest.err conftest.$ac_objext \
 
16218
    conftest$ac_exeext conftest.$ac_ext
 
16219
LIBS=$ac_check_lib_save_LIBS
 
16220
fi
 
16221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
 
16222
$as_echo "$ac_cv_lib_gtest_main" >&6; }
 
16223
if test "x$ac_cv_lib_gtest_main" = xyes; then :
 
16224
  have_gtest=yes
 
16225
else
 
16226
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: package 'gtest' not found: tests disabled" >&5
 
16227
$as_echo "$as_me: WARNING: package 'gtest' not found: tests disabled" >&2;}
 
16228
fi
 
16229
ac_cv_lib_gtest=ac_cv_lib_gtest_main
 
16230
 
 
16231
 
 
16232
 
 
16233
 
 
16234
if test "x$have_gtest" = xyes; then :
 
16235
 
 
16236
pkg_failed=no
 
16237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_GTEST" >&5
 
16238
$as_echo_n "checking for XORG_GTEST... " >&6; }
 
16239
 
 
16240
if test -n "$XORG_GTEST_CFLAGS"; then
 
16241
    pkg_cv_XORG_GTEST_CFLAGS="$XORG_GTEST_CFLAGS"
 
16242
 elif test -n "$PKG_CONFIG"; then
 
16243
    if test -n "$PKG_CONFIG" && \
 
16244
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-gtest\""; } >&5
 
16245
  ($PKG_CONFIG --exists --print-errors "xorg-gtest") 2>&5
 
16246
  ac_status=$?
 
16247
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16248
  test $ac_status = 0; }; then
 
16249
  pkg_cv_XORG_GTEST_CFLAGS=`$PKG_CONFIG --cflags "xorg-gtest" 2>/dev/null`
 
16250
                      test "x$?" != "x0" && pkg_failed=yes
 
16251
else
 
16252
  pkg_failed=yes
 
16253
fi
 
16254
 else
 
16255
    pkg_failed=untried
 
16256
fi
 
16257
if test -n "$XORG_GTEST_LIBS"; then
 
16258
    pkg_cv_XORG_GTEST_LIBS="$XORG_GTEST_LIBS"
 
16259
 elif test -n "$PKG_CONFIG"; then
 
16260
    if test -n "$PKG_CONFIG" && \
 
16261
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-gtest\""; } >&5
 
16262
  ($PKG_CONFIG --exists --print-errors "xorg-gtest") 2>&5
 
16263
  ac_status=$?
 
16264
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16265
  test $ac_status = 0; }; then
 
16266
  pkg_cv_XORG_GTEST_LIBS=`$PKG_CONFIG --libs "xorg-gtest" 2>/dev/null`
 
16267
                      test "x$?" != "x0" && pkg_failed=yes
 
16268
else
 
16269
  pkg_failed=yes
 
16270
fi
 
16271
 else
 
16272
    pkg_failed=untried
 
16273
fi
 
16274
 
 
16275
 
 
16276
 
 
16277
if test $pkg_failed = yes; then
 
16278
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16279
$as_echo "no" >&6; }
 
16280
 
 
16281
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16282
        _pkg_short_errors_supported=yes
 
16283
else
 
16284
        _pkg_short_errors_supported=no
 
16285
fi
 
16286
        if test $_pkg_short_errors_supported = yes; then
 
16287
                XORG_GTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-gtest" 2>&1`
 
16288
        else
 
16289
                XORG_GTEST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-gtest" 2>&1`
 
16290
        fi
 
16291
        # Put the nasty error message in config.log where it belongs
 
16292
        echo "$XORG_GTEST_PKG_ERRORS" >&5
 
16293
 
 
16294
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xorg-gtest not installed, tests will not be built" >&5
 
16295
$as_echo "$as_me: WARNING: xorg-gtest not installed, tests will not be built" >&2;}
 
16296
elif test $pkg_failed = untried; then
 
16297
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16298
$as_echo "no" >&6; }
 
16299
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xorg-gtest not installed, tests will not be built" >&5
 
16300
$as_echo "$as_me: WARNING: xorg-gtest not installed, tests will not be built" >&2;}
 
16301
else
 
16302
        XORG_GTEST_CFLAGS=$pkg_cv_XORG_GTEST_CFLAGS
 
16303
        XORG_GTEST_LIBS=$pkg_cv_XORG_GTEST_LIBS
 
16304
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16305
$as_echo "yes" >&6; }
 
16306
        have_xorg_gtest="yes"
 
16307
fi
 
16308
else
 
16309
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gtest not installed, tests will not be build" >&5
 
16310
$as_echo "$as_me: WARNING: gtest not installed, tests will not be build" >&2;}
 
16311
 
 
16312
fi
 
16313
 
 
16314
 if test "x$have_xorg_gtest" = xyes; then
 
16315
  HAVE_GTEST_TRUE=
 
16316
  HAVE_GTEST_FALSE='#'
 
16317
else
 
16318
  HAVE_GTEST_TRUE='#'
 
16319
  HAVE_GTEST_FALSE=
 
16320
fi
 
16321
 
 
16322
 
 
16323
 
 
16324
 
 
16325
 
 
16326
# Enable coverage reports using gcov
 
16327
 
 
16328
  # Check whether --enable-gcov was given.
 
16329
if test "${enable_gcov+set}" = set; then :
 
16330
  enableval=$enable_gcov; use_gcov=$enableval
 
16331
else
 
16332
  use_gcov=no
 
16333
fi
 
16334
 
 
16335
 
 
16336
  if test "x$use_gcov" = "xyes"; then
 
16337
  # we need gcc:
 
16338
  if test "$GCC" != "yes"; then
 
16339
    as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
 
16340
  fi
 
16341
 
 
16342
  # Check if ccache is being used
 
16343
  # Extract the first word of "shtool", so it can be a program name with args.
 
16344
set dummy shtool; ac_word=$2
 
16345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16346
$as_echo_n "checking for $ac_word... " >&6; }
 
16347
if ${ac_cv_prog_SHTOOL+:} false; then :
 
16348
  $as_echo_n "(cached) " >&6
 
16349
else
 
16350
  if test -n "$SHTOOL"; then
 
16351
  ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
 
16352
else
 
16353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16354
for as_dir in $PATH
 
16355
do
 
16356
  IFS=$as_save_IFS
 
16357
  test -z "$as_dir" && as_dir=.
 
16358
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16360
    ac_cv_prog_SHTOOL="shtool"
 
16361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16362
    break 2
 
16363
  fi
 
16364
done
 
16365
  done
 
16366
IFS=$as_save_IFS
 
16367
 
 
16368
fi
 
16369
fi
 
16370
SHTOOL=$ac_cv_prog_SHTOOL
 
16371
if test -n "$SHTOOL"; then
 
16372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
 
16373
$as_echo "$SHTOOL" >&6; }
 
16374
else
 
16375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16376
$as_echo "no" >&6; }
 
16377
fi
 
16378
 
 
16379
 
 
16380
  case `$SHTOOL path $CC` in
 
16381
    *ccache*) gcc_ccache=yes;;
 
16382
    *) gcc_ccache=no;;
 
16383
  esac
 
16384
 
 
16385
  if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
 
16386
    as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
 
16387
  fi
 
16388
 
 
16389
  lcov_version_list="1.6 1.7 1.8 1.9"
 
16390
  # Extract the first word of "lcov", so it can be a program name with args.
 
16391
set dummy lcov; ac_word=$2
 
16392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16393
$as_echo_n "checking for $ac_word... " >&6; }
 
16394
if ${ac_cv_prog_LCOV+:} false; then :
 
16395
  $as_echo_n "(cached) " >&6
 
16396
else
 
16397
  if test -n "$LCOV"; then
 
16398
  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
 
16399
else
 
16400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16401
for as_dir in $PATH
 
16402
do
 
16403
  IFS=$as_save_IFS
 
16404
  test -z "$as_dir" && as_dir=.
 
16405
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16407
    ac_cv_prog_LCOV="lcov"
 
16408
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16409
    break 2
 
16410
  fi
 
16411
done
 
16412
  done
 
16413
IFS=$as_save_IFS
 
16414
 
 
16415
fi
 
16416
fi
 
16417
LCOV=$ac_cv_prog_LCOV
 
16418
if test -n "$LCOV"; then
 
16419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
 
16420
$as_echo "$LCOV" >&6; }
 
16421
else
 
16422
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16423
$as_echo "no" >&6; }
 
16424
fi
 
16425
 
 
16426
 
 
16427
  # Extract the first word of "genhtml", so it can be a program name with args.
 
16428
set dummy genhtml; ac_word=$2
 
16429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16430
$as_echo_n "checking for $ac_word... " >&6; }
 
16431
if ${ac_cv_prog_GENHTML+:} false; then :
 
16432
  $as_echo_n "(cached) " >&6
 
16433
else
 
16434
  if test -n "$GENHTML"; then
 
16435
  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
 
16436
else
 
16437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16438
for as_dir in $PATH
 
16439
do
 
16440
  IFS=$as_save_IFS
 
16441
  test -z "$as_dir" && as_dir=.
 
16442
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16443
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16444
    ac_cv_prog_GENHTML="genhtml"
 
16445
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16446
    break 2
 
16447
  fi
 
16448
done
 
16449
  done
 
16450
IFS=$as_save_IFS
 
16451
 
 
16452
fi
 
16453
fi
 
16454
GENHTML=$ac_cv_prog_GENHTML
 
16455
if test -n "$GENHTML"; then
 
16456
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
 
16457
$as_echo "$GENHTML" >&6; }
 
16458
else
 
16459
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16460
$as_echo "no" >&6; }
 
16461
fi
 
16462
 
 
16463
 
 
16464
  # Extract the first word of "gcovr", so it can be a program name with args.
 
16465
set dummy gcovr; ac_word=$2
 
16466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16467
$as_echo_n "checking for $ac_word... " >&6; }
 
16468
if ${ac_cv_prog_GCOVR+:} false; then :
 
16469
  $as_echo_n "(cached) " >&6
 
16470
else
 
16471
  if test -n "$GCOVR"; then
 
16472
  ac_cv_prog_GCOVR="$GCOVR" # Let the user override the test.
 
16473
else
 
16474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16475
for as_dir in $PATH
 
16476
do
 
16477
  IFS=$as_save_IFS
 
16478
  test -z "$as_dir" && as_dir=.
 
16479
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16480
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16481
    ac_cv_prog_GCOVR="gcovr"
 
16482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16483
    break 2
 
16484
  fi
 
16485
done
 
16486
  done
 
16487
IFS=$as_save_IFS
 
16488
 
 
16489
fi
 
16490
fi
 
16491
GCOVR=$ac_cv_prog_GCOVR
 
16492
if test -n "$GCOVR"; then
 
16493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOVR" >&5
 
16494
$as_echo "$GCOVR" >&6; }
 
16495
else
 
16496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16497
$as_echo "no" >&6; }
 
16498
fi
 
16499
 
 
16500
 
 
16501
 
 
16502
  if test "$LCOV"; then
 
16503
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
 
16504
$as_echo_n "checking for lcov version... " >&6; }
 
16505
if ${glib_cv_lcov_version+:} false; then :
 
16506
  $as_echo_n "(cached) " >&6
 
16507
else
 
16508
 
 
16509
      glib_cv_lcov_version=invalid
 
16510
      lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
 
16511
      for lcov_check_version in $lcov_version_list; do
 
16512
        if test "$lcov_version" = "$lcov_check_version"; then
 
16513
          glib_cv_lcov_version="$lcov_check_version (ok)"
 
16514
        fi
 
16515
      done
 
16516
 
 
16517
fi
 
16518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
 
16519
$as_echo "$glib_cv_lcov_version" >&6; }
 
16520
  else
 
16521
    lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
 
16522
    as_fn_error $? "$lcov_msg" "$LINENO" 5
 
16523
  fi
 
16524
 
 
16525
  case $glib_cv_lcov_version in
 
16526
    ""|invalid)
 
16527
      lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
 
16528
      as_fn_error $? "$lcov_msg" "$LINENO" 5
 
16529
      LCOV="exit 0;"
 
16530
      ;;
 
16531
  esac
 
16532
 
 
16533
  if test -z "$GENHTML"; then
 
16534
    as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
 
16535
  fi
 
16536
 
 
16537
  if test -z "$GCOVR"; then
 
16538
    as_fn_error $? "Could not find gcovr; easy_install (or pip) gcovr" "$LINENO" 5
 
16539
  fi
 
16540
 
 
16541
  ac_cv_check_gcov=yes
 
16542
 
 
16543
  # Remove all optimization flags from CFLAGS
 
16544
 
 
16545
  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
 
16546
  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
 
16547
 
 
16548
 
 
16549
  # Add the special gcc flags
 
16550
  COVERAGE_CFLAGS="-O0 -fprofile-arcs -ftest-coverage"
 
16551
  COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"
 
16552
  COVERAGE_LDFLAGS="-lgcov"
 
16553
 
 
16554
  # Define verbose versions of the tools
 
16555
  LCOV_verbose='$(LCOV_verbose_$(V))'
 
16556
 
 
16557
  LCOV_verbose_='$(LCOV_verbose_$(AM_DEFAULT_VERBOSITY))'
 
16558
 
 
16559
  LCOV_verbose_0='@$(LCOV) --quiet'
 
16560
 
 
16561
  LCOV_verbose_1='$(LCOV)'
 
16562
 
 
16563
 
 
16564
  GENHTML_verbose='$(GENHTML_verbose_$(V))'
 
16565
 
 
16566
  GENHTML_verbose_='$(GENHTML_verbose_$(AM_DEFAULT_VERBOSITY))'
 
16567
 
 
16568
  GENHTML_verbose_0='@LANG=C $(GENHTML) --quiet'
 
16569
 
 
16570
  GENHTML_verbose_1='LANG=C $(GENHTML)'
 
16571
 
 
16572
 
 
16573
  GCOVR_verbose='$(GCOVR_verbose_$())'
 
16574
 
 
16575
  GCOVR_verbose_='$(GCOVR_verbose_$(AM_DEFAULT_VERBOSITY))'
 
16576
 
 
16577
  GCOVR_verbose_0='@$(GCOVR)'
 
16578
 
 
16579
  GCOVR_verbose_1='$(GCOVR) -v'
 
16580
 
 
16581
 
 
16582
fi
 
16583
 
 
16584
 
 
16585
 if test "x$ac_cv_check_gcov" = xyes; then
 
16586
  HAVE_GCOV_TRUE=
 
16587
  HAVE_GCOV_FALSE='#'
 
16588
else
 
16589
  HAVE_GCOV_TRUE='#'
 
16590
  HAVE_GCOV_FALSE=
 
16591
fi
 
16592
 
 
16593
if test "x$ac_cv_check_gcov" = xyes; then :
 
16594
  # Extract the first word of "sudo", so it can be a program name with args.
 
16595
set dummy sudo; ac_word=$2
 
16596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16597
$as_echo_n "checking for $ac_word... " >&6; }
 
16598
if ${ac_cv_prog_SUDO+:} false; then :
 
16599
  $as_echo_n "(cached) " >&6
 
16600
else
 
16601
  if test -n "$SUDO"; then
 
16602
  ac_cv_prog_SUDO="$SUDO" # Let the user override the test.
 
16603
else
 
16604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16605
for as_dir in $PATH
 
16606
do
 
16607
  IFS=$as_save_IFS
 
16608
  test -z "$as_dir" && as_dir=.
 
16609
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16611
    ac_cv_prog_SUDO="sudo"
 
16612
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16613
    break 2
 
16614
  fi
 
16615
done
 
16616
  done
 
16617
IFS=$as_save_IFS
 
16618
 
 
16619
fi
 
16620
fi
 
16621
SUDO=$ac_cv_prog_SUDO
 
16622
if test -n "$SUDO"; then
 
16623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUDO" >&5
 
16624
$as_echo "$SUDO" >&6; }
 
16625
else
 
16626
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16627
$as_echo "no" >&6; }
 
16628
fi
 
16629
 
 
16630
 
 
16631
       if test "x$ac_cv_prog_SUDO" = x; then :
 
16632
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sudo is not installed, coverage reports may fail" >&5
 
16633
$as_echo "$as_me: WARNING: sudo is not installed, coverage reports may fail" >&2;}
 
16634
fi
 
16635
fi
 
16636
 
 
16637
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile test/Makefile tools/Makefile utouch-frame.pc"
 
16638
 
 
16639
 
 
16640
AM_CPPFLAGS="-Wall -Werror"
 
16641
 
 
16642
AM_CFLAGS="$COVERAGE_CFLAGS"
 
16643
 
 
16644
AM_CXXFLAGS="-std=c++0x $COVERAGE_CXXFLAGS"
 
16645
 
 
16646
AM_LDFLAGS="$COVERAGE_LDFLAGS"
 
16647
 
12370
16648
 
12371
16649
cat >confcache <<\_ACEOF
12372
16650
# This file is a shell script that caches the results of configure
12501
16779
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12502
16780
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503
16781
fi
 
16782
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16783
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
16784
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16785
fi
12504
16786
if test -z "${HAVE_XI_TRUE}" && test -z "${HAVE_XI_FALSE}"; then
12505
16787
  as_fn_error $? "conditional \"HAVE_XI\" was never defined.
12506
16788
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12509
16791
  as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
12510
16792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511
16793
fi
 
16794
if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
 
16795
  as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
 
16796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16797
fi
 
16798
if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
 
16799
  as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
 
16800
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16801
fi
12512
16802
 
12513
16803
: "${CONFIG_STATUS=./config.status}"
12514
16804
ac_write_fail=0
12918
17208
# report actual input values of CONFIG_FILES etc. instead of their
12919
17209
# values after options handling.
12920
17210
ac_log="
12921
 
This file was extended by Touch Frame Library $as_me 1.1.4, which was
 
17211
This file was extended by Touch Frame Library $as_me 2.0.0, which was
12922
17212
generated by GNU Autoconf 2.68.  Invocation command line was
12923
17213
 
12924
17214
  CONFIG_FILES    = $CONFIG_FILES
12984
17274
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12985
17275
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12986
17276
ac_cs_version="\\
12987
 
Touch Frame Library config.status 1.1.4
 
17277
Touch Frame Library config.status 2.0.0
12988
17278
configured by $0, generated by GNU Autoconf 2.68,
12989
17279
  with options \\"\$ac_cs_config\\"
12990
17280
 
13243
17533
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13244
17534
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13245
17535
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
17536
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
17537
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
17538
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
17539
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
17540
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
17541
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
17542
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
17543
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17544
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17545
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17546
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
17547
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
17548
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17549
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
17550
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
17551
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
17552
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
17553
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
17554
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
17555
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17556
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17557
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
17558
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17559
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17560
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17561
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17562
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17563
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17564
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
17565
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17566
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
17567
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17568
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
17569
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
17570
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
17571
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
17572
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
17573
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
17574
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
17575
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
17576
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
17577
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
17578
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17579
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17580
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
17581
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17582
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
17583
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
17584
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
17585
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
17586
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17587
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
17588
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17589
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
17590
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
13246
17591
 
13247
17592
LTCC='$LTCC'
13248
17593
LTCFLAGS='$LTCFLAGS'
13321
17666
install_override_mode \
13322
17667
finish_eval \
13323
17668
old_striplib \
13324
 
striplib; do
 
17669
striplib \
 
17670
compiler_lib_search_dirs \
 
17671
predep_objects \
 
17672
postdep_objects \
 
17673
predeps \
 
17674
postdeps \
 
17675
compiler_lib_search_path \
 
17676
LD_CXX \
 
17677
reload_flag_CXX \
 
17678
compiler_CXX \
 
17679
lt_prog_compiler_no_builtin_flag_CXX \
 
17680
lt_prog_compiler_pic_CXX \
 
17681
lt_prog_compiler_wl_CXX \
 
17682
lt_prog_compiler_static_CXX \
 
17683
lt_cv_prog_compiler_c_o_CXX \
 
17684
export_dynamic_flag_spec_CXX \
 
17685
whole_archive_flag_spec_CXX \
 
17686
compiler_needs_object_CXX \
 
17687
with_gnu_ld_CXX \
 
17688
allow_undefined_flag_CXX \
 
17689
no_undefined_flag_CXX \
 
17690
hardcode_libdir_flag_spec_CXX \
 
17691
hardcode_libdir_flag_spec_ld_CXX \
 
17692
hardcode_libdir_separator_CXX \
 
17693
exclude_expsyms_CXX \
 
17694
include_expsyms_CXX \
 
17695
file_list_spec_CXX \
 
17696
compiler_lib_search_dirs_CXX \
 
17697
predep_objects_CXX \
 
17698
postdep_objects_CXX \
 
17699
predeps_CXX \
 
17700
postdeps_CXX \
 
17701
compiler_lib_search_path_CXX; do
13325
17702
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13326
17703
    *[\\\\\\\`\\"\\\$]*)
13327
17704
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13351
17728
postuninstall_cmds \
13352
17729
finish_cmds \
13353
17730
sys_lib_search_path_spec \
13354
 
sys_lib_dlsearch_path_spec; do
 
17731
sys_lib_dlsearch_path_spec \
 
17732
reload_cmds_CXX \
 
17733
old_archive_cmds_CXX \
 
17734
old_archive_from_new_cmds_CXX \
 
17735
old_archive_from_expsyms_cmds_CXX \
 
17736
archive_cmds_CXX \
 
17737
archive_expsym_cmds_CXX \
 
17738
module_cmds_CXX \
 
17739
module_expsym_cmds_CXX \
 
17740
export_symbols_cmds_CXX \
 
17741
prelink_cmds_CXX \
 
17742
postlink_cmds_CXX; do
13355
17743
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13356
17744
    *[\\\\\\\`\\"\\\$]*)
13357
17745
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13382
17770
 
13383
17771
 
13384
17772
 
 
17773
 
 
17774
 
13385
17775
_ACEOF
13386
17776
 
13387
17777
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394
17784
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13395
17785
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13396
17786
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17787
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13397
17788
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13398
17789
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13399
17790
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14138
18529
 
14139
18530
 
14140
18531
# The names of the tagged configurations supported by this script.
14141
 
available_tags=""
 
18532
available_tags="CXX "
14142
18533
 
14143
18534
# ### BEGIN LIBTOOL CONFIG
14144
18535
 
14526
18917
# How to hardcode a shared library path into an executable.
14527
18918
hardcode_action=$hardcode_action
14528
18919
 
 
18920
# The directories searched by this compiler when creating a shared library.
 
18921
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18922
 
 
18923
# Dependencies to place before and after the objects being linked to
 
18924
# create a shared library.
 
18925
predep_objects=$lt_predep_objects
 
18926
postdep_objects=$lt_postdep_objects
 
18927
predeps=$lt_predeps
 
18928
postdeps=$lt_postdeps
 
18929
 
 
18930
# The library search path used internally by the compiler when linking
 
18931
# a shared library.
 
18932
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18933
 
14529
18934
# ### END LIBTOOL CONFIG
14530
18935
 
14531
18936
_LT_EOF
14718
19123
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14719
19124
  chmod +x "$ofile"
14720
19125
 
 
19126
 
 
19127
    cat <<_LT_EOF >> "$ofile"
 
19128
 
 
19129
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
19130
 
 
19131
# The linker used to build libraries.
 
19132
LD=$lt_LD_CXX
 
19133
 
 
19134
# How to create reloadable object files.
 
19135
reload_flag=$lt_reload_flag_CXX
 
19136
reload_cmds=$lt_reload_cmds_CXX
 
19137
 
 
19138
# Commands used to build an old-style archive.
 
19139
old_archive_cmds=$lt_old_archive_cmds_CXX
 
19140
 
 
19141
# A language specific compiler.
 
19142
CC=$lt_compiler_CXX
 
19143
 
 
19144
# Is the compiler the GNU compiler?
 
19145
with_gcc=$GCC_CXX
 
19146
 
 
19147
# Compiler flag to turn off builtin functions.
 
19148
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
19149
 
 
19150
# Additional compiler flags for building library objects.
 
19151
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
19152
 
 
19153
# How to pass a linker flag through the compiler.
 
19154
wl=$lt_lt_prog_compiler_wl_CXX
 
19155
 
 
19156
# Compiler flag to prevent dynamic linking.
 
19157
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
19158
 
 
19159
# Does compiler simultaneously support -c and -o options?
 
19160
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
19161
 
 
19162
# Whether or not to add -lc for building shared libraries.
 
19163
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
19164
 
 
19165
# Whether or not to disallow shared libs when runtime libs are static.
 
19166
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
19167
 
 
19168
# Compiler flag to allow reflexive dlopens.
 
19169
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
19170
 
 
19171
# Compiler flag to generate shared objects directly from archives.
 
19172
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
19173
 
 
19174
# Whether the compiler copes with passing no objects directly.
 
19175
compiler_needs_object=$lt_compiler_needs_object_CXX
 
19176
 
 
19177
# Create an old-style archive from a shared archive.
 
19178
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
19179
 
 
19180
# Create a temporary old-style archive to link instead of a shared archive.
 
19181
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
19182
 
 
19183
# Commands used to build a shared archive.
 
19184
archive_cmds=$lt_archive_cmds_CXX
 
19185
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
19186
 
 
19187
# Commands used to build a loadable module if different from building
 
19188
# a shared archive.
 
19189
module_cmds=$lt_module_cmds_CXX
 
19190
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
19191
 
 
19192
# Whether we are building with GNU ld or not.
 
19193
with_gnu_ld=$lt_with_gnu_ld_CXX
 
19194
 
 
19195
# Flag that allows shared libraries with undefined symbols to be built.
 
19196
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
19197
 
 
19198
# Flag that enforces no undefined symbols.
 
19199
no_undefined_flag=$lt_no_undefined_flag_CXX
 
19200
 
 
19201
# Flag to hardcode \$libdir into a binary during linking.
 
19202
# This must work even if \$libdir does not exist
 
19203
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
19204
 
 
19205
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
19206
# during linking.  This must work even if \$libdir does not exist.
 
19207
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
19208
 
 
19209
# Whether we need a single "-rpath" flag with a separated argument.
 
19210
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
19211
 
 
19212
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
19213
# DIR into the resulting binary.
 
19214
hardcode_direct=$hardcode_direct_CXX
 
19215
 
 
19216
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
19217
# DIR into the resulting binary and the resulting library dependency is
 
19218
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
19219
# library is relocated.
 
19220
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
19221
 
 
19222
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
19223
# into the resulting binary.
 
19224
hardcode_minus_L=$hardcode_minus_L_CXX
 
19225
 
 
19226
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
19227
# into the resulting binary.
 
19228
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
19229
 
 
19230
# Set to "yes" if building a shared library automatically hardcodes DIR
 
19231
# into the library and all subsequent libraries and executables linked
 
19232
# against it.
 
19233
hardcode_automatic=$hardcode_automatic_CXX
 
19234
 
 
19235
# Set to yes if linker adds runtime paths of dependent libraries
 
19236
# to runtime path list.
 
19237
inherit_rpath=$inherit_rpath_CXX
 
19238
 
 
19239
# Whether libtool must link a program against all its dependency libraries.
 
19240
link_all_deplibs=$link_all_deplibs_CXX
 
19241
 
 
19242
# Set to "yes" if exported symbols are required.
 
19243
always_export_symbols=$always_export_symbols_CXX
 
19244
 
 
19245
# The commands to list exported symbols.
 
19246
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
19247
 
 
19248
# Symbols that should not be listed in the preloaded symbols.
 
19249
exclude_expsyms=$lt_exclude_expsyms_CXX
 
19250
 
 
19251
# Symbols that must always be exported.
 
19252
include_expsyms=$lt_include_expsyms_CXX
 
19253
 
 
19254
# Commands necessary for linking programs (against libraries) with templates.
 
19255
prelink_cmds=$lt_prelink_cmds_CXX
 
19256
 
 
19257
# Commands necessary for finishing linking programs.
 
19258
postlink_cmds=$lt_postlink_cmds_CXX
 
19259
 
 
19260
# Specify filename containing input files.
 
19261
file_list_spec=$lt_file_list_spec_CXX
 
19262
 
 
19263
# How to hardcode a shared library path into an executable.
 
19264
hardcode_action=$hardcode_action_CXX
 
19265
 
 
19266
# The directories searched by this compiler when creating a shared library.
 
19267
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
19268
 
 
19269
# Dependencies to place before and after the objects being linked to
 
19270
# create a shared library.
 
19271
predep_objects=$lt_predep_objects_CXX
 
19272
postdep_objects=$lt_postdep_objects_CXX
 
19273
predeps=$lt_predeps_CXX
 
19274
postdeps=$lt_postdeps_CXX
 
19275
 
 
19276
# The library search path used internally by the compiler when linking
 
19277
# a shared library.
 
19278
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
19279
 
 
19280
# ### END LIBTOOL TAG CONFIG: CXX
 
19281
_LT_EOF
 
19282
 
14721
19283
 ;;
14722
19284
 
14723
19285
  esac