~ubuntu-branches/ubuntu/hardy/xfce-mcs-plugins/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jani Monoses
  • Date: 2006-07-11 20:40:57 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711204057-2to9u4swqj60ybnj
Tags: 4.3.90.2-0ubuntu1
New upstream release, part of Xfce 4.4 beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.in Id: configure.in.in 21631 2006-05-11 21:24:25Z benny .
 
2
# From configure.in Id: configure.in.in 22363 2006-07-10 11:51:00Z benny .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.59 for xfce-mcs-plugins 4.3.90.2svn-21633.
 
4
# Generated by GNU Autoconf 2.59 for xfce-mcs-plugins 4.3.90.2.
5
5
#
6
6
# Report bugs to <xfce4-dev@xfce.org>.
7
7
#
288
288
 
289
289
# The HP-UX ksh and POSIX shell print the target directory to stdout
290
290
# if CDPATH is set.
291
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
291
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
292
 
293
293
if test -z "$ECHO"; then
294
294
if test "X${echo_test_string+set}" != Xset; then
295
295
# find a string as large as possible, as long as the shell can cope with it
296
296
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297
297
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
299
 
       echo_test_string=`eval $cmd` &&
 
298
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
299
       echo_test_string="`eval $cmd`" &&
300
300
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301
301
    then
302
302
      break
431
431
# Identity of this package.
432
432
PACKAGE_NAME='xfce-mcs-plugins'
433
433
PACKAGE_TARNAME='xfce-mcs-plugins'
434
 
PACKAGE_VERSION='4.3.90.2svn-21633'
435
 
PACKAGE_STRING='xfce-mcs-plugins 4.3.90.2svn-21633'
 
434
PACKAGE_VERSION='4.3.90.2'
 
435
PACKAGE_STRING='xfce-mcs-plugins 4.3.90.2'
436
436
PACKAGE_BUGREPORT='xfce4-dev@xfce.org'
437
437
 
438
438
# Factoring default headers for most tests.
472
472
# include <unistd.h>
473
473
#endif"
474
474
 
475
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP HAVE_CYGWIN_TRUE HAVE_CYGWIN_FALSE INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS localedir XGETTEXT_ARGS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBX11_CFLAGS LIBX11_LDFLAGS LIBX11_LIBS XF86MISC_CFLAGS XF86MISC_LIBS XKB_CFLAGS XKB_LIBS XRANDR_CFLAGS XRANDR_LIBS XF86VM_CFLAGS XF86VM_LIBS XCURSOR_LIBS PKG_CONFIG GTK_VERSION GTK_CFLAGS GTK_LIBS GTK_REQUIRED_VERSION LIBXFCEGUI4_VERSION LIBXFCEGUI4_CFLAGS LIBXFCEGUI4_LIBS LIBXFCEGUI4_REQUIRED_VERSION XFCE_MCS_MANAGER_VERSION XFCE_MCS_MANAGER_CFLAGS XFCE_MCS_MANAGER_LIBS XFCE_MCS_MANAGER_REQUIRED_VERSION XFCE_MCS_MANAGER_PLUGINSDIR MCS_PLUGIN_API_VERSION PLATFORM_CPPFLAGS PLATFORM_CFLAGS PLATFORM_LDFLAGS LIBOBJS LTLIBOBJS'
 
475
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP HAVE_CYGWIN_TRUE HAVE_CYGWIN_FALSE INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS localedir XGETTEXT_ARGS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBX11_CFLAGS LIBX11_LDFLAGS LIBX11_LIBS XF86MISC_CFLAGS XF86MISC_LIBS XKB_CFLAGS XKB_LIBS XRANDR_CFLAGS XRANDR_LIBS XF86VM_CFLAGS XF86VM_LIBS XCURSOR_LIBS PKG_CONFIG GTK_VERSION GTK_CFLAGS GTK_LIBS GTK_REQUIRED_VERSION LIBXFCEGUI4_VERSION LIBXFCEGUI4_CFLAGS LIBXFCEGUI4_LIBS LIBXFCEGUI4_REQUIRED_VERSION XFCE_MCS_MANAGER_VERSION XFCE_MCS_MANAGER_CFLAGS XFCE_MCS_MANAGER_LIBS XFCE_MCS_MANAGER_REQUIRED_VERSION XFCE_MCS_MANAGER_PLUGINSDIR MCS_PLUGIN_API_VERSION PLATFORM_CPPFLAGS PLATFORM_CFLAGS PLATFORM_LDFLAGS LIBOBJS LTLIBOBJS'
476
476
ac_subst_files=''
477
477
 
478
478
# Initialize some variables set by options.
961
961
  # Omit some internal or obsolete options to make the list less imposing.
962
962
  # This message is too long to be a string in the A/UX 3.1 sh.
963
963
  cat <<_ACEOF
964
 
\`configure' configures xfce-mcs-plugins 4.3.90.2svn-21633 to adapt to many kinds of systems.
 
964
\`configure' configures xfce-mcs-plugins 4.3.90.2 to adapt to many kinds of systems.
965
965
 
966
966
Usage: $0 [OPTION]... [VAR=VALUE]...
967
967
 
1031
1031
 
1032
1032
if test -n "$ac_init_help"; then
1033
1033
  case $ac_init_help in
1034
 
     short | recursive ) echo "Configuration of xfce-mcs-plugins 4.3.90.2svn-21633:";;
 
1034
     short | recursive ) echo "Configuration of xfce-mcs-plugins 4.3.90.2:";;
1035
1035
   esac
1036
1036
  cat <<\_ACEOF
1037
1037
 
1059
1059
  --disable-xf86vm        don't try to use the Xxf86vm extension
1060
1060
  --enable-debug=[no/minimum/yes/full]
1061
1061
                          Turn on debugging
1062
 
                          [default=yes]
 
1062
                          [default=minimum]
1063
1063
 
1064
1064
Optional Packages:
1065
1065
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1180
1180
    else
1181
1181
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1182
1182
    fi
1183
 
    cd "$ac_popdir"
 
1183
    cd $ac_popdir
1184
1184
  done
1185
1185
fi
1186
1186
 
1187
1187
test -n "$ac_init_help" && exit 0
1188
1188
if $ac_init_version; then
1189
1189
  cat <<\_ACEOF
1190
 
xfce-mcs-plugins configure 4.3.90.2svn-21633
 
1190
xfce-mcs-plugins configure 4.3.90.2
1191
1191
generated by GNU Autoconf 2.59
1192
1192
 
1193
1193
Copyright (C) 2003 Free Software Foundation, Inc.
1208
1208
This file contains any messages produced by compilers while
1209
1209
running configure, to aid debugging if configure makes a mistake.
1210
1210
 
1211
 
It was created by xfce-mcs-plugins $as_me 4.3.90.2svn-21633, which was
 
1211
It was created by xfce-mcs-plugins $as_me 4.3.90.2, which was
1212
1212
generated by GNU Autoconf 2.59.  Invocation command line was
1213
1213
 
1214
1214
  $ $0 $@
1576
1576
fi
1577
1577
 
1578
1578
 
1579
 
am__api_version="1.8"
 
1579
am__api_version="1.9"
1580
1580
ac_aux_dir=
1581
1581
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582
1582
  if test -f $ac_dir/install-sh; then
1753
1753
fi
1754
1754
 
1755
1755
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1756
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1757
 
  # argument.  Indeed, we sometimes output rules like
 
1756
  # We used to keeping the `.' as first argument, in order to
 
1757
  # allow $(mkdir_p) to be used without argument.  As in
1758
1758
  #   $(mkdir_p) $(somedir)
1759
 
  # where $(somedir) is conditionally defined.
1760
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1761
 
  # expensive solution, as it forces Make to start a sub-shell.)
1762
 
  mkdir_p='mkdir -p -- .'
 
1759
  # where $(somedir) is conditionally defined.  However this is wrong
 
1760
  # for two reasons:
 
1761
  #  1. if the package is installed by a user who cannot write `.'
 
1762
  #     make install will fail,
 
1763
  #  2. the above comment should most certainly read
 
1764
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1765
  #     so it does not work when $(somedir) is undefined and
 
1766
  #     $(DESTDIR) is not.
 
1767
  #  To support the latter case, we have to write
 
1768
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1769
  #  so the `.' trick is pointless.
 
1770
  mkdir_p='mkdir -p --'
1763
1771
else
1764
1772
  # On NextStep and OpenStep, the `mkdir' command does not
1765
1773
  # recognize any option.  It will interpret all options as
1846
1854
 
1847
1855
# Define the identity of the package.
1848
1856
 PACKAGE=xfce-mcs-plugins
1849
 
 VERSION=4.3.90.2svn-21633
 
1857
 VERSION=4.3.90.2
1850
1858
 
1851
1859
 
1852
1860
cat >>confdefs.h <<_ACEOF
1874
1882
 
1875
1883
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1876
1884
 
1877
 
 
1878
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1879
 
 
1880
1885
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881
1886
 
1882
1887
# Installed binaries are usually stripped using `strip' when the user
1969
1974
 
1970
1975
# We need awk for the "check" target.  The system "awk" is bad on
1971
1976
# some platforms.
 
1977
# Always define AMTAR for backward compatibility.
 
1978
 
 
1979
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1980
 
 
1981
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1982
 
 
1983
 
1972
1984
 
1973
1985
 
1974
1986
 
2632
2644
  cat conftest.err >&5
2633
2645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
2646
  (exit $ac_status); } &&
2635
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2647
         { ac_try='test -z "$ac_c_werror_flag"
 
2648
                         || test ! -s conftest.err'
2636
2649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637
2650
  (eval $ac_try) 2>&5
2638
2651
  ac_status=$?
2690
2703
  cat conftest.err >&5
2691
2704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
2705
  (exit $ac_status); } &&
2693
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2706
         { ac_try='test -z "$ac_c_werror_flag"
 
2707
                         || test ! -s conftest.err'
2694
2708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
2709
  (eval $ac_try) 2>&5
2696
2710
  ac_status=$?
2806
2820
  cat conftest.err >&5
2807
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
2822
  (exit $ac_status); } &&
2809
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2823
         { ac_try='test -z "$ac_c_werror_flag"
 
2824
                         || test ! -s conftest.err'
2810
2825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811
2826
  (eval $ac_try) 2>&5
2812
2827
  ac_status=$?
2860
2875
  cat conftest.err >&5
2861
2876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862
2877
  (exit $ac_status); } &&
2863
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2878
         { ac_try='test -z "$ac_c_werror_flag"
 
2879
                         || test ! -s conftest.err'
2864
2880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865
2881
  (eval $ac_try) 2>&5
2866
2882
  ac_status=$?
2905
2921
  cat conftest.err >&5
2906
2922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907
2923
  (exit $ac_status); } &&
2908
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2924
         { ac_try='test -z "$ac_c_werror_flag"
 
2925
                         || test ! -s conftest.err'
2909
2926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910
2927
  (eval $ac_try) 2>&5
2911
2928
  ac_status=$?
2949
2966
  cat conftest.err >&5
2950
2967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951
2968
  (exit $ac_status); } &&
2952
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2969
         { ac_try='test -z "$ac_c_werror_flag"
 
2970
                         || test ! -s conftest.err'
2953
2971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954
2972
  (eval $ac_try) 2>&5
2955
2973
  ac_status=$?
3415
3433
  cat conftest.err >&5
3416
3434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417
3435
  (exit $ac_status); } &&
3418
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3436
         { ac_try='test -z "$ac_c_werror_flag"
 
3437
                         || test ! -s conftest.err'
3419
3438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420
3439
  (eval $ac_try) 2>&5
3421
3440
  ac_status=$?
3469
3488
  cat conftest.err >&5
3470
3489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471
3490
  (exit $ac_status); } &&
3472
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3491
         { ac_try='test -z "$ac_c_werror_flag"
 
3492
                         || test ! -s conftest.err'
3473
3493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474
3494
  (eval $ac_try) 2>&5
3475
3495
  ac_status=$?
3534
3554
  cat conftest.err >&5
3535
3555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536
3556
  (exit $ac_status); } &&
3537
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3557
         { ac_try='test -z "$ac_c_werror_flag"
 
3558
                         || test ! -s conftest.err'
3538
3559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539
3560
  (eval $ac_try) 2>&5
3540
3561
  ac_status=$?
3704
3725
  cat conftest.err >&5
3705
3726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706
3727
  (exit $ac_status); } &&
3707
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3728
         { ac_try='test -z "$ac_c_werror_flag"
 
3729
                         || test ! -s conftest.err'
3708
3730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709
3731
  (eval $ac_try) 2>&5
3710
3732
  ac_status=$?
3767
3789
  cat conftest.err >&5
3768
3790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
3791
  (exit $ac_status); } &&
3770
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3792
         { ac_try='test -z "$ac_c_werror_flag"
 
3793
                         || test ! -s conftest.err'
3771
3794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772
3795
  (eval $ac_try) 2>&5
3773
3796
  ac_status=$?
4276
4299
  cat conftest.err >&5
4277
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278
4301
  (exit $ac_status); } &&
4279
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4302
         { ac_try='test -z "$ac_c_werror_flag"
 
4303
                         || test ! -s conftest.err'
4280
4304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281
4305
  (eval $ac_try) 2>&5
4282
4306
  ac_status=$?
4334
4358
  cat conftest.err >&5
4335
4359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
4360
  (exit $ac_status); } &&
4337
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4361
         { ac_try='test -z "$ac_c_werror_flag"
 
4362
                         || test ! -s conftest.err'
4338
4363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339
4364
  (eval $ac_try) 2>&5
4340
4365
  ac_status=$?
4450
4475
  cat conftest.err >&5
4451
4476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452
4477
  (exit $ac_status); } &&
4453
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4478
         { ac_try='test -z "$ac_c_werror_flag"
 
4479
                         || test ! -s conftest.err'
4454
4480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455
4481
  (eval $ac_try) 2>&5
4456
4482
  ac_status=$?
4504
4530
  cat conftest.err >&5
4505
4531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
4532
  (exit $ac_status); } &&
4507
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4533
         { ac_try='test -z "$ac_c_werror_flag"
 
4534
                         || test ! -s conftest.err'
4508
4535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509
4536
  (eval $ac_try) 2>&5
4510
4537
  ac_status=$?
4549
4576
  cat conftest.err >&5
4550
4577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
4578
  (exit $ac_status); } &&
4552
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4579
         { ac_try='test -z "$ac_c_werror_flag"
 
4580
                         || test ! -s conftest.err'
4553
4581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554
4582
  (eval $ac_try) 2>&5
4555
4583
  ac_status=$?
4593
4621
  cat conftest.err >&5
4594
4622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
4623
  (exit $ac_status); } &&
4596
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4624
         { ac_try='test -z "$ac_c_werror_flag"
 
4625
                         || test ! -s conftest.err'
4597
4626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598
4627
  (eval $ac_try) 2>&5
4599
4628
  ac_status=$?
4821
4850
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4822
4851
 
4823
4852
 
4824
 
case "$am__api_version" in
4825
 
    1.01234)
4826
 
        { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
4827
 
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
4828
 
   { (exit 1); exit 1; }; }
4829
 
    ;;
4830
 
    *)
4831
 
    ;;
4832
 
esac
4833
4853
 
4834
4854
if test -n "0.31"; then
4835
4855
    echo "$as_me:$LINENO: checking for intltool >= 0.31" >&5
4836
4856
echo $ECHO_N "checking for intltool >= 0.31... $ECHO_C" >&6
4837
4857
 
4838
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | awk -F. '{ print $ 1 * 100 + $ 2; }'`
4839
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
4840
 
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
4841
 
 
4842
 
    echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
4858
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
 
4859
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
 
4860
 
 
4861
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
 
4862
 
 
4863
 
 
4864
    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
 
4865
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
4843
4866
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
4844
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
4845
 
        { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.31 or later." >&5
4846
 
echo "$as_me: error: Your intltool is too old.  You need intltool 0.31 or later." >&2;}
4847
 
   { (exit 1); exit 1; }; }
 
4867
    else
 
4868
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.31 or later." >&5
 
4869
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.31 or later." >&6
 
4870
        exit 1
 
4871
    fi
4848
4872
fi
4849
4873
 
4850
4874
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4864
4888
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4865
4889
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4866
4890
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4867
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4868
 
 
4869
4891
 
4870
4892
 
4871
4893
 
4886
4908
 
4887
4909
 
4888
4910
# Use the tools built into the package, not the ones that are installed.
 
4911
 
4889
4912
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
4890
 
 
4891
4913
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
4892
 
 
4893
4914
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
4894
4915
 
4895
4916
 
 
4917
 
 
4918
 
 
4919
 
4896
4920
# Extract the first word of "perl", so it can be a program name with args.
4897
4921
set dummy perl; ac_word=$2
4898
4922
echo "$as_me:$LINENO: checking for $ac_word" >&5
5116
5140
fi
5117
5141
 
5118
5142
 
5119
 
 
5120
 
 
 
5143
# Remove file type tags (using []) from po/POTFILES.
 
5144
 
 
5145
 
 
5146
 
 
5147
 
 
5148
 
 
5149
 
 
5150
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
5151
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
5152
  # argument.  Indeed, we sometimes output rules like
 
5153
  #   $(mkdir_p) $(somedir)
 
5154
  # where $(somedir) is conditionally defined.
 
5155
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
5156
  # expensive solution, as it forces Make to start a sub-shell.)
 
5157
  mkdir_p='mkdir -p -- .'
 
5158
else
 
5159
  # On NextStep and OpenStep, the `mkdir' command does not
 
5160
  # recognize any option.  It will interpret all options as
 
5161
  # directories to create, and then abort because `.' already
 
5162
  # exists.
 
5163
  for d in ./-p ./--version;
 
5164
  do
 
5165
    test -d $d && rmdir $d
 
5166
  done
 
5167
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
5168
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
5169
    mkdir_p='$(mkinstalldirs)'
 
5170
  else
 
5171
    mkdir_p='$(install_sh) -d'
 
5172
  fi
 
5173
fi
 
5174
 
 
5175
 
 
5176
 
 
5177
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
5121
5178
 
5122
5179
          ac_config_commands="$ac_config_commands intltool"
5123
5180
 
5274
5331
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5275
5332
# along with /bin/sed that truncates output.
5276
5333
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5277
 
  test ! -f $lt_ac_sed && continue
 
5334
  test ! -f $lt_ac_sed && break
5278
5335
  cat /dev/null > conftest.in
5279
5336
  lt_ac_count=0
5280
5337
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5299
5356
    fi
5300
5357
  done
5301
5358
done
5302
 
 
5303
 
fi
5304
 
 
5305
5359
SED=$lt_cv_path_SED
 
5360
 
 
5361
fi
 
5362
 
5306
5363
echo "$as_me:$LINENO: result: $SED" >&5
5307
5364
echo "${ECHO_T}$SED" >&6
5308
5365
 
5364
5421
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5365
5422
      lt_cv_path_LD="$ac_dir/$ac_prog"
5366
5423
      # Check to see if the program is GNU ld.  I'd rather use --version,
5367
 
      # but apparently some variants of GNU ld only accept -v.
 
5424
      # but apparently some GNU ld's only accept -v.
5368
5425
      # Break only if it was the GNU/non-GNU ld that we prefer.
5369
5426
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5370
5427
      *GNU* | *'with BFD'*)
5398
5455
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5399
5456
  echo $ECHO_N "(cached) $ECHO_C" >&6
5400
5457
else
5401
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5458
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5402
5459
case `$LD -v 2>&1 </dev/null` in
5403
5460
*GNU* | *'with BFD'*)
5404
5461
  lt_cv_prog_gnu_ld=yes
5428
5485
*) reload_flag=" $reload_flag" ;;
5429
5486
esac
5430
5487
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5431
 
case $host_os in
5432
 
  darwin*)
5433
 
    if test "$GCC" = yes; then
5434
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5435
 
    else
5436
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5437
 
    fi
5438
 
    ;;
5439
 
esac
5440
5488
 
5441
5489
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5442
5490
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5447
5495
  # Let the user override the test.
5448
5496
  lt_cv_path_NM="$NM"
5449
5497
else
5450
 
  lt_nm_to_check="${ac_tool_prefix}nm"
5451
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5452
 
    lt_nm_to_check="$lt_nm_to_check nm"
5453
 
  fi
5454
 
  for lt_tmp_nm in $lt_nm_to_check; do
5455
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5456
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5457
 
      IFS="$lt_save_ifs"
5458
 
      test -z "$ac_dir" && ac_dir=.
5459
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
5460
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5461
 
        # Check to see if the nm accepts a BSD-compat flag.
5462
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5463
 
        #   nm: unknown option "B" ignored
5464
 
        # Tru64's nm complains that /dev/null is an invalid object file
5465
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5466
 
        */dev/null* | *'Invalid file or object type'*)
5467
 
          lt_cv_path_NM="$tmp_nm -B"
 
5498
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5499
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5500
    IFS="$lt_save_ifs"
 
5501
    test -z "$ac_dir" && ac_dir=.
 
5502
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5503
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5504
      # Check to see if the nm accepts a BSD-compat flag.
 
5505
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5506
      #   nm: unknown option "B" ignored
 
5507
      # Tru64's nm complains that /dev/null is an invalid object file
 
5508
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5509
      */dev/null* | *'Invalid file or object type'*)
 
5510
        lt_cv_path_NM="$tmp_nm -B"
 
5511
        break
 
5512
        ;;
 
5513
      *)
 
5514
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5515
        */dev/null*)
 
5516
          lt_cv_path_NM="$tmp_nm -p"
5468
5517
          break
5469
5518
          ;;
5470
5519
        *)
5471
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5472
 
          */dev/null*)
5473
 
            lt_cv_path_NM="$tmp_nm -p"
5474
 
            break
5475
 
            ;;
5476
 
          *)
5477
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5478
 
            continue # so that we can try to find one that supports BSD flags
5479
 
            ;;
5480
 
          esac
 
5520
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5521
          continue # so that we can try to find one that supports BSD flags
5481
5522
          ;;
5482
5523
        esac
5483
 
      fi
5484
 
    done
5485
 
    IFS="$lt_save_ifs"
 
5524
      esac
 
5525
    fi
5486
5526
  done
 
5527
  IFS="$lt_save_ifs"
5487
5528
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5488
5529
fi
5489
5530
fi
5530
5571
  lt_cv_deplibs_check_method=pass_all
5531
5572
  ;;
5532
5573
 
5533
 
bsdi[45]*)
 
5574
bsdi4*)
5534
5575
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5535
5576
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5536
5577
  lt_cv_file_magic_test_file=/shlib/libc.so
5553
5594
  lt_cv_deplibs_check_method=pass_all
5554
5595
  ;;
5555
5596
 
5556
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
5597
freebsd* | kfreebsd*-gnu)
5557
5598
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5558
5599
    case $host_cpu in
5559
5600
    i*86 )
5560
5601
      # Not sure whether the presence of OpenBSD here was a mistake.
5561
5602
      # Let's accept both of them until this is cleared up.
5562
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5603
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5563
5604
      lt_cv_file_magic_cmd=/usr/bin/file
5564
5605
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5565
5606
      ;;
5575
5616
 
5576
5617
hpux10.20* | hpux11*)
5577
5618
  lt_cv_file_magic_cmd=/usr/bin/file
5578
 
  case $host_cpu in
 
5619
  case "$host_cpu" in
5579
5620
  ia64*)
5580
5621
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5581
5622
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591
5632
  esac
5592
5633
  ;;
5593
5634
 
5594
 
interix3*)
5595
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5596
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5597
 
  ;;
5598
 
 
5599
5635
irix5* | irix6* | nonstopux*)
5600
5636
  case $LD in
5601
5637
  *-32|*"-32 ") libmagic=32-bit;;
5608
5644
 
5609
5645
# This must be Linux ELF.
5610
5646
linux*)
 
5647
  case $host_cpu in
 
5648
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
 
5649
    lt_cv_deplibs_check_method=pass_all ;;
 
5650
  *)
 
5651
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
5652
    # this will be overridden with pass_all, but let us keep it just in case
 
5653
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
5654
  esac
 
5655
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5611
5656
  lt_cv_deplibs_check_method=pass_all
5612
5657
  ;;
5613
5658
 
5614
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5659
netbsd*)
5615
5660
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5616
5661
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5617
5662
  else
5630
5675
  ;;
5631
5676
 
5632
5677
openbsd*)
 
5678
  lt_cv_file_magic_cmd=/usr/bin/file
 
5679
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5633
5680
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5634
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5681
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5635
5682
  else
5636
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5683
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5637
5684
  fi
5638
5685
  ;;
5639
5686
 
5641
5688
  lt_cv_deplibs_check_method=pass_all
5642
5689
  ;;
5643
5690
 
 
5691
sco3.2v5*)
 
5692
  lt_cv_deplibs_check_method=pass_all
 
5693
  ;;
 
5694
 
5644
5695
solaris*)
5645
5696
  lt_cv_deplibs_check_method=pass_all
5646
5697
  ;;
5647
5698
 
5648
 
sysv4 | sysv4.3*)
 
5699
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5649
5700
  case $host_vendor in
5650
5701
  motorola)
5651
5702
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5666
5717
  siemens)
5667
5718
    lt_cv_deplibs_check_method=pass_all
5668
5719
    ;;
5669
 
  pc)
5670
 
    lt_cv_deplibs_check_method=pass_all
5671
 
    ;;
5672
5720
  esac
5673
5721
  ;;
5674
5722
 
5675
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5723
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5676
5724
  lt_cv_deplibs_check_method=pass_all
5677
5725
  ;;
5678
5726
esac
5690
5738
# If no C compiler was specified, use CC.
5691
5739
LTCC=${LTCC-"$CC"}
5692
5740
 
5693
 
# If no C compiler flags were specified, use CFLAGS.
5694
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5695
 
 
5696
5741
# Allow CC to be a program name with arguments.
5697
5742
compiler=$CC
5698
5743
 
5727
5772
  ;;
5728
5773
*-*-irix6*)
5729
5774
  # Find out which ABI we are using.
5730
 
  echo '#line 5730 "configure"' > conftest.$ac_ext
 
5775
  echo '#line 5775 "configure"' > conftest.$ac_ext
5731
5776
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732
5777
  (eval $ac_compile) 2>&5
5733
5778
  ac_status=$?
5770
5815
  ac_status=$?
5771
5816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772
5817
  (exit $ac_status); }; then
5773
 
    case `/usr/bin/file conftest.o` in
 
5818
    case "`/usr/bin/file conftest.o`" in
5774
5819
    *32-bit*)
5775
5820
      case $host in
5776
5821
        x86_64-*linux*)
5847
5892
  cat conftest.err >&5
5848
5893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849
5894
  (exit $ac_status); } &&
5850
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5895
         { ac_try='test -z "$ac_c_werror_flag"
 
5896
                         || test ! -s conftest.err'
5851
5897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852
5898
  (eval $ac_try) 2>&5
5853
5899
  ac_status=$?
5882
5928
    CFLAGS="$SAVE_CFLAGS"
5883
5929
  fi
5884
5930
  ;;
5885
 
sparc*-*solaris*)
5886
 
  # Find out which ABI we are using.
5887
 
  echo 'int i;' > conftest.$ac_ext
5888
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889
 
  (eval $ac_compile) 2>&5
5890
 
  ac_status=$?
5891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892
 
  (exit $ac_status); }; then
5893
 
    case `/usr/bin/file conftest.o` in
5894
 
    *64-bit*)
5895
 
      case $lt_cv_prog_gnu_ld in
5896
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5897
 
      *)    LD="${LD-ld} -64" ;;
5898
 
      esac
5899
 
      ;;
5900
 
    esac
5901
 
  fi
5902
 
  rm -rf conftest*
5903
 
  ;;
5904
 
 
5905
5931
 
5906
5932
esac
5907
5933
 
5942
5968
  cat conftest.err >&5
5943
5969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944
5970
  (exit $ac_status); } &&
5945
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5971
         { ac_try='test -z "$ac_c_werror_flag"
 
5972
                         || test ! -s conftest.err'
5946
5973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947
5974
  (eval $ac_try) 2>&5
5948
5975
  ac_status=$?
6202
6229
  cat conftest.err >&5
6203
6230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
6231
  (exit $ac_status); } &&
6205
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6232
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6233
                         || test ! -s conftest.err'
6206
6234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207
6235
  (eval $ac_try) 2>&5
6208
6236
  ac_status=$?
6260
6288
  cat conftest.err >&5
6261
6289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262
6290
  (exit $ac_status); } &&
6263
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6291
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6292
                         || test ! -s conftest.err'
6264
6293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265
6294
  (eval $ac_try) 2>&5
6266
6295
  ac_status=$?
6331
6360
  cat conftest.err >&5
6332
6361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333
6362
  (exit $ac_status); } &&
6334
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6363
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6364
                         || test ! -s conftest.err'
6335
6365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336
6366
  (eval $ac_try) 2>&5
6337
6367
  ac_status=$?
6375
6405
  cat conftest.err >&5
6376
6406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377
6407
  (exit $ac_status); } &&
6378
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6408
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6409
                         || test ! -s conftest.err'
6379
6410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380
6411
  (eval $ac_try) 2>&5
6381
6412
  ac_status=$?
6517
6548
fi
6518
6549
 
6519
6550
 
6520
 
 
6521
 
 
6522
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6523
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6524
 
    (test "X$CXX" != "Xg++"))) ; then
6525
 
  ac_ext=cc
 
6551
ac_ext=cc
6526
6552
ac_cpp='$CXXCPP $CPPFLAGS'
6527
6553
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528
6554
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752
6778
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753
6779
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6754
6780
 
6755
 
fi
6756
 
 
6757
6781
 
6758
6782
ac_ext=f
6759
6783
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6847
6871
 
6848
6872
 
6849
6873
# Provide some information about the compiler.
6850
 
echo "$as_me:6850:" \
 
6874
echo "$as_me:6874:" \
6851
6875
     "checking for Fortran 77 compiler version" >&5
6852
6876
ac_compiler=`set X $ac_compile; echo $2`
6853
6877
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6893
6917
  cat conftest.err >&5
6894
6918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
6919
  (exit $ac_status); } &&
6896
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6920
         { ac_try='test -z "$ac_f77_werror_flag"
 
6921
                         || test ! -s conftest.err'
6897
6922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898
6923
  (eval $ac_try) 2>&5
6899
6924
  ac_status=$?
6942
6967
  cat conftest.err >&5
6943
6968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944
6969
  (exit $ac_status); } &&
6945
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6970
         { ac_try='test -z "$ac_f77_werror_flag"
 
6971
                         || test ! -s conftest.err'
6946
6972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947
6973
  (eval $ac_try) 2>&5
6948
6974
  ac_status=$?
7035
7061
    lt_cv_sys_max_cmd_len=8192;
7036
7062
    ;;
7037
7063
 
7038
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7039
 
    # This has been around since 386BSD, at least.  Likely further.
7040
 
    if test -x /sbin/sysctl; then
7041
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7042
 
    elif test -x /usr/sbin/sysctl; then
7043
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7044
 
    else
7045
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7046
 
    fi
7047
 
    # And add a safety zone
7048
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7049
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7050
 
    ;;
7051
 
 
7052
 
  interix*)
7053
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7054
 
    lt_cv_sys_max_cmd_len=196608
7055
 
    ;;
7056
 
 
7057
 
  osf*)
7058
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7059
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7060
 
    # nice to cause kernel panics so lets avoid the loop below.
7061
 
    # First set a reasonable default.
7062
 
    lt_cv_sys_max_cmd_len=16384
7063
 
    #
7064
 
    if test -x /sbin/sysconfig; then
7065
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7066
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7067
 
      esac
7068
 
    fi
7069
 
    ;;
7070
 
  sco3.2v5*)
7071
 
    lt_cv_sys_max_cmd_len=102400
7072
 
    ;;
7073
 
  sysv5* | sco5v6* | sysv4.2uw2*)
7074
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7075
 
    if test -n "$kargmax"; then
7076
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7077
 
    else
7078
 
      lt_cv_sys_max_cmd_len=32768
7079
 
    fi
7080
 
    ;;
7081
 
  *)
 
7064
 *)
7082
7065
    # If test is not a shell built-in, we'll probably end up computing a
7083
7066
    # maximum length that is only half of the actual maximum length, but
7084
7067
    # we can't tell.
7085
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7086
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7068
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7087
7069
               = "XX$teststring") >/dev/null 2>&1 &&
7088
7070
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7089
7071
            lt_cv_sys_max_cmd_len=$new_result &&
7129
7111
# Regexp to match symbols that can be accessed directly from C.
7130
7112
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7131
7113
 
 
7114
# Transform the above into a raw symbol and a C symbol.
 
7115
symxfrm='\1 \2\3 \3'
 
7116
 
7132
7117
# Transform an extracted symbol line into a proper C declaration
7133
7118
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7134
7119
 
7150
7135
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7151
7136
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7152
7137
  ;;
7153
 
linux*)
7154
 
  if test "$host_cpu" = ia64; then
7155
 
    symcode='[ABCDGIRSTW]'
7156
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7157
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7158
 
  fi
7159
 
  ;;
7160
7138
irix* | nonstopux*)
7161
7139
  symcode='[BCDEGRST]'
7162
7140
  ;;
7163
7141
osf*)
7164
7142
  symcode='[BCDEGQRST]'
7165
7143
  ;;
7166
 
solaris*)
 
7144
solaris* | sysv5*)
7167
7145
  symcode='[BDRT]'
7168
7146
  ;;
7169
 
sco3.2v5*)
7170
 
  symcode='[DT]'
7171
 
  ;;
7172
 
sysv4.2uw2*)
7173
 
  symcode='[DT]'
7174
 
  ;;
7175
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7176
 
  symcode='[ABDT]'
7177
 
  ;;
7178
7147
sysv4)
7179
7148
  symcode='[DFNSTU]'
7180
7149
  ;;
7197
7166
# Try without a prefix undercore, then with it.
7198
7167
for ac_symprfx in "" "_"; do
7199
7168
 
7200
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7201
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7202
 
 
7203
7169
  # Write the raw and C identifiers.
7204
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7170
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7205
7171
 
7206
7172
  # Check to see that the pipe works correctly.
7207
7173
  pipe_works=no
7363
7329
 
7364
7330
# Sed substitution that helps us do robust quoting.  It backslashifies
7365
7331
# metacharacters that are still active within double-quoted strings.
7366
 
Xsed='sed -e 1s/^X//'
 
7332
Xsed='sed -e s/^X//'
7367
7333
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7368
7334
 
7369
7335
# Same as above, but do not quote variable references.
7383
7349
default_ofile=libtool
7384
7350
can_build_shared=yes
7385
7351
 
7386
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7352
# All known linkers require a `.a' archive for static linking (except M$VC,
7387
7353
# which needs '.lib').
7388
7354
libext=a
7389
7355
ltmain="$ac_aux_dir/ltmain.sh"
7640
7606
test -z "$AS" && AS=as
7641
7607
test -z "$CC" && CC=cc
7642
7608
test -z "$LTCC" && LTCC=$CC
7643
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7644
7609
test -z "$DLLTOOL" && DLLTOOL=dlltool
7645
7610
test -z "$LD" && LD=ld
7646
7611
test -z "$LN_S" && LN_S="ln -s"
7660
7625
if test -n "$RANLIB"; then
7661
7626
  case $host_os in
7662
7627
  openbsd*)
7663
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7628
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7664
7629
    ;;
7665
7630
  *)
7666
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7631
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7667
7632
    ;;
7668
7633
  esac
7669
7634
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7670
7635
fi
7671
7636
 
7672
 
for cc_temp in $compiler""; do
7673
 
  case $cc_temp in
7674
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7675
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7676
 
    \-*) ;;
7677
 
    *) break;;
7678
 
  esac
7679
 
done
7680
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7681
 
 
7682
 
 
7683
7637
# Only perform the check for file, if the check method requires it
7684
7638
case $deplibs_check_method in
7685
7639
file_magic*)
7705
7659
      if test -n "$file_magic_test_file"; then
7706
7660
        case $deplibs_check_method in
7707
7661
        "file_magic "*)
7708
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7662
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7709
7663
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7710
7664
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7711
7665
            $EGREP "$file_magic_regex" > /dev/null; then
7767
7721
      if test -n "$file_magic_test_file"; then
7768
7722
        case $deplibs_check_method in
7769
7723
        "file_magic "*)
7770
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7724
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7771
7725
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772
7726
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7773
7727
            $EGREP "$file_magic_regex" > /dev/null; then
7862
7816
# If no C compiler was specified, use CC.
7863
7817
LTCC=${LTCC-"$CC"}
7864
7818
 
7865
 
# If no C compiler flags were specified, use CFLAGS.
7866
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867
 
 
7868
7819
# Allow CC to be a program name with arguments.
7869
7820
compiler=$CC
7870
7821
 
7871
7822
 
7872
 
# save warnings/boilerplate of simple test code
7873
 
ac_outfile=conftest.$ac_objext
7874
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7875
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876
 
_lt_compiler_boilerplate=`cat conftest.err`
7877
 
$rm conftest*
7878
 
 
7879
 
ac_outfile=conftest.$ac_objext
7880
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7881
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7882
 
_lt_linker_boilerplate=`cat conftest.err`
7883
 
$rm conftest*
 
7823
#
 
7824
# Check for any special shared library compilation flags.
 
7825
#
 
7826
lt_prog_cc_shlib=
 
7827
if test "$GCC" = no; then
 
7828
  case $host_os in
 
7829
  sco3.2v5*)
 
7830
    lt_prog_cc_shlib='-belf'
 
7831
    ;;
 
7832
  esac
 
7833
fi
 
7834
if test -n "$lt_prog_cc_shlib"; then
 
7835
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7836
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7837
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7838
  else
 
7839
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7840
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7841
    lt_cv_prog_cc_can_build_shared=no
 
7842
  fi
 
7843
fi
 
7844
 
 
7845
 
 
7846
#
 
7847
# Check to make sure the static flag actually works.
 
7848
#
 
7849
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7850
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7851
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7853
else
 
7854
  lt_prog_compiler_static_works=no
 
7855
   save_LDFLAGS="$LDFLAGS"
 
7856
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7857
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7858
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7859
     # The compiler can only warn and ignore the option if not recognized
 
7860
     # So say no if there are warnings
 
7861
     if test -s conftest.err; then
 
7862
       # Append any errors to the config.log.
 
7863
       cat conftest.err 1>&5
 
7864
     else
 
7865
       lt_prog_compiler_static_works=yes
 
7866
     fi
 
7867
   fi
 
7868
   $rm conftest*
 
7869
   LDFLAGS="$save_LDFLAGS"
 
7870
 
 
7871
fi
 
7872
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7873
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7874
 
 
7875
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7876
    :
 
7877
else
 
7878
    lt_prog_compiler_static=
 
7879
fi
 
7880
 
7884
7881
 
7885
7882
 
7886
7883
 
7905
7902
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7906
7903
   # The option is referenced via a variable to avoid confusing sed.
7907
7904
   lt_compile=`echo "$ac_compile" | $SED \
7908
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7905
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7909
7906
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7910
7907
   -e 's:$: $lt_compiler_flag:'`
7911
 
   (eval echo "\"\$as_me:7911: $lt_compile\"" >&5)
 
7908
   (eval echo "\"\$as_me:7908: $lt_compile\"" >&5)
7912
7909
   (eval "$lt_compile" 2>conftest.err)
7913
7910
   ac_status=$?
7914
7911
   cat conftest.err >&5
7915
 
   echo "$as_me:7915: \$? = $ac_status" >&5
 
7912
   echo "$as_me:7912: \$? = $ac_status" >&5
7916
7913
   if (exit $ac_status) && test -s "$ac_outfile"; then
7917
7914
     # The compiler can only warn and ignore the option if not recognized
7918
 
     # So say no if there are warnings other than the usual output.
7919
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7920
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7921
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7915
     # So say no if there are warnings
 
7916
     if test ! -s conftest.err; then
7922
7917
       lt_cv_prog_compiler_rtti_exceptions=yes
7923
7918
     fi
7924
7919
   fi
7979
7974
      lt_prog_compiler_pic='-fno-common'
7980
7975
      ;;
7981
7976
 
7982
 
    interix3*)
7983
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7984
 
      # Instead, we relocate shared libraries at runtime.
7985
 
      ;;
7986
 
 
7987
7977
    msdosdjgpp*)
7988
7978
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7989
7979
      # on systems that don't support them.
8000
7990
    hpux*)
8001
7991
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8002
7992
      # not for PA HP-UX.
8003
 
      case $host_cpu in
 
7993
      case "$host_cpu" in
8004
7994
      hppa*64*|ia64*)
8005
7995
        # +Z the default
8006
7996
        ;;
8026
8016
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027
8017
      fi
8028
8018
      ;;
8029
 
      darwin*)
8030
 
        # PIC is the default on this platform
8031
 
        # Common symbols not allowed in MH_DYLIB files
8032
 
       case $cc_basename in
8033
 
         xlc*)
8034
 
         lt_prog_compiler_pic='-qnocommon'
8035
 
         lt_prog_compiler_wl='-Wl,'
8036
 
         ;;
8037
 
       esac
8038
 
       ;;
8039
8019
 
8040
8020
    mingw* | pw32* | os2*)
8041
8021
      # This hack is so that the source file can tell whether it is being
8047
8027
      lt_prog_compiler_wl='-Wl,'
8048
8028
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8049
8029
      # not for PA HP-UX.
8050
 
      case $host_cpu in
 
8030
      case "$host_cpu" in
8051
8031
      hppa*64*|ia64*)
8052
8032
        # +Z the default
8053
8033
        ;;
8071
8051
      ;;
8072
8052
 
8073
8053
    linux*)
8074
 
      case $cc_basename in
 
8054
      case $CC in
8075
8055
      icc* | ecc*)
8076
8056
        lt_prog_compiler_wl='-Wl,'
8077
8057
        lt_prog_compiler_pic='-KPIC'
8078
8058
        lt_prog_compiler_static='-static'
8079
8059
        ;;
8080
 
      pgcc* | pgf77* | pgf90* | pgf95*)
8081
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
8082
 
        # which looks to be a dead project)
8083
 
        lt_prog_compiler_wl='-Wl,'
8084
 
        lt_prog_compiler_pic='-fpic'
8085
 
        lt_prog_compiler_static='-Bstatic'
8086
 
        ;;
8087
8060
      ccc*)
8088
8061
        lt_prog_compiler_wl='-Wl,'
8089
8062
        # All Alpha code is PIC.
8098
8071
      lt_prog_compiler_static='-non_shared'
8099
8072
      ;;
8100
8073
 
 
8074
    sco3.2v5*)
 
8075
      lt_prog_compiler_pic='-Kpic'
 
8076
      lt_prog_compiler_static='-dn'
 
8077
      ;;
 
8078
 
8101
8079
    solaris*)
 
8080
      lt_prog_compiler_wl='-Wl,'
8102
8081
      lt_prog_compiler_pic='-KPIC'
8103
8082
      lt_prog_compiler_static='-Bstatic'
8104
 
      case $cc_basename in
8105
 
      f77* | f90* | f95*)
8106
 
        lt_prog_compiler_wl='-Qoption ld ';;
8107
 
      *)
8108
 
        lt_prog_compiler_wl='-Wl,';;
8109
 
      esac
8110
8083
      ;;
8111
8084
 
8112
8085
    sunos4*)
8115
8088
      lt_prog_compiler_static='-Bstatic'
8116
8089
      ;;
8117
8090
 
8118
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8091
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8119
8092
      lt_prog_compiler_wl='-Wl,'
8120
8093
      lt_prog_compiler_pic='-KPIC'
8121
8094
      lt_prog_compiler_static='-Bstatic'
8128
8101
      fi
8129
8102
      ;;
8130
8103
 
8131
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8132
 
      lt_prog_compiler_wl='-Wl,'
8133
 
      lt_prog_compiler_pic='-KPIC'
8134
 
      lt_prog_compiler_static='-Bstatic'
8135
 
      ;;
8136
 
 
8137
 
    unicos*)
8138
 
      lt_prog_compiler_wl='-Wl,'
8139
 
      lt_prog_compiler_can_build_shared=no
8140
 
      ;;
8141
 
 
8142
8104
    uts4*)
8143
8105
      lt_prog_compiler_pic='-pic'
8144
8106
      lt_prog_compiler_static='-Bstatic'
8173
8135
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8174
8136
   # The option is referenced via a variable to avoid confusing sed.
8175
8137
   lt_compile=`echo "$ac_compile" | $SED \
8176
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8138
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8177
8139
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8178
8140
   -e 's:$: $lt_compiler_flag:'`
8179
 
   (eval echo "\"\$as_me:8179: $lt_compile\"" >&5)
 
8141
   (eval echo "\"\$as_me:8141: $lt_compile\"" >&5)
8180
8142
   (eval "$lt_compile" 2>conftest.err)
8181
8143
   ac_status=$?
8182
8144
   cat conftest.err >&5
8183
 
   echo "$as_me:8183: \$? = $ac_status" >&5
 
8145
   echo "$as_me:8145: \$? = $ac_status" >&5
8184
8146
   if (exit $ac_status) && test -s "$ac_outfile"; then
8185
8147
     # The compiler can only warn and ignore the option if not recognized
8186
 
     # So say no if there are warnings other than the usual output.
8187
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8188
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8189
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8148
     # So say no if there are warnings
 
8149
     if test ! -s conftest.err; then
8190
8150
       lt_prog_compiler_pic_works=yes
8191
8151
     fi
8192
8152
   fi
8207
8167
fi
8208
8168
 
8209
8169
fi
8210
 
case $host_os in
 
8170
case "$host_os" in
8211
8171
  # For platforms which do not support PIC, -DPIC is meaningless:
8212
8172
  *djgpp*)
8213
8173
    lt_prog_compiler_pic=
8217
8177
    ;;
8218
8178
esac
8219
8179
 
8220
 
#
8221
 
# Check to make sure the static flag actually works.
8222
 
#
8223
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8224
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8225
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8226
 
if test "${lt_prog_compiler_static_works+set}" = set; then
8227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8228
 
else
8229
 
  lt_prog_compiler_static_works=no
8230
 
   save_LDFLAGS="$LDFLAGS"
8231
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8232
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8233
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8234
 
     # The linker can only warn and ignore the option if not recognized
8235
 
     # So say no if there are warnings
8236
 
     if test -s conftest.err; then
8237
 
       # Append any errors to the config.log.
8238
 
       cat conftest.err 1>&5
8239
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8240
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8241
 
       if diff conftest.exp conftest.er2 >/dev/null; then
8242
 
         lt_prog_compiler_static_works=yes
8243
 
       fi
8244
 
     else
8245
 
       lt_prog_compiler_static_works=yes
8246
 
     fi
8247
 
   fi
8248
 
   $rm conftest*
8249
 
   LDFLAGS="$save_LDFLAGS"
8250
 
 
8251
 
fi
8252
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8253
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8254
 
 
8255
 
if test x"$lt_prog_compiler_static_works" = xyes; then
8256
 
    :
8257
 
else
8258
 
    lt_prog_compiler_static=
8259
 
fi
8260
 
 
8261
 
 
8262
8180
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8263
8181
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8264
8182
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8277
8195
   # Note that $ac_compile itself does not contain backslashes and begins
8278
8196
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8279
8197
   lt_compile=`echo "$ac_compile" | $SED \
8280
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8198
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8281
8199
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282
8200
   -e 's:$: $lt_compiler_flag:'`
8283
 
   (eval echo "\"\$as_me:8283: $lt_compile\"" >&5)
 
8201
   (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
8284
8202
   (eval "$lt_compile" 2>out/conftest.err)
8285
8203
   ac_status=$?
8286
8204
   cat out/conftest.err >&5
8287
 
   echo "$as_me:8287: \$? = $ac_status" >&5
 
8205
   echo "$as_me:8205: \$? = $ac_status" >&5
8288
8206
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8289
8207
   then
8290
8208
     # The compiler can only warn and ignore the option if not recognized
8291
8209
     # So say no if there are warnings
8292
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8293
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8294
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8210
     if test ! -s out/conftest.err; then
8295
8211
       lt_cv_prog_compiler_c_o=yes
8296
8212
     fi
8297
8213
   fi
8298
 
   chmod u+w . 2>&5
 
8214
   chmod u+w .
8299
8215
   $rm conftest*
8300
8216
   # SGI C++ compiler will create directory out/ii_files/ for
8301
8217
   # template instantiation
8371
8287
  # rely on this symbol name, it's probably fine to never include it in
8372
8288
  # preloaded symbol tables.
8373
8289
  extract_expsyms_cmds=
8374
 
  # Just being paranoid about ensuring that cc_basename is set.
8375
 
  for cc_temp in $compiler""; do
8376
 
  case $cc_temp in
8377
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8378
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8379
 
    \-*) ;;
8380
 
    *) break;;
8381
 
  esac
8382
 
done
8383
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8384
8290
 
8385
8291
  case $host_os in
8386
8292
  cygwin* | mingw* | pw32*)
8391
8297
      with_gnu_ld=no
8392
8298
    fi
8393
8299
    ;;
8394
 
  interix*)
8395
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8396
 
    with_gnu_ld=yes
8397
 
    ;;
8398
8300
  openbsd*)
8399
8301
    with_gnu_ld=no
8400
8302
    ;;
8405
8307
    # If archive_cmds runs LD, not CC, wlarc should be empty
8406
8308
    wlarc='${wl}'
8407
8309
 
8408
 
    # Set some defaults for GNU ld with shared library support. These
8409
 
    # are reset later if shared libraries are not supported. Putting them
8410
 
    # here allows them to be overridden if necessary.
8411
 
    runpath_var=LD_RUN_PATH
8412
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8413
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
8414
 
    # ancient GNU ld didn't support --whole-archive et. al.
8415
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8416
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8417
 
      else
8418
 
        whole_archive_flag_spec=
8419
 
    fi
8420
 
    supports_anon_versioning=no
8421
 
    case `$LD -v 2>/dev/null` in
8422
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8423
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8424
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8425
 
      *\ 2.11.*) ;; # other 2.11 versions
8426
 
      *) supports_anon_versioning=yes ;;
8427
 
    esac
8428
 
 
8429
8310
    # See if GNU ld supports shared libraries.
8430
8311
    case $host_os in
8431
8312
    aix3* | aix4* | aix5*)
8476
8357
      allow_undefined_flag=unsupported
8477
8358
      always_export_symbols=no
8478
8359
      enable_shared_with_static_runtimes=yes
8479
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8360
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8480
8361
 
8481
8362
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8482
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8363
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8483
8364
        # If the export-symbols file already is a .def file (1st line
8484
8365
        # is EXPORTS), use it as is; otherwise, prepend...
8485
8366
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8488
8369
          echo EXPORTS > $output_objdir/$soname.def;
8489
8370
          cat $export_symbols >> $output_objdir/$soname.def;
8490
8371
        fi~
8491
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492
 
      else
8493
 
        ld_shlibs=no
8494
 
      fi
8495
 
      ;;
8496
 
 
8497
 
    interix3*)
8498
 
      hardcode_direct=no
8499
 
      hardcode_shlibpath_var=no
8500
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8501
 
      export_dynamic_flag_spec='${wl}-E'
8502
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8503
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8504
 
      # default) and relocated if they conflict, which is a slow very memory
8505
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
8506
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8507
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8508
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8509
 
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8510
 
      ;;
8511
 
 
8512
 
    linux*)
8513
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8514
 
        tmp_addflag=
8515
 
        case $cc_basename,$host_cpu in
8516
 
        pgcc*)                          # Portland Group C compiler
8517
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8518
 
          tmp_addflag=' $pic_flag'
8519
 
          ;;
8520
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8521
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8522
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
8523
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8524
 
          tmp_addflag=' -i_dynamic' ;;
8525
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8526
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8527
 
        ifc* | ifort*)                  # Intel Fortran compiler
8528
 
          tmp_addflag=' -nofor_main' ;;
8529
 
        esac
8530
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531
 
 
8532
 
        if test $supports_anon_versioning = yes; then
8533
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8534
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8535
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8536
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8537
 
        fi
8538
 
        link_all_deplibs=no
8539
 
      else
8540
 
        ld_shlibs=no
8541
 
      fi
8542
 
      ;;
8543
 
 
8544
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
8372
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8373
      else
 
8374
        ld_shlibs=no
 
8375
      fi
 
8376
      ;;
 
8377
 
 
8378
    netbsd*)
8545
8379
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8546
8380
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8547
8381
        wlarc=
8551
8385
      fi
8552
8386
      ;;
8553
8387
 
8554
 
    solaris*)
 
8388
    solaris* | sysv5*)
8555
8389
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8556
8390
        ld_shlibs=no
8557
8391
        cat <<EOF 1>&2
8572
8406
      fi
8573
8407
      ;;
8574
8408
 
8575
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8576
 
      case `$LD -v 2>&1` in
8577
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8578
 
        ld_shlibs=no
8579
 
        cat <<_LT_EOF 1>&2
8580
 
 
8581
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8582
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8583
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8584
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8585
 
*** your PATH or compiler configuration so that the native linker is
8586
 
*** used, and then restart.
8587
 
 
8588
 
_LT_EOF
8589
 
        ;;
8590
 
        *)
8591
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8592
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8593
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8594
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8595
 
          else
8596
 
            ld_shlibs=no
8597
 
          fi
8598
 
        ;;
8599
 
      esac
8600
 
      ;;
8601
 
 
8602
8409
    sunos4*)
8603
8410
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8604
8411
      wlarc=
8606
8413
      hardcode_shlibpath_var=no
8607
8414
      ;;
8608
8415
 
 
8416
  linux*)
 
8417
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8418
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8419
        archive_cmds="$tmp_archive_cmds"
 
8420
      supports_anon_versioning=no
 
8421
      case `$LD -v 2>/dev/null` in
 
8422
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8423
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8424
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8425
        *\ 2.11.*) ;; # other 2.11 versions
 
8426
        *) supports_anon_versioning=yes ;;
 
8427
      esac
 
8428
      if test $supports_anon_versioning = yes; then
 
8429
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8430
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8431
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8432
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8433
      else
 
8434
        archive_expsym_cmds="$tmp_archive_cmds"
 
8435
      fi
 
8436
    else
 
8437
      ld_shlibs=no
 
8438
    fi
 
8439
    ;;
 
8440
 
8609
8441
    *)
8610
8442
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8611
8443
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616
8448
      ;;
8617
8449
    esac
8618
8450
 
8619
 
    if test "$ld_shlibs" = no; then
8620
 
      runpath_var=
8621
 
      hardcode_libdir_flag_spec=
8622
 
      export_dynamic_flag_spec=
8623
 
      whole_archive_flag_spec=
 
8451
    if test "$ld_shlibs" = yes; then
 
8452
      runpath_var=LD_RUN_PATH
 
8453
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8454
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8455
      # ancient GNU ld didn't support --whole-archive et. al.
 
8456
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8457
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8458
      else
 
8459
        whole_archive_flag_spec=
 
8460
      fi
8624
8461
    fi
8625
8462
  else
8626
8463
    # PORTME fill in a description of your system's linker (not GNU ld)
8632
8469
      # Note: this linker hardcodes the directories in LIBPATH if there
8633
8470
      # are no directories specified by -L.
8634
8471
      hardcode_minus_L=yes
8635
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8472
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8636
8473
        # Neither direct hardcoding nor static linking is supported with a
8637
8474
        # broken collect2.
8638
8475
        hardcode_direct=unsupported
8666
8503
            break
8667
8504
          fi
8668
8505
          done
8669
 
          ;;
8670
8506
        esac
8671
8507
 
8672
8508
        exp_sym_flag='-bexport'
8685
8521
      link_all_deplibs=yes
8686
8522
 
8687
8523
      if test "$GCC" = yes; then
8688
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
8524
        case $host_os in aix4.012|aix4.012.*)
8689
8525
        # We only want to do this on AIX 4.2 and lower, the check
8690
8526
        # below for broken collect2 doesn't work under 4.3+
8691
8527
          collect2name=`${CC} -print-prog-name=collect2`
8704
8540
          hardcode_libdir_flag_spec='-L$libdir'
8705
8541
          hardcode_libdir_separator=
8706
8542
          fi
8707
 
          ;;
8708
8543
        esac
8709
8544
        shared_flag='-shared'
8710
 
        if test "$aix_use_runtimelinking" = yes; then
8711
 
          shared_flag="$shared_flag "'${wl}-G'
8712
 
        fi
8713
8545
      else
8714
8546
        # not using gcc
8715
8547
        if test "$host_cpu" = ia64; then
8717
8549
        # chokes on -Wl,-G. The following line is correct:
8718
8550
          shared_flag='-G'
8719
8551
        else
8720
 
          if test "$aix_use_runtimelinking" = yes; then
 
8552
        if test "$aix_use_runtimelinking" = yes; then
8721
8553
            shared_flag='${wl}-G'
8722
8554
          else
8723
8555
            shared_flag='${wl}-bM:SRE'
8724
 
          fi
 
8556
        fi
8725
8557
        fi
8726
8558
      fi
8727
8559
 
8757
8589
  cat conftest.err >&5
8758
8590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759
8591
  (exit $ac_status); } &&
8760
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8592
         { ac_try='test -z "$ac_c_werror_flag"
 
8593
                         || test ! -s conftest.err'
8761
8594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762
8595
  (eval $ac_try) 2>&5
8763
8596
  ac_status=$?
8785
8618
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8786
8619
 
8787
8620
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8788
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8621
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8789
8622
       else
8790
8623
        if test "$host_cpu" = ia64; then
8791
8624
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8792
8625
          allow_undefined_flag="-z nodefs"
8793
 
          archive_expsym_cmds="\$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"
 
8626
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8794
8627
        else
8795
8628
         # Determine the default libpath from the value encoded in an empty executable.
8796
8629
         cat >conftest.$ac_ext <<_ACEOF
8817
8650
  cat conftest.err >&5
8818
8651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819
8652
  (exit $ac_status); } &&
8820
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8653
         { ac_try='test -z "$ac_c_werror_flag"
 
8654
                         || test ! -s conftest.err'
8821
8655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822
8656
  (eval $ac_try) 2>&5
8823
8657
  ac_status=$?
8849
8683
          # -berok will link without error, but may produce a broken library.
8850
8684
          no_undefined_flag=' ${wl}-bernotok'
8851
8685
          allow_undefined_flag=' ${wl}-berok'
 
8686
          # -bexpall does not export symbols beginning with underscore (_)
 
8687
          always_export_symbols=yes
8852
8688
          # Exported symbols can be pulled into shared objects from archives
8853
 
          whole_archive_flag_spec='$convenience'
 
8689
          whole_archive_flag_spec=' '
8854
8690
          archive_cmds_need_lc=yes
8855
 
          # This is similar to how AIX traditionally builds its shared libraries.
8856
 
          archive_expsym_cmds="\$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'
 
8691
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8692
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8857
8693
        fi
8858
8694
      fi
8859
8695
      ;;
8866
8702
      ld_shlibs=no
8867
8703
      ;;
8868
8704
 
8869
 
    bsdi[45]*)
 
8705
    bsdi4*)
8870
8706
      export_dynamic_flag_spec=-rdynamic
8871
8707
      ;;
8872
8708
 
8892
8728
      ;;
8893
8729
 
8894
8730
    darwin* | rhapsody*)
8895
 
      case $host_os in
8896
 
        rhapsody* | darwin1.[012])
8897
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8898
 
         ;;
8899
 
       *) # Darwin 1.3 on
8900
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8901
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8902
 
         else
8903
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8904
 
             10.[012])
8905
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8906
 
               ;;
8907
 
             10.*)
8908
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8909
 
               ;;
8910
 
           esac
8911
 
         fi
8912
 
         ;;
 
8731
    if test "$GXX" = yes ; then
 
8732
      archive_cmds_need_lc=no
 
8733
      case "$host_os" in
 
8734
      rhapsody* | darwin1.[012])
 
8735
        allow_undefined_flag='-undefined suppress'
 
8736
        ;;
 
8737
      *) # Darwin 1.3 on
 
8738
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8739
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8740
      else
 
8741
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8742
          10.[012])
 
8743
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8744
            ;;
 
8745
          10.*)
 
8746
            allow_undefined_flag='-undefined dynamic_lookup'
 
8747
            ;;
 
8748
        esac
 
8749
      fi
 
8750
        ;;
8913
8751
      esac
8914
 
      archive_cmds_need_lc=no
 
8752
        lt_int_apple_cc_single_mod=no
 
8753
        output_verbose_link_cmd='echo'
 
8754
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
8755
          lt_int_apple_cc_single_mod=yes
 
8756
        fi
 
8757
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8758
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8759
        else
 
8760
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8761
      fi
 
8762
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8763
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8764
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8765
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8766
        else
 
8767
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8768
        fi
 
8769
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8915
8770
      hardcode_direct=no
8916
8771
      hardcode_automatic=yes
8917
8772
      hardcode_shlibpath_var=unsupported
8918
 
      whole_archive_flag_spec=''
 
8773
      whole_archive_flag_spec='-all_load $convenience'
8919
8774
      link_all_deplibs=yes
8920
 
    if test "$GCC" = yes ; then
8921
 
        output_verbose_link_cmd='echo'
8922
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8923
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8924
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8925
 
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8926
 
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8927
8775
    else
8928
 
      case $cc_basename in
8929
 
        xlc*)
8930
 
         output_verbose_link_cmd='echo'
8931
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8932
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8933
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8934
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8935
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8936
 
          ;;
8937
 
       *)
8938
 
         ld_shlibs=no
8939
 
          ;;
8940
 
      esac
 
8776
      ld_shlibs=no
8941
8777
    fi
8942
8778
      ;;
8943
8779
 
8971
8807
      ;;
8972
8808
 
8973
8809
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8974
 
    freebsd* | dragonfly*)
8975
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8976
 
      hardcode_libdir_flag_spec='-R$libdir'
8977
 
      hardcode_direct=yes
8978
 
      hardcode_shlibpath_var=no
8979
 
      ;;
8980
 
 
8981
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8982
 
    kfreebsd*-gnu)
8983
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8984
 
      hardcode_libdir_flag_spec='-R$libdir'
8985
 
      hardcode_direct=yes
8986
 
      hardcode_shlibpath_var=no
8987
 
      link_all_deplibs=no
 
8810
    freebsd* | kfreebsd*-gnu)
 
8811
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8812
      hardcode_libdir_flag_spec='-R$libdir'
 
8813
      hardcode_direct=yes
 
8814
      hardcode_shlibpath_var=no
8988
8815
      ;;
8989
8816
 
8990
8817
    hpux9*)
9003
8830
      export_dynamic_flag_spec='${wl}-E'
9004
8831
      ;;
9005
8832
 
9006
 
    hpux10*)
9007
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9008
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9009
 
      else
9010
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9011
 
      fi
9012
 
      if test "$with_gnu_ld" = no; then
9013
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9014
 
        hardcode_libdir_separator=:
9015
 
 
9016
 
        hardcode_direct=yes
9017
 
        export_dynamic_flag_spec='${wl}-E'
9018
 
 
9019
 
        # hardcode_minus_L: Not really in the search PATH,
9020
 
        # but as the default location of the library.
9021
 
        hardcode_minus_L=yes
9022
 
      fi
9023
 
      ;;
9024
 
 
9025
 
    hpux11*)
9026
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9027
 
        case $host_cpu in
9028
 
        hppa*64*)
 
8833
    hpux10* | hpux11*)
 
8834
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8835
        case "$host_cpu" in
 
8836
        hppa*64*|ia64*)
9029
8837
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9030
8838
          ;;
9031
 
        ia64*)
9032
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9033
 
          ;;
9034
8839
        *)
9035
8840
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9036
8841
          ;;
9037
8842
        esac
9038
8843
      else
9039
 
        case $host_cpu in
9040
 
        hppa*64*)
9041
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042
 
          ;;
9043
 
        ia64*)
9044
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8844
        case "$host_cpu" in
 
8845
        hppa*64*|ia64*)
 
8846
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9045
8847
          ;;
9046
8848
        *)
9047
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8849
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9048
8850
          ;;
9049
8851
        esac
9050
8852
      fi
9051
8853
      if test "$with_gnu_ld" = no; then
9052
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9053
 
        hardcode_libdir_separator=:
9054
 
 
9055
 
        case $host_cpu in
9056
 
        hppa*64*|ia64*)
 
8854
        case "$host_cpu" in
 
8855
        hppa*64*)
 
8856
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9057
8857
          hardcode_libdir_flag_spec_ld='+b $libdir'
9058
 
          hardcode_direct=no
9059
 
          hardcode_shlibpath_var=no
 
8858
          hardcode_libdir_separator=:
 
8859
          hardcode_direct=no
 
8860
          hardcode_shlibpath_var=no
 
8861
          ;;
 
8862
        ia64*)
 
8863
          hardcode_libdir_flag_spec='-L$libdir'
 
8864
          hardcode_direct=no
 
8865
          hardcode_shlibpath_var=no
 
8866
 
 
8867
          # hardcode_minus_L: Not really in the search PATH,
 
8868
          # but as the default location of the library.
 
8869
          hardcode_minus_L=yes
9060
8870
          ;;
9061
8871
        *)
 
8872
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8873
          hardcode_libdir_separator=:
9062
8874
          hardcode_direct=yes
9063
8875
          export_dynamic_flag_spec='${wl}-E'
9064
8876
 
9082
8894
      link_all_deplibs=yes
9083
8895
      ;;
9084
8896
 
9085
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
8897
    netbsd*)
9086
8898
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9087
8899
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9088
8900
      else
9106
8918
      hardcode_shlibpath_var=no
9107
8919
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9108
8920
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9110
8921
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9111
8922
        export_dynamic_flag_spec='${wl}-E'
9112
8923
      else
9152
8963
        allow_undefined_flag=' -expect_unresolved \*'
9153
8964
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9154
8965
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9155
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8966
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9156
8967
 
9157
8968
        # Both c and cxx compiler support -rpath directly
9158
8969
        hardcode_libdir_flag_spec='-rpath $libdir'
9160
8971
      hardcode_libdir_separator=:
9161
8972
      ;;
9162
8973
 
 
8974
    sco3.2v5*)
 
8975
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8976
      hardcode_shlibpath_var=no
 
8977
      export_dynamic_flag_spec='${wl}-Bexport'
 
8978
      runpath_var=LD_RUN_PATH
 
8979
      hardcode_runpath_var=yes
 
8980
      ;;
 
8981
 
9163
8982
    solaris*)
9164
8983
      no_undefined_flag=' -z text'
9165
8984
      if test "$GCC" = yes; then
9166
 
        wlarc='${wl}'
9167
8985
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9168
8986
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9169
8987
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9170
8988
      else
9171
 
        wlarc=''
9172
8989
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173
8990
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9174
8991
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9177
8994
      hardcode_shlibpath_var=no
9178
8995
      case $host_os in
9179
8996
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9180
 
      *)
9181
 
        # The compiler driver will combine linker options so we
9182
 
        # cannot just pass the convience library names through
9183
 
        # without $wl, iff we do not link with $LD.
9184
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
9185
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9186
 
        case $wlarc in
9187
 
        '')
9188
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9189
 
        *)
9190
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9191
 
        esac ;;
 
8997
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8998
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9192
8999
      esac
9193
9000
      link_all_deplibs=yes
9194
9001
      ;;
9245
9052
      fi
9246
9053
      ;;
9247
9054
 
9248
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9249
 
      no_undefined_flag='${wl}-z,text'
9250
 
      archive_cmds_need_lc=no
9251
 
      hardcode_shlibpath_var=no
9252
 
      runpath_var='LD_RUN_PATH'
9253
 
 
9254
 
      if test "$GCC" = yes; then
9255
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9256
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9257
 
      else
9258
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260
 
      fi
9261
 
      ;;
9262
 
 
9263
 
    sysv5* | sco3.2v5* | sco5v6*)
9264
 
      # Note: We can NOT use -z defs as we might desire, because we do not
9265
 
      # link with -lc, and that would cause any symbols used from libc to
9266
 
      # always be unresolved, which means just about no library would
9267
 
      # ever link correctly.  If we're not using GNU ld we use -z text
9268
 
      # though, which does catch some bad symbols but isn't as heavy-handed
9269
 
      # as -z defs.
9270
 
      no_undefined_flag='${wl}-z,text'
9271
 
      allow_undefined_flag='${wl}-z,nodefs'
9272
 
      archive_cmds_need_lc=no
9273
 
      hardcode_shlibpath_var=no
9274
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9275
 
      hardcode_libdir_separator=':'
9276
 
      link_all_deplibs=yes
9277
 
      export_dynamic_flag_spec='${wl}-Bexport'
9278
 
      runpath_var='LD_RUN_PATH'
9279
 
 
9280
 
      if test "$GCC" = yes; then
9281
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9282
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283
 
      else
9284
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9286
 
      fi
 
9055
    sysv4.2uw2*)
 
9056
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9057
      hardcode_direct=yes
 
9058
      hardcode_minus_L=no
 
9059
      hardcode_shlibpath_var=no
 
9060
      hardcode_runpath_var=yes
 
9061
      runpath_var=LD_RUN_PATH
 
9062
      ;;
 
9063
 
 
9064
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
9065
      no_undefined_flag='${wl}-z ${wl}text'
 
9066
      if test "$GCC" = yes; then
 
9067
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9068
      else
 
9069
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9070
      fi
 
9071
      runpath_var='LD_RUN_PATH'
 
9072
      hardcode_shlibpath_var=no
 
9073
      ;;
 
9074
 
 
9075
    sysv5*)
 
9076
      no_undefined_flag=' -z text'
 
9077
      # $CC -shared without GNU ld will not create a library from C++
 
9078
      # object files and a static libstdc++, better avoid it by now
 
9079
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9080
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9081
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9082
      hardcode_libdir_flag_spec=
 
9083
      hardcode_shlibpath_var=no
 
9084
      runpath_var='LD_RUN_PATH'
9287
9085
      ;;
9288
9086
 
9289
9087
    uts4*)
9302
9100
echo "${ECHO_T}$ld_shlibs" >&6
9303
9101
test "$ld_shlibs" = no && can_build_shared=no
9304
9102
 
 
9103
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9104
if test "$GCC" = yes; then
 
9105
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9106
fi
 
9107
 
9305
9108
#
9306
9109
# Do we need to explicitly link libc?
9307
9110
#
9334
9137
        libobjs=conftest.$ac_objext
9335
9138
        deplibs=
9336
9139
        wl=$lt_prog_compiler_wl
9337
 
        pic_flag=$lt_prog_compiler_pic
9338
9140
        compiler_flags=-v
9339
9141
        linker_flags=-v
9340
9142
        verstring=
9467
9269
  shlibpath_var=LIBRARY_PATH
9468
9270
  ;;
9469
9271
 
9470
 
bsdi[45]*)
 
9272
bsdi4*)
9471
9273
  version_type=linux
9472
9274
  need_version=no
9473
9275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495
9297
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9496
9298
      dldir=$destdir/`dirname \$dlpath`~
9497
9299
      test -d \$dldir || mkdir -p \$dldir~
9498
 
      $install_prog $dir/$dlname \$dldir/$dlname~
9499
 
      chmod a+x \$dldir/$dlname'
 
9300
      $install_prog $dir/$dlname \$dldir/$dlname'
9500
9301
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9501
9302
      dlpath=$dir/\$dldll~
9502
9303
       $rm \$dlpath'
9526
9327
      ;;
9527
9328
    pw32*)
9528
9329
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9529
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9330
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9530
9331
      ;;
9531
9332
    esac
9532
9333
    ;;
9549
9350
  soname_spec='${libname}${release}${major}$shared_ext'
9550
9351
  shlibpath_overrides_runpath=yes
9551
9352
  shlibpath_var=DYLD_LIBRARY_PATH
9552
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9353
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9553
9354
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9554
9355
  if test "$GCC" = yes; then
9555
9356
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9584
9385
  dynamic_linker='GNU ld.so'
9585
9386
  ;;
9586
9387
 
9587
 
freebsd* | dragonfly*)
9588
 
  # DragonFly does not have aout.  When/if they implement a new
9589
 
  # versioning mechanism, adjust this.
9590
 
  if test -x /usr/bin/objformat; then
9591
 
    objformat=`/usr/bin/objformat`
9592
 
  else
9593
 
    case $host_os in
9594
 
    freebsd[123]*) objformat=aout ;;
9595
 
    *) objformat=elf ;;
9596
 
    esac
9597
 
  fi
 
9388
freebsd*)
 
9389
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9598
9390
  version_type=freebsd-$objformat
9599
9391
  case $version_type in
9600
9392
    freebsd-elf*)
9612
9404
  freebsd2*)
9613
9405
    shlibpath_overrides_runpath=yes
9614
9406
    ;;
9615
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9407
  freebsd3.01* | freebsdelf3.01*)
9616
9408
    shlibpath_overrides_runpath=yes
9617
9409
    hardcode_into_libs=yes
9618
9410
    ;;
9619
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9411
  *) # from 3.2 on
9621
9412
    shlibpath_overrides_runpath=no
9622
9413
    hardcode_into_libs=yes
9623
9414
    ;;
9624
 
  freebsd*) # from 4.6 on
9625
 
    shlibpath_overrides_runpath=yes
9626
 
    hardcode_into_libs=yes
9627
 
    ;;
9628
9415
  esac
9629
9416
  ;;
9630
9417
 
9644
9431
  version_type=sunos
9645
9432
  need_lib_prefix=no
9646
9433
  need_version=no
9647
 
  case $host_cpu in
 
9434
  case "$host_cpu" in
9648
9435
  ia64*)
9649
9436
    shrext_cmds='.so'
9650
9437
    hardcode_into_libs=yes
9684
9471
  postinstall_cmds='chmod 555 $lib'
9685
9472
  ;;
9686
9473
 
9687
 
interix3*)
9688
 
  version_type=linux
9689
 
  need_lib_prefix=no
9690
 
  need_version=no
9691
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9692
 
  soname_spec='${libname}${release}${shared_ext}$major'
9693
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9694
 
  shlibpath_var=LD_LIBRARY_PATH
9695
 
  shlibpath_overrides_runpath=no
9696
 
  hardcode_into_libs=yes
9697
 
  ;;
9698
 
 
9699
9474
irix5* | irix6* | nonstopux*)
9700
9475
  case $host_os in
9701
9476
    nonstopux*) version_type=nonstopux ;;
9753
9528
  # before this can be enabled.
9754
9529
  hardcode_into_libs=yes
9755
9530
 
 
9531
  # find out which ABI we are using
 
9532
  libsuff=
 
9533
  case "$host_cpu" in
 
9534
  x86_64*|s390x*|powerpc64*)
 
9535
    echo '#line 9535 "configure"' > conftest.$ac_ext
 
9536
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9537
  (eval $ac_compile) 2>&5
 
9538
  ac_status=$?
 
9539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9540
  (exit $ac_status); }; then
 
9541
      case `/usr/bin/file conftest.$ac_objext` in
 
9542
      *64-bit*)
 
9543
        libsuff=64
 
9544
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9545
        ;;
 
9546
      esac
 
9547
    fi
 
9548
    rm -rf conftest*
 
9549
    ;;
 
9550
  esac
 
9551
 
9756
9552
  # Append ld.so.conf contents to the search path
9757
9553
  if test -f /etc/ld.so.conf; then
9758
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9759
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9554
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9555
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9760
9556
  fi
9761
9557
 
9762
9558
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9768
9564
  dynamic_linker='GNU/Linux ld.so'
9769
9565
  ;;
9770
9566
 
9771
 
netbsdelf*-gnu)
9772
 
  version_type=linux
9773
 
  need_lib_prefix=no
9774
 
  need_version=no
9775
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9776
 
  soname_spec='${libname}${release}${shared_ext}$major'
9777
 
  shlibpath_var=LD_LIBRARY_PATH
9778
 
  shlibpath_overrides_runpath=no
9779
 
  hardcode_into_libs=yes
9780
 
  dynamic_linker='NetBSD ld.elf_so'
9781
 
  ;;
9782
 
 
9783
9567
knetbsd*-gnu)
9784
9568
  version_type=linux
9785
9569
  need_lib_prefix=no
9829
9613
 
9830
9614
openbsd*)
9831
9615
  version_type=sunos
9832
 
  sys_lib_dlsearch_path_spec="/usr/lib"
9833
9616
  need_lib_prefix=no
9834
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9835
 
  case $host_os in
9836
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9837
 
    *)                         need_version=no  ;;
9838
 
  esac
 
9617
  need_version=yes
9839
9618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840
9619
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9841
9620
  shlibpath_var=LD_LIBRARY_PATH
9873
9652
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9874
9653
  ;;
9875
9654
 
 
9655
sco3.2v5*)
 
9656
  version_type=osf
 
9657
  soname_spec='${libname}${release}${shared_ext}$major'
 
9658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9659
  shlibpath_var=LD_LIBRARY_PATH
 
9660
  ;;
 
9661
 
9876
9662
solaris*)
9877
9663
  version_type=linux
9878
9664
  need_lib_prefix=no
9898
9684
  need_version=yes
9899
9685
  ;;
9900
9686
 
9901
 
sysv4 | sysv4.3*)
 
9687
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9902
9688
  version_type=linux
9903
9689
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904
9690
  soname_spec='${libname}${release}${shared_ext}$major'
9931
9717
  fi
9932
9718
  ;;
9933
9719
 
9934
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9935
 
  version_type=freebsd-elf
9936
 
  need_lib_prefix=no
9937
 
  need_version=no
9938
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9939
 
  soname_spec='${libname}${release}${shared_ext}$major'
9940
 
  shlibpath_var=LD_LIBRARY_PATH
9941
 
  hardcode_into_libs=yes
9942
 
  if test "$with_gnu_ld" = yes; then
9943
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9944
 
    shlibpath_overrides_runpath=no
9945
 
  else
9946
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9947
 
    shlibpath_overrides_runpath=yes
9948
 
    case $host_os in
9949
 
      sco3.2v5*)
9950
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9951
 
        ;;
9952
 
    esac
9953
 
  fi
9954
 
  sys_lib_dlsearch_path_spec='/usr/lib'
9955
 
  ;;
9956
 
 
9957
9720
uts4*)
9958
9721
  version_type=linux
9959
9722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969
9732
echo "${ECHO_T}$dynamic_linker" >&6
9970
9733
test "$dynamic_linker" = no && can_build_shared=no
9971
9734
 
9972
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9973
 
if test "$GCC" = yes; then
9974
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9975
 
fi
9976
 
 
9977
9735
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9978
9736
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9979
9737
hardcode_action=
9980
9738
if test -n "$hardcode_libdir_flag_spec" || \
9981
 
   test -n "$runpath_var" || \
9982
 
   test "X$hardcode_automatic" = "Xyes" ; then
 
9739
   test -n "$runpath_var " || \
 
9740
   test "X$hardcode_automatic"="Xyes" ; then
9983
9741
 
9984
9742
  # We can hardcode non-existant directories.
9985
9743
  if test "$hardcode_direct" != no &&
10105
9863
  cat conftest.err >&5
10106
9864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107
9865
  (exit $ac_status); } &&
10108
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9866
         { ac_try='test -z "$ac_c_werror_flag"
 
9867
                         || test ! -s conftest.err'
10109
9868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110
9869
  (eval $ac_try) 2>&5
10111
9870
  ac_status=$?
10208
9967
  cat conftest.err >&5
10209
9968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210
9969
  (exit $ac_status); } &&
10211
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9970
         { ac_try='test -z "$ac_c_werror_flag"
 
9971
                         || test ! -s conftest.err'
10212
9972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213
9973
  (eval $ac_try) 2>&5
10214
9974
  ac_status=$?
10273
10033
  cat conftest.err >&5
10274
10034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275
10035
  (exit $ac_status); } &&
10276
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10036
         { ac_try='test -z "$ac_c_werror_flag"
 
10037
                         || test ! -s conftest.err'
10277
10038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278
10039
  (eval $ac_try) 2>&5
10279
10040
  ac_status=$?
10366
10127
  cat conftest.err >&5
10367
10128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368
10129
  (exit $ac_status); } &&
10369
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10130
         { ac_try='test -z "$ac_c_werror_flag"
 
10131
                         || test ! -s conftest.err'
10370
10132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371
10133
  (eval $ac_try) 2>&5
10372
10134
  ac_status=$?
10431
10193
  cat conftest.err >&5
10432
10194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433
10195
  (exit $ac_status); } &&
10434
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10196
         { ac_try='test -z "$ac_c_werror_flag"
 
10197
                         || test ! -s conftest.err'
10435
10198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436
10199
  (eval $ac_try) 2>&5
10437
10200
  ac_status=$?
10497
10260
  cat conftest.err >&5
10498
10261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499
10262
  (exit $ac_status); } &&
10500
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10263
         { ac_try='test -z "$ac_c_werror_flag"
 
10264
                         || test ! -s conftest.err'
10501
10265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502
10266
  (eval $ac_try) 2>&5
10503
10267
  ac_status=$?
10563
10327
  cat conftest.err >&5
10564
10328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565
10329
  (exit $ac_status); } &&
10566
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10330
         { ac_try='test -z "$ac_c_werror_flag"
 
10331
                         || test ! -s conftest.err'
10567
10332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568
10333
  (eval $ac_try) 2>&5
10569
10334
  ac_status=$?
10622
10387
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10623
10388
 
10624
10389
    save_LDFLAGS="$LDFLAGS"
10625
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10390
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10626
10391
 
10627
10392
    save_LIBS="$LIBS"
10628
10393
    LIBS="$lt_cv_dlopen_libs $LIBS"
10638
10403
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10639
10404
  lt_status=$lt_dlunknown
10640
10405
  cat > conftest.$ac_ext <<EOF
10641
 
#line 10641 "configure"
 
10406
#line 10406 "configure"
10642
10407
#include "confdefs.h"
10643
10408
 
10644
10409
#if HAVE_DLFCN_H
10695
10460
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10696
10461
      /* dlclose (self); */
10697
10462
    }
10698
 
  else
10699
 
    puts (dlerror ());
10700
10463
 
10701
10464
    exit (status);
10702
10465
}
10706
10469
  ac_status=$?
10707
10470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708
10471
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10709
 
    (./conftest; exit; ) >&5 2>/dev/null
 
10472
    (./conftest; exit; ) 2>/dev/null
10710
10473
    lt_status=$?
10711
10474
    case x$lt_status in
10712
10475
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10713
10476
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10714
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10477
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10715
10478
    esac
10716
10479
  else :
10717
10480
    # compilation failed
10726
10489
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10727
10490
 
10728
10491
    if test "x$lt_cv_dlopen_self" = xyes; then
10729
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10492
      LDFLAGS="$LDFLAGS $link_static_flag"
10730
10493
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10731
10494
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10732
10495
if test "${lt_cv_dlopen_self_static+set}" = set; then
10738
10501
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10739
10502
  lt_status=$lt_dlunknown
10740
10503
  cat > conftest.$ac_ext <<EOF
10741
 
#line 10741 "configure"
 
10504
#line 10504 "configure"
10742
10505
#include "confdefs.h"
10743
10506
 
10744
10507
#if HAVE_DLFCN_H
10795
10558
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10796
10559
      /* dlclose (self); */
10797
10560
    }
10798
 
  else
10799
 
    puts (dlerror ());
10800
10561
 
10801
10562
    exit (status);
10802
10563
}
10806
10567
  ac_status=$?
10807
10568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808
10569
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10809
 
    (./conftest; exit; ) >&5 2>/dev/null
 
10570
    (./conftest; exit; ) 2>/dev/null
10810
10571
    lt_status=$?
10811
10572
    case x$lt_status in
10812
10573
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10813
10574
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10814
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10575
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10815
10576
    esac
10816
10577
  else :
10817
10578
    # compilation failed
10844
10605
fi
10845
10606
 
10846
10607
 
10847
 
# Report which library types will actually be built
 
10608
# Report which librarie types wil actually be built
10848
10609
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10849
10610
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10850
10611
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10856
10617
 
10857
10618
# On AIX, shared libraries and static libraries use the same namespace, and
10858
10619
# are all built from PIC.
10859
 
case $host_os in
 
10620
case "$host_os" in
10860
10621
aix3*)
10861
10622
  test "$enable_shared" = yes && enable_static=no
10862
10623
  if test -n "$RANLIB"; then
10869
10630
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10870
10631
    test "$enable_shared" = yes && enable_static=no
10871
10632
  fi
 
10633
  ;;
 
10634
  darwin* | rhapsody*)
 
10635
  if test "$GCC" = yes; then
 
10636
    archive_cmds_need_lc=no
 
10637
    case "$host_os" in
 
10638
    rhapsody* | darwin1.[012])
 
10639
      allow_undefined_flag='-undefined suppress'
 
10640
      ;;
 
10641
    *) # Darwin 1.3 on
 
10642
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10643
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
10644
      else
 
10645
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10646
          10.[012])
 
10647
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
10648
            ;;
 
10649
          10.*)
 
10650
            allow_undefined_flag='-undefined dynamic_lookup'
 
10651
            ;;
 
10652
        esac
 
10653
      fi
 
10654
      ;;
 
10655
    esac
 
10656
    output_verbose_link_cmd='echo'
 
10657
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
10658
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10659
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10660
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10661
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10662
    hardcode_direct=no
 
10663
    hardcode_automatic=yes
 
10664
    hardcode_shlibpath_var=unsupported
 
10665
    whole_archive_flag_spec='-all_load $convenience'
 
10666
    link_all_deplibs=yes
 
10667
  else
 
10668
    ld_shlibs=no
 
10669
  fi
10872
10670
    ;;
10873
10671
esac
10874
10672
echo "$as_me:$LINENO: result: $enable_shared" >&5
10894
10692
  # Now quote all the things that may contain metacharacters while being
10895
10693
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10896
10694
  # variables and quote the copies for generation of the libtool script.
10897
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10695
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10898
10696
    SED SHELL STRIP \
10899
10697
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10900
10698
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10998
10796
#
10999
10797
# You should have received a copy of the GNU General Public License
11000
10798
# along with this program; if not, write to the Free Software
11001
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10799
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11002
10800
#
11003
10801
# As a special exception to the GNU General Public License, if you
11004
10802
# distribute this file as part of a program that contains a
11009
10807
SED=$lt_SED
11010
10808
 
11011
10809
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11012
 
Xsed="$SED -e 1s/^X//"
 
10810
Xsed="$SED -e s/^X//"
11013
10811
 
11014
10812
# The HP-UX ksh and POSIX shell print the target directory to stdout
11015
10813
# if CDPATH is set.
11016
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10814
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11017
10815
 
11018
10816
# The names of the tagged configurations supported by this script.
11019
10817
available_tags=
11043
10841
# The host system.
11044
10842
host_alias=$host_alias
11045
10843
host=$host
11046
 
host_os=$host_os
11047
 
 
11048
 
# The build system.
11049
 
build_alias=$build_alias
11050
 
build=$build
11051
 
build_os=$build_os
11052
10844
 
11053
10845
# An echo program that does not interpret backslashes.
11054
10846
echo=$lt_echo
11060
10852
# A C compiler.
11061
10853
LTCC=$lt_LTCC
11062
10854
 
11063
 
# LTCC compiler flags.
11064
 
LTCFLAGS=$lt_LTCFLAGS
11065
 
 
11066
10855
# A language-specific compiler.
11067
10856
CC=$lt_compiler
11068
10857
 
11128
10917
# Does compiler simultaneously support -c and -o options?
11129
10918
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11130
10919
 
11131
 
# Must we lock files when doing compilation?
 
10920
# Must we lock files when doing compilation ?
11132
10921
need_locks=$lt_need_locks
11133
10922
 
11134
10923
# Do we need the lib prefix for modules?
11393
11182
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11394
11183
    fi
11395
11184
  fi
11396
 
  if test -z "$LTCFLAGS"; then
11397
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11398
 
  fi
11399
11185
 
11400
11186
  # Extract list of available tagged configurations in $ofile.
11401
11187
  # Note that this assumes the entire list is on one line.
11426
11212
 
11427
11213
      case $tagname in
11428
11214
      CXX)
11429
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11430
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11431
 
            (test "X$CXX" != "Xg++"))) ; then
 
11215
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
11432
11216
          ac_ext=cc
11433
11217
ac_cpp='$CXXCPP $CPPFLAGS'
11434
11218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448
11232
hardcode_libdir_flag_spec_ld_CXX=
11449
11233
hardcode_libdir_separator_CXX=
11450
11234
hardcode_minus_L_CXX=no
11451
 
hardcode_shlibpath_var_CXX=unsupported
11452
11235
hardcode_automatic_CXX=no
11453
11236
module_cmds_CXX=
11454
11237
module_expsym_cmds_CXX=
11466
11249
compiler_lib_search_path_CXX=
11467
11250
 
11468
11251
# Source file extension for C++ test sources.
11469
 
ac_ext=cpp
 
11252
ac_ext=cc
11470
11253
 
11471
11254
# Object file extension for compiled C++ test sources.
11472
11255
objext=o
11476
11259
lt_simple_compile_test_code="int some_variable = 0;\n"
11477
11260
 
11478
11261
# Code to be used in simple link tests
11479
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11262
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11480
11263
 
11481
11264
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11482
11265
 
11483
11266
# If no C compiler was specified, use CC.
11484
11267
LTCC=${LTCC-"$CC"}
11485
11268
 
11486
 
# If no C compiler flags were specified, use CFLAGS.
11487
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11488
 
 
11489
11269
# Allow CC to be a program name with arguments.
11490
11270
compiler=$CC
11491
11271
 
11492
11272
 
11493
 
# save warnings/boilerplate of simple test code
11494
 
ac_outfile=conftest.$ac_objext
11495
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11496
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11497
 
_lt_compiler_boilerplate=`cat conftest.err`
11498
 
$rm conftest*
11499
 
 
11500
 
ac_outfile=conftest.$ac_objext
11501
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11502
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11503
 
_lt_linker_boilerplate=`cat conftest.err`
11504
 
$rm conftest*
11505
 
 
11506
 
 
11507
11273
# Allow CC to be a program name with arguments.
11508
11274
lt_save_CC=$CC
11509
11275
lt_save_LD=$LD
11514
11280
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11515
11281
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11516
11282
else
11517
 
  $as_unset lt_cv_prog_gnu_ld
 
11283
  unset lt_cv_prog_gnu_ld
11518
11284
fi
11519
11285
if test -n "${lt_cv_path_LDCXX+set}"; then
11520
11286
  lt_cv_path_LD=$lt_cv_path_LDCXX
11521
11287
else
11522
 
  $as_unset lt_cv_path_LD
 
11288
  unset lt_cv_path_LD
11523
11289
fi
11524
11290
test -z "${LDCXX+set}" || LD=$LDCXX
11525
11291
CC=${CXX-"c++"}
11526
11292
compiler=$CC
11527
11293
compiler_CXX=$CC
11528
 
for cc_temp in $compiler""; do
11529
 
  case $cc_temp in
11530
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11531
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11532
 
    \-*) ;;
11533
 
    *) break;;
11534
 
  esac
11535
 
done
11536
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11537
 
 
 
11294
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11538
11295
 
11539
11296
# We don't want -fno-exception wen compiling C++ code, so set the
11540
11297
# no_builtin_flag separately
11605
11362
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11606
11363
      lt_cv_path_LD="$ac_dir/$ac_prog"
11607
11364
      # Check to see if the program is GNU ld.  I'd rather use --version,
11608
 
      # but apparently some variants of GNU ld only accept -v.
 
11365
      # but apparently some GNU ld's only accept -v.
11609
11366
      # Break only if it was the GNU/non-GNU ld that we prefer.
11610
11367
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11611
11368
      *GNU* | *'with BFD'*)
11639
11396
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11640
11397
  echo $ECHO_N "(cached) $ECHO_C" >&6
11641
11398
else
11642
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11399
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11643
11400
case `$LD -v 2>&1 </dev/null` in
11644
11401
*GNU* | *'with BFD'*)
11645
11402
  lt_cv_prog_gnu_ld=yes
11730
11487
            ;;
11731
11488
          esac
11732
11489
        done
11733
 
        ;;
11734
11490
      esac
11735
11491
 
11736
11492
      exp_sym_flag='-bexport'
11749
11505
    link_all_deplibs_CXX=yes
11750
11506
 
11751
11507
    if test "$GXX" = yes; then
11752
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
11508
      case $host_os in aix4.012|aix4.012.*)
11753
11509
      # We only want to do this on AIX 4.2 and lower, the check
11754
11510
      # below for broken collect2 doesn't work under 4.3+
11755
11511
        collect2name=`${CC} -print-prog-name=collect2`
11768
11524
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11769
11525
          hardcode_libdir_separator_CXX=
11770
11526
        fi
11771
 
        ;;
11772
11527
      esac
11773
11528
      shared_flag='-shared'
11774
 
      if test "$aix_use_runtimelinking" = yes; then
11775
 
        shared_flag="$shared_flag "'${wl}-G'
11776
 
      fi
11777
11529
    else
11778
11530
      # not using gcc
11779
11531
      if test "$host_cpu" = ia64; then
11821
11573
  cat conftest.err >&5
11822
11574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823
11575
  (exit $ac_status); } &&
11824
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11576
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11577
                         || test ! -s conftest.err'
11825
11578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826
11579
  (eval $ac_try) 2>&5
11827
11580
  ac_status=$?
11850
11603
 
11851
11604
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11852
11605
 
11853
 
      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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11606
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11854
11607
     else
11855
11608
      if test "$host_cpu" = ia64; then
11856
11609
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11857
11610
        allow_undefined_flag_CXX="-z nodefs"
11858
 
        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"
 
11611
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11859
11612
      else
11860
11613
        # Determine the default libpath from the value encoded in an empty executable.
11861
11614
        cat >conftest.$ac_ext <<_ACEOF
11882
11635
  cat conftest.err >&5
11883
11636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884
11637
  (exit $ac_status); } &&
11885
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11638
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11639
                         || test ! -s conftest.err'
11886
11640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887
11641
  (eval $ac_try) 2>&5
11888
11642
  ac_status=$?
11914
11668
        # -berok will link without error, but may produce a broken library.
11915
11669
        no_undefined_flag_CXX=' ${wl}-bernotok'
11916
11670
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11671
        # -bexpall does not export symbols beginning with underscore (_)
 
11672
        always_export_symbols_CXX=yes
11917
11673
        # Exported symbols can be pulled into shared objects from archives
11918
 
        whole_archive_flag_spec_CXX='$convenience'
 
11674
        whole_archive_flag_spec_CXX=' '
11919
11675
        archive_cmds_need_lc_CXX=yes
11920
 
        # This is similar to how AIX traditionally builds its shared libraries.
11921
 
        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'
 
11676
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11677
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11922
11678
      fi
11923
11679
    fi
11924
11680
    ;;
11925
 
 
11926
 
  beos*)
11927
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11928
 
      allow_undefined_flag_CXX=unsupported
11929
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11930
 
      # support --undefined.  This deserves some investigation.  FIXME
11931
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11932
 
    else
11933
 
      ld_shlibs_CXX=no
11934
 
    fi
11935
 
    ;;
11936
 
 
11937
11681
  chorus*)
11938
11682
    case $cc_basename in
11939
11683
      *)
11952
11696
    enable_shared_with_static_runtimes_CXX=yes
11953
11697
 
11954
11698
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11955
 
      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'
 
11699
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11956
11700
      # If the export-symbols file already is a .def file (1st line
11957
11701
      # is EXPORTS), use it as is; otherwise, prepend...
11958
11702
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11961
11705
        echo EXPORTS > $output_objdir/$soname.def;
11962
11706
        cat $export_symbols >> $output_objdir/$soname.def;
11963
11707
      fi~
11964
 
      $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'
 
11708
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11965
11709
    else
11966
11710
      ld_shlibs_CXX=no
11967
11711
    fi
11968
11712
  ;;
11969
 
      darwin* | rhapsody*)
11970
 
        case $host_os in
11971
 
        rhapsody* | darwin1.[012])
11972
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11973
 
         ;;
11974
 
       *) # Darwin 1.3 on
11975
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11976
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11977
 
         else
11978
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11979
 
             10.[012])
11980
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11981
 
               ;;
11982
 
             10.*)
11983
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11984
 
               ;;
11985
 
           esac
11986
 
         fi
11987
 
         ;;
 
11713
 
 
11714
  darwin* | rhapsody*)
 
11715
  if test "$GXX" = yes; then
 
11716
    archive_cmds_need_lc_CXX=no
 
11717
    case "$host_os" in
 
11718
    rhapsody* | darwin1.[012])
 
11719
      allow_undefined_flag_CXX='-undefined suppress'
 
11720
      ;;
 
11721
    *) # Darwin 1.3 on
 
11722
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11723
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11724
      else
 
11725
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11726
          10.[012])
 
11727
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11728
            ;;
 
11729
          10.*)
 
11730
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
11731
            ;;
11988
11732
        esac
11989
 
      archive_cmds_need_lc_CXX=no
11990
 
      hardcode_direct_CXX=no
11991
 
      hardcode_automatic_CXX=yes
11992
 
      hardcode_shlibpath_var_CXX=unsupported
11993
 
      whole_archive_flag_spec_CXX=''
11994
 
      link_all_deplibs_CXX=yes
 
11733
      fi
 
11734
      ;;
 
11735
    esac
 
11736
    lt_int_apple_cc_single_mod=no
 
11737
    output_verbose_link_cmd='echo'
 
11738
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11739
      lt_int_apple_cc_single_mod=yes
 
11740
    fi
 
11741
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11742
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11743
    else
 
11744
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11745
    fi
 
11746
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11995
11747
 
11996
 
    if test "$GXX" = yes ; then
11997
 
      lt_int_apple_cc_single_mod=no
11998
 
      output_verbose_link_cmd='echo'
11999
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12000
 
       lt_int_apple_cc_single_mod=yes
12001
 
      fi
12002
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12003
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12004
 
      else
12005
 
          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'
12006
 
        fi
12007
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12008
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12009
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12010
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12011
 
          else
12012
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12013
 
          fi
12014
 
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12015
 
      else
12016
 
      case $cc_basename in
12017
 
        xlc*)
12018
 
         output_verbose_link_cmd='echo'
12019
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12020
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12021
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12022
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12023
 
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12024
 
          ;;
12025
 
       *)
12026
 
         ld_shlibs_CXX=no
12027
 
          ;;
12028
 
      esac
12029
 
      fi
12030
 
        ;;
 
11748
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11749
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11750
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11751
    else
 
11752
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11753
    fi
 
11754
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11755
    hardcode_direct_CXX=no
 
11756
    hardcode_automatic_CXX=yes
 
11757
    hardcode_shlibpath_var_CXX=unsupported
 
11758
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
11759
    link_all_deplibs_CXX=yes
 
11760
  else
 
11761
    ld_shlibs_CXX=no
 
11762
  fi
 
11763
    ;;
12031
11764
 
12032
11765
  dgux*)
12033
11766
    case $cc_basename in
12034
 
      ec++*)
 
11767
      ec++)
12035
11768
        # FIXME: insert proper C++ library support
12036
11769
        ld_shlibs_CXX=no
12037
11770
        ;;
12038
 
      ghcx*)
 
11771
      ghcx)
12039
11772
        # Green Hills C++ Compiler
12040
11773
        # FIXME: insert proper C++ library support
12041
11774
        ld_shlibs_CXX=no
12046
11779
        ;;
12047
11780
    esac
12048
11781
    ;;
12049
 
  freebsd[12]*)
 
11782
  freebsd12*)
12050
11783
    # C++ shared libraries reported to be fairly broken before switch to ELF
12051
11784
    ld_shlibs_CXX=no
12052
11785
    ;;
12053
11786
  freebsd-elf*)
12054
11787
    archive_cmds_need_lc_CXX=no
12055
11788
    ;;
12056
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
11789
  freebsd* | kfreebsd*-gnu)
12057
11790
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12058
11791
    # conventions
12059
11792
    ld_shlibs_CXX=yes
12070
11803
                                # location of the library.
12071
11804
 
12072
11805
    case $cc_basename in
12073
 
    CC*)
 
11806
    CC)
12074
11807
      # FIXME: insert proper C++ library support
12075
11808
      ld_shlibs_CXX=no
12076
11809
      ;;
12077
 
    aCC*)
 
11810
    aCC)
12078
11811
      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'
12079
11812
      # Commands to make compiler produce verbose output that lists
12080
11813
      # what "hidden" libraries, object files and flags are used when
12084
11817
      # explicitly linking system object files so we need to strip them
12085
11818
      # from the output so that they don't get included in the library
12086
11819
      # dependencies.
12087
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11820
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12088
11821
      ;;
12089
11822
    *)
12090
11823
      if test "$GXX" = yes; then
12098
11831
    ;;
12099
11832
  hpux10*|hpux11*)
12100
11833
    if test $with_gnu_ld = no; then
12101
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12102
 
      hardcode_libdir_separator_CXX=:
12103
 
 
12104
 
      case $host_cpu in
12105
 
      hppa*64*|ia64*)
 
11834
      case "$host_cpu" in
 
11835
      hppa*64*)
 
11836
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12106
11837
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11838
        hardcode_libdir_separator_CXX=:
 
11839
        ;;
 
11840
      ia64*)
 
11841
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12107
11842
        ;;
12108
11843
      *)
 
11844
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11845
        hardcode_libdir_separator_CXX=:
12109
11846
        export_dynamic_flag_spec_CXX='${wl}-E'
12110
11847
        ;;
12111
11848
      esac
12112
11849
    fi
12113
 
    case $host_cpu in
12114
 
    hppa*64*|ia64*)
12115
 
      hardcode_direct_CXX=no
12116
 
      hardcode_shlibpath_var_CXX=no
 
11850
    case "$host_cpu" in
 
11851
    hppa*64*)
 
11852
      hardcode_direct_CXX=no
 
11853
      hardcode_shlibpath_var_CXX=no
 
11854
      ;;
 
11855
    ia64*)
 
11856
      hardcode_direct_CXX=no
 
11857
      hardcode_shlibpath_var_CXX=no
 
11858
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11859
                                              # but as the default
 
11860
                                              # location of the library.
12117
11861
      ;;
12118
11862
    *)
12119
11863
      hardcode_direct_CXX=yes
12124
11868
    esac
12125
11869
 
12126
11870
    case $cc_basename in
12127
 
      CC*)
 
11871
      CC)
12128
11872
        # FIXME: insert proper C++ library support
12129
11873
        ld_shlibs_CXX=no
12130
11874
        ;;
12131
 
      aCC*)
12132
 
        case $host_cpu in
12133
 
        hppa*64*)
12134
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12135
 
          ;;
12136
 
        ia64*)
12137
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11875
      aCC)
 
11876
        case "$host_cpu" in
 
11877
        hppa*64*|ia64*)
 
11878
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12138
11879
          ;;
12139
11880
        *)
12140
11881
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12153
11894
      *)
12154
11895
        if test "$GXX" = yes; then
12155
11896
          if test $with_gnu_ld = no; then
12156
 
            case $host_cpu in
12157
 
            hppa*64*)
12158
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159
 
              ;;
12160
 
            ia64*)
12161
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11897
            case "$host_cpu" in
 
11898
            ia64*|hppa*64*)
 
11899
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12162
11900
              ;;
12163
11901
            *)
12164
11902
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12172
11910
        ;;
12173
11911
    esac
12174
11912
    ;;
12175
 
  interix3*)
12176
 
    hardcode_direct_CXX=no
12177
 
    hardcode_shlibpath_var_CXX=no
12178
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12179
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12180
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12181
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12182
 
    # default) and relocated if they conflict, which is a slow very memory
12183
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
12184
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12185
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12186
 
    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'
12187
 
    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'
12188
 
    ;;
12189
11913
  irix5* | irix6*)
12190
11914
    case $cc_basename in
12191
 
      CC*)
 
11915
      CC)
12192
11916
        # SGI C++
12193
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11917
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12194
11918
 
12195
11919
        # Archives containing C++ object files must be created using
12196
11920
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12201
11925
      *)
12202
11926
        if test "$GXX" = yes; then
12203
11927
          if test "$with_gnu_ld" = no; then
12204
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11928
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12205
11929
          else
12206
11930
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12207
11931
          fi
12214
11938
    ;;
12215
11939
  linux*)
12216
11940
    case $cc_basename in
12217
 
      KCC*)
 
11941
      KCC)
12218
11942
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12219
11943
 
12220
11944
        # KCC will only create a shared library if the output file
12239
11963
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12240
11964
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12241
11965
        ;;
12242
 
      icpc*)
 
11966
      icpc)
12243
11967
        # Intel C++
12244
11968
        with_gnu_ld=yes
12245
 
        # version 8.0 and above of icpc choke on multiply defined symbols
12246
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
12247
 
        # earlier do not add the objects themselves.
12248
 
        case `$CC -V 2>&1` in
12249
 
        *"Version 7."*)
12250
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251
 
          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'
12252
 
          ;;
12253
 
        *)  # Version 8.0 or newer
12254
 
          tmp_idyn=
12255
 
          case $host_cpu in
12256
 
            ia64*) tmp_idyn=' -i_dynamic';;
12257
 
          esac
12258
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259
 
          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'
12260
 
          ;;
12261
 
        esac
12262
11969
        archive_cmds_need_lc_CXX=no
 
11970
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11971
        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'
12263
11972
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12264
11973
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12265
11974
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12266
11975
        ;;
12267
 
      pgCC*)
12268
 
        # Portland Group C++ compiler
12269
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12270
 
        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'
12271
 
 
12272
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12273
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12274
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12275
 
        ;;
12276
 
      cxx*)
 
11976
      cxx)
12277
11977
        # Compaq C++
12278
11978
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12279
11979
        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'
12304
12004
    ;;
12305
12005
  mvs*)
12306
12006
    case $cc_basename in
12307
 
      cxx*)
 
12007
      cxx)
12308
12008
        # FIXME: insert proper C++ library support
12309
12009
        ld_shlibs_CXX=no
12310
12010
        ;;
12314
12014
        ;;
12315
12015
    esac
12316
12016
    ;;
12317
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
12017
  netbsd*)
12318
12018
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12319
12019
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12320
12020
      wlarc=
12325
12025
    # Workaround some broken pre-1.5 toolchains
12326
12026
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12327
12027
    ;;
12328
 
  openbsd2*)
12329
 
    # C++ shared libraries are fairly broken
12330
 
    ld_shlibs_CXX=no
12331
 
    ;;
12332
 
  openbsd*)
12333
 
    hardcode_direct_CXX=yes
12334
 
    hardcode_shlibpath_var_CXX=no
12335
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12336
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12337
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12338
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12339
 
      export_dynamic_flag_spec_CXX='${wl}-E'
12340
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12341
 
    fi
12342
 
    output_verbose_link_cmd='echo'
12343
 
    ;;
12344
12028
  osf3*)
12345
12029
    case $cc_basename in
12346
 
      KCC*)
 
12030
      KCC)
12347
12031
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12348
12032
 
12349
12033
        # KCC will only create a shared library if the output file
12359
12043
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12360
12044
 
12361
12045
        ;;
12362
 
      RCC*)
 
12046
      RCC)
12363
12047
        # Rational C++ 2.4.1
12364
12048
        # FIXME: insert proper C++ library support
12365
12049
        ld_shlibs_CXX=no
12366
12050
        ;;
12367
 
      cxx*)
 
12051
      cxx)
12368
12052
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12369
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12053
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12370
12054
 
12371
12055
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12372
12056
        hardcode_libdir_separator_CXX=:
12384
12068
      *)
12385
12069
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12386
12070
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12387
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12071
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12388
12072
 
12389
12073
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12390
12074
          hardcode_libdir_separator_CXX=:
12403
12087
    ;;
12404
12088
  osf4* | osf5*)
12405
12089
    case $cc_basename in
12406
 
      KCC*)
 
12090
      KCC)
12407
12091
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12408
12092
 
12409
12093
        # KCC will only create a shared library if the output file
12418
12102
        # the KAI C++ compiler.
12419
12103
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12420
12104
        ;;
12421
 
      RCC*)
 
12105
      RCC)
12422
12106
        # Rational C++ 2.4.1
12423
12107
        # FIXME: insert proper C++ library support
12424
12108
        ld_shlibs_CXX=no
12425
12109
        ;;
12426
 
      cxx*)
 
12110
      cxx)
12427
12111
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12428
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12112
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12429
12113
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12430
12114
          echo "-hidden">> $lib.exp~
12431
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
12115
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12432
12116
          $rm $lib.exp'
12433
12117
 
12434
12118
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12447
12131
      *)
12448
12132
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12449
12133
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12450
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12134
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12451
12135
 
12452
12136
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12453
12137
          hardcode_libdir_separator_CXX=:
12468
12152
    # FIXME: insert proper C++ library support
12469
12153
    ld_shlibs_CXX=no
12470
12154
    ;;
 
12155
  sco*)
 
12156
    archive_cmds_need_lc_CXX=no
 
12157
    case $cc_basename in
 
12158
      CC)
 
12159
        # FIXME: insert proper C++ library support
 
12160
        ld_shlibs_CXX=no
 
12161
        ;;
 
12162
      *)
 
12163
        # FIXME: insert proper C++ library support
 
12164
        ld_shlibs_CXX=no
 
12165
        ;;
 
12166
    esac
 
12167
    ;;
12471
12168
  sunos4*)
12472
12169
    case $cc_basename in
12473
 
      CC*)
 
12170
      CC)
12474
12171
        # Sun C++ 4.x
12475
12172
        # FIXME: insert proper C++ library support
12476
12173
        ld_shlibs_CXX=no
12477
12174
        ;;
12478
 
      lcc*)
 
12175
      lcc)
12479
12176
        # Lucid
12480
12177
        # FIXME: insert proper C++ library support
12481
12178
        ld_shlibs_CXX=no
12488
12185
    ;;
12489
12186
  solaris*)
12490
12187
    case $cc_basename in
12491
 
      CC*)
 
12188
      CC)
12492
12189
        # Sun C++ 4.2, 5.x and Centerline C++
12493
 
        archive_cmds_need_lc_CXX=yes
12494
12190
        no_undefined_flag_CXX=' -zdefs'
12495
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12191
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12496
12192
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12497
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12193
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12498
12194
 
12499
12195
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12500
12196
        hardcode_shlibpath_var_CXX=no
12501
12197
        case $host_os in
12502
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12198
          solaris2.0-5 | solaris2.0-5.*) ;;
12503
12199
          *)
12504
12200
            # The C++ compiler is used as linker so we must use $wl
12505
12201
            # flag to pass the commands to the underlying system
12506
 
            # linker. We must also pass each convience library through
12507
 
            # to the system linker between allextract/defaultextract.
12508
 
            # The C++ compiler will combine linker options so we
12509
 
            # cannot just pass the convience library names through
12510
 
            # without $wl.
 
12202
            # linker.
12511
12203
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12512
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
12204
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12513
12205
            ;;
12514
12206
        esac
12515
12207
        link_all_deplibs_CXX=yes
12516
12208
 
12517
 
        output_verbose_link_cmd='echo'
 
12209
        # Commands to make compiler produce verbose output that lists
 
12210
        # what "hidden" libraries, object files and flags are used when
 
12211
        # linking a shared library.
 
12212
        #
 
12213
        # There doesn't appear to be a way to prevent this compiler from
 
12214
        # explicitly linking system object files so we need to strip them
 
12215
        # from the output so that they don't get included in the library
 
12216
        # dependencies.
 
12217
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12518
12218
 
12519
12219
        # Archives containing C++ object files must be created using
12520
12220
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12522
12222
        # in the archive.
12523
12223
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12524
12224
        ;;
12525
 
      gcx*)
 
12225
      gcx)
12526
12226
        # Green Hills C++ Compiler
12527
12227
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12528
12228
 
12560
12260
        ;;
12561
12261
    esac
12562
12262
    ;;
12563
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12564
 
    no_undefined_flag_CXX='${wl}-z,text'
12565
 
    archive_cmds_need_lc_CXX=no
12566
 
    hardcode_shlibpath_var_CXX=no
12567
 
    runpath_var='LD_RUN_PATH'
12568
 
 
12569
 
    case $cc_basename in
12570
 
      CC*)
12571
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573
 
        ;;
12574
 
      *)
12575
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12576
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577
 
        ;;
12578
 
    esac
12579
 
    ;;
12580
 
  sysv5* | sco3.2v5* | sco5v6*)
12581
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12582
 
    # link with -lc, and that would cause any symbols used from libc to
12583
 
    # always be unresolved, which means just about no library would
12584
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12585
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12586
 
    # as -z defs.
12587
 
    # For security reasons, it is highly recommended that you always
12588
 
    # use absolute paths for naming shared libraries, and exclude the
12589
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12590
 
    # requires that you compile everything twice, which is a pain.
12591
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12592
 
    # non-empty value in the environment.  Most likely only useful for
12593
 
    # creating official distributions of packages.
12594
 
    # This is a hack until libtool officially supports absolute path
12595
 
    # names for shared libraries.
12596
 
    no_undefined_flag_CXX='${wl}-z,text'
12597
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12598
 
    archive_cmds_need_lc_CXX=no
12599
 
    hardcode_shlibpath_var_CXX=no
12600
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12601
 
    hardcode_libdir_separator_CXX=':'
12602
 
    link_all_deplibs_CXX=yes
12603
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12604
 
    runpath_var='LD_RUN_PATH'
12605
 
 
12606
 
    case $cc_basename in
12607
 
      CC*)
12608
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12609
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12610
 
        ;;
12611
 
      *)
12612
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12613
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12614
 
        ;;
12615
 
    esac
 
12263
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
12264
    archive_cmds_need_lc_CXX=no
12616
12265
    ;;
12617
12266
  tandem*)
12618
12267
    case $cc_basename in
12619
 
      NCC*)
 
12268
      NCC)
12620
12269
        # NonStop-UX NCC 3.20
12621
12270
        # FIXME: insert proper C++ library support
12622
12271
        ld_shlibs_CXX=no
12669
12318
  # The `*' in the case matches for architectures that use `case' in
12670
12319
  # $output_verbose_cmd can trigger glob expansion during the loop
12671
12320
  # eval without this substitution.
12672
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12321
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12673
12322
 
12674
12323
  for p in `eval $output_verbose_link_cmd`; do
12675
12324
    case $p in
12745
12394
 
12746
12395
$rm -f confest.$objext
12747
12396
 
12748
 
# PORTME: override above test on systems where it is broken
12749
 
case $host_os in
12750
 
interix3*)
12751
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12752
 
  # hack all around it, let's just trust "g++" to DTRT.
12753
 
  predep_objects_CXX=
12754
 
  postdep_objects_CXX=
12755
 
  postdeps_CXX=
12756
 
  ;;
12757
 
 
12758
 
solaris*)
12759
 
  case $cc_basename in
12760
 
  CC*)
12761
 
    # Adding this requires a known-good setup of shared libraries for
12762
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12763
 
    # archive will be linked into the output, leading to subtle bugs.
12764
 
    postdeps_CXX='-lCstd -lCrun'
12765
 
    ;;
12766
 
  esac
12767
 
  ;;
12768
 
esac
12769
 
 
12770
 
 
12771
12397
case " $postdeps_CXX " in
12772
12398
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12773
12399
esac
12815
12441
      # DJGPP does not support shared libraries at all
12816
12442
      lt_prog_compiler_pic_CXX=
12817
12443
      ;;
12818
 
    interix3*)
12819
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12820
 
      # Instead, we relocate shared libraries at runtime.
12821
 
      ;;
12822
12444
    sysv4*MP*)
12823
12445
      if test -d /usr/nec; then
12824
12446
        lt_prog_compiler_pic_CXX=-Kconform_pic
12827
12449
    hpux*)
12828
12450
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12829
12451
      # not for PA HP-UX.
12830
 
      case $host_cpu in
 
12452
      case "$host_cpu" in
12831
12453
      hppa*64*|ia64*)
12832
12454
        ;;
12833
12455
      *)
12852
12474
        ;;
12853
12475
      chorus*)
12854
12476
        case $cc_basename in
12855
 
        cxch68*)
 
12477
        cxch68)
12856
12478
          # Green Hills C++ Compiler
12857
12479
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12858
12480
          ;;
12859
12481
        esac
12860
12482
        ;;
12861
 
       darwin*)
12862
 
         # PIC is the default on this platform
12863
 
         # Common symbols not allowed in MH_DYLIB files
12864
 
         case $cc_basename in
12865
 
           xlc*)
12866
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12867
 
           lt_prog_compiler_wl_CXX='-Wl,'
12868
 
           ;;
12869
 
         esac
12870
 
       ;;
12871
12483
      dgux*)
12872
12484
        case $cc_basename in
12873
 
          ec++*)
 
12485
          ec++)
12874
12486
            lt_prog_compiler_pic_CXX='-KPIC'
12875
12487
            ;;
12876
 
          ghcx*)
 
12488
          ghcx)
12877
12489
            # Green Hills C++ Compiler
12878
12490
            lt_prog_compiler_pic_CXX='-pic'
12879
12491
            ;;
12881
12493
            ;;
12882
12494
        esac
12883
12495
        ;;
12884
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12496
      freebsd* | kfreebsd*-gnu)
12885
12497
        # FreeBSD uses GNU C++
12886
12498
        ;;
12887
12499
      hpux9* | hpux10* | hpux11*)
12888
12500
        case $cc_basename in
12889
 
          CC*)
 
12501
          CC)
12890
12502
            lt_prog_compiler_wl_CXX='-Wl,'
12891
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12503
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12892
12504
            if test "$host_cpu" != ia64; then
12893
12505
              lt_prog_compiler_pic_CXX='+Z'
12894
12506
            fi
12895
12507
            ;;
12896
 
          aCC*)
 
12508
          aCC)
12897
12509
            lt_prog_compiler_wl_CXX='-Wl,'
12898
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12899
 
            case $host_cpu in
 
12510
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12511
            case "$host_cpu" in
12900
12512
            hppa*64*|ia64*)
12901
12513
              # +Z the default
12902
12514
              ;;
12909
12521
            ;;
12910
12522
        esac
12911
12523
        ;;
12912
 
      interix*)
12913
 
        # This is c89, which is MS Visual C++ (no shared libs)
12914
 
        # Anyone wants to do a port?
12915
 
        ;;
12916
12524
      irix5* | irix6* | nonstopux*)
12917
12525
        case $cc_basename in
12918
 
          CC*)
 
12526
          CC)
12919
12527
            lt_prog_compiler_wl_CXX='-Wl,'
12920
12528
            lt_prog_compiler_static_CXX='-non_shared'
12921
12529
            # CC pic flag -KPIC is the default.
12926
12534
        ;;
12927
12535
      linux*)
12928
12536
        case $cc_basename in
12929
 
          KCC*)
 
12537
          KCC)
12930
12538
            # KAI C++ Compiler
12931
12539
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12932
12540
            lt_prog_compiler_pic_CXX='-fPIC'
12933
12541
            ;;
12934
 
          icpc* | ecpc*)
 
12542
          icpc)
12935
12543
            # Intel C++
12936
12544
            lt_prog_compiler_wl_CXX='-Wl,'
12937
12545
            lt_prog_compiler_pic_CXX='-KPIC'
12938
12546
            lt_prog_compiler_static_CXX='-static'
12939
12547
            ;;
12940
 
          pgCC*)
12941
 
            # Portland Group C++ compiler.
12942
 
            lt_prog_compiler_wl_CXX='-Wl,'
12943
 
            lt_prog_compiler_pic_CXX='-fpic'
12944
 
            lt_prog_compiler_static_CXX='-Bstatic'
12945
 
            ;;
12946
 
          cxx*)
 
12548
          cxx)
12947
12549
            # Compaq C++
12948
12550
            # Make sure the PIC flag is empty.  It appears that all Alpha
12949
12551
            # Linux and Compaq Tru64 Unix objects are PIC.
12960
12562
        ;;
12961
12563
      mvs*)
12962
12564
        case $cc_basename in
12963
 
          cxx*)
 
12565
          cxx)
12964
12566
            lt_prog_compiler_pic_CXX='-W c,exportall'
12965
12567
            ;;
12966
12568
          *)
12967
12569
            ;;
12968
12570
        esac
12969
12571
        ;;
12970
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
12572
      netbsd*)
12971
12573
        ;;
12972
12574
      osf3* | osf4* | osf5*)
12973
12575
        case $cc_basename in
12974
 
          KCC*)
 
12576
          KCC)
12975
12577
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12976
12578
            ;;
12977
 
          RCC*)
 
12579
          RCC)
12978
12580
            # Rational C++ 2.4.1
12979
12581
            lt_prog_compiler_pic_CXX='-pic'
12980
12582
            ;;
12981
 
          cxx*)
 
12583
          cxx)
12982
12584
            # Digital/Compaq C++
12983
12585
            lt_prog_compiler_wl_CXX='-Wl,'
12984
12586
            # Make sure the PIC flag is empty.  It appears that all Alpha
12992
12594
        ;;
12993
12595
      psos*)
12994
12596
        ;;
 
12597
      sco*)
 
12598
        case $cc_basename in
 
12599
          CC)
 
12600
            lt_prog_compiler_pic_CXX='-fPIC'
 
12601
            ;;
 
12602
          *)
 
12603
            ;;
 
12604
        esac
 
12605
        ;;
12995
12606
      solaris*)
12996
12607
        case $cc_basename in
12997
 
          CC*)
 
12608
          CC)
12998
12609
            # Sun C++ 4.2, 5.x and Centerline C++
12999
12610
            lt_prog_compiler_pic_CXX='-KPIC'
13000
12611
            lt_prog_compiler_static_CXX='-Bstatic'
13001
12612
            lt_prog_compiler_wl_CXX='-Qoption ld '
13002
12613
            ;;
13003
 
          gcx*)
 
12614
          gcx)
13004
12615
            # Green Hills C++ Compiler
13005
12616
            lt_prog_compiler_pic_CXX='-PIC'
13006
12617
            ;;
13010
12621
        ;;
13011
12622
      sunos4*)
13012
12623
        case $cc_basename in
13013
 
          CC*)
 
12624
          CC)
13014
12625
            # Sun C++ 4.x
13015
12626
            lt_prog_compiler_pic_CXX='-pic'
13016
12627
            lt_prog_compiler_static_CXX='-Bstatic'
13017
12628
            ;;
13018
 
          lcc*)
 
12629
          lcc)
13019
12630
            # Lucid
13020
12631
            lt_prog_compiler_pic_CXX='-pic'
13021
12632
            ;;
13025
12636
        ;;
13026
12637
      tandem*)
13027
12638
        case $cc_basename in
13028
 
          NCC*)
 
12639
          NCC)
13029
12640
            # NonStop-UX NCC 3.20
13030
12641
            lt_prog_compiler_pic_CXX='-KPIC'
13031
12642
            ;;
13033
12644
            ;;
13034
12645
        esac
13035
12646
        ;;
13036
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13037
 
        case $cc_basename in
13038
 
          CC*)
13039
 
            lt_prog_compiler_wl_CXX='-Wl,'
13040
 
            lt_prog_compiler_pic_CXX='-KPIC'
13041
 
            lt_prog_compiler_static_CXX='-Bstatic'
13042
 
            ;;
13043
 
        esac
 
12647
      unixware*)
13044
12648
        ;;
13045
12649
      vxworks*)
13046
12650
        ;;
13073
12677
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13074
12678
   # The option is referenced via a variable to avoid confusing sed.
13075
12679
   lt_compile=`echo "$ac_compile" | $SED \
13076
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12680
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13077
12681
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13078
12682
   -e 's:$: $lt_compiler_flag:'`
13079
 
   (eval echo "\"\$as_me:13079: $lt_compile\"" >&5)
 
12683
   (eval echo "\"\$as_me:12683: $lt_compile\"" >&5)
13080
12684
   (eval "$lt_compile" 2>conftest.err)
13081
12685
   ac_status=$?
13082
12686
   cat conftest.err >&5
13083
 
   echo "$as_me:13083: \$? = $ac_status" >&5
 
12687
   echo "$as_me:12687: \$? = $ac_status" >&5
13084
12688
   if (exit $ac_status) && test -s "$ac_outfile"; then
13085
12689
     # The compiler can only warn and ignore the option if not recognized
13086
 
     # So say no if there are warnings other than the usual output.
13087
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13088
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13089
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12690
     # So say no if there are warnings
 
12691
     if test ! -s conftest.err; then
13090
12692
       lt_prog_compiler_pic_works_CXX=yes
13091
12693
     fi
13092
12694
   fi
13107
12709
fi
13108
12710
 
13109
12711
fi
13110
 
case $host_os in
 
12712
case "$host_os" in
13111
12713
  # For platforms which do not support PIC, -DPIC is meaningless:
13112
12714
  *djgpp*)
13113
12715
    lt_prog_compiler_pic_CXX=
13117
12719
    ;;
13118
12720
esac
13119
12721
 
13120
 
#
13121
 
# Check to make sure the static flag actually works.
13122
 
#
13123
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13124
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13125
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13126
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13127
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13128
 
else
13129
 
  lt_prog_compiler_static_works_CXX=no
13130
 
   save_LDFLAGS="$LDFLAGS"
13131
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13132
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13133
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13134
 
     # The linker can only warn and ignore the option if not recognized
13135
 
     # So say no if there are warnings
13136
 
     if test -s conftest.err; then
13137
 
       # Append any errors to the config.log.
13138
 
       cat conftest.err 1>&5
13139
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13140
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13141
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13142
 
         lt_prog_compiler_static_works_CXX=yes
13143
 
       fi
13144
 
     else
13145
 
       lt_prog_compiler_static_works_CXX=yes
13146
 
     fi
13147
 
   fi
13148
 
   $rm conftest*
13149
 
   LDFLAGS="$save_LDFLAGS"
13150
 
 
13151
 
fi
13152
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13153
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13154
 
 
13155
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13156
 
    :
13157
 
else
13158
 
    lt_prog_compiler_static_CXX=
13159
 
fi
13160
 
 
13161
 
 
13162
12722
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13163
12723
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13164
12724
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13177
12737
   # Note that $ac_compile itself does not contain backslashes and begins
13178
12738
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13179
12739
   lt_compile=`echo "$ac_compile" | $SED \
13180
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12740
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13181
12741
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13182
12742
   -e 's:$: $lt_compiler_flag:'`
13183
 
   (eval echo "\"\$as_me:13183: $lt_compile\"" >&5)
 
12743
   (eval echo "\"\$as_me:12743: $lt_compile\"" >&5)
13184
12744
   (eval "$lt_compile" 2>out/conftest.err)
13185
12745
   ac_status=$?
13186
12746
   cat out/conftest.err >&5
13187
 
   echo "$as_me:13187: \$? = $ac_status" >&5
 
12747
   echo "$as_me:12747: \$? = $ac_status" >&5
13188
12748
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13189
12749
   then
13190
12750
     # The compiler can only warn and ignore the option if not recognized
13191
12751
     # So say no if there are warnings
13192
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13193
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13194
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12752
     if test ! -s out/conftest.err; then
13195
12753
       lt_cv_prog_compiler_c_o_CXX=yes
13196
12754
     fi
13197
12755
   fi
13198
 
   chmod u+w . 2>&5
 
12756
   chmod u+w .
13199
12757
   $rm conftest*
13200
12758
   # SGI C++ compiler will create directory out/ii_files/ for
13201
12759
   # template instantiation
13250
12808
    export_symbols_cmds_CXX="$ltdll_cmds"
13251
12809
  ;;
13252
12810
  cygwin* | mingw*)
13253
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13254
 
  ;;
13255
 
  kfreebsd*-gnu)
13256
 
    link_all_deplibs_CXX=no
13257
 
  ;;
13258
 
  linux*)
13259
 
    link_all_deplibs_CXX=no
 
12811
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13260
12812
  ;;
13261
12813
  *)
13262
12814
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13267
12819
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13268
12820
test "$ld_shlibs_CXX" = no && can_build_shared=no
13269
12821
 
 
12822
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12823
if test "$GCC" = yes; then
 
12824
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12825
fi
 
12826
 
13270
12827
#
13271
12828
# Do we need to explicitly link libc?
13272
12829
#
13299
12856
        libobjs=conftest.$ac_objext
13300
12857
        deplibs=
13301
12858
        wl=$lt_prog_compiler_wl_CXX
13302
 
        pic_flag=$lt_prog_compiler_pic_CXX
13303
12859
        compiler_flags=-v
13304
12860
        linker_flags=-v
13305
12861
        verstring=
13432
12988
  shlibpath_var=LIBRARY_PATH
13433
12989
  ;;
13434
12990
 
13435
 
bsdi[45]*)
 
12991
bsdi4*)
13436
12992
  version_type=linux
13437
12993
  need_version=no
13438
12994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460
13016
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13461
13017
      dldir=$destdir/`dirname \$dlpath`~
13462
13018
      test -d \$dldir || mkdir -p \$dldir~
13463
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13464
 
      chmod a+x \$dldir/$dlname'
 
13019
      $install_prog $dir/$dlname \$dldir/$dlname'
13465
13020
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13466
13021
      dlpath=$dir/\$dldll~
13467
13022
       $rm \$dlpath'
13491
13046
      ;;
13492
13047
    pw32*)
13493
13048
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13494
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13049
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13495
13050
      ;;
13496
13051
    esac
13497
13052
    ;;
13514
13069
  soname_spec='${libname}${release}${major}$shared_ext'
13515
13070
  shlibpath_overrides_runpath=yes
13516
13071
  shlibpath_var=DYLD_LIBRARY_PATH
13517
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13072
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13518
13073
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13519
13074
  if test "$GCC" = yes; then
13520
13075
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13549
13104
  dynamic_linker='GNU ld.so'
13550
13105
  ;;
13551
13106
 
13552
 
freebsd* | dragonfly*)
13553
 
  # DragonFly does not have aout.  When/if they implement a new
13554
 
  # versioning mechanism, adjust this.
13555
 
  if test -x /usr/bin/objformat; then
13556
 
    objformat=`/usr/bin/objformat`
13557
 
  else
13558
 
    case $host_os in
13559
 
    freebsd[123]*) objformat=aout ;;
13560
 
    *) objformat=elf ;;
13561
 
    esac
13562
 
  fi
 
13107
freebsd*)
 
13108
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13563
13109
  version_type=freebsd-$objformat
13564
13110
  case $version_type in
13565
13111
    freebsd-elf*)
13577
13123
  freebsd2*)
13578
13124
    shlibpath_overrides_runpath=yes
13579
13125
    ;;
13580
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13126
  freebsd3.01* | freebsdelf3.01*)
13581
13127
    shlibpath_overrides_runpath=yes
13582
13128
    hardcode_into_libs=yes
13583
13129
    ;;
13584
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13585
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13130
  *) # from 3.2 on
13586
13131
    shlibpath_overrides_runpath=no
13587
13132
    hardcode_into_libs=yes
13588
13133
    ;;
13589
 
  freebsd*) # from 4.6 on
13590
 
    shlibpath_overrides_runpath=yes
13591
 
    hardcode_into_libs=yes
13592
 
    ;;
13593
13134
  esac
13594
13135
  ;;
13595
13136
 
13609
13150
  version_type=sunos
13610
13151
  need_lib_prefix=no
13611
13152
  need_version=no
13612
 
  case $host_cpu in
 
13153
  case "$host_cpu" in
13613
13154
  ia64*)
13614
13155
    shrext_cmds='.so'
13615
13156
    hardcode_into_libs=yes
13649
13190
  postinstall_cmds='chmod 555 $lib'
13650
13191
  ;;
13651
13192
 
13652
 
interix3*)
13653
 
  version_type=linux
13654
 
  need_lib_prefix=no
13655
 
  need_version=no
13656
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13657
 
  soname_spec='${libname}${release}${shared_ext}$major'
13658
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13659
 
  shlibpath_var=LD_LIBRARY_PATH
13660
 
  shlibpath_overrides_runpath=no
13661
 
  hardcode_into_libs=yes
13662
 
  ;;
13663
 
 
13664
13193
irix5* | irix6* | nonstopux*)
13665
13194
  case $host_os in
13666
13195
    nonstopux*) version_type=nonstopux ;;
13718
13247
  # before this can be enabled.
13719
13248
  hardcode_into_libs=yes
13720
13249
 
 
13250
  # find out which ABI we are using
 
13251
  libsuff=
 
13252
  case "$host_cpu" in
 
13253
  x86_64*|s390x*|powerpc64*)
 
13254
    echo '#line 13254 "configure"' > conftest.$ac_ext
 
13255
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13256
  (eval $ac_compile) 2>&5
 
13257
  ac_status=$?
 
13258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13259
  (exit $ac_status); }; then
 
13260
      case `/usr/bin/file conftest.$ac_objext` in
 
13261
      *64-bit*)
 
13262
        libsuff=64
 
13263
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13264
        ;;
 
13265
      esac
 
13266
    fi
 
13267
    rm -rf conftest*
 
13268
    ;;
 
13269
  esac
 
13270
 
13721
13271
  # Append ld.so.conf contents to the search path
13722
13272
  if test -f /etc/ld.so.conf; then
13723
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13724
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13273
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
13274
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13725
13275
  fi
13726
13276
 
13727
13277
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13733
13283
  dynamic_linker='GNU/Linux ld.so'
13734
13284
  ;;
13735
13285
 
13736
 
netbsdelf*-gnu)
13737
 
  version_type=linux
13738
 
  need_lib_prefix=no
13739
 
  need_version=no
13740
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13741
 
  soname_spec='${libname}${release}${shared_ext}$major'
13742
 
  shlibpath_var=LD_LIBRARY_PATH
13743
 
  shlibpath_overrides_runpath=no
13744
 
  hardcode_into_libs=yes
13745
 
  dynamic_linker='NetBSD ld.elf_so'
13746
 
  ;;
13747
 
 
13748
13286
knetbsd*-gnu)
13749
13287
  version_type=linux
13750
13288
  need_lib_prefix=no
13794
13332
 
13795
13333
openbsd*)
13796
13334
  version_type=sunos
13797
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13798
13335
  need_lib_prefix=no
13799
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13800
 
  case $host_os in
13801
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13802
 
    *)                         need_version=no  ;;
13803
 
  esac
 
13336
  need_version=yes
13804
13337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13805
13338
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13806
13339
  shlibpath_var=LD_LIBRARY_PATH
13838
13371
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13839
13372
  ;;
13840
13373
 
 
13374
sco3.2v5*)
 
13375
  version_type=osf
 
13376
  soname_spec='${libname}${release}${shared_ext}$major'
 
13377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13378
  shlibpath_var=LD_LIBRARY_PATH
 
13379
  ;;
 
13380
 
13841
13381
solaris*)
13842
13382
  version_type=linux
13843
13383
  need_lib_prefix=no
13863
13403
  need_version=yes
13864
13404
  ;;
13865
13405
 
13866
 
sysv4 | sysv4.3*)
 
13406
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13867
13407
  version_type=linux
13868
13408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869
13409
  soname_spec='${libname}${release}${shared_ext}$major'
13896
13436
  fi
13897
13437
  ;;
13898
13438
 
13899
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13900
 
  version_type=freebsd-elf
13901
 
  need_lib_prefix=no
13902
 
  need_version=no
13903
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13904
 
  soname_spec='${libname}${release}${shared_ext}$major'
13905
 
  shlibpath_var=LD_LIBRARY_PATH
13906
 
  hardcode_into_libs=yes
13907
 
  if test "$with_gnu_ld" = yes; then
13908
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13909
 
    shlibpath_overrides_runpath=no
13910
 
  else
13911
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13912
 
    shlibpath_overrides_runpath=yes
13913
 
    case $host_os in
13914
 
      sco3.2v5*)
13915
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13916
 
        ;;
13917
 
    esac
13918
 
  fi
13919
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13920
 
  ;;
13921
 
 
13922
13439
uts4*)
13923
13440
  version_type=linux
13924
13441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934
13451
echo "${ECHO_T}$dynamic_linker" >&6
13935
13452
test "$dynamic_linker" = no && can_build_shared=no
13936
13453
 
13937
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13938
 
if test "$GCC" = yes; then
13939
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13940
 
fi
13941
 
 
13942
13454
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13943
13455
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13944
13456
hardcode_action_CXX=
13945
13457
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13946
 
   test -n "$runpath_var_CXX" || \
13947
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13458
   test -n "$runpath_var CXX" || \
 
13459
   test "X$hardcode_automatic_CXX"="Xyes" ; then
13948
13460
 
13949
13461
  # We can hardcode non-existant directories.
13950
13462
  if test "$hardcode_direct_CXX" != no &&
13976
13488
  enable_fast_install=needless
13977
13489
fi
13978
13490
 
 
13491
striplib=
 
13492
old_striplib=
 
13493
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13494
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13495
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13496
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13497
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13498
  echo "$as_me:$LINENO: result: yes" >&5
 
13499
echo "${ECHO_T}yes" >&6
 
13500
else
 
13501
# FIXME - insert some real tests, host_os isn't really good enough
 
13502
  case $host_os in
 
13503
   darwin*)
 
13504
       if test -n "$STRIP" ; then
 
13505
         striplib="$STRIP -x"
 
13506
         echo "$as_me:$LINENO: result: yes" >&5
 
13507
echo "${ECHO_T}yes" >&6
 
13508
       else
 
13509
  echo "$as_me:$LINENO: result: no" >&5
 
13510
echo "${ECHO_T}no" >&6
 
13511
fi
 
13512
       ;;
 
13513
   *)
 
13514
  echo "$as_me:$LINENO: result: no" >&5
 
13515
echo "${ECHO_T}no" >&6
 
13516
    ;;
 
13517
  esac
 
13518
fi
 
13519
 
 
13520
if test "x$enable_dlopen" != xyes; then
 
13521
  enable_dlopen=unknown
 
13522
  enable_dlopen_self=unknown
 
13523
  enable_dlopen_self_static=unknown
 
13524
else
 
13525
  lt_cv_dlopen=no
 
13526
  lt_cv_dlopen_libs=
 
13527
 
 
13528
  case $host_os in
 
13529
  beos*)
 
13530
    lt_cv_dlopen="load_add_on"
 
13531
    lt_cv_dlopen_libs=
 
13532
    lt_cv_dlopen_self=yes
 
13533
    ;;
 
13534
 
 
13535
  mingw* | pw32*)
 
13536
    lt_cv_dlopen="LoadLibrary"
 
13537
    lt_cv_dlopen_libs=
 
13538
   ;;
 
13539
 
 
13540
  cygwin*)
 
13541
    lt_cv_dlopen="dlopen"
 
13542
    lt_cv_dlopen_libs=
 
13543
   ;;
 
13544
 
 
13545
  darwin*)
 
13546
  # if libdl is installed we need to link against it
 
13547
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13548
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13549
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13551
else
 
13552
  ac_check_lib_save_LIBS=$LIBS
 
13553
LIBS="-ldl  $LIBS"
 
13554
cat >conftest.$ac_ext <<_ACEOF
 
13555
/* confdefs.h.  */
 
13556
_ACEOF
 
13557
cat confdefs.h >>conftest.$ac_ext
 
13558
cat >>conftest.$ac_ext <<_ACEOF
 
13559
/* end confdefs.h.  */
 
13560
 
 
13561
/* Override any gcc2 internal prototype to avoid an error.  */
 
13562
#ifdef __cplusplus
 
13563
extern "C"
 
13564
#endif
 
13565
/* We use char because int might match the return type of a gcc2
 
13566
   builtin and then its argument prototype would still apply.  */
 
13567
char dlopen ();
 
13568
int
 
13569
main ()
 
13570
{
 
13571
dlopen ();
 
13572
  ;
 
13573
  return 0;
 
13574
}
 
13575
_ACEOF
 
13576
rm -f conftest.$ac_objext conftest$ac_exeext
 
13577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13578
  (eval $ac_link) 2>conftest.er1
 
13579
  ac_status=$?
 
13580
  grep -v '^ *+' conftest.er1 >conftest.err
 
13581
  rm -f conftest.er1
 
13582
  cat conftest.err >&5
 
13583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13584
  (exit $ac_status); } &&
 
13585
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13586
                         || test ! -s conftest.err'
 
13587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13588
  (eval $ac_try) 2>&5
 
13589
  ac_status=$?
 
13590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13591
  (exit $ac_status); }; } &&
 
13592
         { ac_try='test -s conftest$ac_exeext'
 
13593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13594
  (eval $ac_try) 2>&5
 
13595
  ac_status=$?
 
13596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13597
  (exit $ac_status); }; }; then
 
13598
  ac_cv_lib_dl_dlopen=yes
 
13599
else
 
13600
  echo "$as_me: failed program was:" >&5
 
13601
sed 's/^/| /' conftest.$ac_ext >&5
 
13602
 
 
13603
ac_cv_lib_dl_dlopen=no
 
13604
fi
 
13605
rm -f conftest.err conftest.$ac_objext \
 
13606
      conftest$ac_exeext conftest.$ac_ext
 
13607
LIBS=$ac_check_lib_save_LIBS
 
13608
fi
 
13609
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13610
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13611
if test $ac_cv_lib_dl_dlopen = yes; then
 
13612
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13613
else
 
13614
 
 
13615
    lt_cv_dlopen="dyld"
 
13616
    lt_cv_dlopen_libs=
 
13617
    lt_cv_dlopen_self=yes
 
13618
 
 
13619
fi
 
13620
 
 
13621
   ;;
 
13622
 
 
13623
  *)
 
13624
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13625
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13626
if test "${ac_cv_func_shl_load+set}" = set; then
 
13627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13628
else
 
13629
  cat >conftest.$ac_ext <<_ACEOF
 
13630
/* confdefs.h.  */
 
13631
_ACEOF
 
13632
cat confdefs.h >>conftest.$ac_ext
 
13633
cat >>conftest.$ac_ext <<_ACEOF
 
13634
/* end confdefs.h.  */
 
13635
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13636
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13637
#define shl_load innocuous_shl_load
 
13638
 
 
13639
/* System header to define __stub macros and hopefully few prototypes,
 
13640
    which can conflict with char shl_load (); below.
 
13641
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13642
    <limits.h> exists even on freestanding compilers.  */
 
13643
 
 
13644
#ifdef __STDC__
 
13645
# include <limits.h>
 
13646
#else
 
13647
# include <assert.h>
 
13648
#endif
 
13649
 
 
13650
#undef shl_load
 
13651
 
 
13652
/* Override any gcc2 internal prototype to avoid an error.  */
 
13653
#ifdef __cplusplus
 
13654
extern "C"
 
13655
{
 
13656
#endif
 
13657
/* We use char because int might match the return type of a gcc2
 
13658
   builtin and then its argument prototype would still apply.  */
 
13659
char shl_load ();
 
13660
/* The GNU C library defines this for functions which it implements
 
13661
    to always fail with ENOSYS.  Some functions are actually named
 
13662
    something starting with __ and the normal name is an alias.  */
 
13663
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13664
choke me
 
13665
#else
 
13666
char (*f) () = shl_load;
 
13667
#endif
 
13668
#ifdef __cplusplus
 
13669
}
 
13670
#endif
 
13671
 
 
13672
int
 
13673
main ()
 
13674
{
 
13675
return f != shl_load;
 
13676
  ;
 
13677
  return 0;
 
13678
}
 
13679
_ACEOF
 
13680
rm -f conftest.$ac_objext conftest$ac_exeext
 
13681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13682
  (eval $ac_link) 2>conftest.er1
 
13683
  ac_status=$?
 
13684
  grep -v '^ *+' conftest.er1 >conftest.err
 
13685
  rm -f conftest.er1
 
13686
  cat conftest.err >&5
 
13687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13688
  (exit $ac_status); } &&
 
13689
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13690
                         || test ! -s conftest.err'
 
13691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13692
  (eval $ac_try) 2>&5
 
13693
  ac_status=$?
 
13694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13695
  (exit $ac_status); }; } &&
 
13696
         { ac_try='test -s conftest$ac_exeext'
 
13697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13698
  (eval $ac_try) 2>&5
 
13699
  ac_status=$?
 
13700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13701
  (exit $ac_status); }; }; then
 
13702
  ac_cv_func_shl_load=yes
 
13703
else
 
13704
  echo "$as_me: failed program was:" >&5
 
13705
sed 's/^/| /' conftest.$ac_ext >&5
 
13706
 
 
13707
ac_cv_func_shl_load=no
 
13708
fi
 
13709
rm -f conftest.err conftest.$ac_objext \
 
13710
      conftest$ac_exeext conftest.$ac_ext
 
13711
fi
 
13712
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13713
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13714
if test $ac_cv_func_shl_load = yes; then
 
13715
  lt_cv_dlopen="shl_load"
 
13716
else
 
13717
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13718
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13719
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13721
else
 
13722
  ac_check_lib_save_LIBS=$LIBS
 
13723
LIBS="-ldld  $LIBS"
 
13724
cat >conftest.$ac_ext <<_ACEOF
 
13725
/* confdefs.h.  */
 
13726
_ACEOF
 
13727
cat confdefs.h >>conftest.$ac_ext
 
13728
cat >>conftest.$ac_ext <<_ACEOF
 
13729
/* end confdefs.h.  */
 
13730
 
 
13731
/* Override any gcc2 internal prototype to avoid an error.  */
 
13732
#ifdef __cplusplus
 
13733
extern "C"
 
13734
#endif
 
13735
/* We use char because int might match the return type of a gcc2
 
13736
   builtin and then its argument prototype would still apply.  */
 
13737
char shl_load ();
 
13738
int
 
13739
main ()
 
13740
{
 
13741
shl_load ();
 
13742
  ;
 
13743
  return 0;
 
13744
}
 
13745
_ACEOF
 
13746
rm -f conftest.$ac_objext conftest$ac_exeext
 
13747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13748
  (eval $ac_link) 2>conftest.er1
 
13749
  ac_status=$?
 
13750
  grep -v '^ *+' conftest.er1 >conftest.err
 
13751
  rm -f conftest.er1
 
13752
  cat conftest.err >&5
 
13753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13754
  (exit $ac_status); } &&
 
13755
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13756
                         || test ! -s conftest.err'
 
13757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13758
  (eval $ac_try) 2>&5
 
13759
  ac_status=$?
 
13760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13761
  (exit $ac_status); }; } &&
 
13762
         { ac_try='test -s conftest$ac_exeext'
 
13763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13764
  (eval $ac_try) 2>&5
 
13765
  ac_status=$?
 
13766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13767
  (exit $ac_status); }; }; then
 
13768
  ac_cv_lib_dld_shl_load=yes
 
13769
else
 
13770
  echo "$as_me: failed program was:" >&5
 
13771
sed 's/^/| /' conftest.$ac_ext >&5
 
13772
 
 
13773
ac_cv_lib_dld_shl_load=no
 
13774
fi
 
13775
rm -f conftest.err conftest.$ac_objext \
 
13776
      conftest$ac_exeext conftest.$ac_ext
 
13777
LIBS=$ac_check_lib_save_LIBS
 
13778
fi
 
13779
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13780
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13781
if test $ac_cv_lib_dld_shl_load = yes; then
 
13782
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13783
else
 
13784
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13785
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13786
if test "${ac_cv_func_dlopen+set}" = set; then
 
13787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13788
else
 
13789
  cat >conftest.$ac_ext <<_ACEOF
 
13790
/* confdefs.h.  */
 
13791
_ACEOF
 
13792
cat confdefs.h >>conftest.$ac_ext
 
13793
cat >>conftest.$ac_ext <<_ACEOF
 
13794
/* end confdefs.h.  */
 
13795
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13796
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13797
#define dlopen innocuous_dlopen
 
13798
 
 
13799
/* System header to define __stub macros and hopefully few prototypes,
 
13800
    which can conflict with char dlopen (); below.
 
13801
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13802
    <limits.h> exists even on freestanding compilers.  */
 
13803
 
 
13804
#ifdef __STDC__
 
13805
# include <limits.h>
 
13806
#else
 
13807
# include <assert.h>
 
13808
#endif
 
13809
 
 
13810
#undef dlopen
 
13811
 
 
13812
/* Override any gcc2 internal prototype to avoid an error.  */
 
13813
#ifdef __cplusplus
 
13814
extern "C"
 
13815
{
 
13816
#endif
 
13817
/* We use char because int might match the return type of a gcc2
 
13818
   builtin and then its argument prototype would still apply.  */
 
13819
char dlopen ();
 
13820
/* The GNU C library defines this for functions which it implements
 
13821
    to always fail with ENOSYS.  Some functions are actually named
 
13822
    something starting with __ and the normal name is an alias.  */
 
13823
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13824
choke me
 
13825
#else
 
13826
char (*f) () = dlopen;
 
13827
#endif
 
13828
#ifdef __cplusplus
 
13829
}
 
13830
#endif
 
13831
 
 
13832
int
 
13833
main ()
 
13834
{
 
13835
return f != dlopen;
 
13836
  ;
 
13837
  return 0;
 
13838
}
 
13839
_ACEOF
 
13840
rm -f conftest.$ac_objext conftest$ac_exeext
 
13841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13842
  (eval $ac_link) 2>conftest.er1
 
13843
  ac_status=$?
 
13844
  grep -v '^ *+' conftest.er1 >conftest.err
 
13845
  rm -f conftest.er1
 
13846
  cat conftest.err >&5
 
13847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13848
  (exit $ac_status); } &&
 
13849
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13850
                         || test ! -s conftest.err'
 
13851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13852
  (eval $ac_try) 2>&5
 
13853
  ac_status=$?
 
13854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13855
  (exit $ac_status); }; } &&
 
13856
         { ac_try='test -s conftest$ac_exeext'
 
13857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13858
  (eval $ac_try) 2>&5
 
13859
  ac_status=$?
 
13860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13861
  (exit $ac_status); }; }; then
 
13862
  ac_cv_func_dlopen=yes
 
13863
else
 
13864
  echo "$as_me: failed program was:" >&5
 
13865
sed 's/^/| /' conftest.$ac_ext >&5
 
13866
 
 
13867
ac_cv_func_dlopen=no
 
13868
fi
 
13869
rm -f conftest.err conftest.$ac_objext \
 
13870
      conftest$ac_exeext conftest.$ac_ext
 
13871
fi
 
13872
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13873
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13874
if test $ac_cv_func_dlopen = yes; then
 
13875
  lt_cv_dlopen="dlopen"
 
13876
else
 
13877
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13878
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13879
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13881
else
 
13882
  ac_check_lib_save_LIBS=$LIBS
 
13883
LIBS="-ldl  $LIBS"
 
13884
cat >conftest.$ac_ext <<_ACEOF
 
13885
/* confdefs.h.  */
 
13886
_ACEOF
 
13887
cat confdefs.h >>conftest.$ac_ext
 
13888
cat >>conftest.$ac_ext <<_ACEOF
 
13889
/* end confdefs.h.  */
 
13890
 
 
13891
/* Override any gcc2 internal prototype to avoid an error.  */
 
13892
#ifdef __cplusplus
 
13893
extern "C"
 
13894
#endif
 
13895
/* We use char because int might match the return type of a gcc2
 
13896
   builtin and then its argument prototype would still apply.  */
 
13897
char dlopen ();
 
13898
int
 
13899
main ()
 
13900
{
 
13901
dlopen ();
 
13902
  ;
 
13903
  return 0;
 
13904
}
 
13905
_ACEOF
 
13906
rm -f conftest.$ac_objext conftest$ac_exeext
 
13907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13908
  (eval $ac_link) 2>conftest.er1
 
13909
  ac_status=$?
 
13910
  grep -v '^ *+' conftest.er1 >conftest.err
 
13911
  rm -f conftest.er1
 
13912
  cat conftest.err >&5
 
13913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13914
  (exit $ac_status); } &&
 
13915
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13916
                         || test ! -s conftest.err'
 
13917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13918
  (eval $ac_try) 2>&5
 
13919
  ac_status=$?
 
13920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13921
  (exit $ac_status); }; } &&
 
13922
         { ac_try='test -s conftest$ac_exeext'
 
13923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13924
  (eval $ac_try) 2>&5
 
13925
  ac_status=$?
 
13926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13927
  (exit $ac_status); }; }; then
 
13928
  ac_cv_lib_dl_dlopen=yes
 
13929
else
 
13930
  echo "$as_me: failed program was:" >&5
 
13931
sed 's/^/| /' conftest.$ac_ext >&5
 
13932
 
 
13933
ac_cv_lib_dl_dlopen=no
 
13934
fi
 
13935
rm -f conftest.err conftest.$ac_objext \
 
13936
      conftest$ac_exeext conftest.$ac_ext
 
13937
LIBS=$ac_check_lib_save_LIBS
 
13938
fi
 
13939
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13940
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13941
if test $ac_cv_lib_dl_dlopen = yes; then
 
13942
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13943
else
 
13944
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13945
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13946
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13948
else
 
13949
  ac_check_lib_save_LIBS=$LIBS
 
13950
LIBS="-lsvld  $LIBS"
 
13951
cat >conftest.$ac_ext <<_ACEOF
 
13952
/* confdefs.h.  */
 
13953
_ACEOF
 
13954
cat confdefs.h >>conftest.$ac_ext
 
13955
cat >>conftest.$ac_ext <<_ACEOF
 
13956
/* end confdefs.h.  */
 
13957
 
 
13958
/* Override any gcc2 internal prototype to avoid an error.  */
 
13959
#ifdef __cplusplus
 
13960
extern "C"
 
13961
#endif
 
13962
/* We use char because int might match the return type of a gcc2
 
13963
   builtin and then its argument prototype would still apply.  */
 
13964
char dlopen ();
 
13965
int
 
13966
main ()
 
13967
{
 
13968
dlopen ();
 
13969
  ;
 
13970
  return 0;
 
13971
}
 
13972
_ACEOF
 
13973
rm -f conftest.$ac_objext conftest$ac_exeext
 
13974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13975
  (eval $ac_link) 2>conftest.er1
 
13976
  ac_status=$?
 
13977
  grep -v '^ *+' conftest.er1 >conftest.err
 
13978
  rm -f conftest.er1
 
13979
  cat conftest.err >&5
 
13980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13981
  (exit $ac_status); } &&
 
13982
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13983
                         || test ! -s conftest.err'
 
13984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13985
  (eval $ac_try) 2>&5
 
13986
  ac_status=$?
 
13987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13988
  (exit $ac_status); }; } &&
 
13989
         { ac_try='test -s conftest$ac_exeext'
 
13990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13991
  (eval $ac_try) 2>&5
 
13992
  ac_status=$?
 
13993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13994
  (exit $ac_status); }; }; then
 
13995
  ac_cv_lib_svld_dlopen=yes
 
13996
else
 
13997
  echo "$as_me: failed program was:" >&5
 
13998
sed 's/^/| /' conftest.$ac_ext >&5
 
13999
 
 
14000
ac_cv_lib_svld_dlopen=no
 
14001
fi
 
14002
rm -f conftest.err conftest.$ac_objext \
 
14003
      conftest$ac_exeext conftest.$ac_ext
 
14004
LIBS=$ac_check_lib_save_LIBS
 
14005
fi
 
14006
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14007
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14008
if test $ac_cv_lib_svld_dlopen = yes; then
 
14009
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14010
else
 
14011
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14012
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14013
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14015
else
 
14016
  ac_check_lib_save_LIBS=$LIBS
 
14017
LIBS="-ldld  $LIBS"
 
14018
cat >conftest.$ac_ext <<_ACEOF
 
14019
/* confdefs.h.  */
 
14020
_ACEOF
 
14021
cat confdefs.h >>conftest.$ac_ext
 
14022
cat >>conftest.$ac_ext <<_ACEOF
 
14023
/* end confdefs.h.  */
 
14024
 
 
14025
/* Override any gcc2 internal prototype to avoid an error.  */
 
14026
#ifdef __cplusplus
 
14027
extern "C"
 
14028
#endif
 
14029
/* We use char because int might match the return type of a gcc2
 
14030
   builtin and then its argument prototype would still apply.  */
 
14031
char dld_link ();
 
14032
int
 
14033
main ()
 
14034
{
 
14035
dld_link ();
 
14036
  ;
 
14037
  return 0;
 
14038
}
 
14039
_ACEOF
 
14040
rm -f conftest.$ac_objext conftest$ac_exeext
 
14041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14042
  (eval $ac_link) 2>conftest.er1
 
14043
  ac_status=$?
 
14044
  grep -v '^ *+' conftest.er1 >conftest.err
 
14045
  rm -f conftest.er1
 
14046
  cat conftest.err >&5
 
14047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14048
  (exit $ac_status); } &&
 
14049
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14050
                         || test ! -s conftest.err'
 
14051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14052
  (eval $ac_try) 2>&5
 
14053
  ac_status=$?
 
14054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14055
  (exit $ac_status); }; } &&
 
14056
         { ac_try='test -s conftest$ac_exeext'
 
14057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14058
  (eval $ac_try) 2>&5
 
14059
  ac_status=$?
 
14060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14061
  (exit $ac_status); }; }; then
 
14062
  ac_cv_lib_dld_dld_link=yes
 
14063
else
 
14064
  echo "$as_me: failed program was:" >&5
 
14065
sed 's/^/| /' conftest.$ac_ext >&5
 
14066
 
 
14067
ac_cv_lib_dld_dld_link=no
 
14068
fi
 
14069
rm -f conftest.err conftest.$ac_objext \
 
14070
      conftest$ac_exeext conftest.$ac_ext
 
14071
LIBS=$ac_check_lib_save_LIBS
 
14072
fi
 
14073
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14074
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14075
if test $ac_cv_lib_dld_dld_link = yes; then
 
14076
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14077
fi
 
14078
 
 
14079
 
 
14080
fi
 
14081
 
 
14082
 
 
14083
fi
 
14084
 
 
14085
 
 
14086
fi
 
14087
 
 
14088
 
 
14089
fi
 
14090
 
 
14091
 
 
14092
fi
 
14093
 
 
14094
    ;;
 
14095
  esac
 
14096
 
 
14097
  if test "x$lt_cv_dlopen" != xno; then
 
14098
    enable_dlopen=yes
 
14099
  else
 
14100
    enable_dlopen=no
 
14101
  fi
 
14102
 
 
14103
  case $lt_cv_dlopen in
 
14104
  dlopen)
 
14105
    save_CPPFLAGS="$CPPFLAGS"
 
14106
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
14107
 
 
14108
    save_LDFLAGS="$LDFLAGS"
 
14109
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
14110
 
 
14111
    save_LIBS="$LIBS"
 
14112
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
14113
 
 
14114
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14115
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
14116
if test "${lt_cv_dlopen_self+set}" = set; then
 
14117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14118
else
 
14119
          if test "$cross_compiling" = yes; then :
 
14120
  lt_cv_dlopen_self=cross
 
14121
else
 
14122
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14123
  lt_status=$lt_dlunknown
 
14124
  cat > conftest.$ac_ext <<EOF
 
14125
#line 14125 "configure"
 
14126
#include "confdefs.h"
 
14127
 
 
14128
#if HAVE_DLFCN_H
 
14129
#include <dlfcn.h>
 
14130
#endif
 
14131
 
 
14132
#include <stdio.h>
 
14133
 
 
14134
#ifdef RTLD_GLOBAL
 
14135
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14136
#else
 
14137
#  ifdef DL_GLOBAL
 
14138
#    define LT_DLGLOBAL         DL_GLOBAL
 
14139
#  else
 
14140
#    define LT_DLGLOBAL         0
 
14141
#  endif
 
14142
#endif
 
14143
 
 
14144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14145
   find out it does not work in some platform. */
 
14146
#ifndef LT_DLLAZY_OR_NOW
 
14147
#  ifdef RTLD_LAZY
 
14148
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14149
#  else
 
14150
#    ifdef DL_LAZY
 
14151
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14152
#    else
 
14153
#      ifdef RTLD_NOW
 
14154
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14155
#      else
 
14156
#        ifdef DL_NOW
 
14157
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14158
#        else
 
14159
#          define LT_DLLAZY_OR_NOW      0
 
14160
#        endif
 
14161
#      endif
 
14162
#    endif
 
14163
#  endif
 
14164
#endif
 
14165
 
 
14166
#ifdef __cplusplus
 
14167
extern "C" void exit (int);
 
14168
#endif
 
14169
 
 
14170
void fnord() { int i=42;}
 
14171
int main ()
 
14172
{
 
14173
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14174
  int status = $lt_dlunknown;
 
14175
 
 
14176
  if (self)
 
14177
    {
 
14178
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14179
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14180
      /* dlclose (self); */
 
14181
    }
 
14182
 
 
14183
    exit (status);
 
14184
}
 
14185
EOF
 
14186
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14187
  (eval $ac_link) 2>&5
 
14188
  ac_status=$?
 
14189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14190
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14191
    (./conftest; exit; ) 2>/dev/null
 
14192
    lt_status=$?
 
14193
    case x$lt_status in
 
14194
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14195
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14196
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14197
    esac
 
14198
  else :
 
14199
    # compilation failed
 
14200
    lt_cv_dlopen_self=no
 
14201
  fi
 
14202
fi
 
14203
rm -fr conftest*
 
14204
 
 
14205
 
 
14206
fi
 
14207
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14208
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14209
 
 
14210
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14211
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14212
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14213
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14214
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14216
else
 
14217
          if test "$cross_compiling" = yes; then :
 
14218
  lt_cv_dlopen_self_static=cross
 
14219
else
 
14220
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14221
  lt_status=$lt_dlunknown
 
14222
  cat > conftest.$ac_ext <<EOF
 
14223
#line 14223 "configure"
 
14224
#include "confdefs.h"
 
14225
 
 
14226
#if HAVE_DLFCN_H
 
14227
#include <dlfcn.h>
 
14228
#endif
 
14229
 
 
14230
#include <stdio.h>
 
14231
 
 
14232
#ifdef RTLD_GLOBAL
 
14233
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14234
#else
 
14235
#  ifdef DL_GLOBAL
 
14236
#    define LT_DLGLOBAL         DL_GLOBAL
 
14237
#  else
 
14238
#    define LT_DLGLOBAL         0
 
14239
#  endif
 
14240
#endif
 
14241
 
 
14242
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14243
   find out it does not work in some platform. */
 
14244
#ifndef LT_DLLAZY_OR_NOW
 
14245
#  ifdef RTLD_LAZY
 
14246
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14247
#  else
 
14248
#    ifdef DL_LAZY
 
14249
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14250
#    else
 
14251
#      ifdef RTLD_NOW
 
14252
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14253
#      else
 
14254
#        ifdef DL_NOW
 
14255
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14256
#        else
 
14257
#          define LT_DLLAZY_OR_NOW      0
 
14258
#        endif
 
14259
#      endif
 
14260
#    endif
 
14261
#  endif
 
14262
#endif
 
14263
 
 
14264
#ifdef __cplusplus
 
14265
extern "C" void exit (int);
 
14266
#endif
 
14267
 
 
14268
void fnord() { int i=42;}
 
14269
int main ()
 
14270
{
 
14271
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14272
  int status = $lt_dlunknown;
 
14273
 
 
14274
  if (self)
 
14275
    {
 
14276
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14277
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14278
      /* dlclose (self); */
 
14279
    }
 
14280
 
 
14281
    exit (status);
 
14282
}
 
14283
EOF
 
14284
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14285
  (eval $ac_link) 2>&5
 
14286
  ac_status=$?
 
14287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14288
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14289
    (./conftest; exit; ) 2>/dev/null
 
14290
    lt_status=$?
 
14291
    case x$lt_status in
 
14292
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
14293
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
14294
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
14295
    esac
 
14296
  else :
 
14297
    # compilation failed
 
14298
    lt_cv_dlopen_self_static=no
 
14299
  fi
 
14300
fi
 
14301
rm -fr conftest*
 
14302
 
 
14303
 
 
14304
fi
 
14305
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14306
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
14307
    fi
 
14308
 
 
14309
    CPPFLAGS="$save_CPPFLAGS"
 
14310
    LDFLAGS="$save_LDFLAGS"
 
14311
    LIBS="$save_LIBS"
 
14312
    ;;
 
14313
  esac
 
14314
 
 
14315
  case $lt_cv_dlopen_self in
 
14316
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
14317
  *) enable_dlopen_self=unknown ;;
 
14318
  esac
 
14319
 
 
14320
  case $lt_cv_dlopen_self_static in
 
14321
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
14322
  *) enable_dlopen_self_static=unknown ;;
 
14323
  esac
 
14324
fi
 
14325
 
13979
14326
 
13980
14327
# The else clause should only fire when bootstrapping the
13981
14328
# libtool distribution, otherwise you forgot to ship ltmain.sh
13990
14337
  # Now quote all the things that may contain metacharacters while being
13991
14338
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13992
14339
  # variables and quote the copies for generation of the libtool script.
13993
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14340
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13994
14341
    SED SHELL STRIP \
13995
14342
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13996
14343
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14091
14438
# The host system.
14092
14439
host_alias=$host_alias
14093
14440
host=$host
14094
 
host_os=$host_os
14095
 
 
14096
 
# The build system.
14097
 
build_alias=$build_alias
14098
 
build=$build
14099
 
build_os=$build_os
14100
14441
 
14101
14442
# An echo program that does not interpret backslashes.
14102
14443
echo=$lt_echo
14108
14449
# A C compiler.
14109
14450
LTCC=$lt_LTCC
14110
14451
 
14111
 
# LTCC compiler flags.
14112
 
LTCFLAGS=$lt_LTCFLAGS
14113
 
 
14114
14452
# A language-specific compiler.
14115
14453
CC=$lt_compiler_CXX
14116
14454
 
14176
14514
# Does compiler simultaneously support -c and -o options?
14177
14515
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14178
14516
 
14179
 
# Must we lock files when doing compilation?
 
14517
# Must we lock files when doing compilation ?
14180
14518
need_locks=$lt_need_locks
14181
14519
 
14182
14520
# Do we need the lib prefix for modules?
14453
14791
# If no C compiler was specified, use CC.
14454
14792
LTCC=${LTCC-"$CC"}
14455
14793
 
14456
 
# If no C compiler flags were specified, use CFLAGS.
14457
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14458
 
 
14459
14794
# Allow CC to be a program name with arguments.
14460
14795
compiler=$CC
14461
14796
 
14462
14797
 
14463
 
# save warnings/boilerplate of simple test code
14464
 
ac_outfile=conftest.$ac_objext
14465
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14466
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14467
 
_lt_compiler_boilerplate=`cat conftest.err`
14468
 
$rm conftest*
14469
 
 
14470
 
ac_outfile=conftest.$ac_objext
14471
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14472
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14473
 
_lt_linker_boilerplate=`cat conftest.err`
14474
 
$rm conftest*
14475
 
 
14476
 
 
14477
14798
# Allow CC to be a program name with arguments.
14478
14799
lt_save_CC="$CC"
14479
14800
CC=${F77-"f77"}
14480
14801
compiler=$CC
14481
14802
compiler_F77=$CC
14482
 
for cc_temp in $compiler""; do
14483
 
  case $cc_temp in
14484
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14485
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14486
 
    \-*) ;;
14487
 
    *) break;;
14488
 
  esac
14489
 
done
14490
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14491
 
 
 
14803
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14492
14804
 
14493
14805
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14494
14806
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14501
14813
 
14502
14814
# On AIX, shared libraries and static libraries use the same namespace, and
14503
14815
# are all built from PIC.
14504
 
case $host_os in
 
14816
case "$host_os" in
14505
14817
aix3*)
14506
14818
  test "$enable_shared" = yes && enable_static=no
14507
14819
  if test -n "$RANLIB"; then
14510
14822
  fi
14511
14823
  ;;
14512
14824
aix4* | aix5*)
14513
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14514
 
    test "$enable_shared" = yes && enable_static=no
14515
 
  fi
 
14825
  test "$enable_shared" = yes && enable_static=no
14516
14826
  ;;
14517
14827
esac
14518
14828
echo "$as_me:$LINENO: result: $enable_shared" >&5
14525
14835
echo "$as_me:$LINENO: result: $enable_static" >&5
14526
14836
echo "${ECHO_T}$enable_static" >&6
14527
14837
 
 
14838
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14839
 
14528
14840
GCC_F77="$G77"
14529
14841
LD_F77="$LD"
14530
14842
 
14571
14883
      lt_prog_compiler_pic_F77='-fno-common'
14572
14884
      ;;
14573
14885
 
14574
 
    interix3*)
14575
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14576
 
      # Instead, we relocate shared libraries at runtime.
14577
 
      ;;
14578
 
 
14579
14886
    msdosdjgpp*)
14580
14887
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14581
14888
      # on systems that don't support them.
14592
14899
    hpux*)
14593
14900
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14594
14901
      # not for PA HP-UX.
14595
 
      case $host_cpu in
 
14902
      case "$host_cpu" in
14596
14903
      hppa*64*|ia64*)
14597
14904
        # +Z the default
14598
14905
        ;;
14618
14925
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14619
14926
      fi
14620
14927
      ;;
14621
 
      darwin*)
14622
 
        # PIC is the default on this platform
14623
 
        # Common symbols not allowed in MH_DYLIB files
14624
 
       case $cc_basename in
14625
 
         xlc*)
14626
 
         lt_prog_compiler_pic_F77='-qnocommon'
14627
 
         lt_prog_compiler_wl_F77='-Wl,'
14628
 
         ;;
14629
 
       esac
14630
 
       ;;
14631
14928
 
14632
14929
    mingw* | pw32* | os2*)
14633
14930
      # This hack is so that the source file can tell whether it is being
14639
14936
      lt_prog_compiler_wl_F77='-Wl,'
14640
14937
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14641
14938
      # not for PA HP-UX.
14642
 
      case $host_cpu in
 
14939
      case "$host_cpu" in
14643
14940
      hppa*64*|ia64*)
14644
14941
        # +Z the default
14645
14942
        ;;
14663
14960
      ;;
14664
14961
 
14665
14962
    linux*)
14666
 
      case $cc_basename in
 
14963
      case $CC in
14667
14964
      icc* | ecc*)
14668
14965
        lt_prog_compiler_wl_F77='-Wl,'
14669
14966
        lt_prog_compiler_pic_F77='-KPIC'
14670
14967
        lt_prog_compiler_static_F77='-static'
14671
14968
        ;;
14672
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14673
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14674
 
        # which looks to be a dead project)
14675
 
        lt_prog_compiler_wl_F77='-Wl,'
14676
 
        lt_prog_compiler_pic_F77='-fpic'
14677
 
        lt_prog_compiler_static_F77='-Bstatic'
14678
 
        ;;
14679
14969
      ccc*)
14680
14970
        lt_prog_compiler_wl_F77='-Wl,'
14681
14971
        # All Alpha code is PIC.
14690
14980
      lt_prog_compiler_static_F77='-non_shared'
14691
14981
      ;;
14692
14982
 
 
14983
    sco3.2v5*)
 
14984
      lt_prog_compiler_pic_F77='-Kpic'
 
14985
      lt_prog_compiler_static_F77='-dn'
 
14986
      ;;
 
14987
 
14693
14988
    solaris*)
 
14989
      lt_prog_compiler_wl_F77='-Wl,'
14694
14990
      lt_prog_compiler_pic_F77='-KPIC'
14695
14991
      lt_prog_compiler_static_F77='-Bstatic'
14696
 
      case $cc_basename in
14697
 
      f77* | f90* | f95*)
14698
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14699
 
      *)
14700
 
        lt_prog_compiler_wl_F77='-Wl,';;
14701
 
      esac
14702
14992
      ;;
14703
14993
 
14704
14994
    sunos4*)
14707
14997
      lt_prog_compiler_static_F77='-Bstatic'
14708
14998
      ;;
14709
14999
 
14710
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15000
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14711
15001
      lt_prog_compiler_wl_F77='-Wl,'
14712
15002
      lt_prog_compiler_pic_F77='-KPIC'
14713
15003
      lt_prog_compiler_static_F77='-Bstatic'
14720
15010
      fi
14721
15011
      ;;
14722
15012
 
14723
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14724
 
      lt_prog_compiler_wl_F77='-Wl,'
14725
 
      lt_prog_compiler_pic_F77='-KPIC'
14726
 
      lt_prog_compiler_static_F77='-Bstatic'
14727
 
      ;;
14728
 
 
14729
 
    unicos*)
14730
 
      lt_prog_compiler_wl_F77='-Wl,'
14731
 
      lt_prog_compiler_can_build_shared_F77=no
14732
 
      ;;
14733
 
 
14734
15013
    uts4*)
14735
15014
      lt_prog_compiler_pic_F77='-pic'
14736
15015
      lt_prog_compiler_static_F77='-Bstatic'
14765
15044
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14766
15045
   # The option is referenced via a variable to avoid confusing sed.
14767
15046
   lt_compile=`echo "$ac_compile" | $SED \
14768
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15047
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14769
15048
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14770
15049
   -e 's:$: $lt_compiler_flag:'`
14771
 
   (eval echo "\"\$as_me:14771: $lt_compile\"" >&5)
 
15050
   (eval echo "\"\$as_me:15050: $lt_compile\"" >&5)
14772
15051
   (eval "$lt_compile" 2>conftest.err)
14773
15052
   ac_status=$?
14774
15053
   cat conftest.err >&5
14775
 
   echo "$as_me:14775: \$? = $ac_status" >&5
 
15054
   echo "$as_me:15054: \$? = $ac_status" >&5
14776
15055
   if (exit $ac_status) && test -s "$ac_outfile"; then
14777
15056
     # The compiler can only warn and ignore the option if not recognized
14778
 
     # So say no if there are warnings other than the usual output.
14779
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14780
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14781
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15057
     # So say no if there are warnings
 
15058
     if test ! -s conftest.err; then
14782
15059
       lt_prog_compiler_pic_works_F77=yes
14783
15060
     fi
14784
15061
   fi
14799
15076
fi
14800
15077
 
14801
15078
fi
14802
 
case $host_os in
 
15079
case "$host_os" in
14803
15080
  # For platforms which do not support PIC, -DPIC is meaningless:
14804
15081
  *djgpp*)
14805
15082
    lt_prog_compiler_pic_F77=
14809
15086
    ;;
14810
15087
esac
14811
15088
 
14812
 
#
14813
 
# Check to make sure the static flag actually works.
14814
 
#
14815
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14816
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14817
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14818
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14819
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14820
 
else
14821
 
  lt_prog_compiler_static_works_F77=no
14822
 
   save_LDFLAGS="$LDFLAGS"
14823
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14824
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14825
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14826
 
     # The linker can only warn and ignore the option if not recognized
14827
 
     # So say no if there are warnings
14828
 
     if test -s conftest.err; then
14829
 
       # Append any errors to the config.log.
14830
 
       cat conftest.err 1>&5
14831
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14832
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14833
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14834
 
         lt_prog_compiler_static_works_F77=yes
14835
 
       fi
14836
 
     else
14837
 
       lt_prog_compiler_static_works_F77=yes
14838
 
     fi
14839
 
   fi
14840
 
   $rm conftest*
14841
 
   LDFLAGS="$save_LDFLAGS"
14842
 
 
14843
 
fi
14844
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14845
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14846
 
 
14847
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14848
 
    :
14849
 
else
14850
 
    lt_prog_compiler_static_F77=
14851
 
fi
14852
 
 
14853
 
 
14854
15089
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14855
15090
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14856
15091
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14869
15104
   # Note that $ac_compile itself does not contain backslashes and begins
14870
15105
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14871
15106
   lt_compile=`echo "$ac_compile" | $SED \
14872
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15107
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14873
15108
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874
15109
   -e 's:$: $lt_compiler_flag:'`
14875
 
   (eval echo "\"\$as_me:14875: $lt_compile\"" >&5)
 
15110
   (eval echo "\"\$as_me:15110: $lt_compile\"" >&5)
14876
15111
   (eval "$lt_compile" 2>out/conftest.err)
14877
15112
   ac_status=$?
14878
15113
   cat out/conftest.err >&5
14879
 
   echo "$as_me:14879: \$? = $ac_status" >&5
 
15114
   echo "$as_me:15114: \$? = $ac_status" >&5
14880
15115
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14881
15116
   then
14882
15117
     # The compiler can only warn and ignore the option if not recognized
14883
15118
     # So say no if there are warnings
14884
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14885
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14886
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15119
     if test ! -s out/conftest.err; then
14887
15120
       lt_cv_prog_compiler_c_o_F77=yes
14888
15121
     fi
14889
15122
   fi
14890
 
   chmod u+w . 2>&5
 
15123
   chmod u+w .
14891
15124
   $rm conftest*
14892
15125
   # SGI C++ compiler will create directory out/ii_files/ for
14893
15126
   # template instantiation
14963
15196
  # rely on this symbol name, it's probably fine to never include it in
14964
15197
  # preloaded symbol tables.
14965
15198
  extract_expsyms_cmds=
14966
 
  # Just being paranoid about ensuring that cc_basename is set.
14967
 
  for cc_temp in $compiler""; do
14968
 
  case $cc_temp in
14969
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14970
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14971
 
    \-*) ;;
14972
 
    *) break;;
14973
 
  esac
14974
 
done
14975
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14976
15199
 
14977
15200
  case $host_os in
14978
15201
  cygwin* | mingw* | pw32*)
14983
15206
      with_gnu_ld=no
14984
15207
    fi
14985
15208
    ;;
14986
 
  interix*)
14987
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14988
 
    with_gnu_ld=yes
14989
 
    ;;
14990
15209
  openbsd*)
14991
15210
    with_gnu_ld=no
14992
15211
    ;;
14997
15216
    # If archive_cmds runs LD, not CC, wlarc should be empty
14998
15217
    wlarc='${wl}'
14999
15218
 
15000
 
    # Set some defaults for GNU ld with shared library support. These
15001
 
    # are reset later if shared libraries are not supported. Putting them
15002
 
    # here allows them to be overridden if necessary.
15003
 
    runpath_var=LD_RUN_PATH
15004
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15005
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15006
 
    # ancient GNU ld didn't support --whole-archive et. al.
15007
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15008
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15009
 
      else
15010
 
        whole_archive_flag_spec_F77=
15011
 
    fi
15012
 
    supports_anon_versioning=no
15013
 
    case `$LD -v 2>/dev/null` in
15014
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15015
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15016
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15017
 
      *\ 2.11.*) ;; # other 2.11 versions
15018
 
      *) supports_anon_versioning=yes ;;
15019
 
    esac
15020
 
 
15021
15219
    # See if GNU ld supports shared libraries.
15022
15220
    case $host_os in
15023
15221
    aix3* | aix4* | aix5*)
15068
15266
      allow_undefined_flag_F77=unsupported
15069
15267
      always_export_symbols_F77=no
15070
15268
      enable_shared_with_static_runtimes_F77=yes
15071
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15269
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15072
15270
 
15073
15271
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15074
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15272
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15075
15273
        # If the export-symbols file already is a .def file (1st line
15076
15274
        # is EXPORTS), use it as is; otherwise, prepend...
15077
15275
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15080
15278
          echo EXPORTS > $output_objdir/$soname.def;
15081
15279
          cat $export_symbols >> $output_objdir/$soname.def;
15082
15280
        fi~
15083
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15084
 
      else
15085
 
        ld_shlibs_F77=no
15086
 
      fi
15087
 
      ;;
15088
 
 
15089
 
    interix3*)
15090
 
      hardcode_direct_F77=no
15091
 
      hardcode_shlibpath_var_F77=no
15092
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15093
 
      export_dynamic_flag_spec_F77='${wl}-E'
15094
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15095
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15096
 
      # default) and relocated if they conflict, which is a slow very memory
15097
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
15098
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15099
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15100
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15101
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15102
 
      ;;
15103
 
 
15104
 
    linux*)
15105
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106
 
        tmp_addflag=
15107
 
        case $cc_basename,$host_cpu in
15108
 
        pgcc*)                          # Portland Group C compiler
15109
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15110
 
          tmp_addflag=' $pic_flag'
15111
 
          ;;
15112
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15113
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15114
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
15115
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15116
 
          tmp_addflag=' -i_dynamic' ;;
15117
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15118
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
15119
 
        ifc* | ifort*)                  # Intel Fortran compiler
15120
 
          tmp_addflag=' -nofor_main' ;;
15121
 
        esac
15122
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15123
 
 
15124
 
        if test $supports_anon_versioning = yes; then
15125
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15126
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15127
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15128
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15129
 
        fi
15130
 
        link_all_deplibs_F77=no
15131
 
      else
15132
 
        ld_shlibs_F77=no
15133
 
      fi
15134
 
      ;;
15135
 
 
15136
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15281
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15282
      else
 
15283
        ld_shlibs=no
 
15284
      fi
 
15285
      ;;
 
15286
 
 
15287
    netbsd*)
15137
15288
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138
15289
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139
15290
        wlarc=
15143
15294
      fi
15144
15295
      ;;
15145
15296
 
15146
 
    solaris*)
 
15297
    solaris* | sysv5*)
15147
15298
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148
15299
        ld_shlibs_F77=no
15149
15300
        cat <<EOF 1>&2
15164
15315
      fi
15165
15316
      ;;
15166
15317
 
15167
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168
 
      case `$LD -v 2>&1` in
15169
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15170
 
        ld_shlibs_F77=no
15171
 
        cat <<_LT_EOF 1>&2
15172
 
 
15173
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15175
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15176
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15177
 
*** your PATH or compiler configuration so that the native linker is
15178
 
*** used, and then restart.
15179
 
 
15180
 
_LT_EOF
15181
 
        ;;
15182
 
        *)
15183
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15185
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15186
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15187
 
          else
15188
 
            ld_shlibs_F77=no
15189
 
          fi
15190
 
        ;;
15191
 
      esac
15192
 
      ;;
15193
 
 
15194
15318
    sunos4*)
15195
15319
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196
15320
      wlarc=
15198
15322
      hardcode_shlibpath_var_F77=no
15199
15323
      ;;
15200
15324
 
 
15325
  linux*)
 
15326
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15327
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15328
        archive_cmds_F77="$tmp_archive_cmds"
 
15329
      supports_anon_versioning=no
 
15330
      case `$LD -v 2>/dev/null` in
 
15331
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15332
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15333
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15334
        *\ 2.11.*) ;; # other 2.11 versions
 
15335
        *) supports_anon_versioning=yes ;;
 
15336
      esac
 
15337
      if test $supports_anon_versioning = yes; then
 
15338
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15339
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15340
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15341
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15342
      else
 
15343
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
15344
      fi
 
15345
    else
 
15346
      ld_shlibs_F77=no
 
15347
    fi
 
15348
    ;;
 
15349
 
15201
15350
    *)
15202
15351
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15203
15352
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208
15357
      ;;
15209
15358
    esac
15210
15359
 
15211
 
    if test "$ld_shlibs_F77" = no; then
15212
 
      runpath_var=
15213
 
      hardcode_libdir_flag_spec_F77=
15214
 
      export_dynamic_flag_spec_F77=
15215
 
      whole_archive_flag_spec_F77=
 
15360
    if test "$ld_shlibs_F77" = yes; then
 
15361
      runpath_var=LD_RUN_PATH
 
15362
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15363
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15364
      # ancient GNU ld didn't support --whole-archive et. al.
 
15365
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15366
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15367
      else
 
15368
        whole_archive_flag_spec_F77=
 
15369
      fi
15216
15370
    fi
15217
15371
  else
15218
15372
    # PORTME fill in a description of your system's linker (not GNU ld)
15224
15378
      # Note: this linker hardcodes the directories in LIBPATH if there
15225
15379
      # are no directories specified by -L.
15226
15380
      hardcode_minus_L_F77=yes
15227
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15381
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15228
15382
        # Neither direct hardcoding nor static linking is supported with a
15229
15383
        # broken collect2.
15230
15384
        hardcode_direct_F77=unsupported
15258
15412
            break
15259
15413
          fi
15260
15414
          done
15261
 
          ;;
15262
15415
        esac
15263
15416
 
15264
15417
        exp_sym_flag='-bexport'
15277
15430
      link_all_deplibs_F77=yes
15278
15431
 
15279
15432
      if test "$GCC" = yes; then
15280
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
15433
        case $host_os in aix4.012|aix4.012.*)
15281
15434
        # We only want to do this on AIX 4.2 and lower, the check
15282
15435
        # below for broken collect2 doesn't work under 4.3+
15283
15436
          collect2name=`${CC} -print-prog-name=collect2`
15296
15449
          hardcode_libdir_flag_spec_F77='-L$libdir'
15297
15450
          hardcode_libdir_separator_F77=
15298
15451
          fi
15299
 
          ;;
15300
15452
        esac
15301
15453
        shared_flag='-shared'
15302
 
        if test "$aix_use_runtimelinking" = yes; then
15303
 
          shared_flag="$shared_flag "'${wl}-G'
15304
 
        fi
15305
15454
      else
15306
15455
        # not using gcc
15307
15456
        if test "$host_cpu" = ia64; then
15309
15458
        # chokes on -Wl,-G. The following line is correct:
15310
15459
          shared_flag='-G'
15311
15460
        else
15312
 
          if test "$aix_use_runtimelinking" = yes; then
 
15461
        if test "$aix_use_runtimelinking" = yes; then
15313
15462
            shared_flag='${wl}-G'
15314
15463
          else
15315
15464
            shared_flag='${wl}-bM:SRE'
15316
 
          fi
 
15465
        fi
15317
15466
        fi
15318
15467
      fi
15319
15468
 
15339
15488
  cat conftest.err >&5
15340
15489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341
15490
  (exit $ac_status); } &&
15342
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15491
         { ac_try='test -z "$ac_f77_werror_flag"
 
15492
                         || test ! -s conftest.err'
15343
15493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344
15494
  (eval $ac_try) 2>&5
15345
15495
  ac_status=$?
15367
15517
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15368
15518
 
15369
15519
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15370
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15520
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15371
15521
       else
15372
15522
        if test "$host_cpu" = ia64; then
15373
15523
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15374
15524
          allow_undefined_flag_F77="-z nodefs"
15375
 
          archive_expsym_cmds_F77="\$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"
 
15525
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15376
15526
        else
15377
15527
         # Determine the default libpath from the value encoded in an empty executable.
15378
15528
         cat >conftest.$ac_ext <<_ACEOF
15389
15539
  cat conftest.err >&5
15390
15540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391
15541
  (exit $ac_status); } &&
15392
 
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15542
         { ac_try='test -z "$ac_f77_werror_flag"
 
15543
                         || test ! -s conftest.err'
15393
15544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394
15545
  (eval $ac_try) 2>&5
15395
15546
  ac_status=$?
15421
15572
          # -berok will link without error, but may produce a broken library.
15422
15573
          no_undefined_flag_F77=' ${wl}-bernotok'
15423
15574
          allow_undefined_flag_F77=' ${wl}-berok'
 
15575
          # -bexpall does not export symbols beginning with underscore (_)
 
15576
          always_export_symbols_F77=yes
15424
15577
          # Exported symbols can be pulled into shared objects from archives
15425
 
          whole_archive_flag_spec_F77='$convenience'
 
15578
          whole_archive_flag_spec_F77=' '
15426
15579
          archive_cmds_need_lc_F77=yes
15427
 
          # This is similar to how AIX traditionally builds its shared libraries.
15428
 
          archive_expsym_cmds_F77="\$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'
 
15580
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15581
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15429
15582
        fi
15430
15583
      fi
15431
15584
      ;;
15438
15591
      ld_shlibs_F77=no
15439
15592
      ;;
15440
15593
 
15441
 
    bsdi[45]*)
 
15594
    bsdi4*)
15442
15595
      export_dynamic_flag_spec_F77=-rdynamic
15443
15596
      ;;
15444
15597
 
15459
15612
      old_archive_From_new_cmds_F77='true'
15460
15613
      # FIXME: Should let the user specify the lib program.
15461
15614
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15462
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15615
      fix_srcfile_path='`cygpath -w "$srcfile"`'
15463
15616
      enable_shared_with_static_runtimes_F77=yes
15464
15617
      ;;
15465
15618
 
15466
15619
    darwin* | rhapsody*)
15467
 
      case $host_os in
15468
 
        rhapsody* | darwin1.[012])
15469
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15470
 
         ;;
15471
 
       *) # Darwin 1.3 on
15472
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15473
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15474
 
         else
15475
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15476
 
             10.[012])
15477
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15478
 
               ;;
15479
 
             10.*)
15480
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15481
 
               ;;
15482
 
           esac
15483
 
         fi
15484
 
         ;;
 
15620
    if test "$GXX" = yes ; then
 
15621
      archive_cmds_need_lc_F77=no
 
15622
      case "$host_os" in
 
15623
      rhapsody* | darwin1.[012])
 
15624
        allow_undefined_flag_F77='-undefined suppress'
 
15625
        ;;
 
15626
      *) # Darwin 1.3 on
 
15627
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15628
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15629
      else
 
15630
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15631
          10.[012])
 
15632
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15633
            ;;
 
15634
          10.*)
 
15635
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
15636
            ;;
 
15637
        esac
 
15638
      fi
 
15639
        ;;
15485
15640
      esac
15486
 
      archive_cmds_need_lc_F77=no
 
15641
        lt_int_apple_cc_single_mod=no
 
15642
        output_verbose_link_cmd='echo'
 
15643
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15644
          lt_int_apple_cc_single_mod=yes
 
15645
        fi
 
15646
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15647
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15648
        else
 
15649
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15650
      fi
 
15651
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15652
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15653
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15654
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15655
        else
 
15656
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15657
        fi
 
15658
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15487
15659
      hardcode_direct_F77=no
15488
15660
      hardcode_automatic_F77=yes
15489
15661
      hardcode_shlibpath_var_F77=unsupported
15490
 
      whole_archive_flag_spec_F77=''
 
15662
      whole_archive_flag_spec_F77='-all_load $convenience'
15491
15663
      link_all_deplibs_F77=yes
15492
 
    if test "$GCC" = yes ; then
15493
 
        output_verbose_link_cmd='echo'
15494
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15495
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15496
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15497
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15498
 
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15499
15664
    else
15500
 
      case $cc_basename in
15501
 
        xlc*)
15502
 
         output_verbose_link_cmd='echo'
15503
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15504
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15505
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15506
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15507
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15508
 
          ;;
15509
 
       *)
15510
 
         ld_shlibs_F77=no
15511
 
          ;;
15512
 
      esac
 
15665
      ld_shlibs_F77=no
15513
15666
    fi
15514
15667
      ;;
15515
15668
 
15543
15696
      ;;
15544
15697
 
15545
15698
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15546
 
    freebsd* | dragonfly*)
15547
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15548
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15549
 
      hardcode_direct_F77=yes
15550
 
      hardcode_shlibpath_var_F77=no
15551
 
      ;;
15552
 
 
15553
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
15554
 
    kfreebsd*-gnu)
15555
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15556
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15557
 
      hardcode_direct_F77=yes
15558
 
      hardcode_shlibpath_var_F77=no
15559
 
      link_all_deplibs_F77=no
 
15699
    freebsd* | kfreebsd*-gnu)
 
15700
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15701
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15702
      hardcode_direct_F77=yes
 
15703
      hardcode_shlibpath_var_F77=no
15560
15704
      ;;
15561
15705
 
15562
15706
    hpux9*)
15575
15719
      export_dynamic_flag_spec_F77='${wl}-E'
15576
15720
      ;;
15577
15721
 
15578
 
    hpux10*)
15579
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15580
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15581
 
      else
15582
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15583
 
      fi
15584
 
      if test "$with_gnu_ld" = no; then
15585
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15586
 
        hardcode_libdir_separator_F77=:
15587
 
 
15588
 
        hardcode_direct_F77=yes
15589
 
        export_dynamic_flag_spec_F77='${wl}-E'
15590
 
 
15591
 
        # hardcode_minus_L: Not really in the search PATH,
15592
 
        # but as the default location of the library.
15593
 
        hardcode_minus_L_F77=yes
15594
 
      fi
15595
 
      ;;
15596
 
 
15597
 
    hpux11*)
15598
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15599
 
        case $host_cpu in
15600
 
        hppa*64*)
 
15722
    hpux10* | hpux11*)
 
15723
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15724
        case "$host_cpu" in
 
15725
        hppa*64*|ia64*)
15601
15726
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602
15727
          ;;
15603
 
        ia64*)
15604
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15605
 
          ;;
15606
15728
        *)
15607
15729
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15608
15730
          ;;
15609
15731
        esac
15610
15732
      else
15611
 
        case $host_cpu in
15612
 
        hppa*64*)
15613
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614
 
          ;;
15615
 
        ia64*)
15616
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15733
        case "$host_cpu" in
 
15734
        hppa*64*|ia64*)
 
15735
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15617
15736
          ;;
15618
15737
        *)
15619
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15738
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15620
15739
          ;;
15621
15740
        esac
15622
15741
      fi
15623
15742
      if test "$with_gnu_ld" = no; then
15624
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15625
 
        hardcode_libdir_separator_F77=:
15626
 
 
15627
 
        case $host_cpu in
15628
 
        hppa*64*|ia64*)
 
15743
        case "$host_cpu" in
 
15744
        hppa*64*)
 
15745
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15629
15746
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15630
 
          hardcode_direct_F77=no
15631
 
          hardcode_shlibpath_var_F77=no
 
15747
          hardcode_libdir_separator_F77=:
 
15748
          hardcode_direct_F77=no
 
15749
          hardcode_shlibpath_var_F77=no
 
15750
          ;;
 
15751
        ia64*)
 
15752
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15753
          hardcode_direct_F77=no
 
15754
          hardcode_shlibpath_var_F77=no
 
15755
 
 
15756
          # hardcode_minus_L: Not really in the search PATH,
 
15757
          # but as the default location of the library.
 
15758
          hardcode_minus_L_F77=yes
15632
15759
          ;;
15633
15760
        *)
 
15761
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15762
          hardcode_libdir_separator_F77=:
15634
15763
          hardcode_direct_F77=yes
15635
15764
          export_dynamic_flag_spec_F77='${wl}-E'
15636
15765
 
15654
15783
      link_all_deplibs_F77=yes
15655
15784
      ;;
15656
15785
 
15657
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15786
    netbsd*)
15658
15787
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15659
15788
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15660
15789
      else
15678
15807
      hardcode_shlibpath_var_F77=no
15679
15808
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15680
15809
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15681
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15682
15810
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15683
15811
        export_dynamic_flag_spec_F77='${wl}-E'
15684
15812
      else
15724
15852
        allow_undefined_flag_F77=' -expect_unresolved \*'
15725
15853
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15726
15854
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15727
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15855
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15728
15856
 
15729
15857
        # Both c and cxx compiler support -rpath directly
15730
15858
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15732
15860
      hardcode_libdir_separator_F77=:
15733
15861
      ;;
15734
15862
 
 
15863
    sco3.2v5*)
 
15864
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15865
      hardcode_shlibpath_var_F77=no
 
15866
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15867
      runpath_var=LD_RUN_PATH
 
15868
      hardcode_runpath_var=yes
 
15869
      ;;
 
15870
 
15735
15871
    solaris*)
15736
15872
      no_undefined_flag_F77=' -z text'
15737
15873
      if test "$GCC" = yes; then
15738
 
        wlarc='${wl}'
15739
15874
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15740
15875
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15741
15876
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15742
15877
      else
15743
 
        wlarc=''
15744
15878
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745
15879
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15746
15880
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15749
15883
      hardcode_shlibpath_var_F77=no
15750
15884
      case $host_os in
15751
15885
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15752
 
      *)
15753
 
        # The compiler driver will combine linker options so we
15754
 
        # cannot just pass the convience library names through
15755
 
        # without $wl, iff we do not link with $LD.
15756
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
15757
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15758
 
        case $wlarc in
15759
 
        '')
15760
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15761
 
        *)
15762
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15763
 
        esac ;;
 
15886
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15887
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15764
15888
      esac
15765
15889
      link_all_deplibs_F77=yes
15766
15890
      ;;
15817
15941
      fi
15818
15942
      ;;
15819
15943
 
15820
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15821
 
      no_undefined_flag_F77='${wl}-z,text'
15822
 
      archive_cmds_need_lc_F77=no
15823
 
      hardcode_shlibpath_var_F77=no
15824
 
      runpath_var='LD_RUN_PATH'
15825
 
 
15826
 
      if test "$GCC" = yes; then
15827
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15828
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15829
 
      else
15830
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15832
 
      fi
15833
 
      ;;
15834
 
 
15835
 
    sysv5* | sco3.2v5* | sco5v6*)
15836
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15837
 
      # link with -lc, and that would cause any symbols used from libc to
15838
 
      # always be unresolved, which means just about no library would
15839
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15840
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15841
 
      # as -z defs.
15842
 
      no_undefined_flag_F77='${wl}-z,text'
15843
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15844
 
      archive_cmds_need_lc_F77=no
15845
 
      hardcode_shlibpath_var_F77=no
15846
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15847
 
      hardcode_libdir_separator_F77=':'
15848
 
      link_all_deplibs_F77=yes
15849
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15850
 
      runpath_var='LD_RUN_PATH'
15851
 
 
15852
 
      if test "$GCC" = yes; then
15853
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15854
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15855
 
      else
15856
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858
 
      fi
 
15944
    sysv4.2uw2*)
 
15945
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15946
      hardcode_direct_F77=yes
 
15947
      hardcode_minus_L_F77=no
 
15948
      hardcode_shlibpath_var_F77=no
 
15949
      hardcode_runpath_var=yes
 
15950
      runpath_var=LD_RUN_PATH
 
15951
      ;;
 
15952
 
 
15953
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15954
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15955
      if test "$GCC" = yes; then
 
15956
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15957
      else
 
15958
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15959
      fi
 
15960
      runpath_var='LD_RUN_PATH'
 
15961
      hardcode_shlibpath_var_F77=no
 
15962
      ;;
 
15963
 
 
15964
    sysv5*)
 
15965
      no_undefined_flag_F77=' -z text'
 
15966
      # $CC -shared without GNU ld will not create a library from C++
 
15967
      # object files and a static libstdc++, better avoid it by now
 
15968
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15969
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15970
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15971
      hardcode_libdir_flag_spec_F77=
 
15972
      hardcode_shlibpath_var_F77=no
 
15973
      runpath_var='LD_RUN_PATH'
15859
15974
      ;;
15860
15975
 
15861
15976
    uts4*)
15874
15989
echo "${ECHO_T}$ld_shlibs_F77" >&6
15875
15990
test "$ld_shlibs_F77" = no && can_build_shared=no
15876
15991
 
 
15992
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15993
if test "$GCC" = yes; then
 
15994
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15995
fi
 
15996
 
15877
15997
#
15878
15998
# Do we need to explicitly link libc?
15879
15999
#
15906
16026
        libobjs=conftest.$ac_objext
15907
16027
        deplibs=
15908
16028
        wl=$lt_prog_compiler_wl_F77
15909
 
        pic_flag=$lt_prog_compiler_pic_F77
15910
16029
        compiler_flags=-v
15911
16030
        linker_flags=-v
15912
16031
        verstring=
16039
16158
  shlibpath_var=LIBRARY_PATH
16040
16159
  ;;
16041
16160
 
16042
 
bsdi[45]*)
 
16161
bsdi4*)
16043
16162
  version_type=linux
16044
16163
  need_version=no
16045
16164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067
16186
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16068
16187
      dldir=$destdir/`dirname \$dlpath`~
16069
16188
      test -d \$dldir || mkdir -p \$dldir~
16070
 
      $install_prog $dir/$dlname \$dldir/$dlname~
16071
 
      chmod a+x \$dldir/$dlname'
 
16189
      $install_prog $dir/$dlname \$dldir/$dlname'
16072
16190
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16073
16191
      dlpath=$dir/\$dldll~
16074
16192
       $rm \$dlpath'
16098
16216
      ;;
16099
16217
    pw32*)
16100
16218
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16101
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16219
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16102
16220
      ;;
16103
16221
    esac
16104
16222
    ;;
16121
16239
  soname_spec='${libname}${release}${major}$shared_ext'
16122
16240
  shlibpath_overrides_runpath=yes
16123
16241
  shlibpath_var=DYLD_LIBRARY_PATH
16124
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16242
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16125
16243
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16126
16244
  if test "$GCC" = yes; then
16127
16245
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16156
16274
  dynamic_linker='GNU ld.so'
16157
16275
  ;;
16158
16276
 
16159
 
freebsd* | dragonfly*)
16160
 
  # DragonFly does not have aout.  When/if they implement a new
16161
 
  # versioning mechanism, adjust this.
16162
 
  if test -x /usr/bin/objformat; then
16163
 
    objformat=`/usr/bin/objformat`
16164
 
  else
16165
 
    case $host_os in
16166
 
    freebsd[123]*) objformat=aout ;;
16167
 
    *) objformat=elf ;;
16168
 
    esac
16169
 
  fi
 
16277
freebsd*)
 
16278
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16170
16279
  version_type=freebsd-$objformat
16171
16280
  case $version_type in
16172
16281
    freebsd-elf*)
16184
16293
  freebsd2*)
16185
16294
    shlibpath_overrides_runpath=yes
16186
16295
    ;;
16187
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16296
  freebsd3.01* | freebsdelf3.01*)
16188
16297
    shlibpath_overrides_runpath=yes
16189
16298
    hardcode_into_libs=yes
16190
16299
    ;;
16191
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16192
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16300
  *) # from 3.2 on
16193
16301
    shlibpath_overrides_runpath=no
16194
16302
    hardcode_into_libs=yes
16195
16303
    ;;
16196
 
  freebsd*) # from 4.6 on
16197
 
    shlibpath_overrides_runpath=yes
16198
 
    hardcode_into_libs=yes
16199
 
    ;;
16200
16304
  esac
16201
16305
  ;;
16202
16306
 
16216
16320
  version_type=sunos
16217
16321
  need_lib_prefix=no
16218
16322
  need_version=no
16219
 
  case $host_cpu in
 
16323
  case "$host_cpu" in
16220
16324
  ia64*)
16221
16325
    shrext_cmds='.so'
16222
16326
    hardcode_into_libs=yes
16256
16360
  postinstall_cmds='chmod 555 $lib'
16257
16361
  ;;
16258
16362
 
16259
 
interix3*)
16260
 
  version_type=linux
16261
 
  need_lib_prefix=no
16262
 
  need_version=no
16263
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16264
 
  soname_spec='${libname}${release}${shared_ext}$major'
16265
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16266
 
  shlibpath_var=LD_LIBRARY_PATH
16267
 
  shlibpath_overrides_runpath=no
16268
 
  hardcode_into_libs=yes
16269
 
  ;;
16270
 
 
16271
16363
irix5* | irix6* | nonstopux*)
16272
16364
  case $host_os in
16273
16365
    nonstopux*) version_type=nonstopux ;;
16325
16417
  # before this can be enabled.
16326
16418
  hardcode_into_libs=yes
16327
16419
 
 
16420
  # find out which ABI we are using
 
16421
  libsuff=
 
16422
  case "$host_cpu" in
 
16423
  x86_64*|s390x*|powerpc64*)
 
16424
    echo '#line 16424 "configure"' > conftest.$ac_ext
 
16425
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16426
  (eval $ac_compile) 2>&5
 
16427
  ac_status=$?
 
16428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16429
  (exit $ac_status); }; then
 
16430
      case `/usr/bin/file conftest.$ac_objext` in
 
16431
      *64-bit*)
 
16432
        libsuff=64
 
16433
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
16434
        ;;
 
16435
      esac
 
16436
    fi
 
16437
    rm -rf conftest*
 
16438
    ;;
 
16439
  esac
 
16440
 
16328
16441
  # Append ld.so.conf contents to the search path
16329
16442
  if test -f /etc/ld.so.conf; then
16330
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16331
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16443
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16444
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16332
16445
  fi
16333
16446
 
16334
16447
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16340
16453
  dynamic_linker='GNU/Linux ld.so'
16341
16454
  ;;
16342
16455
 
16343
 
netbsdelf*-gnu)
16344
 
  version_type=linux
16345
 
  need_lib_prefix=no
16346
 
  need_version=no
16347
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16348
 
  soname_spec='${libname}${release}${shared_ext}$major'
16349
 
  shlibpath_var=LD_LIBRARY_PATH
16350
 
  shlibpath_overrides_runpath=no
16351
 
  hardcode_into_libs=yes
16352
 
  dynamic_linker='NetBSD ld.elf_so'
16353
 
  ;;
16354
 
 
16355
16456
knetbsd*-gnu)
16356
16457
  version_type=linux
16357
16458
  need_lib_prefix=no
16401
16502
 
16402
16503
openbsd*)
16403
16504
  version_type=sunos
16404
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16405
16505
  need_lib_prefix=no
16406
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16407
 
  case $host_os in
16408
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16409
 
    *)                         need_version=no  ;;
16410
 
  esac
 
16506
  need_version=yes
16411
16507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16412
16508
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16413
16509
  shlibpath_var=LD_LIBRARY_PATH
16445
16541
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16446
16542
  ;;
16447
16543
 
 
16544
sco3.2v5*)
 
16545
  version_type=osf
 
16546
  soname_spec='${libname}${release}${shared_ext}$major'
 
16547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16548
  shlibpath_var=LD_LIBRARY_PATH
 
16549
  ;;
 
16550
 
16448
16551
solaris*)
16449
16552
  version_type=linux
16450
16553
  need_lib_prefix=no
16470
16573
  need_version=yes
16471
16574
  ;;
16472
16575
 
16473
 
sysv4 | sysv4.3*)
 
16576
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16474
16577
  version_type=linux
16475
16578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476
16579
  soname_spec='${libname}${release}${shared_ext}$major'
16503
16606
  fi
16504
16607
  ;;
16505
16608
 
16506
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16507
 
  version_type=freebsd-elf
16508
 
  need_lib_prefix=no
16509
 
  need_version=no
16510
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16511
 
  soname_spec='${libname}${release}${shared_ext}$major'
16512
 
  shlibpath_var=LD_LIBRARY_PATH
16513
 
  hardcode_into_libs=yes
16514
 
  if test "$with_gnu_ld" = yes; then
16515
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16516
 
    shlibpath_overrides_runpath=no
16517
 
  else
16518
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16519
 
    shlibpath_overrides_runpath=yes
16520
 
    case $host_os in
16521
 
      sco3.2v5*)
16522
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16523
 
        ;;
16524
 
    esac
16525
 
  fi
16526
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16527
 
  ;;
16528
 
 
16529
16609
uts4*)
16530
16610
  version_type=linux
16531
16611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541
16621
echo "${ECHO_T}$dynamic_linker" >&6
16542
16622
test "$dynamic_linker" = no && can_build_shared=no
16543
16623
 
16544
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16545
 
if test "$GCC" = yes; then
16546
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16547
 
fi
16548
 
 
16549
16624
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16550
16625
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16551
16626
hardcode_action_F77=
16552
16627
if test -n "$hardcode_libdir_flag_spec_F77" || \
16553
 
   test -n "$runpath_var_F77" || \
16554
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16628
   test -n "$runpath_var F77" || \
 
16629
   test "X$hardcode_automatic_F77"="Xyes" ; then
16555
16630
 
16556
16631
  # We can hardcode non-existant directories.
16557
16632
  if test "$hardcode_direct_F77" != no &&
16583
16658
  enable_fast_install=needless
16584
16659
fi
16585
16660
 
 
16661
striplib=
 
16662
old_striplib=
 
16663
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16664
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16665
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16666
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16667
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16668
  echo "$as_me:$LINENO: result: yes" >&5
 
16669
echo "${ECHO_T}yes" >&6
 
16670
else
 
16671
# FIXME - insert some real tests, host_os isn't really good enough
 
16672
  case $host_os in
 
16673
   darwin*)
 
16674
       if test -n "$STRIP" ; then
 
16675
         striplib="$STRIP -x"
 
16676
         echo "$as_me:$LINENO: result: yes" >&5
 
16677
echo "${ECHO_T}yes" >&6
 
16678
       else
 
16679
  echo "$as_me:$LINENO: result: no" >&5
 
16680
echo "${ECHO_T}no" >&6
 
16681
fi
 
16682
       ;;
 
16683
   *)
 
16684
  echo "$as_me:$LINENO: result: no" >&5
 
16685
echo "${ECHO_T}no" >&6
 
16686
    ;;
 
16687
  esac
 
16688
fi
 
16689
 
 
16690
 
16586
16691
 
16587
16692
# The else clause should only fire when bootstrapping the
16588
16693
# libtool distribution, otherwise you forgot to ship ltmain.sh
16597
16702
  # Now quote all the things that may contain metacharacters while being
16598
16703
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16599
16704
  # variables and quote the copies for generation of the libtool script.
16600
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16705
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16601
16706
    SED SHELL STRIP \
16602
16707
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16603
16708
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16698
16803
# The host system.
16699
16804
host_alias=$host_alias
16700
16805
host=$host
16701
 
host_os=$host_os
16702
 
 
16703
 
# The build system.
16704
 
build_alias=$build_alias
16705
 
build=$build
16706
 
build_os=$build_os
16707
16806
 
16708
16807
# An echo program that does not interpret backslashes.
16709
16808
echo=$lt_echo
16715
16814
# A C compiler.
16716
16815
LTCC=$lt_LTCC
16717
16816
 
16718
 
# LTCC compiler flags.
16719
 
LTCFLAGS=$lt_LTCFLAGS
16720
 
 
16721
16817
# A language-specific compiler.
16722
16818
CC=$lt_compiler_F77
16723
16819
 
16783
16879
# Does compiler simultaneously support -c and -o options?
16784
16880
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16785
16881
 
16786
 
# Must we lock files when doing compilation?
 
16882
# Must we lock files when doing compilation ?
16787
16883
need_locks=$lt_need_locks
16788
16884
 
16789
16885
# Do we need the lib prefix for modules?
17021
17117
lt_simple_compile_test_code="class foo {}\n"
17022
17118
 
17023
17119
# Code to be used in simple link tests
17024
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
17120
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17025
17121
 
17026
17122
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17027
17123
 
17028
17124
# If no C compiler was specified, use CC.
17029
17125
LTCC=${LTCC-"$CC"}
17030
17126
 
17031
 
# If no C compiler flags were specified, use CFLAGS.
17032
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17033
 
 
17034
17127
# Allow CC to be a program name with arguments.
17035
17128
compiler=$CC
17036
17129
 
17037
17130
 
17038
 
# save warnings/boilerplate of simple test code
17039
 
ac_outfile=conftest.$ac_objext
17040
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17041
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17042
 
_lt_compiler_boilerplate=`cat conftest.err`
17043
 
$rm conftest*
17044
 
 
17045
 
ac_outfile=conftest.$ac_objext
17046
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17047
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17048
 
_lt_linker_boilerplate=`cat conftest.err`
17049
 
$rm conftest*
17050
 
 
17051
 
 
17052
17131
# Allow CC to be a program name with arguments.
17053
17132
lt_save_CC="$CC"
17054
17133
CC=${GCJ-"gcj"}
17055
17134
compiler=$CC
17056
17135
compiler_GCJ=$CC
17057
 
for cc_temp in $compiler""; do
17058
 
  case $cc_temp in
17059
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17060
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17061
 
    \-*) ;;
17062
 
    *) break;;
17063
 
  esac
17064
 
done
17065
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17066
 
 
17067
17136
 
17068
17137
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17069
17138
archive_cmds_need_lc_GCJ=no
17070
17139
 
17071
 
old_archive_cmds_GCJ=$old_archive_cmds
17072
 
 
17073
17140
 
17074
17141
lt_prog_compiler_no_builtin_flag_GCJ=
17075
17142
 
17092
17159
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17093
17160
   # The option is referenced via a variable to avoid confusing sed.
17094
17161
   lt_compile=`echo "$ac_compile" | $SED \
17095
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17162
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17096
17163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17097
17164
   -e 's:$: $lt_compiler_flag:'`
17098
 
   (eval echo "\"\$as_me:17098: $lt_compile\"" >&5)
 
17165
   (eval echo "\"\$as_me:17165: $lt_compile\"" >&5)
17099
17166
   (eval "$lt_compile" 2>conftest.err)
17100
17167
   ac_status=$?
17101
17168
   cat conftest.err >&5
17102
 
   echo "$as_me:17102: \$? = $ac_status" >&5
 
17169
   echo "$as_me:17169: \$? = $ac_status" >&5
17103
17170
   if (exit $ac_status) && test -s "$ac_outfile"; then
17104
17171
     # The compiler can only warn and ignore the option if not recognized
17105
 
     # So say no if there are warnings other than the usual output.
17106
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17107
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17108
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17172
     # So say no if there are warnings
 
17173
     if test ! -s conftest.err; then
17109
17174
       lt_cv_prog_compiler_rtti_exceptions=yes
17110
17175
     fi
17111
17176
   fi
17166
17231
      lt_prog_compiler_pic_GCJ='-fno-common'
17167
17232
      ;;
17168
17233
 
17169
 
    interix3*)
17170
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17171
 
      # Instead, we relocate shared libraries at runtime.
17172
 
      ;;
17173
 
 
17174
17234
    msdosdjgpp*)
17175
17235
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17176
17236
      # on systems that don't support them.
17187
17247
    hpux*)
17188
17248
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17189
17249
      # not for PA HP-UX.
17190
 
      case $host_cpu in
 
17250
      case "$host_cpu" in
17191
17251
      hppa*64*|ia64*)
17192
17252
        # +Z the default
17193
17253
        ;;
17213
17273
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17214
17274
      fi
17215
17275
      ;;
17216
 
      darwin*)
17217
 
        # PIC is the default on this platform
17218
 
        # Common symbols not allowed in MH_DYLIB files
17219
 
       case $cc_basename in
17220
 
         xlc*)
17221
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17222
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17223
 
         ;;
17224
 
       esac
17225
 
       ;;
17226
17276
 
17227
17277
    mingw* | pw32* | os2*)
17228
17278
      # This hack is so that the source file can tell whether it is being
17234
17284
      lt_prog_compiler_wl_GCJ='-Wl,'
17235
17285
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17236
17286
      # not for PA HP-UX.
17237
 
      case $host_cpu in
 
17287
      case "$host_cpu" in
17238
17288
      hppa*64*|ia64*)
17239
17289
        # +Z the default
17240
17290
        ;;
17258
17308
      ;;
17259
17309
 
17260
17310
    linux*)
17261
 
      case $cc_basename in
 
17311
      case $CC in
17262
17312
      icc* | ecc*)
17263
17313
        lt_prog_compiler_wl_GCJ='-Wl,'
17264
17314
        lt_prog_compiler_pic_GCJ='-KPIC'
17265
17315
        lt_prog_compiler_static_GCJ='-static'
17266
17316
        ;;
17267
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17268
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17269
 
        # which looks to be a dead project)
17270
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17271
 
        lt_prog_compiler_pic_GCJ='-fpic'
17272
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17273
 
        ;;
17274
17317
      ccc*)
17275
17318
        lt_prog_compiler_wl_GCJ='-Wl,'
17276
17319
        # All Alpha code is PIC.
17285
17328
      lt_prog_compiler_static_GCJ='-non_shared'
17286
17329
      ;;
17287
17330
 
 
17331
    sco3.2v5*)
 
17332
      lt_prog_compiler_pic_GCJ='-Kpic'
 
17333
      lt_prog_compiler_static_GCJ='-dn'
 
17334
      ;;
 
17335
 
17288
17336
    solaris*)
 
17337
      lt_prog_compiler_wl_GCJ='-Wl,'
17289
17338
      lt_prog_compiler_pic_GCJ='-KPIC'
17290
17339
      lt_prog_compiler_static_GCJ='-Bstatic'
17291
 
      case $cc_basename in
17292
 
      f77* | f90* | f95*)
17293
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17294
 
      *)
17295
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17296
 
      esac
17297
17340
      ;;
17298
17341
 
17299
17342
    sunos4*)
17302
17345
      lt_prog_compiler_static_GCJ='-Bstatic'
17303
17346
      ;;
17304
17347
 
17305
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17348
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17306
17349
      lt_prog_compiler_wl_GCJ='-Wl,'
17307
17350
      lt_prog_compiler_pic_GCJ='-KPIC'
17308
17351
      lt_prog_compiler_static_GCJ='-Bstatic'
17315
17358
      fi
17316
17359
      ;;
17317
17360
 
17318
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17319
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17320
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17321
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17322
 
      ;;
17323
 
 
17324
 
    unicos*)
17325
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17326
 
      lt_prog_compiler_can_build_shared_GCJ=no
17327
 
      ;;
17328
 
 
17329
17361
    uts4*)
17330
17362
      lt_prog_compiler_pic_GCJ='-pic'
17331
17363
      lt_prog_compiler_static_GCJ='-Bstatic'
17360
17392
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17361
17393
   # The option is referenced via a variable to avoid confusing sed.
17362
17394
   lt_compile=`echo "$ac_compile" | $SED \
17363
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17395
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17364
17396
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17365
17397
   -e 's:$: $lt_compiler_flag:'`
17366
 
   (eval echo "\"\$as_me:17366: $lt_compile\"" >&5)
 
17398
   (eval echo "\"\$as_me:17398: $lt_compile\"" >&5)
17367
17399
   (eval "$lt_compile" 2>conftest.err)
17368
17400
   ac_status=$?
17369
17401
   cat conftest.err >&5
17370
 
   echo "$as_me:17370: \$? = $ac_status" >&5
 
17402
   echo "$as_me:17402: \$? = $ac_status" >&5
17371
17403
   if (exit $ac_status) && test -s "$ac_outfile"; then
17372
17404
     # The compiler can only warn and ignore the option if not recognized
17373
 
     # So say no if there are warnings other than the usual output.
17374
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17375
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17376
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17405
     # So say no if there are warnings
 
17406
     if test ! -s conftest.err; then
17377
17407
       lt_prog_compiler_pic_works_GCJ=yes
17378
17408
     fi
17379
17409
   fi
17394
17424
fi
17395
17425
 
17396
17426
fi
17397
 
case $host_os in
 
17427
case "$host_os" in
17398
17428
  # For platforms which do not support PIC, -DPIC is meaningless:
17399
17429
  *djgpp*)
17400
17430
    lt_prog_compiler_pic_GCJ=
17404
17434
    ;;
17405
17435
esac
17406
17436
 
17407
 
#
17408
 
# Check to make sure the static flag actually works.
17409
 
#
17410
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17411
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17412
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17413
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17414
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17415
 
else
17416
 
  lt_prog_compiler_static_works_GCJ=no
17417
 
   save_LDFLAGS="$LDFLAGS"
17418
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17419
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17420
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17421
 
     # The linker can only warn and ignore the option if not recognized
17422
 
     # So say no if there are warnings
17423
 
     if test -s conftest.err; then
17424
 
       # Append any errors to the config.log.
17425
 
       cat conftest.err 1>&5
17426
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17427
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17428
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17429
 
         lt_prog_compiler_static_works_GCJ=yes
17430
 
       fi
17431
 
     else
17432
 
       lt_prog_compiler_static_works_GCJ=yes
17433
 
     fi
17434
 
   fi
17435
 
   $rm conftest*
17436
 
   LDFLAGS="$save_LDFLAGS"
17437
 
 
17438
 
fi
17439
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17440
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17441
 
 
17442
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17443
 
    :
17444
 
else
17445
 
    lt_prog_compiler_static_GCJ=
17446
 
fi
17447
 
 
17448
 
 
17449
17437
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17450
17438
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17451
17439
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17464
17452
   # Note that $ac_compile itself does not contain backslashes and begins
17465
17453
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17466
17454
   lt_compile=`echo "$ac_compile" | $SED \
17467
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17455
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17468
17456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17469
17457
   -e 's:$: $lt_compiler_flag:'`
17470
 
   (eval echo "\"\$as_me:17470: $lt_compile\"" >&5)
 
17458
   (eval echo "\"\$as_me:17458: $lt_compile\"" >&5)
17471
17459
   (eval "$lt_compile" 2>out/conftest.err)
17472
17460
   ac_status=$?
17473
17461
   cat out/conftest.err >&5
17474
 
   echo "$as_me:17474: \$? = $ac_status" >&5
 
17462
   echo "$as_me:17462: \$? = $ac_status" >&5
17475
17463
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17476
17464
   then
17477
17465
     # The compiler can only warn and ignore the option if not recognized
17478
17466
     # So say no if there are warnings
17479
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17480
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17481
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17467
     if test ! -s out/conftest.err; then
17482
17468
       lt_cv_prog_compiler_c_o_GCJ=yes
17483
17469
     fi
17484
17470
   fi
17485
 
   chmod u+w . 2>&5
 
17471
   chmod u+w .
17486
17472
   $rm conftest*
17487
17473
   # SGI C++ compiler will create directory out/ii_files/ for
17488
17474
   # template instantiation
17558
17544
  # rely on this symbol name, it's probably fine to never include it in
17559
17545
  # preloaded symbol tables.
17560
17546
  extract_expsyms_cmds=
17561
 
  # Just being paranoid about ensuring that cc_basename is set.
17562
 
  for cc_temp in $compiler""; do
17563
 
  case $cc_temp in
17564
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17565
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17566
 
    \-*) ;;
17567
 
    *) break;;
17568
 
  esac
17569
 
done
17570
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17571
17547
 
17572
17548
  case $host_os in
17573
17549
  cygwin* | mingw* | pw32*)
17578
17554
      with_gnu_ld=no
17579
17555
    fi
17580
17556
    ;;
17581
 
  interix*)
17582
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17583
 
    with_gnu_ld=yes
17584
 
    ;;
17585
17557
  openbsd*)
17586
17558
    with_gnu_ld=no
17587
17559
    ;;
17592
17564
    # If archive_cmds runs LD, not CC, wlarc should be empty
17593
17565
    wlarc='${wl}'
17594
17566
 
17595
 
    # Set some defaults for GNU ld with shared library support. These
17596
 
    # are reset later if shared libraries are not supported. Putting them
17597
 
    # here allows them to be overridden if necessary.
17598
 
    runpath_var=LD_RUN_PATH
17599
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17600
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17601
 
    # ancient GNU ld didn't support --whole-archive et. al.
17602
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17603
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17604
 
      else
17605
 
        whole_archive_flag_spec_GCJ=
17606
 
    fi
17607
 
    supports_anon_versioning=no
17608
 
    case `$LD -v 2>/dev/null` in
17609
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17610
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17611
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17612
 
      *\ 2.11.*) ;; # other 2.11 versions
17613
 
      *) supports_anon_versioning=yes ;;
17614
 
    esac
17615
 
 
17616
17567
    # See if GNU ld supports shared libraries.
17617
17568
    case $host_os in
17618
17569
    aix3* | aix4* | aix5*)
17663
17614
      allow_undefined_flag_GCJ=unsupported
17664
17615
      always_export_symbols_GCJ=no
17665
17616
      enable_shared_with_static_runtimes_GCJ=yes
17666
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17617
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17667
17618
 
17668
17619
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17669
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17620
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17670
17621
        # If the export-symbols file already is a .def file (1st line
17671
17622
        # is EXPORTS), use it as is; otherwise, prepend...
17672
17623
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17675
17626
          echo EXPORTS > $output_objdir/$soname.def;
17676
17627
          cat $export_symbols >> $output_objdir/$soname.def;
17677
17628
        fi~
17678
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17679
 
      else
17680
 
        ld_shlibs_GCJ=no
17681
 
      fi
17682
 
      ;;
17683
 
 
17684
 
    interix3*)
17685
 
      hardcode_direct_GCJ=no
17686
 
      hardcode_shlibpath_var_GCJ=no
17687
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17688
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17689
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17690
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17691
 
      # default) and relocated if they conflict, which is a slow very memory
17692
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17693
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17694
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17695
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17696
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17697
 
      ;;
17698
 
 
17699
 
    linux*)
17700
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17701
 
        tmp_addflag=
17702
 
        case $cc_basename,$host_cpu in
17703
 
        pgcc*)                          # Portland Group C compiler
17704
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17705
 
          tmp_addflag=' $pic_flag'
17706
 
          ;;
17707
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17708
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17709
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17710
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17711
 
          tmp_addflag=' -i_dynamic' ;;
17712
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17713
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17714
 
        ifc* | ifort*)                  # Intel Fortran compiler
17715
 
          tmp_addflag=' -nofor_main' ;;
17716
 
        esac
17717
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17718
 
 
17719
 
        if test $supports_anon_versioning = yes; then
17720
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17721
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17722
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17723
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17724
 
        fi
17725
 
        link_all_deplibs_GCJ=no
17726
 
      else
17727
 
        ld_shlibs_GCJ=no
17728
 
      fi
17729
 
      ;;
17730
 
 
17731
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17629
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17630
      else
 
17631
        ld_shlibs=no
 
17632
      fi
 
17633
      ;;
 
17634
 
 
17635
    netbsd*)
17732
17636
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17733
17637
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17734
17638
        wlarc=
17738
17642
      fi
17739
17643
      ;;
17740
17644
 
17741
 
    solaris*)
 
17645
    solaris* | sysv5*)
17742
17646
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17743
17647
        ld_shlibs_GCJ=no
17744
17648
        cat <<EOF 1>&2
17759
17663
      fi
17760
17664
      ;;
17761
17665
 
17762
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17763
 
      case `$LD -v 2>&1` in
17764
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17765
 
        ld_shlibs_GCJ=no
17766
 
        cat <<_LT_EOF 1>&2
17767
 
 
17768
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17769
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17770
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17771
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17772
 
*** your PATH or compiler configuration so that the native linker is
17773
 
*** used, and then restart.
17774
 
 
17775
 
_LT_EOF
17776
 
        ;;
17777
 
        *)
17778
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17779
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17780
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17781
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17782
 
          else
17783
 
            ld_shlibs_GCJ=no
17784
 
          fi
17785
 
        ;;
17786
 
      esac
17787
 
      ;;
17788
 
 
17789
17666
    sunos4*)
17790
17667
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17791
17668
      wlarc=
17793
17670
      hardcode_shlibpath_var_GCJ=no
17794
17671
      ;;
17795
17672
 
 
17673
  linux*)
 
17674
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17675
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17676
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17677
      supports_anon_versioning=no
 
17678
      case `$LD -v 2>/dev/null` in
 
17679
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17680
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17681
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17682
        *\ 2.11.*) ;; # other 2.11 versions
 
17683
        *) supports_anon_versioning=yes ;;
 
17684
      esac
 
17685
      if test $supports_anon_versioning = yes; then
 
17686
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17687
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17688
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17689
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17690
      else
 
17691
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17692
      fi
 
17693
    else
 
17694
      ld_shlibs_GCJ=no
 
17695
    fi
 
17696
    ;;
 
17697
 
17796
17698
    *)
17797
17699
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17798
17700
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17803
17705
      ;;
17804
17706
    esac
17805
17707
 
17806
 
    if test "$ld_shlibs_GCJ" = no; then
17807
 
      runpath_var=
17808
 
      hardcode_libdir_flag_spec_GCJ=
17809
 
      export_dynamic_flag_spec_GCJ=
17810
 
      whole_archive_flag_spec_GCJ=
 
17708
    if test "$ld_shlibs_GCJ" = yes; then
 
17709
      runpath_var=LD_RUN_PATH
 
17710
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17711
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17712
      # ancient GNU ld didn't support --whole-archive et. al.
 
17713
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17714
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17715
      else
 
17716
        whole_archive_flag_spec_GCJ=
 
17717
      fi
17811
17718
    fi
17812
17719
  else
17813
17720
    # PORTME fill in a description of your system's linker (not GNU ld)
17819
17726
      # Note: this linker hardcodes the directories in LIBPATH if there
17820
17727
      # are no directories specified by -L.
17821
17728
      hardcode_minus_L_GCJ=yes
17822
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17729
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17823
17730
        # Neither direct hardcoding nor static linking is supported with a
17824
17731
        # broken collect2.
17825
17732
        hardcode_direct_GCJ=unsupported
17853
17760
            break
17854
17761
          fi
17855
17762
          done
17856
 
          ;;
17857
17763
        esac
17858
17764
 
17859
17765
        exp_sym_flag='-bexport'
17872
17778
      link_all_deplibs_GCJ=yes
17873
17779
 
17874
17780
      if test "$GCC" = yes; then
17875
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
17781
        case $host_os in aix4.012|aix4.012.*)
17876
17782
        # We only want to do this on AIX 4.2 and lower, the check
17877
17783
        # below for broken collect2 doesn't work under 4.3+
17878
17784
          collect2name=`${CC} -print-prog-name=collect2`
17891
17797
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17892
17798
          hardcode_libdir_separator_GCJ=
17893
17799
          fi
17894
 
          ;;
17895
17800
        esac
17896
17801
        shared_flag='-shared'
17897
 
        if test "$aix_use_runtimelinking" = yes; then
17898
 
          shared_flag="$shared_flag "'${wl}-G'
17899
 
        fi
17900
17802
      else
17901
17803
        # not using gcc
17902
17804
        if test "$host_cpu" = ia64; then
17904
17806
        # chokes on -Wl,-G. The following line is correct:
17905
17807
          shared_flag='-G'
17906
17808
        else
17907
 
          if test "$aix_use_runtimelinking" = yes; then
 
17809
        if test "$aix_use_runtimelinking" = yes; then
17908
17810
            shared_flag='${wl}-G'
17909
17811
          else
17910
17812
            shared_flag='${wl}-bM:SRE'
17911
 
          fi
 
17813
        fi
17912
17814
        fi
17913
17815
      fi
17914
17816
 
17944
17846
  cat conftest.err >&5
17945
17847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946
17848
  (exit $ac_status); } &&
17947
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17849
         { ac_try='test -z "$ac_c_werror_flag"
 
17850
                         || test ! -s conftest.err'
17948
17851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949
17852
  (eval $ac_try) 2>&5
17950
17853
  ac_status=$?
17972
17875
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17973
17876
 
17974
17877
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17975
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17878
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17976
17879
       else
17977
17880
        if test "$host_cpu" = ia64; then
17978
17881
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17979
17882
          allow_undefined_flag_GCJ="-z nodefs"
17980
 
          archive_expsym_cmds_GCJ="\$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"
 
17883
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17981
17884
        else
17982
17885
         # Determine the default libpath from the value encoded in an empty executable.
17983
17886
         cat >conftest.$ac_ext <<_ACEOF
18004
17907
  cat conftest.err >&5
18005
17908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006
17909
  (exit $ac_status); } &&
18007
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17910
         { ac_try='test -z "$ac_c_werror_flag"
 
17911
                         || test ! -s conftest.err'
18008
17912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009
17913
  (eval $ac_try) 2>&5
18010
17914
  ac_status=$?
18036
17940
          # -berok will link without error, but may produce a broken library.
18037
17941
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18038
17942
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17943
          # -bexpall does not export symbols beginning with underscore (_)
 
17944
          always_export_symbols_GCJ=yes
18039
17945
          # Exported symbols can be pulled into shared objects from archives
18040
 
          whole_archive_flag_spec_GCJ='$convenience'
 
17946
          whole_archive_flag_spec_GCJ=' '
18041
17947
          archive_cmds_need_lc_GCJ=yes
18042
 
          # This is similar to how AIX traditionally builds its shared libraries.
18043
 
          archive_expsym_cmds_GCJ="\$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'
 
17948
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17949
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18044
17950
        fi
18045
17951
      fi
18046
17952
      ;;
18053
17959
      ld_shlibs_GCJ=no
18054
17960
      ;;
18055
17961
 
18056
 
    bsdi[45]*)
 
17962
    bsdi4*)
18057
17963
      export_dynamic_flag_spec_GCJ=-rdynamic
18058
17964
      ;;
18059
17965
 
18074
17980
      old_archive_From_new_cmds_GCJ='true'
18075
17981
      # FIXME: Should let the user specify the lib program.
18076
17982
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18077
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17983
      fix_srcfile_path='`cygpath -w "$srcfile"`'
18078
17984
      enable_shared_with_static_runtimes_GCJ=yes
18079
17985
      ;;
18080
17986
 
18081
17987
    darwin* | rhapsody*)
18082
 
      case $host_os in
18083
 
        rhapsody* | darwin1.[012])
18084
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18085
 
         ;;
18086
 
       *) # Darwin 1.3 on
18087
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18088
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18089
 
         else
18090
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18091
 
             10.[012])
18092
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18093
 
               ;;
18094
 
             10.*)
18095
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18096
 
               ;;
18097
 
           esac
18098
 
         fi
18099
 
         ;;
 
17988
    if test "$GXX" = yes ; then
 
17989
      archive_cmds_need_lc_GCJ=no
 
17990
      case "$host_os" in
 
17991
      rhapsody* | darwin1.[012])
 
17992
        allow_undefined_flag_GCJ='-undefined suppress'
 
17993
        ;;
 
17994
      *) # Darwin 1.3 on
 
17995
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17996
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17997
      else
 
17998
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17999
          10.[012])
 
18000
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18001
            ;;
 
18002
          10.*)
 
18003
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
18004
            ;;
 
18005
        esac
 
18006
      fi
 
18007
        ;;
18100
18008
      esac
18101
 
      archive_cmds_need_lc_GCJ=no
 
18009
        lt_int_apple_cc_single_mod=no
 
18010
        output_verbose_link_cmd='echo'
 
18011
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18012
          lt_int_apple_cc_single_mod=yes
 
18013
        fi
 
18014
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18015
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18016
        else
 
18017
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18018
      fi
 
18019
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18020
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18021
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18022
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18023
        else
 
18024
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18025
        fi
 
18026
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18102
18027
      hardcode_direct_GCJ=no
18103
18028
      hardcode_automatic_GCJ=yes
18104
18029
      hardcode_shlibpath_var_GCJ=unsupported
18105
 
      whole_archive_flag_spec_GCJ=''
 
18030
      whole_archive_flag_spec_GCJ='-all_load $convenience'
18106
18031
      link_all_deplibs_GCJ=yes
18107
 
    if test "$GCC" = yes ; then
18108
 
        output_verbose_link_cmd='echo'
18109
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18110
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18111
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18112
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18113
 
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18114
18032
    else
18115
 
      case $cc_basename in
18116
 
        xlc*)
18117
 
         output_verbose_link_cmd='echo'
18118
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18119
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18120
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18121
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18122
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18123
 
          ;;
18124
 
       *)
18125
 
         ld_shlibs_GCJ=no
18126
 
          ;;
18127
 
      esac
 
18033
      ld_shlibs_GCJ=no
18128
18034
    fi
18129
18035
      ;;
18130
18036
 
18158
18064
      ;;
18159
18065
 
18160
18066
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18161
 
    freebsd* | dragonfly*)
18162
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18163
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18164
 
      hardcode_direct_GCJ=yes
18165
 
      hardcode_shlibpath_var_GCJ=no
18166
 
      ;;
18167
 
 
18168
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
18169
 
    kfreebsd*-gnu)
18170
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18171
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18172
 
      hardcode_direct_GCJ=yes
18173
 
      hardcode_shlibpath_var_GCJ=no
18174
 
      link_all_deplibs_GCJ=no
 
18067
    freebsd* | kfreebsd*-gnu)
 
18068
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18069
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18070
      hardcode_direct_GCJ=yes
 
18071
      hardcode_shlibpath_var_GCJ=no
18175
18072
      ;;
18176
18073
 
18177
18074
    hpux9*)
18190
18087
      export_dynamic_flag_spec_GCJ='${wl}-E'
18191
18088
      ;;
18192
18089
 
18193
 
    hpux10*)
18194
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18195
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18196
 
      else
18197
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18198
 
      fi
18199
 
      if test "$with_gnu_ld" = no; then
18200
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18201
 
        hardcode_libdir_separator_GCJ=:
18202
 
 
18203
 
        hardcode_direct_GCJ=yes
18204
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18205
 
 
18206
 
        # hardcode_minus_L: Not really in the search PATH,
18207
 
        # but as the default location of the library.
18208
 
        hardcode_minus_L_GCJ=yes
18209
 
      fi
18210
 
      ;;
18211
 
 
18212
 
    hpux11*)
18213
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18214
 
        case $host_cpu in
18215
 
        hppa*64*)
 
18090
    hpux10* | hpux11*)
 
18091
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18092
        case "$host_cpu" in
 
18093
        hppa*64*|ia64*)
18216
18094
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18217
18095
          ;;
18218
 
        ia64*)
18219
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18220
 
          ;;
18221
18096
        *)
18222
18097
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18223
18098
          ;;
18224
18099
        esac
18225
18100
      else
18226
 
        case $host_cpu in
18227
 
        hppa*64*)
18228
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18229
 
          ;;
18230
 
        ia64*)
18231
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18101
        case "$host_cpu" in
 
18102
        hppa*64*|ia64*)
 
18103
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18232
18104
          ;;
18233
18105
        *)
18234
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18106
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18235
18107
          ;;
18236
18108
        esac
18237
18109
      fi
18238
18110
      if test "$with_gnu_ld" = no; then
18239
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18240
 
        hardcode_libdir_separator_GCJ=:
18241
 
 
18242
 
        case $host_cpu in
18243
 
        hppa*64*|ia64*)
 
18111
        case "$host_cpu" in
 
18112
        hppa*64*)
 
18113
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18244
18114
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18245
 
          hardcode_direct_GCJ=no
18246
 
          hardcode_shlibpath_var_GCJ=no
 
18115
          hardcode_libdir_separator_GCJ=:
 
18116
          hardcode_direct_GCJ=no
 
18117
          hardcode_shlibpath_var_GCJ=no
 
18118
          ;;
 
18119
        ia64*)
 
18120
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18121
          hardcode_direct_GCJ=no
 
18122
          hardcode_shlibpath_var_GCJ=no
 
18123
 
 
18124
          # hardcode_minus_L: Not really in the search PATH,
 
18125
          # but as the default location of the library.
 
18126
          hardcode_minus_L_GCJ=yes
18247
18127
          ;;
18248
18128
        *)
 
18129
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18130
          hardcode_libdir_separator_GCJ=:
18249
18131
          hardcode_direct_GCJ=yes
18250
18132
          export_dynamic_flag_spec_GCJ='${wl}-E'
18251
18133
 
18269
18151
      link_all_deplibs_GCJ=yes
18270
18152
      ;;
18271
18153
 
18272
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
18154
    netbsd*)
18273
18155
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18274
18156
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18275
18157
      else
18293
18175
      hardcode_shlibpath_var_GCJ=no
18294
18176
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18295
18177
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18296
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18297
18178
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18298
18179
        export_dynamic_flag_spec_GCJ='${wl}-E'
18299
18180
      else
18339
18220
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18340
18221
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18341
18222
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18342
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18223
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18343
18224
 
18344
18225
        # Both c and cxx compiler support -rpath directly
18345
18226
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18347
18228
      hardcode_libdir_separator_GCJ=:
18348
18229
      ;;
18349
18230
 
 
18231
    sco3.2v5*)
 
18232
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18233
      hardcode_shlibpath_var_GCJ=no
 
18234
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18235
      runpath_var=LD_RUN_PATH
 
18236
      hardcode_runpath_var=yes
 
18237
      ;;
 
18238
 
18350
18239
    solaris*)
18351
18240
      no_undefined_flag_GCJ=' -z text'
18352
18241
      if test "$GCC" = yes; then
18353
 
        wlarc='${wl}'
18354
18242
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18355
18243
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18356
18244
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18357
18245
      else
18358
 
        wlarc=''
18359
18246
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360
18247
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18361
18248
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18364
18251
      hardcode_shlibpath_var_GCJ=no
18365
18252
      case $host_os in
18366
18253
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18367
 
      *)
18368
 
        # The compiler driver will combine linker options so we
18369
 
        # cannot just pass the convience library names through
18370
 
        # without $wl, iff we do not link with $LD.
18371
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
18372
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18373
 
        case $wlarc in
18374
 
        '')
18375
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18376
 
        *)
18377
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18378
 
        esac ;;
 
18254
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18255
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18379
18256
      esac
18380
18257
      link_all_deplibs_GCJ=yes
18381
18258
      ;;
18432
18309
      fi
18433
18310
      ;;
18434
18311
 
18435
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18436
 
      no_undefined_flag_GCJ='${wl}-z,text'
18437
 
      archive_cmds_need_lc_GCJ=no
18438
 
      hardcode_shlibpath_var_GCJ=no
18439
 
      runpath_var='LD_RUN_PATH'
18440
 
 
18441
 
      if test "$GCC" = yes; then
18442
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18443
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18444
 
      else
18445
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18446
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18447
 
      fi
18448
 
      ;;
18449
 
 
18450
 
    sysv5* | sco3.2v5* | sco5v6*)
18451
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18452
 
      # link with -lc, and that would cause any symbols used from libc to
18453
 
      # always be unresolved, which means just about no library would
18454
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18455
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18456
 
      # as -z defs.
18457
 
      no_undefined_flag_GCJ='${wl}-z,text'
18458
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18459
 
      archive_cmds_need_lc_GCJ=no
18460
 
      hardcode_shlibpath_var_GCJ=no
18461
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18462
 
      hardcode_libdir_separator_GCJ=':'
18463
 
      link_all_deplibs_GCJ=yes
18464
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18465
 
      runpath_var='LD_RUN_PATH'
18466
 
 
18467
 
      if test "$GCC" = yes; then
18468
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18469
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18470
 
      else
18471
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18472
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473
 
      fi
 
18312
    sysv4.2uw2*)
 
18313
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18314
      hardcode_direct_GCJ=yes
 
18315
      hardcode_minus_L_GCJ=no
 
18316
      hardcode_shlibpath_var_GCJ=no
 
18317
      hardcode_runpath_var=yes
 
18318
      runpath_var=LD_RUN_PATH
 
18319
      ;;
 
18320
 
 
18321
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18322
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18323
      if test "$GCC" = yes; then
 
18324
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18325
      else
 
18326
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18327
      fi
 
18328
      runpath_var='LD_RUN_PATH'
 
18329
      hardcode_shlibpath_var_GCJ=no
 
18330
      ;;
 
18331
 
 
18332
    sysv5*)
 
18333
      no_undefined_flag_GCJ=' -z text'
 
18334
      # $CC -shared without GNU ld will not create a library from C++
 
18335
      # object files and a static libstdc++, better avoid it by now
 
18336
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18337
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18338
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18339
      hardcode_libdir_flag_spec_GCJ=
 
18340
      hardcode_shlibpath_var_GCJ=no
 
18341
      runpath_var='LD_RUN_PATH'
18474
18342
      ;;
18475
18343
 
18476
18344
    uts4*)
18489
18357
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18490
18358
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18491
18359
 
 
18360
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18361
if test "$GCC" = yes; then
 
18362
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18363
fi
 
18364
 
18492
18365
#
18493
18366
# Do we need to explicitly link libc?
18494
18367
#
18521
18394
        libobjs=conftest.$ac_objext
18522
18395
        deplibs=
18523
18396
        wl=$lt_prog_compiler_wl_GCJ
18524
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18525
18397
        compiler_flags=-v
18526
18398
        linker_flags=-v
18527
18399
        verstring=
18654
18526
  shlibpath_var=LIBRARY_PATH
18655
18527
  ;;
18656
18528
 
18657
 
bsdi[45]*)
 
18529
bsdi4*)
18658
18530
  version_type=linux
18659
18531
  need_version=no
18660
18532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682
18554
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18683
18555
      dldir=$destdir/`dirname \$dlpath`~
18684
18556
      test -d \$dldir || mkdir -p \$dldir~
18685
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18686
 
      chmod a+x \$dldir/$dlname'
 
18557
      $install_prog $dir/$dlname \$dldir/$dlname'
18687
18558
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18688
18559
      dlpath=$dir/\$dldll~
18689
18560
       $rm \$dlpath'
18713
18584
      ;;
18714
18585
    pw32*)
18715
18586
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18716
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18587
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18717
18588
      ;;
18718
18589
    esac
18719
18590
    ;;
18736
18607
  soname_spec='${libname}${release}${major}$shared_ext'
18737
18608
  shlibpath_overrides_runpath=yes
18738
18609
  shlibpath_var=DYLD_LIBRARY_PATH
18739
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18610
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18740
18611
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18741
18612
  if test "$GCC" = yes; then
18742
18613
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18771
18642
  dynamic_linker='GNU ld.so'
18772
18643
  ;;
18773
18644
 
18774
 
freebsd* | dragonfly*)
18775
 
  # DragonFly does not have aout.  When/if they implement a new
18776
 
  # versioning mechanism, adjust this.
18777
 
  if test -x /usr/bin/objformat; then
18778
 
    objformat=`/usr/bin/objformat`
18779
 
  else
18780
 
    case $host_os in
18781
 
    freebsd[123]*) objformat=aout ;;
18782
 
    *) objformat=elf ;;
18783
 
    esac
18784
 
  fi
 
18645
freebsd*)
 
18646
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18785
18647
  version_type=freebsd-$objformat
18786
18648
  case $version_type in
18787
18649
    freebsd-elf*)
18799
18661
  freebsd2*)
18800
18662
    shlibpath_overrides_runpath=yes
18801
18663
    ;;
18802
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18664
  freebsd3.01* | freebsdelf3.01*)
18803
18665
    shlibpath_overrides_runpath=yes
18804
18666
    hardcode_into_libs=yes
18805
18667
    ;;
18806
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18807
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18668
  *) # from 3.2 on
18808
18669
    shlibpath_overrides_runpath=no
18809
18670
    hardcode_into_libs=yes
18810
18671
    ;;
18811
 
  freebsd*) # from 4.6 on
18812
 
    shlibpath_overrides_runpath=yes
18813
 
    hardcode_into_libs=yes
18814
 
    ;;
18815
18672
  esac
18816
18673
  ;;
18817
18674
 
18831
18688
  version_type=sunos
18832
18689
  need_lib_prefix=no
18833
18690
  need_version=no
18834
 
  case $host_cpu in
 
18691
  case "$host_cpu" in
18835
18692
  ia64*)
18836
18693
    shrext_cmds='.so'
18837
18694
    hardcode_into_libs=yes
18871
18728
  postinstall_cmds='chmod 555 $lib'
18872
18729
  ;;
18873
18730
 
18874
 
interix3*)
18875
 
  version_type=linux
18876
 
  need_lib_prefix=no
18877
 
  need_version=no
18878
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18879
 
  soname_spec='${libname}${release}${shared_ext}$major'
18880
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18881
 
  shlibpath_var=LD_LIBRARY_PATH
18882
 
  shlibpath_overrides_runpath=no
18883
 
  hardcode_into_libs=yes
18884
 
  ;;
18885
 
 
18886
18731
irix5* | irix6* | nonstopux*)
18887
18732
  case $host_os in
18888
18733
    nonstopux*) version_type=nonstopux ;;
18940
18785
  # before this can be enabled.
18941
18786
  hardcode_into_libs=yes
18942
18787
 
 
18788
  # find out which ABI we are using
 
18789
  libsuff=
 
18790
  case "$host_cpu" in
 
18791
  x86_64*|s390x*|powerpc64*)
 
18792
    echo '#line 18792 "configure"' > conftest.$ac_ext
 
18793
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18794
  (eval $ac_compile) 2>&5
 
18795
  ac_status=$?
 
18796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18797
  (exit $ac_status); }; then
 
18798
      case `/usr/bin/file conftest.$ac_objext` in
 
18799
      *64-bit*)
 
18800
        libsuff=64
 
18801
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18802
        ;;
 
18803
      esac
 
18804
    fi
 
18805
    rm -rf conftest*
 
18806
    ;;
 
18807
  esac
 
18808
 
18943
18809
  # Append ld.so.conf contents to the search path
18944
18810
  if test -f /etc/ld.so.conf; then
18945
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18946
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18811
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18812
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18947
18813
  fi
18948
18814
 
18949
18815
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18955
18821
  dynamic_linker='GNU/Linux ld.so'
18956
18822
  ;;
18957
18823
 
18958
 
netbsdelf*-gnu)
18959
 
  version_type=linux
18960
 
  need_lib_prefix=no
18961
 
  need_version=no
18962
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18963
 
  soname_spec='${libname}${release}${shared_ext}$major'
18964
 
  shlibpath_var=LD_LIBRARY_PATH
18965
 
  shlibpath_overrides_runpath=no
18966
 
  hardcode_into_libs=yes
18967
 
  dynamic_linker='NetBSD ld.elf_so'
18968
 
  ;;
18969
 
 
18970
18824
knetbsd*-gnu)
18971
18825
  version_type=linux
18972
18826
  need_lib_prefix=no
19016
18870
 
19017
18871
openbsd*)
19018
18872
  version_type=sunos
19019
 
  sys_lib_dlsearch_path_spec="/usr/lib"
19020
18873
  need_lib_prefix=no
19021
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19022
 
  case $host_os in
19023
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19024
 
    *)                         need_version=no  ;;
19025
 
  esac
 
18874
  need_version=yes
19026
18875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19027
18876
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19028
18877
  shlibpath_var=LD_LIBRARY_PATH
19060
18909
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19061
18910
  ;;
19062
18911
 
 
18912
sco3.2v5*)
 
18913
  version_type=osf
 
18914
  soname_spec='${libname}${release}${shared_ext}$major'
 
18915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18916
  shlibpath_var=LD_LIBRARY_PATH
 
18917
  ;;
 
18918
 
19063
18919
solaris*)
19064
18920
  version_type=linux
19065
18921
  need_lib_prefix=no
19085
18941
  need_version=yes
19086
18942
  ;;
19087
18943
 
19088
 
sysv4 | sysv4.3*)
 
18944
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19089
18945
  version_type=linux
19090
18946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19091
18947
  soname_spec='${libname}${release}${shared_ext}$major'
19118
18974
  fi
19119
18975
  ;;
19120
18976
 
19121
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19122
 
  version_type=freebsd-elf
19123
 
  need_lib_prefix=no
19124
 
  need_version=no
19125
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19126
 
  soname_spec='${libname}${release}${shared_ext}$major'
19127
 
  shlibpath_var=LD_LIBRARY_PATH
19128
 
  hardcode_into_libs=yes
19129
 
  if test "$with_gnu_ld" = yes; then
19130
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19131
 
    shlibpath_overrides_runpath=no
19132
 
  else
19133
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19134
 
    shlibpath_overrides_runpath=yes
19135
 
    case $host_os in
19136
 
      sco3.2v5*)
19137
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19138
 
        ;;
19139
 
    esac
19140
 
  fi
19141
 
  sys_lib_dlsearch_path_spec='/usr/lib'
19142
 
  ;;
19143
 
 
19144
18977
uts4*)
19145
18978
  version_type=linux
19146
18979
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19156
18989
echo "${ECHO_T}$dynamic_linker" >&6
19157
18990
test "$dynamic_linker" = no && can_build_shared=no
19158
18991
 
19159
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19160
 
if test "$GCC" = yes; then
19161
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19162
 
fi
19163
 
 
19164
18992
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19165
18993
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19166
18994
hardcode_action_GCJ=
19167
18995
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19168
 
   test -n "$runpath_var_GCJ" || \
19169
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18996
   test -n "$runpath_var GCJ" || \
 
18997
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
19170
18998
 
19171
18999
  # We can hardcode non-existant directories.
19172
19000
  if test "$hardcode_direct_GCJ" != no &&
19198
19026
  enable_fast_install=needless
19199
19027
fi
19200
19028
 
 
19029
striplib=
 
19030
old_striplib=
 
19031
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19032
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19033
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19034
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19035
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19036
  echo "$as_me:$LINENO: result: yes" >&5
 
19037
echo "${ECHO_T}yes" >&6
 
19038
else
 
19039
# FIXME - insert some real tests, host_os isn't really good enough
 
19040
  case $host_os in
 
19041
   darwin*)
 
19042
       if test -n "$STRIP" ; then
 
19043
         striplib="$STRIP -x"
 
19044
         echo "$as_me:$LINENO: result: yes" >&5
 
19045
echo "${ECHO_T}yes" >&6
 
19046
       else
 
19047
  echo "$as_me:$LINENO: result: no" >&5
 
19048
echo "${ECHO_T}no" >&6
 
19049
fi
 
19050
       ;;
 
19051
   *)
 
19052
  echo "$as_me:$LINENO: result: no" >&5
 
19053
echo "${ECHO_T}no" >&6
 
19054
    ;;
 
19055
  esac
 
19056
fi
 
19057
 
 
19058
if test "x$enable_dlopen" != xyes; then
 
19059
  enable_dlopen=unknown
 
19060
  enable_dlopen_self=unknown
 
19061
  enable_dlopen_self_static=unknown
 
19062
else
 
19063
  lt_cv_dlopen=no
 
19064
  lt_cv_dlopen_libs=
 
19065
 
 
19066
  case $host_os in
 
19067
  beos*)
 
19068
    lt_cv_dlopen="load_add_on"
 
19069
    lt_cv_dlopen_libs=
 
19070
    lt_cv_dlopen_self=yes
 
19071
    ;;
 
19072
 
 
19073
  mingw* | pw32*)
 
19074
    lt_cv_dlopen="LoadLibrary"
 
19075
    lt_cv_dlopen_libs=
 
19076
   ;;
 
19077
 
 
19078
  cygwin*)
 
19079
    lt_cv_dlopen="dlopen"
 
19080
    lt_cv_dlopen_libs=
 
19081
   ;;
 
19082
 
 
19083
  darwin*)
 
19084
  # if libdl is installed we need to link against it
 
19085
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19086
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19087
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19089
else
 
19090
  ac_check_lib_save_LIBS=$LIBS
 
19091
LIBS="-ldl  $LIBS"
 
19092
cat >conftest.$ac_ext <<_ACEOF
 
19093
/* confdefs.h.  */
 
19094
_ACEOF
 
19095
cat confdefs.h >>conftest.$ac_ext
 
19096
cat >>conftest.$ac_ext <<_ACEOF
 
19097
/* end confdefs.h.  */
 
19098
 
 
19099
/* Override any gcc2 internal prototype to avoid an error.  */
 
19100
#ifdef __cplusplus
 
19101
extern "C"
 
19102
#endif
 
19103
/* We use char because int might match the return type of a gcc2
 
19104
   builtin and then its argument prototype would still apply.  */
 
19105
char dlopen ();
 
19106
int
 
19107
main ()
 
19108
{
 
19109
dlopen ();
 
19110
  ;
 
19111
  return 0;
 
19112
}
 
19113
_ACEOF
 
19114
rm -f conftest.$ac_objext conftest$ac_exeext
 
19115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19116
  (eval $ac_link) 2>conftest.er1
 
19117
  ac_status=$?
 
19118
  grep -v '^ *+' conftest.er1 >conftest.err
 
19119
  rm -f conftest.er1
 
19120
  cat conftest.err >&5
 
19121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19122
  (exit $ac_status); } &&
 
19123
         { ac_try='test -z "$ac_c_werror_flag"
 
19124
                         || test ! -s conftest.err'
 
19125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19126
  (eval $ac_try) 2>&5
 
19127
  ac_status=$?
 
19128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19129
  (exit $ac_status); }; } &&
 
19130
         { ac_try='test -s conftest$ac_exeext'
 
19131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19132
  (eval $ac_try) 2>&5
 
19133
  ac_status=$?
 
19134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19135
  (exit $ac_status); }; }; then
 
19136
  ac_cv_lib_dl_dlopen=yes
 
19137
else
 
19138
  echo "$as_me: failed program was:" >&5
 
19139
sed 's/^/| /' conftest.$ac_ext >&5
 
19140
 
 
19141
ac_cv_lib_dl_dlopen=no
 
19142
fi
 
19143
rm -f conftest.err conftest.$ac_objext \
 
19144
      conftest$ac_exeext conftest.$ac_ext
 
19145
LIBS=$ac_check_lib_save_LIBS
 
19146
fi
 
19147
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19148
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19149
if test $ac_cv_lib_dl_dlopen = yes; then
 
19150
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19151
else
 
19152
 
 
19153
    lt_cv_dlopen="dyld"
 
19154
    lt_cv_dlopen_libs=
 
19155
    lt_cv_dlopen_self=yes
 
19156
 
 
19157
fi
 
19158
 
 
19159
   ;;
 
19160
 
 
19161
  *)
 
19162
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19163
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19164
if test "${ac_cv_func_shl_load+set}" = set; then
 
19165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19166
else
 
19167
  cat >conftest.$ac_ext <<_ACEOF
 
19168
/* confdefs.h.  */
 
19169
_ACEOF
 
19170
cat confdefs.h >>conftest.$ac_ext
 
19171
cat >>conftest.$ac_ext <<_ACEOF
 
19172
/* end confdefs.h.  */
 
19173
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19174
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19175
#define shl_load innocuous_shl_load
 
19176
 
 
19177
/* System header to define __stub macros and hopefully few prototypes,
 
19178
    which can conflict with char shl_load (); below.
 
19179
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19180
    <limits.h> exists even on freestanding compilers.  */
 
19181
 
 
19182
#ifdef __STDC__
 
19183
# include <limits.h>
 
19184
#else
 
19185
# include <assert.h>
 
19186
#endif
 
19187
 
 
19188
#undef shl_load
 
19189
 
 
19190
/* Override any gcc2 internal prototype to avoid an error.  */
 
19191
#ifdef __cplusplus
 
19192
extern "C"
 
19193
{
 
19194
#endif
 
19195
/* We use char because int might match the return type of a gcc2
 
19196
   builtin and then its argument prototype would still apply.  */
 
19197
char shl_load ();
 
19198
/* The GNU C library defines this for functions which it implements
 
19199
    to always fail with ENOSYS.  Some functions are actually named
 
19200
    something starting with __ and the normal name is an alias.  */
 
19201
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19202
choke me
 
19203
#else
 
19204
char (*f) () = shl_load;
 
19205
#endif
 
19206
#ifdef __cplusplus
 
19207
}
 
19208
#endif
 
19209
 
 
19210
int
 
19211
main ()
 
19212
{
 
19213
return f != shl_load;
 
19214
  ;
 
19215
  return 0;
 
19216
}
 
19217
_ACEOF
 
19218
rm -f conftest.$ac_objext conftest$ac_exeext
 
19219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19220
  (eval $ac_link) 2>conftest.er1
 
19221
  ac_status=$?
 
19222
  grep -v '^ *+' conftest.er1 >conftest.err
 
19223
  rm -f conftest.er1
 
19224
  cat conftest.err >&5
 
19225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19226
  (exit $ac_status); } &&
 
19227
         { ac_try='test -z "$ac_c_werror_flag"
 
19228
                         || test ! -s conftest.err'
 
19229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19230
  (eval $ac_try) 2>&5
 
19231
  ac_status=$?
 
19232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19233
  (exit $ac_status); }; } &&
 
19234
         { ac_try='test -s conftest$ac_exeext'
 
19235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19236
  (eval $ac_try) 2>&5
 
19237
  ac_status=$?
 
19238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19239
  (exit $ac_status); }; }; then
 
19240
  ac_cv_func_shl_load=yes
 
19241
else
 
19242
  echo "$as_me: failed program was:" >&5
 
19243
sed 's/^/| /' conftest.$ac_ext >&5
 
19244
 
 
19245
ac_cv_func_shl_load=no
 
19246
fi
 
19247
rm -f conftest.err conftest.$ac_objext \
 
19248
      conftest$ac_exeext conftest.$ac_ext
 
19249
fi
 
19250
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19251
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19252
if test $ac_cv_func_shl_load = yes; then
 
19253
  lt_cv_dlopen="shl_load"
 
19254
else
 
19255
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19256
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19257
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19259
else
 
19260
  ac_check_lib_save_LIBS=$LIBS
 
19261
LIBS="-ldld  $LIBS"
 
19262
cat >conftest.$ac_ext <<_ACEOF
 
19263
/* confdefs.h.  */
 
19264
_ACEOF
 
19265
cat confdefs.h >>conftest.$ac_ext
 
19266
cat >>conftest.$ac_ext <<_ACEOF
 
19267
/* end confdefs.h.  */
 
19268
 
 
19269
/* Override any gcc2 internal prototype to avoid an error.  */
 
19270
#ifdef __cplusplus
 
19271
extern "C"
 
19272
#endif
 
19273
/* We use char because int might match the return type of a gcc2
 
19274
   builtin and then its argument prototype would still apply.  */
 
19275
char shl_load ();
 
19276
int
 
19277
main ()
 
19278
{
 
19279
shl_load ();
 
19280
  ;
 
19281
  return 0;
 
19282
}
 
19283
_ACEOF
 
19284
rm -f conftest.$ac_objext conftest$ac_exeext
 
19285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19286
  (eval $ac_link) 2>conftest.er1
 
19287
  ac_status=$?
 
19288
  grep -v '^ *+' conftest.er1 >conftest.err
 
19289
  rm -f conftest.er1
 
19290
  cat conftest.err >&5
 
19291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19292
  (exit $ac_status); } &&
 
19293
         { ac_try='test -z "$ac_c_werror_flag"
 
19294
                         || test ! -s conftest.err'
 
19295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19296
  (eval $ac_try) 2>&5
 
19297
  ac_status=$?
 
19298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19299
  (exit $ac_status); }; } &&
 
19300
         { ac_try='test -s conftest$ac_exeext'
 
19301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19302
  (eval $ac_try) 2>&5
 
19303
  ac_status=$?
 
19304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19305
  (exit $ac_status); }; }; then
 
19306
  ac_cv_lib_dld_shl_load=yes
 
19307
else
 
19308
  echo "$as_me: failed program was:" >&5
 
19309
sed 's/^/| /' conftest.$ac_ext >&5
 
19310
 
 
19311
ac_cv_lib_dld_shl_load=no
 
19312
fi
 
19313
rm -f conftest.err conftest.$ac_objext \
 
19314
      conftest$ac_exeext conftest.$ac_ext
 
19315
LIBS=$ac_check_lib_save_LIBS
 
19316
fi
 
19317
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19318
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19319
if test $ac_cv_lib_dld_shl_load = yes; then
 
19320
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19321
else
 
19322
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19323
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19324
if test "${ac_cv_func_dlopen+set}" = set; then
 
19325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19326
else
 
19327
  cat >conftest.$ac_ext <<_ACEOF
 
19328
/* confdefs.h.  */
 
19329
_ACEOF
 
19330
cat confdefs.h >>conftest.$ac_ext
 
19331
cat >>conftest.$ac_ext <<_ACEOF
 
19332
/* end confdefs.h.  */
 
19333
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19334
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19335
#define dlopen innocuous_dlopen
 
19336
 
 
19337
/* System header to define __stub macros and hopefully few prototypes,
 
19338
    which can conflict with char dlopen (); below.
 
19339
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19340
    <limits.h> exists even on freestanding compilers.  */
 
19341
 
 
19342
#ifdef __STDC__
 
19343
# include <limits.h>
 
19344
#else
 
19345
# include <assert.h>
 
19346
#endif
 
19347
 
 
19348
#undef dlopen
 
19349
 
 
19350
/* Override any gcc2 internal prototype to avoid an error.  */
 
19351
#ifdef __cplusplus
 
19352
extern "C"
 
19353
{
 
19354
#endif
 
19355
/* We use char because int might match the return type of a gcc2
 
19356
   builtin and then its argument prototype would still apply.  */
 
19357
char dlopen ();
 
19358
/* The GNU C library defines this for functions which it implements
 
19359
    to always fail with ENOSYS.  Some functions are actually named
 
19360
    something starting with __ and the normal name is an alias.  */
 
19361
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19362
choke me
 
19363
#else
 
19364
char (*f) () = dlopen;
 
19365
#endif
 
19366
#ifdef __cplusplus
 
19367
}
 
19368
#endif
 
19369
 
 
19370
int
 
19371
main ()
 
19372
{
 
19373
return f != dlopen;
 
19374
  ;
 
19375
  return 0;
 
19376
}
 
19377
_ACEOF
 
19378
rm -f conftest.$ac_objext conftest$ac_exeext
 
19379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19380
  (eval $ac_link) 2>conftest.er1
 
19381
  ac_status=$?
 
19382
  grep -v '^ *+' conftest.er1 >conftest.err
 
19383
  rm -f conftest.er1
 
19384
  cat conftest.err >&5
 
19385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19386
  (exit $ac_status); } &&
 
19387
         { ac_try='test -z "$ac_c_werror_flag"
 
19388
                         || test ! -s conftest.err'
 
19389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19390
  (eval $ac_try) 2>&5
 
19391
  ac_status=$?
 
19392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19393
  (exit $ac_status); }; } &&
 
19394
         { ac_try='test -s conftest$ac_exeext'
 
19395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19396
  (eval $ac_try) 2>&5
 
19397
  ac_status=$?
 
19398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19399
  (exit $ac_status); }; }; then
 
19400
  ac_cv_func_dlopen=yes
 
19401
else
 
19402
  echo "$as_me: failed program was:" >&5
 
19403
sed 's/^/| /' conftest.$ac_ext >&5
 
19404
 
 
19405
ac_cv_func_dlopen=no
 
19406
fi
 
19407
rm -f conftest.err conftest.$ac_objext \
 
19408
      conftest$ac_exeext conftest.$ac_ext
 
19409
fi
 
19410
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19411
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19412
if test $ac_cv_func_dlopen = yes; then
 
19413
  lt_cv_dlopen="dlopen"
 
19414
else
 
19415
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19416
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19417
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19419
else
 
19420
  ac_check_lib_save_LIBS=$LIBS
 
19421
LIBS="-ldl  $LIBS"
 
19422
cat >conftest.$ac_ext <<_ACEOF
 
19423
/* confdefs.h.  */
 
19424
_ACEOF
 
19425
cat confdefs.h >>conftest.$ac_ext
 
19426
cat >>conftest.$ac_ext <<_ACEOF
 
19427
/* end confdefs.h.  */
 
19428
 
 
19429
/* Override any gcc2 internal prototype to avoid an error.  */
 
19430
#ifdef __cplusplus
 
19431
extern "C"
 
19432
#endif
 
19433
/* We use char because int might match the return type of a gcc2
 
19434
   builtin and then its argument prototype would still apply.  */
 
19435
char dlopen ();
 
19436
int
 
19437
main ()
 
19438
{
 
19439
dlopen ();
 
19440
  ;
 
19441
  return 0;
 
19442
}
 
19443
_ACEOF
 
19444
rm -f conftest.$ac_objext conftest$ac_exeext
 
19445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19446
  (eval $ac_link) 2>conftest.er1
 
19447
  ac_status=$?
 
19448
  grep -v '^ *+' conftest.er1 >conftest.err
 
19449
  rm -f conftest.er1
 
19450
  cat conftest.err >&5
 
19451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19452
  (exit $ac_status); } &&
 
19453
         { ac_try='test -z "$ac_c_werror_flag"
 
19454
                         || test ! -s conftest.err'
 
19455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19456
  (eval $ac_try) 2>&5
 
19457
  ac_status=$?
 
19458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19459
  (exit $ac_status); }; } &&
 
19460
         { ac_try='test -s conftest$ac_exeext'
 
19461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19462
  (eval $ac_try) 2>&5
 
19463
  ac_status=$?
 
19464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19465
  (exit $ac_status); }; }; then
 
19466
  ac_cv_lib_dl_dlopen=yes
 
19467
else
 
19468
  echo "$as_me: failed program was:" >&5
 
19469
sed 's/^/| /' conftest.$ac_ext >&5
 
19470
 
 
19471
ac_cv_lib_dl_dlopen=no
 
19472
fi
 
19473
rm -f conftest.err conftest.$ac_objext \
 
19474
      conftest$ac_exeext conftest.$ac_ext
 
19475
LIBS=$ac_check_lib_save_LIBS
 
19476
fi
 
19477
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19478
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19479
if test $ac_cv_lib_dl_dlopen = yes; then
 
19480
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19481
else
 
19482
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19483
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19484
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19486
else
 
19487
  ac_check_lib_save_LIBS=$LIBS
 
19488
LIBS="-lsvld  $LIBS"
 
19489
cat >conftest.$ac_ext <<_ACEOF
 
19490
/* confdefs.h.  */
 
19491
_ACEOF
 
19492
cat confdefs.h >>conftest.$ac_ext
 
19493
cat >>conftest.$ac_ext <<_ACEOF
 
19494
/* end confdefs.h.  */
 
19495
 
 
19496
/* Override any gcc2 internal prototype to avoid an error.  */
 
19497
#ifdef __cplusplus
 
19498
extern "C"
 
19499
#endif
 
19500
/* We use char because int might match the return type of a gcc2
 
19501
   builtin and then its argument prototype would still apply.  */
 
19502
char dlopen ();
 
19503
int
 
19504
main ()
 
19505
{
 
19506
dlopen ();
 
19507
  ;
 
19508
  return 0;
 
19509
}
 
19510
_ACEOF
 
19511
rm -f conftest.$ac_objext conftest$ac_exeext
 
19512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19513
  (eval $ac_link) 2>conftest.er1
 
19514
  ac_status=$?
 
19515
  grep -v '^ *+' conftest.er1 >conftest.err
 
19516
  rm -f conftest.er1
 
19517
  cat conftest.err >&5
 
19518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19519
  (exit $ac_status); } &&
 
19520
         { ac_try='test -z "$ac_c_werror_flag"
 
19521
                         || test ! -s conftest.err'
 
19522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19523
  (eval $ac_try) 2>&5
 
19524
  ac_status=$?
 
19525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19526
  (exit $ac_status); }; } &&
 
19527
         { ac_try='test -s conftest$ac_exeext'
 
19528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19529
  (eval $ac_try) 2>&5
 
19530
  ac_status=$?
 
19531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19532
  (exit $ac_status); }; }; then
 
19533
  ac_cv_lib_svld_dlopen=yes
 
19534
else
 
19535
  echo "$as_me: failed program was:" >&5
 
19536
sed 's/^/| /' conftest.$ac_ext >&5
 
19537
 
 
19538
ac_cv_lib_svld_dlopen=no
 
19539
fi
 
19540
rm -f conftest.err conftest.$ac_objext \
 
19541
      conftest$ac_exeext conftest.$ac_ext
 
19542
LIBS=$ac_check_lib_save_LIBS
 
19543
fi
 
19544
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19545
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19546
if test $ac_cv_lib_svld_dlopen = yes; then
 
19547
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19548
else
 
19549
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19550
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19551
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19553
else
 
19554
  ac_check_lib_save_LIBS=$LIBS
 
19555
LIBS="-ldld  $LIBS"
 
19556
cat >conftest.$ac_ext <<_ACEOF
 
19557
/* confdefs.h.  */
 
19558
_ACEOF
 
19559
cat confdefs.h >>conftest.$ac_ext
 
19560
cat >>conftest.$ac_ext <<_ACEOF
 
19561
/* end confdefs.h.  */
 
19562
 
 
19563
/* Override any gcc2 internal prototype to avoid an error.  */
 
19564
#ifdef __cplusplus
 
19565
extern "C"
 
19566
#endif
 
19567
/* We use char because int might match the return type of a gcc2
 
19568
   builtin and then its argument prototype would still apply.  */
 
19569
char dld_link ();
 
19570
int
 
19571
main ()
 
19572
{
 
19573
dld_link ();
 
19574
  ;
 
19575
  return 0;
 
19576
}
 
19577
_ACEOF
 
19578
rm -f conftest.$ac_objext conftest$ac_exeext
 
19579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19580
  (eval $ac_link) 2>conftest.er1
 
19581
  ac_status=$?
 
19582
  grep -v '^ *+' conftest.er1 >conftest.err
 
19583
  rm -f conftest.er1
 
19584
  cat conftest.err >&5
 
19585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19586
  (exit $ac_status); } &&
 
19587
         { ac_try='test -z "$ac_c_werror_flag"
 
19588
                         || test ! -s conftest.err'
 
19589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19590
  (eval $ac_try) 2>&5
 
19591
  ac_status=$?
 
19592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19593
  (exit $ac_status); }; } &&
 
19594
         { ac_try='test -s conftest$ac_exeext'
 
19595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19596
  (eval $ac_try) 2>&5
 
19597
  ac_status=$?
 
19598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19599
  (exit $ac_status); }; }; then
 
19600
  ac_cv_lib_dld_dld_link=yes
 
19601
else
 
19602
  echo "$as_me: failed program was:" >&5
 
19603
sed 's/^/| /' conftest.$ac_ext >&5
 
19604
 
 
19605
ac_cv_lib_dld_dld_link=no
 
19606
fi
 
19607
rm -f conftest.err conftest.$ac_objext \
 
19608
      conftest$ac_exeext conftest.$ac_ext
 
19609
LIBS=$ac_check_lib_save_LIBS
 
19610
fi
 
19611
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19612
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19613
if test $ac_cv_lib_dld_dld_link = yes; then
 
19614
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19615
fi
 
19616
 
 
19617
 
 
19618
fi
 
19619
 
 
19620
 
 
19621
fi
 
19622
 
 
19623
 
 
19624
fi
 
19625
 
 
19626
 
 
19627
fi
 
19628
 
 
19629
 
 
19630
fi
 
19631
 
 
19632
    ;;
 
19633
  esac
 
19634
 
 
19635
  if test "x$lt_cv_dlopen" != xno; then
 
19636
    enable_dlopen=yes
 
19637
  else
 
19638
    enable_dlopen=no
 
19639
  fi
 
19640
 
 
19641
  case $lt_cv_dlopen in
 
19642
  dlopen)
 
19643
    save_CPPFLAGS="$CPPFLAGS"
 
19644
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19645
 
 
19646
    save_LDFLAGS="$LDFLAGS"
 
19647
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19648
 
 
19649
    save_LIBS="$LIBS"
 
19650
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19651
 
 
19652
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19653
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19654
if test "${lt_cv_dlopen_self+set}" = set; then
 
19655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19656
else
 
19657
          if test "$cross_compiling" = yes; then :
 
19658
  lt_cv_dlopen_self=cross
 
19659
else
 
19660
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19661
  lt_status=$lt_dlunknown
 
19662
  cat > conftest.$ac_ext <<EOF
 
19663
#line 19663 "configure"
 
19664
#include "confdefs.h"
 
19665
 
 
19666
#if HAVE_DLFCN_H
 
19667
#include <dlfcn.h>
 
19668
#endif
 
19669
 
 
19670
#include <stdio.h>
 
19671
 
 
19672
#ifdef RTLD_GLOBAL
 
19673
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19674
#else
 
19675
#  ifdef DL_GLOBAL
 
19676
#    define LT_DLGLOBAL         DL_GLOBAL
 
19677
#  else
 
19678
#    define LT_DLGLOBAL         0
 
19679
#  endif
 
19680
#endif
 
19681
 
 
19682
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19683
   find out it does not work in some platform. */
 
19684
#ifndef LT_DLLAZY_OR_NOW
 
19685
#  ifdef RTLD_LAZY
 
19686
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19687
#  else
 
19688
#    ifdef DL_LAZY
 
19689
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19690
#    else
 
19691
#      ifdef RTLD_NOW
 
19692
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19693
#      else
 
19694
#        ifdef DL_NOW
 
19695
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19696
#        else
 
19697
#          define LT_DLLAZY_OR_NOW      0
 
19698
#        endif
 
19699
#      endif
 
19700
#    endif
 
19701
#  endif
 
19702
#endif
 
19703
 
 
19704
#ifdef __cplusplus
 
19705
extern "C" void exit (int);
 
19706
#endif
 
19707
 
 
19708
void fnord() { int i=42;}
 
19709
int main ()
 
19710
{
 
19711
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19712
  int status = $lt_dlunknown;
 
19713
 
 
19714
  if (self)
 
19715
    {
 
19716
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19717
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19718
      /* dlclose (self); */
 
19719
    }
 
19720
 
 
19721
    exit (status);
 
19722
}
 
19723
EOF
 
19724
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19725
  (eval $ac_link) 2>&5
 
19726
  ac_status=$?
 
19727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19728
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19729
    (./conftest; exit; ) 2>/dev/null
 
19730
    lt_status=$?
 
19731
    case x$lt_status in
 
19732
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19733
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19734
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19735
    esac
 
19736
  else :
 
19737
    # compilation failed
 
19738
    lt_cv_dlopen_self=no
 
19739
  fi
 
19740
fi
 
19741
rm -fr conftest*
 
19742
 
 
19743
 
 
19744
fi
 
19745
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19746
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19747
 
 
19748
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19749
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19750
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19751
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19752
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19754
else
 
19755
          if test "$cross_compiling" = yes; then :
 
19756
  lt_cv_dlopen_self_static=cross
 
19757
else
 
19758
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19759
  lt_status=$lt_dlunknown
 
19760
  cat > conftest.$ac_ext <<EOF
 
19761
#line 19761 "configure"
 
19762
#include "confdefs.h"
 
19763
 
 
19764
#if HAVE_DLFCN_H
 
19765
#include <dlfcn.h>
 
19766
#endif
 
19767
 
 
19768
#include <stdio.h>
 
19769
 
 
19770
#ifdef RTLD_GLOBAL
 
19771
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19772
#else
 
19773
#  ifdef DL_GLOBAL
 
19774
#    define LT_DLGLOBAL         DL_GLOBAL
 
19775
#  else
 
19776
#    define LT_DLGLOBAL         0
 
19777
#  endif
 
19778
#endif
 
19779
 
 
19780
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19781
   find out it does not work in some platform. */
 
19782
#ifndef LT_DLLAZY_OR_NOW
 
19783
#  ifdef RTLD_LAZY
 
19784
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19785
#  else
 
19786
#    ifdef DL_LAZY
 
19787
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19788
#    else
 
19789
#      ifdef RTLD_NOW
 
19790
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19791
#      else
 
19792
#        ifdef DL_NOW
 
19793
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19794
#        else
 
19795
#          define LT_DLLAZY_OR_NOW      0
 
19796
#        endif
 
19797
#      endif
 
19798
#    endif
 
19799
#  endif
 
19800
#endif
 
19801
 
 
19802
#ifdef __cplusplus
 
19803
extern "C" void exit (int);
 
19804
#endif
 
19805
 
 
19806
void fnord() { int i=42;}
 
19807
int main ()
 
19808
{
 
19809
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19810
  int status = $lt_dlunknown;
 
19811
 
 
19812
  if (self)
 
19813
    {
 
19814
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19815
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19816
      /* dlclose (self); */
 
19817
    }
 
19818
 
 
19819
    exit (status);
 
19820
}
 
19821
EOF
 
19822
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19823
  (eval $ac_link) 2>&5
 
19824
  ac_status=$?
 
19825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19826
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19827
    (./conftest; exit; ) 2>/dev/null
 
19828
    lt_status=$?
 
19829
    case x$lt_status in
 
19830
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19831
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19832
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19833
    esac
 
19834
  else :
 
19835
    # compilation failed
 
19836
    lt_cv_dlopen_self_static=no
 
19837
  fi
 
19838
fi
 
19839
rm -fr conftest*
 
19840
 
 
19841
 
 
19842
fi
 
19843
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19844
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19845
    fi
 
19846
 
 
19847
    CPPFLAGS="$save_CPPFLAGS"
 
19848
    LDFLAGS="$save_LDFLAGS"
 
19849
    LIBS="$save_LIBS"
 
19850
    ;;
 
19851
  esac
 
19852
 
 
19853
  case $lt_cv_dlopen_self in
 
19854
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19855
  *) enable_dlopen_self=unknown ;;
 
19856
  esac
 
19857
 
 
19858
  case $lt_cv_dlopen_self_static in
 
19859
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19860
  *) enable_dlopen_self_static=unknown ;;
 
19861
  esac
 
19862
fi
 
19863
 
19201
19864
 
19202
19865
# The else clause should only fire when bootstrapping the
19203
19866
# libtool distribution, otherwise you forgot to ship ltmain.sh
19212
19875
  # Now quote all the things that may contain metacharacters while being
19213
19876
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19214
19877
  # variables and quote the copies for generation of the libtool script.
19215
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19878
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19216
19879
    SED SHELL STRIP \
19217
19880
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19218
19881
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19313
19976
# The host system.
19314
19977
host_alias=$host_alias
19315
19978
host=$host
19316
 
host_os=$host_os
19317
 
 
19318
 
# The build system.
19319
 
build_alias=$build_alias
19320
 
build=$build
19321
 
build_os=$build_os
19322
19979
 
19323
19980
# An echo program that does not interpret backslashes.
19324
19981
echo=$lt_echo
19330
19987
# A C compiler.
19331
19988
LTCC=$lt_LTCC
19332
19989
 
19333
 
# LTCC compiler flags.
19334
 
LTCFLAGS=$lt_LTCFLAGS
19335
 
 
19336
19990
# A language-specific compiler.
19337
19991
CC=$lt_compiler_GCJ
19338
19992
 
19398
20052
# Does compiler simultaneously support -c and -o options?
19399
20053
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19400
20054
 
19401
 
# Must we lock files when doing compilation?
 
20055
# Must we lock files when doing compilation ?
19402
20056
need_locks=$lt_need_locks
19403
20057
 
19404
20058
# Do we need the lib prefix for modules?
19642
20296
# If no C compiler was specified, use CC.
19643
20297
LTCC=${LTCC-"$CC"}
19644
20298
 
19645
 
# If no C compiler flags were specified, use CFLAGS.
19646
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19647
 
 
19648
20299
# Allow CC to be a program name with arguments.
19649
20300
compiler=$CC
19650
20301
 
19651
20302
 
19652
 
# save warnings/boilerplate of simple test code
19653
 
ac_outfile=conftest.$ac_objext
19654
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19655
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19656
 
_lt_compiler_boilerplate=`cat conftest.err`
19657
 
$rm conftest*
19658
 
 
19659
 
ac_outfile=conftest.$ac_objext
19660
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19661
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19662
 
_lt_linker_boilerplate=`cat conftest.err`
19663
 
$rm conftest*
19664
 
 
19665
 
 
19666
20303
# Allow CC to be a program name with arguments.
19667
20304
lt_save_CC="$CC"
19668
20305
CC=${RC-"windres"}
19669
20306
compiler=$CC
19670
20307
compiler_RC=$CC
19671
 
for cc_temp in $compiler""; do
19672
 
  case $cc_temp in
19673
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19674
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19675
 
    \-*) ;;
19676
 
    *) break;;
19677
 
  esac
19678
 
done
19679
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19680
 
 
19681
20308
lt_cv_prog_compiler_c_o_RC=yes
19682
20309
 
19683
20310
# The else clause should only fire when bootstrapping the
19693
20320
  # Now quote all the things that may contain metacharacters while being
19694
20321
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19695
20322
  # variables and quote the copies for generation of the libtool script.
19696
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
20323
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19697
20324
    SED SHELL STRIP \
19698
20325
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19699
20326
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19794
20421
# The host system.
19795
20422
host_alias=$host_alias
19796
20423
host=$host
19797
 
host_os=$host_os
19798
 
 
19799
 
# The build system.
19800
 
build_alias=$build_alias
19801
 
build=$build
19802
 
build_os=$build_os
19803
20424
 
19804
20425
# An echo program that does not interpret backslashes.
19805
20426
echo=$lt_echo
19811
20432
# A C compiler.
19812
20433
LTCC=$lt_LTCC
19813
20434
 
19814
 
# LTCC compiler flags.
19815
 
LTCFLAGS=$lt_LTCFLAGS
19816
 
 
19817
20435
# A language-specific compiler.
19818
20436
CC=$lt_compiler_RC
19819
20437
 
19879
20497
# Does compiler simultaneously support -c and -o options?
19880
20498
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19881
20499
 
19882
 
# Must we lock files when doing compilation?
 
20500
# Must we lock files when doing compilation ?
19883
20501
need_locks=$lt_need_locks
19884
20502
 
19885
20503
# Do we need the lib prefix for modules?
20188
20806
  cat conftest.err >&5
20189
20807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190
20808
  (exit $ac_status); } &&
20191
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20809
         { ac_try='test -z "$ac_c_werror_flag"
 
20810
                         || test ! -s conftest.err'
20192
20811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193
20812
  (eval $ac_try) 2>&5
20194
20813
  ac_status=$?
20354
20973
  cat conftest.err >&5
20355
20974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356
20975
  (exit $ac_status); } &&
20357
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20976
         { ac_try='test -z "$ac_c_werror_flag"
 
20977
                         || test ! -s conftest.err'
20358
20978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359
20979
  (eval $ac_try) 2>&5
20360
20980
  ac_status=$?
20538
21158
  cat conftest.err >&5
20539
21159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540
21160
  (exit $ac_status); } &&
20541
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21161
         { ac_try='test -z "$ac_c_werror_flag"
 
21162
                         || test ! -s conftest.err'
20542
21163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543
21164
  (eval $ac_try) 2>&5
20544
21165
  ac_status=$?
20616
21237
  cat conftest.err >&5
20617
21238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618
21239
  (exit $ac_status); } &&
20619
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21240
         { ac_try='test -z "$ac_c_werror_flag"
 
21241
                         || test ! -s conftest.err'
20620
21242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621
21243
  (eval $ac_try) 2>&5
20622
21244
  ac_status=$?
20761
21383
  cat conftest.err >&5
20762
21384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763
21385
  (exit $ac_status); } &&
20764
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21386
         { ac_try='test -z "$ac_c_werror_flag"
 
21387
                         || test ! -s conftest.err'
20765
21388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766
21389
  (eval $ac_try) 2>&5
20767
21390
  ac_status=$?
20832
21455
  cat conftest.err >&5
20833
21456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834
21457
  (exit $ac_status); } &&
20835
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21458
         { ac_try='test -z "$ac_c_werror_flag"
 
21459
                         || test ! -s conftest.err'
20836
21460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837
21461
  (eval $ac_try) 2>&5
20838
21462
  ac_status=$?
20945
21569
      #
20946
21570
      # First check in libc
20947
21571
      #
20948
 
      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20949
 
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20950
 
if test "${gt_cv_func_ngettext_libc+set}" = set; then
20951
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20952
 
else
20953
 
  cat >conftest.$ac_ext <<_ACEOF
20954
 
/* confdefs.h.  */
20955
 
_ACEOF
20956
 
cat confdefs.h >>conftest.$ac_ext
20957
 
cat >>conftest.$ac_ext <<_ACEOF
20958
 
/* end confdefs.h.  */
20959
 
 
20960
 
#include <libintl.h>
20961
 
 
20962
 
int
20963
 
main ()
20964
 
{
20965
 
return !ngettext ("","", 1)
20966
 
  ;
20967
 
  return 0;
20968
 
}
20969
 
_ACEOF
20970
 
rm -f conftest.$ac_objext conftest$ac_exeext
20971
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20972
 
  (eval $ac_link) 2>conftest.er1
20973
 
  ac_status=$?
20974
 
  grep -v '^ *+' conftest.er1 >conftest.err
20975
 
  rm -f conftest.er1
20976
 
  cat conftest.err >&5
20977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978
 
  (exit $ac_status); } &&
20979
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20980
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981
 
  (eval $ac_try) 2>&5
20982
 
  ac_status=$?
20983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984
 
  (exit $ac_status); }; } &&
20985
 
         { ac_try='test -s conftest$ac_exeext'
20986
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987
 
  (eval $ac_try) 2>&5
20988
 
  ac_status=$?
20989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990
 
  (exit $ac_status); }; }; then
20991
 
  gt_cv_func_ngettext_libc=yes
20992
 
else
20993
 
  echo "$as_me: failed program was:" >&5
20994
 
sed 's/^/| /' conftest.$ac_ext >&5
20995
 
 
20996
 
gt_cv_func_ngettext_libc=no
20997
 
fi
20998
 
rm -f conftest.err conftest.$ac_objext \
20999
 
      conftest$ac_exeext conftest.$ac_ext
21000
 
 
21001
 
fi
21002
 
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21003
 
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
21004
 
 
21005
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21006
 
              echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
21572
      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21007
21573
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
21008
21574
if test "${gt_cv_func_dgettext_libc+set}" = set; then
21009
21575
  echo $ECHO_N "(cached) $ECHO_C" >&6
21020
21586
int
21021
21587
main ()
21022
21588
{
21023
 
return !dgettext ("","")
 
21589
return (int) dgettext ("","")
21024
21590
  ;
21025
21591
  return 0;
21026
21592
}
21034
21600
  cat conftest.err >&5
21035
21601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036
21602
  (exit $ac_status); } &&
21037
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21603
         { ac_try='test -z "$ac_c_werror_flag"
 
21604
                         || test ! -s conftest.err'
21038
21605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039
21606
  (eval $ac_try) 2>&5
21040
21607
  ac_status=$?
21059
21626
fi
21060
21627
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21061
21628
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
21062
 
      fi
21063
21629
 
21064
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21630
      if test "$gt_cv_func_dgettext_libc" = "yes" ; then
21065
21631
 
21066
21632
for ac_func in bind_textdomain_codeset
21067
21633
do
21131
21697
  cat conftest.err >&5
21132
21698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133
21699
  (exit $ac_status); } &&
21134
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21700
         { ac_try='test -z "$ac_c_werror_flag"
 
21701
                         || test ! -s conftest.err'
21135
21702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136
21703
  (eval $ac_try) 2>&5
21137
21704
  ac_status=$?
21169
21736
      # If we don't have everything we want, check in libintl
21170
21737
      #
21171
21738
      if test "$gt_cv_func_dgettext_libc" != "yes" \
21172
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
21173
21739
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21174
21740
 
21175
21741
        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21210
21776
  cat conftest.err >&5
21211
21777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212
21778
  (exit $ac_status); } &&
21213
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21779
         { ac_try='test -z "$ac_c_werror_flag"
 
21780
                         || test ! -s conftest.err'
21214
21781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215
21782
  (eval $ac_try) 2>&5
21216
21783
  ac_status=$?
21236
21803
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21237
21804
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
21238
21805
if test $ac_cv_lib_intl_bindtextdomain = yes; then
21239
 
  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21240
 
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21241
 
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21242
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21243
 
else
21244
 
  ac_check_lib_save_LIBS=$LIBS
21245
 
LIBS="-lintl  $LIBS"
21246
 
cat >conftest.$ac_ext <<_ACEOF
21247
 
/* confdefs.h.  */
21248
 
_ACEOF
21249
 
cat confdefs.h >>conftest.$ac_ext
21250
 
cat >>conftest.$ac_ext <<_ACEOF
21251
 
/* end confdefs.h.  */
21252
 
 
21253
 
/* Override any gcc2 internal prototype to avoid an error.  */
21254
 
#ifdef __cplusplus
21255
 
extern "C"
21256
 
#endif
21257
 
/* We use char because int might match the return type of a gcc2
21258
 
   builtin and then its argument prototype would still apply.  */
21259
 
char ngettext ();
21260
 
int
21261
 
main ()
21262
 
{
21263
 
ngettext ();
21264
 
  ;
21265
 
  return 0;
21266
 
}
21267
 
_ACEOF
21268
 
rm -f conftest.$ac_objext conftest$ac_exeext
21269
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270
 
  (eval $ac_link) 2>conftest.er1
21271
 
  ac_status=$?
21272
 
  grep -v '^ *+' conftest.er1 >conftest.err
21273
 
  rm -f conftest.er1
21274
 
  cat conftest.err >&5
21275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276
 
  (exit $ac_status); } &&
21277
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21278
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279
 
  (eval $ac_try) 2>&5
21280
 
  ac_status=$?
21281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282
 
  (exit $ac_status); }; } &&
21283
 
         { ac_try='test -s conftest$ac_exeext'
21284
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285
 
  (eval $ac_try) 2>&5
21286
 
  ac_status=$?
21287
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288
 
  (exit $ac_status); }; }; then
21289
 
  ac_cv_lib_intl_ngettext=yes
21290
 
else
21291
 
  echo "$as_me: failed program was:" >&5
21292
 
sed 's/^/| /' conftest.$ac_ext >&5
21293
 
 
21294
 
ac_cv_lib_intl_ngettext=no
21295
 
fi
21296
 
rm -f conftest.err conftest.$ac_objext \
21297
 
      conftest$ac_exeext conftest.$ac_ext
21298
 
LIBS=$ac_check_lib_save_LIBS
21299
 
fi
21300
 
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21301
 
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21302
 
if test $ac_cv_lib_intl_ngettext = yes; then
21303
21806
  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21304
21807
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21305
21808
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21338
21841
  cat conftest.err >&5
21339
21842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340
21843
  (exit $ac_status); } &&
21341
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21844
         { ac_try='test -z "$ac_c_werror_flag"
 
21845
                         || test ! -s conftest.err'
21342
21846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343
21847
  (eval $ac_try) 2>&5
21344
21848
  ac_status=$?
21369
21873
 
21370
21874
fi
21371
21875
 
21372
 
fi
21373
 
 
21374
21876
 
21375
21877
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21376
21878
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21377
21879
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
21378
21880
          echo "$as_me:$LINENO: result: " >&5
21379
21881
echo "${ECHO_T}" >&6
21380
 
          echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21381
 
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21382
 
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21383
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21384
 
else
21385
 
  ac_check_lib_save_LIBS=$LIBS
21386
 
LIBS="-lintl -liconv $LIBS"
21387
 
cat >conftest.$ac_ext <<_ACEOF
21388
 
/* confdefs.h.  */
21389
 
_ACEOF
21390
 
cat confdefs.h >>conftest.$ac_ext
21391
 
cat >>conftest.$ac_ext <<_ACEOF
21392
 
/* end confdefs.h.  */
21393
 
 
21394
 
/* Override any gcc2 internal prototype to avoid an error.  */
21395
 
#ifdef __cplusplus
21396
 
extern "C"
21397
 
#endif
21398
 
/* We use char because int might match the return type of a gcc2
21399
 
   builtin and then its argument prototype would still apply.  */
21400
 
char ngettext ();
21401
 
int
21402
 
main ()
21403
 
{
21404
 
ngettext ();
21405
 
  ;
21406
 
  return 0;
21407
 
}
21408
 
_ACEOF
21409
 
rm -f conftest.$ac_objext conftest$ac_exeext
21410
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21411
 
  (eval $ac_link) 2>conftest.er1
21412
 
  ac_status=$?
21413
 
  grep -v '^ *+' conftest.er1 >conftest.err
21414
 
  rm -f conftest.er1
21415
 
  cat conftest.err >&5
21416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417
 
  (exit $ac_status); } &&
21418
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420
 
  (eval $ac_try) 2>&5
21421
 
  ac_status=$?
21422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423
 
  (exit $ac_status); }; } &&
21424
 
         { ac_try='test -s conftest$ac_exeext'
21425
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426
 
  (eval $ac_try) 2>&5
21427
 
  ac_status=$?
21428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
 
  (exit $ac_status); }; }; then
21430
 
  ac_cv_lib_intl_ngettext=yes
21431
 
else
21432
 
  echo "$as_me: failed program was:" >&5
21433
 
sed 's/^/| /' conftest.$ac_ext >&5
21434
 
 
21435
 
ac_cv_lib_intl_ngettext=no
21436
 
fi
21437
 
rm -f conftest.err conftest.$ac_objext \
21438
 
      conftest$ac_exeext conftest.$ac_ext
21439
 
LIBS=$ac_check_lib_save_LIBS
21440
 
fi
21441
 
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21442
 
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21443
 
if test $ac_cv_lib_intl_ngettext = yes; then
21444
 
  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
21882
          echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21445
21883
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
21446
21884
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21447
21885
  echo $ECHO_N "(cached) $ECHO_C" >&6
21479
21917
  cat conftest.err >&5
21480
21918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481
21919
  (exit $ac_status); } &&
21482
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21920
         { ac_try='test -z "$ac_c_werror_flag"
 
21921
                         || test ! -s conftest.err'
21483
21922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484
21923
  (eval $ac_try) 2>&5
21485
21924
  ac_status=$?
21511
21950
  :
21512
21951
fi
21513
21952
 
21514
 
else
21515
 
  :
21516
 
fi
21517
 
 
21518
21953
        fi
21519
21954
 
21520
21955
        #
21521
21956
        # If we found libintl, then check in it for bind_textdomain_codeset();
21522
21957
        # we'll prefer libc if neither have bind_textdomain_codeset(),
21523
 
        # and both have dgettext and ngettext
 
21958
        # and both have dgettext
21524
21959
        #
21525
21960
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21526
21961
          glib_save_LIBS="$LIBS"
21595
22030
  cat conftest.err >&5
21596
22031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597
22032
  (exit $ac_status); } &&
21598
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22033
         { ac_try='test -z "$ac_c_werror_flag"
 
22034
                         || test ! -s conftest.err'
21599
22035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600
22036
  (eval $ac_try) 2>&5
21601
22037
  ac_status=$?
21632
22068
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21633
22069
            gt_cv_func_dgettext_libc=no
21634
22070
          else
21635
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
21636
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
22071
            if test "$gt_cv_func_dgettext_libc" = "yes"; then
21637
22072
              gt_cv_func_dgettext_libintl=no
21638
22073
            fi
21639
22074
          fi
21762
22197
  cat conftest.err >&5
21763
22198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764
22199
  (exit $ac_status); } &&
21765
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22200
         { ac_try='test -z "$ac_c_werror_flag"
 
22201
                         || test ! -s conftest.err'
21766
22202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767
22203
  (eval $ac_try) 2>&5
21768
22204
  ac_status=$?
21895
22331
  cat conftest.err >&5
21896
22332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897
22333
  (exit $ac_status); } &&
21898
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22334
         { ac_try='test -z "$ac_c_werror_flag"
 
22335
                         || test ! -s conftest.err'
21899
22336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900
22337
  (eval $ac_try) 2>&5
21901
22338
  ac_status=$?
21980
22417
  cat conftest.err >&5
21981
22418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982
22419
  (exit $ac_status); } &&
21983
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22420
         { ac_try='test -z "$ac_c_werror_flag"
 
22421
                         || test ! -s conftest.err'
21984
22422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985
22423
  (eval $ac_try) 2>&5
21986
22424
  ac_status=$?
22200
22638
  cat conftest.err >&5
22201
22639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202
22640
  (exit $ac_status); } &&
22203
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22641
         { ac_try='test -z "$ac_c_werror_flag"
 
22642
                         || test ! -s conftest.err'
22204
22643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205
22644
  (eval $ac_try) 2>&5
22206
22645
  ac_status=$?
22258
22697
echo "${ECHO_T}$XGETTEXT_ARGS" >&6
22259
22698
 
22260
22699
 
22261
 
 
22262
 
if test "x$ac_path_x_has_been_run" != xyes; then
22263
 
  echo "$as_me:$LINENO: checking for X" >&5
 
22700
echo "$as_me:$LINENO: checking for X" >&5
22264
22701
echo $ECHO_N "checking for X... $ECHO_C" >&6
22265
22702
 
22266
 
ac_path_x_has_been_run=yes
22267
22703
 
22268
22704
# Check whether --with-x or --without-x was given.
22269
22705
if test "${with_x+set}" = set; then
22356
22792
/usr/openwin/share/include'
22357
22793
 
22358
22794
if test "$ac_x_includes" = no; then
22359
 
  # Guess where to find include files, by looking for a specified header file.
 
22795
  # Guess where to find include files, by looking for Intrinsic.h.
22360
22796
  # First, try using that file with no special directory specified.
22361
22797
  cat >conftest.$ac_ext <<_ACEOF
22362
22798
/* confdefs.h.  */
22364
22800
cat confdefs.h >>conftest.$ac_ext
22365
22801
cat >>conftest.$ac_ext <<_ACEOF
22366
22802
/* end confdefs.h.  */
22367
 
#include <X11/Xlib.h>
 
22803
#include <X11/Intrinsic.h>
22368
22804
_ACEOF
22369
22805
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22370
22806
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22391
22827
sed 's/^/| /' conftest.$ac_ext >&5
22392
22828
 
22393
22829
  for ac_dir in $ac_x_header_dirs; do
22394
 
  if test -r "$ac_dir/X11/Xlib.h"; then
 
22830
  if test -r "$ac_dir/X11/Intrinsic.h"; then
22395
22831
    ac_x_includes=$ac_dir
22396
22832
    break
22397
22833
  fi
22405
22841
  # See if we find them without any special options.
22406
22842
  # Don't add to $LIBS permanently.
22407
22843
  ac_save_LIBS=$LIBS
22408
 
  LIBS="-lX11 $LIBS"
 
22844
  LIBS="-lXt $LIBS"
22409
22845
  cat >conftest.$ac_ext <<_ACEOF
22410
22846
/* confdefs.h.  */
22411
22847
_ACEOF
22412
22848
cat confdefs.h >>conftest.$ac_ext
22413
22849
cat >>conftest.$ac_ext <<_ACEOF
22414
22850
/* end confdefs.h.  */
22415
 
#include <X11/Xlib.h>
 
22851
#include <X11/Intrinsic.h>
22416
22852
int
22417
22853
main ()
22418
22854
{
22419
 
XrmInitialize ()
 
22855
XtMalloc (0)
22420
22856
  ;
22421
22857
  return 0;
22422
22858
}
22430
22866
  cat conftest.err >&5
22431
22867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432
22868
  (exit $ac_status); } &&
22433
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22869
         { ac_try='test -z "$ac_c_werror_flag"
 
22870
                         || test ! -s conftest.err'
22434
22871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435
22872
  (eval $ac_try) 2>&5
22436
22873
  ac_status=$?
22454
22891
do
22455
22892
  # Don't even attempt the hair of trying to link an X program!
22456
22893
  for ac_extension in a so sl; do
22457
 
    if test -r $ac_dir/libX11.$ac_extension; then
 
22894
    if test -r $ac_dir/libXt.$ac_extension; then
22458
22895
      ac_x_libraries=$ac_dir
22459
22896
      break 2
22460
22897
    fi
22490
22927
  # Update the cache value to reflect the command line values.
22491
22928
  ac_cv_have_x="have_x=yes \
22492
22929
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22493
 
  # It might be that x_includes is empty (headers are found in the
22494
 
  # standard search path. Then output the corresponding message
22495
 
  ac_out_x_includes=$x_includes
22496
 
  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
22497
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
22498
 
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
 
22930
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
22931
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22499
22932
fi
22500
22933
 
22501
 
fi
22502
22934
if test "$no_x" = yes; then
22503
22935
  # Not all programs may use this symbol, but it does not hurt to define it.
22504
22936
 
22546
22978
  cat conftest.err >&5
22547
22979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548
22980
  (exit $ac_status); } &&
22549
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22981
         { ac_try='test -z "$ac_c_werror_flag"
 
22982
                         || test ! -s conftest.err'
22550
22983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551
22984
  (eval $ac_try) 2>&5
22552
22985
  ac_status=$?
22597
23030
  cat conftest.err >&5
22598
23031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599
23032
  (exit $ac_status); } &&
22600
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23033
         { ac_try='test -z "$ac_c_werror_flag"
 
23034
                         || test ! -s conftest.err'
22601
23035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602
23036
  (eval $ac_try) 2>&5
22603
23037
  ac_status=$?
22673
23107
  cat conftest.err >&5
22674
23108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675
23109
  (exit $ac_status); } &&
22676
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23110
         { ac_try='test -z "$ac_c_werror_flag"
 
23111
                         || test ! -s conftest.err'
22677
23112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678
23113
  (eval $ac_try) 2>&5
22679
23114
  ac_status=$?
22728
23163
  cat conftest.err >&5
22729
23164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730
23165
  (exit $ac_status); } &&
22731
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23166
         { ac_try='test -z "$ac_c_werror_flag"
 
23167
                         || test ! -s conftest.err'
22732
23168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733
23169
  (eval $ac_try) 2>&5
22734
23170
  ac_status=$?
22796
23232
  cat conftest.err >&5
22797
23233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798
23234
  (exit $ac_status); } &&
22799
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23235
         { ac_try='test -z "$ac_c_werror_flag"
 
23236
                         || test ! -s conftest.err'
22800
23237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801
23238
  (eval $ac_try) 2>&5
22802
23239
  ac_status=$?
22904
23341
  cat conftest.err >&5
22905
23342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906
23343
  (exit $ac_status); } &&
22907
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23344
         { ac_try='test -z "$ac_c_werror_flag"
 
23345
                         || test ! -s conftest.err'
22908
23346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909
23347
  (eval $ac_try) 2>&5
22910
23348
  ac_status=$?
22968
23406
  cat conftest.err >&5
22969
23407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970
23408
  (exit $ac_status); } &&
22971
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23409
         { ac_try='test -z "$ac_c_werror_flag"
 
23410
                         || test ! -s conftest.err'
22972
23411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973
23412
  (eval $ac_try) 2>&5
22974
23413
  ac_status=$?
23036
23475
  cat conftest.err >&5
23037
23476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038
23477
  (exit $ac_status); } &&
23039
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23478
         { ac_try='test -z "$ac_c_werror_flag"
 
23479
                         || test ! -s conftest.err'
23040
23480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041
23481
  (eval $ac_try) 2>&5
23042
23482
  ac_status=$?
23140
23580
  cat conftest.err >&5
23141
23581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142
23582
  (exit $ac_status); } &&
23143
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23583
         { ac_try='test -z "$ac_c_werror_flag"
 
23584
                         || test ! -s conftest.err'
23144
23585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145
23586
  (eval $ac_try) 2>&5
23146
23587
  ac_status=$?
23204
23645
  cat conftest.err >&5
23205
23646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206
23647
  (exit $ac_status); } &&
23207
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23648
         { ac_try='test -z "$ac_c_werror_flag"
 
23649
                         || test ! -s conftest.err'
23208
23650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209
23651
  (eval $ac_try) 2>&5
23210
23652
  ac_status=$?
23301
23743
  cat conftest.err >&5
23302
23744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303
23745
  (exit $ac_status); } &&
23304
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23746
         { ac_try='test -z "$ac_c_werror_flag"
 
23747
                         || test ! -s conftest.err'
23305
23748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306
23749
  (eval $ac_try) 2>&5
23307
23750
  ac_status=$?
23365
23808
  cat conftest.err >&5
23366
23809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367
23810
  (exit $ac_status); } &&
23368
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23811
         { ac_try='test -z "$ac_c_werror_flag"
 
23812
                         || test ! -s conftest.err'
23369
23813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370
23814
  (eval $ac_try) 2>&5
23371
23815
  ac_status=$?
23462
23906
  cat conftest.err >&5
23463
23907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464
23908
  (exit $ac_status); } &&
23465
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23909
         { ac_try='test -z "$ac_c_werror_flag"
 
23910
                         || test ! -s conftest.err'
23466
23911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467
23912
  (eval $ac_try) 2>&5
23468
23913
  ac_status=$?
23526
23971
  cat conftest.err >&5
23527
23972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528
23973
  (exit $ac_status); } &&
23529
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23974
         { ac_try='test -z "$ac_c_werror_flag"
 
23975
                         || test ! -s conftest.err'
23530
23976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531
23977
  (eval $ac_try) 2>&5
23532
23978
  ac_status=$?
23605
24051
  cat conftest.err >&5
23606
24052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607
24053
  (exit $ac_status); } &&
23608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24054
         { ac_try='test -z "$ac_c_werror_flag"
 
24055
                         || test ! -s conftest.err'
23609
24056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610
24057
  (eval $ac_try) 2>&5
23611
24058
  ac_status=$?
23675
24122
  cat conftest.err >&5
23676
24123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677
24124
  (exit $ac_status); } &&
23678
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24125
         { ac_try='test -z "$ac_c_werror_flag"
 
24126
                         || test ! -s conftest.err'
23679
24127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680
24128
  (eval $ac_try) 2>&5
23681
24129
  ac_status=$?
23784
24232
  cat conftest.err >&5
23785
24233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786
24234
  (exit $ac_status); } &&
23787
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24235
         { ac_try='test -z "$ac_c_werror_flag"
 
24236
                         || test ! -s conftest.err'
23788
24237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789
24238
  (eval $ac_try) 2>&5
23790
24239
  ac_status=$?
23859
24308
  cat conftest.err >&5
23860
24309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861
24310
  (exit $ac_status); } &&
23862
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24311
         { ac_try='test -z "$ac_c_werror_flag"
 
24312
                         || test ! -s conftest.err'
23863
24313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23864
24314
  (eval $ac_try) 2>&5
23865
24315
  ac_status=$?
23934
24384
  cat conftest.err >&5
23935
24385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936
24386
  (exit $ac_status); } &&
23937
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24387
         { ac_try='test -z "$ac_c_werror_flag"
 
24388
                         || test ! -s conftest.err'
23938
24389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939
24390
  (eval $ac_try) 2>&5
23940
24391
  ac_status=$?
24009
24460
  cat conftest.err >&5
24010
24461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011
24462
  (exit $ac_status); } &&
24012
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24463
         { ac_try='test -z "$ac_c_werror_flag"
 
24464
                         || test ! -s conftest.err'
24013
24465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014
24466
  (eval $ac_try) 2>&5
24015
24467
  ac_status=$?
24085
24537
  cat conftest.err >&5
24086
24538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087
24539
  (exit $ac_status); } &&
24088
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24540
         { ac_try='test -z "$ac_c_werror_flag"
 
24541
                         || test ! -s conftest.err'
24089
24542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090
24543
  (eval $ac_try) 2>&5
24091
24544
  ac_status=$?
24555
25008
  enableval="$enable_debug"
24556
25009
 
24557
25010
else
24558
 
  enable_debug=yes
 
25011
  enable_debug=minimum
24559
25012
fi;
24560
25013
echo "$as_me:$LINENO: checking whether to enable debugging support" >&5
24561
25014
echo $ECHO_N "checking whether to enable debugging support... $ECHO_C" >&6
24581
25034
  cat conftest.err >&5
24582
25035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583
25036
  (exit $ac_status); } &&
24584
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25037
         { ac_try='test -z "$ac_c_werror_flag"
 
25038
                         || test ! -s conftest.err'
24585
25039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586
25040
  (eval $ac_try) 2>&5
24587
25041
  ac_status=$?
24784
25238
   { (exit 1); exit 1; }; }
24785
25239
fi
24786
25240
 
24787
 
            ac_config_commands="$ac_config_commands po/stamp-it"
 
25241
 
 
25242
        mv -f po/POTFILES po/POTFILES.tmp
 
25243
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
25244
        rm -f po/POTFILES.tmp
24788
25245
 
24789
25246
 
24790
25247
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25065
25522
} >&5
25066
25523
cat >&5 <<_CSEOF
25067
25524
 
25068
 
This file was extended by xfce-mcs-plugins $as_me 4.3.90.2svn-21633, which was
 
25525
This file was extended by xfce-mcs-plugins $as_me 4.3.90.2, which was
25069
25526
generated by GNU Autoconf 2.59.  Invocation command line was
25070
25527
 
25071
25528
  CONFIG_FILES    = $CONFIG_FILES
25128
25585
 
25129
25586
cat >>$CONFIG_STATUS <<_ACEOF
25130
25587
ac_cs_version="\\
25131
 
xfce-mcs-plugins config.status 4.3.90.2svn-21633
 
25588
xfce-mcs-plugins config.status 4.3.90.2
25132
25589
configured by $0, generated by GNU Autoconf 2.59,
25133
25590
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25134
25591
 
25228
25685
#
25229
25686
 
25230
25687
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25231
 
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
25232
 
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
25233
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
25234
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
25235
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
 
25688
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
 
25689
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
 
25690
MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
 
25691
XGETTEXT='${INTLTOOL_XGETTEXT}'
25236
25692
 
25237
25693
 
25238
25694
_ACEOF
25268
25724
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25269
25725
  "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
25270
25726
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25271
 
  "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
25272
25727
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25273
25728
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25274
25729
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25367
25822
s,@AUTOMAKE@,$AUTOMAKE,;t t
25368
25823
s,@AUTOHEADER@,$AUTOHEADER,;t t
25369
25824
s,@MAKEINFO@,$MAKEINFO,;t t
25370
 
s,@AMTAR@,$AMTAR,;t t
25371
25825
s,@install_sh@,$install_sh,;t t
25372
25826
s,@STRIP@,$STRIP,;t t
25373
25827
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25375
25829
s,@mkdir_p@,$mkdir_p,;t t
25376
25830
s,@AWK@,$AWK,;t t
25377
25831
s,@am__leading_dot@,$am__leading_dot,;t t
 
25832
s,@AMTAR@,$AMTAR,;t t
 
25833
s,@am__tar@,$am__tar,;t t
 
25834
s,@am__untar@,$am__untar,;t t
25378
25835
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25379
25836
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25380
25837
s,@MAINT@,$MAINT,;t t
25415
25872
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
25416
25873
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
25417
25874
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
25418
 
s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
25419
25875
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
25420
25876
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
25421
25877
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
25669
26125
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25670
26126
  esac
25671
26127
 
 
26128
  if test x"$ac_file" != x-; then
 
26129
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
26130
echo "$as_me: creating $ac_file" >&6;}
 
26131
    rm -f "$ac_file"
 
26132
  fi
25672
26133
  # Let's still pretend it is `configure' which instantiates (i.e., don't
25673
26134
  # use $as_me), people would be surprised to read:
25674
26135
  #    /* config.h.  Generated by config.status.  */
25707
26168
         fi;;
25708
26169
      esac
25709
26170
    done` || { (exit 1); exit 1; }
25710
 
 
25711
 
  if test x"$ac_file" != x-; then
25712
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
25713
 
echo "$as_me: creating $ac_file" >&6;}
25714
 
    rm -f "$ac_file"
25715
 
  fi
25716
26171
_ACEOF
25717
26172
cat >>$CONFIG_STATUS <<_ACEOF
25718
26173
  sed "$ac_vpsub
26126
26581
  else
26127
26582
    continue
26128
26583
  fi
26129
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
26130
 
  # Extract the definition of DEP_FILES from the Makefile without
26131
 
  # running `make'.
 
26584
  # Extract the definition of DEPDIR, am__include, and am__quote
 
26585
  # from the Makefile without running `make'.
26132
26586
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26133
26587
  test -z "$DEPDIR" && continue
 
26588
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
26589
  test -z "am__include" && continue
 
26590
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26134
26591
  # When using ansi2knr, U may be empty or an underscore; expand it
26135
26592
  U=`sed -n 's/^U = //p' < "$mf"`
26136
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
26137
 
  # We invoke sed twice because it is the simplest approach to
26138
 
  # changing $(DEPDIR) to its actual value in the expansion.
26139
 
  for file in `sed -n '
26140
 
    /^DEP_FILES = .*\\\\$/ {
26141
 
      s/^DEP_FILES = //
26142
 
      :loop
26143
 
        s/\\\\$//
26144
 
        p
26145
 
        n
26146
 
        /\\\\$/ b loop
26147
 
      p
26148
 
    }
26149
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
26593
  # Find all dependency output files, they are included files with
 
26594
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
26595
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
26596
  # expansion.
 
26597
  for file in `sed -n "
 
26598
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26150
26599
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26151
26600
    # Make sure the directory exists.
26152
26601
    test -f "$dirpart/$file" && continue
26194
26643
 ;;
26195
26644
    intltool )
26196
26645
 
26197
 
for file in intltool-extract intltool-merge intltool-update; do
26198
 
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
26199
 
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
26200
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
26201
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
26202
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
26203
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
26204
 
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
26205
 
        < ${ac_aux_dir}/${file}.in > ${file}.out
26206
 
  if cmp -s ${file} ${file}.out 2>/dev/null; then
26207
 
    rm -f ${file}.out
26208
 
  else
26209
 
    mv -f ${file}.out ${file}
26210
 
  fi
26211
 
  chmod ugo+x ${file}
26212
 
  chmod u+w ${file}
26213
 
done
 
26646
intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
 
26647
               -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
 
26648
               -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
 
26649
               -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
 
26650
               -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
 
26651
               -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
 
26652
 
 
26653
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
 
26654
  > intltool-extract.out
 
26655
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
 
26656
  rm -f intltool-extract.out
 
26657
else
 
26658
  mv -f intltool-extract.out intltool-extract
 
26659
fi
 
26660
chmod ugo+x intltool-extract
 
26661
chmod u+w intltool-extract
 
26662
 
 
26663
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
 
26664
  > intltool-merge.out
 
26665
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
 
26666
  rm -f intltool-merge.out
 
26667
else
 
26668
  mv -f intltool-merge.out intltool-merge
 
26669
fi
 
26670
chmod ugo+x intltool-merge
 
26671
chmod u+w intltool-merge
 
26672
 
 
26673
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
 
26674
  > intltool-update.out
 
26675
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
 
26676
  rm -f intltool-update.out
 
26677
else
 
26678
  mv -f intltool-update.out intltool-update
 
26679
fi
 
26680
chmod ugo+x intltool-update
 
26681
chmod u+w intltool-update
26214
26682
 
26215
26683
 ;;
26216
26684
    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
26217
26685
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
26218
26686
      esac ;;
26219
 
    po/stamp-it )
26220
 
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
26221
 
    >"po/stamp-it.tmp"
26222
 
    sed '/^#/d
26223
 
         s/^[[].*] *//
26224
 
         /^[    ]*$/d
26225
 
        '"s|^|  $ac_top_srcdir/|" \
26226
 
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
26227
 
 
26228
 
    if test ! -f "po/Makefile"; then
26229
 
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
26230
 
echo "$as_me: error: po/Makefile is not ready." >&2;}
26231
 
   { (exit 1); exit 1; }; }
26232
 
    fi
26233
 
    mv "po/Makefile" "po/Makefile.tmp"
26234
 
    sed '/^POTFILES =/,/[^\\]$/ {
26235
 
                /^POTFILES =/!d
26236
 
                r po/POTFILES
26237
 
          }
26238
 
         ' "po/Makefile.tmp" >"po/Makefile"
26239
 
    rm -f "po/Makefile.tmp"
26240
 
    mv "po/stamp-it.tmp" "po/stamp-it"
26241
 
   ;;
26242
26687
  esac
26243
26688
done
26244
26689
_ACEOF