~ubuntu-branches/ubuntu/utopic/rhythmbox/utopic-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
898
898
 
899
899
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
900
900
 
901
 
ll## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-
902
901
 
903
 
dnl AC_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
904
 
# serial 1 AC_PROG_INTLTOOL
905
 
AC_DEFUN([AC_PROG_INTLTOOL],
 
902
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
903
# serial 2 IT_PROG_INTLTOOL
 
904
AC_DEFUN([IT_PROG_INTLTOOL],
906
905
[
907
906
 
908
907
if test -n "$1"; then
933
932
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@' 
934
933
       INTLTOOL_UI_RULE='%.ui:        %.ui.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 $< [$]@' 
935
934
      INTLTOOL_XML_RULE='%.xml:       %.xml.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 $< [$]@' 
 
935
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
936
936
      INTLTOOL_XAM_RULE='%.xam:       %.xml.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 $< [$]@' 
937
937
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
938
938
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
952
952
AC_SUBST(INTLTOOL_XAM_RULE)
953
953
AC_SUBST(INTLTOOL_KBD_RULE)
954
954
AC_SUBST(INTLTOOL_XML_RULE)
 
955
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
955
956
AC_SUBST(INTLTOOL_CAVES_RULE)
956
957
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
957
958
AC_SUBST(INTLTOOL_THEME_RULE)
982
983
   fi
983
984
fi
984
985
 
 
986
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
 
987
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
 
988
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
 
989
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
 
990
 
985
991
# Remove file type tags (using []) from po/POTFILES.
986
992
 
987
993
ifdef([AC_DIVERSION_ICMDS],[
988
994
  AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
989
 
      changequote(,)
990
 
      mv -f po/POTFILES po/POTFILES.tmp
991
 
      sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
995
     [mv -f po/POTFILES po/POTFILES.tmp
 
996
      sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
992
997
      rm -f po/POTFILES.tmp
993
 
      changequote([,])
 
998
     ]dnl
994
999
  AC_DIVERT_POP()
995
1000
],[
996
1001
  ifdef([AC_CONFIG_COMMANDS_PRE],[
997
1002
    AC_CONFIG_COMMANDS_PRE([
998
 
        changequote(,)
999
 
        mv -f po/POTFILES po/POTFILES.tmp
1000
 
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
1003
       [mv -f po/POTFILES po/POTFILES.tmp
 
1004
        sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
1001
1005
        rm -f po/POTFILES.tmp
1002
 
        changequote([,])
 
1006
       ]dnl
1003
1007
    ])
1004
1008
  ])
1005
1009
])
1006
1010
 
1007
1011
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
1008
1012
 
1009
 
AC_OUTPUT_COMMANDS([
1010
 
 
1011
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.out
 
1013
AC_CONFIG_COMMANDS([intltool], [
 
1014
 
 
1015
intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
 
1016
               -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
 
1017
               -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
 
1018
               -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
 
1019
               -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
 
1020
               -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
 
1021
 
 
1022
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
 
1023
  > intltool-extract.out
1012
1024
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
1013
1025
  rm -f intltool-extract.out
1014
1026
else
1017
1029
chmod ugo+x intltool-extract
1018
1030
chmod u+w intltool-extract
1019
1031
 
1020
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" \
1021
 
    < ${ac_aux_dir}/intltool-merge.in > intltool-merge.out
 
1032
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
 
1033
  > intltool-merge.out
1022
1034
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
1023
1035
  rm -f intltool-merge.out
1024
1036
else
1027
1039
chmod ugo+x intltool-merge
1028
1040
chmod u+w intltool-merge
1029
1041
 
1030
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-update.in > intltool-update.out
 
1042
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
 
1043
  > intltool-update.out
1031
1044
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
1032
1045
  rm -f intltool-update.out
1033
1046
else
1036
1049
chmod ugo+x intltool-update
1037
1050
chmod u+w intltool-update
1038
1051
 
1039
 
], INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir})
 
1052
], INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
 
1053
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
 
1054
MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
 
1055
XGETTEXT='${INTLTOOL_XGETTEXT}')
1040
1056
 
1041
1057
])
1042
1058
 
 
1059
# deprecated macros
 
1060
AC_DEFUN([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])
 
1061
 
 
1062
 
1043
1063
# isc-posix.m4 serial 2 (gettext-0.11.2)
1044
1064
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1045
 
dnl This file is free software, distributed under the terms of the GNU
1046
 
dnl General Public License.  As a special exception to the GNU General
1047
 
dnl Public License, this file may be distributed as part of a program
1048
 
dnl that contains a configuration script generated by Autoconf, under
1049
 
dnl the same distribution terms as the rest of that program.
 
1065
dnl This file is free software; the Free Software Foundation
 
1066
dnl gives unlimited permission to copy and/or distribute it,
 
1067
dnl with or without modifications, as long as this notice is preserved.
1050
1068
 
1051
1069
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
1052
1070
 
1069
1087
 
1070
1088
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1071
1089
 
1072
 
# serial 47 AC_PROG_LIBTOOL
 
1090
# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
1073
1091
 
1074
1092
 
1075
1093
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1179
1197
 
1180
1198
# Sed substitution that helps us do robust quoting.  It backslashifies
1181
1199
# metacharacters that are still active within double-quoted strings.
1182
 
Xsed='sed -e s/^X//'
 
1200
Xsed='sed -e 1s/^X//'
1183
1201
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1184
1202
 
1185
1203
# Same as above, but do not quote variable references.
1199
1217
default_ofile=libtool
1200
1218
can_build_shared=yes
1201
1219
 
1202
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
1220
# All known linkers require a `.a' archive for static linking (except MSVC,
1203
1221
# which needs '.lib').
1204
1222
libext=a
1205
1223
ltmain="$ac_aux_dir/ltmain.sh"
1247
1265
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1248
1266
fi
1249
1267
 
 
1268
_LT_CC_BASENAME([$compiler])
 
1269
 
1250
1270
# Only perform the check for file, if the check method requires it
1251
1271
case $deplibs_check_method in
1252
1272
file_magic*)
1292
1312
])# _LT_AC_SYS_COMPILER
1293
1313
 
1294
1314
 
 
1315
# _LT_CC_BASENAME(CC)
 
1316
# -------------------
 
1317
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1318
AC_DEFUN([_LT_CC_BASENAME],
 
1319
[for cc_temp in $1""; do
 
1320
  case $cc_temp in
 
1321
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1322
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1323
    \-*) ;;
 
1324
    *) break;;
 
1325
  esac
 
1326
done
 
1327
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1328
])
 
1329
 
 
1330
 
 
1331
# _LT_COMPILER_BOILERPLATE
 
1332
# ------------------------
 
1333
# Check for compiler boilerplate output or warnings with
 
1334
# the simple compiler test code.
 
1335
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
1336
[ac_outfile=conftest.$ac_objext
 
1337
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1338
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
1339
_lt_compiler_boilerplate=`cat conftest.err`
 
1340
$rm conftest*
 
1341
])# _LT_COMPILER_BOILERPLATE
 
1342
 
 
1343
 
 
1344
# _LT_LINKER_BOILERPLATE
 
1345
# ----------------------
 
1346
# Check for linker boilerplate output or warnings with
 
1347
# the simple link test code.
 
1348
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
1349
[ac_outfile=conftest.$ac_objext
 
1350
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1351
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
1352
_lt_linker_boilerplate=`cat conftest.err`
 
1353
$rm conftest*
 
1354
])# _LT_LINKER_BOILERPLATE
 
1355
 
 
1356
 
1295
1357
# _LT_AC_SYS_LIBPATH_AIX
1296
1358
# ----------------------
1297
1359
# Links a minimal program and checks the executable
1364
1426
 
1365
1427
# The HP-UX ksh and POSIX shell print the target directory to stdout
1366
1428
# if CDPATH is set.
1367
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
1429
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1368
1430
 
1369
1431
if test -z "$ECHO"; then
1370
1432
if test "X${echo_test_string+set}" != Xset; then
1371
1433
# find a string as large as possible, as long as the shell can cope with it
1372
1434
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1373
1435
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1374
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1375
 
       echo_test_string="`eval $cmd`" &&
 
1436
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1437
       echo_test_string=`eval $cmd` &&
1376
1438
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1377
1439
    then
1378
1440
      break
1541
1603
  # Find out which ABI we are using.
1542
1604
  echo 'int i;' > conftest.$ac_ext
1543
1605
  if AC_TRY_EVAL(ac_compile); then
1544
 
    case "`/usr/bin/file conftest.o`" in
 
1606
    case `/usr/bin/file conftest.o` in
1545
1607
    *32-bit*)
1546
1608
      case $host in
1547
1609
        x86_64-*linux*)
1623
1685
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1624
1686
   # The option is referenced via a variable to avoid confusing sed.
1625
1687
   lt_compile=`echo "$ac_compile" | $SED \
1626
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1688
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1627
1689
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1628
1690
   -e 's:$: $lt_compiler_flag:'`
1629
1691
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1633
1695
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1634
1696
   if (exit $ac_status) && test -s "$ac_outfile"; then
1635
1697
     # The compiler can only warn and ignore the option if not recognized
1636
 
     # So say no if there are warnings
1637
 
     if test ! -s conftest.err; then
 
1698
     # So say no if there are warnings other than the usual output.
 
1699
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
1700
     $SED '/^$/d' conftest.err >conftest.er2
 
1701
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1638
1702
       $2=yes
1639
1703
     fi
1640
1704
   fi
1660
1724
   LDFLAGS="$LDFLAGS $3"
1661
1725
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1662
1726
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1663
 
     # The compiler can only warn and ignore the option if not recognized
 
1727
     # The linker can only warn and ignore the option if not recognized
1664
1728
     # So say no if there are warnings
1665
1729
     if test -s conftest.err; then
1666
1730
       # Append any errors to the config.log.
1667
1731
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
1732
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
1733
       $SED '/^$/d' conftest.err >conftest.er2
 
1734
       if diff conftest.exp conftest.er2 >/dev/null; then
 
1735
         $2=yes
 
1736
       fi
1668
1737
     else
1669
1738
       $2=yes
1670
1739
     fi
1723
1792
    lt_cv_sys_max_cmd_len=8192;
1724
1793
    ;;
1725
1794
 
1726
 
 *)
 
1795
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
1796
    # This has been around since 386BSD, at least.  Likely further.
 
1797
    if test -x /sbin/sysctl; then
 
1798
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
1799
    elif test -x /usr/sbin/sysctl; then
 
1800
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
1801
    else
 
1802
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
1803
    fi
 
1804
    # And add a safety zone
 
1805
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1806
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1807
    ;;
 
1808
  osf*)
 
1809
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
1810
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
1811
    # nice to cause kernel panics so lets avoid the loop below.
 
1812
    # First set a reasonable default.
 
1813
    lt_cv_sys_max_cmd_len=16384
 
1814
    #
 
1815
    if test -x /sbin/sysconfig; then
 
1816
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
1817
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
1818
      esac
 
1819
    fi
 
1820
    ;;
 
1821
  *)
1727
1822
    # If test is not a shell built-in, we'll probably end up computing a
1728
1823
    # maximum length that is only half of the actual maximum length, but
1729
1824
    # we can't tell.
1730
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1825
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1826
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1731
1827
               = "XX$teststring") >/dev/null 2>&1 &&
1732
1828
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1733
1829
            lt_cv_sys_max_cmd_len=$new_result &&
1832
1928
}]
1833
1929
EOF
1834
1930
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1835
 
    (./conftest; exit; ) 2>/dev/null
 
1931
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1836
1932
    lt_status=$?
1837
1933
    case x$lt_status in
1838
1934
      x$lt_dlno_uscore) $1 ;;
1981
2077
   # Note that $ac_compile itself does not contain backslashes and begins
1982
2078
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1983
2079
   lt_compile=`echo "$ac_compile" | $SED \
1984
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
2080
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1985
2081
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1986
2082
   -e 's:$: $lt_compiler_flag:'`
1987
2083
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1993
2089
   then
1994
2090
     # The compiler can only warn and ignore the option if not recognized
1995
2091
     # So say no if there are warnings
1996
 
     if test ! -s out/conftest.err; then
 
2092
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
2093
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
2094
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1997
2095
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1998
2096
     fi
1999
2097
   fi
2000
 
   chmod u+w .
 
2098
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2001
2099
   $rm conftest*
2002
2100
   # SGI C++ compiler will create directory out/ii_files/ for
2003
2101
   # template instantiation
2061
2159
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2062
2160
_LT_AC_TAGVAR(hardcode_action, $1)=
2063
2161
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2064
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2065
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
2162
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
2163
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2066
2164
 
2067
2165
  # We can hardcode non-existant directories.
2068
2166
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2229
2327
  shlibpath_var=LIBRARY_PATH
2230
2328
  ;;
2231
2329
 
2232
 
bsdi4*)
 
2330
bsdi[[45]]*)
2233
2331
  version_type=linux
2234
2332
  need_version=no
2235
2333
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2257
2355
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2258
2356
      dldir=$destdir/`dirname \$dlpath`~
2259
2357
      test -d \$dldir || mkdir -p \$dldir~
2260
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2358
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2359
      chmod a+x \$dldir/$dlname'
2261
2360
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2262
2361
      dlpath=$dir/\$dldll~
2263
2362
       $rm \$dlpath'
2287
2386
      ;;
2288
2387
    pw32*)
2289
2388
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2290
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
2389
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2291
2390
      ;;
2292
2391
    esac
2293
2392
    ;;
2310
2409
  soname_spec='${libname}${release}${major}$shared_ext'
2311
2410
  shlibpath_overrides_runpath=yes
2312
2411
  shlibpath_var=DYLD_LIBRARY_PATH
2313
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
2412
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2314
2413
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2315
2414
  if test "$GCC" = yes; then
2316
2415
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2345
2444
  dynamic_linker='GNU ld.so'
2346
2445
  ;;
2347
2446
 
2348
 
freebsd*)
2349
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
2447
freebsd* | dragonfly*)
 
2448
  # DragonFly does not have aout.  When/if they implement a new
 
2449
  # versioning mechanism, adjust this.
 
2450
  if test -x /usr/bin/objformat; then
 
2451
    objformat=`/usr/bin/objformat`
 
2452
  else
 
2453
    case $host_os in
 
2454
    freebsd[[123]]*) objformat=aout ;;
 
2455
    *) objformat=elf ;;
 
2456
    esac
 
2457
  fi
2350
2458
  version_type=freebsd-$objformat
2351
2459
  case $version_type in
2352
2460
    freebsd-elf*)
2364
2472
  freebsd2*)
2365
2473
    shlibpath_overrides_runpath=yes
2366
2474
    ;;
2367
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
2475
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2368
2476
    shlibpath_overrides_runpath=yes
2369
2477
    hardcode_into_libs=yes
2370
2478
    ;;
2391
2499
  version_type=sunos
2392
2500
  need_lib_prefix=no
2393
2501
  need_version=no
2394
 
  case "$host_cpu" in
 
2502
  case $host_cpu in
2395
2503
  ia64*)
2396
2504
    shrext_cmds='.so'
2397
2505
    hardcode_into_libs=yes
2488
2596
  # before this can be enabled.
2489
2597
  hardcode_into_libs=yes
2490
2598
 
2491
 
  # find out which ABI we are using
2492
 
  libsuff=
2493
 
  case "$host_cpu" in
2494
 
  x86_64*|s390x*|powerpc64*)
2495
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2496
 
    if AC_TRY_EVAL(ac_compile); then
2497
 
      case `/usr/bin/file conftest.$ac_objext` in
2498
 
      *64-bit*)
2499
 
        libsuff=64
2500
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2501
 
        ;;
2502
 
      esac
2503
 
    fi
2504
 
    rm -rf conftest*
2505
 
    ;;
2506
 
  esac
2507
 
 
2508
2599
  # Append ld.so.conf contents to the search path
2509
2600
  if test -f /etc/ld.so.conf; then
2510
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2511
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
2601
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
2602
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2512
2603
  fi
2513
2604
 
2514
2605
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2520
2611
  dynamic_linker='GNU/Linux ld.so'
2521
2612
  ;;
2522
2613
 
 
2614
netbsdelf*-gnu)
 
2615
  version_type=linux
 
2616
  need_lib_prefix=no
 
2617
  need_version=no
 
2618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2619
  soname_spec='${libname}${release}${shared_ext}$major'
 
2620
  shlibpath_var=LD_LIBRARY_PATH
 
2621
  shlibpath_overrides_runpath=no
 
2622
  hardcode_into_libs=yes
 
2623
  dynamic_linker='NetBSD ld.elf_so'
 
2624
  ;;
 
2625
 
2523
2626
knetbsd*-gnu)
2524
2627
  version_type=linux
2525
2628
  need_lib_prefix=no
2570
2673
openbsd*)
2571
2674
  version_type=sunos
2572
2675
  need_lib_prefix=no
2573
 
  need_version=yes
 
2676
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
2677
  case $host_os in
 
2678
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2679
    *)                         need_version=no  ;;
 
2680
  esac
2574
2681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2575
2682
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2576
2683
  shlibpath_var=LD_LIBRARY_PATH
2736
2843
 
2737
2844
      case $tagname in
2738
2845
      CXX)
2739
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
2846
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2847
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2848
            (test "X$CXX" != "Xg++"))) ; then
2740
2849
          AC_LIBTOOL_LANG_CXX_CONFIG
2741
2850
        else
2742
2851
          tagname=""
2798
2907
 
2799
2908
# AC_LIBTOOL_WIN32_DLL
2800
2909
# --------------------
2801
 
# declare package support for building win32 dll's
 
2910
# declare package support for building win32 DLLs
2802
2911
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2803
2912
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2804
2913
])# AC_LIBTOOL_WIN32_DLL
2972
3081
      if test -n "$file_magic_test_file"; then
2973
3082
        case $deplibs_check_method in
2974
3083
        "file_magic "*)
2975
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
3084
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2976
3085
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2977
3086
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2978
3087
            $EGREP "$file_magic_regex" > /dev/null; then
3082
3191
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3083
3192
      lt_cv_path_LD="$ac_dir/$ac_prog"
3084
3193
      # Check to see if the program is GNU ld.  I'd rather use --version,
3085
 
      # but apparently some GNU ld's only accept -v.
 
3194
      # but apparently some variants of GNU ld only accept -v.
3086
3195
      # Break only if it was the GNU/non-GNU ld that we prefer.
3087
3196
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3088
3197
      *GNU* | *'with BFD'*)
3114
3223
AC_DEFUN([AC_PROG_LD_GNU],
3115
3224
[AC_REQUIRE([AC_PROG_EGREP])dnl
3116
3225
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3117
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3226
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3118
3227
case `$LD -v 2>&1 </dev/null` in
3119
3228
*GNU* | *'with BFD'*)
3120
3229
  lt_cv_prog_gnu_ld=yes
3141
3250
*) reload_flag=" $reload_flag" ;;
3142
3251
esac
3143
3252
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3253
case $host_os in
 
3254
  darwin*)
 
3255
    if test "$GCC" = yes; then
 
3256
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3257
    else
 
3258
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3259
    fi
 
3260
    ;;
 
3261
esac
3144
3262
])# AC_PROG_LD_RELOAD_FLAG
3145
3263
 
3146
3264
 
3174
3292
  lt_cv_deplibs_check_method=pass_all
3175
3293
  ;;
3176
3294
 
3177
 
bsdi4*)
 
3295
bsdi[[45]]*)
3178
3296
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3179
3297
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3180
3298
  lt_cv_file_magic_test_file=/shlib/libc.so
3197
3315
  lt_cv_deplibs_check_method=pass_all
3198
3316
  ;;
3199
3317
 
3200
 
freebsd* | kfreebsd*-gnu)
 
3318
freebsd* | kfreebsd*-gnu | dragonfly*)
3201
3319
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3202
3320
    case $host_cpu in
3203
3321
    i*86 )
3204
3322
      # Not sure whether the presence of OpenBSD here was a mistake.
3205
3323
      # Let's accept both of them until this is cleared up.
3206
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
3324
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3207
3325
      lt_cv_file_magic_cmd=/usr/bin/file
3208
3326
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3209
3327
      ;;
3219
3337
 
3220
3338
hpux10.20* | hpux11*)
3221
3339
  lt_cv_file_magic_cmd=/usr/bin/file
3222
 
  case "$host_cpu" in
 
3340
  case $host_cpu in
3223
3341
  ia64*)
3224
3342
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3225
3343
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3247
3365
 
3248
3366
# This must be Linux ELF.
3249
3367
linux*)
3250
 
  case $host_cpu in
3251
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3252
 
    lt_cv_deplibs_check_method=pass_all ;;
3253
 
  *)
3254
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3255
 
    # this will be overridden with pass_all, but let us keep it just in case
3256
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3257
 
  esac
3258
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3259
3368
  lt_cv_deplibs_check_method=pass_all
3260
3369
  ;;
3261
3370
 
3262
 
netbsd*)
 
3371
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3263
3372
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3264
3373
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3265
3374
  else
3278
3387
  ;;
3279
3388
 
3280
3389
openbsd*)
3281
 
  lt_cv_file_magic_cmd=/usr/bin/file
3282
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3283
3390
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3284
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
3391
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3285
3392
  else
3286
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3393
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3287
3394
  fi
3288
3395
  ;;
3289
3396
 
3404
3511
# -----------------------------------
3405
3512
# sets LIBLTDL to the link flags for the libltdl convenience library and
3406
3513
# LTDLINCL to the include flags for the libltdl header and adds
3407
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3408
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3409
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3410
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3411
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3412
 
# flat and you're not using automake, define top_builddir and
3413
 
# top_srcdir appropriately in the Makefiles.
 
3514
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3515
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3516
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3517
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3518
# (note the single quotes!).  If your package is not flat and you're not
 
3519
# using automake, define top_builddir and top_srcdir appropriately in
 
3520
# the Makefiles.
3414
3521
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3415
3522
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3416
3523
  case $enable_ltdl_convenience in
3429
3536
# -----------------------------------
3430
3537
# sets LIBLTDL to the link flags for the libltdl installable library and
3431
3538
# LTDLINCL to the include flags for the libltdl header and adds
3432
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3433
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3434
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3435
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3436
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3437
 
# quotes!).  If your package is not flat and you're not using automake,
3438
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
3539
# --enable-ltdl-install to the configure arguments.  Note that
 
3540
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3541
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3542
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3543
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3544
# flat and you're not using automake, define top_builddir and top_srcdir
 
3545
# appropriately in the Makefiles.
3439
3546
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3440
3547
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3441
3548
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3473
3580
# ---------------
3474
3581
AC_DEFUN([_LT_AC_LANG_CXX],
3475
3582
[AC_REQUIRE([AC_PROG_CXX])
3476
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
3583
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3477
3584
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3478
3585
])# _LT_AC_LANG_CXX
3479
3586
 
 
3587
# _LT_AC_PROG_CXXCPP
 
3588
# ---------------
 
3589
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3590
[
 
3591
AC_REQUIRE([AC_PROG_CXX])
 
3592
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3593
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3594
    (test "X$CXX" != "Xg++"))) ; then
 
3595
  AC_PROG_CXXCPP
 
3596
fi
 
3597
])# _LT_AC_PROG_CXXCPP
3480
3598
 
3481
3599
# AC_LIBTOOL_F77
3482
3600
# --------------
3549
3667
 
3550
3668
_LT_AC_SYS_COMPILER
3551
3669
 
 
3670
# save warnings/boilerplate of simple test code
 
3671
_LT_COMPILER_BOILERPLATE
 
3672
_LT_LINKER_BOILERPLATE
 
3673
 
3552
3674
#
3553
3675
# Check for any special shared library compilation flags.
3554
3676
#
3599
3721
 
3600
3722
# On AIX, shared libraries and static libraries use the same namespace, and
3601
3723
# are all built from PIC.
3602
 
case "$host_os" in
 
3724
case $host_os in
3603
3725
aix3*)
3604
3726
  test "$enable_shared" = yes && enable_static=no
3605
3727
  if test -n "$RANLIB"; then
3612
3734
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3613
3735
    test "$enable_shared" = yes && enable_static=no
3614
3736
  fi
3615
 
  ;;
3616
 
  darwin* | rhapsody*)
3617
 
  if test "$GCC" = yes; then
3618
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3619
 
    case "$host_os" in
3620
 
    rhapsody* | darwin1.[[012]])
3621
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3622
 
      ;;
3623
 
    *) # Darwin 1.3 on
3624
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3625
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3626
 
      else
3627
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3628
 
          10.[[012]])
3629
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3630
 
            ;;
3631
 
          10.*)
3632
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3633
 
            ;;
3634
 
        esac
3635
 
      fi
3636
 
      ;;
3637
 
    esac
3638
 
    output_verbose_link_cmd='echo'
3639
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3640
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3641
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3642
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3643
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3644
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3645
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3646
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3647
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3648
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3649
 
  else
3650
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3651
 
  fi
3652
3737
    ;;
3653
3738
esac
3654
3739
AC_MSG_RESULT([$enable_shared])
3674
3759
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3675
3760
[AC_LANG_PUSH(C++)
3676
3761
AC_REQUIRE([AC_PROG_CXX])
3677
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
3762
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3678
3763
 
3679
3764
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3680
3765
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3703
3788
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3704
3789
 
3705
3790
# Source file extension for C++ test sources.
3706
 
ac_ext=cc
 
3791
ac_ext=cpp
3707
3792
 
3708
3793
# Object file extension for compiled C++ test sources.
3709
3794
objext=o
3718
3803
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3719
3804
_LT_AC_SYS_COMPILER
3720
3805
 
 
3806
# save warnings/boilerplate of simple test code
 
3807
_LT_COMPILER_BOILERPLATE
 
3808
_LT_LINKER_BOILERPLATE
 
3809
 
3721
3810
# Allow CC to be a program name with arguments.
3722
3811
lt_save_CC=$CC
3723
3812
lt_save_LD=$LD
3739
3828
CC=${CXX-"c++"}
3740
3829
compiler=$CC
3741
3830
_LT_AC_TAGVAR(compiler, $1)=$CC
3742
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3831
_LT_CC_BASENAME([$compiler])
3743
3832
 
3744
3833
# We don't want -fno-exception wen compiling C++ code, so set the
3745
3834
# no_builtin_flag separately
3846
3935
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3847
3936
 
3848
3937
    if test "$GXX" = yes; then
3849
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
3938
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3850
3939
      # We only want to do this on AIX 4.2 and lower, the check
3851
3940
      # below for broken collect2 doesn't work under 4.3+
3852
3941
        collect2name=`${CC} -print-prog-name=collect2`
3867
3956
        fi
3868
3957
      esac
3869
3958
      shared_flag='-shared'
 
3959
      if test "$aix_use_runtimelinking" = yes; then
 
3960
        shared_flag="$shared_flag "'${wl}-G'
 
3961
      fi
3870
3962
    else
3871
3963
      # not using gcc
3872
3964
      if test "$host_cpu" = ia64; then
3912
4004
        # Exported symbols can be pulled into shared objects from archives
3913
4005
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3914
4006
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3915
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
4007
        # This is similar to how AIX traditionally builds its shared libraries.
3916
4008
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3917
4009
      fi
3918
4010
    fi
3926
4018
    esac
3927
4019
    ;;
3928
4020
 
 
4021
 
3929
4022
  cygwin* | mingw* | pw32*)
3930
4023
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3931
4024
    # as there is no search path for DLLs.
3949
4042
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3950
4043
    fi
3951
4044
  ;;
3952
 
 
3953
 
  darwin* | rhapsody*)
3954
 
  if test "$GXX" = yes; then
3955
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3956
 
    case "$host_os" in
3957
 
    rhapsody* | darwin1.[[012]])
3958
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3959
 
      ;;
3960
 
    *) # Darwin 1.3 on
3961
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3962
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3963
 
      else
3964
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3965
 
          10.[[012]])
3966
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3967
 
            ;;
3968
 
          10.*)
3969
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3970
 
            ;;
 
4045
      darwin* | rhapsody*)
 
4046
        case $host_os in
 
4047
        rhapsody* | darwin1.[[012]])
 
4048
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
4049
         ;;
 
4050
       *) # Darwin 1.3 on
 
4051
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
4052
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4053
         else
 
4054
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
4055
             10.[[012]])
 
4056
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4057
               ;;
 
4058
             10.*)
 
4059
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
4060
               ;;
 
4061
           esac
 
4062
         fi
 
4063
         ;;
3971
4064
        esac
3972
 
      fi
3973
 
      ;;
3974
 
    esac
3975
 
    lt_int_apple_cc_single_mod=no
3976
 
    output_verbose_link_cmd='echo'
3977
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3978
 
      lt_int_apple_cc_single_mod=yes
3979
 
    fi
3980
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3981
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3982
 
    else
3983
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3984
 
    fi
3985
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4065
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4066
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4067
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
4068
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4069
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
4070
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3986
4071
 
3987
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3988
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3989
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3990
 
    else
3991
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3992
 
    fi
3993
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3994
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3995
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3996
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3997
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3998
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3999
 
  else
4000
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4001
 
  fi
4002
 
    ;;
 
4072
    if test "$GXX" = yes ; then
 
4073
      lt_int_apple_cc_single_mod=no
 
4074
      output_verbose_link_cmd='echo'
 
4075
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
4076
       lt_int_apple_cc_single_mod=yes
 
4077
      fi
 
4078
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4079
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4080
      else
 
4081
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4082
        fi
 
4083
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4084
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4085
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4086
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4087
          else
 
4088
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4089
          fi
 
4090
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4091
      else
 
4092
      case $cc_basename in
 
4093
        xlc*)
 
4094
         output_verbose_link_cmd='echo'
 
4095
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
4096
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4097
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4098
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4099
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4100
          ;;
 
4101
       *)
 
4102
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4103
          ;;
 
4104
      esac
 
4105
      fi
 
4106
        ;;
4003
4107
 
4004
4108
  dgux*)
4005
4109
    case $cc_basename in
4006
 
      ec++)
 
4110
      ec++*)
4007
4111
        # FIXME: insert proper C++ library support
4008
4112
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4009
4113
        ;;
4010
 
      ghcx)
 
4114
      ghcx*)
4011
4115
        # Green Hills C++ Compiler
4012
4116
        # FIXME: insert proper C++ library support
4013
4117
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4018
4122
        ;;
4019
4123
    esac
4020
4124
    ;;
4021
 
  freebsd[12]*)
 
4125
  freebsd[[12]]*)
4022
4126
    # C++ shared libraries reported to be fairly broken before switch to ELF
4023
4127
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4024
4128
    ;;
4025
4129
  freebsd-elf*)
4026
4130
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4027
4131
    ;;
4028
 
  freebsd* | kfreebsd*-gnu)
 
4132
  freebsd* | kfreebsd*-gnu | dragonfly*)
4029
4133
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4030
4134
    # conventions
4031
4135
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4042
4146
                                # location of the library.
4043
4147
 
4044
4148
    case $cc_basename in
4045
 
    CC)
 
4149
    CC*)
4046
4150
      # FIXME: insert proper C++ library support
4047
4151
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4048
4152
      ;;
4049
 
    aCC)
 
4153
    aCC*)
4050
4154
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4051
4155
      # Commands to make compiler produce verbose output that lists
4052
4156
      # what "hidden" libraries, object files and flags are used when
4056
4160
      # explicitly linking system object files so we need to strip them
4057
4161
      # from the output so that they don't get included in the library
4058
4162
      # dependencies.
4059
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4163
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4060
4164
      ;;
4061
4165
    *)
4062
4166
      if test "$GXX" = yes; then
4070
4174
    ;;
4071
4175
  hpux10*|hpux11*)
4072
4176
    if test $with_gnu_ld = no; then
4073
 
      case "$host_cpu" in
 
4177
      case $host_cpu in
4074
4178
      hppa*64*)
4075
4179
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4076
4180
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4086
4190
        ;;
4087
4191
      esac
4088
4192
    fi
4089
 
    case "$host_cpu" in
 
4193
    case $host_cpu in
4090
4194
    hppa*64*)
4091
4195
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4092
4196
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4107
4211
    esac
4108
4212
 
4109
4213
    case $cc_basename in
4110
 
      CC)
 
4214
      CC*)
4111
4215
        # FIXME: insert proper C++ library support
4112
4216
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4113
4217
        ;;
4114
 
      aCC)
4115
 
        case "$host_cpu" in
 
4218
      aCC*)
 
4219
        case $host_cpu in
4116
4220
        hppa*64*|ia64*)
4117
4221
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4118
4222
          ;;
4133
4237
      *)
4134
4238
        if test "$GXX" = yes; then
4135
4239
          if test $with_gnu_ld = no; then
4136
 
            case "$host_cpu" in
 
4240
            case $host_cpu in
4137
4241
            ia64*|hppa*64*)
4138
4242
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4139
4243
              ;;
4151
4255
    ;;
4152
4256
  irix5* | irix6*)
4153
4257
    case $cc_basename in
4154
 
      CC)
 
4258
      CC*)
4155
4259
        # SGI C++
4156
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4260
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4157
4261
 
4158
4262
        # Archives containing C++ object files must be created using
4159
4263
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4164
4268
      *)
4165
4269
        if test "$GXX" = yes; then
4166
4270
          if test "$with_gnu_ld" = no; then
4167
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4271
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4168
4272
          else
4169
4273
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4170
4274
          fi
4177
4281
    ;;
4178
4282
  linux*)
4179
4283
    case $cc_basename in
4180
 
      KCC)
 
4284
      KCC*)
4181
4285
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4182
4286
 
4183
4287
        # KCC will only create a shared library if the output file
4202
4306
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4203
4307
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4204
4308
        ;;
4205
 
      icpc)
 
4309
      icpc*)
4206
4310
        # Intel C++
4207
4311
        with_gnu_ld=yes
 
4312
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4313
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4314
        # earlier do not add the objects themselves.
 
4315
        case `$CC -V 2>&1` in
 
4316
        *"Version 7."*)
 
4317
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4318
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4319
          ;;
 
4320
        *)  # Version 8.0 or newer
 
4321
          tmp_idyn=
 
4322
          case $host_cpu in
 
4323
            ia64*) tmp_idyn=' -i_dynamic';;
 
4324
          esac
 
4325
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4326
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4327
          ;;
 
4328
        esac
4208
4329
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4209
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4210
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4211
4330
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4212
4331
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4213
4332
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4214
4333
        ;;
4215
 
      cxx)
 
4334
      pgCC*)
 
4335
        # Portland Group C++ compiler
 
4336
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4337
        _LT_AC_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'
 
4338
 
 
4339
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4340
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4341
        _LT_AC_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'
 
4342
        ;;
 
4343
      cxx*)
4216
4344
        # Compaq C++
4217
4345
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4218
4346
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4243
4371
    ;;
4244
4372
  mvs*)
4245
4373
    case $cc_basename in
4246
 
      cxx)
 
4374
      cxx*)
4247
4375
        # FIXME: insert proper C++ library support
4248
4376
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4249
4377
        ;;
4253
4381
        ;;
4254
4382
    esac
4255
4383
    ;;
4256
 
  netbsd*)
 
4384
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4257
4385
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4258
4386
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4259
4387
      wlarc=
4264
4392
    # Workaround some broken pre-1.5 toolchains
4265
4393
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4266
4394
    ;;
 
4395
  openbsd2*)
 
4396
    # C++ shared libraries are fairly broken
 
4397
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4398
    ;;
 
4399
  openbsd*)
 
4400
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4401
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4402
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4403
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4404
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4405
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
4406
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4407
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4408
    fi
 
4409
    output_verbose_link_cmd='echo'
 
4410
    ;;
4267
4411
  osf3*)
4268
4412
    case $cc_basename in
4269
 
      KCC)
 
4413
      KCC*)
4270
4414
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4271
4415
 
4272
4416
        # KCC will only create a shared library if the output file
4282
4426
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4283
4427
 
4284
4428
        ;;
4285
 
      RCC)
 
4429
      RCC*)
4286
4430
        # Rational C++ 2.4.1
4287
4431
        # FIXME: insert proper C++ library support
4288
4432
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4289
4433
        ;;
4290
 
      cxx)
 
4434
      cxx*)
4291
4435
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4292
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4436
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4293
4437
 
4294
4438
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4295
4439
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4307
4451
      *)
4308
4452
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4309
4453
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4310
 
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4454
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4311
4455
 
4312
4456
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4313
4457
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4326
4470
    ;;
4327
4471
  osf4* | osf5*)
4328
4472
    case $cc_basename in
4329
 
      KCC)
 
4473
      KCC*)
4330
4474
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4331
4475
 
4332
4476
        # KCC will only create a shared library if the output file
4341
4485
        # the KAI C++ compiler.
4342
4486
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4343
4487
        ;;
4344
 
      RCC)
 
4488
      RCC*)
4345
4489
        # Rational C++ 2.4.1
4346
4490
        # FIXME: insert proper C++ library support
4347
4491
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4348
4492
        ;;
4349
 
      cxx)
 
4493
      cxx*)
4350
4494
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4351
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4495
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4352
4496
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4353
4497
          echo "-hidden">> $lib.exp~
4354
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
4498
          $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~
4355
4499
          $rm $lib.exp'
4356
4500
 
4357
4501
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4370
4514
      *)
4371
4515
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4372
4516
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4373
 
         _LT_AC_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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4517
         _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4374
4518
 
4375
4519
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4376
4520
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4394
4538
  sco*)
4395
4539
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4396
4540
    case $cc_basename in
4397
 
      CC)
 
4541
      CC*)
4398
4542
        # FIXME: insert proper C++ library support
4399
4543
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4400
4544
        ;;
4406
4550
    ;;
4407
4551
  sunos4*)
4408
4552
    case $cc_basename in
4409
 
      CC)
 
4553
      CC*)
4410
4554
        # Sun C++ 4.x
4411
4555
        # FIXME: insert proper C++ library support
4412
4556
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4413
4557
        ;;
4414
 
      lcc)
 
4558
      lcc*)
4415
4559
        # Lucid
4416
4560
        # FIXME: insert proper C++ library support
4417
4561
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4424
4568
    ;;
4425
4569
  solaris*)
4426
4570
    case $cc_basename in
4427
 
      CC)
 
4571
      CC*)
4428
4572
        # Sun C++ 4.2, 5.x and Centerline C++
 
4573
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4429
4574
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4430
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4575
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4431
4576
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4432
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4577
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4433
4578
 
4434
4579
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4435
4580
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4436
4581
        case $host_os in
4437
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
4582
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4438
4583
          *)
4439
4584
            # The C++ compiler is used as linker so we must use $wl
4440
4585
            # flag to pass the commands to the underlying system
4441
 
            # linker.
 
4586
            # linker. We must also pass each convience library through
 
4587
            # to the system linker between allextract/defaultextract.
 
4588
            # The C++ compiler will combine linker options so we
 
4589
            # cannot just pass the convience library names through
 
4590
            # without $wl.
4442
4591
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4443
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4592
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4444
4593
            ;;
4445
4594
        esac
4446
4595
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4447
4596
 
4448
 
        # Commands to make compiler produce verbose output that lists
4449
 
        # what "hidden" libraries, object files and flags are used when
4450
 
        # linking a shared library.
4451
 
        #
4452
 
        # There doesn't appear to be a way to prevent this compiler from
4453
 
        # explicitly linking system object files so we need to strip them
4454
 
        # from the output so that they don't get included in the library
4455
 
        # dependencies.
4456
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4597
        output_verbose_link_cmd='echo'
4457
4598
 
4458
4599
        # Archives containing C++ object files must be created using
4459
4600
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4461
4602
        # in the archive.
4462
4603
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4463
4604
        ;;
4464
 
      gcx)
 
4605
      gcx*)
4465
4606
        # Green Hills C++ Compiler
4466
4607
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4467
4608
 
4504
4645
    ;;
4505
4646
  tandem*)
4506
4647
    case $cc_basename in
4507
 
      NCC)
 
4648
      NCC*)
4508
4649
        # NonStop-UX NCC 3.20
4509
4650
        # FIXME: insert proper C++ library support
4510
4651
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4610
4751
  # The `*' in the case matches for architectures that use `case' in
4611
4752
  # $output_verbose_cmd can trigger glob expansion during the loop
4612
4753
  # eval without this substitution.
4613
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
4754
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4614
4755
 
4615
4756
  for p in `eval $output_verbose_link_cmd`; do
4616
4757
    case $p in
4686
4827
 
4687
4828
$rm -f confest.$objext
4688
4829
 
 
4830
# PORTME: override above test on systems where it is broken
 
4831
ifelse([$1],[CXX],
 
4832
[case $host_os in
 
4833
solaris*)
 
4834
  case $cc_basename in
 
4835
  CC*)
 
4836
    # Adding this requires a known-good setup of shared libraries for
 
4837
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4838
    # archive will be linked into the output, leading to subtle bugs.
 
4839
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4840
    ;;
 
4841
  esac
 
4842
esac
 
4843
])
 
4844
 
4689
4845
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4690
4846
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4691
4847
esac
4736
4892
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4737
4893
_LT_AC_SYS_COMPILER
4738
4894
 
 
4895
# save warnings/boilerplate of simple test code
 
4896
_LT_COMPILER_BOILERPLATE
 
4897
_LT_LINKER_BOILERPLATE
 
4898
 
4739
4899
# Allow CC to be a program name with arguments.
4740
4900
lt_save_CC="$CC"
4741
4901
CC=${F77-"f77"}
4742
4902
compiler=$CC
4743
4903
_LT_AC_TAGVAR(compiler, $1)=$CC
4744
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
4904
_LT_CC_BASENAME([$compiler])
4745
4905
 
4746
4906
AC_MSG_CHECKING([if libtool supports shared libraries])
4747
4907
AC_MSG_RESULT([$can_build_shared])
4751
4911
 
4752
4912
# On AIX, shared libraries and static libraries use the same namespace, and
4753
4913
# are all built from PIC.
4754
 
case "$host_os" in
 
4914
case $host_os in
4755
4915
aix3*)
4756
4916
  test "$enable_shared" = yes && enable_static=no
4757
4917
  if test -n "$RANLIB"; then
4760
4920
  fi
4761
4921
  ;;
4762
4922
aix4* | aix5*)
4763
 
  test "$enable_shared" = yes && enable_static=no
 
4923
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4924
    test "$enable_shared" = yes && enable_static=no
 
4925
  fi
4764
4926
  ;;
4765
4927
esac
4766
4928
AC_MSG_RESULT([$enable_shared])
4811
4973
lt_simple_compile_test_code="class foo {}\n"
4812
4974
 
4813
4975
# Code to be used in simple link tests
4814
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4976
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4815
4977
 
4816
4978
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4817
4979
_LT_AC_SYS_COMPILER
4818
4980
 
 
4981
# save warnings/boilerplate of simple test code
 
4982
_LT_COMPILER_BOILERPLATE
 
4983
_LT_LINKER_BOILERPLATE
 
4984
 
4819
4985
# Allow CC to be a program name with arguments.
4820
4986
lt_save_CC="$CC"
4821
4987
CC=${GCJ-"gcj"}
4822
4988
compiler=$CC
4823
4989
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4990
_LT_CC_BASENAME([$compiler])
4824
4991
 
4825
4992
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4826
4993
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4827
4994
 
 
4995
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4996
 
4828
4997
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4829
4998
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4830
4999
AC_LIBTOOL_PROG_CC_C_O($1)
4867
5036
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4868
5037
_LT_AC_SYS_COMPILER
4869
5038
 
 
5039
# save warnings/boilerplate of simple test code
 
5040
_LT_COMPILER_BOILERPLATE
 
5041
_LT_LINKER_BOILERPLATE
 
5042
 
4870
5043
# Allow CC to be a program name with arguments.
4871
5044
lt_save_CC="$CC"
4872
5045
CC=${RC-"windres"}
4873
5046
compiler=$CC
4874
5047
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5048
_LT_CC_BASENAME([$compiler])
4875
5049
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4876
5050
 
4877
5051
AC_LIBTOOL_CONFIG($1)
5007
5181
#
5008
5182
# You should have received a copy of the GNU General Public License
5009
5183
# along with this program; if not, write to the Free Software
5010
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
5184
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5011
5185
#
5012
5186
# As a special exception to the GNU General Public License, if you
5013
5187
# distribute this file as part of a program that contains a
5018
5192
SED=$lt_SED
5019
5193
 
5020
5194
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5021
 
Xsed="$SED -e s/^X//"
 
5195
Xsed="$SED -e 1s/^X//"
5022
5196
 
5023
5197
# The HP-UX ksh and POSIX shell print the target directory to stdout
5024
5198
# if CDPATH is set.
5025
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
5199
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5026
5200
 
5027
5201
# The names of the tagged configurations supported by this script.
5028
5202
available_tags=
5053
5227
# The host system.
5054
5228
host_alias=$host_alias
5055
5229
host=$host
 
5230
host_os=$host_os
 
5231
 
 
5232
# The build system.
 
5233
build_alias=$build_alias
 
5234
build=$build
 
5235
build_os=$build_os
5056
5236
 
5057
5237
# An echo program that does not interpret backslashes.
5058
5238
echo=$lt_echo
5129
5309
# Does compiler simultaneously support -c and -o options?
5130
5310
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5131
5311
 
5132
 
# Must we lock files when doing compilation ?
 
5312
# Must we lock files when doing compilation?
5133
5313
need_locks=$lt_need_locks
5134
5314
 
5135
5315
# Do we need the lib prefix for modules?
5403
5583
# Regexp to match symbols that can be accessed directly from C.
5404
5584
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5405
5585
 
5406
 
# Transform the above into a raw symbol and a C symbol.
5407
 
symxfrm='\1 \2\3 \3'
5408
 
 
5409
5586
# Transform an extracted symbol line into a proper C declaration
5410
5587
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5411
5588
 
5427
5604
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5428
5605
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5429
5606
  ;;
 
5607
linux*)
 
5608
  if test "$host_cpu" = ia64; then
 
5609
    symcode='[[ABCDGIRSTW]]'
 
5610
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5611
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5612
  fi
 
5613
  ;;
5430
5614
irix* | nonstopux*)
5431
5615
  symcode='[[BCDEGRST]]'
5432
5616
  ;;
5458
5642
# Try without a prefix undercore, then with it.
5459
5643
for ac_symprfx in "" "_"; do
5460
5644
 
 
5645
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5646
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5647
 
5461
5648
  # Write the raw and C identifiers.
5462
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5649
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5463
5650
 
5464
5651
  # Check to see that the pipe works correctly.
5465
5652
  pipe_works=no
5623
5810
    hpux*)
5624
5811
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5625
5812
      # not for PA HP-UX.
5626
 
      case "$host_cpu" in
 
5813
      case $host_cpu in
5627
5814
      hppa*64*|ia64*)
5628
5815
        ;;
5629
5816
      *)
5648
5835
        ;;
5649
5836
      chorus*)
5650
5837
        case $cc_basename in
5651
 
        cxch68)
 
5838
        cxch68*)
5652
5839
          # Green Hills C++ Compiler
5653
5840
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5654
5841
          ;;
5655
5842
        esac
5656
5843
        ;;
 
5844
       darwin*)
 
5845
         # PIC is the default on this platform
 
5846
         # Common symbols not allowed in MH_DYLIB files
 
5847
         case $cc_basename in
 
5848
           xlc*)
 
5849
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5850
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5851
           ;;
 
5852
         esac
 
5853
       ;;
5657
5854
      dgux*)
5658
5855
        case $cc_basename in
5659
 
          ec++)
 
5856
          ec++*)
5660
5857
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5661
5858
            ;;
5662
 
          ghcx)
 
5859
          ghcx*)
5663
5860
            # Green Hills C++ Compiler
5664
5861
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5665
5862
            ;;
5667
5864
            ;;
5668
5865
        esac
5669
5866
        ;;
5670
 
      freebsd* | kfreebsd*-gnu)
 
5867
      freebsd* | kfreebsd*-gnu | dragonfly*)
5671
5868
        # FreeBSD uses GNU C++
5672
5869
        ;;
5673
5870
      hpux9* | hpux10* | hpux11*)
5674
5871
        case $cc_basename in
5675
 
          CC)
 
5872
          CC*)
5676
5873
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5677
5874
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5678
5875
            if test "$host_cpu" != ia64; then
5679
5876
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5680
5877
            fi
5681
5878
            ;;
5682
 
          aCC)
 
5879
          aCC*)
5683
5880
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5684
5881
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5685
 
            case "$host_cpu" in
 
5882
            case $host_cpu in
5686
5883
            hppa*64*|ia64*)
5687
5884
              # +Z the default
5688
5885
              ;;
5697
5894
        ;;
5698
5895
      irix5* | irix6* | nonstopux*)
5699
5896
        case $cc_basename in
5700
 
          CC)
 
5897
          CC*)
5701
5898
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5702
5899
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5703
5900
            # CC pic flag -KPIC is the default.
5708
5905
        ;;
5709
5906
      linux*)
5710
5907
        case $cc_basename in
5711
 
          KCC)
 
5908
          KCC*)
5712
5909
            # KAI C++ Compiler
5713
5910
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5714
5911
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5715
5912
            ;;
5716
 
          icpc)
 
5913
          icpc* | ecpc*)
5717
5914
            # Intel C++
5718
5915
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5719
5916
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5720
5917
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5721
5918
            ;;
5722
 
          cxx)
 
5919
          pgCC*)
 
5920
            # Portland Group C++ compiler.
 
5921
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5922
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5923
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5924
            ;;
 
5925
          cxx*)
5723
5926
            # Compaq C++
5724
5927
            # Make sure the PIC flag is empty.  It appears that all Alpha
5725
5928
            # Linux and Compaq Tru64 Unix objects are PIC.
5736
5939
        ;;
5737
5940
      mvs*)
5738
5941
        case $cc_basename in
5739
 
          cxx)
 
5942
          cxx*)
5740
5943
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5741
5944
            ;;
5742
5945
          *)
5743
5946
            ;;
5744
5947
        esac
5745
5948
        ;;
5746
 
      netbsd*)
 
5949
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5747
5950
        ;;
5748
5951
      osf3* | osf4* | osf5*)
5749
5952
        case $cc_basename in
5750
 
          KCC)
 
5953
          KCC*)
5751
5954
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5752
5955
            ;;
5753
 
          RCC)
 
5956
          RCC*)
5754
5957
            # Rational C++ 2.4.1
5755
5958
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5756
5959
            ;;
5757
 
          cxx)
 
5960
          cxx*)
5758
5961
            # Digital/Compaq C++
5759
5962
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5760
5963
            # Make sure the PIC flag is empty.  It appears that all Alpha
5770
5973
        ;;
5771
5974
      sco*)
5772
5975
        case $cc_basename in
5773
 
          CC)
 
5976
          CC*)
5774
5977
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5775
5978
            ;;
5776
5979
          *)
5779
5982
        ;;
5780
5983
      solaris*)
5781
5984
        case $cc_basename in
5782
 
          CC)
 
5985
          CC*)
5783
5986
            # Sun C++ 4.2, 5.x and Centerline C++
5784
5987
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5785
5988
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5786
5989
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5787
5990
            ;;
5788
 
          gcx)
 
5991
          gcx*)
5789
5992
            # Green Hills C++ Compiler
5790
5993
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5791
5994
            ;;
5795
5998
        ;;
5796
5999
      sunos4*)
5797
6000
        case $cc_basename in
5798
 
          CC)
 
6001
          CC*)
5799
6002
            # Sun C++ 4.x
5800
6003
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5801
6004
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5802
6005
            ;;
5803
 
          lcc)
 
6006
          lcc*)
5804
6007
            # Lucid
5805
6008
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5806
6009
            ;;
5810
6013
        ;;
5811
6014
      tandem*)
5812
6015
        case $cc_basename in
5813
 
          NCC)
 
6016
          NCC*)
5814
6017
            # NonStop-UX NCC 3.20
5815
6018
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5816
6019
            ;;
5881
6084
    hpux*)
5882
6085
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5883
6086
      # not for PA HP-UX.
5884
 
      case "$host_cpu" in
 
6087
      case $host_cpu in
5885
6088
      hppa*64*|ia64*)
5886
6089
        # +Z the default
5887
6090
        ;;
5907
6110
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5908
6111
      fi
5909
6112
      ;;
 
6113
      darwin*)
 
6114
        # PIC is the default on this platform
 
6115
        # Common symbols not allowed in MH_DYLIB files
 
6116
       case $cc_basename in
 
6117
         xlc*)
 
6118
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6119
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6120
         ;;
 
6121
       esac
 
6122
       ;;
5910
6123
 
5911
6124
    mingw* | pw32* | os2*)
5912
6125
      # This hack is so that the source file can tell whether it is being
5918
6131
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5919
6132
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5920
6133
      # not for PA HP-UX.
5921
 
      case "$host_cpu" in
 
6134
      case $host_cpu in
5922
6135
      hppa*64*|ia64*)
5923
6136
        # +Z the default
5924
6137
        ;;
5942
6155
      ;;
5943
6156
 
5944
6157
    linux*)
5945
 
      case $CC in
 
6158
      case $cc_basename in
5946
6159
      icc* | ecc*)
5947
6160
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5948
6161
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5949
6162
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5950
6163
        ;;
 
6164
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6165
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6166
        # which looks to be a dead project)
 
6167
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6168
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6169
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6170
        ;;
5951
6171
      ccc*)
5952
6172
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5953
6173
        # All Alpha code is PIC.
5968
6188
      ;;
5969
6189
 
5970
6190
    solaris*)
5971
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5972
6191
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5973
6192
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6193
      case $cc_basename in
 
6194
      f77* | f90* | f95*)
 
6195
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6196
      *)
 
6197
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6198
      esac
5974
6199
      ;;
5975
6200
 
5976
6201
    sunos4*)
5992
6217
      fi
5993
6218
      ;;
5994
6219
 
 
6220
    unicos*)
 
6221
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6222
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6223
      ;;
 
6224
 
5995
6225
    uts4*)
5996
6226
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5997
6227
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6019
6249
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6020
6250
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6021
6251
fi
6022
 
case "$host_os" in
 
6252
case $host_os in
6023
6253
  # For platforms which do not support PIC, -DPIC is meaningless:
6024
6254
  *djgpp*)
6025
6255
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6052
6282
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6053
6283
  ;;
6054
6284
  cygwin* | mingw*)
6055
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6285
    _LT_AC_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'
 
6286
  ;;
 
6287
  linux*)
 
6288
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6056
6289
  ;;
6057
6290
  *)
6058
6291
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6095
6328
  # rely on this symbol name, it's probably fine to never include it in
6096
6329
  # preloaded symbol tables.
6097
6330
  extract_expsyms_cmds=
6098
 
 
 
6331
  # Just being paranoid about ensuring that cc_basename is set.
 
6332
  _LT_CC_BASENAME([$compiler])
6099
6333
  case $host_os in
6100
6334
  cygwin* | mingw* | pw32*)
6101
6335
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6115
6349
    # If archive_cmds runs LD, not CC, wlarc should be empty
6116
6350
    wlarc='${wl}'
6117
6351
 
 
6352
    # Set some defaults for GNU ld with shared library support. These
 
6353
    # are reset later if shared libraries are not supported. Putting them
 
6354
    # here allows them to be overridden if necessary.
 
6355
    runpath_var=LD_RUN_PATH
 
6356
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6357
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6358
    # ancient GNU ld didn't support --whole-archive et. al.
 
6359
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6360
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6361
      else
 
6362
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6363
    fi
 
6364
    supports_anon_versioning=no
 
6365
    case `$LD -v 2>/dev/null` in
 
6366
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6367
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6368
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6369
      *\ 2.11.*) ;; # other 2.11 versions
 
6370
      *) supports_anon_versioning=yes ;;
 
6371
    esac
 
6372
 
6118
6373
    # See if GNU ld supports shared libraries.
6119
6374
    case $host_os in
6120
6375
    aix3* | aix4* | aix5*)
6165
6420
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6166
6421
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6167
6422
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6168
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6423
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6169
6424
 
6170
6425
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6171
6426
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6179
6434
        fi~
6180
6435
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6181
6436
      else
6182
 
        ld_shlibs=no
6183
 
      fi
6184
 
      ;;
6185
 
 
6186
 
    netbsd*)
 
6437
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6438
      fi
 
6439
      ;;
 
6440
 
 
6441
    linux*)
 
6442
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6443
        tmp_addflag=
 
6444
        case $cc_basename,$host_cpu in
 
6445
        pgcc*)                          # Portland Group C compiler
 
6446
          _LT_AC_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'
 
6447
          tmp_addflag=' $pic_flag'
 
6448
          ;;
 
6449
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6450
          _LT_AC_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'
 
6451
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6452
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6453
          tmp_addflag=' -i_dynamic' ;;
 
6454
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6455
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6456
        ifc* | ifort*)                  # Intel Fortran compiler
 
6457
          tmp_addflag=' -nofor_main' ;;
 
6458
        esac
 
6459
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6460
 
 
6461
        if test $supports_anon_versioning = yes; then
 
6462
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6463
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6464
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6465
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6466
        fi
 
6467
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
6468
      else
 
6469
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6470
      fi
 
6471
      ;;
 
6472
 
 
6473
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6187
6474
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6188
6475
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6189
6476
        wlarc=
6221
6508
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6222
6509
      ;;
6223
6510
 
6224
 
  linux*)
6225
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6226
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6227
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6228
 
      supports_anon_versioning=no
6229
 
      case `$LD -v 2>/dev/null` in
6230
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6231
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6232
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6233
 
        *\ 2.11.*) ;; # other 2.11 versions
6234
 
        *) supports_anon_versioning=yes ;;
6235
 
      esac
6236
 
      if test $supports_anon_versioning = yes; then
6237
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6238
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6239
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6240
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6241
 
      else
6242
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6243
 
      fi
6244
 
    else
6245
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6246
 
    fi
6247
 
    ;;
6248
 
 
6249
6511
    *)
6250
6512
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6251
6513
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6256
6518
      ;;
6257
6519
    esac
6258
6520
 
6259
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6260
 
      runpath_var=LD_RUN_PATH
6261
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6262
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6263
 
      # ancient GNU ld didn't support --whole-archive et. al.
6264
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6265
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6266
 
      else
6267
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6268
 
      fi
 
6521
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
6522
      runpath_var=
 
6523
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6524
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6525
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6269
6526
    fi
6270
6527
  else
6271
6528
    # PORTME fill in a description of your system's linker (not GNU ld)
6329
6586
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6330
6587
 
6331
6588
      if test "$GCC" = yes; then
6332
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
6589
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6333
6590
        # We only want to do this on AIX 4.2 and lower, the check
6334
6591
        # below for broken collect2 doesn't work under 4.3+
6335
6592
          collect2name=`${CC} -print-prog-name=collect2`
6350
6607
          fi
6351
6608
        esac
6352
6609
        shared_flag='-shared'
 
6610
        if test "$aix_use_runtimelinking" = yes; then
 
6611
          shared_flag="$shared_flag "'${wl}-G'
 
6612
        fi
6353
6613
      else
6354
6614
        # not using gcc
6355
6615
        if test "$host_cpu" = ia64; then
6394
6654
          # Exported symbols can be pulled into shared objects from archives
6395
6655
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6396
6656
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6397
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6657
          # This is similar to how AIX traditionally builds its shared libraries.
6398
6658
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6399
6659
        fi
6400
6660
      fi
6408
6668
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6409
6669
      ;;
6410
6670
 
6411
 
    bsdi4*)
 
6671
    bsdi[[45]]*)
6412
6672
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6413
6673
      ;;
6414
6674
 
6429
6689
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6430
6690
      # FIXME: Should let the user specify the lib program.
6431
6691
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6432
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6692
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6433
6693
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6434
6694
      ;;
6435
6695
 
6436
6696
    darwin* | rhapsody*)
6437
 
    if test "$GXX" = yes ; then
 
6697
      case $host_os in
 
6698
        rhapsody* | darwin1.[[012]])
 
6699
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6700
         ;;
 
6701
       *) # Darwin 1.3 on
 
6702
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6703
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6704
         else
 
6705
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6706
             10.[[012]])
 
6707
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6708
               ;;
 
6709
             10.*)
 
6710
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6711
               ;;
 
6712
           esac
 
6713
         fi
 
6714
         ;;
 
6715
      esac
6438
6716
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6439
 
      case "$host_os" in
6440
 
      rhapsody* | darwin1.[[012]])
6441
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6442
 
        ;;
6443
 
      *) # Darwin 1.3 on
6444
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6445
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6446
 
      else
6447
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6448
 
          10.[[012]])
6449
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6450
 
            ;;
6451
 
          10.*)
6452
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6453
 
            ;;
6454
 
        esac
6455
 
      fi
6456
 
        ;;
6457
 
      esac
6458
 
        lt_int_apple_cc_single_mod=no
 
6717
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6718
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6719
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6720
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6721
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6722
    if test "$GCC" = yes ; then
6459
6723
        output_verbose_link_cmd='echo'
6460
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6461
 
          lt_int_apple_cc_single_mod=yes
6462
 
        fi
6463
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6464
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6465
 
        else
6466
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6467
 
      fi
6468
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6469
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6470
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6471
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6472
 
        else
6473
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6474
 
        fi
 
6724
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6725
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6726
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6727
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6728
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6729
    else
 
6730
      case $cc_basename in
 
6731
        xlc*)
 
6732
         output_verbose_link_cmd='echo'
 
6733
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6734
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6735
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6736
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6475
6737
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6476
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6477
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6478
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6479
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6480
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6481
 
    else
6482
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6738
          ;;
 
6739
       *)
 
6740
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6741
          ;;
 
6742
      esac
6483
6743
    fi
6484
6744
      ;;
6485
6745
 
6513
6773
      ;;
6514
6774
 
6515
6775
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6516
 
    freebsd* | kfreebsd*-gnu)
 
6776
    freebsd* | kfreebsd*-gnu | dragonfly*)
6517
6777
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6518
6778
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6519
6779
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6538
6798
 
6539
6799
    hpux10* | hpux11*)
6540
6800
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6541
 
        case "$host_cpu" in
 
6801
        case $host_cpu in
6542
6802
        hppa*64*|ia64*)
6543
6803
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6544
6804
          ;;
6547
6807
          ;;
6548
6808
        esac
6549
6809
      else
6550
 
        case "$host_cpu" in
 
6810
        case $host_cpu in
6551
6811
        hppa*64*|ia64*)
6552
6812
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6553
6813
          ;;
6557
6817
        esac
6558
6818
      fi
6559
6819
      if test "$with_gnu_ld" = no; then
6560
 
        case "$host_cpu" in
 
6820
        case $host_cpu in
6561
6821
        hppa*64*)
6562
6822
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6563
6823
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6600
6860
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6601
6861
      ;;
6602
6862
 
6603
 
    netbsd*)
 
6863
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6604
6864
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6605
6865
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6606
6866
      else
6624
6884
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6625
6885
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6626
6886
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6887
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6627
6888
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6628
6889
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6629
6890
      else
6669
6930
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6670
6931
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6671
6932
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6672
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6933
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6673
6934
 
6674
6935
        # Both c and cxx compiler support -rpath directly
6675
6936
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6688
6949
    solaris*)
6689
6950
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6690
6951
      if test "$GCC" = yes; then
 
6952
        wlarc='${wl}'
6691
6953
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6692
6954
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6693
6955
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6694
6956
      else
 
6957
        wlarc=''
6695
6958
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6696
6959
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6697
6960
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6700
6963
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6701
6964
      case $host_os in
6702
6965
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6703
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6704
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6966
      *)
 
6967
        # The compiler driver will combine linker options so we
 
6968
        # cannot just pass the convience library names through
 
6969
        # without $wl, iff we do not link with $LD.
 
6970
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6971
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6972
        case $wlarc in
 
6973
        '')
 
6974
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6975
        *)
 
6976
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
6977
        esac ;;
6705
6978
      esac
6706
6979
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6707
6980
      ;;
6962
7235
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6963
7236
# along with /bin/sed that truncates output.
6964
7237
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6965
 
  test ! -f $lt_ac_sed && break
 
7238
  test ! -f $lt_ac_sed && continue
6966
7239
  cat /dev/null > conftest.in
6967
7240
  lt_ac_count=0
6968
7241
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6987
7260
    fi
6988
7261
  done
6989
7262
done
 
7263
])
6990
7264
SED=$lt_cv_path_SED
6991
 
])
6992
7265
AC_MSG_RESULT([$SED])
6993
7266
])
6994
7267
 
6995
 
 
6996
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6997
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6998
 
dnl also defines GSTUFF_PKG_ERRORS on error
6999
 
AC_DEFUN([PKG_CHECK_MODULES], [
7000
 
  succeeded=no
7001
 
 
7002
 
  if test -z "$PKG_CONFIG"; then
7003
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7004
 
  fi
7005
 
 
7006
 
  if test "$PKG_CONFIG" = "no" ; then
7007
 
     echo "*** The pkg-config script could not be found. Make sure it is"
7008
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
7009
 
     echo "*** to the full path to pkg-config."
7010
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7011
 
  else
7012
 
     PKG_CONFIG_MIN_VERSION=0.9.0
7013
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7014
 
        AC_MSG_CHECKING(for $2)
7015
 
 
7016
 
        if $PKG_CONFIG --exists "$2" ; then
7017
 
            AC_MSG_RESULT(yes)
7018
 
            succeeded=yes
7019
 
 
7020
 
            AC_MSG_CHECKING($1_CFLAGS)
7021
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7022
 
            AC_MSG_RESULT($$1_CFLAGS)
7023
 
 
7024
 
            AC_MSG_CHECKING($1_LIBS)
7025
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
7026
 
            AC_MSG_RESULT($$1_LIBS)
7027
 
        else
7028
 
            $1_CFLAGS=""
7029
 
            $1_LIBS=""
7030
 
            ## If we have a custom action on failure, don't print errors, but 
7031
 
            ## do set a variable so people can do so.
7032
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7033
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
 
7268
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
7269
 
7270
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
 
7271
#
 
7272
# This program is free software; you can redistribute it and/or modify
 
7273
# it under the terms of the GNU General Public License as published by
 
7274
# the Free Software Foundation; either version 2 of the License, or
 
7275
# (at your option) any later version.
 
7276
#
 
7277
# This program is distributed in the hope that it will be useful, but
 
7278
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7279
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7280
# General Public License for more details.
 
7281
#
 
7282
# You should have received a copy of the GNU General Public License
 
7283
# along with this program; if not, write to the Free Software
 
7284
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7285
#
 
7286
# As a special exception to the GNU General Public License, if you
 
7287
# distribute this file as part of a program that contains a
 
7288
# configuration script generated by Autoconf, you may include it under
 
7289
# the same distribution terms that you use for the rest of that program.
 
7290
 
 
7291
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
7292
# ----------------------------------
 
7293
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
7294
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
7295
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
7296
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
7297
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
7298
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
7299
fi
 
7300
if test -n "$PKG_CONFIG"; then
 
7301
        _pkg_min_version=m4_default([$1], [0.9.0])
 
7302
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
7303
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
7304
                AC_MSG_RESULT([yes])
 
7305
        else
 
7306
                AC_MSG_RESULT([no])
 
7307
                PKG_CONFIG=""
 
7308
        fi
 
7309
                
 
7310
fi[]dnl
 
7311
])# PKG_PROG_PKG_CONFIG
 
7312
 
 
7313
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
7314
#
 
7315
# Check to see whether a particular set of modules exists.  Similar
 
7316
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
7317
#
 
7318
#
 
7319
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
7320
# this or PKG_CHECK_MODULES is called, or make sure to call
 
7321
# PKG_CHECK_EXISTS manually
 
7322
# --------------------------------------------------------------
 
7323
AC_DEFUN([PKG_CHECK_EXISTS],
 
7324
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7325
if test -n "$PKG_CONFIG" && \
 
7326
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
7327
  m4_ifval([$2], [$2], [:])
 
7328
m4_ifvaln([$3], [else
 
7329
  $3])dnl
 
7330
fi])
 
7331
 
 
7332
 
 
7333
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
7334
# ---------------------------------------------
 
7335
m4_define([_PKG_CONFIG],
 
7336
[if test -n "$PKG_CONFIG"; then
 
7337
    if test -n "$$1"; then
 
7338
        pkg_cv_[]$1="$$1"
 
7339
    else
 
7340
        PKG_CHECK_EXISTS([$3],
 
7341
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
7342
                         [pkg_failed=yes])
 
7343
    fi
 
7344
else
 
7345
        pkg_failed=untried
 
7346
fi[]dnl
 
7347
])# _PKG_CONFIG
 
7348
 
 
7349
# _PKG_SHORT_ERRORS_SUPPORTED
 
7350
# -----------------------------
 
7351
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
7352
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
7353
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
7354
        _pkg_short_errors_supported=yes
 
7355
else
 
7356
        _pkg_short_errors_supported=no
 
7357
fi[]dnl
 
7358
])# _PKG_SHORT_ERRORS_SUPPORTED
 
7359
 
 
7360
 
 
7361
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
7362
# [ACTION-IF-NOT-FOUND])
 
7363
#
 
7364
#
 
7365
# Note that if there is a possibility the first call to
 
7366
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
7367
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
7368
#
 
7369
#
 
7370
# --------------------------------------------------------------
 
7371
AC_DEFUN([PKG_CHECK_MODULES],
 
7372
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7373
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
7374
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
7375
 
 
7376
pkg_failed=no
 
7377
AC_MSG_CHECKING([for $1])
 
7378
 
 
7379
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
7380
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
7381
 
 
7382
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
7383
and $1[]_LIBS to avoid the need to call pkg-config.
 
7384
See the pkg-config man page for more details.])
 
7385
 
 
7386
if test $pkg_failed = yes; then
 
7387
        _PKG_SHORT_ERRORS_SUPPORTED
 
7388
        if test $_pkg_short_errors_supported = yes; then
 
7389
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
7390
        else 
 
7391
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7034
7392
        fi
7035
 
 
7036
 
        AC_SUBST($1_CFLAGS)
7037
 
        AC_SUBST($1_LIBS)
7038
 
     else
7039
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7040
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
7041
 
     fi
7042
 
  fi
7043
 
 
7044
 
  if test $succeeded = yes; then
7045
 
     ifelse([$3], , :, [$3])
7046
 
  else
7047
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7048
 
  fi
7049
 
])
7050
 
 
7051
 
 
 
7393
        # Put the nasty error message in config.log where it belongs
 
7394
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
7395
 
 
7396
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
7397
[Package requirements ($2) were not met:
 
7398
 
 
7399
$$1_PKG_ERRORS
 
7400
 
 
7401
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
7402
installed software in a non-standard prefix.
 
7403
 
 
7404
_PKG_TEXT
 
7405
])],
 
7406
                [$4])
 
7407
elif test $pkg_failed = untried; then
 
7408
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
7409
[The pkg-config script could not be found or is too old.  Make sure it
 
7410
is in your PATH or set the PKG_CONFIG environment variable to the full
 
7411
path to pkg-config.
 
7412
 
 
7413
_PKG_TEXT
 
7414
 
 
7415
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7416
                [$4])
 
7417
else
 
7418
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
7419
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
7420
        AC_MSG_RESULT([yes])
 
7421
        ifelse([$3], , :, [$3])
 
7422
fi[]dnl
 
7423
])# PKG_CHECK_MODULES
7052
7424
 
7053
7425
dnl Perform a check for a GStreamer element using gst-inspect
7054
7426
dnl Thomas Vander Stichele <thomas at apestaart dot org>
7055
 
dnl Last modification: 23/10/2002
7056
 
define(arch-tag)
7057
 
# arch-tag: Autoconf macro for checking GStreamer elements
 
7427
dnl Last modification: 25/01/2005
7058
7428
 
7059
7429
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
7060
7430
 
7061
 
AC_DEFUN(AM_GST_ELEMENT_CHECK,
 
7431
AC_DEFUN([AM_GST_ELEMENT_CHECK],
7062
7432
[
7063
 
  AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
 
7433
  if test "x$GST_INSPECT" == "x"; then
 
7434
    AC_CHECK_PROG(GST_INSPECT, gst-inspect-0.8, gst-inspect-0.8, [])
 
7435
  fi
 
7436
 
7064
7437
  if test "x$GST_INSPECT" != "x"; then
7065
7438
    AC_MSG_CHECKING(GStreamer element $1)
7066
7439
    if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
7073
7446
  fi
7074
7447
])
7075
7448
 
7076
 
# Configure paths for libogg
7077
 
# Jack Moffitt <jack@icecast.org> 10-21-2000
7078
 
# Shamelessly stolen from Owen Taylor and Manish Singh
7079
 
define(arch-tag)
7080
 
# arch-tag: Autoconf macro for checking libogg
7081
 
 
7082
 
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7083
 
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
7084
 
dnl
7085
 
AC_DEFUN(MM_PATH_OGG,
7086
 
[dnl 
7087
 
dnl Get the cflags and libraries
7088
 
dnl
7089
 
AC_ARG_WITH(ogg,[  --with-ogg=PFX   Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
7090
 
AC_ARG_WITH(ogg-libraries,[  --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
7091
 
AC_ARG_WITH(ogg-includes,[  --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
7092
 
AC_ARG_ENABLE(oggtest, [  --disable-oggtest       Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
7093
 
 
7094
 
  if test "x$ogg_libraries" != "x" ; then
7095
 
    OGG_LIBS="-L$ogg_libraries"
7096
 
  elif test "x$ogg_prefix" != "x" ; then
7097
 
    OGG_LIBS="-L$ogg_prefix/lib"
7098
 
  elif test "x$prefix" != "xNONE" ; then
7099
 
    OGG_LIBS="-L$prefix/lib"
7100
 
  fi
7101
 
 
7102
 
  OGG_LIBS="$OGG_LIBS -logg"
7103
 
 
7104
 
  if test "x$ogg_includes" != "x" ; then
7105
 
    OGG_CFLAGS="-I$ogg_includes"
7106
 
  elif test "x$ogg_prefix" != "x" ; then
7107
 
    OGG_CFLAGS="-I$ogg_prefix/include"
7108
 
  fi
7109
 
 
7110
 
  AC_MSG_CHECKING(for Ogg)
7111
 
  no_ogg=""
7112
 
 
7113
 
 
7114
 
  if test "x$enable_oggtest" = "xyes" ; then
7115
 
    ac_save_CFLAGS="$CFLAGS"
7116
 
    ac_save_LIBS="$LIBS"
7117
 
    CFLAGS="$CFLAGS $OGG_CFLAGS"
7118
 
    LIBS="$LIBS $OGG_LIBS"
7119
 
dnl
7120
 
dnl Now check if the installed Ogg is sufficiently new.
7121
 
dnl
7122
 
      rm -f conf.oggtest
7123
 
      AC_TRY_RUN([
7124
 
#include <stdio.h>
7125
 
#include <stdlib.h>
7126
 
#include <string.h>
7127
 
#include <ogg/ogg.h>
7128
 
 
7129
 
int main ()
7130
 
{
7131
 
  system("touch conf.oggtest");
7132
 
  return 0;
7133
 
}
7134
 
 
7135
 
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7136
 
       CFLAGS="$ac_save_CFLAGS"
7137
 
       LIBS="$ac_save_LIBS"
7138
 
  fi
7139
 
 
7140
 
  if test "x$no_ogg" = "x" ; then
7141
 
     AC_MSG_RESULT(yes)
7142
 
     ifelse([$1], , :, [$1])     
7143
 
  else
7144
 
     AC_MSG_RESULT(no)
7145
 
     if test -f conf.oggtest ; then
7146
 
       :
7147
 
     else
7148
 
       echo "*** Could not run Ogg test program, checking why..."
7149
 
       CFLAGS="$CFLAGS $OGG_CFLAGS"
7150
 
       LIBS="$LIBS $OGG_LIBS"
7151
 
       AC_TRY_LINK([
7152
 
#include <stdio.h>
7153
 
#include <ogg/ogg.h>
7154
 
],     [ return 0; ],
7155
 
       [ echo "*** The test program compiled, but did not run. This usually means"
7156
 
       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
7157
 
       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
7158
 
       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7159
 
       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7160
 
       echo "*** is required on your system"
7161
 
       echo "***"
7162
 
       echo "*** If you have an old version installed, it is best to remove it, although"
7163
 
       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
7164
 
       [ echo "*** The test program failed to compile or link. See the file config.log for the"
7165
 
       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
7166
 
       echo "*** or that you have moved Ogg since it was installed." ])
7167
 
       CFLAGS="$ac_save_CFLAGS"
7168
 
       LIBS="$ac_save_LIBS"
7169
 
     fi
7170
 
     OGG_CFLAGS=""
7171
 
     OGG_LIBS=""
7172
 
     ifelse([$2], , :, [$2])
7173
 
  fi
7174
 
  AC_SUBST(OGG_CFLAGS)
7175
 
  AC_SUBST(OGG_LIBS)
7176
 
  rm -f conf.oggtest
7177
 
])
7178
 
 
7179
 
# Configure paths for libvorbis
7180
 
# Jack Moffitt <jack@icecast.org> 10-21-2000
7181
 
# Shamelessly stolen from Owen Taylor and Manish Singh
7182
 
# thomasvs added check for vorbis_bitrate_addblock which is new in rc3
7183
 
define(arch-tag)
7184
 
# arch-tag: Autoconf macro for checking libvorbis
7185
 
 
7186
 
dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7187
 
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
7188
 
dnl
7189
 
AC_DEFUN(MM_PATH_VORBIS,
7190
 
[dnl 
7191
 
dnl Get the cflags and libraries
7192
 
dnl
7193
 
AC_ARG_WITH(vorbis,[  --with-vorbis=PFX   Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
7194
 
AC_ARG_WITH(vorbis-libraries,[  --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)], vorbis_libraries="$withval", vorbis_libraries="")
7195
 
AC_ARG_WITH(vorbis-includes,[  --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)], vorbis_includes="$withval", vorbis_includes="")
7196
 
AC_ARG_ENABLE(vorbistest, [  --disable-vorbistest       Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
7197
 
 
7198
 
  if test "x$vorbis_libraries" != "x" ; then
7199
 
    VORBIS_LIBS="-L$vorbis_libraries"
7200
 
  elif test "x$vorbis_prefix" != "x" ; then
7201
 
    VORBIS_LIBS="-L$vorbis_prefix/lib"
7202
 
  elif test "x$prefix" != "xNONE"; then
7203
 
    VORBIS_LIBS="-L$prefix/lib"
7204
 
  fi
7205
 
 
7206
 
  VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
7207
 
  VORBISFILE_LIBS="-lvorbisfile"
7208
 
  VORBISENC_LIBS="-lvorbisenc"
7209
 
 
7210
 
  if test "x$vorbis_includes" != "x" ; then
7211
 
    VORBIS_CFLAGS="-I$vorbis_includes"
7212
 
  elif test "x$vorbis_prefix" != "x" ; then
7213
 
    VORBIS_CFLAGS="-I$vorbis_prefix/include"
7214
 
  fi
7215
 
 
7216
 
 
7217
 
  AC_MSG_CHECKING(for Vorbis)
7218
 
  no_vorbis=""
7219
 
 
7220
 
 
7221
 
  if test "x$enable_vorbistest" = "xyes" ; then
7222
 
    ac_save_CFLAGS="$CFLAGS"
7223
 
    ac_save_LIBS="$LIBS"
7224
 
    CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
7225
 
    LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
7226
 
dnl
7227
 
dnl Now check if the installed Vorbis is sufficiently new.
7228
 
dnl
7229
 
      rm -f conf.vorbistest
7230
 
      AC_TRY_RUN([
7231
 
#include <stdio.h>
7232
 
#include <stdlib.h>
7233
 
#include <string.h>
7234
 
#include <vorbis/codec.h>
7235
 
#include <vorbis/vorbisenc.h>
7236
 
 
7237
 
int main ()
7238
 
{
7239
 
    vorbis_block        vb;
7240
 
    vorbis_dsp_state    vd;
7241
 
    vorbis_info         vi;
7242
 
 
7243
 
    vorbis_info_init (&vi);
7244
 
    vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
7245
 
    vorbis_analysis_init (&vd, &vi);
7246
 
    vorbis_block_init (&vd, &vb);
7247
 
    /* this function was added in 1.0rc3, so this is what we're testing for */
7248
 
    vorbis_bitrate_addblock (&vb);
7249
 
 
7250
 
    system("touch conf.vorbistest");
7251
 
    return 0;
7252
 
}
7253
 
 
7254
 
],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7255
 
       CFLAGS="$ac_save_CFLAGS"
7256
 
       LIBS="$ac_save_LIBS"
7257
 
  fi
7258
 
 
7259
 
  if test "x$no_vorbis" = "x" ; then
7260
 
     AC_MSG_RESULT(yes)
7261
 
     ifelse([$1], , :, [$1])     
7262
 
  else
7263
 
     AC_MSG_RESULT(no)
7264
 
     if test -f conf.vorbistest ; then
7265
 
       :
7266
 
     else
7267
 
       echo "*** Could not run Vorbis test program, checking why..."
7268
 
       CFLAGS="$CFLAGS $VORBIS_CFLAGS"
7269
 
       LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
7270
 
       AC_TRY_LINK([
7271
 
#include <stdio.h>
7272
 
#include <vorbis/codec.h>
7273
 
],     [ return 0; ],
7274
 
       [ echo "*** The test program compiled, but did not run. This usually means"
7275
 
       echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
7276
 
       echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
7277
 
       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7278
 
       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7279
 
       echo "*** is required on your system"
7280
 
       echo "***"
7281
 
       echo "*** If you have an old version installed, it is best to remove it, although"
7282
 
       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
7283
 
       [ echo "*** The test program failed to compile or link. See the file config.log for the"
7284
 
       echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
7285
 
       echo "*** or that you have moved Vorbis since it was installed." ])
7286
 
       CFLAGS="$ac_save_CFLAGS"
7287
 
       LIBS="$ac_save_LIBS"
7288
 
     fi
7289
 
     VORBIS_CFLAGS=""
7290
 
     VORBIS_LIBS=""
7291
 
     VORBISFILE_LIBS=""
7292
 
     VORBISENC_LIBS=""
7293
 
     ifelse([$2], , :, [$2])
7294
 
  fi
7295
 
  AC_SUBST(VORBIS_CFLAGS)
7296
 
  AC_SUBST(VORBIS_LIBS)
7297
 
  AC_SUBST(VORBISFILE_LIBS)
7298
 
  AC_SUBST(VORBISENC_LIBS)
7299
 
  rm -f conf.vorbistest
7300
 
])
7301
 
 
7302
7449
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7303
 
# Copyright (C) 2001-2003 Red Hat, Inc.
 
7450
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7304
7451
#
7305
7452
# This file is free software, distributed under the terms of the GNU
7306
7453
# General Public License.  As a special exception to the GNU General
7323
7470
#
7324
7471
# Added better handling of ALL_LINGUAS from GNU gettext version 
7325
7472
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7326
 
 
 
7473
#
 
7474
# Modified to require ngettext
 
7475
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7327
7476
#
7328
7477
# We need this here as well, since someone might use autoconf-2.5x
7329
7478
# to configure GLib then an older version to configure a package
7416
7565
      #
7417
7566
      # First check in libc
7418
7567
      #
7419
 
      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
7568
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
7420
7569
        [AC_TRY_LINK([
7421
7570
#include <libintl.h>
7422
7571
],
7423
 
          [return (int) dgettext ("","")],
7424
 
          gt_cv_func_dgettext_libc=yes,
7425
 
          gt_cv_func_dgettext_libc=no)
 
7572
         [return !ngettext ("","", 1)],
 
7573
          gt_cv_func_ngettext_libc=yes,
 
7574
          gt_cv_func_ngettext_libc=no)
7426
7575
        ])
7427
7576
  
7428
 
      if test "$gt_cv_func_dgettext_libc" = "yes" ; then
 
7577
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
7578
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
7579
                [AC_TRY_LINK([
 
7580
#include <libintl.h>
 
7581
],
 
7582
                  [return !dgettext ("","")],
 
7583
                  gt_cv_func_dgettext_libc=yes,
 
7584
                  gt_cv_func_dgettext_libc=no)
 
7585
                ])
 
7586
      fi
 
7587
  
 
7588
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7429
7589
        AC_CHECK_FUNCS(bind_textdomain_codeset)
7430
7590
      fi
7431
7591
 
7433
7593
      # If we don't have everything we want, check in libintl
7434
7594
      #
7435
7595
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
7596
         || test "$gt_cv_func_ngettext_libc" != "yes" \
7436
7597
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7437
7598
        
7438
7599
        AC_CHECK_LIB(intl, bindtextdomain,
7439
 
            [AC_CHECK_LIB(intl, dgettext,
7440
 
                          gt_cv_func_dgettext_libintl=yes)])
 
7600
            [AC_CHECK_LIB(intl, ngettext,
 
7601
                    [AC_CHECK_LIB(intl, dgettext,
 
7602
                                  gt_cv_func_dgettext_libintl=yes)])])
7441
7603
 
7442
7604
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7443
7605
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
7444
7606
          AC_MSG_RESULT([])
7445
 
          AC_CHECK_LIB(intl, dcgettext,
 
7607
          AC_CHECK_LIB(intl, ngettext,
 
7608
                [AC_CHECK_LIB(intl, dcgettext,
7446
7609
                       [gt_cv_func_dgettext_libintl=yes
7447
7610
                        libintl_extra_libs=-liconv],
7448
 
                        :,-liconv)
 
7611
                        :,-liconv)],
 
7612
                :,-liconv)
7449
7613
        fi
7450
7614
 
7451
7615
        #
7452
7616
        # If we found libintl, then check in it for bind_textdomain_codeset();
7453
7617
        # we'll prefer libc if neither have bind_textdomain_codeset(),
7454
 
        # and both have dgettext
 
7618
        # and both have dgettext and ngettext
7455
7619
        #
7456
7620
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7457
7621
          glib_save_LIBS="$LIBS"
7463
7627
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7464
7628
            gt_cv_func_dgettext_libc=no
7465
7629
          else
7466
 
            if test "$gt_cv_func_dgettext_libc" = "yes"; then
 
7630
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
7631
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
7467
7632
              gt_cv_func_dgettext_libintl=no
7468
7633
            fi
7469
7634
          fi
7680
7845
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
7681
7846
])dnl
7682
7847
 
 
7848
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
 
7849
dnl
 
7850
dnl example
 
7851
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
 
7852
dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
 
7853
 
 
7854
AC_DEFUN([AS_AC_EXPAND],
 
7855
[
 
7856
  EXP_VAR=[$1]
 
7857
  FROM_VAR=[$2]
 
7858
 
 
7859
  dnl first expand prefix and exec_prefix if necessary
 
7860
  prefix_save=$prefix
 
7861
  exec_prefix_save=$exec_prefix
 
7862
 
 
7863
  dnl if no prefix given, then use /usr/local, the default prefix
 
7864
  if test "x$prefix" = "xNONE"; then
 
7865
    prefix=$ac_default_prefix
 
7866
  fi
 
7867
  dnl if no exec_prefix given, then use prefix
 
7868
  if test "x$exec_prefix" = "xNONE"; then
 
7869
    exec_prefix=$prefix
 
7870
  fi
 
7871
 
 
7872
  full_var="$FROM_VAR"
 
7873
  dnl loop until it doesn't change anymore
 
7874
  while true; do
 
7875
    new_full_var="`eval echo $full_var`"
 
7876
    if test "x$new_full_var"="x$full_var"; then break; fi
 
7877
    full_var=$new_full_var
 
7878
  done
 
7879
 
 
7880
  dnl clean up
 
7881
  full_var=$new_full_var
 
7882
  AC_SUBST([$1], "$full_var")
 
7883
 
 
7884
  dnl restore prefix and exec_prefix
 
7885
  prefix=$prefix_save
 
7886
  exec_prefix=$exec_prefix_save
 
7887
])
 
7888
 
7683
7889
dnl AM_GCONF_SOURCE_2
7684
7890
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
7685
7891
dnl  (i.e. pass to gconftool-2
7713
7919
 
7714
7920
  AC_ARG_ENABLE(schemas-install,
7715
7921
     [  --disable-schemas-install       Disable the schemas installation],
7716
 
     [case "${enableval}" in
7717
 
       yes) schemas_install=true ;;
7718
 
       no)  schemas_install=false ;;
7719
 
       *) AC_MSG_ERROR(bad value ${enableval} for --disable-schemas-install) ;;
7720
 
     esac],[schemas_install=true])
7721
 
     AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test x$schemas_install = xtrue)
 
7922
     [case ${enableval} in
 
7923
       yes|no) ;;
 
7924
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
7925
      esac])
 
7926
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
7927
])
 
7928
 
 
7929
dnl -*- mode: autoconf -*-
 
7930
 
 
7931
# serial 1
 
7932
 
 
7933
dnl Usage:
 
7934
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
7935
AC_DEFUN([GTK_DOC_CHECK],
 
7936
[
 
7937
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
7938
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
7939
  dnl for overriding the documentation installation directory
 
7940
  AC_ARG_WITH(html-dir,
 
7941
    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
7942
    [with_html_dir='${datadir}/gtk-doc/html'])
 
7943
  HTML_DIR="$with_html_dir"
 
7944
  AC_SUBST(HTML_DIR)
 
7945
 
 
7946
  dnl enable/disable documentation building
 
7947
  AC_ARG_ENABLE(gtk-doc,
 
7948
    AC_HELP_STRING([--enable-gtk-doc],
 
7949
                   [use gtk-doc to build documentation [default=no]]),,
 
7950
    enable_gtk_doc=no)
 
7951
 
 
7952
  have_gtk_doc=no
 
7953
  if test x$enable_gtk_doc = xyes; then
 
7954
    if test -z "$PKG_CONFIG"; then
 
7955
      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
7956
    fi
 
7957
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
 
7958
      have_gtk_doc=yes
 
7959
    fi
 
7960
 
 
7961
  dnl do we want to do a version check?
 
7962
ifelse([$1],[],,
 
7963
    [gtk_doc_min_version=$1
 
7964
    if test "$have_gtk_doc" = yes; then
 
7965
      AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
 
7966
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
 
7967
        AC_MSG_RESULT(yes)
 
7968
      else
 
7969
        AC_MSG_RESULT(no)
 
7970
        have_gtk_doc=no
 
7971
      fi
 
7972
    fi
 
7973
])
 
7974
    if test "$have_gtk_doc" != yes; then
 
7975
      enable_gtk_doc=no
 
7976
    fi
 
7977
  fi
 
7978
 
 
7979
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
 
7980
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
7722
7981
])
7723
7982