~ubuntu-branches/debian/experimental/xfdesktop4/experimental

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Yves-Alexis Perez, Lionel Le Folgoc
  • Date: 2011-02-07 00:17:47 UTC
  • mfrom: (1.4.9 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110207001747-htl6rhaglfhhik8g
Tags: 4.8.1-1
[ Yves-Alexis Perez ]
* New upstream development release.
* debian/control:
  - update standards version to 3.9.1.
  - refresh build-deps for Xfce 4.7.
  - add build dep on libxfce4ui-1-dev.
  - drop xfce4-panel build-dep since we don't build any plugin anymore.
  - add build-dep on hardening-includes.
* Switch to 3.0 (quilt) source format.
* debian/rules:
  - pick {C,LD}FLAGS from dpkg-buildflags.
  - drop --libexecdir, --disable-rpath and --enable-final from configure args.
  - drop usr/lib from chrpath call, it doesn't exist anymore.
  - don't rename generic terminal .desktop file, it's gone too.
  - pass docdir to configure.
  - add hardening flags to {C,LD}FLAGS
* debian/xfdesktop4-data.install:
  - drop usr/share/desktop-directories from install file.
* debian/xfdesktop4.install:
  - drop etc/ no menu is installed anymore.
  - drop usr/ too, no more desktop menu module nor panel plugin. 
* debian/copyright updated for new upstream release.

[ Lionel Le Folgoc ]
* New upstream bugfix release.
* debian/control: clean up build-deps since xfdesktop has been ported to gio,
  exo-1 and garcon.
* Refresh build-deps for Xfce 4.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
 
17
[m4_warning([this file was generated for autoconf 2.66.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
301
301
 
302
302
    dnl These rules are solely for the distribution goal.  While doing this
303
303
    dnl we only have to keep exactly one list of the available catalogs
304
 
    dnl in configure.in.
 
304
    dnl in configure.ac.
305
305
    for lang in $ALL_LINGUAS; do
306
306
      GMOFILES="$GMOFILES $lang.gmo"
307
307
      POFILES="$POFILES $lang.po"
430
430
dnl
431
431
dnl Now the definitions that aclocal will find
432
432
dnl
433
 
ifdef(glib_configure_in,[],[
 
433
ifdef(glib_configure_ac,[],[
434
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
436
])dnl
506
506
    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 $< [$]@'
507
507
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
508
508
 
509
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
510
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
511
 
AC_SUBST(INTLTOOL_KEYS_RULE)
512
 
AC_SUBST(INTLTOOL_PROP_RULE)
513
 
AC_SUBST(INTLTOOL_OAF_RULE)
514
 
AC_SUBST(INTLTOOL_PONG_RULE)
515
 
AC_SUBST(INTLTOOL_SERVER_RULE)
516
 
AC_SUBST(INTLTOOL_SHEET_RULE)
517
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
518
 
AC_SUBST(INTLTOOL_UI_RULE)
519
 
AC_SUBST(INTLTOOL_XAM_RULE)
520
 
AC_SUBST(INTLTOOL_KBD_RULE)
521
 
AC_SUBST(INTLTOOL_XML_RULE)
522
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523
 
AC_SUBST(INTLTOOL_CAVES_RULE)
524
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
525
 
AC_SUBST(INTLTOOL_THEME_RULE)
526
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
527
 
AC_SUBST(INTLTOOL_POLICY_RULE)
 
509
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
510
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
511
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
512
_IT_SUBST(INTLTOOL_PROP_RULE)
 
513
_IT_SUBST(INTLTOOL_OAF_RULE)
 
514
_IT_SUBST(INTLTOOL_PONG_RULE)
 
515
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
516
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
517
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
518
_IT_SUBST(INTLTOOL_UI_RULE)
 
519
_IT_SUBST(INTLTOOL_XAM_RULE)
 
520
_IT_SUBST(INTLTOOL_KBD_RULE)
 
521
_IT_SUBST(INTLTOOL_XML_RULE)
 
522
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
523
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
524
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
525
_IT_SUBST(INTLTOOL_THEME_RULE)
 
526
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
527
_IT_SUBST(INTLTOOL_POLICY_RULE)
528
528
 
529
529
# Check the gettext tools to make sure they are GNU
530
530
AC_PATH_PROG(XGETTEXT, xgettext)
541
541
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
542
542
fi
543
543
 
544
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
544
AC_PATH_PROG(INTLTOOL_PERL, perl)
545
545
if test -z "$INTLTOOL_PERL"; then
546
 
   AC_MSG_ERROR([perl not found; required for intltool])
 
546
   AC_MSG_ERROR([perl not found])
547
547
fi
548
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
549
 
   AC_MSG_ERROR([perl 5.x required for intltool])
 
548
AC_MSG_CHECKING([for perl >= 5.8.1])
 
549
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
550
if test $? -ne 0; then
 
551
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
552
else
 
553
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
554
   AC_MSG_RESULT([$IT_PERL_VERSION])
550
555
fi
551
556
if test "x$2" != "xno-xml"; then
552
557
   AC_MSG_CHECKING([for XML::Parser])
598
603
AC_DEFUN([IT_PO_SUBDIR],
599
604
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
600
605
dnl
601
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
606
dnl The following CONFIG_COMMANDS should be executed at the very end
602
607
dnl of config.status.
603
608
AC_CONFIG_COMMANDS_PRE([
604
609
  AC_CONFIG_COMMANDS([$1/stamp-it], [
605
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
610
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
606
611
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
607
612
    fi
608
613
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
624
629
])dnl
625
630
])
626
631
 
 
632
# _IT_SUBST(VARIABLE)
 
633
# -------------------
 
634
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
635
#
 
636
AC_DEFUN([_IT_SUBST],
 
637
[
 
638
AC_SUBST([$1])
 
639
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
640
]
 
641
)
 
642
 
627
643
# deprecated macros
628
644
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
629
645
# A hint is needed for aclocal from Automake <= 1.9.4:
633
649
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
634
650
#
635
651
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
636
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
652
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
653
#                 Inc.
637
654
#   Written by Gordon Matzigkeit, 1996
638
655
#
639
656
# This file is free software; the Free Software Foundation gives
642
659
 
643
660
m4_define([_LT_COPYING], [dnl
644
661
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
645
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
662
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
663
#                 Inc.
646
664
#   Written by Gordon Matzigkeit, 1996
647
665
#
648
666
#   This file is part of GNU Libtool.
669
687
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
670
688
])
671
689
 
672
 
# serial 56 LT_INIT
 
690
# serial 57 LT_INIT
673
691
 
674
692
 
675
693
# LT_PREREQ(VERSION)
698
716
# ------------------
699
717
AC_DEFUN([LT_INIT],
700
718
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
719
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
701
720
AC_BEFORE([$0], [LT_LANG])dnl
702
721
AC_BEFORE([$0], [LT_OUTPUT])dnl
703
722
AC_BEFORE([$0], [LTDL_INIT])dnl
714
733
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
715
734
m4_require([_LT_PROG_LTMAIN])dnl
716
735
 
 
736
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
737
 
717
738
dnl Parse OPTIONS
718
739
_LT_SET_OPTIONS([$0], [$1])
719
740
 
750
771
    *) break;;
751
772
  esac
752
773
done
753
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
774
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
754
775
])
755
776
 
756
777
 
770
791
m4_defun([_LT_SETUP],
771
792
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
772
793
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
794
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
795
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
796
 
773
797
_LT_DECL([], [host_alias], [0], [The host system])dnl
774
798
_LT_DECL([], [host], [0])dnl
775
799
_LT_DECL([], [host_os], [0])dnl
811
835
_LT_CHECK_OBJDIR
812
836
 
813
837
m4_require([_LT_TAG_COMPILER])dnl
814
 
_LT_PROG_ECHO_BACKSLASH
815
838
 
816
839
case $host_os in
817
840
aix3*)
825
848
  ;;
826
849
esac
827
850
 
828
 
# Sed substitution that helps us do robust quoting.  It backslashifies
829
 
# metacharacters that are still active within double-quoted strings.
830
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
831
 
 
832
 
# Same as above, but do not quote variable references.
833
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
834
 
 
835
 
# Sed substitution to delay expansion of an escaped shell variable in a
836
 
# double_quote_subst'ed string.
837
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
838
 
 
839
 
# Sed substitution to delay expansion of an escaped single quote.
840
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
841
 
 
842
 
# Sed substitution to avoid accidental globbing in evaled expressions
843
 
no_glob_subst='s/\*/\\\*/g'
844
 
 
845
851
# Global variables:
846
852
ofile=libtool
847
853
can_build_shared=yes
882
888
])# _LT_SETUP
883
889
 
884
890
 
 
891
# _LT_PREPARE_SED_QUOTE_VARS
 
892
# --------------------------
 
893
# Define a few sed substitution that help us do robust quoting.
 
894
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
895
[# Backslashify metacharacters that are still active within
 
896
# double-quoted strings.
 
897
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
898
 
 
899
# Same as above, but do not quote variable references.
 
900
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
901
 
 
902
# Sed substitution to delay expansion of an escaped shell variable in a
 
903
# double_quote_subst'ed string.
 
904
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
905
 
 
906
# Sed substitution to delay expansion of an escaped single quote.
 
907
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
908
 
 
909
# Sed substitution to avoid accidental globbing in evaled expressions
 
910
no_glob_subst='s/\*/\\\*/g'
 
911
])
 
912
 
885
913
# _LT_PROG_LTMAIN
886
914
# ---------------
887
915
# Note that this code is called both from `configure', and `config.status'
1006
1034
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1007
1035
# ---------------------------------------------------
1008
1036
m4_define([lt_decl_varnames_tagged],
1009
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1010
 
     m4_quote(m4_if([$2], [],
1011
 
                     m4_quote(lt_decl_tag_varnames),
1012
 
                  m4_quote(m4_shift($@)))),
1013
 
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1014
 
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
 
1037
[m4_assert([$# <= 2])dnl
 
1038
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1039
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1040
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1041
m4_define([_lt_decl_varnames_tagged],
 
1042
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1015
1043
 
1016
1044
 
1017
1045
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1034
1062
# declaration there will have the same value as in `configure'.  VARNAME
1035
1063
# must have a single quote delimited value for this to work.
1036
1064
m4_define([_LT_CONFIG_STATUS_DECLARE],
1037
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1065
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1038
1066
 
1039
1067
 
1040
1068
# _LT_CONFIG_STATUS_DECLARATIONS
1044
1072
# embedded single quotes properly.  In configure, this macro expands
1045
1073
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1046
1074
#
1047
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1075
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1048
1076
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1049
1077
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1050
1078
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1143
1171
LTCFLAGS='$LTCFLAGS'
1144
1172
compiler='$compiler_DEFAULT'
1145
1173
 
 
1174
# A function that is used when there is no print builtin or printf.
 
1175
func_fallback_echo ()
 
1176
{
 
1177
  eval 'cat <<_LTECHO_EOF
 
1178
\$[]1
 
1179
_LTECHO_EOF'
 
1180
}
 
1181
 
1146
1182
# Quote evaled strings.
1147
1183
for var in lt_decl_all_varnames([[ \
1148
1184
]], lt_decl_quote_varnames); do
1149
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1185
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1150
1186
    *[[\\\\\\\`\\"\\\$]]*)
1151
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1187
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1152
1188
      ;;
1153
1189
    *)
1154
1190
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1159
1195
# Double-quote double-evaled strings.
1160
1196
for var in lt_decl_all_varnames([[ \
1161
1197
]], lt_decl_dquote_varnames); do
1162
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1198
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1163
1199
    *[[\\\\\\\`\\"\\\$]]*)
1164
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1200
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1165
1201
      ;;
1166
1202
    *)
1167
1203
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1169
1205
    esac
1170
1206
done
1171
1207
 
1172
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1173
 
case \$lt_ECHO in
1174
 
*'\\\[$]0 --fallback-echo"')dnl "
1175
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1176
 
  ;;
1177
 
esac
1178
 
 
1179
1208
_LT_OUTPUT_LIBTOOL_INIT
1180
1209
])
1181
1210
 
 
1211
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1212
# ------------------------------------
 
1213
# Generate a child script FILE with all initialization necessary to
 
1214
# reuse the environment learned by the parent script, and make the
 
1215
# file executable.  If COMMENT is supplied, it is inserted after the
 
1216
# `#!' sequence but before initialization text begins.  After this
 
1217
# macro, additional text can be appended to FILE to form the body of
 
1218
# the child script.  The macro ends with non-zero status if the
 
1219
# file could not be fully written (such as if the disk is full).
 
1220
m4_ifdef([AS_INIT_GENERATED],
 
1221
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1222
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1223
[m4_require([AS_PREPARE])]dnl
 
1224
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1225
[lt_write_fail=0
 
1226
cat >$1 <<_ASEOF || lt_write_fail=1
 
1227
#! $SHELL
 
1228
# Generated by $as_me.
 
1229
$2
 
1230
SHELL=\${CONFIG_SHELL-$SHELL}
 
1231
export SHELL
 
1232
_ASEOF
 
1233
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1234
AS_SHELL_SANITIZE
 
1235
_AS_PREPARE
 
1236
exec AS_MESSAGE_FD>&1
 
1237
_ASEOF
 
1238
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1239
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1182
1240
 
1183
1241
# LT_OUTPUT
1184
1242
# ---------
1188
1246
AC_DEFUN([LT_OUTPUT],
1189
1247
[: ${CONFIG_LT=./config.lt}
1190
1248
AC_MSG_NOTICE([creating $CONFIG_LT])
1191
 
cat >"$CONFIG_LT" <<_LTEOF
1192
 
#! $SHELL
1193
 
# Generated by $as_me.
1194
 
# Run this file to recreate a libtool stub with the current configuration.
 
1249
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1250
[# Run this file to recreate a libtool stub with the current configuration.])
1195
1251
 
 
1252
cat >>"$CONFIG_LT" <<\_LTEOF
1196
1253
lt_cl_silent=false
1197
 
SHELL=\${CONFIG_SHELL-$SHELL}
1198
 
_LTEOF
1199
 
 
1200
 
cat >>"$CONFIG_LT" <<\_LTEOF
1201
 
AS_SHELL_SANITIZE
1202
 
_AS_PREPARE
1203
 
 
1204
 
exec AS_MESSAGE_FD>&1
1205
1254
exec AS_MESSAGE_LOG_FD>>config.log
1206
1255
{
1207
1256
  echo
1227
1276
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1228
1277
configured by $[0], generated by m4_PACKAGE_STRING.
1229
1278
 
1230
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
1279
Copyright (C) 2010 Free Software Foundation, Inc.
1231
1280
This config.lt script is free software; the Free Software Foundation
1232
1281
gives unlimited permision to copy, distribute and modify it."
1233
1282
 
1272
1321
# appending to config.log, which fails on DOS, as config.log is still kept
1273
1322
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1274
1323
# config.log, so it can be properly (re)opened and appended to by config.lt.
1275
 
if test "$no_create" != yes; then
1276
 
  lt_cl_success=:
1277
 
  test "$silent" = yes &&
1278
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1279
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1280
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1281
 
  exec AS_MESSAGE_LOG_FD>>config.log
1282
 
  $lt_cl_success || AS_EXIT(1)
1283
 
fi
 
1324
lt_cl_success=:
 
1325
test "$silent" = yes &&
 
1326
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1327
exec AS_MESSAGE_LOG_FD>/dev/null
 
1328
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1329
exec AS_MESSAGE_LOG_FD>>config.log
 
1330
$lt_cl_success || AS_EXIT(1)
1284
1331
])# LT_OUTPUT
1285
1332
 
1286
1333
 
1457
1504
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1458
1505
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1459
1506
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1507
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1460
1508
dnl aclocal-1.4 backwards compatibility:
1461
1509
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1462
1510
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1463
1511
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1464
1512
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1513
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1465
1514
 
1466
1515
 
1467
1516
# _LT_TAG_COMPILER
1566
1615
        [lt_cv_ld_exported_symbols_list=no])
1567
1616
        LDFLAGS="$save_LDFLAGS"
1568
1617
    ])
 
1618
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1619
      [lt_cv_ld_force_load=no
 
1620
      cat > conftest.c << _LT_EOF
 
1621
int forced_loaded() { return 2;}
 
1622
_LT_EOF
 
1623
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1624
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1625
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1626
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1627
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1628
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1629
      cat > conftest.c << _LT_EOF
 
1630
int main() { return 0;}
 
1631
_LT_EOF
 
1632
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1633
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1634
      _lt_result=$?
 
1635
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1636
        lt_cv_ld_force_load=yes
 
1637
      else
 
1638
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1639
      fi
 
1640
        rm -f conftest.err libconftest.a conftest conftest.c
 
1641
        rm -rf conftest.dSYM
 
1642
    ])
1569
1643
    case $host_os in
1570
1644
    rhapsody* | darwin1.[[012]])
1571
1645
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1572
1646
    darwin1.*)
1573
1647
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1574
 
    darwin*) # darwin 5.x on 
 
1648
    darwin*) # darwin 5.x on
1575
1649
      # if running on 10.5 or later, the deployment target defaults
1576
1650
      # to the OS version, if on x86, and 10.4, the deployment
1577
 
      # target defaults to 10.4. Don't you love it? 
 
1651
      # target defaults to 10.4. Don't you love it?
1578
1652
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1579
1653
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1580
1654
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1593
1667
    else
1594
1668
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1595
1669
    fi
1596
 
    if test "$DSYMUTIL" != ":"; then
 
1670
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1597
1671
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1598
1672
    else
1599
1673
      _lt_dsymutil=
1613
1687
  _LT_TAGVAR(hardcode_direct, $1)=no
1614
1688
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1615
1689
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1616
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1690
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1691
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
1692
  else
 
1693
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1694
  fi
1617
1695
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1618
1696
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1619
 
  if test "$GCC" = "yes"; then
1620
 
    output_verbose_link_cmd=echo
 
1697
  case $cc_basename in
 
1698
     ifort*) _lt_dar_can_shared=yes ;;
 
1699
     *) _lt_dar_can_shared=$GCC ;;
 
1700
  esac
 
1701
  if test "$_lt_dar_can_shared" = "yes"; then
 
1702
    output_verbose_link_cmd=func_echo_all
1621
1703
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1622
1704
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1623
1705
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1663
1745
# _LT_SHELL_INIT(ARG)
1664
1746
# -------------------
1665
1747
m4_define([_LT_SHELL_INIT],
1666
 
[ifdef([AC_DIVERSION_NOTICE],
1667
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1668
 
         [AC_DIVERT_PUSH(NOTICE)])
1669
 
$1
1670
 
AC_DIVERT_POP
1671
 
])# _LT_SHELL_INIT
 
1748
[m4_divert_text([M4SH-INIT], [$1
 
1749
])])# _LT_SHELL_INIT
 
1750
 
1672
1751
 
1673
1752
 
1674
1753
# _LT_PROG_ECHO_BACKSLASH
1675
1754
# -----------------------
1676
 
# Add some code to the start of the generated configure script which
1677
 
# will find an echo command which doesn't interpret backslashes.
 
1755
# Find how we can fake an echo command that does not interpret backslash.
 
1756
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1757
# of the generated configure script which will find a shell with a builtin
 
1758
# printf (which we can use as an echo command).
1678
1759
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1679
 
[_LT_SHELL_INIT([
1680
 
# Check that we are running under the correct shell.
1681
 
SHELL=${CONFIG_SHELL-/bin/sh}
1682
 
 
1683
 
case X$lt_ECHO in
1684
 
X*--fallback-echo)
1685
 
  # Remove one level of quotation (which was required for Make).
1686
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1687
 
  ;;
 
1760
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1761
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1762
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1763
 
 
1764
AC_MSG_CHECKING([how to print strings])
 
1765
# Test print first, because it will be a builtin if present.
 
1766
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1767
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1768
  ECHO='print -r --'
 
1769
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1770
  ECHO='printf %s\n'
 
1771
else
 
1772
  # Use this function as a fallback that always works.
 
1773
  func_fallback_echo ()
 
1774
  {
 
1775
    eval 'cat <<_LTECHO_EOF
 
1776
$[]1
 
1777
_LTECHO_EOF'
 
1778
  }
 
1779
  ECHO='func_fallback_echo'
 
1780
fi
 
1781
 
 
1782
# func_echo_all arg...
 
1783
# Invoke $ECHO with all args, space-separated.
 
1784
func_echo_all ()
 
1785
{
 
1786
    $ECHO "$*" 
 
1787
}
 
1788
 
 
1789
case "$ECHO" in
 
1790
  printf*) AC_MSG_RESULT([printf]) ;;
 
1791
  print*) AC_MSG_RESULT([print -r]) ;;
 
1792
  *) AC_MSG_RESULT([cat]) ;;
1688
1793
esac
1689
1794
 
1690
 
ECHO=${lt_ECHO-echo}
1691
 
if test "X[$]1" = X--no-reexec; then
1692
 
  # Discard the --no-reexec flag, and continue.
1693
 
  shift
1694
 
elif test "X[$]1" = X--fallback-echo; then
1695
 
  # Avoid inline document here, it may be left over
1696
 
  :
1697
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1698
 
  # Yippee, $ECHO works!
1699
 
  :
1700
 
else
1701
 
  # Restart under the correct shell.
1702
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1703
 
fi
1704
 
 
1705
 
if test "X[$]1" = X--fallback-echo; then
1706
 
  # used as fallback echo
1707
 
  shift
1708
 
  cat <<_LT_EOF
1709
 
[$]*
1710
 
_LT_EOF
1711
 
  exit 0
1712
 
fi
1713
 
 
1714
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1715
 
# if CDPATH is set.
1716
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1717
 
 
1718
 
if test -z "$lt_ECHO"; then
1719
 
  if test "X${echo_test_string+set}" != Xset; then
1720
 
    # find a string as large as possible, as long as the shell can cope with it
1721
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1722
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1723
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1724
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1725
 
      then
1726
 
        break
1727
 
      fi
1728
 
    done
1729
 
  fi
1730
 
 
1731
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1732
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1733
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1734
 
    :
1735
 
  else
1736
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1737
 
    # backslashes.  This makes it impossible to quote backslashes using
1738
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1739
 
    #
1740
 
    # So, first we look for a working echo in the user's PATH.
1741
 
 
1742
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1743
 
    for dir in $PATH /usr/ucb; do
1744
 
      IFS="$lt_save_ifs"
1745
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1746
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1747
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1748
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1749
 
        ECHO="$dir/echo"
1750
 
        break
1751
 
      fi
1752
 
    done
1753
 
    IFS="$lt_save_ifs"
1754
 
 
1755
 
    if test "X$ECHO" = Xecho; then
1756
 
      # We didn't find a better echo, so look for alternatives.
1757
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1758
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1759
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1760
 
        # This shell has a builtin print -r that does the trick.
1761
 
        ECHO='print -r'
1762
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1763
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1764
 
        # If we have ksh, try running configure again with it.
1765
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1766
 
        export ORIGINAL_CONFIG_SHELL
1767
 
        CONFIG_SHELL=/bin/ksh
1768
 
        export CONFIG_SHELL
1769
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1770
 
      else
1771
 
        # Try using printf.
1772
 
        ECHO='printf %s\n'
1773
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1774
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1775
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1776
 
          # Cool, printf works
1777
 
          :
1778
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1779
 
             test "X$echo_testing_string" = 'X\t' &&
1780
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1781
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1782
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1783
 
          export CONFIG_SHELL
1784
 
          SHELL="$CONFIG_SHELL"
1785
 
          export SHELL
1786
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1787
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1788
 
             test "X$echo_testing_string" = 'X\t' &&
1789
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1790
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1791
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1792
 
        else
1793
 
          # maybe with a smaller string...
1794
 
          prev=:
1795
 
 
1796
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1797
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1798
 
            then
1799
 
              break
1800
 
            fi
1801
 
            prev="$cmd"
1802
 
          done
1803
 
 
1804
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1805
 
            echo_test_string=`eval $prev`
1806
 
            export echo_test_string
1807
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1808
 
          else
1809
 
            # Oops.  We lost completely, so just stick with echo.
1810
 
            ECHO=echo
1811
 
          fi
1812
 
        fi
1813
 
      fi
1814
 
    fi
1815
 
  fi
1816
 
fi
1817
 
 
1818
 
# Copy echo and quote the copy suitably for passing to libtool from
1819
 
# the Makefile, instead of quoting the original, which is used later.
1820
 
lt_ECHO=$ECHO
1821
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1822
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1823
 
fi
1824
 
 
1825
 
AC_SUBST(lt_ECHO)
1826
 
])
 
1795
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1796
[_AS_DETECT_SUGGESTED([
 
1797
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1798
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1799
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1800
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1801
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1802
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1803
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1804
 
1827
1805
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1828
 
_LT_DECL([], [ECHO], [1],
1829
 
    [An echo program that does not interpret backslashes])
 
1806
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1830
1807
])# _LT_PROG_ECHO_BACKSLASH
1831
1808
 
1832
1809
 
1858
1835
  ;;
1859
1836
*-*-irix6*)
1860
1837
  # Find out which ABI we are using.
1861
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1838
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1862
1839
  if AC_TRY_EVAL(ac_compile); then
1863
1840
    if test "$lt_cv_prog_gnu_ld" = yes; then
1864
1841
      case `/usr/bin/file conftest.$ac_objext` in
2010
1987
  esac
2011
1988
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2012
1989
fi
 
1990
 
 
1991
case $host_os in
 
1992
  darwin*)
 
1993
    lock_old_archive_extraction=yes ;;
 
1994
  *)
 
1995
    lock_old_archive_extraction=no ;;
 
1996
esac
2013
1997
_LT_DECL([], [old_postinstall_cmds], [2])
2014
1998
_LT_DECL([], [old_postuninstall_cmds], [2])
2015
1999
_LT_TAGDECL([], [old_archive_cmds], [2],
2016
2000
    [Commands used to build an old-style archive])
 
2001
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2002
    [Whether to use a lock for old archive extraction])
2017
2003
])# _LT_CMD_OLD_ARCHIVE
2018
2004
 
2019
2005
 
2038
2024
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2039
2025
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2040
2026
   -e 's:$: $lt_compiler_flag:'`
2041
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2027
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2042
2028
   (eval "$lt_compile" 2>conftest.err)
2043
2029
   ac_status=$?
2044
2030
   cat conftest.err >&AS_MESSAGE_LOG_FD
2045
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2031
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2046
2032
   if (exit $ac_status) && test -s "$ac_outfile"; then
2047
2033
     # The compiler can only warn and ignore the option if not recognized
2048
2034
     # So say no if there are warnings other than the usual output.
2049
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2035
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2050
2036
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2051
2037
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2052
2038
       $2=yes
2086
2072
     if test -s conftest.err; then
2087
2073
       # Append any errors to the config.log.
2088
2074
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2089
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2075
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2090
2076
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2091
2077
       if diff conftest.exp conftest.er2 >/dev/null; then
2092
2078
         $2=yes
2138
2124
    lt_cv_sys_max_cmd_len=-1;
2139
2125
    ;;
2140
2126
 
2141
 
  cygwin* | mingw*)
 
2127
  cygwin* | mingw* | cegcc*)
2142
2128
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2143
2129
    # about 5 minutes as the teststring grows exponentially.
2144
2130
    # Worse, since 9x/ME are not pre-emptively multitasking,
2149
2135
    lt_cv_sys_max_cmd_len=8192;
2150
2136
    ;;
2151
2137
 
 
2138
  mint*)
 
2139
    # On MiNT this can take a long time and run out of memory.
 
2140
    lt_cv_sys_max_cmd_len=8192;
 
2141
    ;;
 
2142
 
2152
2143
  amigaos*)
2153
2144
    # On AmigaOS with pdksh, this test takes hours, literally.
2154
2145
    # So we just punt and use a minimum line length of 8192.
2213
2204
      # If test is not a shell built-in, we'll probably end up computing a
2214
2205
      # maximum length that is only half of the actual maximum length, but
2215
2206
      # we can't tell.
2216
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2217
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2207
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2208
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2218
2209
              test $i != 17 # 1/2 MB should be enough
2219
2210
      do
2220
2211
        i=`expr $i + 1`
2265
2256
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2266
2257
  lt_status=$lt_dlunknown
2267
2258
  cat > conftest.$ac_ext <<_LT_EOF
2268
 
[#line __oline__ "configure"
 
2259
[#line $LINENO "configure"
2269
2260
#include "confdefs.h"
2270
2261
 
2271
2262
#if HAVE_DLFCN_H
2306
2297
#  endif
2307
2298
#endif
2308
2299
 
2309
 
#ifdef __cplusplus
2310
 
extern "C" void exit (int);
 
2300
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2301
   correspondingly for the symbols needed.  */
 
2302
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2303
void fnord () __attribute__((visibility("default")));
2311
2304
#endif
2312
2305
 
2313
 
void fnord() { int i=42;}
 
2306
void fnord () { int i=42; }
2314
2307
int main ()
2315
2308
{
2316
2309
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2319
2312
  if (self)
2320
2313
    {
2321
2314
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2322
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
2315
      else
 
2316
        {
 
2317
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2318
          else puts (dlerror ());
 
2319
        }
2323
2320
      /* dlclose (self); */
2324
2321
    }
2325
2322
  else
2326
2323
    puts (dlerror ());
2327
2324
 
2328
 
    exit (status);
 
2325
  return status;
2329
2326
}]
2330
2327
_LT_EOF
2331
2328
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2364
2361
    lt_cv_dlopen_self=yes
2365
2362
    ;;
2366
2363
 
2367
 
  mingw* | pw32*)
 
2364
  mingw* | pw32* | cegcc*)
2368
2365
    lt_cv_dlopen="LoadLibrary"
2369
2366
    lt_cv_dlopen_libs=
2370
2367
    ;;
2495
2492
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2496
2493
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2497
2494
   -e 's:$: $lt_compiler_flag:'`
2498
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2495
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2499
2496
   (eval "$lt_compile" 2>out/conftest.err)
2500
2497
   ac_status=$?
2501
2498
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2502
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2499
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2503
2500
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2504
2501
   then
2505
2502
     # The compiler can only warn and ignore the option if not recognized
2506
2503
     # So say no if there are warnings
2507
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2504
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2508
2505
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2509
2506
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2510
2507
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2661
2658
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2662
2659
m4_require([_LT_DECL_EGREP])dnl
2663
2660
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2661
m4_require([_LT_DECL_OBJDUMP])dnl
2664
2662
m4_require([_LT_DECL_SED])dnl
 
2663
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2665
2664
AC_MSG_CHECKING([dynamic linker characteristics])
2666
2665
m4_if([$1],
2667
2666
        [], [
2670
2669
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2671
2670
    *) lt_awk_arg="/^libraries:/" ;;
2672
2671
  esac
2673
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2674
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2672
  case $host_os in
 
2673
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2674
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2675
  esac
 
2676
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2677
  case $lt_search_path_spec in
 
2678
  *\;*)
2675
2679
    # if the path contains ";" then we assume it to be the separator
2676
2680
    # otherwise default to the standard path separator (i.e. ":") - it is
2677
2681
    # assumed that no part of a normal pathname contains ";" but that should
2678
2682
    # okay in the real world where ";" in dirpaths is itself problematic.
2679
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2680
 
  else
2681
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2682
 
  fi
 
2683
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2684
    ;;
 
2685
  *)
 
2686
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2687
    ;;
 
2688
  esac
2683
2689
  # Ok, now we have the path, separated by spaces, we can step through it
2684
2690
  # and add multilib dir if necessary.
2685
2691
  lt_tmp_lt_search_path_spec=
2692
2698
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2693
2699
    fi
2694
2700
  done
2695
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2701
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2696
2702
BEGIN {RS=" "; FS="/|\n";} {
2697
2703
  lt_foo="";
2698
2704
  lt_count=0;
2712
2718
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2713
2719
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2714
2720
}'`
2715
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2721
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2722
  # for these hosts.
 
2723
  case $host_os in
 
2724
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2725
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2726
  esac
 
2727
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2716
2728
else
2717
2729
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2718
2730
fi])
2800
2812
  m68k)
2801
2813
    library_names_spec='$libname.ixlibrary $libname.a'
2802
2814
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2803
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2815
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2804
2816
    ;;
2805
2817
  esac
2806
2818
  ;;
2825
2837
  # libtool to hard-code these into programs
2826
2838
  ;;
2827
2839
 
2828
 
cygwin* | mingw* | pw32*)
 
2840
cygwin* | mingw* | pw32* | cegcc*)
2829
2841
  version_type=windows
2830
2842
  shrext_cmds=".dll"
2831
2843
  need_version=no
2832
2844
  need_lib_prefix=no
2833
2845
 
2834
2846
  case $GCC,$host_os in
2835
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2847
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2836
2848
    library_names_spec='$libname.dll.a'
2837
2849
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2838
2850
    postinstall_cmds='base_file=`basename \${file}`~
2853
2865
    cygwin*)
2854
2866
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2855
2867
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2856
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2868
m4_if([$1], [],[
 
2869
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2857
2870
      ;;
2858
 
    mingw*)
 
2871
    mingw* | cegcc*)
2859
2872
      # MinGW DLLs use traditional 'lib' prefix
2860
2873
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2861
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2862
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2863
 
        # It is most probably a Windows format PATH printed by
2864
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2865
 
        # path with ; separators, and with drive letters. We can handle the
2866
 
        # drive letters (cygwin fileutils understands them), so leave them,
2867
 
        # especially as we might pass files found there to a mingw objdump,
2868
 
        # which wouldn't understand a cygwinified path. Ahh.
2869
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2870
 
      else
2871
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2872
 
      fi
2873
2874
      ;;
2874
2875
    pw32*)
2875
2876
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2969
2970
  hardcode_into_libs=yes
2970
2971
  ;;
2971
2972
 
 
2973
haiku*)
 
2974
  version_type=linux
 
2975
  need_lib_prefix=no
 
2976
  need_version=no
 
2977
  dynamic_linker="$host_os runtime_loader"
 
2978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2979
  soname_spec='${libname}${release}${shared_ext}$major'
 
2980
  shlibpath_var=LIBRARY_PATH
 
2981
  shlibpath_overrides_runpath=yes
 
2982
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
2983
  hardcode_into_libs=yes
 
2984
  ;;
 
2985
 
2972
2986
hpux9* | hpux10* | hpux11*)
2973
2987
  # Give a soname corresponding to the major version so that dld.sl refuses to
2974
2988
  # link against other versions.
3011
3025
    soname_spec='${libname}${release}${shared_ext}$major'
3012
3026
    ;;
3013
3027
  esac
3014
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
3028
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3015
3029
  postinstall_cmds='chmod 555 $lib'
 
3030
  # or fails outright, so override atomically:
 
3031
  install_override_mode=555
3016
3032
  ;;
3017
3033
 
3018
3034
interix[[3-9]]*)
3070
3086
  ;;
3071
3087
 
3072
3088
# This must be Linux ELF.
3073
 
linux* | k*bsd*-gnu)
 
3089
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3074
3090
  version_type=linux
3075
3091
  need_lib_prefix=no
3076
3092
  need_version=no
3079
3095
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3080
3096
  shlibpath_var=LD_LIBRARY_PATH
3081
3097
  shlibpath_overrides_runpath=no
 
3098
 
3082
3099
  # Some binutils ld are patched to set DT_RUNPATH
3083
 
  save_LDFLAGS=$LDFLAGS
3084
 
  save_libdir=$libdir
3085
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3086
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3087
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3088
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3089
 
       [shlibpath_overrides_runpath=yes])])
3090
 
  LDFLAGS=$save_LDFLAGS
3091
 
  libdir=$save_libdir
 
3100
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3101
    [lt_cv_shlibpath_overrides_runpath=no
 
3102
    save_LDFLAGS=$LDFLAGS
 
3103
    save_libdir=$libdir
 
3104
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3105
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3106
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3107
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3108
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3109
    LDFLAGS=$save_LDFLAGS
 
3110
    libdir=$save_libdir
 
3111
    ])
 
3112
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3092
3113
 
3093
3114
  # This implies no fast_install, which is unacceptable.
3094
3115
  # Some rework will be needed to allow for fast_install
3095
3116
  # before this can be enabled.
3096
3117
  hardcode_into_libs=yes
3097
3118
 
 
3119
  # Add ABI-specific directories to the system library path.
 
3120
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
3121
 
3098
3122
  # Append ld.so.conf contents to the search path
3099
3123
  if test -f /etc/ld.so.conf; then
3100
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3101
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
3124
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
3125
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
3126
 
3102
3127
  fi
3103
3128
 
3104
3129
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3110
3135
  dynamic_linker='GNU/Linux ld.so'
3111
3136
  ;;
3112
3137
 
3113
 
netbsdelf*-gnu)
3114
 
  version_type=linux
3115
 
  need_lib_prefix=no
3116
 
  need_version=no
3117
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3118
 
  soname_spec='${libname}${release}${shared_ext}$major'
3119
 
  shlibpath_var=LD_LIBRARY_PATH
3120
 
  shlibpath_overrides_runpath=no
3121
 
  hardcode_into_libs=yes
3122
 
  dynamic_linker='NetBSD ld.elf_so'
3123
 
  ;;
3124
 
 
3125
3138
netbsd*)
3126
3139
  version_type=sunos
3127
3140
  need_lib_prefix=no
3293
3306
  version_type=linux
3294
3307
  need_lib_prefix=no
3295
3308
  need_version=no
3296
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3297
3310
  shlibpath_var=LD_LIBRARY_PATH
3298
3311
  shlibpath_overrides_runpath=no
3299
3312
  hardcode_into_libs=yes
3317
3330
if test "$GCC" = yes; then
3318
3331
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3319
3332
fi
3320
 
 
 
3333
 
3321
3334
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3322
3335
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3323
3336
fi
3342
3355
    The last name is the one that the linker finds with -lNAME]])
3343
3356
_LT_DECL([], [soname_spec], [1],
3344
3357
    [[The coded name of the library, if different from the real name]])
 
3358
_LT_DECL([], [install_override_mode], [1],
 
3359
    [Permission mode override for installation of shared libraries])
3345
3360
_LT_DECL([], [postinstall_cmds], [2],
3346
3361
    [Command to use after installation of a shared archive])
3347
3362
_LT_DECL([], [postuninstall_cmds], [2],
3454
3469
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3455
3470
m4_require([_LT_DECL_SED])dnl
3456
3471
m4_require([_LT_DECL_EGREP])dnl
 
3472
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3457
3473
 
3458
3474
AC_ARG_WITH([gnu-ld],
3459
3475
    [AS_HELP_STRING([--with-gnu-ld],
3583
3599
    fi
3584
3600
    ;;
3585
3601
esac
3586
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3587
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3602
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3603
_LT_TAGDECL([], [reload_cmds], [2])dnl
3588
3604
])# _LT_CMD_RELOAD
3589
3605
 
3590
3606
 
3594
3610
#  -- PORTME fill in with the dynamic library characteristics
3595
3611
m4_defun([_LT_CHECK_MAGIC_METHOD],
3596
3612
[m4_require([_LT_DECL_EGREP])
 
3613
m4_require([_LT_DECL_OBJDUMP])
3597
3614
AC_CACHE_CHECK([how to recognize dependent libraries],
3598
3615
lt_cv_deplibs_check_method,
3599
3616
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3635
3652
  # Base MSYS/MinGW do not provide the 'file' command needed by
3636
3653
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3637
3654
  # unless we find 'file', for example because we are cross-compiling.
3638
 
  if ( file / ) >/dev/null 2>&1; then
 
3655
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3656
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3639
3657
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3640
3658
    lt_cv_file_magic_cmd='func_win32_libid'
3641
3659
  else
3642
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3660
    # Keep this pattern in sync with the one in func_win32_libid.
 
3661
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3643
3662
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3644
3663
  fi
3645
3664
  ;;
3646
3665
 
 
3666
cegcc*)
 
3667
  # use the weaker test based on 'objdump'. See mingw*.
 
3668
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3669
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3670
  ;;
 
3671
 
3647
3672
darwin* | rhapsody*)
3648
3673
  lt_cv_deplibs_check_method=pass_all
3649
3674
  ;;
3668
3693
  lt_cv_deplibs_check_method=pass_all
3669
3694
  ;;
3670
3695
 
 
3696
haiku*)
 
3697
  lt_cv_deplibs_check_method=pass_all
 
3698
  ;;
 
3699
 
3671
3700
hpux10.20* | hpux11*)
3672
3701
  lt_cv_file_magic_cmd=/usr/bin/file
3673
3702
  case $host_cpu in
3676
3705
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3677
3706
    ;;
3678
3707
  hppa*64*)
3679
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3708
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3680
3709
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3681
3710
    ;;
3682
3711
  *)
3683
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3712
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3684
3713
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3685
3714
    ;;
3686
3715
  esac
3702
3731
  ;;
3703
3732
 
3704
3733
# This must be Linux ELF.
3705
 
linux* | k*bsd*-gnu)
 
3734
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3706
3735
  lt_cv_deplibs_check_method=pass_all
3707
3736
  ;;
3708
3737
 
3709
 
netbsd* | netbsdelf*-gnu)
 
3738
netbsd*)
3710
3739
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3711
3740
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3712
3741
  else
3844
3873
  NM="$lt_cv_path_NM"
3845
3874
else
3846
3875
  # Didn't find any BSD compatible name lister, look for dumpbin.
3847
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3876
  if test -n "$DUMPBIN"; then :
 
3877
    # Let the user override the test.
 
3878
  else
 
3879
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3880
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3881
    *COFF*)
 
3882
      DUMPBIN="$DUMPBIN -symbols"
 
3883
      ;;
 
3884
    *)
 
3885
      DUMPBIN=:
 
3886
      ;;
 
3887
    esac
 
3888
  fi
3848
3889
  AC_SUBST([DUMPBIN])
3849
3890
  if test "$DUMPBIN" != ":"; then
3850
3891
    NM="$DUMPBIN"
3857
3898
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3858
3899
  [lt_cv_nm_interface="BSD nm"
3859
3900
  echo "int some_variable = 0;" > conftest.$ac_ext
3860
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3901
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3861
3902
  (eval "$ac_compile" 2>conftest.err)
3862
3903
  cat conftest.err >&AS_MESSAGE_LOG_FD
3863
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3904
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3864
3905
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3865
3906
  cat conftest.err >&AS_MESSAGE_LOG_FD
3866
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3907
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3867
3908
  cat conftest.out >&AS_MESSAGE_LOG_FD
3868
3909
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3869
3910
    lt_cv_nm_interface="MS dumpbin"
3886
3927
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3887
3928
LIBM=
3888
3929
case $host in
3889
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3930
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3890
3931
  # These system don't have libm, or don't need it
3891
3932
  ;;
3892
3933
*-ncr-sysv4.3*)
3914
3955
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3915
3956
 
3916
3957
if test "$GCC" = yes; then
3917
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3958
  case $cc_basename in
 
3959
  nvcc*)
 
3960
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3961
  *)
 
3962
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3963
  esac
3918
3964
 
3919
3965
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3920
3966
    lt_cv_prog_compiler_rtti_exceptions,
3931
3977
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3932
3978
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3933
3979
AC_REQUIRE([AC_PROG_CC])dnl
 
3980
AC_REQUIRE([AC_PROG_AWK])dnl
3934
3981
AC_REQUIRE([LT_PATH_NM])dnl
3935
3982
AC_REQUIRE([LT_PATH_LD])dnl
3936
3983
m4_require([_LT_DECL_SED])dnl
3955
4002
aix*)
3956
4003
  symcode='[[BCDT]]'
3957
4004
  ;;
3958
 
cygwin* | mingw* | pw32*)
 
4005
cygwin* | mingw* | pw32* | cegcc*)
3959
4006
  symcode='[[ABCDGISTW]]'
3960
4007
  ;;
3961
4008
hpux*)
4056
4103
  if AC_TRY_EVAL(ac_compile); then
4057
4104
    # Now try to grab the symbols.
4058
4105
    nlist=conftest.nm
4059
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
4106
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4060
4107
      # Try sorting and uniquifying the output.
4061
4108
      if sort "$nlist" | uniq > "$nlist"T; then
4062
4109
        mv -f "$nlist"T "$nlist"
4201
4248
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4202
4249
      # PIC is the default for these OSes.
4203
4250
      ;;
4204
 
    mingw* | cygwin* | os2* | pw32*)
 
4251
    mingw* | cygwin* | os2* | pw32* | cegcc*)
4205
4252
      # This hack is so that the source file can tell whether it is being
4206
4253
      # built for inclusion in a dll (and should export symbols for example).
4207
4254
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4218
4265
      # DJGPP does not support shared libraries at all
4219
4266
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4220
4267
      ;;
 
4268
    haiku*)
 
4269
      # PIC is the default for Haiku.
 
4270
      # The "-static" flag exists, but is broken.
 
4271
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4272
      ;;
4221
4273
    interix[[3-9]]*)
4222
4274
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4223
4275
      # Instead, we relocate shared libraries at runtime.
4228
4280
      fi
4229
4281
      ;;
4230
4282
    hpux*)
4231
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4232
 
      # not for PA HP-UX.
 
4283
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4284
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4285
      # sets the default TLS model and affects inlining.
4233
4286
      case $host_cpu in
4234
 
      hppa*64*|ia64*)
 
4287
      hppa*64*)
4235
4288
        ;;
4236
4289
      *)
4237
4290
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4322
4375
            ;;
4323
4376
        esac
4324
4377
        ;;
4325
 
      linux* | k*bsd*-gnu)
 
4378
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
4326
4379
        case $cc_basename in
4327
4380
          KCC*)
4328
4381
            # KAI C++ Compiler
4329
4382
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4330
4383
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4331
4384
            ;;
4332
 
          icpc* | ecpc* )
4333
 
            # Intel C++
 
4385
          ecpc* )
 
4386
            # old Intel C++ for x86_64 which still supported -KPIC.
4334
4387
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4335
4388
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4336
4389
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4337
4390
            ;;
 
4391
          icpc* )
 
4392
            # Intel C++, used to be incompatible with GCC.
 
4393
            # ICC 10 doesn't accept -KPIC any more.
 
4394
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4395
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4396
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4397
            ;;
4338
4398
          pgCC* | pgcpp*)
4339
4399
            # Portland Group C++ compiler
4340
4400
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4348
4408
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4349
4409
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4350
4410
            ;;
4351
 
          xlc* | xlC*)
4352
 
            # IBM XL 8.0 on PPC
 
4411
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4412
            # IBM XL 8.0, 9.0 on PPC and BlueGene
4353
4413
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4354
4414
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4355
4415
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4379
4439
            ;;
4380
4440
        esac
4381
4441
        ;;
4382
 
      netbsd* | netbsdelf*-gnu)
 
4442
      netbsd*)
4383
4443
        ;;
4384
4444
      *qnx* | *nto*)
4385
4445
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4411
4471
        ;;
4412
4472
      solaris*)
4413
4473
        case $cc_basename in
4414
 
          CC*)
 
4474
          CC* | sunCC*)
4415
4475
            # Sun C++ 4.2, 5.x and Centerline C++
4416
4476
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4417
4477
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4500
4560
      # PIC is the default for these OSes.
4501
4561
      ;;
4502
4562
 
4503
 
    mingw* | cygwin* | pw32* | os2*)
 
4563
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4504
4564
      # This hack is so that the source file can tell whether it is being
4505
4565
      # built for inclusion in a dll (and should export symbols for example).
4506
4566
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4515
4575
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4516
4576
      ;;
4517
4577
 
 
4578
    haiku*)
 
4579
      # PIC is the default for Haiku.
 
4580
      # The "-static" flag exists, but is broken.
 
4581
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4582
      ;;
 
4583
 
4518
4584
    hpux*)
4519
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4520
 
      # not for PA HP-UX.
 
4585
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4586
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4587
      # sets the default TLS model and affects inlining.
4521
4588
      case $host_cpu in
4522
 
      hppa*64*|ia64*)
 
4589
      hppa*64*)
4523
4590
        # +Z the default
4524
4591
        ;;
4525
4592
      *)
4556
4623
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4557
4624
      ;;
4558
4625
    esac
 
4626
 
 
4627
    case $cc_basename in
 
4628
    nvcc*) # Cuda Compiler Driver 2.2
 
4629
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4630
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4631
      ;;
 
4632
    esac
4559
4633
  else
4560
4634
    # PORTME Check for flag to pass linker flags through the system compiler.
4561
4635
    case $host_os in
4569
4643
      fi
4570
4644
      ;;
4571
4645
 
4572
 
    mingw* | cygwin* | pw32* | os2*)
 
4646
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4573
4647
      # This hack is so that the source file can tell whether it is being
4574
4648
      # built for inclusion in a dll (and should export symbols for example).
4575
4649
      m4_if([$1], [GCJ], [],
4598
4672
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4599
4673
      ;;
4600
4674
 
4601
 
    linux* | k*bsd*-gnu)
 
4675
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
4602
4676
      case $cc_basename in
4603
 
      icc* | ecc* | ifort*)
 
4677
      # old Intel for x86_64 which still supported -KPIC.
 
4678
      ecc*)
4604
4679
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4605
4680
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4606
4681
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4607
4682
        ;;
4608
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4683
      # icc used to be incompatible with GCC.
 
4684
      # ICC 10 doesn't accept -KPIC any more.
 
4685
      icc* | ifort*)
 
4686
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4687
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4688
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4689
        ;;
 
4690
      # Lahey Fortran 8.1.
 
4691
      lf95*)
 
4692
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4693
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4694
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4695
        ;;
 
4696
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4609
4697
        # Portland Group compilers (*not* the Pentium gcc compiler,
4610
4698
        # which looks to be a dead project)
4611
4699
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4617
4705
        # All Alpha code is PIC.
4618
4706
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4619
4707
        ;;
4620
 
      xl*)
4621
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4708
      xl* | bgxl* | bgf* | mpixl*)
 
4709
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4622
4710
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4623
4711
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4624
4712
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4625
4713
        ;;
4626
4714
      *)
4627
4715
        case `$CC -V 2>&1 | sed 5q` in
 
4716
        *Sun\ F* | *Sun*Fortran*)
 
4717
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4718
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4719
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4720
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4721
          ;;
4628
4722
        *Sun\ C*)
4629
4723
          # Sun C 5.9
4630
4724
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4631
4725
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4632
4726
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633
4727
          ;;
4634
 
        *Sun\ F*)
4635
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4636
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4637
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4638
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4639
 
          ;;
4640
4728
        esac
4641
4729
        ;;
4642
4730
      esac
4667
4755
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4668
4756
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4669
4757
      case $cc_basename in
4670
 
      f77* | f90* | f95*)
 
4758
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4671
4759
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4672
4760
      *)
4673
4761
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4777
4865
  aix[[4-9]]*)
4778
4866
    # If we're using GNU nm, then we don't want the "-C" option.
4779
4867
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4868
    # Also, AIX nm treats weak defined symbols like other global defined
 
4869
    # symbols, whereas GNU nm marks them as "W".
4780
4870
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4781
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
4871
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4782
4872
    else
4783
4873
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4784
4874
    fi
4786
4876
  pw32*)
4787
4877
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4788
4878
  ;;
4789
 
  cygwin* | mingw*)
 
4879
  cygwin* | mingw* | cegcc*)
4790
4880
    _LT_TAGVAR(export_symbols_cmds, $1)='$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'
4791
4881
  ;;
4792
 
  linux* | k*bsd*-gnu)
4793
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
4794
 
  ;;
4795
4882
  *)
4796
4883
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4797
4884
  ;;
4841
4928
  extract_expsyms_cmds=
4842
4929
 
4843
4930
  case $host_os in
4844
 
  cygwin* | mingw* | pw32*)
 
4931
  cygwin* | mingw* | pw32* | cegcc*)
4845
4932
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4846
4933
    # When not using gcc, we currently assume that we are using
4847
4934
    # Microsoft Visual C++.
4859
4946
  esac
4860
4947
 
4861
4948
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4949
 
 
4950
  # On some targets, GNU ld is compatible enough with the native linker
 
4951
  # that we're better off using the native interface for both.
 
4952
  lt_use_gnu_ld_interface=no
4862
4953
  if test "$with_gnu_ld" = yes; then
 
4954
    case $host_os in
 
4955
      aix*)
 
4956
        # The AIX port of GNU ld has always aspired to compatibility
 
4957
        # with the native linker.  However, as the warning in the GNU ld
 
4958
        # block says, versions before 2.19.5* couldn't really create working
 
4959
        # shared libraries, regardless of the interface used.
 
4960
        case `$LD -v 2>&1` in
 
4961
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4962
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4963
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4964
          *)
 
4965
            lt_use_gnu_ld_interface=yes
 
4966
            ;;
 
4967
        esac
 
4968
        ;;
 
4969
      *)
 
4970
        lt_use_gnu_ld_interface=yes
 
4971
        ;;
 
4972
    esac
 
4973
  fi
 
4974
 
 
4975
  if test "$lt_use_gnu_ld_interface" = yes; then
4863
4976
    # If archive_cmds runs LD, not CC, wlarc should be empty
4864
4977
    wlarc='${wl}'
4865
4978
 
4877
4990
    fi
4878
4991
    supports_anon_versioning=no
4879
4992
    case `$LD -v 2>&1` in
 
4993
      *GNU\ gold*) supports_anon_versioning=yes ;;
4880
4994
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4881
4995
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4882
4996
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4892
5006
        _LT_TAGVAR(ld_shlibs, $1)=no
4893
5007
        cat <<_LT_EOF 1>&2
4894
5008
 
4895
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5009
*** Warning: the GNU linker, at least up to release 2.19, is reported
4896
5010
*** to be unable to reliably create shared libraries on AIX.
4897
5011
*** Therefore, libtool is disabling shared libraries support.  If you
4898
 
*** really care for shared libraries, you may want to modify your PATH
4899
 
*** so that a non-GNU linker is found, and then restart.
 
5012
*** really care for shared libraries, you may want to install binutils
 
5013
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5014
*** You will then need to restart the configuration process.
4900
5015
 
4901
5016
_LT_EOF
4902
5017
      fi
4928
5043
      fi
4929
5044
      ;;
4930
5045
 
4931
 
    cygwin* | mingw* | pw32*)
 
5046
    cygwin* | mingw* | pw32* | cegcc*)
4932
5047
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4933
5048
      # as there is no search path for DLLs.
4934
5049
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5050
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4935
5051
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4936
5052
      _LT_TAGVAR(always_export_symbols, $1)=no
4937
5053
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4953
5069
      fi
4954
5070
      ;;
4955
5071
 
 
5072
    haiku*)
 
5073
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5074
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5075
      ;;
 
5076
 
4956
5077
    interix[[3-9]]*)
4957
5078
      _LT_TAGVAR(hardcode_direct, $1)=no
4958
5079
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4968
5089
      _LT_TAGVAR(archive_expsym_cmds, $1)='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'
4969
5090
      ;;
4970
5091
 
4971
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5092
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4972
5093
      tmp_diet=no
4973
5094
      if test "$host_os" = linux-dietlibc; then
4974
5095
        case $cc_basename in
4982
5103
        tmp_sharedflag='-shared'
4983
5104
        case $cc_basename,$host_cpu in
4984
5105
        pgcc*)                          # Portland Group C compiler
4985
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5106
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4986
5107
          tmp_addflag=' $pic_flag'
4987
5108
          ;;
4988
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4989
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5109
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5110
                                        # Portland Group f77 and f90 compilers
 
5111
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4990
5112
          tmp_addflag=' $pic_flag -Mnomain' ;;
4991
5113
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4992
5114
          tmp_addflag=' -i_dynamic' ;;
4994
5116
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4995
5117
        ifc* | ifort*)                  # Intel Fortran compiler
4996
5118
          tmp_addflag=' -nofor_main' ;;
4997
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5119
        lf95*)                          # Lahey Fortran 8.1
 
5120
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5121
          tmp_sharedflag='--shared' ;;
 
5122
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4998
5123
          tmp_sharedflag='-qmkshrobj'
4999
5124
          tmp_addflag= ;;
 
5125
        nvcc*)  # Cuda Compiler Driver 2.2
 
5126
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5127
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5128
          ;;
5000
5129
        esac
5001
5130
        case `$CC -V 2>&1 | sed 5q` in
5002
5131
        *Sun\ C*)                       # Sun C 5.9
5003
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5132
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5004
5133
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5005
5134
          tmp_sharedflag='-G' ;;
5006
5135
        *Sun\ F*)                       # Sun Fortran 8.3
5016
5145
        fi
5017
5146
 
5018
5147
        case $cc_basename in
5019
 
        xlf*)
 
5148
        xlf* | bgf* | bgxlf* | mpixlf*)
5020
5149
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5021
5150
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5022
5151
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5023
5152
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5024
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5153
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5025
5154
          if test "x$supports_anon_versioning" = xyes; then
5026
5155
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5027
5156
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5028
5157
              echo "local: *; };" >> $output_objdir/$libname.ver~
5029
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5158
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5030
5159
          fi
5031
5160
          ;;
5032
5161
        esac
5035
5164
      fi
5036
5165
      ;;
5037
5166
 
5038
 
    netbsd* | netbsdelf*-gnu)
 
5167
    netbsd*)
5039
5168
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5040
5169
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5041
5170
        wlarc=
5147
5276
      else
5148
5277
        # If we're using GNU nm, then we don't want the "-C" option.
5149
5278
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5279
        # Also, AIX nm treats weak defined symbols like other global
 
5280
        # defined symbols, whereas GNU nm marks them as "W".
5150
5281
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5151
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5282
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5152
5283
        else
5153
5284
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5154
5285
        fi
5210
5341
        if test "$aix_use_runtimelinking" = yes; then
5211
5342
          shared_flag="$shared_flag "'${wl}-G'
5212
5343
        fi
5213
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
5214
5344
      else
5215
5345
        # not using gcc
5216
5346
        if test "$host_cpu" = ia64; then
5226
5356
        fi
5227
5357
      fi
5228
5358
 
 
5359
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5229
5360
      # It seems that -bexpall does not export symbols beginning with
5230
5361
      # underscore (_), so it is better to generate a list of symbols to export.
5231
5362
      _LT_TAGVAR(always_export_symbols, $1)=yes
5237
5368
        # empty executable.
5238
5369
        _LT_SYS_MODULE_PATH_AIX
5239
5370
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5240
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5371
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5241
5372
      else
5242
5373
        if test "$host_cpu" = ia64; then
5243
5374
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5252
5383
          # -berok will link without error, but may produce a broken library.
5253
5384
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5254
5385
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5255
 
          # Exported symbols can be pulled into shared objects from archives
5256
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5386
          if test "$with_gnu_ld" = yes; then
 
5387
            # We only use this code for GNU lds that support --whole-archive.
 
5388
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5389
          else
 
5390
            # Exported symbols can be pulled into shared objects from archives
 
5391
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5392
          fi
5257
5393
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5258
5394
          # This is similar to how AIX traditionally builds its shared libraries.
5259
5395
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$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'
5280
5416
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5281
5417
      ;;
5282
5418
 
5283
 
    cygwin* | mingw* | pw32*)
 
5419
    cygwin* | mingw* | pw32* | cegcc*)
5284
5420
      # When not using gcc, we currently assume that we are using
5285
5421
      # Microsoft Visual C++.
5286
5422
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5292
5428
      # Tell ltmain to make .dll files, not .so files.
5293
5429
      shrext_cmds=".dll"
5294
5430
      # FIXME: Setting linknames here is a bad hack.
5295
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5431
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5296
5432
      # The linker will automatically build a .lib file if we build a DLL.
5297
5433
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5298
5434
      # FIXME: Should let the user specify the lib program.
5359
5495
      ;;
5360
5496
 
5361
5497
    hpux10*)
5362
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5498
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5363
5499
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5364
5500
      else
5365
5501
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5378
5514
      ;;
5379
5515
 
5380
5516
    hpux11*)
5381
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5517
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5382
5518
        case $host_cpu in
5383
5519
        hppa*64*)
5384
5520
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5385
5521
          ;;
5386
5522
        ia64*)
5387
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5523
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5388
5524
          ;;
5389
5525
        *)
5390
5526
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5399
5535
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5400
5536
          ;;
5401
5537
        *)
5402
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5538
        m4_if($1, [], [
 
5539
          # Older versions of the 11.00 compiler do not understand -b yet
 
5540
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5541
          _LT_LINKER_OPTION([if $CC understands -b],
 
5542
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5543
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5544
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5545
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5403
5546
          ;;
5404
5547
        esac
5405
5548
      fi
5427
5570
 
5428
5571
    irix5* | irix6* | nonstopux*)
5429
5572
      if test "$GCC" = yes; then
5430
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5573
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5431
5574
        # Try to use the -exported_symbol ld option, if it does not
5432
5575
        # work, assume that -exports_file does not work either and
5433
5576
        # implicitly export all symbols.
5434
5577
        save_LDFLAGS="$LDFLAGS"
5435
5578
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5436
5579
        AC_LINK_IFELSE(int foo(void) {},
5437
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5580
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5438
5581
        )
5439
5582
        LDFLAGS="$save_LDFLAGS"
5440
5583
      else
5441
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5442
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
5584
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
5585
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5443
5586
      fi
5444
5587
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5445
5588
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5448
5591
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5449
5592
      ;;
5450
5593
 
5451
 
    netbsd* | netbsdelf*-gnu)
 
5594
    netbsd*)
5452
5595
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5453
5596
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5454
5597
      else
5501
5644
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5502
5645
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5503
5646
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5504
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
5647
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5505
5648
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5506
5649
      ;;
5507
5650
 
5508
5651
    osf3*)
5509
5652
      if test "$GCC" = yes; then
5510
5653
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5511
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5654
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5512
5655
      else
5513
5656
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5514
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5657
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5515
5658
      fi
5516
5659
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5517
5660
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5521
5664
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5522
5665
      if test "$GCC" = yes; then
5523
5666
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5524
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5667
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5525
5668
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5526
5669
      else
5527
5670
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5528
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5671
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5529
5672
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5530
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
5673
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5531
5674
 
5532
5675
        # Both c and cxx compiler support -rpath directly
5533
5676
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5718
5861
      # Test whether the compiler implicitly links with -lc since on some
5719
5862
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5720
5863
      # to ld, don't add -lc before -lgcc.
5721
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5722
 
      $RM conftest*
5723
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5864
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5865
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5866
        [$RM conftest*
 
5867
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5724
5868
 
5725
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5726
 
        soname=conftest
5727
 
        lib=conftest
5728
 
        libobjs=conftest.$ac_objext
5729
 
        deplibs=
5730
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5731
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5732
 
        compiler_flags=-v
5733
 
        linker_flags=-v
5734
 
        verstring=
5735
 
        output_objdir=.
5736
 
        libname=conftest
5737
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5738
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5739
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5740
 
        then
5741
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5742
 
        else
5743
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5744
 
        fi
5745
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5746
 
      else
5747
 
        cat conftest.err 1>&5
5748
 
      fi
5749
 
      $RM conftest*
5750
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5869
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5870
          soname=conftest
 
5871
          lib=conftest
 
5872
          libobjs=conftest.$ac_objext
 
5873
          deplibs=
 
5874
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5875
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5876
          compiler_flags=-v
 
5877
          linker_flags=-v
 
5878
          verstring=
 
5879
          output_objdir=.
 
5880
          libname=conftest
 
5881
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5882
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5883
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5884
          then
 
5885
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5886
          else
 
5887
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5888
          fi
 
5889
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5890
        else
 
5891
          cat conftest.err 1>&5
 
5892
        fi
 
5893
        $RM conftest*
 
5894
        ])
 
5895
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5751
5896
      ;;
5752
5897
    esac
5753
5898
  fi
5913
6058
])# _LT_LANG_C_CONFIG
5914
6059
 
5915
6060
 
5916
 
# _LT_PROG_CXX
5917
 
# ------------
5918
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5919
 
# compiler, we have our own version here.
5920
 
m4_defun([_LT_PROG_CXX],
5921
 
[
5922
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5923
 
AC_PROG_CXX
 
6061
# _LT_LANG_CXX_CONFIG([TAG])
 
6062
# --------------------------
 
6063
# Ensure that the configuration variables for a C++ compiler are suitably
 
6064
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6065
# the compiler configuration to `libtool'.
 
6066
m4_defun([_LT_LANG_CXX_CONFIG],
 
6067
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6068
m4_require([_LT_DECL_EGREP])dnl
5924
6069
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5925
6070
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5926
6071
    (test "X$CXX" != "Xg++"))) ; then
5928
6073
else
5929
6074
  _lt_caught_CXX_error=yes
5930
6075
fi
5931
 
popdef([AC_MSG_ERROR])
5932
 
])# _LT_PROG_CXX
5933
 
 
5934
 
dnl aclocal-1.4 backwards compatibility:
5935
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5936
 
 
5937
 
 
5938
 
# _LT_LANG_CXX_CONFIG([TAG])
5939
 
# --------------------------
5940
 
# Ensure that the configuration variables for a C++ compiler are suitably
5941
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5942
 
# the compiler configuration to `libtool'.
5943
 
m4_defun([_LT_LANG_CXX_CONFIG],
5944
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5945
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5946
 
m4_require([_LT_DECL_EGREP])dnl
5947
6076
 
5948
6077
AC_LANG_PUSH(C++)
5949
6078
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5965
6094
_LT_TAGVAR(module_expsym_cmds, $1)=
5966
6095
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5967
6096
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6097
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6098
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5968
6099
_LT_TAGVAR(no_undefined_flag, $1)=
5969
6100
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5970
6101
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6067
6198
      # Commands to make compiler produce verbose output that lists
6068
6199
      # what "hidden" libraries, object files and flags are used when
6069
6200
      # linking a shared library.
6070
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6201
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6071
6202
 
6072
6203
    else
6073
6204
      GXX=no
6165
6296
          fi
6166
6297
        fi
6167
6298
 
 
6299
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6168
6300
        # It seems that -bexpall does not export symbols beginning with
6169
6301
        # underscore (_), so it is better to generate a list of symbols to
6170
6302
        # export.
6178
6310
          _LT_SYS_MODULE_PATH_AIX
6179
6311
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6180
6312
 
6181
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6313
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6182
6314
        else
6183
6315
          if test "$host_cpu" = ia64; then
6184
6316
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6193
6325
            # -berok will link without error, but may produce a broken library.
6194
6326
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6195
6327
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6196
 
            # Exported symbols can be pulled into shared objects from archives
6197
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6328
            if test "$with_gnu_ld" = yes; then
 
6329
              # We only use this code for GNU lds that support --whole-archive.
 
6330
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6331
            else
 
6332
              # Exported symbols can be pulled into shared objects from archives
 
6333
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6334
            fi
6198
6335
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6199
6336
            # This is similar to how AIX traditionally builds its shared
6200
6337
            # libraries.
6223
6360
        esac
6224
6361
        ;;
6225
6362
 
6226
 
      cygwin* | mingw* | pw32*)
 
6363
      cygwin* | mingw* | pw32* | cegcc*)
6227
6364
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6228
6365
        # as there is no search path for DLLs.
6229
6366
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6367
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6230
6368
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6231
6369
        _LT_TAGVAR(always_export_symbols, $1)=no
6232
6370
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6287
6425
      gnu*)
6288
6426
        ;;
6289
6427
 
 
6428
      haiku*)
 
6429
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6430
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6431
        ;;
 
6432
 
6290
6433
      hpux9*)
6291
6434
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6292
6435
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6311
6454
            # explicitly linking system object files so we need to strip them
6312
6455
            # from the output so that they don't get included in the library
6313
6456
            # dependencies.
6314
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6457
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6315
6458
            ;;
6316
6459
          *)
6317
6460
            if test "$GXX" = yes; then
6376
6519
            # explicitly linking system object files so we need to strip them
6377
6520
            # from the output so that they don't get included in the library
6378
6521
            # dependencies.
6379
 
            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 "X$list" | $Xsed'
 
6522
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6380
6523
            ;;
6381
6524
          *)
6382
6525
            if test "$GXX" = yes; then
6419
6562
        case $cc_basename in
6420
6563
          CC*)
6421
6564
            # SGI C++
6422
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6565
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6423
6566
 
6424
6567
            # Archives containing C++ object files must be created using
6425
6568
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6430
6573
          *)
6431
6574
            if test "$GXX" = yes; then
6432
6575
              if test "$with_gnu_ld" = no; then
6433
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6576
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6434
6577
              else
6435
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
6578
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6436
6579
              fi
6437
6580
            fi
6438
6581
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6443
6586
        _LT_TAGVAR(inherit_rpath, $1)=yes
6444
6587
        ;;
6445
6588
 
6446
 
      linux* | k*bsd*-gnu)
 
6589
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
6447
6590
        case $cc_basename in
6448
6591
          KCC*)
6449
6592
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6461
6604
            # explicitly linking system object files so we need to strip them
6462
6605
            # from the output so that they don't get included in the library
6463
6606
            # dependencies.
6464
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6607
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6465
6608
 
6466
6609
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6467
6610
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6498
6641
          pgCC* | pgcpp*)
6499
6642
            # Portland Group C++ compiler
6500
6643
            case `$CC -V` in
6501
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6644
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6502
6645
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6503
6646
                rm -rf $tpldir~
6504
6647
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6505
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6648
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6506
6649
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6507
6650
                rm -rf $tpldir~
6508
6651
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6509
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6652
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6510
6653
                $RANLIB $oldlib'
6511
6654
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6512
6655
                rm -rf $tpldir~
6513
6656
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6514
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6657
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6515
6658
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6516
6659
                rm -rf $tpldir~
6517
6660
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6518
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
6661
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6519
6662
              ;;
6520
 
            *) # Version 6 will use weak symbols
 
6663
            *) # Version 6 and above use weak symbols
6521
6664
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6522
6665
              _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
6523
6666
              ;;
6525
6668
 
6526
6669
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6527
6670
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6528
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
6671
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6529
6672
            ;;
6530
6673
          cxx*)
6531
6674
            # Compaq C++
6544
6687
            # explicitly linking system object files so we need to strip them
6545
6688
            # from the output so that they don't get included in the library
6546
6689
            # dependencies.
6547
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6690
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6548
6691
            ;;
6549
 
          xl*)
 
6692
          xl* | mpixl* | bgxl*)
6550
6693
            # IBM XL 8.0 on PPC, with GNU ld
6551
6694
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6552
6695
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6566
6709
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6567
6710
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6568
6711
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6569
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
6712
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6570
6713
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6571
6714
 
6572
6715
              # Not sure whether something based on
6573
6716
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6574
6717
              # would be better.
6575
 
              output_verbose_link_cmd='echo'
 
6718
              output_verbose_link_cmd='func_echo_all'
6576
6719
 
6577
6720
              # Archives containing C++ object files must be created using
6578
6721
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6641
6784
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6642
6785
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6643
6786
          fi
6644
 
          output_verbose_link_cmd=echo
 
6787
          output_verbose_link_cmd=func_echo_all
6645
6788
        else
6646
6789
          _LT_TAGVAR(ld_shlibs, $1)=no
6647
6790
        fi
6676
6819
            case $host in
6677
6820
              osf3*)
6678
6821
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6679
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6822
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6680
6823
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6681
6824
                ;;
6682
6825
              *)
6683
6826
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6684
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6827
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6685
6828
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6686
6829
                  echo "-hidden">> $lib.exp~
6687
 
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
6830
                  $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~
6688
6831
                  $RM $lib.exp'
6689
6832
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6690
6833
                ;;
6700
6843
            # explicitly linking system object files so we need to strip them
6701
6844
            # from the output so that they don't get included in the library
6702
6845
            # dependencies.
6703
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6846
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6704
6847
            ;;
6705
6848
          *)
6706
6849
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6707
6850
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6708
6851
              case $host in
6709
6852
                osf3*)
6710
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6853
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6711
6854
                  ;;
6712
6855
                *)
6713
 
                  _LT_TAGVAR(archive_cmds, $1)='$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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6856
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6714
6857
                  ;;
6715
6858
              esac
6716
6859
 
6720
6863
              # Commands to make compiler produce verbose output that lists
6721
6864
              # what "hidden" libraries, object files and flags are used when
6722
6865
              # linking a shared library.
6723
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6866
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6724
6867
 
6725
6868
            else
6726
6869
              # FIXME: insert proper C++ library support
6756
6899
 
6757
6900
      solaris*)
6758
6901
        case $cc_basename in
6759
 
          CC*)
 
6902
          CC* | sunCC*)
6760
6903
            # Sun C++ 4.2, 5.x and Centerline C++
6761
6904
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6762
6905
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6777
6920
            esac
6778
6921
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6779
6922
 
6780
 
            output_verbose_link_cmd='echo'
 
6923
            output_verbose_link_cmd='func_echo_all'
6781
6924
 
6782
6925
            # Archives containing C++ object files must be created using
6783
6926
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6804
6947
                # Commands to make compiler produce verbose output that lists
6805
6948
                # what "hidden" libraries, object files and flags are used when
6806
6949
                # linking a shared library.
6807
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6950
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6808
6951
              else
6809
6952
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6810
6953
                # platform.
6815
6958
                # Commands to make compiler produce verbose output that lists
6816
6959
                # what "hidden" libraries, object files and flags are used when
6817
6960
                # linking a shared library.
6818
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6961
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6819
6962
              fi
6820
6963
 
6821
6964
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6869
7012
          CC*)
6870
7013
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6871
7014
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7015
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7016
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7017
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7018
              '"$_LT_TAGVAR(reload_cmds, $1)"
6872
7019
            ;;
6873
7020
          *)
6874
7021
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7115
7262
 
7116
7263
solaris*)
7117
7264
  case $cc_basename in
7118
 
  CC*)
 
7265
  CC* | sunCC*)
7119
7266
    # The more standards-conforming stlport4 library is
7120
7267
    # incompatible with the Cstd library. Avoid specifying
7121
7268
    # it if it's in CXXFLAGS. Ignore libCrun as
7159
7306
])# _LT_SYS_HIDDEN_LIBDEPS
7160
7307
 
7161
7308
 
7162
 
# _LT_PROG_F77
7163
 
# ------------
7164
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7165
 
# if there is no fortran compiler, we have our own version here.
7166
 
m4_defun([_LT_PROG_F77],
7167
 
[
7168
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7169
 
AC_PROG_F77
7170
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7171
 
  _lt_disable_F77=yes
7172
 
fi
7173
 
popdef([AC_MSG_ERROR])
7174
 
])# _LT_PROG_F77
7175
 
 
7176
 
dnl aclocal-1.4 backwards compatibility:
7177
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7178
 
 
7179
 
 
7180
7309
# _LT_LANG_F77_CONFIG([TAG])
7181
7310
# --------------------------
7182
7311
# Ensure that the configuration variables for a Fortran 77 compiler are
7183
7312
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7184
7313
# to write the compiler configuration to `libtool'.
7185
7314
m4_defun([_LT_LANG_F77_CONFIG],
7186
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7187
 
AC_LANG_PUSH(Fortran 77)
 
7315
[AC_LANG_PUSH(Fortran 77)
 
7316
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7317
  _lt_disable_F77=yes
 
7318
fi
7188
7319
 
7189
7320
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7190
7321
_LT_TAGVAR(allow_undefined_flag, $1)=
7203
7334
_LT_TAGVAR(module_expsym_cmds, $1)=
7204
7335
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7205
7336
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7337
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7338
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7206
7339
_LT_TAGVAR(no_undefined_flag, $1)=
7207
7340
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7208
7341
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7302
7435
])# _LT_LANG_F77_CONFIG
7303
7436
 
7304
7437
 
7305
 
# _LT_PROG_FC
7306
 
# -----------
7307
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7308
 
# if there is no fortran compiler, we have our own version here.
7309
 
m4_defun([_LT_PROG_FC],
7310
 
[
7311
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7312
 
AC_PROG_FC
7313
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7314
 
  _lt_disable_FC=yes
7315
 
fi
7316
 
popdef([AC_MSG_ERROR])
7317
 
])# _LT_PROG_FC
7318
 
 
7319
 
dnl aclocal-1.4 backwards compatibility:
7320
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7321
 
 
7322
 
 
7323
7438
# _LT_LANG_FC_CONFIG([TAG])
7324
7439
# -------------------------
7325
7440
# Ensure that the configuration variables for a Fortran compiler are
7326
7441
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7327
7442
# to write the compiler configuration to `libtool'.
7328
7443
m4_defun([_LT_LANG_FC_CONFIG],
7329
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7330
 
AC_LANG_PUSH(Fortran)
 
7444
[AC_LANG_PUSH(Fortran)
 
7445
 
 
7446
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7447
  _lt_disable_FC=yes
 
7448
fi
7331
7449
 
7332
7450
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7333
7451
_LT_TAGVAR(allow_undefined_flag, $1)=
7346
7464
_LT_TAGVAR(module_expsym_cmds, $1)=
7347
7465
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7348
7466
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7467
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7468
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7349
7469
_LT_TAGVAR(no_undefined_flag, $1)=
7350
7470
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7351
7471
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7491
7611
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7492
7612
 
7493
7613
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7614
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7615
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7494
7616
 
7495
7617
if test -n "$compiler"; then
7496
7618
  _LT_COMPILER_NO_RTTI($1)
7604
7726
])
7605
7727
 
7606
7728
 
 
7729
# _LT_DECL_OBJDUMP
 
7730
# --------------
 
7731
# If we don't have a new enough Autoconf to choose the best objdump
 
7732
# available, choose the one first in the user's PATH.
 
7733
m4_defun([_LT_DECL_OBJDUMP],
 
7734
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7735
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7736
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7737
AC_SUBST([OBJDUMP])
 
7738
])
 
7739
 
 
7740
 
7607
7741
# _LT_DECL_SED
7608
7742
# ------------
7609
7743
# Check for a fully-functional sed program, that truncates
7840
7974
func_dirname ()
7841
7975
{
7842
7976
  # Extract subdirectory from the argument.
7843
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7977
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7844
7978
  if test "X$func_dirname_result" = "X${1}"; then
7845
7979
    func_dirname_result="${3}"
7846
7980
  else
7851
7985
# func_basename file
7852
7986
func_basename ()
7853
7987
{
7854
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7988
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7855
7989
}
7856
7990
 
7857
7991
dnl func_dirname_and_basename
7867
8001
func_stripname ()
7868
8002
{
7869
8003
  case ${2} in
7870
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7871
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7872
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7873
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8004
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8005
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7874
8006
  esac
7875
8007
}
7876
8008
 
7881
8013
# func_opt_split
7882
8014
func_opt_split ()
7883
8015
{
7884
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7885
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8016
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
 
8017
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7886
8018
}
7887
8019
 
7888
8020
# func_lo2o object
7889
8021
func_lo2o ()
7890
8022
{
7891
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8023
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7892
8024
}
7893
8025
 
7894
8026
# func_xform libobj-or-source
7895
8027
func_xform ()
7896
8028
{
7897
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8029
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7898
8030
}
7899
8031
 
7900
8032
# func_arith arithmetic-term...
7942
8074
 
7943
8075
# Helper functions for option handling.                    -*- Autoconf -*-
7944
8076
#
7945
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8077
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8078
#   Inc.
7946
8079
#   Written by Gary V. Vaughan, 2004
7947
8080
#
7948
8081
# This file is free software; the Free Software Foundation gives
7949
8082
# unlimited permission to copy and/or distribute it, with or without
7950
8083
# modifications, as long as this notice is preserved.
7951
8084
 
7952
 
# serial 6 ltoptions.m4
 
8085
# serial 7 ltoptions.m4
7953
8086
 
7954
8087
# This is to help aclocal find these macros, as it can't see m4_define.
7955
8088
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8064
8197
[enable_win32_dll=yes
8065
8198
 
8066
8199
case $host in
8067
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
8200
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8068
8201
  AC_CHECK_TOOL(AS, as, false)
8069
8202
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8070
8203
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8072
8205
esac
8073
8206
 
8074
8207
test -z "$AS" && AS=as
8075
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8208
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8076
8209
 
8077
8210
test -z "$DLLTOOL" && DLLTOOL=dlltool
8078
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8211
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8079
8212
 
8080
8213
test -z "$OBJDUMP" && OBJDUMP=objdump
8081
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8214
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8082
8215
])# win32-dll
8083
8216
 
8084
8217
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8305
8438
 
8306
8439
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8307
8440
#
8308
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8309
 
#   Written by Gary V. Vaughan, 2004
 
8441
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8442
# Written by Gary V. Vaughan, 2004
8310
8443
#
8311
8444
# This file is free software; the Free Software Foundation gives
8312
8445
# unlimited permission to copy and/or distribute it, with or without
8313
8446
# modifications, as long as this notice is preserved.
8314
8447
 
8315
 
# serial 5 ltsugar.m4
 
8448
# serial 6 ltsugar.m4
8316
8449
 
8317
8450
# This is to help aclocal find these macros, as it can't see m4_define.
8318
8451
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8368
8501
# Produce a SEP delimited list of all paired combinations of elements of
8369
8502
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8370
8503
# has the form PREFIXmINFIXSUFFIXn.
 
8504
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8371
8505
m4_define([lt_combine],
8372
 
[m4_if([$2], [], [],
8373
 
  [m4_if([$4], [], [],
8374
 
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
8375
 
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8376
 
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8377
 
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8378
 
])
 
8506
[m4_if(m4_eval([$# > 3]), [1],
 
8507
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8508
[[m4_foreach([_Lt_prefix], [$2],
 
8509
             [m4_foreach([_Lt_suffix],
 
8510
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8511
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8379
8512
 
8380
8513
 
8381
8514
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8438
8571
 
8439
8572
# Generated from ltversion.in.
8440
8573
 
8441
 
# serial 2976 ltversion.m4
 
8574
# serial 3175 ltversion.m4
8442
8575
# This file is part of GNU Libtool
8443
8576
 
8444
 
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8445
 
m4_define([LT_PACKAGE_REVISION], [1.2976])
 
8577
m4_define([LT_PACKAGE_VERSION], [2.2.10])
 
8578
m4_define([LT_PACKAGE_REVISION], [1.3175])
8446
8579
 
8447
8580
AC_DEFUN([LTVERSION_VERSION],
8448
 
[macro_version='2.2.4'
8449
 
macro_revision='1.2976'
 
8581
[macro_version='2.2.10'
 
8582
macro_revision='1.3175'
8450
8583
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8451
8584
_LT_DECL(, macro_revision, 0)
8452
8585
])
8453
8586
 
8454
8587
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8455
8588
#
8456
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8589
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8457
8590
#   Written by Scott James Remnant, 2004.
8458
8591
#
8459
8592
# This file is free software; the Free Software Foundation gives
8460
8593
# unlimited permission to copy and/or distribute it, with or without
8461
8594
# modifications, as long as this notice is preserved.
8462
8595
 
8463
 
# serial 4 lt~obsolete.m4
 
8596
# serial 5 lt~obsolete.m4
8464
8597
 
8465
8598
# These exist entirely to fool aclocal when bootstrapping libtool.
8466
8599
#
8530
8663
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8531
8664
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8532
8665
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8533
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8534
8666
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8535
8667
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8536
8668
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8543
8675
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8544
8676
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8545
8677
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8678
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8679
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8680
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8681
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8682
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8683
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8684
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8546
8685
 
8547
 
# nls.m4 serial 3 (gettext-0.15)
8548
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
8686
# nls.m4 serial 5 (gettext-0.18)
 
8687
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
8688
dnl Inc.
8549
8689
dnl This file is free software; the Free Software Foundation
8550
8690
dnl gives unlimited permission to copy and/or distribute it,
8551
8691
dnl with or without modifications, as long as this notice is preserved.
8563
8703
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8564
8704
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8565
8705
 
8566
 
AC_PREREQ(2.50)
 
8706
AC_PREREQ([2.50])
8567
8707
 
8568
8708
AC_DEFUN([AM_NLS],
8569
8709
[
8570
8710
  AC_MSG_CHECKING([whether NLS is requested])
8571
8711
  dnl Default is enabled NLS
8572
 
  AC_ARG_ENABLE(nls,
 
8712
  AC_ARG_ENABLE([nls],
8573
8713
    [  --disable-nls           do not use Native Language Support],
8574
8714
    USE_NLS=$enableval, USE_NLS=yes)
8575
 
  AC_MSG_RESULT($USE_NLS)
8576
 
  AC_SUBST(USE_NLS)
 
8715
  AC_MSG_RESULT([$USE_NLS])
 
8716
  AC_SUBST([USE_NLS])
8577
8717
])
8578
8718
 
8579
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
8719
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8580
8720
#
8581
8721
# This file is free software; the Free Software Foundation
8582
8722
# gives unlimited permission to copy and/or distribute it,
8588
8728
# generated from the m4 files accompanying Automake X.Y.
8589
8729
# (This private macro should not be called outside this file.)
8590
8730
AC_DEFUN([AM_AUTOMAKE_VERSION],
8591
 
[am__api_version='1.10'
 
8731
[am__api_version='1.11'
8592
8732
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8593
8733
dnl require some minimum version.  Point them to the right macro.
8594
 
m4_if([$1], [1.10.1], [],
 
8734
m4_if([$1], [1.11.1], [],
8595
8735
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8596
8736
])
8597
8737
 
8605
8745
# AM_SET_CURRENT_AUTOMAKE_VERSION
8606
8746
# -------------------------------
8607
8747
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8608
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
8748
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8609
8749
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8610
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
8750
[AM_AUTOMAKE_VERSION([1.11.1])dnl
8611
8751
m4_ifndef([AC_AUTOCONF_VERSION],
8612
8752
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8613
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
8753
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8614
8754
 
8615
8755
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8616
8756
 
8667
8807
 
8668
8808
# AM_CONDITIONAL                                            -*- Autoconf -*-
8669
8809
 
8670
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
8810
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8671
8811
# Free Software Foundation, Inc.
8672
8812
#
8673
8813
# This file is free software; the Free Software Foundation
8674
8814
# gives unlimited permission to copy and/or distribute it,
8675
8815
# with or without modifications, as long as this notice is preserved.
8676
8816
 
8677
 
# serial 8
 
8817
# serial 9
8678
8818
 
8679
8819
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8680
8820
# -------------------------------------
8687
8827
AC_SUBST([$1_FALSE])dnl
8688
8828
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8689
8829
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
8830
m4_define([_AM_COND_VALUE_$1], [$2])dnl
8690
8831
if $2; then
8691
8832
  $1_TRUE=
8692
8833
  $1_FALSE='#'
8700
8841
Usually this means the macro was only invoked conditionally.]])
8701
8842
fi])])
8702
8843
 
8703
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
8844
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8704
8845
# Free Software Foundation, Inc.
8705
8846
#
8706
8847
# This file is free software; the Free Software Foundation
8707
8848
# gives unlimited permission to copy and/or distribute it,
8708
8849
# with or without modifications, as long as this notice is preserved.
8709
8850
 
8710
 
# serial 9
 
8851
# serial 10
8711
8852
 
8712
8853
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8713
8854
# written in clear, in which case automake, when reading aclocal.m4,
8764
8905
  if test "$am_compiler_list" = ""; then
8765
8906
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8766
8907
  fi
 
8908
  am__universal=false
 
8909
  m4_case([$1], [CC],
 
8910
    [case " $depcc " in #(
 
8911
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
8912
     esac],
 
8913
    [CXX],
 
8914
    [case " $depcc " in #(
 
8915
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
8916
     esac])
 
8917
 
8767
8918
  for depmode in $am_compiler_list; do
8768
8919
    # Setup a source with many dependencies, because some compilers
8769
8920
    # like to wrap large dependency lists on column 80 (with \), and
8781
8932
    done
8782
8933
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8783
8934
 
 
8935
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
8936
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
8937
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
8938
    # versions had trouble with output in subdirs
 
8939
    am__obj=sub/conftest.${OBJEXT-o}
 
8940
    am__minus_obj="-o $am__obj"
8784
8941
    case $depmode in
 
8942
    gcc)
 
8943
      # This depmode causes a compiler race in universal mode.
 
8944
      test "$am__universal" = false || continue
 
8945
      ;;
8785
8946
    nosideeffect)
8786
8947
      # after this tag, mechanisms are not by side-effect, so they'll
8787
8948
      # only be used when explicitly requested
8791
8952
        break
8792
8953
      fi
8793
8954
      ;;
 
8955
    msvisualcpp | msvcmsys)
 
8956
      # This compiler won't grok `-c -o', but also, the minuso test has
 
8957
      # not run yet.  These depmodes are late enough in the game, and
 
8958
      # so weak that their functioning should not be impacted.
 
8959
      am__obj=conftest.${OBJEXT-o}
 
8960
      am__minus_obj=
 
8961
      ;;
8794
8962
    none) break ;;
8795
8963
    esac
8796
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8797
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
8798
 
    # handle `-M -o', and we need to detect this.
8799
8964
    if depmode=$depmode \
8800
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
8965
       source=sub/conftest.c object=$am__obj \
8801
8966
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8802
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
8967
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8803
8968
         >/dev/null 2>conftest.err &&
8804
8969
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8805
8970
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8806
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
8971
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8807
8972
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8808
8973
      # icc doesn't choke on unknown options, it will just issue warnings
8809
8974
      # or remarks (even with -Werror).  So we grep stderr for any message
8860
9025
 
8861
9026
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8862
9027
 
8863
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9028
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8864
9029
# Free Software Foundation, Inc.
8865
9030
#
8866
9031
# This file is free software; the Free Software Foundation
8867
9032
# gives unlimited permission to copy and/or distribute it,
8868
9033
# with or without modifications, as long as this notice is preserved.
8869
9034
 
8870
 
#serial 3
 
9035
#serial 5
8871
9036
 
8872
9037
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8873
9038
# ------------------------------
8874
9039
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8875
 
[for mf in $CONFIG_FILES; do
8876
 
  # Strip MF so we end up with the name of the file.
8877
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8878
 
  # Check whether this is an Automake generated Makefile or not.
8879
 
  # We used to match only the files named `Makefile.in', but
8880
 
  # some people rename them; so instead we look at the file content.
8881
 
  # Grep'ing the first line is not enough: some people post-process
8882
 
  # each Makefile.in and add a new line on top of each file to say so.
8883
 
  # Grep'ing the whole file is not good either: AIX grep has a line
8884
 
  # limit of 2048, but all sed's we know have understand at least 4000.
8885
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8886
 
    dirpart=`AS_DIRNAME("$mf")`
8887
 
  else
8888
 
    continue
8889
 
  fi
8890
 
  # Extract the definition of DEPDIR, am__include, and am__quote
8891
 
  # from the Makefile without running `make'.
8892
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8893
 
  test -z "$DEPDIR" && continue
8894
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8895
 
  test -z "am__include" && continue
8896
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8897
 
  # When using ansi2knr, U may be empty or an underscore; expand it
8898
 
  U=`sed -n 's/^U = //p' < "$mf"`
8899
 
  # Find all dependency output files, they are included files with
8900
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8901
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
8902
 
  # expansion.
8903
 
  for file in `sed -n "
8904
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8905
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8906
 
    # Make sure the directory exists.
8907
 
    test -f "$dirpart/$file" && continue
8908
 
    fdir=`AS_DIRNAME(["$file"])`
8909
 
    AS_MKDIR_P([$dirpart/$fdir])
8910
 
    # echo "creating $dirpart/$file"
8911
 
    echo '# dummy' > "$dirpart/$file"
 
9040
[{
 
9041
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9042
  # are listed without --file.  Let's play safe and only enable the eval
 
9043
  # if we detect the quoting.
 
9044
  case $CONFIG_FILES in
 
9045
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9046
  *)   set x $CONFIG_FILES ;;
 
9047
  esac
 
9048
  shift
 
9049
  for mf
 
9050
  do
 
9051
    # Strip MF so we end up with the name of the file.
 
9052
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9053
    # Check whether this is an Automake generated Makefile or not.
 
9054
    # We used to match only the files named `Makefile.in', but
 
9055
    # some people rename them; so instead we look at the file content.
 
9056
    # Grep'ing the first line is not enough: some people post-process
 
9057
    # each Makefile.in and add a new line on top of each file to say so.
 
9058
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9059
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9060
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9061
      dirpart=`AS_DIRNAME("$mf")`
 
9062
    else
 
9063
      continue
 
9064
    fi
 
9065
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9066
    # from the Makefile without running `make'.
 
9067
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9068
    test -z "$DEPDIR" && continue
 
9069
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9070
    test -z "am__include" && continue
 
9071
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9072
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9073
    U=`sed -n 's/^U = //p' < "$mf"`
 
9074
    # Find all dependency output files, they are included files with
 
9075
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9076
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9077
    # expansion.
 
9078
    for file in `sed -n "
 
9079
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9080
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9081
      # Make sure the directory exists.
 
9082
      test -f "$dirpart/$file" && continue
 
9083
      fdir=`AS_DIRNAME(["$file"])`
 
9084
      AS_MKDIR_P([$dirpart/$fdir])
 
9085
      # echo "creating $dirpart/$file"
 
9086
      echo '# dummy' > "$dirpart/$file"
 
9087
    done
8912
9088
  done
8913
 
done
 
9089
}
8914
9090
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8915
9091
 
8916
9092
 
8942
9118
# Do all the work for Automake.                             -*- Autoconf -*-
8943
9119
 
8944
9120
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8945
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
9121
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
8946
9122
#
8947
9123
# This file is free software; the Free Software Foundation
8948
9124
# gives unlimited permission to copy and/or distribute it,
8949
9125
# with or without modifications, as long as this notice is preserved.
8950
9126
 
8951
 
# serial 13
 
9127
# serial 16
8952
9128
 
8953
9129
# This macro actually does too much.  Some checks are only needed if
8954
9130
# your package does certain things.  But this isn't really a big deal.
8965
9141
# arguments mandatory, and then we can depend on a new Autoconf
8966
9142
# release and drop the old call support.
8967
9143
AC_DEFUN([AM_INIT_AUTOMAKE],
8968
 
[AC_PREREQ([2.60])dnl
 
9144
[AC_PREREQ([2.62])dnl
8969
9145
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
8970
9146
dnl the ones we care about.
8971
9147
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9016
9192
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9017
9193
AM_MISSING_PROG(AUTOHEADER, autoheader)
9018
9194
AM_MISSING_PROG(MAKEINFO, makeinfo)
9019
 
AM_PROG_INSTALL_SH
9020
 
AM_PROG_INSTALL_STRIP
 
9195
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9196
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9021
9197
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9022
9198
# We need awk for the "check" target.  The system "awk" is bad on
9023
9199
# some platforms.
9025
9201
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9026
9202
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9027
9203
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9028
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9029
 
                             [_AM_PROG_TAR([v7])])])
 
9204
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9205
                             [_AM_PROG_TAR([v7])])])
9030
9206
_AM_IF_OPTION([no-dependencies],,
9031
9207
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9032
 
                  [_AM_DEPENDENCIES(CC)],
9033
 
                  [define([AC_PROG_CC],
9034
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9208
                  [_AM_DEPENDENCIES(CC)],
 
9209
                  [define([AC_PROG_CC],
 
9210
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9035
9211
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9036
 
                  [_AM_DEPENDENCIES(CXX)],
9037
 
                  [define([AC_PROG_CXX],
9038
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9212
                  [_AM_DEPENDENCIES(CXX)],
 
9213
                  [define([AC_PROG_CXX],
 
9214
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9039
9215
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9040
 
                  [_AM_DEPENDENCIES(OBJC)],
9041
 
                  [define([AC_PROG_OBJC],
9042
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9043
 
])
9044
 
])
 
9216
                  [_AM_DEPENDENCIES(OBJC)],
 
9217
                  [define([AC_PROG_OBJC],
 
9218
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9219
])
 
9220
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
9221
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
9222
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
9223
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9224
AC_CONFIG_COMMANDS_PRE(dnl
 
9225
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
9226
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
9227
])
 
9228
 
 
9229
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9230
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
9231
dnl mangled by Autoconf and run in a shell conditional statement.
 
9232
m4_define([_AC_COMPILER_EXEEXT],
 
9233
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9045
9234
 
9046
9235
 
9047
9236
# When config.status generates a header, we must update the stamp-h file.
9065
9254
done
9066
9255
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9067
9256
 
9068
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9257
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9069
9258
#
9070
9259
# This file is free software; the Free Software Foundation
9071
9260
# gives unlimited permission to copy and/or distribute it,
9076
9265
# Define $install_sh.
9077
9266
AC_DEFUN([AM_PROG_INSTALL_SH],
9078
9267
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9079
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
9268
if test x"${install_sh}" != xset; then
 
9269
  case $am_aux_dir in
 
9270
  *\ * | *\     *)
 
9271
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
9272
  *)
 
9273
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
9274
  esac
 
9275
fi
9080
9276
AC_SUBST(install_sh)])
9081
9277
 
9082
9278
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9103
9299
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9104
9300
# From Jim Meyering
9105
9301
 
9106
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
9302
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9107
9303
# Free Software Foundation, Inc.
9108
9304
#
9109
9305
# This file is free software; the Free Software Foundation
9110
9306
# gives unlimited permission to copy and/or distribute it,
9111
9307
# with or without modifications, as long as this notice is preserved.
9112
9308
 
9113
 
# serial 4
 
9309
# serial 5
9114
9310
 
 
9311
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
9312
# ----------------------------------
 
9313
# Control maintainer-specific portions of Makefiles.
 
9314
# Default is to disable them, unless `enable' is passed literally.
 
9315
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
9316
# can override the default with the --enable/--disable switch.
9115
9317
AC_DEFUN([AM_MAINTAINER_MODE],
9116
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9117
 
  dnl maintainer-mode is disabled by default
9118
 
  AC_ARG_ENABLE(maintainer-mode,
9119
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
9318
[m4_case(m4_default([$1], [disable]),
 
9319
       [enable], [m4_define([am_maintainer_other], [disable])],
 
9320
       [disable], [m4_define([am_maintainer_other], [enable])],
 
9321
       [m4_define([am_maintainer_other], [enable])
 
9322
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
9323
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
9324
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
9325
  AC_ARG_ENABLE([maintainer-mode],
 
9326
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9120
9327
                          (and sometimes confusing) to the casual installer],
9121
 
      USE_MAINTAINER_MODE=$enableval,
9122
 
      USE_MAINTAINER_MODE=no)
 
9328
      [USE_MAINTAINER_MODE=$enableval],
 
9329
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9123
9330
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9124
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
9331
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9125
9332
  MAINT=$MAINTAINER_MODE_TRUE
9126
 
  AC_SUBST(MAINT)dnl
 
9333
  AC_SUBST([MAINT])dnl
9127
9334
]
9128
9335
)
9129
9336
 
9131
9338
 
9132
9339
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9133
9340
 
9134
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9341
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9135
9342
#
9136
9343
# This file is free software; the Free Software Foundation
9137
9344
# gives unlimited permission to copy and/or distribute it,
9138
9345
# with or without modifications, as long as this notice is preserved.
9139
9346
 
9140
 
# serial 3
 
9347
# serial 4
9141
9348
 
9142
9349
# AM_MAKE_INCLUDE()
9143
9350
# -----------------
9146
9353
[am_make=${MAKE-make}
9147
9354
cat > confinc << 'END'
9148
9355
am__doit:
9149
 
        @echo done
 
9356
        @echo this is the am__doit target
9150
9357
.PHONY: am__doit
9151
9358
END
9152
9359
# If we don't find an include directive, just comment out the code.
9156
9363
_am_result=none
9157
9364
# First try GNU make style include.
9158
9365
echo "include confinc" > confmf
9159
 
# We grep out `Entering directory' and `Leaving directory'
9160
 
# messages which can occur if `w' ends up in MAKEFLAGS.
9161
 
# In particular we don't look at `^make:' because GNU make might
9162
 
# be invoked under some other name (usually "gmake"), in which
9163
 
# case it prints its new name instead of `make'.
9164
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9165
 
   am__include=include
9166
 
   am__quote=
9167
 
   _am_result=GNU
9168
 
fi
 
9366
# Ignore all kinds of additional output from `make'.
 
9367
case `$am_make -s -f confmf 2> /dev/null` in #(
 
9368
*the\ am__doit\ target*)
 
9369
  am__include=include
 
9370
  am__quote=
 
9371
  _am_result=GNU
 
9372
  ;;
 
9373
esac
9169
9374
# Now try BSD make style include.
9170
9375
if test "$am__include" = "#"; then
9171
9376
   echo '.include "confinc"' > confmf
9172
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9173
 
      am__include=.include
9174
 
      am__quote="\""
9175
 
      _am_result=BSD
9176
 
   fi
 
9377
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
9378
   *the\ am__doit\ target*)
 
9379
     am__include=.include
 
9380
     am__quote="\""
 
9381
     _am_result=BSD
 
9382
     ;;
 
9383
   esac
9177
9384
fi
9178
9385
AC_SUBST([am__include])
9179
9386
AC_SUBST([am__quote])
9181
9388
rm -f confinc confmf
9182
9389
])
9183
9390
 
 
9391
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
9392
# Free Software Foundation, Inc.
 
9393
#
 
9394
# This file is free software; the Free Software Foundation
 
9395
# gives unlimited permission to copy and/or distribute it,
 
9396
# with or without modifications, as long as this notice is preserved.
 
9397
 
 
9398
# serial 6
 
9399
 
 
9400
# AM_PROG_CC_C_O
 
9401
# --------------
 
9402
# Like AC_PROG_CC_C_O, but changed for automake.
 
9403
AC_DEFUN([AM_PROG_CC_C_O],
 
9404
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
9405
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9406
AC_REQUIRE_AUX_FILE([compile])dnl
 
9407
# FIXME: we rely on the cache variable name because
 
9408
# there is no other way.
 
9409
set dummy $CC
 
9410
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
9411
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
9412
if test "$am_t" != yes; then
 
9413
   # Losing compiler, so override with the script.
 
9414
   # FIXME: It is wrong to rewrite CC.
 
9415
   # But if we don't then we get into trouble of one sort or another.
 
9416
   # A longer-term fix would be to have automake use am__CC in this case,
 
9417
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
9418
   CC="$am_aux_dir/compile $CC"
 
9419
fi
 
9420
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
9421
dnl setting of CC.
 
9422
m4_define([AC_PROG_CC],
 
9423
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
9424
])
 
9425
 
9184
9426
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9185
9427
 
9186
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
9428
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9187
9429
# Free Software Foundation, Inc.
9188
9430
#
9189
9431
# This file is free software; the Free Software Foundation
9190
9432
# gives unlimited permission to copy and/or distribute it,
9191
9433
# with or without modifications, as long as this notice is preserved.
9192
9434
 
9193
 
# serial 5
 
9435
# serial 6
9194
9436
 
9195
9437
# AM_MISSING_PROG(NAME, PROGRAM)
9196
9438
# ------------------------------
9207
9449
AC_DEFUN([AM_MISSING_HAS_RUN],
9208
9450
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9209
9451
AC_REQUIRE_AUX_FILE([missing])dnl
9210
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
9452
if test x"${MISSING+set}" != xset; then
 
9453
  case $am_aux_dir in
 
9454
  *\ * | *\     *)
 
9455
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
9456
  *)
 
9457
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
9458
  esac
 
9459
fi
9211
9460
# Use eval to expand $SHELL
9212
9461
if eval "$MISSING --run true"; then
9213
9462
  am_missing_run="$MISSING --run "
9245
9494
 
9246
9495
# Helper functions for option handling.                     -*- Autoconf -*-
9247
9496
 
9248
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9497
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9249
9498
#
9250
9499
# This file is free software; the Free Software Foundation
9251
9500
# gives unlimited permission to copy and/or distribute it,
9252
9501
# with or without modifications, as long as this notice is preserved.
9253
9502
 
9254
 
# serial 3
 
9503
# serial 4
9255
9504
 
9256
9505
# _AM_MANGLE_OPTION(NAME)
9257
9506
# -----------------------
9268
9517
# ----------------------------------
9269
9518
# OPTIONS is a space-separated list of Automake options.
9270
9519
AC_DEFUN([_AM_SET_OPTIONS],
9271
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9520
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9272
9521
 
9273
9522
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9274
9523
# -------------------------------------------
9278
9527
 
9279
9528
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9280
9529
 
9281
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
9530
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9282
9531
# Free Software Foundation, Inc.
9283
9532
#
9284
9533
# This file is free software; the Free Software Foundation
9285
9534
# gives unlimited permission to copy and/or distribute it,
9286
9535
# with or without modifications, as long as this notice is preserved.
9287
9536
 
9288
 
# serial 4
 
9537
# serial 5
9289
9538
 
9290
9539
# AM_SANITY_CHECK
9291
9540
# ---------------
9294
9543
# Just in case
9295
9544
sleep 1
9296
9545
echo timestamp > conftest.file
 
9546
# Reject unsafe characters in $srcdir or the absolute working directory
 
9547
# name.  Accept space and tab only in the latter.
 
9548
am_lf='
 
9549
'
 
9550
case `pwd` in
 
9551
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
9552
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
9553
esac
 
9554
case $srcdir in
 
9555
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
9556
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
9557
esac
 
9558
 
9297
9559
# Do `set' in a subshell so we don't clobber the current shell's
9298
9560
# arguments.  Must try -L first in case configure is actually a
9299
9561
# symlink; some systems play weird games with the mod time of symlinks
9300
9562
# (eg FreeBSD returns the mod time of the symlink's containing
9301
9563
# directory).
9302
9564
if (
9303
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
9565
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9304
9566
   if test "$[*]" = "X"; then
9305
9567
      # -L didn't work.
9306
 
      set X `ls -t $srcdir/configure conftest.file`
 
9568
      set X `ls -t "$srcdir/configure" conftest.file`
9307
9569
   fi
9308
9570
   rm -f conftest.file
9309
9571
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9328
9590
fi
9329
9591
AC_MSG_RESULT(yes)])
9330
9592
 
 
9593
# Copyright (C) 2009  Free Software Foundation, Inc.
 
9594
#
 
9595
# This file is free software; the Free Software Foundation
 
9596
# gives unlimited permission to copy and/or distribute it,
 
9597
# with or without modifications, as long as this notice is preserved.
 
9598
 
 
9599
# serial 1
 
9600
 
 
9601
# AM_SILENT_RULES([DEFAULT])
 
9602
# --------------------------
 
9603
# Enable less verbose build rules; with the default set to DEFAULT
 
9604
# (`yes' being less verbose, `no' or empty being verbose).
 
9605
AC_DEFUN([AM_SILENT_RULES],
 
9606
[AC_ARG_ENABLE([silent-rules],
 
9607
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
9608
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
9609
case $enable_silent_rules in
 
9610
yes) AM_DEFAULT_VERBOSITY=0;;
 
9611
no)  AM_DEFAULT_VERBOSITY=1;;
 
9612
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
9613
esac
 
9614
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
9615
AM_BACKSLASH='\'
 
9616
AC_SUBST([AM_BACKSLASH])dnl
 
9617
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
9618
])
 
9619
 
9331
9620
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9332
9621
#
9333
9622
# This file is free software; the Free Software Foundation
9356
9645
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9357
9646
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9358
9647
 
9359
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
9648
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
9360
9649
#
9361
9650
# This file is free software; the Free Software Foundation
9362
9651
# gives unlimited permission to copy and/or distribute it,
9363
9652
# with or without modifications, as long as this notice is preserved.
9364
9653
 
 
9654
# serial 2
 
9655
 
9365
9656
# _AM_SUBST_NOTMAKE(VARIABLE)
9366
9657
# ---------------------------
9367
9658
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9368
9659
# This macro is traced by Automake.
9369
9660
AC_DEFUN([_AM_SUBST_NOTMAKE])
9370
9661
 
 
9662
# AM_SUBST_NOTMAKE(VARIABLE)
 
9663
# ---------------------------
 
9664
# Public sister of _AM_SUBST_NOTMAKE.
 
9665
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
9666
 
9371
9667
# Check how to create a tarball.                            -*- Autoconf -*-
9372
9668
 
9373
9669
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9464
9760
AC_SUBST([am__untar])
9465
9761
]) # _AM_PROG_TAR
9466
9762
 
9467
 
dnl $Id: xdt-depends.m4 21591 2006-05-08 09:10:26Z benny $
 
9763
dnl $Id$
9468
9764
dnl
9469
9765
dnl Copyright (c) 2002-2006
9470
9766
dnl         The Xfce development team. All rights reserved.
9894
10190
])
9895
10191
 
9896
10192
 
9897
 
dnl $Id: xdt-features.m4 22990 2006-09-02 11:33:28Z benny $
 
10193
dnl $Id$
9898
10194
dnl
9899
10195
dnl Copyright (c) 2002-2006
9900
10196
dnl         The Xfce development team. All rights reserved.
9927
10223
AC_PREREQ([2.53])
9928
10224
 
9929
10225
 
9930
 
 
9931
 
dnl XDT_FEATURE_DEBUG()
 
10226
dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS)
 
10227
dnl
 
10228
dnl For each token in FLAGS, checks to be sure the compiler supports
 
10229
dnl the flag, and if so, adds each one to VAR.
 
10230
dnl
 
10231
AC_DEFUN([XDT_SUPPORTED_FLAGS],
 
10232
[
 
10233
  for flag in $2; do
 
10234
    AC_MSG_CHECKING([if $CC supports $flag])
 
10235
    saved_CFLAGS="$CFLAGS"
 
10236
    CFLAGS="$CFLAGS $flag"
 
10237
    AC_COMPILE_IFELSE([ ], [flag_supported=yes], [flag_supported=no])
 
10238
    CFLAGS="$saved_CFLAGS"
 
10239
    AC_MSG_RESULT([$flag_supported])
 
10240
 
 
10241
    if test "x$flag_supported" = "xyes"; then
 
10242
      $1="$$1 $flag"
 
10243
    fi
 
10244
  done
 
10245
])
 
10246
 
 
10247
 
 
10248
 
 
10249
dnl XDT_FEATURE_DEBUG(default_level=minimum)
9932
10250
dnl
9933
10251
AC_DEFUN([XDT_FEATURE_DEBUG],
9934
10252
[
 
10253
  dnl weird indentation to keep output indentation correct
9935
10254
  AC_ARG_ENABLE([debug],
9936
 
AC_HELP_STRING([--enable-debug[=yes|no|full]], [Build with debugging support])
9937
 
AC_HELP_STRING([--disable-debug], [Include no debugging support [default]]),
9938
 
  [], [enable_debug=no])
 
10255
                AC_HELP_STRING([--enable-debug@<:@=no|minimum|yes|full@:>@],
 
10256
                               [Build with debugging support @<:@default=m4_default([$1], [minimum])@:>@])
 
10257
AC_HELP_STRING([--disable-debug], [Include no debugging support]),
 
10258
                [enable_debug=$enableval], [enable_debug=m4_default([$1], [minimum])])
9939
10259
 
9940
10260
  AC_MSG_CHECKING([whether to build with debugging support])
9941
 
  if test x"$enable_debug" != x"no"; then
 
10261
  if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
9942
10262
    AC_DEFINE([DEBUG], [1], [Define for debugging support])
9943
10263
 
9944
 
    if test x"$GCC" = x"yes"; then
9945
 
      xdt_cv_additional_CFLAGS="-Wall"
9946
 
    fi
9947
 
    xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
 
10264
    xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \
 
10265
                              -Wall -Wextra \
 
10266
                              -Wno-missing-field-initializers \
 
10267
                              -Wno-unused-parameter -Wold-style-definition \
 
10268
                              -Wdeclaration-after-statement \
 
10269
                              -Wmissing-declarations -Wredundant-decls \
 
10270
                              -Wmissing-noreturn -Wshadow -Wpointer-arith \
 
10271
                              -Wcast-align -Wformat-security \
 
10272
                              -Winit-self -Wmissing-include-dirs -Wundef \
 
10273
                              -Wmissing-format-attribute -Wnested-externs \
 
10274
                              -fstack-protector"
 
10275
    CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
9948
10276
    
9949
10277
    if test x"$enable_debug" = x"full"; then
9950
10278
      AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
9951
 
      if test x"$GCC" = x"yes"; then
9952
 
        xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
9953
 
      fi
 
10279
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g3 -Werror"
 
10280
      CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
9954
10281
      AC_MSG_RESULT([full])
9955
10282
    else
9956
 
      if test x"$GCC" = x"yes"; then
9957
 
        xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
9958
 
      fi
 
10283
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g"
9959
10284
      AC_MSG_RESULT([yes])
9960
10285
    fi
9961
10286
 
9962
 
    CFLAGS="$CFLAGS $xdt_cv_additional_CFLAGS"
9963
 
    CXXFLAGS="$CXXFLAGS $xdt_cv_additional_CFLAGS"
 
10287
    XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS])
 
10288
 
 
10289
    ifelse([$CXX], , , [
 
10290
      dnl FIXME: should test on c++ compiler, but the following line causes
 
10291
      dnl        autoconf errors for projects that don't check for a
 
10292
      dnl        c++ compiler at all.
 
10293
      dnl AC_LANG_PUSH([C++])
 
10294
      dnl XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CFLAGS])
 
10295
      dnl AC_LANG_POP()
 
10296
      dnl        instead, just use supported_CFLAGS...
 
10297
      supported_CXXFLAGS="$supported_CFLAGS"
 
10298
    ])
 
10299
 
 
10300
    CFLAGS="$CFLAGS $supported_CFLAGS"
 
10301
    CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
9964
10302
  else
9965
 
    AC_MSG_RESULT([no])
9966
 
  fi
9967
 
])
9968
 
 
9969
 
 
 
10303
    CPPFLAGS="$CPPFLAGS -DNDEBUG"
 
10304
 
 
10305
    if test x"$enable_debug" = x"no"; then
 
10306
      CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
 
10307
      AC_MSG_RESULT([no])
 
10308
    else
 
10309
      AC_MSG_RESULT([minimum])
 
10310
    fi
 
10311
  fi
 
10312
])
 
10313
 
 
10314
 
 
10315
dnl XDT_FEATURE_VISIBILITY()
 
10316
dnl
 
10317
dnl Checks to see if the compiler supports the 'visibility' attribute
 
10318
dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS.  Also sets the
 
10319
dnl automake conditional HAVE_GNUC_VISIBILITY.
 
10320
dnl
 
10321
AC_DEFUN([XDT_FEATURE_VISIBILITY],
 
10322
[
 
10323
  AC_ARG_ENABLE([visibility],
 
10324
                AC_HELP_STRING([--disable-visibility],
 
10325
                               [Don't use ELF visibility attributes]),
 
10326
                [enable_visibility=$enableval], [enable_visibility=yes])
 
10327
  have_gnuc_visibility=no
 
10328
  if test "x$enable_visibility" != "xno"; then
 
10329
    XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter])
 
10330
    saved_CFLAGS="$CFLAGS"
 
10331
    CFLAGS="$CFLAGS $xdt_vis_test_cflags"
 
10332
    AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
 
10333
    AC_COMPILE_IFELSE(AC_LANG_SOURCE(
 
10334
    [
 
10335
      void test_default (void);
 
10336
      void test_hidden (void);
 
10337
 
 
10338
      void __attribute__ ((visibility("default"))) test_default (void) {}
 
10339
      void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
 
10340
 
 
10341
      int main (int argc, char **argv) {
 
10342
        test_default ();
 
10343
        test_hidden ();
 
10344
        return 0;
 
10345
      }
 
10346
    ]),
 
10347
    [
 
10348
      have_gnuc_visibility=yes
 
10349
      AC_MSG_RESULT([yes])
 
10350
    ],
 
10351
    [
 
10352
      AC_MSG_RESULT([no])
 
10353
    ])
 
10354
    CFLAGS="$saved_CFLAGS"
 
10355
  fi
 
10356
 
 
10357
  if test "x$have_gnuc_visibility" = "xyes"; then
 
10358
    CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
 
10359
    XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
 
10360
    CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
 
10361
  fi
 
10362
 
 
10363
  AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
 
10364
])
 
10365
 
 
10366
dnl XDT_FEATURE_LINKER_OPTS
 
10367
dnl
 
10368
dnl Checks for and enables any special linker optimizations.
 
10369
dnl
 
10370
AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
 
10371
[
 
10372
  AC_ARG_ENABLE([linker-opts],
 
10373
                AC_HELP_STRING([--disable-linker-opts],
 
10374
                               [Disable linker optimizations]),
 
10375
                [enable_linker_opts=$enableval], [enable_linker_opts=yes])
 
10376
 
 
10377
  if test "x$enable_linker_opts" != "xno"; then
 
10378
    AC_MSG_CHECKING([whether $LD accepts --as-needed])
 
10379
    case `$LD --as-needed -v 2>&1 </dev/null` in
 
10380
    *GNU* | *'with BFD'*)
 
10381
      LDFLAGS="$LDFLAGS -Wl,--as-needed"
 
10382
      AC_MSG_RESULT([yes])
 
10383
      ;;
 
10384
    *)
 
10385
      AC_MSG_RESULT([no])
 
10386
      ;;
 
10387
    esac
 
10388
    AC_MSG_CHECKING([whether $LD accepts -O1])
 
10389
    case `$LD -O1 -v 2>&1 </dev/null` in
 
10390
    *GNU* | *'with BFD'*)
 
10391
      LDFLAGS="$LDFLAGS -Wl,-O1"
 
10392
      AC_MSG_RESULT([yes])
 
10393
      ;;
 
10394
    *)
 
10395
      AC_MSG_RESULT([no])
 
10396
      ;;
 
10397
    esac
 
10398
  fi
 
10399
])
9970
10400
 
9971
10401
dnl BM_DEBUG_SUPPORT()
9972
10402
dnl
10046
10476
  fi
10047
10477
])
10048
10478
 
10049
 
dnl $Id: xdt-i18n.m4 24486 2007-01-15 17:47:49Z benny $
 
10479
dnl $Id$
10050
10480
dnl
10051
10481
dnl Copyright (c) 2002-2006
10052
10482
dnl         The Xfce development team. All rights reserved.