~ubuntu-branches/debian/sid/xfce4-clipman-plugin/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Simon Huggins, Yves-Alexis Perez
  • Date: 2008-03-04 22:56:46 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080304225646-qavelxwgscqfqcu1
Tags: 2:0.8.1-1
[ Simon Huggins ]
* debian/control: Move fake Homepage field to a real one now dpkg
  supports it.
* Add Vcs-* headers to debian/control

[ Yves-Alexis Perez ]
* new upstream release.
  - fix crash with UTF-8 text.
* debian/control:
  - update my email address.
  - update standards version to 3.7.3.
* debian/copyright: completely rewritten, especially the license part.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
16
24
#
114
122
#-----------------
115
123
glib_DEFUN([GLIB_WITH_NLS],
116
124
  dnl NLS is obligatory
117
 
  [USE_NLS=yes
 
125
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
126
    USE_NLS=yes
118
127
    AC_SUBST(USE_NLS)
119
128
 
120
129
    gt_cv_have_gettext=no
218
227
          glib_save_LIBS="$LIBS"
219
228
          LIBS="$LIBS $INTLLIBS"
220
229
          AC_CHECK_FUNCS(dcgettext)
 
230
          MSGFMT_OPTS=
 
231
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
232
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
233
msgid ""
 
234
msgstr ""
 
235
"Content-Type: text/plain; charset=UTF-8\n"
 
236
"Project-Id-Version: test 1.0\n"
 
237
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
238
"Last-Translator: test <foo@bar.xx>\n"
 
239
"Language-Team: C <LL@li.org>\n"
 
240
"MIME-Version: 1.0\n"
 
241
"Content-Transfer-Encoding: 8bit\n"
 
242
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
243
          AC_SUBST(MSGFMT_OPTS)
221
244
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
245
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
246
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
389
412
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
413
glib_save_prefix="$prefix"
391
414
glib_save_exec_prefix="$exec_prefix"
 
415
glib_save_datarootdir="$datarootdir"
392
416
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
417
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
418
datarootdir=`eval echo "${datarootdir}"`
394
419
if test "x$CATOBJEXT" = "x.mo" ; then
395
420
  localedir=`eval echo "${libdir}/locale"`
396
421
else
398
423
fi
399
424
prefix="$glib_save_prefix"
400
425
exec_prefix="$glib_save_exec_prefix"
 
426
datarootdir="$glib_save_datarootdir"
401
427
AC_DEFINE_UNQUOTED($1, "$localedir",
402
428
  [Define the location where the catalogs will be installed])
403
429
])
410
436
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
411
437
])dnl
412
438
 
 
439
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
440
 
441
# Create a temporary file with TEST-FILE as its contents and pass the
 
442
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
443
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
444
AC_DEFUN([GLIB_RUN_PROG],
 
445
[cat >conftest.foo <<_ACEOF
 
446
$2
 
447
_ACEOF
 
448
if AC_RUN_LOG([$1 conftest.foo]); then
 
449
  m4_ifval([$3], [$3], [:])
 
450
m4_ifvaln([$4], [else $4])dnl
 
451
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
452
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
453
fi])
 
454
 
 
455
 
413
456
 
414
457
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
 
# serial 35 IT_PROG_INTLTOOL
 
458
# serial 36 IT_PROG_INTLTOOL
416
459
AC_DEFUN([IT_PROG_INTLTOOL],
417
460
[AC_PREREQ([2.50])dnl
418
461
 
425
468
esac
426
469
 
427
470
if test -n "$1"; then
428
 
    AC_MSG_CHECKING(for intltool >= $1)
 
471
    AC_MSG_CHECKING([for intltool >= $1])
429
472
 
430
473
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
431
474
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
454
497
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
455
498
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
456
499
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
500
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
457
501
 
458
502
AC_SUBST(INTLTOOL_DESKTOP_RULE)
459
503
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
473
517
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
474
518
AC_SUBST(INTLTOOL_THEME_RULE)
475
519
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
520
AC_SUBST(INTLTOOL_POLICY_RULE)
 
521
 
 
522
# Check the gettext tools to make sure they are GNU
 
523
AC_PATH_PROG(XGETTEXT, xgettext)
 
524
AC_PATH_PROG(MSGMERGE, msgmerge)
 
525
AC_PATH_PROG(MSGFMT, msgfmt)
 
526
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
527
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
528
fi
 
529
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
530
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
531
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
532
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
533
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
534
fi
476
535
 
477
536
# Use the tools built into the package, not the ones that are installed.
478
537
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
495
554
   fi
496
555
fi
497
556
 
498
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
502
 
 
503
557
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
558
AC_SUBST(ALL_LINGUAS)
505
 
    
 
559
 
 
560
# Set DATADIRNAME correctly if it is not set yet
 
561
# (copied from glib-gettext.m4)
 
562
if test -z "$DATADIRNAME"; then
 
563
  AC_LINK_IFELSE(
 
564
    [AC_LANG_PROGRAM([[]],
 
565
                     [[extern int _nl_msg_cat_cntr;
 
566
                       return _nl_msg_cat_cntr]])],
 
567
    [DATADIRNAME=share],
 
568
    [case $host in
 
569
    *-*-solaris*)
 
570
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
571
    dnl GNU format message catalog is always supported,
 
572
    dnl since both are added to the libc all together.
 
573
    dnl Hence, we'd like to go with DATADIRNAME=share
 
574
    dnl in this case.
 
575
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
576
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
577
    ;;
 
578
    *)
 
579
    [DATADIRNAME=lib]
 
580
    ;;
 
581
    esac])
 
582
fi
 
583
AC_SUBST(DATADIRNAME)
 
584
 
506
585
IT_PO_SUBDIR([po])
507
586
 
508
587
dnl The following is very similar to
525
604
for file in intltool-extract intltool-merge intltool-update; do
526
605
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
527
606
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
528
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
529
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
530
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
531
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
532
607
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
533
608
        < ${ac_aux_dir}/${file}.in > ${file}.out
534
609
  if cmp -s ${file} ${file}.out 2>/dev/null; then
543
618
],
544
619
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
545
620
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
546
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
547
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
548
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
621
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
549
622
 
550
623
])
551
624
 
594
667
 
595
668
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
596
669
 
597
 
# serial 48 AC_PROG_LIBTOOL
 
670
# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
598
671
 
599
672
 
600
673
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
682
755
AC_REQUIRE([AC_OBJEXT])dnl
683
756
AC_REQUIRE([AC_EXEEXT])dnl
684
757
dnl
685
 
 
686
758
AC_LIBTOOL_SYS_MAX_CMD_LEN
687
759
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
688
760
AC_LIBTOOL_OBJDIR
757
829
test -z "$ac_objext" && ac_objext=o
758
830
 
759
831
# Determine commands to create old-style static archives.
760
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
832
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
761
833
old_postinstall_cmds='chmod 644 $oldlib'
762
834
old_postuninstall_cmds=
763
835
 
784
856
  ;;
785
857
esac
786
858
 
 
859
_LT_REQUIRED_DARWIN_CHECKS
 
860
 
787
861
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
788
862
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
789
863
enable_win32_dll=yes, enable_win32_dll=no)
844
918
# Check for compiler boilerplate output or warnings with
845
919
# the simple compiler test code.
846
920
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
847
 
[ac_outfile=conftest.$ac_objext
848
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
921
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
922
ac_outfile=conftest.$ac_objext
 
923
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
849
924
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
850
925
_lt_compiler_boilerplate=`cat conftest.err`
851
926
$rm conftest*
857
932
# Check for linker boilerplate output or warnings with
858
933
# the simple link test code.
859
934
AC_DEFUN([_LT_LINKER_BOILERPLATE],
860
 
[ac_outfile=conftest.$ac_objext
861
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
936
ac_outfile=conftest.$ac_objext
 
937
echo "$lt_simple_link_test_code" >conftest.$ac_ext
862
938
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
863
939
_lt_linker_boilerplate=`cat conftest.err`
864
 
$rm conftest*
 
940
$rm -r conftest*
865
941
])# _LT_LINKER_BOILERPLATE
866
942
 
 
943
# _LT_REQUIRED_DARWIN_CHECKS
 
944
# --------------------------
 
945
# Check for some things on darwin
 
946
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
947
  case $host_os in
 
948
    rhapsody* | darwin*)
 
949
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
950
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
951
 
 
952
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
953
      [lt_cv_apple_cc_single_mod=no
 
954
      if test -z "${LT_MULTI_MODULE}"; then
 
955
   # By default we will add the -single_module flag. You can override
 
956
   # by either setting the environment variable LT_MULTI_MODULE
 
957
   # non-empty at configure time, or by adding -multi_module to the
 
958
   # link flags.
 
959
   echo "int foo(void){return 1;}" > conftest.c
 
960
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
961
     -dynamiclib ${wl}-single_module conftest.c
 
962
   if test -f libconftest.dylib; then
 
963
     lt_cv_apple_cc_single_mod=yes
 
964
     rm -rf libconftest.dylib*
 
965
   fi
 
966
   rm conftest.c
 
967
      fi])
 
968
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
969
      [lt_cv_ld_exported_symbols_list],
 
970
      [lt_cv_ld_exported_symbols_list=no
 
971
      save_LDFLAGS=$LDFLAGS
 
972
      echo "_main" > conftest.sym
 
973
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
974
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
975
   [lt_cv_ld_exported_symbols_list=yes],
 
976
   [lt_cv_ld_exported_symbols_list=no])
 
977
   LDFLAGS="$save_LDFLAGS"
 
978
    ])
 
979
    case $host_os in
 
980
    rhapsody* | darwin1.[[0123]])
 
981
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
982
    darwin1.*)
 
983
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
984
    darwin*)
 
985
      # if running on 10.5 or later, the deployment target defaults
 
986
      # to the OS version, if on x86, and 10.4, the deployment
 
987
      # target defaults to 10.4. Don't you love it?
 
988
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
989
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
990
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
991
   10.[[012]]*)
 
992
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
993
   10.*)
 
994
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
995
      esac
 
996
    ;;
 
997
  esac
 
998
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
999
      _lt_dar_single_mod='$single_module'
 
1000
    fi
 
1001
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
1002
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1003
    else
 
1004
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1005
    fi
 
1006
    if test "$DSYMUTIL" != ":"; then
 
1007
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1008
    else
 
1009
      _lt_dsymutil=
 
1010
    fi
 
1011
    ;;
 
1012
  esac
 
1013
])
867
1014
 
868
1015
# _LT_AC_SYS_LIBPATH_AIX
869
1016
# ----------------------
874
1021
# If we don't find anything, use the default library path according
875
1022
# to the aix ld manual.
876
1023
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
877
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
878
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
879
 
}'`
 
1024
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1025
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1026
lt_aix_libpath_sed='
 
1027
    /Import File Strings/,/^$/ {
 
1028
        /^0/ {
 
1029
            s/^0  *\(.*\)$/\1/
 
1030
            p
 
1031
        }
 
1032
    }'
 
1033
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
880
1034
# Check for a 64-bit object if we didn't find anything.
881
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
882
 
}'`; fi],[])
 
1035
if test -z "$aix_libpath"; then
 
1036
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1037
fi],[])
883
1038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
884
1039
])# _LT_AC_SYS_LIBPATH_AIX
885
1040
 
1110
1265
  rm -rf conftest*
1111
1266
  ;;
1112
1267
 
1113
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1268
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1269
s390*-*linux*|sparc*-*linux*)
1114
1270
  # Find out which ABI we are using.
1115
1271
  echo 'int i;' > conftest.$ac_ext
1116
1272
  if AC_TRY_EVAL(ac_compile); then
1117
1273
    case `/usr/bin/file conftest.o` in
1118
1274
    *32-bit*)
1119
1275
      case $host in
 
1276
        x86_64-*kfreebsd*-gnu)
 
1277
          LD="${LD-ld} -m elf_i386_fbsd"
 
1278
          ;;
1120
1279
        x86_64-*linux*)
1121
1280
          LD="${LD-ld} -m elf_i386"
1122
1281
          ;;
1133
1292
      ;;
1134
1293
    *64-bit*)
1135
1294
      case $host in
 
1295
        x86_64-*kfreebsd*-gnu)
 
1296
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1297
          ;;
1136
1298
        x86_64-*linux*)
1137
1299
          LD="${LD-ld} -m elf_x86_64"
1138
1300
          ;;
1173
1335
    *64-bit*)
1174
1336
      case $lt_cv_prog_gnu_ld in
1175
1337
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1176
 
      *)    LD="${LD-ld} -64" ;;
 
1338
      *)
 
1339
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1340
          LD="${LD-ld} -64"
 
1341
        fi
 
1342
        ;;
1177
1343
      esac
1178
1344
      ;;
1179
1345
    esac
1204
1370
AC_CACHE_CHECK([$1], [$2],
1205
1371
  [$2=no
1206
1372
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1207
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1373
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1208
1374
   lt_compiler_flag="$3"
1209
1375
   # Insert the option either (1) after the last *FLAGS variable, or
1210
1376
   # (2) before a word containing "conftest.", or (3) at the end.
1245
1411
# ------------------------------------------------------------
1246
1412
# Check whether the given compiler option works
1247
1413
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1248
 
[AC_CACHE_CHECK([$1], [$2],
 
1414
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1415
AC_CACHE_CHECK([$1], [$2],
1249
1416
  [$2=no
1250
1417
   save_LDFLAGS="$LDFLAGS"
1251
1418
   LDFLAGS="$LDFLAGS $3"
1252
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1419
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1253
1420
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1254
1421
     # The linker can only warn and ignore the option if not recognized
1255
1422
     # So say no if there are warnings
1265
1432
       $2=yes
1266
1433
     fi
1267
1434
   fi
1268
 
   $rm conftest*
 
1435
   $rm -r conftest*
1269
1436
   LDFLAGS="$save_LDFLAGS"
1270
1437
])
1271
1438
 
1363
1530
    fi
1364
1531
    ;;
1365
1532
  *)
1366
 
    # If test is not a shell built-in, we'll probably end up computing a
1367
 
    # maximum length that is only half of the actual maximum length, but
1368
 
    # we can't tell.
1369
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1370
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1533
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1534
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1535
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1536
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1537
    else
 
1538
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1539
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1371
1540
               = "XX$teststring") >/dev/null 2>&1 &&
1372
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1373
 
            lt_cv_sys_max_cmd_len=$new_result &&
1374
 
            test $i != 17 # 1/2 MB should be enough
1375
 
    do
1376
 
      i=`expr $i + 1`
1377
 
      teststring=$teststring$teststring
1378
 
    done
1379
 
    teststring=
1380
 
    # Add a significant safety factor because C++ compilers can tack on massive
1381
 
    # amounts of additional arguments before passing them to the linker.
1382
 
    # It appears as though 1/2 is a usable value.
1383
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1541
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1542
              lt_cv_sys_max_cmd_len=$new_result &&
 
1543
              test $i != 17 # 1/2 MB should be enough
 
1544
      do
 
1545
        i=`expr $i + 1`
 
1546
        teststring=$teststring$teststring
 
1547
      done
 
1548
      teststring=
 
1549
      # Add a significant safety factor because C++ compilers can tack on massive
 
1550
      # amounts of additional arguments before passing them to the linker.
 
1551
      # It appears as though 1/2 is a usable value.
 
1552
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1553
    fi
1384
1554
    ;;
1385
1555
  esac
1386
1556
])
1533
1703
    AC_CHECK_FUNC([shl_load],
1534
1704
          [lt_cv_dlopen="shl_load"],
1535
1705
      [AC_CHECK_LIB([dld], [shl_load],
1536
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1706
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1537
1707
        [AC_CHECK_FUNC([dlopen],
1538
1708
              [lt_cv_dlopen="dlopen"],
1539
1709
          [AC_CHECK_LIB([dl], [dlopen],
1541
1711
            [AC_CHECK_LIB([svld], [dlopen],
1542
1712
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1543
1713
              [AC_CHECK_LIB([dld], [dld_link],
1544
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1714
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1545
1715
              ])
1546
1716
            ])
1547
1717
          ])
1607
1777
# ---------------------------------
1608
1778
# Check to see if options -c and -o are simultaneously supported by compiler
1609
1779
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1610
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1780
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1781
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1611
1782
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1612
1783
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1613
1784
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1615
1786
   mkdir conftest
1616
1787
   cd conftest
1617
1788
   mkdir out
1618
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1789
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1619
1790
 
1620
1791
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1621
1792
   # Insert the option either (1) after the last *FLAGS variable, or
1755
1926
   darwin*)
1756
1927
       if test -n "$STRIP" ; then
1757
1928
         striplib="$STRIP -x"
 
1929
         old_striplib="$STRIP -S"
1758
1930
         AC_MSG_RESULT([yes])
1759
1931
       else
1760
1932
  AC_MSG_RESULT([no])
1772
1944
# -----------------------------
1773
1945
# PORTME Fill in your ld.so characteristics
1774
1946
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1775
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1947
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1948
AC_MSG_CHECKING([dynamic linker characteristics])
1776
1949
library_names_spec=
1777
1950
libname_spec='lib$name'
1778
1951
soname_spec=
1786
1959
version_type=none
1787
1960
dynamic_linker="$host_os ld.so"
1788
1961
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1962
m4_if($1,[],[
1789
1963
if test "$GCC" = yes; then
1790
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1791
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1964
  case $host_os in
 
1965
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1966
    *) lt_awk_arg="/^libraries:/" ;;
 
1967
  esac
 
1968
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1969
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1792
1970
    # if the path contains ";" then we assume it to be the separator
1793
1971
    # otherwise default to the standard path separator (i.e. ":") - it is
1794
1972
    # assumed that no part of a normal pathname contains ";" but that should
1795
1973
    # okay in the real world where ";" in dirpaths is itself problematic.
1796
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1974
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1797
1975
  else
1798
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1976
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1799
1977
  fi
 
1978
  # Ok, now we have the path, separated by spaces, we can step through it
 
1979
  # and add multilib dir if necessary.
 
1980
  lt_tmp_lt_search_path_spec=
 
1981
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1982
  for lt_sys_path in $lt_search_path_spec; do
 
1983
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1984
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1985
    else
 
1986
      test -d "$lt_sys_path" && \
 
1987
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1988
    fi
 
1989
  done
 
1990
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1991
BEGIN {RS=" "; FS="/|\n";} {
 
1992
  lt_foo="";
 
1993
  lt_count=0;
 
1994
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1995
    if ($lt_i != "" && $lt_i != ".") {
 
1996
      if ($lt_i == "..") {
 
1997
        lt_count++;
 
1998
      } else {
 
1999
        if (lt_count == 0) {
 
2000
          lt_foo="/" $lt_i lt_foo;
 
2001
        } else {
 
2002
          lt_count--;
 
2003
        }
 
2004
      }
 
2005
    }
 
2006
  }
 
2007
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
2008
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
2009
}'`
 
2010
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1800
2011
else
1801
2012
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1802
 
fi
 
2013
fi])
1803
2014
need_lib_prefix=unknown
1804
2015
hardcode_into_libs=no
1805
2016
 
1817
2028
  soname_spec='${libname}${release}${shared_ext}$major'
1818
2029
  ;;
1819
2030
 
1820
 
aix4* | aix5*)
 
2031
aix[[4-9]]*)
1821
2032
  version_type=linux
1822
2033
  need_lib_prefix=no
1823
2034
  need_version=no
1956
2167
  shlibpath_overrides_runpath=yes
1957
2168
  shlibpath_var=DYLD_LIBRARY_PATH
1958
2169
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1959
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1960
 
  if test "$GCC" = yes; then
1961
 
    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"`
1962
 
  else
1963
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1964
 
  fi
 
2170
  m4_if([$1], [],[
 
2171
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1965
2172
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1966
2173
  ;;
1967
2174
 
1978
2185
  dynamic_linker=no
1979
2186
  ;;
1980
2187
 
1981
 
kfreebsd*-gnu)
1982
 
  version_type=linux
1983
 
  need_lib_prefix=no
1984
 
  need_version=no
1985
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1986
 
  soname_spec='${libname}${release}${shared_ext}$major'
1987
 
  shlibpath_var=LD_LIBRARY_PATH
1988
 
  shlibpath_overrides_runpath=no
1989
 
  hardcode_into_libs=yes
1990
 
  dynamic_linker='GNU ld.so'
1991
 
  ;;
1992
 
 
1993
2188
freebsd* | dragonfly*)
1994
2189
  # DragonFly does not have aout.  When/if they implement a new
1995
2190
  # versioning mechanism, adjust this.
2027
2222
    shlibpath_overrides_runpath=no
2028
2223
    hardcode_into_libs=yes
2029
2224
    ;;
2030
 
  freebsd*) # from 4.6 on
 
2225
  *) # from 4.6 on, and DragonFly
2031
2226
    shlibpath_overrides_runpath=yes
2032
2227
    hardcode_into_libs=yes
2033
2228
    ;;
2090
2285
  postinstall_cmds='chmod 555 $lib'
2091
2286
  ;;
2092
2287
 
2093
 
interix3*)
 
2288
interix[[3-9]]*)
2094
2289
  version_type=linux
2095
2290
  need_lib_prefix=no
2096
2291
  need_version=no
2145
2340
  ;;
2146
2341
 
2147
2342
# This must be Linux ELF.
2148
 
linux*)
 
2343
linux* | k*bsd*-gnu)
2149
2344
  version_type=linux
2150
2345
  need_lib_prefix=no
2151
2346
  need_version=no
2161
2356
 
2162
2357
  # Append ld.so.conf contents to the search path
2163
2358
  if test -f /etc/ld.so.conf; then
2164
 
    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' ' '`
 
2359
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2165
2360
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2166
2361
  fi
2167
2362
 
2174
2369
  dynamic_linker='GNU/Linux ld.so'
2175
2370
  ;;
2176
2371
 
2177
 
knetbsd*-gnu)
 
2372
netbsdelf*-gnu)
2178
2373
  version_type=linux
2179
2374
  need_lib_prefix=no
2180
2375
  need_version=no
2183
2378
  shlibpath_var=LD_LIBRARY_PATH
2184
2379
  shlibpath_overrides_runpath=no
2185
2380
  hardcode_into_libs=yes
2186
 
  dynamic_linker='GNU ld.so'
 
2381
  dynamic_linker='NetBSD ld.elf_so'
2187
2382
  ;;
2188
2383
 
2189
2384
netbsd*)
2267
2462
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2268
2463
  ;;
2269
2464
 
 
2465
rdos*)
 
2466
  dynamic_linker=no
 
2467
  ;;
 
2468
 
2270
2469
solaris*)
2271
2470
  version_type=linux
2272
2471
  need_lib_prefix=no
2362
2561
AC_MSG_RESULT([$dynamic_linker])
2363
2562
test "$dynamic_linker" = no && can_build_shared=no
2364
2563
 
 
2564
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2565
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2566
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2567
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2568
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2569
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2570
 
2365
2571
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2366
2572
if test "$GCC" = yes; then
2367
2573
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2372
2578
# _LT_AC_TAGCONFIG
2373
2579
# ----------------
2374
2580
AC_DEFUN([_LT_AC_TAGCONFIG],
2375
 
[AC_ARG_WITH([tags],
 
2581
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2582
AC_ARG_WITH([tags],
2376
2583
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2377
2584
        [include additional configurations @<:@automatic@:>@])],
2378
2585
    [tagnames="$withval"])
2633
2840
 
2634
2841
# AC_PATH_TOOL_PREFIX
2635
2842
# -------------------
2636
 
# find a file program which can recognise shared library
 
2843
# find a file program which can recognize shared library
2637
2844
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2638
2845
[AC_REQUIRE([AC_PROG_EGREP])dnl
2639
2846
AC_MSG_CHECKING([for $1])
2696
2903
 
2697
2904
# AC_PATH_MAGIC
2698
2905
# -------------
2699
 
# find a file program which can recognise a shared library
 
2906
# find a file program which can recognize a shared library
2700
2907
AC_DEFUN([AC_PATH_MAGIC],
2701
2908
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2702
2909
if test -z "$lt_cv_path_MAGIC_CMD"; then
2843
3050
# how to check for library dependencies
2844
3051
#  -- PORTME fill in with the dynamic library characteristics
2845
3052
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2846
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3053
[AC_CACHE_CHECK([how to recognize dependent libraries],
2847
3054
lt_cv_deplibs_check_method,
2848
3055
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2849
3056
lt_cv_file_magic_test_file=
2860
3067
# whether `pass_all' will *always* work, you probably want this one.
2861
3068
 
2862
3069
case $host_os in
2863
 
aix4* | aix5*)
 
3070
aix[[4-9]]*)
2864
3071
  lt_cv_deplibs_check_method=pass_all
2865
3072
  ;;
2866
3073
 
2882
3089
 
2883
3090
mingw* | pw32*)
2884
3091
  # Base MSYS/MinGW do not provide the 'file' command needed by
2885
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2886
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2887
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3092
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3093
  # unless we find 'file', for example because we are cross-compiling.
 
3094
  if ( file / ) >/dev/null 2>&1; then
 
3095
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3096
    lt_cv_file_magic_cmd='func_win32_libid'
 
3097
  else
 
3098
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3099
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3100
  fi
2888
3101
  ;;
2889
3102
 
2890
3103
darwin* | rhapsody*)
2891
3104
  lt_cv_deplibs_check_method=pass_all
2892
3105
  ;;
2893
3106
 
2894
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3107
freebsd* | dragonfly*)
2895
3108
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2896
3109
    case $host_cpu in
2897
3110
    i*86 )
2929
3142
  esac
2930
3143
  ;;
2931
3144
 
2932
 
interix3*)
 
3145
interix[[3-9]]*)
2933
3146
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2934
3147
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2935
3148
  ;;
2945
3158
  ;;
2946
3159
 
2947
3160
# This must be Linux ELF.
2948
 
linux*)
 
3161
linux* | k*bsd*-gnu)
2949
3162
  lt_cv_deplibs_check_method=pass_all
2950
3163
  ;;
2951
3164
 
2952
 
netbsd*)
 
3165
netbsd* | netbsdelf*-gnu)
2953
3166
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2954
3167
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2955
3168
  else
2979
3192
  lt_cv_deplibs_check_method=pass_all
2980
3193
  ;;
2981
3194
 
 
3195
rdos*)
 
3196
  lt_cv_deplibs_check_method=pass_all
 
3197
  ;;
 
3198
 
2982
3199
solaris*)
2983
3200
  lt_cv_deplibs_check_method=pass_all
2984
3201
  ;;
3031
3248
  lt_cv_path_NM="$NM"
3032
3249
else
3033
3250
  lt_nm_to_check="${ac_tool_prefix}nm"
3034
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3251
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3035
3252
    lt_nm_to_check="$lt_nm_to_check nm"
3036
3253
  fi
3037
3254
  for lt_tmp_nm in $lt_nm_to_check; do
3247
3464
_LT_AC_TAGVAR(objext, $1)=$objext
3248
3465
 
3249
3466
# Code to be used in simple compile tests
3250
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3467
lt_simple_compile_test_code="int some_variable = 0;"
3251
3468
 
3252
3469
# Code to be used in simple link tests
3253
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3470
lt_simple_link_test_code='int main(){return(0);}'
3254
3471
 
3255
3472
_LT_AC_SYS_COMPILER
3256
3473
 
3286
3503
  fi
3287
3504
  ;;
3288
3505
 
3289
 
aix4* | aix5*)
 
3506
aix[[4-9]]*)
3290
3507
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3291
3508
    test "$enable_shared" = yes && enable_static=no
3292
3509
  fi
3343
3560
_LT_AC_TAGVAR(predeps, $1)=
3344
3561
_LT_AC_TAGVAR(postdeps, $1)=
3345
3562
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3563
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3346
3564
 
3347
3565
# Source file extension for C++ test sources.
3348
3566
ac_ext=cpp
3352
3570
_LT_AC_TAGVAR(objext, $1)=$objext
3353
3571
 
3354
3572
# Code to be used in simple compile tests
3355
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3573
lt_simple_compile_test_code="int some_variable = 0;"
3356
3574
 
3357
3575
# Code to be used in simple link tests
3358
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3576
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3359
3577
 
3360
3578
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3361
3579
_LT_AC_SYS_COMPILER
3452
3670
    # FIXME: insert proper C++ library support
3453
3671
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3454
3672
    ;;
3455
 
  aix4* | aix5*)
 
3673
  aix[[4-9]]*)
3456
3674
    if test "$host_cpu" = ia64; then
3457
3675
      # On IA64, the linker does run time linking by default, so we don't
3458
3676
      # have to do anything special.
3465
3683
      # Test if we are trying to use run time linking or normal
3466
3684
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3467
3685
      # need to do runtime linking.
3468
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3686
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3469
3687
        for ld_flag in $LDFLAGS; do
3470
3688
          case $ld_flag in
3471
3689
          *-brtl*)
3501
3719
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3502
3720
        then
3503
3721
          # We have reworked collect2
3504
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3722
          :
3505
3723
        else
3506
3724
          # We have old collect2
3507
3725
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3611
3829
    fi
3612
3830
  ;;
3613
3831
      darwin* | rhapsody*)
3614
 
        case $host_os in
3615
 
        rhapsody* | darwin1.[[012]])
3616
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3617
 
         ;;
3618
 
       *) # Darwin 1.3 on
3619
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3620
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3621
 
         else
3622
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3623
 
             10.[[012]])
3624
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3625
 
               ;;
3626
 
             10.*)
3627
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3628
 
               ;;
3629
 
           esac
3630
 
         fi
3631
 
         ;;
3632
 
        esac
3633
3832
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3634
3833
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3635
3834
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3636
3835
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3637
3836
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3638
3837
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3639
 
 
3640
 
    if test "$GXX" = yes ; then
3641
 
      lt_int_apple_cc_single_mod=no
 
3838
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3839
      if test "$GXX" = yes ; then
3642
3840
      output_verbose_link_cmd='echo'
3643
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3644
 
       lt_int_apple_cc_single_mod=yes
 
3841
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3842
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3843
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3844
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3845
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3846
        _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${_lt_dsymutil}"
 
3847
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3645
3848
      fi
3646
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3647
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3648
 
      else
3649
 
          _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'
3650
 
        fi
3651
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3652
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3653
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3654
 
            _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}'
3655
 
          else
3656
 
            _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}'
3657
 
          fi
3658
 
            _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}'
3659
3849
      else
3660
3850
      case $cc_basename in
3661
3851
        xlc*)
3662
3852
         output_verbose_link_cmd='echo'
3663
 
          _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'
 
3853
          _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` $xlcverstring'
3664
3854
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3665
3855
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3666
 
          _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}'
 
3856
          _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3667
3857
          _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}'
3668
3858
          ;;
3669
3859
       *)
3697
3887
  freebsd-elf*)
3698
3888
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3699
3889
    ;;
3700
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3890
  freebsd* | dragonfly*)
3701
3891
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3702
3892
    # conventions
3703
3893
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3746
3936
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3747
3937
 
3748
3938
      case $host_cpu in
3749
 
      hppa*64*|ia64*)
3750
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3751
 
        ;;
 
3939
      hppa*64*|ia64*) ;;
3752
3940
      *)
3753
3941
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3754
3942
        ;;
3816
4004
        ;;
3817
4005
    esac
3818
4006
    ;;
3819
 
  interix3*)
 
4007
  interix[[3-9]]*)
3820
4008
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3821
4009
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3822
4010
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3856
4044
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3857
4045
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3858
4046
    ;;
3859
 
  linux*)
 
4047
  linux* | k*bsd*-gnu)
3860
4048
    case $cc_basename in
3861
4049
      KCC*)
3862
4050
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3908
4096
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3909
4097
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3910
4098
        ;;
3911
 
      pgCC*)
 
4099
      pgCC* | pgcpp*)
3912
4100
        # Portland Group C++ compiler
3913
4101
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3914
4102
        _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'
3936
4124
        # dependencies.
3937
4125
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3938
4126
        ;;
 
4127
      *)
 
4128
        case `$CC -V 2>&1 | sed 5q` in
 
4129
        *Sun\ C*)
 
4130
          # Sun C++ 5.9
 
4131
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4132
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4133
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
4134
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4135
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4136
 
 
4137
          # Not sure whether something based on
 
4138
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4139
          # would be better.
 
4140
          output_verbose_link_cmd='echo'
 
4141
 
 
4142
          # Archives containing C++ object files must be created using
 
4143
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4144
          # necessary to make sure instantiated templates are included
 
4145
          # in the archive.
 
4146
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4147
          ;;
 
4148
        esac
 
4149
        ;;
3939
4150
    esac
3940
4151
    ;;
3941
4152
  lynxos*)
3958
4169
        ;;
3959
4170
    esac
3960
4171
    ;;
3961
 
  netbsd*)
 
4172
  netbsd* | netbsdelf*-gnu)
3962
4173
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3963
4174
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3964
4175
      wlarc=
3974
4185
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3975
4186
    ;;
3976
4187
  openbsd*)
3977
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3978
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3979
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3980
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3981
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3982
 
      _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'
3983
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3984
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4188
    if test -f /usr/libexec/ld.so; then
 
4189
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4190
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4191
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4192
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4193
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4194
        _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'
 
4195
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4196
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4197
      fi
 
4198
      output_verbose_link_cmd='echo'
 
4199
    else
 
4200
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3985
4201
    fi
3986
 
    output_verbose_link_cmd='echo'
3987
4202
    ;;
3988
4203
  osf3*)
3989
4204
    case $cc_basename in
4145
4360
        case $host_os in
4146
4361
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4147
4362
          *)
4148
 
            # The C++ compiler is used as linker so we must use $wl
4149
 
            # flag to pass the commands to the underlying system
4150
 
            # linker. We must also pass each convience library through
4151
 
            # to the system linker between allextract/defaultextract.
4152
 
            # The C++ compiler will combine linker options so we
4153
 
            # cannot just pass the convience library names through
4154
 
            # without $wl.
 
4363
            # The compiler driver will combine and reorder linker options,
 
4364
            # but understands `-z linker_flag'.
4155
4365
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4156
 
            _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'
 
4366
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4157
4367
            ;;
4158
4368
        esac
4159
4369
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4200
4410
          fi
4201
4411
 
4202
4412
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4413
          case $host_os in
 
4414
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4415
          *)
 
4416
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4417
            ;;
 
4418
          esac
4203
4419
        fi
4204
4420
        ;;
4205
4421
    esac
4315
4531
# compiler output when linking a shared library.
4316
4532
# Parse the compiler output and extract the necessary
4317
4533
# objects, libraries and library flags.
4318
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4534
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4535
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4319
4536
dnl we can't use the lt_simple_compile_test_code here,
4320
4537
dnl because it contains code intended for an executable,
4321
4538
dnl not a library.  It's possible we should let each
4440
4657
 
4441
4658
$rm -f confest.$objext
4442
4659
 
 
4660
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4661
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4662
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4663
fi
 
4664
 
4443
4665
# PORTME: override above test on systems where it is broken
4444
4666
ifelse([$1],[CXX],
4445
4667
[case $host_os in
4446
 
interix3*)
 
4668
interix[[3-9]]*)
4447
4669
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4448
4670
  # hack all around it, let's just trust "g++" to DTRT.
4449
4671
  _LT_AC_TAGVAR(predep_objects,$1)=
4451
4673
  _LT_AC_TAGVAR(postdeps,$1)=
4452
4674
  ;;
4453
4675
 
 
4676
linux*)
 
4677
  case `$CC -V 2>&1 | sed 5q` in
 
4678
  *Sun\ C*)
 
4679
    # Sun C++ 5.9
 
4680
    #
 
4681
    # The more standards-conforming stlport4 library is
 
4682
    # incompatible with the Cstd library. Avoid specifying
 
4683
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4684
    # -library=stlport4 depends on it.
 
4685
    case " $CXX $CXXFLAGS " in
 
4686
    *" -library=stlport4 "*)
 
4687
      solaris_use_stlport4=yes
 
4688
      ;;
 
4689
    esac
 
4690
    if test "$solaris_use_stlport4" != yes; then
 
4691
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4692
    fi
 
4693
    ;;
 
4694
  esac
 
4695
  ;;
 
4696
 
4454
4697
solaris*)
4455
4698
  case $cc_basename in
4456
4699
  CC*)
 
4700
    # The more standards-conforming stlport4 library is
 
4701
    # incompatible with the Cstd library. Avoid specifying
 
4702
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4703
    # -library=stlport4 depends on it.
 
4704
    case " $CXX $CXXFLAGS " in
 
4705
    *" -library=stlport4 "*)
 
4706
      solaris_use_stlport4=yes
 
4707
      ;;
 
4708
    esac
 
4709
 
4457
4710
    # Adding this requires a known-good setup of shared libraries for
4458
4711
    # Sun compiler versions before 5.6, else PIC objects from an old
4459
4712
    # archive will be linked into the output, leading to subtle bugs.
4460
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4713
    if test "$solaris_use_stlport4" != yes; then
 
4714
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4715
    fi
4461
4716
    ;;
4462
4717
  esac
4463
4718
  ;;
4464
4719
esac
4465
4720
])
4466
 
 
4467
4721
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4468
4722
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4469
4723
esac
4506
4760
_LT_AC_TAGVAR(objext, $1)=$objext
4507
4761
 
4508
4762
# Code to be used in simple compile tests
4509
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4763
lt_simple_compile_test_code="\
 
4764
      subroutine t
 
4765
      return
 
4766
      end
 
4767
"
4510
4768
 
4511
4769
# Code to be used in simple link tests
4512
 
lt_simple_link_test_code="      program t\n      end\n"
 
4770
lt_simple_link_test_code="\
 
4771
      program t
 
4772
      end
 
4773
"
4513
4774
 
4514
4775
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4515
4776
_LT_AC_SYS_COMPILER
4541
4802
    postinstall_cmds='$RANLIB $lib'
4542
4803
  fi
4543
4804
  ;;
4544
 
aix4* | aix5*)
 
4805
aix[[4-9]]*)
4545
4806
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4546
4807
    test "$enable_shared" = yes && enable_static=no
4547
4808
  fi
4588
4849
_LT_AC_TAGVAR(objext, $1)=$objext
4589
4850
 
4590
4851
# Code to be used in simple compile tests
4591
 
lt_simple_compile_test_code="class foo {}\n"
 
4852
lt_simple_compile_test_code="class foo {}"
4592
4853
 
4593
4854
# Code to be used in simple link tests
4594
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4855
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4595
4856
 
4596
4857
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4597
4858
_LT_AC_SYS_COMPILER
4644
4905
_LT_AC_TAGVAR(objext, $1)=$objext
4645
4906
 
4646
4907
# Code to be used in simple compile tests
4647
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4908
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4648
4909
 
4649
4910
# Code to be used in simple link tests
4650
4911
lt_simple_link_test_code="$lt_simple_compile_test_code"
4718
4979
    _LT_AC_TAGVAR(predeps, $1) \
4719
4980
    _LT_AC_TAGVAR(postdeps, $1) \
4720
4981
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4982
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4721
4983
    _LT_AC_TAGVAR(archive_cmds, $1) \
4722
4984
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4723
4985
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4733
4995
    _LT_AC_TAGVAR(module_cmds, $1) \
4734
4996
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4735
4997
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4998
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4736
4999
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4737
5000
    _LT_AC_TAGVAR(include_expsyms, $1); do
4738
5001
 
4779
5042
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4780
5043
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4781
5044
#
4782
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5045
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4783
5046
# Free Software Foundation, Inc.
4784
5047
#
4785
5048
# This file is part of GNU Libtool:
5016
5279
# shared library.
5017
5280
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5018
5281
 
 
5282
# The directories searched by this compiler when creating a shared
 
5283
# library
 
5284
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5285
 
5019
5286
# The library search path used internally by the compiler when linking
5020
5287
# a shared library.
5021
5288
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5104
5371
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5105
5372
 
5106
5373
# Fix the shell variable \$srcfile for the compiler.
5107
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5374
fix_srcfile_path=$lt_fix_srcfile_path
5108
5375
 
5109
5376
# Set to yes if exported symbols are required.
5110
5377
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5187
5454
# ---------------------------------
5188
5455
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5189
5456
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5457
AC_REQUIRE([LT_AC_PROG_SED])
5190
5458
AC_REQUIRE([AC_PROG_NM])
5191
5459
AC_REQUIRE([AC_OBJEXT])
5192
5460
# Check for command to grab the raw symbol name followed by C symbol from nm.
5223
5491
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5224
5492
  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'"
5225
5493
  ;;
5226
 
linux*)
 
5494
linux* | k*bsd*-gnu)
5227
5495
  if test "$host_cpu" = ia64; then
5228
5496
    symcode='[[ABCDGIRSTW]]'
5229
5497
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5364
5632
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5365
5633
    cat conftest.$ac_ext >&5
5366
5634
  fi
5367
 
  rm -f conftest* conftst*
 
5635
  rm -rf conftest* conftst*
5368
5636
 
5369
5637
  # Do not use the global_symbol_pipe unless it works.
5370
5638
  if test "$pipe_works" = yes; then
5413
5681
      # like `-m68040'.
5414
5682
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5415
5683
      ;;
5416
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5684
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5417
5685
      # PIC is the default for these OSes.
5418
5686
      ;;
5419
 
    mingw* | os2* | pw32*)
 
5687
    mingw* | cygwin* | os2* | pw32*)
5420
5688
      # This hack is so that the source file can tell whether it is being
5421
5689
      # built for inclusion in a dll (and should export symbols for example).
5422
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5690
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5691
      # (--disable-auto-import) libraries
 
5692
      m4_if([$1], [GCJ], [],
 
5693
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5423
5694
      ;;
5424
5695
    darwin* | rhapsody*)
5425
5696
      # PIC is the default on this platform
5430
5701
      # DJGPP does not support shared libraries at all
5431
5702
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5432
5703
      ;;
5433
 
    interix3*)
 
5704
    interix[[3-9]]*)
5434
5705
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5435
5706
      # Instead, we relocate shared libraries at runtime.
5436
5707
      ;;
5456
5727
    esac
5457
5728
  else
5458
5729
    case $host_os in
5459
 
      aix4* | aix5*)
 
5730
      aix[[4-9]]*)
5460
5731
        # All AIX code is PIC.
5461
5732
        if test "$host_cpu" = ia64; then
5462
5733
          # AIX 5 now supports IA64 processor
5496
5767
            ;;
5497
5768
        esac
5498
5769
        ;;
5499
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5770
      freebsd* | dragonfly*)
5500
5771
        # FreeBSD uses GNU C++
5501
5772
        ;;
5502
5773
      hpux9* | hpux10* | hpux11*)
5539
5810
            ;;
5540
5811
        esac
5541
5812
        ;;
5542
 
      linux*)
 
5813
      linux* | k*bsd*-gnu)
5543
5814
        case $cc_basename in
5544
5815
          KCC*)
5545
5816
            # KAI C++ Compiler
5552
5823
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5553
5824
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5554
5825
            ;;
5555
 
          pgCC*)
 
5826
          pgCC* | pgcpp*)
5556
5827
            # Portland Group C++ compiler.
5557
5828
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5558
5829
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5566
5837
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5567
5838
            ;;
5568
5839
          *)
 
5840
            case `$CC -V 2>&1 | sed 5q` in
 
5841
            *Sun\ C*)
 
5842
              # Sun C++ 5.9
 
5843
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5844
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5845
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5846
              ;;
 
5847
            esac
5569
5848
            ;;
5570
5849
        esac
5571
5850
        ;;
5582
5861
            ;;
5583
5862
        esac
5584
5863
        ;;
5585
 
      netbsd*)
 
5864
      netbsd* | netbsdelf*-gnu)
5586
5865
        ;;
5587
5866
      osf3* | osf4* | osf5*)
5588
5867
        case $cc_basename in
5686
5965
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5687
5966
      ;;
5688
5967
 
5689
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5968
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5690
5969
      # PIC is the default for these OSes.
5691
5970
      ;;
5692
5971
 
5693
 
    mingw* | pw32* | os2*)
 
5972
    mingw* | cygwin* | pw32* | os2*)
5694
5973
      # This hack is so that the source file can tell whether it is being
5695
5974
      # built for inclusion in a dll (and should export symbols for example).
5696
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5975
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5976
      # (--disable-auto-import) libraries
 
5977
      m4_if([$1], [GCJ], [],
 
5978
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5697
5979
      ;;
5698
5980
 
5699
5981
    darwin* | rhapsody*)
5702
5984
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5703
5985
      ;;
5704
5986
 
5705
 
    interix3*)
 
5987
    interix[[3-9]]*)
5706
5988
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5707
5989
      # Instead, we relocate shared libraries at runtime.
5708
5990
      ;;
5760
6042
       esac
5761
6043
       ;;
5762
6044
 
5763
 
    mingw* | pw32* | os2*)
 
6045
    mingw* | cygwin* | pw32* | os2*)
5764
6046
      # This hack is so that the source file can tell whether it is being
5765
6047
      # built for inclusion in a dll (and should export symbols for example).
5766
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6048
      m4_if([$1], [GCJ], [],
 
6049
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5767
6050
      ;;
5768
6051
 
5769
6052
    hpux9* | hpux10* | hpux11*)
5793
6076
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5794
6077
      ;;
5795
6078
 
5796
 
    linux*)
 
6079
    linux* | k*bsd*-gnu)
5797
6080
      case $cc_basename in
5798
6081
      icc* | ecc*)
5799
6082
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5812
6095
        # All Alpha code is PIC.
5813
6096
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5814
6097
        ;;
 
6098
      *)
 
6099
        case `$CC -V 2>&1 | sed 5q` in
 
6100
        *Sun\ C*)
 
6101
          # Sun C 5.9
 
6102
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6103
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6104
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6105
          ;;
 
6106
        *Sun\ F*)
 
6107
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6108
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6109
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6110
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6111
          ;;
 
6112
        esac
 
6113
        ;;
5815
6114
      esac
5816
6115
      ;;
5817
6116
 
5821
6120
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5822
6121
      ;;
5823
6122
 
 
6123
    rdos*)
 
6124
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6125
      ;;
 
6126
 
5824
6127
    solaris*)
5825
6128
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5826
6129
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5880
6183
#
5881
6184
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5882
6185
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5883
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6186
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5884
6187
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5885
6188
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5886
6189
     "" | " "*) ;;
5904
6207
#
5905
6208
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5906
6209
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5907
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6210
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5908
6211
  $lt_tmp_static_flag,
5909
6212
  [],
5910
6213
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5915
6218
# ------------------------------------
5916
6219
# See if the linker supports building shared libraries.
5917
6220
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5918
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6221
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6222
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5919
6223
ifelse([$1],[CXX],[
5920
6224
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5921
6225
  case $host_os in
5922
 
  aix4* | aix5*)
 
6226
  aix[[4-9]]*)
5923
6227
    # If we're using GNU nm, then we don't want the "-C" option.
5924
6228
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5925
6229
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5932
6236
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5933
6237
  ;;
5934
6238
  cygwin* | mingw*)
5935
 
    _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'
 
6239
    _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'
 
6240
  ;;
 
6241
  linux* | k*bsd*-gnu)
 
6242
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5936
6243
  ;;
5937
6244
  *)
5938
6245
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5939
6246
  ;;
5940
6247
  esac
 
6248
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5941
6249
],[
5942
6250
  runpath_var=
5943
6251
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5968
6276
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5969
6277
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5970
6278
  # as well as any symbol that contains `d'.
5971
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6279
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5972
6280
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5973
6281
  # platforms (ab)use it in PIC code, but their linkers get confused if
5974
6282
  # the symbol is explicitly referenced.  Since portable code cannot
5975
6283
  # rely on this symbol name, it's probably fine to never include it in
5976
6284
  # preloaded symbol tables.
 
6285
  # Exclude shared library initialization/finalization symbols.
 
6286
dnl Note also adjust exclude_expsyms for C++ above.
5977
6287
  extract_expsyms_cmds=
5978
6288
  # Just being paranoid about ensuring that cc_basename is set.
5979
6289
  _LT_CC_BASENAME([$compiler])
6023
6333
 
6024
6334
    # See if GNU ld supports shared libraries.
6025
6335
    case $host_os in
6026
 
    aix3* | aix4* | aix5*)
 
6336
    aix[[3-9]]*)
6027
6337
      # On AIX/PPC, the GNU linker is very broken
6028
6338
      if test "$host_cpu" != ia64; then
6029
6339
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6071
6381
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6072
6382
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6073
6383
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6074
 
      _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'
 
6384
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6075
6385
 
6076
6386
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6077
6387
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6089
6399
      fi
6090
6400
      ;;
6091
6401
 
6092
 
    interix3*)
 
6402
    interix[[3-9]]*)
6093
6403
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6094
6404
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6095
6405
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6104
6414
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6105
6415
      ;;
6106
6416
 
6107
 
    linux*)
 
6417
    gnu* | linux* | k*bsd*-gnu)
6108
6418
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6109
6419
        tmp_addflag=
6110
6420
        case $cc_basename,$host_cpu in
6122
6432
        ifc* | ifort*)                  # Intel Fortran compiler
6123
6433
          tmp_addflag=' -nofor_main' ;;
6124
6434
        esac
6125
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6435
        case `$CC -V 2>&1 | sed 5q` in
 
6436
        *Sun\ C*)                       # Sun C 5.9
 
6437
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6438
          tmp_sharedflag='-G' ;;
 
6439
        *Sun\ F*)                       # Sun Fortran 8.3
 
6440
          tmp_sharedflag='-G' ;;
 
6441
        *)
 
6442
          tmp_sharedflag='-shared' ;;
 
6443
        esac
 
6444
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126
6445
 
6127
6446
        if test $supports_anon_versioning = yes; then
6128
6447
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6129
6448
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6130
6449
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6131
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6450
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6132
6451
        fi
 
6452
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6133
6453
      else
6134
6454
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6135
6455
      fi
6136
6456
      ;;
6137
6457
 
6138
 
    netbsd*)
 
6458
    netbsd* | netbsdelf*-gnu)
6139
6459
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6140
6460
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6141
6461
        wlarc=
6168
6488
 
6169
6489
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6170
6490
      case `$LD -v 2>&1` in
6171
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6491
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6172
6492
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6173
6493
        cat <<_LT_EOF 1>&2
6174
6494
 
6233
6553
      fi
6234
6554
      ;;
6235
6555
 
6236
 
    aix4* | aix5*)
 
6556
    aix[[4-9]]*)
6237
6557
      if test "$host_cpu" = ia64; then
6238
6558
        # On IA64, the linker does run time linking by default, so we don't
6239
6559
        # have to do anything special.
6253
6573
        # Test if we are trying to use run time linking or normal
6254
6574
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6255
6575
        # need to do runtime linking.
6256
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6576
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6257
6577
          for ld_flag in $LDFLAGS; do
6258
6578
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6259
6579
            aix_use_runtimelinking=yes
6287
6607
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6288
6608
          then
6289
6609
          # We have reworked collect2
6290
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6610
          :
6291
6611
          else
6292
6612
          # We have old collect2
6293
6613
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6380
6700
      # The linker will automatically build a .lib file if we build a DLL.
6381
6701
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6382
6702
      # FIXME: Should let the user specify the lib program.
6383
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6703
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6384
6704
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6385
6705
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6386
6706
      ;;
6413
6733
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6414
6734
    if test "$GCC" = yes ; then
6415
6735
        output_verbose_link_cmd='echo'
6416
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6417
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6418
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6419
 
      _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}'
6420
 
      _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}'
 
6736
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6737
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6738
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6739
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6421
6740
    else
6422
6741
      case $cc_basename in
6423
6742
        xlc*)
6424
6743
         output_verbose_link_cmd='echo'
6425
 
         _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'
 
6744
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6426
6745
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6427
6746
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6428
 
         _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}'
 
6747
         _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6429
6748
          _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}'
6430
6749
          ;;
6431
6750
       *)
6465
6784
      ;;
6466
6785
 
6467
6786
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6468
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6787
    freebsd* | dragonfly*)
6469
6788
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6470
6789
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6471
6790
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6567
6886
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6568
6887
      ;;
6569
6888
 
6570
 
    netbsd*)
 
6889
    netbsd* | netbsdelf*-gnu)
6571
6890
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6572
6891
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6573
6892
      else
6587
6906
      ;;
6588
6907
 
6589
6908
    openbsd*)
6590
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6591
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6595
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6909
      if test -f /usr/libexec/ld.so; then
 
6910
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6911
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6912
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6913
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6914
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6915
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6916
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6917
        else
 
6918
          case $host_os in
 
6919
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6920
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6921
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6922
             ;;
 
6923
           *)
 
6924
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6925
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6926
             ;;
 
6927
          esac
 
6928
        fi
6597
6929
      else
6598
 
       case $host_os in
6599
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6600
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6602
 
           ;;
6603
 
         *)
6604
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6605
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6606
 
           ;;
6607
 
       esac
 
6930
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6608
6931
      fi
6609
6932
      ;;
6610
6933
 
6663
6986
      case $host_os in
6664
6987
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6665
6988
      *)
6666
 
        # The compiler driver will combine linker options so we
6667
 
        # cannot just pass the convience library names through
6668
 
        # without $wl, iff we do not link with $LD.
6669
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6989
        # The compiler driver will combine and reorder linker options,
 
6990
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6991
        # but is careful enough not to reorder.
6670
6992
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6671
 
        case $wlarc in
6672
 
        '')
6673
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6674
 
        *)
6675
 
          _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' ;;
6676
 
        esac ;;
 
6993
        if test "$GCC" = yes; then
 
6994
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6995
        else
 
6996
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6997
        fi
 
6998
        ;;
6677
6999
      esac
6678
7000
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6679
7001
      ;;
6730
7052
      fi
6731
7053
      ;;
6732
7054
 
6733
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7055
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6734
7056
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6735
7057
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6736
7058
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6805
7127
      # to ld, don't add -lc before -lgcc.
6806
7128
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6807
7129
      $rm conftest*
6808
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7130
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6809
7131
 
6810
7132
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6811
7133
        soname=conftest
6908
7230
[AC_CHECK_TOOL(RC, windres, no)
6909
7231
])
6910
7232
 
 
7233
 
 
7234
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7235
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7236
 
 
7237
# _AS_TEST_PREPARE
 
7238
# ----------------
 
7239
m4_ifndef([_AS_TEST_PREPARE],
 
7240
[m4_defun([_AS_TEST_PREPARE],
 
7241
[if test -x / >/dev/null 2>&1; then
 
7242
  as_executable_p='test -x'
 
7243
else
 
7244
  as_executable_p='test -f'
 
7245
fi
 
7246
])])# _AS_TEST_PREPARE
 
7247
 
 
7248
# AS_EXECUTABLE_P
 
7249
# ---------------
 
7250
# Check whether a file is executable.
 
7251
m4_ifndef([AS_EXECUTABLE_P],
 
7252
[m4_defun([AS_EXECUTABLE_P],
 
7253
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7254
$as_executable_p $1[]dnl
 
7255
])])# AS_EXECUTABLE_P
 
7256
 
6911
7257
# NOTE: This macro has been submitted for inclusion into   #
6912
7258
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6913
7259
#  a released version of Autoconf we should remove this    #
6928
7274
  test -z "$as_dir" && as_dir=.
6929
7275
  for lt_ac_prog in sed gsed; do
6930
7276
    for ac_exec_ext in '' $ac_executable_extensions; do
6931
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7277
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6932
7278
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6933
7279
      fi
6934
7280
    done
6935
7281
  done
6936
7282
done
 
7283
IFS=$as_save_IFS
6937
7284
lt_ac_max=0
6938
7285
lt_ac_count=0
6939
7286
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6966
7313
done
6967
7314
])
6968
7315
SED=$lt_cv_path_SED
 
7316
AC_SUBST([SED])
6969
7317
AC_MSG_RESULT([$SED])
6970
7318
])
6971
7319
 
6972
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
7320
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6973
7321
#
6974
7322
# This file is free software; the Free Software Foundation
6975
7323
# gives unlimited permission to copy and/or distribute it,
6979
7327
# ----------------------------
6980
7328
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6981
7329
# generated from the m4 files accompanying Automake X.Y.
6982
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
7330
# (This private macro should not be called outside this file.)
 
7331
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
7332
[am__api_version='1.10'
 
7333
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
7334
dnl require some minimum version.  Point them to the right macro.
 
7335
m4_if([$1], [1.10.1], [],
 
7336
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
7337
])
 
7338
 
 
7339
# _AM_AUTOCONF_VERSION(VERSION)
 
7340
# -----------------------------
 
7341
# aclocal traces this macro to find the Autoconf version.
 
7342
# This is a private macro too.  Using m4_define simplifies
 
7343
# the logic in aclocal, which can simply ignore this definition.
 
7344
m4_define([_AM_AUTOCONF_VERSION], [])
6983
7345
 
6984
7346
# AM_SET_CURRENT_AUTOMAKE_VERSION
6985
7347
# -------------------------------
6986
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
7348
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6987
7349
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6988
7350
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6989
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
7351
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
7352
m4_ifndef([AC_AUTOCONF_VERSION],
 
7353
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
7354
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6990
7355
 
6991
7356
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6992
7357
 
7043
7408
 
7044
7409
# AM_CONDITIONAL                                            -*- Autoconf -*-
7045
7410
 
7046
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
7411
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7047
7412
# Free Software Foundation, Inc.
7048
7413
#
7049
7414
# This file is free software; the Free Software Foundation
7050
7415
# gives unlimited permission to copy and/or distribute it,
7051
7416
# with or without modifications, as long as this notice is preserved.
7052
7417
 
7053
 
# serial 7
 
7418
# serial 8
7054
7419
 
7055
7420
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7056
7421
# -------------------------------------
7059
7424
[AC_PREREQ(2.52)dnl
7060
7425
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7061
7426
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7062
 
AC_SUBST([$1_TRUE])
7063
 
AC_SUBST([$1_FALSE])
 
7427
AC_SUBST([$1_TRUE])dnl
 
7428
AC_SUBST([$1_FALSE])dnl
 
7429
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
7430
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7064
7431
if $2; then
7065
7432
  $1_TRUE=
7066
7433
  $1_FALSE='#'
7074
7441
Usually this means the macro was only invoked conditionally.]])
7075
7442
fi])])
7076
7443
 
7077
 
 
7078
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7444
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7079
7445
# Free Software Foundation, Inc.
7080
7446
#
7081
7447
# This file is free software; the Free Software Foundation
7082
7448
# gives unlimited permission to copy and/or distribute it,
7083
7449
# with or without modifications, as long as this notice is preserved.
7084
7450
 
7085
 
# serial 8
 
7451
# serial 9
7086
7452
 
7087
7453
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7088
7454
# written in clear, in which case automake, when reading aclocal.m4,
7110
7476
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7111
7477
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7112
7478
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
7479
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7113
7480
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7114
7481
                   [depcc="$$1"   am_compiler_list=])
7115
7482
 
7175
7542
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7176
7543
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7177
7544
         >/dev/null 2>conftest.err &&
 
7545
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7178
7546
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7179
7547
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7180
7548
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7227
7595
  AMDEPBACKSLASH='\'
7228
7596
fi
7229
7597
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7230
 
AC_SUBST([AMDEPBACKSLASH])
 
7598
AC_SUBST([AMDEPBACKSLASH])dnl
 
7599
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7231
7600
])
7232
7601
 
7233
7602
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7252
7621
  # some people rename them; so instead we look at the file content.
7253
7622
  # Grep'ing the first line is not enough: some people post-process
7254
7623
  # each Makefile.in and add a new line on top of each file to say so.
7255
 
  # So let's grep whole file.
7256
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7624
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7625
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7626
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7257
7627
    dirpart=`AS_DIRNAME("$mf")`
7258
7628
  else
7259
7629
    continue
7312
7682
 
7313
7683
# Do all the work for Automake.                             -*- Autoconf -*-
7314
7684
 
7315
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7316
 
# Free Software Foundation, Inc.
 
7685
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7686
# 2005, 2006, 2008 Free Software Foundation, Inc.
7317
7687
#
7318
7688
# This file is free software; the Free Software Foundation
7319
7689
# gives unlimited permission to copy and/or distribute it,
7320
7690
# with or without modifications, as long as this notice is preserved.
7321
7691
 
7322
 
# serial 12
 
7692
# serial 13
7323
7693
 
7324
7694
# This macro actually does too much.  Some checks are only needed if
7325
7695
# your package does certain things.  But this isn't really a big deal.
7336
7706
# arguments mandatory, and then we can depend on a new Autoconf
7337
7707
# release and drop the old call support.
7338
7708
AC_DEFUN([AM_INIT_AUTOMAKE],
7339
 
[AC_PREREQ([2.58])dnl
 
7709
[AC_PREREQ([2.60])dnl
7340
7710
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7341
7711
dnl the ones we care about.
7342
7712
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7343
7713
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7344
7714
AC_REQUIRE([AC_PROG_INSTALL])dnl
7345
 
# test to see if srcdir already configured
7346
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7347
 
   test -f $srcdir/config.status; then
7348
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7715
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7716
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7717
  # is not polluted with repeated "-I."
 
7718
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7719
  # test to see if srcdir already configured
 
7720
  if test -f $srcdir/config.status; then
 
7721
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7722
  fi
7349
7723
fi
7350
7724
 
7351
7725
# test whether we have cygpath
7365
7739
 AC_SUBST([PACKAGE], [$1])dnl
7366
7740
 AC_SUBST([VERSION], [$2])],
7367
7741
[_AM_SET_OPTIONS([$1])dnl
 
7742
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7743
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7744
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7368
7745
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7369
7746
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7370
7747
 
7400
7777
                  [_AM_DEPENDENCIES(CXX)],
7401
7778
                  [define([AC_PROG_CXX],
7402
7779
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7780
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7781
                  [_AM_DEPENDENCIES(OBJC)],
 
7782
                  [define([AC_PROG_OBJC],
 
7783
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7403
7784
])
7404
7785
])
7405
7786
 
7413
7794
# our stamp files there.
7414
7795
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7415
7796
[# Compute $1's index in $config_headers.
 
7797
_am_arg=$1
7416
7798
_am_stamp_count=1
7417
7799
for _am_header in $config_headers :; do
7418
7800
  case $_am_header in
7419
 
    $1 | $1:* )
 
7801
    $_am_arg | $_am_arg:* )
7420
7802
      break ;;
7421
7803
    * )
7422
7804
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7423
7805
  esac
7424
7806
done
7425
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7807
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7426
7808
 
7427
7809
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7428
7810
#
7435
7817
# Define $install_sh.
7436
7818
AC_DEFUN([AM_PROG_INSTALL_SH],
7437
7819
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7438
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7820
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7439
7821
AC_SUBST(install_sh)])
7440
7822
 
7441
7823
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7542
7924
 
7543
7925
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7544
7926
 
7545
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7927
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7546
7928
# Free Software Foundation, Inc.
7547
7929
#
7548
7930
# This file is free software; the Free Software Foundation
7549
7931
# gives unlimited permission to copy and/or distribute it,
7550
7932
# with or without modifications, as long as this notice is preserved.
7551
7933
 
7552
 
# serial 4
 
7934
# serial 5
7553
7935
 
7554
7936
# AM_MISSING_PROG(NAME, PROGRAM)
7555
7937
# ------------------------------
7565
7947
# If it does, set am_missing_run to use it, otherwise, to nothing.
7566
7948
AC_DEFUN([AM_MISSING_HAS_RUN],
7567
7949
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7950
AC_REQUIRE_AUX_FILE([missing])dnl
7568
7951
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7569
7952
# Use eval to expand $SHELL
7570
7953
if eval "$MISSING --run true"; then
7575
7958
fi
7576
7959
])
7577
7960
 
7578
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7961
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7579
7962
#
7580
7963
# This file is free software; the Free Software Foundation
7581
7964
# gives unlimited permission to copy and/or distribute it,
7583
7966
 
7584
7967
# AM_PROG_MKDIR_P
7585
7968
# ---------------
7586
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7587
 
#
7588
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7589
 
# created by `make install' are always world readable, even if the
7590
 
# installer happens to have an overly restrictive umask (e.g. 077).
7591
 
# This was a mistake.  There are at least two reasons why we must not
7592
 
# use `-m 0755':
7593
 
#   - it causes special bits like SGID to be ignored,
7594
 
#   - it may be too restrictive (some setups expect 775 directories).
7595
 
#
7596
 
# Do not use -m 0755 and let people choose whatever they expect by
7597
 
# setting umask.
7598
 
#
7599
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7600
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7601
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7602
 
# concurrently, both version can detect that a/ is missing, but only
7603
 
# one can create it and the other will error out.  Consequently we
7604
 
# restrict ourselves to GNU make (using the --version option ensures
7605
 
# this.)
 
7969
# Check for `mkdir -p'.
7606
7970
AC_DEFUN([AM_PROG_MKDIR_P],
7607
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7608
 
  # We used to keeping the `.' as first argument, in order to
7609
 
  # allow $(mkdir_p) to be used without argument.  As in
7610
 
  #   $(mkdir_p) $(somedir)
7611
 
  # where $(somedir) is conditionally defined.  However this is wrong
7612
 
  # for two reasons:
7613
 
  #  1. if the package is installed by a user who cannot write `.'
7614
 
  #     make install will fail,
7615
 
  #  2. the above comment should most certainly read
7616
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7617
 
  #     so it does not work when $(somedir) is undefined and
7618
 
  #     $(DESTDIR) is not.
7619
 
  #  To support the latter case, we have to write
7620
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7621
 
  #  so the `.' trick is pointless.
7622
 
  mkdir_p='mkdir -p --'
7623
 
else
7624
 
  # On NextStep and OpenStep, the `mkdir' command does not
7625
 
  # recognize any option.  It will interpret all options as
7626
 
  # directories to create, and then abort because `.' already
7627
 
  # exists.
7628
 
  for d in ./-p ./--version;
7629
 
  do
7630
 
    test -d $d && rmdir $d
7631
 
  done
7632
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7633
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7634
 
    mkdir_p='$(mkinstalldirs)'
7635
 
  else
7636
 
    mkdir_p='$(install_sh) -d'
7637
 
  fi
7638
 
fi
7639
 
AC_SUBST([mkdir_p])])
 
7971
[AC_PREREQ([2.60])dnl
 
7972
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7973
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7974
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7975
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7976
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7977
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7978
dnl adjustment using top_builddir (which is defined more often than
 
7979
dnl MKDIR_P).
 
7980
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7981
case $mkdir_p in
 
7982
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7983
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7984
esac
 
7985
])
7640
7986
 
7641
7987
# Helper functions for option handling.                     -*- Autoconf -*-
7642
7988
 
7671
8017
AC_DEFUN([_AM_IF_OPTION],
7672
8018
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7673
8019
 
 
8020
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8021
#
 
8022
# This file is free software; the Free Software Foundation
 
8023
# gives unlimited permission to copy and/or distribute it,
 
8024
# with or without modifications, as long as this notice is preserved.
 
8025
 
 
8026
# AM_RUN_LOG(COMMAND)
 
8027
# -------------------
 
8028
# Run COMMAND, save the exit status in ac_status, and log it.
 
8029
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
8030
AC_DEFUN([AM_RUN_LOG],
 
8031
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
8032
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
8033
   ac_status=$?
 
8034
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
8035
   (exit $ac_status); }])
 
8036
 
7674
8037
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
7675
8038
 
7676
8039
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7748
8111
if test "$cross_compiling" != no; then
7749
8112
  AC_CHECK_TOOL([STRIP], [strip], :)
7750
8113
fi
7751
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
8114
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7752
8115
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7753
8116
 
 
8117
# Copyright (C) 2006  Free Software Foundation, Inc.
 
8118
#
 
8119
# This file is free software; the Free Software Foundation
 
8120
# gives unlimited permission to copy and/or distribute it,
 
8121
# with or without modifications, as long as this notice is preserved.
 
8122
 
 
8123
# _AM_SUBST_NOTMAKE(VARIABLE)
 
8124
# ---------------------------
 
8125
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
8126
# This macro is traced by Automake.
 
8127
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
8128
 
7754
8129
# Check how to create a tarball.                            -*- Autoconf -*-
7755
8130
 
7756
8131
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8277
8652
])
8278
8653
 
8279
8654
 
8280
 
dnl $Id: xdt-features.m4 21591 2006-05-08 09:10:26Z benny $
 
8655
dnl $Id: xdt-features.m4 22990 2006-09-02 11:33:28Z benny $
8281
8656
dnl
8282
8657
dnl Copyright (c) 2002-2006
8283
8658
dnl         The Xfce development team. All rights reserved.
8323
8698
  AC_MSG_CHECKING([whether to build with debugging support])
8324
8699
  if test x"$enable_debug" != x"no"; then
8325
8700
    AC_DEFINE([DEBUG], [1], [Define for debugging support])
8326
 
    
8327
 
    xdt_cv_additional_CFLAGS="-Wall"
 
8701
 
 
8702
    if test x"$GCC" = x"yes"; then
 
8703
      xdt_cv_additional_CFLAGS="-Wall"
 
8704
    fi
8328
8705
    xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
8329
8706
    
8330
8707
    if test x"$enable_debug" = x"full"; then
8331
8708
      AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
8332
 
      xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
 
8709
      if test x"$GCC" = x"yes"; then
 
8710
        xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
 
8711
      fi
8333
8712
      AC_MSG_RESULT([full])
8334
8713
    else
8335
 
      xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
 
8714
      if test x"$GCC" = x"yes"; then
 
8715
        xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
 
8716
      fi
8336
8717
      AC_MSG_RESULT([yes])
8337
8718
    fi
8338
8719
 
8423
8804
  fi
8424
8805
])
8425
8806
 
8426
 
dnl $Id: xdt-i18n.m4 21591 2006-05-08 09:10:26Z benny $
 
8807
dnl $Id: xdt-i18n.m4 24486 2007-01-15 17:47:49Z benny $
8427
8808
dnl
8428
8809
dnl Copyright (c) 2002-2006
8429
8810
dnl         The Xfce development team. All rights reserved.
8492
8873
  dnl Determine additional xgettext flags
8493
8874
  AC_MSG_CHECKING([for additional xgettext flags])
8494
8875
  if test x"$XGETTEXT_ARGS" = x""; then
8495
 
    XGETTEXT_ARGS="--keyword=Q_";
 
8876
    XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
8496
8877
  else
8497
 
    XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_";
 
8878
    XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
8498
8879
  fi
8499
8880
  AC_SUBST([XGETTEXT_ARGS])
8500
8881
  AC_MSG_RESULT([$XGETTEXT_ARGS])