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 $< [$]@'
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)
529
529
# Check the gettext tools to make sure they are GNU
530
530
AC_PATH_PROG(XGETTEXT, xgettext)
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)])])
1017
1045
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1172
# Fix-up fallback echo if it was mangled by the above quoting rules.
1174
*'\\\[$]0 --fallback-echo"')dnl "
1175
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1179
1208
_LT_OUTPUT_LIBTOOL_INIT
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
1226
cat >$1 <<_ASEOF || lt_write_fail=1
1228
# Generated by $as_me.
1230
SHELL=\${CONFIG_SHELL-$SHELL}
1233
cat >>$1 <<\_ASEOF || lt_write_fail=1
1236
exec AS_MESSAGE_FD>&1
1238
test $lt_write_fail = 0 && chmod +x $1[]dnl
1239
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1566
1615
[lt_cv_ld_exported_symbols_list=no])
1567
1616
LDFLAGS="$save_LDFLAGS"
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;}
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;}
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
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
1638
cat conftest.err >&AS_MESSAGE_LOG_FD
1640
rm -f conftest.err libconftest.a conftest conftest.c
1641
rm -rf conftest.dSYM
1569
1643
case $host_os in
1570
1644
rhapsody* | darwin1.[[012]])
1571
1645
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
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\"`'
1693
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
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 ;;
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)])
1748
[m4_divert_text([M4SH-INIT], [$1
1749
])])# _LT_SHELL_INIT
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],
1680
# Check that we are running under the correct shell.
1681
SHELL=${CONFIG_SHELL-/bin/sh}
1685
# Remove one level of quotation (which was required for Make).
1686
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1760
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1761
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1762
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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
1769
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1772
# Use this function as a fallback that always works.
1773
func_fallback_echo ()
1775
eval 'cat <<_LTECHO_EOF
1779
ECHO='func_fallback_echo'
1782
# func_echo_all arg...
1783
# Invoke $ECHO with all args, space-separated.
1790
printf*) AC_MSG_RESULT([printf]) ;;
1791
print*) AC_MSG_RESULT([print -r]) ;;
1792
*) AC_MSG_RESULT([cat]) ;;
1690
ECHO=${lt_ECHO-echo}
1691
if test "X[$]1" = X--no-reexec; then
1692
# Discard the --no-reexec flag, and continue.
1694
elif test "X[$]1" = X--fallback-echo; then
1695
# Avoid inline document here, it may be left over
1697
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1698
# Yippee, $ECHO works!
1701
# Restart under the correct shell.
1702
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1705
if test "X[$]1" = X--fallback-echo; then
1706
# used as fallback echo
1714
# The HP-UX ksh and POSIX shell print the target directory to stdout
1716
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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
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'
1740
# So, first we look for a working echo in the user's PATH.
1742
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1743
for dir in $PATH /usr/ucb; do
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
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.
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
1769
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
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
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
1784
SHELL="$CONFIG_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"
1793
# maybe with a smaller string...
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
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+"[$]@"}
1809
# Oops. We lost completely, so just stick with echo.
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.
1821
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1822
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
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" )])])
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
2670
2669
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2671
2670
*) lt_awk_arg="/^libraries:/" ;;
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
2673
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2674
*) lt_sed_strip_eq="s,=/,/,g" ;;
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
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'`
2681
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2683
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2686
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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=
3079
3095
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3080
3096
shlibpath_var=LD_LIBRARY_PATH
3081
3097
shlibpath_overrides_runpath=no
3082
3099
# Some binutils ld are patched to set DT_RUNPATH
3083
save_LDFLAGS=$LDFLAGS
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
3100
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3101
[lt_cv_shlibpath_overrides_runpath=no
3102
save_LDFLAGS=$LDFLAGS
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
3112
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
3119
# Add ABI-specific directories to the system library path.
3120
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
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"
3104
3129
# We used to test for /lib/ld.so.1 and disable shared libraries on
4598
4672
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
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.
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'
4608
pgcc* | pgf77* | pgf90* | pgf95*)
4683
# icc used to be incompatible with GCC.
4684
# ICC 10 doesn't accept -KPIC any more.
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'
4690
# Lahey Fortran 8.1.
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'
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'
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'
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)=''
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,'
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)=''
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'
5439
5582
LDFLAGS="$save_LDFLAGS"
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'
5444
5587
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5445
5588
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
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'
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'
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'
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'
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'
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])
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),
5867
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5725
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5728
libobjs=conftest.$ac_objext
5730
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5731
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
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)
5741
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5743
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5745
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5747
cat conftest.err 1>&5
5750
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5869
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5872
libobjs=conftest.$ac_objext
5874
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5875
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
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)
5885
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5887
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5889
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5891
cat conftest.err 1>&5
5895
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
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'
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'
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
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])])])])])
8381
8514
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8439
8572
# Generated from ltversion.in.
8441
# serial 2976 ltversion.m4
8574
# serial 3175 ltversion.m4
8442
8575
# This file is part of GNU Libtool
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])
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)
8454
8587
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
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.
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.
8463
# serial 4 lt~obsolete.m4
8596
# serial 5 lt~obsolete.m4
8465
8598
# These exist entirely to fool aclocal when bootstrapping libtool.
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])])
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,
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.
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}
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
8861
9026
# Generate code to set up dependency tracking. -*- Autoconf -*-
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.
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.
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")`
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
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"
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 ;;
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")`
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
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"
8914
9090
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
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
9216
[_AM_DEPENDENCIES(OBJC)],
9217
[define([AC_PROG_OBJC],
9218
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
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
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])])
9047
9236
# When config.status generates a header, we must update the stamp-h file.
9103
9299
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9104
9300
# From Jim Meyering
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.
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.
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
9333
AC_SUBST([MAINT])dnl
9181
9388
rm -f confinc confmf
9391
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9392
# Free Software Foundation, Inc.
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.
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.
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"
9420
dnl Make sure AC_PROG_CC is never called again, or it will override our
9422
m4_define([AC_PROG_CC],
9423
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9184
9426
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
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.
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.
9195
9437
# AM_MISSING_PROG(NAME, PROGRAM)
9196
9438
# ------------------------------
9329
9591
AC_MSG_RESULT(yes)])
9593
# Copyright (C) 2009 Free Software Foundation, Inc.
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.
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]);;
9614
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9616
AC_SUBST([AM_BACKSLASH])dnl
9617
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9331
9620
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9333
9622
# This file is free software; the Free Software Foundation
9927
10223
AC_PREREQ([2.53])
9931
dnl XDT_FEATURE_DEBUG()
10226
dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS)
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.
10231
AC_DEFUN([XDT_SUPPORTED_FLAGS],
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])
10241
if test "x$flag_supported" = "xyes"; then
10249
dnl XDT_FEATURE_DEBUG(default_level=minimum)
9933
10251
AC_DEFUN([XDT_FEATURE_DEBUG],
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])])
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])
9944
if test x"$GCC" = x"yes"; then
9945
xdt_cv_additional_CFLAGS="-Wall"
9947
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
10264
xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \
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 \
10275
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
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"
10279
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g3 -Werror"
10280
CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
9954
10281
AC_MSG_RESULT([full])
9956
if test x"$GCC" = x"yes"; then
9957
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
10283
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g"
9959
10284
AC_MSG_RESULT([yes])
9962
CFLAGS="$CFLAGS $xdt_cv_additional_CFLAGS"
9963
CXXFLAGS="$CXXFLAGS $xdt_cv_additional_CFLAGS"
10287
XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS])
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])
10296
dnl instead, just use supported_CFLAGS...
10297
supported_CXXFLAGS="$supported_CFLAGS"
10300
CFLAGS="$CFLAGS $supported_CFLAGS"
10301
CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
10303
CPPFLAGS="$CPPFLAGS -DNDEBUG"
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])
10309
AC_MSG_RESULT([minimum])
10315
dnl XDT_FEATURE_VISIBILITY()
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.
10321
AC_DEFUN([XDT_FEATURE_VISIBILITY],
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(
10335
void test_default (void);
10336
void test_hidden (void);
10338
void __attribute__ ((visibility("default"))) test_default (void) {}
10339
void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
10341
int main (int argc, char **argv) {
10348
have_gnuc_visibility=yes
10349
AC_MSG_RESULT([yes])
10352
AC_MSG_RESULT([no])
10354
CFLAGS="$saved_CFLAGS"
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"
10363
AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
10366
dnl XDT_FEATURE_LINKER_OPTS
10368
dnl Checks for and enables any special linker optimizations.
10370
AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
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])
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])
10385
AC_MSG_RESULT([no])
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])
10395
AC_MSG_RESULT([no])
9971
10401
dnl BM_DEBUG_SUPPORT()