~ubuntu-branches/ubuntu/maverick/xchat/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-21 22:47:10 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100621224710-9t1iyiglri330pss
Tags: 2.8.8-1ubuntu1
* Merge from debian unstable (LP: #597042), remaining changes:
  - debian/patches:
    + series: Refreshed.
    + 01_serverlist.patch: Numerous changes to default serverlist.
    + 02_ubuntu_default_server.patch: select "Ubuntu servers" by default.
    + 37_lpi.patch: Add launchpad integration.
    + 38_autoconf.patch: Autoconf modifications for launchpad integration.
    + 45_brand_ctcp_version.patch: Add Ubuntu brand to CTCP version response.
    + 70_notification_strings_shorten.patch: Shorten notification strings.
  - debian/control:
    + Build-depend on libgtk2.0-dev (>= 2.10.0).
    + Build-depend on liblaunchpad-integration-dev.
    + Remove conflict/replaces on xchat-gnome.
    + Updated Maintainer field to match Ubuntu Developers.
  - debian/rules:
    + Make build independent of the python version.
  - debian/patches/45_ctcp_version_less_information.dpatch: 
    + Renamed to debian/patches/45_brand_ctcp_version.patch
    + Added short description.
* Converted all patches to quilt, as in debian quilt has been
  adopted, all old dpatch patches have been renamed with the 
  *.patch extension.
* Dropped changes:
  - 71_notification_icon_change.patch: can't be applied

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
 
[m4_fatal([this file was generated for autoconf 2.61.
16
 
You have another version of autoconf.  If you want to use that,
17
 
you should regenerate the build system entirely.], [63])])
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
 
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'.])])
18
21
 
19
22
# codeset.m4 serial 2 (gettext-0.16)
20
23
dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
38
41
  fi
39
42
])
40
43
 
41
 
# gettext.m4 serial 59 (gettext-0.16.1)
42
 
dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
 
44
# gettext.m4 serial 60 (gettext-0.17)
 
45
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
43
46
dnl This file is free software; the Free Software Foundation
44
47
dnl gives unlimited permission to copy and/or distribute it,
45
48
dnl with or without modifications, as long as this notice is preserved.
402
405
])
403
406
 
404
407
 
405
 
dnl Checks for special options needed on MacOS X.
406
 
dnl Defines INTL_MACOSX_LIBS.
407
 
AC_DEFUN([gt_INTL_MACOSX],
408
 
[
409
 
  dnl Check for API introduced in MacOS X 10.2.
410
 
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
411
 
    gt_cv_func_CFPreferencesCopyAppValue,
412
 
    [gt_save_LIBS="$LIBS"
413
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
414
 
     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
415
 
       [CFPreferencesCopyAppValue(NULL, NULL)],
416
 
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
417
 
       [gt_cv_func_CFPreferencesCopyAppValue=no])
418
 
     LIBS="$gt_save_LIBS"])
419
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
420
 
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
421
 
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
422
 
  fi
423
 
  dnl Check for API introduced in MacOS X 10.3.
424
 
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
425
 
    [gt_save_LIBS="$LIBS"
426
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
427
 
     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
428
 
       [gt_cv_func_CFLocaleCopyCurrent=yes],
429
 
       [gt_cv_func_CFLocaleCopyCurrent=no])
430
 
     LIBS="$gt_save_LIBS"])
431
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
432
 
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
433
 
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
434
 
  fi
435
 
  INTL_MACOSX_LIBS=
436
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
437
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
438
 
  fi
439
 
  AC_SUBST([INTL_MACOSX_LIBS])
440
 
])
441
 
 
442
 
 
443
408
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
444
409
m4_define([gt_NEEDS_INIT],
445
410
[
462
427
# Owen Taylor     1997-2001
463
428
 
464
429
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
465
 
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
466
 
dnl gthread is specified in MODULES, pass to pkg-config
 
430
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
 
431
dnl gthread, or gio is specified in MODULES, pass to pkg-config
467
432
dnl
468
433
AC_DEFUN([AM_PATH_GLIB_2_0],
469
434
[dnl 
488
453
         gthread) 
489
454
             pkg_config_args="$pkg_config_args gthread-2.0"
490
455
         ;;
 
456
         gio*) 
 
457
             pkg_config_args="$pkg_config_args $module-2.0"
 
458
         ;;
491
459
      esac
492
460
  done
493
461
 
551
519
  int major, minor, micro;
552
520
  char *tmp_version;
553
521
 
554
 
  system ("touch conf.glibtest");
 
522
  fclose (fopen ("conf.glibtest", "w"));
555
523
 
556
524
  /* HP/UX 9 (%@#!) writes to sscanf strings */
557
525
  tmp_version = g_strdup("$min_glib_version");
816
784
  int major, minor, micro;
817
785
  char *tmp_version;
818
786
 
819
 
  system ("touch conf.gtktest");
 
787
  fclose (fopen ("conf.gtktest", "w"));
820
788
 
821
789
  /* HP/UX 9 (%@#!) writes to sscanf strings */
822
790
  tmp_version = g_strdup("$min_gtk_version");
926
894
  rm -f conf.gtktest
927
895
])
928
896
 
929
 
# iconv.m4 serial AM4 (gettext-0.11.3)
930
 
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
 
897
# iconv.m4 serial AM6 (gettext-0.17)
 
898
dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
931
899
dnl This file is free software; the Free Software Foundation
932
900
dnl gives unlimited permission to copy and/or distribute it,
933
901
dnl with or without modifications, as long as this notice is preserved.
949
917
[
950
918
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
951
919
  dnl those with the standalone portable GNU libiconv installed).
 
920
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
952
921
 
953
922
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
954
923
  dnl accordingly.
961
930
  am_save_CPPFLAGS="$CPPFLAGS"
962
931
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
963
932
 
964
 
  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
 
933
  AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
965
934
    am_cv_func_iconv="no, consider installing GNU libiconv"
966
935
    am_cv_lib_iconv=no
967
936
    AC_TRY_LINK([#include <stdlib.h>
984
953
    fi
985
954
  ])
986
955
  if test "$am_cv_func_iconv" = yes; then
987
 
    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
 
956
    AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
 
957
      dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
 
958
      am_save_LIBS="$LIBS"
 
959
      if test $am_cv_lib_iconv = yes; then
 
960
        LIBS="$LIBS $LIBICONV"
 
961
      fi
 
962
      AC_TRY_RUN([
 
963
#include <iconv.h>
 
964
#include <string.h>
 
965
int main ()
 
966
{
 
967
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
968
     returns.  */
 
969
  {
 
970
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
971
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
972
      {
 
973
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
974
        char buf[10];
 
975
        const char *inptr = input;
 
976
        size_t inbytesleft = strlen (input);
 
977
        char *outptr = buf;
 
978
        size_t outbytesleft = sizeof (buf);
 
979
        size_t res = iconv (cd_utf8_to_88591,
 
980
                            (char **) &inptr, &inbytesleft,
 
981
                            &outptr, &outbytesleft);
 
982
        if (res == 0)
 
983
          return 1;
 
984
      }
 
985
  }
 
986
#if 0 /* This bug could be worked around by the caller.  */
 
987
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
988
  {
 
989
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
990
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
991
      {
 
992
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
993
        char buf[50];
 
994
        const char *inptr = input;
 
995
        size_t inbytesleft = strlen (input);
 
996
        char *outptr = buf;
 
997
        size_t outbytesleft = sizeof (buf);
 
998
        size_t res = iconv (cd_88591_to_utf8,
 
999
                            (char **) &inptr, &inbytesleft,
 
1000
                            &outptr, &outbytesleft);
 
1001
        if ((int)res > 0)
 
1002
          return 1;
 
1003
      }
 
1004
  }
 
1005
#endif
 
1006
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
1007
     provided.  */
 
1008
  if (/* Try standardized names.  */
 
1009
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
1010
      /* Try IRIX, OSF/1 names.  */
 
1011
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
1012
      /* Try AIX names.  */
 
1013
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
1014
      /* Try HP-UX names.  */
 
1015
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
1016
    return 1;
 
1017
  return 0;
 
1018
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
 
1019
        [case "$host_os" in
 
1020
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
1021
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
1022
         esac])
 
1023
      LIBS="$am_save_LIBS"
 
1024
    ])
 
1025
    case "$am_cv_func_iconv_works" in
 
1026
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
1027
      *)   am_func_iconv=yes ;;
 
1028
    esac
 
1029
  else
 
1030
    am_func_iconv=no am_cv_lib_iconv=no
 
1031
  fi
 
1032
  if test "$am_func_iconv" = yes; then
 
1033
    AC_DEFINE(HAVE_ICONV, 1,
 
1034
      [Define if you have the iconv() function and it works.])
988
1035
  fi
989
1036
  if test "$am_cv_lib_iconv" = yes; then
990
1037
    AC_MSG_CHECKING([how to link with libiconv])
1028
1075
  fi
1029
1076
])
1030
1077
 
1031
 
# intdiv0.m4 serial 1 (gettext-0.11.3)
1032
 
dnl Copyright (C) 2002 Free Software Foundation, Inc.
 
1078
# intdiv0.m4 serial 2 (gettext-0.17)
 
1079
dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc.
1033
1080
dnl This file is free software; the Free Software Foundation
1034
1081
dnl gives unlimited permission to copy and/or distribute it,
1035
1082
dnl with or without modifications, as long as this notice is preserved.
1044
1091
  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
1045
1092
    gt_cv_int_divbyzero_sigfpe,
1046
1093
    [
1047
 
      AC_TRY_RUN([
 
1094
      gt_cv_int_divbyzero_sigfpe=
 
1095
changequote(,)dnl
 
1096
      case "$host_os" in
 
1097
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
 
1098
          # On MacOS X 10.2 or newer, just assume the same as when cross-
 
1099
          # compiling. If we were to perform the real test, 1 Crash Report
 
1100
          # dialog window would pop up.
 
1101
          case "$host_cpu" in
 
1102
            i[34567]86 | x86_64)
 
1103
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
 
1104
          esac
 
1105
          ;;
 
1106
      esac
 
1107
changequote([,])dnl
 
1108
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
 
1109
        AC_TRY_RUN([
1048
1110
#include <stdlib.h>
1049
1111
#include <signal.h>
1050
1112
 
1051
1113
static void
1052
 
#ifdef __cplusplus
1053
1114
sigfpe_handler (int sig)
1054
 
#else
1055
 
sigfpe_handler (sig) int sig;
1056
 
#endif
1057
1115
{
1058
1116
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
1059
1117
  exit (sig != SIGFPE);
1081
1139
  exit (1);
1082
1140
}
1083
1141
], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
1084
 
        [
1085
 
          # Guess based on the CPU.
1086
 
          case "$host_cpu" in
1087
 
            alpha* | i[34567]86 | m68k | s390*)
1088
 
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
1089
 
            *)
1090
 
              gt_cv_int_divbyzero_sigfpe="guessing no";;
1091
 
          esac
1092
 
        ])
 
1142
          [
 
1143
            # Guess based on the CPU.
 
1144
changequote(,)dnl
 
1145
            case "$host_cpu" in
 
1146
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
 
1147
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
1148
              *)
 
1149
                gt_cv_int_divbyzero_sigfpe="guessing no";;
 
1150
            esac
 
1151
changequote([,])dnl
 
1152
          ])
 
1153
      fi
1093
1154
    ])
1094
1155
  case "$gt_cv_int_divbyzero_sigfpe" in
1095
1156
    *yes) value=1;;
1099
1160
    [Define if integer division by zero raises signal SIGFPE.])
1100
1161
])
1101
1162
 
1102
 
# intl.m4 serial 3 (gettext-0.16)
1103
 
dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
 
1163
# intl.m4 serial 8 (gettext-0.17)
 
1164
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
1104
1165
dnl This file is free software; the Free Software Foundation
1105
1166
dnl gives unlimited permission to copy and/or distribute it,
1106
1167
dnl with or without modifications, as long as this notice is preserved.
1134
1195
  AC_REQUIRE([gl_VISIBILITY])dnl
1135
1196
  AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
1136
1197
  AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
1137
 
  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
1138
1198
  AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
1139
1199
  AC_REQUIRE([gt_TYPE_WINT_T])dnl
1140
1200
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
1199
1259
  dnl    exported variables _also_ in the static library.
1200
1260
  if test "$enable_shared" = yes; then
1201
1261
    case "$host_os" in
1202
 
      cygwin*) is_woe32dll=yes ;;
 
1262
      mingw* | cygwin*) is_woe32dll=yes ;;
1203
1263
      *) is_woe32dll=no ;;
1204
1264
    esac
1205
1265
  else
1208
1268
  WOE32DLL=$is_woe32dll
1209
1269
  AC_SUBST([WOE32DLL])
1210
1270
 
 
1271
  dnl On mingw and Cygwin, we can activate special Makefile rules which add
 
1272
  dnl version information to the shared libraries and executables.
 
1273
  case "$host_os" in
 
1274
    mingw* | cygwin*) is_woe32=yes ;;
 
1275
    *) is_woe32=no ;;
 
1276
  esac
 
1277
  WOE32=$is_woe32
 
1278
  AC_SUBST([WOE32])
 
1279
  if test $WOE32 = yes; then
 
1280
    dnl Check for a program that compiles Windows resource files.
 
1281
    AC_CHECK_TOOL([WINDRES], [windres])
 
1282
  fi
 
1283
 
 
1284
  dnl Determine whether when creating a library, "-lc" should be passed to
 
1285
  dnl libtool or not. On many platforms, it is required for the libtool option
 
1286
  dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
 
1287
  dnl in the *.la files - makes it impossible to create multithreaded programs,
 
1288
  dnl because libtool also reorders the -lc to come before the -pthread, and
 
1289
  dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
 
1290
  case "$host_os" in
 
1291
    hpux*) LTLIBC="" ;;
 
1292
    *)     LTLIBC="-lc" ;;
 
1293
  esac
 
1294
  AC_SUBST([LTLIBC])
 
1295
 
1211
1296
  dnl Rename some macros and functions used for locking.
1212
1297
  AH_BOTTOM([
1213
1298
#define __libc_lock_t                   gl_lock_t
1298
1383
  AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
1299
1384
    [AC_TRY_LINK([#include <langinfo.h>
1300
1385
#include <locale.h>],
1301
 
      [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));],
 
1386
      [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
 
1387
       return !cs;
 
1388
      ],
1302
1389
      gt_cv_nl_locale_name=yes,
1303
1390
      gt_cv_nl_locale_name=no)
1304
1391
    ])
1359
1446
    [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
1360
1447
])
1361
1448
 
 
1449
# intlmacosx.m4 serial 1 (gettext-0.17)
 
1450
dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
 
1451
dnl This file is free software; the Free Software Foundation
 
1452
dnl gives unlimited permission to copy and/or distribute it,
 
1453
dnl with or without modifications, as long as this notice is preserved.
 
1454
dnl
 
1455
dnl This file can can be used in projects which are not available under
 
1456
dnl the GNU General Public License or the GNU Library General Public
 
1457
dnl License but which still want to provide support for the GNU gettext
 
1458
dnl functionality.
 
1459
dnl Please note that the actual code of the GNU gettext library is covered
 
1460
dnl by the GNU Library General Public License, and the rest of the GNU
 
1461
dnl gettext package package is covered by the GNU General Public License.
 
1462
dnl They are *not* in the public domain.
 
1463
 
 
1464
dnl Checks for special options needed on MacOS X.
 
1465
dnl Defines INTL_MACOSX_LIBS.
 
1466
AC_DEFUN([gt_INTL_MACOSX],
 
1467
[
 
1468
  dnl Check for API introduced in MacOS X 10.2.
 
1469
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
 
1470
    gt_cv_func_CFPreferencesCopyAppValue,
 
1471
    [gt_save_LIBS="$LIBS"
 
1472
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
1473
     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
 
1474
       [CFPreferencesCopyAppValue(NULL, NULL)],
 
1475
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
 
1476
       [gt_cv_func_CFPreferencesCopyAppValue=no])
 
1477
     LIBS="$gt_save_LIBS"])
 
1478
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
1479
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
 
1480
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
 
1481
  fi
 
1482
  dnl Check for API introduced in MacOS X 10.3.
 
1483
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
 
1484
    [gt_save_LIBS="$LIBS"
 
1485
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
1486
     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
 
1487
       [gt_cv_func_CFLocaleCopyCurrent=yes],
 
1488
       [gt_cv_func_CFLocaleCopyCurrent=no])
 
1489
     LIBS="$gt_save_LIBS"])
 
1490
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
1491
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
 
1492
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
 
1493
  fi
 
1494
  INTL_MACOSX_LIBS=
 
1495
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
1496
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
1497
  fi
 
1498
  AC_SUBST([INTL_MACOSX_LIBS])
 
1499
])
 
1500
 
1362
1501
# intmax.m4 serial 3 (gettext-0.16)
1363
1502
dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
1364
1503
dnl This file is free software; the Free Software Foundation
1599
1738
AC_LIB_PROG_LD_GNU
1600
1739
])
1601
1740
 
1602
 
# lib-link.m4 serial 9 (gettext-0.16)
1603
 
dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.
 
1741
# lib-link.m4 serial 13 (gettext-0.17)
 
1742
dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
1604
1743
dnl This file is free software; the Free Software Foundation
1605
1744
dnl gives unlimited permission to copy and/or distribute it,
1606
1745
dnl with or without modifications, as long as this notice is preserved.
1607
1746
 
1608
1747
dnl From Bruno Haible.
1609
1748
 
1610
 
AC_PREREQ(2.50)
 
1749
AC_PREREQ(2.54)
1611
1750
 
1612
1751
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
1613
1752
dnl the libraries corresponding to explicit and implicit dependencies.
1614
1753
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
1615
1754
dnl augments the CPPFLAGS variable.
 
1755
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
1756
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
1616
1757
AC_DEFUN([AC_LIB_LINKFLAGS],
1617
1758
[
1618
1759
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1625
1766
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
1626
1767
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
1627
1768
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
 
1769
    ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
1628
1770
  ])
1629
1771
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
1630
1772
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
1631
1773
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
 
1774
  LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
1632
1775
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1633
1776
  AC_SUBST([LIB]NAME)
1634
1777
  AC_SUBST([LTLIB]NAME)
 
1778
  AC_SUBST([LIB]NAME[_PREFIX])
1635
1779
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
1636
1780
  dnl results of this search when this library appears as a dependency.
1637
1781
  HAVE_LIB[]NAME=yes
1647
1791
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
1648
1792
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
1649
1793
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
 
1794
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
1795
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
1650
1796
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
1651
1797
[
1652
1798
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1683
1829
    CPPFLAGS="$ac_save_CPPFLAGS"
1684
1830
    LIB[]NAME=
1685
1831
    LTLIB[]NAME=
 
1832
    LIB[]NAME[]_PREFIX=
1686
1833
  fi
1687
1834
  AC_SUBST([HAVE_LIB]NAME)
1688
1835
  AC_SUBST([LIB]NAME)
1689
1836
  AC_SUBST([LTLIB]NAME)
 
1837
  AC_SUBST([LIB]NAME[_PREFIX])
1690
1838
  undefine([Name])
1691
1839
  undefine([NAME])
1692
1840
])
1693
1841
 
1694
1842
dnl Determine the platform dependent parameters needed to use rpath:
1695
 
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
1696
 
dnl hardcode_direct, hardcode_minus_L.
 
1843
dnl   acl_libext,
 
1844
dnl   acl_shlibext,
 
1845
dnl   acl_hardcode_libdir_flag_spec,
 
1846
dnl   acl_hardcode_libdir_separator,
 
1847
dnl   acl_hardcode_direct,
 
1848
dnl   acl_hardcode_minus_L.
1697
1849
AC_DEFUN([AC_LIB_RPATH],
1698
1850
[
1699
1851
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
1710
1862
    acl_cv_rpath=done
1711
1863
  ])
1712
1864
  wl="$acl_cv_wl"
1713
 
  libext="$acl_cv_libext"
1714
 
  shlibext="$acl_cv_shlibext"
1715
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1716
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1717
 
  hardcode_direct="$acl_cv_hardcode_direct"
1718
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
1865
  acl_libext="$acl_cv_libext"
 
1866
  acl_shlibext="$acl_cv_shlibext"
 
1867
  acl_libname_spec="$acl_cv_libname_spec"
 
1868
  acl_library_names_spec="$acl_cv_library_names_spec"
 
1869
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
1870
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
1871
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
1872
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
1719
1873
  dnl Determine whether the user wants rpath handling at all.
1720
1874
  AC_ARG_ENABLE(rpath,
1721
1875
    [  --disable-rpath         do not hardcode runtime library paths],
1725
1879
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1726
1880
dnl the libraries corresponding to explicit and implicit dependencies.
1727
1881
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
 
1882
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
 
1883
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
1728
1884
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1729
1885
[
1730
1886
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1731
1887
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1732
1888
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
1889
  dnl Autoconf >= 2.61 supports dots in --with options.
 
1890
  define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
1733
1891
  dnl By default, look in $includedir and $libdir.
1734
1892
  use_additional=yes
1735
1893
  AC_LIB_WITH_FINAL_PREFIX([
1736
1894
    eval additional_includedir=\"$includedir\"
1737
1895
    eval additional_libdir=\"$libdir\"
1738
1896
  ])
1739
 
  AC_LIB_ARG_WITH([lib$1-prefix],
1740
 
[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
1741
 
  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
 
1897
  AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
 
1898
[  --with-lib]N_A_M_E[-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
 
1899
  --without-lib]N_A_M_E[-prefix     don't search for lib$1 in includedir and libdir],
1742
1900
[
1743
1901
    if test "X$withval" = "Xno"; then
1744
1902
      use_additional=no
1759
1917
  LIB[]NAME=
1760
1918
  LTLIB[]NAME=
1761
1919
  INC[]NAME=
 
1920
  LIB[]NAME[]_PREFIX=
1762
1921
  rpathdirs=
1763
1922
  ltrpathdirs=
1764
1923
  names_already_handled=
1798
1957
          found_la=
1799
1958
          found_so=
1800
1959
          found_a=
 
1960
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
1961
          if test -n "$acl_shlibext"; then
 
1962
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
1963
          else
 
1964
            shrext=
 
1965
          fi
1801
1966
          if test $use_additional = yes; then
1802
 
            if test -n "$shlibext" \
1803
 
               && { test -f "$additional_libdir/lib$name.$shlibext" \
1804
 
                    || { test "$shlibext" = dll \
1805
 
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
1806
 
              found_dir="$additional_libdir"
1807
 
              if test -f "$additional_libdir/lib$name.$shlibext"; then
1808
 
                found_so="$additional_libdir/lib$name.$shlibext"
 
1967
            dir="$additional_libdir"
 
1968
            dnl The same code as in the loop below:
 
1969
            dnl First look for a shared library.
 
1970
            if test -n "$acl_shlibext"; then
 
1971
              if test -f "$dir/$libname$shrext"; then
 
1972
                found_dir="$dir"
 
1973
                found_so="$dir/$libname$shrext"
1809
1974
              else
1810
 
                found_so="$additional_libdir/lib$name.dll.a"
1811
 
              fi
1812
 
              if test -f "$additional_libdir/lib$name.la"; then
1813
 
                found_la="$additional_libdir/lib$name.la"
1814
 
              fi
1815
 
            else
1816
 
              if test -f "$additional_libdir/lib$name.$libext"; then
1817
 
                found_dir="$additional_libdir"
1818
 
                found_a="$additional_libdir/lib$name.$libext"
1819
 
                if test -f "$additional_libdir/lib$name.la"; then
1820
 
                  found_la="$additional_libdir/lib$name.la"
 
1975
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
1976
                  ver=`(cd "$dir" && \
 
1977
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
1978
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
1979
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
1980
                        | sed 1q ) 2>/dev/null`
 
1981
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
1982
                    found_dir="$dir"
 
1983
                    found_so="$dir/$libname$shrext.$ver"
 
1984
                  fi
 
1985
                else
 
1986
                  eval library_names=\"$acl_library_names_spec\"
 
1987
                  for f in $library_names; do
 
1988
                    if test -f "$dir/$f"; then
 
1989
                      found_dir="$dir"
 
1990
                      found_so="$dir/$f"
 
1991
                      break
 
1992
                    fi
 
1993
                  done
1821
1994
                fi
1822
1995
              fi
1823
1996
            fi
 
1997
            dnl Then look for a static library.
 
1998
            if test "X$found_dir" = "X"; then
 
1999
              if test -f "$dir/$libname.$acl_libext"; then
 
2000
                found_dir="$dir"
 
2001
                found_a="$dir/$libname.$acl_libext"
 
2002
              fi
 
2003
            fi
 
2004
            if test "X$found_dir" != "X"; then
 
2005
              if test -f "$dir/$libname.la"; then
 
2006
                found_la="$dir/$libname.la"
 
2007
              fi
 
2008
            fi
1824
2009
          fi
1825
2010
          if test "X$found_dir" = "X"; then
1826
2011
            for x in $LDFLAGS $LTLIB[]NAME; do
1828
2013
              case "$x" in
1829
2014
                -L*)
1830
2015
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
1831
 
                  if test -n "$shlibext" \
1832
 
                     && { test -f "$dir/lib$name.$shlibext" \
1833
 
                          || { test "$shlibext" = dll \
1834
 
                               && test -f "$dir/lib$name.dll.a"; }; }; then
1835
 
                    found_dir="$dir"
1836
 
                    if test -f "$dir/lib$name.$shlibext"; then
1837
 
                      found_so="$dir/lib$name.$shlibext"
 
2016
                  dnl First look for a shared library.
 
2017
                  if test -n "$acl_shlibext"; then
 
2018
                    if test -f "$dir/$libname$shrext"; then
 
2019
                      found_dir="$dir"
 
2020
                      found_so="$dir/$libname$shrext"
1838
2021
                    else
1839
 
                      found_so="$dir/lib$name.dll.a"
1840
 
                    fi
1841
 
                    if test -f "$dir/lib$name.la"; then
1842
 
                      found_la="$dir/lib$name.la"
1843
 
                    fi
1844
 
                  else
1845
 
                    if test -f "$dir/lib$name.$libext"; then
1846
 
                      found_dir="$dir"
1847
 
                      found_a="$dir/lib$name.$libext"
1848
 
                      if test -f "$dir/lib$name.la"; then
1849
 
                        found_la="$dir/lib$name.la"
 
2022
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
2023
                        ver=`(cd "$dir" && \
 
2024
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
2025
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
2026
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
2027
                              | sed 1q ) 2>/dev/null`
 
2028
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
2029
                          found_dir="$dir"
 
2030
                          found_so="$dir/$libname$shrext.$ver"
 
2031
                        fi
 
2032
                      else
 
2033
                        eval library_names=\"$acl_library_names_spec\"
 
2034
                        for f in $library_names; do
 
2035
                          if test -f "$dir/$f"; then
 
2036
                            found_dir="$dir"
 
2037
                            found_so="$dir/$f"
 
2038
                            break
 
2039
                          fi
 
2040
                        done
1850
2041
                      fi
1851
2042
                    fi
1852
2043
                  fi
 
2044
                  dnl Then look for a static library.
 
2045
                  if test "X$found_dir" = "X"; then
 
2046
                    if test -f "$dir/$libname.$acl_libext"; then
 
2047
                      found_dir="$dir"
 
2048
                      found_a="$dir/$libname.$acl_libext"
 
2049
                    fi
 
2050
                  fi
 
2051
                  if test "X$found_dir" != "X"; then
 
2052
                    if test -f "$dir/$libname.la"; then
 
2053
                      found_la="$dir/$libname.la"
 
2054
                    fi
 
2055
                  fi
1853
2056
                  ;;
1854
2057
              esac
1855
2058
              if test "X$found_dir" != "X"; then
1883
2086
                  ltrpathdirs="$ltrpathdirs $found_dir"
1884
2087
                fi
1885
2088
                dnl The hardcoding into $LIBNAME is system dependent.
1886
 
                if test "$hardcode_direct" = yes; then
 
2089
                if test "$acl_hardcode_direct" = yes; then
1887
2090
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1888
2091
                  dnl resulting binary.
1889
2092
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1890
2093
                else
1891
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
2094
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1892
2095
                    dnl Use an explicit option to hardcode DIR into the resulting
1893
2096
                    dnl binary.
1894
2097
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1919
2122
                    if test -z "$haveit"; then
1920
2123
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1921
2124
                    fi
1922
 
                    if test "$hardcode_minus_L" != no; then
 
2125
                    if test "$acl_hardcode_minus_L" != no; then
1923
2126
                      dnl FIXME: Not sure whether we should use
1924
2127
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1925
2128
                      dnl here.
1926
2129
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1927
2130
                    else
1928
 
                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
 
2131
                      dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
1929
2132
                      dnl here, because this doesn't fit in flags passed to the
1930
2133
                      dnl compiler. So give up. No hardcoding. This affects only
1931
2134
                      dnl very old systems.
1952
2155
            case "$found_dir" in
1953
2156
              */$acl_libdirstem | */$acl_libdirstem/)
1954
2157
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
2158
                LIB[]NAME[]_PREFIX="$basedir"
1955
2159
                additional_includedir="$basedir/include"
1956
2160
                ;;
1957
2161
            esac
2113
2317
    done
2114
2318
  done
2115
2319
  if test "X$rpathdirs" != "X"; then
2116
 
    if test -n "$hardcode_libdir_separator"; then
 
2320
    if test -n "$acl_hardcode_libdir_separator"; then
2117
2321
      dnl Weird platform: only the last -rpath option counts, the user must
2118
2322
      dnl pass all path elements in one option. We can arrange that for a
2119
2323
      dnl single library, but not when more than one $LIBNAMEs are used.
2120
2324
      alldirs=
2121
2325
      for found_dir in $rpathdirs; do
2122
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
2326
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2123
2327
      done
2124
 
      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
 
2328
      dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
2125
2329
      acl_save_libdir="$libdir"
2126
2330
      libdir="$alldirs"
2127
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
2331
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
2128
2332
      libdir="$acl_save_libdir"
2129
2333
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2130
2334
    else
2132
2336
      for found_dir in $rpathdirs; do
2133
2337
        acl_save_libdir="$libdir"
2134
2338
        libdir="$found_dir"
2135
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
2339
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
2136
2340
        libdir="$acl_save_libdir"
2137
2341
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2138
2342
      done
2181
2385
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2182
2386
  $1=
2183
2387
  if test "$enable_rpath" != no; then
2184
 
    if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
2388
    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2185
2389
      dnl Use an explicit option to hardcode directories into the resulting
2186
2390
      dnl binary.
2187
2391
      rpathdirs=
2215
2419
          done
2216
2420
        else
2217
2421
          dnl The linker is used for linking directly.
2218
 
          if test -n "$hardcode_libdir_separator"; then
 
2422
          if test -n "$acl_hardcode_libdir_separator"; then
2219
2423
            dnl Weird platform: only the last -rpath option counts, the user
2220
2424
            dnl must pass all path elements in one option.
2221
2425
            alldirs=
2222
2426
            for dir in $rpathdirs; do
2223
 
              alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"
 
2427
              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
2224
2428
            done
2225
2429
            acl_save_libdir="$libdir"
2226
2430
            libdir="$alldirs"
2227
 
            eval flag=\"$hardcode_libdir_flag_spec\"
 
2431
            eval flag=\"$acl_hardcode_libdir_flag_spec\"
2228
2432
            libdir="$acl_save_libdir"
2229
2433
            $1="$flag"
2230
2434
          else
2232
2436
            for dir in $rpathdirs; do
2233
2437
              acl_save_libdir="$libdir"
2234
2438
              libdir="$dir"
2235
 
              eval flag=\"$hardcode_libdir_flag_spec\"
 
2439
              eval flag=\"$acl_hardcode_libdir_flag_spec\"
2236
2440
              libdir="$acl_save_libdir"
2237
2441
              $1="${$1}${$1:+ }$flag"
2238
2442
            done
2431
2635
])
2432
2636
 
2433
2637
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2434
 
 
2435
 
# serial 51 AC_PROG_LIBTOOL
2436
 
 
2437
 
 
2438
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2439
 
# -----------------------------------------------------------
2440
 
# If this macro is not defined by Autoconf, define it here.
2441
 
m4_ifdef([AC_PROVIDE_IFELSE],
2442
 
         [],
2443
 
         [m4_define([AC_PROVIDE_IFELSE],
2444
 
                 [m4_ifdef([AC_PROVIDE_$1],
2445
 
                           [$2], [$3])])])
2446
 
 
2447
 
 
2448
 
# AC_PROG_LIBTOOL
2449
 
# ---------------
2450
 
AC_DEFUN([AC_PROG_LIBTOOL],
2451
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2452
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2453
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2454
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
2455
 
    [AC_LIBTOOL_CXX],
2456
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2457
 
  ])])
2458
 
dnl And a similar setup for Fortran 77 support
2459
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
2460
 
    [AC_LIBTOOL_F77],
2461
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2462
 
])])
2463
 
 
2464
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2465
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2466
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2467
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2468
 
    [AC_LIBTOOL_GCJ],
2469
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2470
 
      [AC_LIBTOOL_GCJ],
2471
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2472
 
        [AC_LIBTOOL_GCJ],
2473
 
      [ifdef([AC_PROG_GCJ],
2474
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2475
 
       ifdef([A][M_PROG_GCJ],
2476
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2477
 
       ifdef([LT_AC_PROG_GCJ],
2478
 
             [define([LT_AC_PROG_GCJ],
2479
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2480
 
])])# AC_PROG_LIBTOOL
2481
 
 
2482
 
 
2483
 
# _AC_PROG_LIBTOOL
2484
 
# ----------------
2485
 
AC_DEFUN([_AC_PROG_LIBTOOL],
2486
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2487
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2488
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2489
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
2638
#
 
2639
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
2640
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
2641
#   Written by Gordon Matzigkeit, 1996
 
2642
#
 
2643
# This file is free software; the Free Software Foundation gives
 
2644
# unlimited permission to copy and/or distribute it, with or without
 
2645
# modifications, as long as this notice is preserved.
 
2646
 
 
2647
m4_define([_LT_COPYING], [dnl
 
2648
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
2649
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
2650
#   Written by Gordon Matzigkeit, 1996
 
2651
#
 
2652
#   This file is part of GNU Libtool.
 
2653
#
 
2654
# GNU Libtool is free software; you can redistribute it and/or
 
2655
# modify it under the terms of the GNU General Public License as
 
2656
# published by the Free Software Foundation; either version 2 of
 
2657
# the License, or (at your option) any later version.
 
2658
#
 
2659
# As a special exception to the GNU General Public License,
 
2660
# if you distribute this file as part of a program or library that
 
2661
# is built using GNU Libtool, you may include this file under the
 
2662
# same distribution terms that you use for the rest of that program.
 
2663
#
 
2664
# GNU Libtool is distributed in the hope that it will be useful,
 
2665
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
2666
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
2667
# GNU General Public License for more details.
 
2668
#
 
2669
# You should have received a copy of the GNU General Public License
 
2670
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
2671
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
2672
# obtained by writing to the Free Software Foundation, Inc.,
 
2673
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
2674
])
 
2675
 
 
2676
# serial 56 LT_INIT
 
2677
 
 
2678
 
 
2679
# LT_PREREQ(VERSION)
 
2680
# ------------------
 
2681
# Complain and exit if this libtool version is less that VERSION.
 
2682
m4_defun([LT_PREREQ],
 
2683
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
2684
       [m4_default([$3],
 
2685
                   [m4_fatal([Libtool version $1 or higher is required],
 
2686
                             63)])],
 
2687
       [$2])])
 
2688
 
 
2689
 
 
2690
# _LT_CHECK_BUILDDIR
 
2691
# ------------------
 
2692
# Complain if the absolute build directory name contains unusual characters
 
2693
m4_defun([_LT_CHECK_BUILDDIR],
 
2694
[case `pwd` in
 
2695
  *\ * | *\     *)
 
2696
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
2697
esac
 
2698
])
 
2699
 
 
2700
 
 
2701
# LT_INIT([OPTIONS])
 
2702
# ------------------
 
2703
AC_DEFUN([LT_INIT],
 
2704
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
2705
AC_BEFORE([$0], [LT_LANG])dnl
 
2706
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
2707
AC_BEFORE([$0], [LTDL_INIT])dnl
 
2708
m4_require([_LT_CHECK_BUILDDIR])dnl
 
2709
 
 
2710
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
2711
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
2712
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
2713
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
2714
dnl unless we require an AC_DEFUNed macro:
 
2715
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
2716
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
2717
AC_REQUIRE([LTVERSION_VERSION])dnl
 
2718
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
2719
m4_require([_LT_PROG_LTMAIN])dnl
 
2720
 
 
2721
dnl Parse OPTIONS
 
2722
_LT_SET_OPTIONS([$0], [$1])
2490
2723
 
2491
2724
# This can be used to rebuild libtool when needed
2492
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
2725
LIBTOOL_DEPS="$ltmain"
2493
2726
 
2494
2727
# Always use our own libtool.
2495
2728
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2496
2729
AC_SUBST(LIBTOOL)dnl
2497
2730
 
2498
 
# Prevent multiple expansion
2499
 
define([AC_PROG_LIBTOOL], [])
2500
 
])# _AC_PROG_LIBTOOL
2501
 
 
2502
 
 
2503
 
# AC_LIBTOOL_SETUP
2504
 
# ----------------
2505
 
AC_DEFUN([AC_LIBTOOL_SETUP],
2506
 
[AC_PREREQ(2.50)dnl
2507
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
2508
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
2509
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2510
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2731
_LT_SETUP
 
2732
 
 
2733
# Only expand once:
 
2734
m4_define([LT_INIT])
 
2735
])# LT_INIT
 
2736
 
 
2737
# Old names:
 
2738
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
2739
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
2740
dnl aclocal-1.4 backwards compatibility:
 
2741
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
2742
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
2743
 
 
2744
 
 
2745
# _LT_CC_BASENAME(CC)
 
2746
# -------------------
 
2747
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
2748
m4_defun([_LT_CC_BASENAME],
 
2749
[for cc_temp in $1""; do
 
2750
  case $cc_temp in
 
2751
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
2752
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
2753
    \-*) ;;
 
2754
    *) break;;
 
2755
  esac
 
2756
done
 
2757
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
2758
])
 
2759
 
 
2760
 
 
2761
# _LT_FILEUTILS_DEFAULTS
 
2762
# ----------------------
 
2763
# It is okay to use these file commands and assume they have been set
 
2764
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
2765
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
2766
[: ${CP="cp -f"}
 
2767
: ${MV="mv -f"}
 
2768
: ${RM="rm -f"}
 
2769
])# _LT_FILEUTILS_DEFAULTS
 
2770
 
 
2771
 
 
2772
# _LT_SETUP
 
2773
# ---------
 
2774
m4_defun([_LT_SETUP],
 
2775
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2511
2776
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2777
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
2778
_LT_DECL([], [host], [0])dnl
 
2779
_LT_DECL([], [host_os], [0])dnl
 
2780
dnl
 
2781
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
2782
_LT_DECL([], [build], [0])dnl
 
2783
_LT_DECL([], [build_os], [0])dnl
 
2784
dnl
2512
2785
AC_REQUIRE([AC_PROG_CC])dnl
2513
 
AC_REQUIRE([AC_PROG_LD])dnl
2514
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2515
 
AC_REQUIRE([AC_PROG_NM])dnl
2516
 
 
 
2786
AC_REQUIRE([LT_PATH_LD])dnl
 
2787
AC_REQUIRE([LT_PATH_NM])dnl
 
2788
dnl
2517
2789
AC_REQUIRE([AC_PROG_LN_S])dnl
2518
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2519
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2520
 
AC_REQUIRE([AC_OBJEXT])dnl
2521
 
AC_REQUIRE([AC_EXEEXT])dnl
2522
 
dnl
2523
 
 
2524
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
2525
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2526
 
AC_LIBTOOL_OBJDIR
2527
 
 
2528
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2529
 
_LT_AC_PROG_ECHO_BACKSLASH
 
2790
test -z "$LN_S" && LN_S="ln -s"
 
2791
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
2792
dnl
 
2793
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
2794
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
2795
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
2796
dnl
 
2797
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2798
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
2799
m4_require([_LT_CMD_RELOAD])dnl
 
2800
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
2801
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
2802
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
2803
 
 
2804
_LT_CONFIG_LIBTOOL_INIT([
 
2805
# See if we are running on zsh, and set the options which allow our
 
2806
# commands through without removal of \ escapes INIT.
 
2807
if test -n "\${ZSH_VERSION+set}" ; then
 
2808
   setopt NO_GLOB_SUBST
 
2809
fi
 
2810
])
 
2811
if test -n "${ZSH_VERSION+set}" ; then
 
2812
   setopt NO_GLOB_SUBST
 
2813
fi
 
2814
 
 
2815
_LT_CHECK_OBJDIR
 
2816
 
 
2817
m4_require([_LT_TAG_COMPILER])dnl
 
2818
_LT_PROG_ECHO_BACKSLASH
2530
2819
 
2531
2820
case $host_os in
2532
2821
aix3*)
2542
2831
 
2543
2832
# Sed substitution that helps us do robust quoting.  It backslashifies
2544
2833
# metacharacters that are still active within double-quoted strings.
2545
 
Xsed='sed -e 1s/^X//'
2546
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
2834
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2547
2835
 
2548
2836
# Same as above, but do not quote variable references.
2549
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
2837
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2550
2838
 
2551
2839
# Sed substitution to delay expansion of an escaped shell variable in a
2552
2840
# double_quote_subst'ed string.
2553
2841
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2554
2842
 
 
2843
# Sed substitution to delay expansion of an escaped single quote.
 
2844
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
2845
 
2555
2846
# Sed substitution to avoid accidental globbing in evaled expressions
2556
2847
no_glob_subst='s/\*/\\\*/g'
2557
2848
 
2558
 
# Constants:
2559
 
rm="rm -f"
2560
 
 
2561
2849
# Global variables:
2562
 
default_ofile=libtool
 
2850
ofile=libtool
2563
2851
can_build_shared=yes
2564
2852
 
2565
2853
# All known linkers require a `.a' archive for static linking (except MSVC,
2566
2854
# which needs '.lib').
2567
2855
libext=a
2568
 
ltmain="$ac_aux_dir/ltmain.sh"
2569
 
ofile="$default_ofile"
 
2856
 
2570
2857
with_gnu_ld="$lt_cv_prog_gnu_ld"
2571
2858
 
2572
 
AC_CHECK_TOOL(AR, ar, false)
2573
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2574
 
AC_CHECK_TOOL(STRIP, strip, :)
2575
 
 
2576
2859
old_CC="$CC"
2577
2860
old_CFLAGS="$CFLAGS"
2578
2861
 
2579
2862
# Set sane defaults for various variables
2580
 
test -z "$AR" && AR=ar
2581
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2582
 
test -z "$AS" && AS=as
2583
2863
test -z "$CC" && CC=cc
2584
2864
test -z "$LTCC" && LTCC=$CC
2585
2865
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2586
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
2587
2866
test -z "$LD" && LD=ld
2588
 
test -z "$LN_S" && LN_S="ln -s"
2589
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2590
 
test -z "$NM" && NM=nm
2591
 
test -z "$SED" && SED=sed
2592
 
test -z "$OBJDUMP" && OBJDUMP=objdump
2593
 
test -z "$RANLIB" && RANLIB=:
2594
 
test -z "$STRIP" && STRIP=:
2595
2867
test -z "$ac_objext" && ac_objext=o
2596
2868
 
2597
 
# Determine commands to create old-style static archives.
2598
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2599
 
old_postinstall_cmds='chmod 644 $oldlib'
2600
 
old_postuninstall_cmds=
2601
 
 
2602
 
if test -n "$RANLIB"; then
2603
 
  case $host_os in
2604
 
  openbsd*)
2605
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2606
 
    ;;
2607
 
  *)
2608
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2609
 
    ;;
2610
 
  esac
2611
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2612
 
fi
2613
 
 
2614
2869
_LT_CC_BASENAME([$compiler])
2615
2870
 
2616
2871
# Only perform the check for file, if the check method requires it
 
2872
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2617
2873
case $deplibs_check_method in
2618
2874
file_magic*)
2619
2875
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2620
 
    AC_PATH_MAGIC
 
2876
    _LT_PATH_MAGIC
2621
2877
  fi
2622
2878
  ;;
2623
2879
esac
2624
2880
 
2625
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2626
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2627
 
enable_win32_dll=yes, enable_win32_dll=no)
2628
 
 
2629
 
AC_ARG_ENABLE([libtool-lock],
2630
 
    [AC_HELP_STRING([--disable-libtool-lock],
2631
 
        [avoid locking (might break parallel builds)])])
2632
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2633
 
 
2634
 
AC_ARG_WITH([pic],
2635
 
    [AC_HELP_STRING([--with-pic],
2636
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2637
 
    [pic_mode="$withval"],
2638
 
    [pic_mode=default])
2639
 
test -z "$pic_mode" && pic_mode=default
2640
 
 
2641
2881
# Use C for the default configuration in the libtool script
2642
 
tagname=
2643
 
AC_LIBTOOL_LANG_C_CONFIG
2644
 
_LT_AC_TAGCONFIG
2645
 
])# AC_LIBTOOL_SETUP
2646
 
 
2647
 
 
2648
 
# _LT_AC_SYS_COMPILER
 
2882
LT_SUPPORTED_TAG([CC])
 
2883
_LT_LANG_C_CONFIG
 
2884
_LT_LANG_DEFAULT_CONFIG
 
2885
_LT_CONFIG_COMMANDS
 
2886
])# _LT_SETUP
 
2887
 
 
2888
 
 
2889
# _LT_PROG_LTMAIN
 
2890
# ---------------
 
2891
# Note that this code is called both from `configure', and `config.status'
 
2892
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
2893
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
2894
# so we pass a copy along to make sure it has a sensible value anyway.
 
2895
m4_defun([_LT_PROG_LTMAIN],
 
2896
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
2897
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
2898
ltmain="$ac_aux_dir/ltmain.sh"
 
2899
])# _LT_PROG_LTMAIN
 
2900
 
 
2901
 
 
2902
 
 
2903
# So that we can recreate a full libtool script including additional
 
2904
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
2905
# in macros and then make a single call at the end using the `libtool'
 
2906
# label.
 
2907
 
 
2908
 
 
2909
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
2910
# ----------------------------------------
 
2911
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
2912
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
2913
[m4_ifval([$1],
 
2914
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
2915
                     [$1
 
2916
])])])
 
2917
 
 
2918
# Initialize.
 
2919
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
2920
 
 
2921
 
 
2922
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
2923
# ------------------------------
 
2924
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
2925
m4_define([_LT_CONFIG_LIBTOOL],
 
2926
[m4_ifval([$1],
 
2927
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
2928
                     [$1
 
2929
])])])
 
2930
 
 
2931
# Initialize.
 
2932
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
2933
 
 
2934
 
 
2935
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
2936
# -----------------------------------------------------
 
2937
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
2938
[_LT_CONFIG_LIBTOOL([$1])
 
2939
_LT_CONFIG_LIBTOOL_INIT([$2])
 
2940
])
 
2941
 
 
2942
 
 
2943
# _LT_FORMAT_COMMENT([COMMENT])
 
2944
# -----------------------------
 
2945
# Add leading comment marks to the start of each line, and a trailing
 
2946
# full-stop to the whole comment if one is not present already.
 
2947
m4_define([_LT_FORMAT_COMMENT],
 
2948
[m4_ifval([$1], [
 
2949
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
2950
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
2951
)])
 
2952
 
 
2953
 
 
2954
 
 
2955
 
 
2956
 
 
2957
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
2958
# -------------------------------------------------------------------
 
2959
# CONFIGNAME is the name given to the value in the libtool script.
 
2960
# VARNAME is the (base) name used in the configure script.
 
2961
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
2962
# VARNAME.  Any other value will be used directly.
 
2963
m4_define([_LT_DECL],
 
2964
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
2965
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
2966
        [m4_ifval([$1], [$1], [$2])])
 
2967
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
2968
    m4_ifval([$4],
 
2969
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
2970
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
2971
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
2972
])
 
2973
 
 
2974
 
 
2975
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
2976
# --------------------------------------------------------
 
2977
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
2978
 
 
2979
 
 
2980
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
2981
# ------------------------------------------------
 
2982
m4_define([lt_decl_tag_varnames],
 
2983
[_lt_decl_filter([tagged?], [yes], $@)])
 
2984
 
 
2985
 
 
2986
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
2987
# ---------------------------------------------------------
 
2988
m4_define([_lt_decl_filter],
 
2989
[m4_case([$#],
 
2990
  [0], [m4_fatal([$0: too few arguments: $#])],
 
2991
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
2992
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
2993
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
2994
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
2995
])
 
2996
 
 
2997
 
 
2998
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
2999
# --------------------------------------------------
 
3000
m4_define([lt_decl_quote_varnames],
 
3001
[_lt_decl_filter([value], [1], $@)])
 
3002
 
 
3003
 
 
3004
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
3005
# ---------------------------------------------------
 
3006
m4_define([lt_decl_dquote_varnames],
 
3007
[_lt_decl_filter([value], [2], $@)])
 
3008
 
 
3009
 
 
3010
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
3011
# ---------------------------------------------------
 
3012
m4_define([lt_decl_varnames_tagged],
 
3013
[m4_assert([$# <= 2])dnl
 
3014
_$0(m4_quote(m4_default([$1], [[, ]])),
 
3015
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
3016
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
3017
m4_define([_lt_decl_varnames_tagged],
 
3018
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
3019
 
 
3020
 
 
3021
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
3022
# ------------------------------------------------
 
3023
m4_define([lt_decl_all_varnames],
 
3024
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
3025
     m4_if([$2], [],
 
3026
           m4_quote(lt_decl_varnames),
 
3027
        m4_quote(m4_shift($@))))[]dnl
 
3028
])
 
3029
m4_define([_lt_decl_all_varnames],
 
3030
[lt_join($@, lt_decl_varnames_tagged([$1],
 
3031
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
3032
])
 
3033
 
 
3034
 
 
3035
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
3036
# ------------------------------------
 
3037
# Quote a variable value, and forward it to `config.status' so that its
 
3038
# declaration there will have the same value as in `configure'.  VARNAME
 
3039
# must have a single quote delimited value for this to work.
 
3040
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
3041
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
3042
 
 
3043
 
 
3044
# _LT_CONFIG_STATUS_DECLARATIONS
 
3045
# ------------------------------
 
3046
# We delimit libtool config variables with single quotes, so when
 
3047
# we write them to config.status, we have to be sure to quote all
 
3048
# embedded single quotes properly.  In configure, this macro expands
 
3049
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
3050
#
 
3051
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
3052
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
3053
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
3054
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
3055
 
 
3056
 
 
3057
# _LT_LIBTOOL_TAGS
 
3058
# ----------------
 
3059
# Output comment and list of tags supported by the script
 
3060
m4_defun([_LT_LIBTOOL_TAGS],
 
3061
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
3062
available_tags="_LT_TAGS"dnl
 
3063
])
 
3064
 
 
3065
 
 
3066
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
3067
# -----------------------------------
 
3068
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
3069
# expand to a commented shell variable setting:
 
3070
#
 
3071
#    # Some comment about what VAR is for.
 
3072
#    visible_name=$lt_internal_name
 
3073
m4_define([_LT_LIBTOOL_DECLARE],
 
3074
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
3075
                                           [description])))[]dnl
 
3076
m4_pushdef([_libtool_name],
 
3077
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
3078
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
3079
    [0], [_libtool_name=[$]$1],
 
3080
    [1], [_libtool_name=$lt_[]$1],
 
3081
    [2], [_libtool_name=$lt_[]$1],
 
3082
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
3083
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
3084
])
 
3085
 
 
3086
 
 
3087
# _LT_LIBTOOL_CONFIG_VARS
 
3088
# -----------------------
 
3089
# Produce commented declarations of non-tagged libtool config variables
 
3090
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
3091
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
3092
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
3093
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
3094
[m4_foreach([_lt_var],
 
3095
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
3096
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
3097
 
 
3098
 
 
3099
# _LT_LIBTOOL_TAG_VARS(TAG)
 
3100
# -------------------------
 
3101
m4_define([_LT_LIBTOOL_TAG_VARS],
 
3102
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
3103
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
3104
 
 
3105
 
 
3106
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
3107
# ------------------------------
 
3108
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
3109
 
 
3110
 
 
3111
# _LT_CONFIG_COMMANDS
2649
3112
# -------------------
2650
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
3113
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
3114
# variables for single and double quote escaping we saved from calls
 
3115
# to _LT_DECL, we can put quote escaped variables declarations
 
3116
# into `config.status', and then the shell code to quote escape them in
 
3117
# for loops in `config.status'.  Finally, any additional code accumulated
 
3118
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
3119
m4_defun([_LT_CONFIG_COMMANDS],
 
3120
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
3121
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
3122
        dnl instead of duplicating it all over again into config.status,
 
3123
        dnl then we will have config.status run $CONFIG_LT later, so it
 
3124
        dnl needs to know what name is stored there:
 
3125
        [AC_CONFIG_COMMANDS([libtool],
 
3126
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
3127
    dnl If the libtool generation code is destined for config.status,
 
3128
    dnl expand the accumulated commands and init code now:
 
3129
    [AC_CONFIG_COMMANDS([libtool],
 
3130
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
3131
])#_LT_CONFIG_COMMANDS
 
3132
 
 
3133
 
 
3134
# Initialize.
 
3135
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
3136
[
 
3137
 
 
3138
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
3139
# if CDPATH is set.
 
3140
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
3141
 
 
3142
sed_quote_subst='$sed_quote_subst'
 
3143
double_quote_subst='$double_quote_subst'
 
3144
delay_variable_subst='$delay_variable_subst'
 
3145
_LT_CONFIG_STATUS_DECLARATIONS
 
3146
LTCC='$LTCC'
 
3147
LTCFLAGS='$LTCFLAGS'
 
3148
compiler='$compiler_DEFAULT'
 
3149
 
 
3150
# Quote evaled strings.
 
3151
for var in lt_decl_all_varnames([[ \
 
3152
]], lt_decl_quote_varnames); do
 
3153
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
3154
    *[[\\\\\\\`\\"\\\$]]*)
 
3155
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
3156
      ;;
 
3157
    *)
 
3158
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
3159
      ;;
 
3160
    esac
 
3161
done
 
3162
 
 
3163
# Double-quote double-evaled strings.
 
3164
for var in lt_decl_all_varnames([[ \
 
3165
]], lt_decl_dquote_varnames); do
 
3166
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
3167
    *[[\\\\\\\`\\"\\\$]]*)
 
3168
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
3169
      ;;
 
3170
    *)
 
3171
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
3172
      ;;
 
3173
    esac
 
3174
done
 
3175
 
 
3176
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
3177
case \$lt_ECHO in
 
3178
*'\\\[$]0 --fallback-echo"')dnl "
 
3179
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
3180
  ;;
 
3181
esac
 
3182
 
 
3183
_LT_OUTPUT_LIBTOOL_INIT
 
3184
])
 
3185
 
 
3186
 
 
3187
# LT_OUTPUT
 
3188
# ---------
 
3189
# This macro allows early generation of the libtool script (before
 
3190
# AC_OUTPUT is called), incase it is used in configure for compilation
 
3191
# tests.
 
3192
AC_DEFUN([LT_OUTPUT],
 
3193
[: ${CONFIG_LT=./config.lt}
 
3194
AC_MSG_NOTICE([creating $CONFIG_LT])
 
3195
cat >"$CONFIG_LT" <<_LTEOF
 
3196
#! $SHELL
 
3197
# Generated by $as_me.
 
3198
# Run this file to recreate a libtool stub with the current configuration.
 
3199
 
 
3200
lt_cl_silent=false
 
3201
SHELL=\${CONFIG_SHELL-$SHELL}
 
3202
_LTEOF
 
3203
 
 
3204
cat >>"$CONFIG_LT" <<\_LTEOF
 
3205
AS_SHELL_SANITIZE
 
3206
_AS_PREPARE
 
3207
 
 
3208
exec AS_MESSAGE_FD>&1
 
3209
exec AS_MESSAGE_LOG_FD>>config.log
 
3210
{
 
3211
  echo
 
3212
  AS_BOX([Running $as_me.])
 
3213
} >&AS_MESSAGE_LOG_FD
 
3214
 
 
3215
lt_cl_help="\
 
3216
\`$as_me' creates a local libtool stub from the current configuration,
 
3217
for use in further configure time tests before the real libtool is
 
3218
generated.
 
3219
 
 
3220
Usage: $[0] [[OPTIONS]]
 
3221
 
 
3222
  -h, --help      print this help, then exit
 
3223
  -V, --version   print version number, then exit
 
3224
  -q, --quiet     do not print progress messages
 
3225
  -d, --debug     don't remove temporary files
 
3226
 
 
3227
Report bugs to <bug-libtool@gnu.org>."
 
3228
 
 
3229
lt_cl_version="\
 
3230
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
3231
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
3232
configured by $[0], generated by m4_PACKAGE_STRING.
 
3233
 
 
3234
Copyright (C) 2008 Free Software Foundation, Inc.
 
3235
This config.lt script is free software; the Free Software Foundation
 
3236
gives unlimited permision to copy, distribute and modify it."
 
3237
 
 
3238
while test $[#] != 0
 
3239
do
 
3240
  case $[1] in
 
3241
    --version | --v* | -V )
 
3242
      echo "$lt_cl_version"; exit 0 ;;
 
3243
    --help | --h* | -h )
 
3244
      echo "$lt_cl_help"; exit 0 ;;
 
3245
    --debug | --d* | -d )
 
3246
      debug=: ;;
 
3247
    --quiet | --q* | --silent | --s* | -q )
 
3248
      lt_cl_silent=: ;;
 
3249
 
 
3250
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
3251
Try \`$[0] --help' for more information.]) ;;
 
3252
 
 
3253
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
3254
Try \`$[0] --help' for more information.]) ;;
 
3255
  esac
 
3256
  shift
 
3257
done
 
3258
 
 
3259
if $lt_cl_silent; then
 
3260
  exec AS_MESSAGE_FD>/dev/null
 
3261
fi
 
3262
_LTEOF
 
3263
 
 
3264
cat >>"$CONFIG_LT" <<_LTEOF
 
3265
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
3266
_LTEOF
 
3267
 
 
3268
cat >>"$CONFIG_LT" <<\_LTEOF
 
3269
AC_MSG_NOTICE([creating $ofile])
 
3270
_LT_OUTPUT_LIBTOOL_COMMANDS
 
3271
AS_EXIT(0)
 
3272
_LTEOF
 
3273
chmod +x "$CONFIG_LT"
 
3274
 
 
3275
# configure is writing to config.log, but config.lt does its own redirection,
 
3276
# appending to config.log, which fails on DOS, as config.log is still kept
 
3277
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
3278
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
3279
if test "$no_create" != yes; then
 
3280
  lt_cl_success=:
 
3281
  test "$silent" = yes &&
 
3282
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
3283
  exec AS_MESSAGE_LOG_FD>/dev/null
 
3284
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
3285
  exec AS_MESSAGE_LOG_FD>>config.log
 
3286
  $lt_cl_success || AS_EXIT(1)
 
3287
fi
 
3288
])# LT_OUTPUT
 
3289
 
 
3290
 
 
3291
# _LT_CONFIG(TAG)
 
3292
# ---------------
 
3293
# If TAG is the built-in tag, create an initial libtool script with a
 
3294
# default configuration from the untagged config vars.  Otherwise add code
 
3295
# to config.status for appending the configuration named by TAG from the
 
3296
# matching tagged config vars.
 
3297
m4_defun([_LT_CONFIG],
 
3298
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3299
_LT_CONFIG_SAVE_COMMANDS([
 
3300
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
3301
  m4_if(_LT_TAG, [C], [
 
3302
    # See if we are running on zsh, and set the options which allow our
 
3303
    # commands through without removal of \ escapes.
 
3304
    if test -n "${ZSH_VERSION+set}" ; then
 
3305
      setopt NO_GLOB_SUBST
 
3306
    fi
 
3307
 
 
3308
    cfgfile="${ofile}T"
 
3309
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
3310
    $RM "$cfgfile"
 
3311
 
 
3312
    cat <<_LT_EOF >> "$cfgfile"
 
3313
#! $SHELL
 
3314
 
 
3315
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
3316
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
3317
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
3318
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
3319
#
 
3320
_LT_COPYING
 
3321
_LT_LIBTOOL_TAGS
 
3322
 
 
3323
# ### BEGIN LIBTOOL CONFIG
 
3324
_LT_LIBTOOL_CONFIG_VARS
 
3325
_LT_LIBTOOL_TAG_VARS
 
3326
# ### END LIBTOOL CONFIG
 
3327
 
 
3328
_LT_EOF
 
3329
 
 
3330
  case $host_os in
 
3331
  aix3*)
 
3332
    cat <<\_LT_EOF >> "$cfgfile"
 
3333
# AIX sometimes has problems with the GCC collect2 program.  For some
 
3334
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
3335
# vanish in a puff of smoke.
 
3336
if test "X${COLLECT_NAMES+set}" != Xset; then
 
3337
  COLLECT_NAMES=
 
3338
  export COLLECT_NAMES
 
3339
fi
 
3340
_LT_EOF
 
3341
    ;;
 
3342
  esac
 
3343
 
 
3344
  _LT_PROG_LTMAIN
 
3345
 
 
3346
  # We use sed instead of cat because bash on DJGPP gets confused if
 
3347
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
3348
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
3349
  # is reportedly fixed, but why not run on old versions too?
 
3350
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
3351
    || (rm -f "$cfgfile"; exit 1)
 
3352
 
 
3353
  _LT_PROG_XSI_SHELLFNS
 
3354
 
 
3355
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
3356
    || (rm -f "$cfgfile"; exit 1)
 
3357
 
 
3358
  mv -f "$cfgfile" "$ofile" ||
 
3359
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
3360
  chmod +x "$ofile"
 
3361
],
 
3362
[cat <<_LT_EOF >> "$ofile"
 
3363
 
 
3364
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
3365
dnl in a comment (ie after a #).
 
3366
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
3367
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
3368
# ### END LIBTOOL TAG CONFIG: $1
 
3369
_LT_EOF
 
3370
])dnl /m4_if
 
3371
],
 
3372
[m4_if([$1], [], [
 
3373
    PACKAGE='$PACKAGE'
 
3374
    VERSION='$VERSION'
 
3375
    TIMESTAMP='$TIMESTAMP'
 
3376
    RM='$RM'
 
3377
    ofile='$ofile'], [])
 
3378
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
3379
])# _LT_CONFIG
 
3380
 
 
3381
 
 
3382
# LT_SUPPORTED_TAG(TAG)
 
3383
# ---------------------
 
3384
# Trace this macro to discover what tags are supported by the libtool
 
3385
# --tag option, using:
 
3386
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
3387
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
3388
 
 
3389
 
 
3390
# C support is built-in for now
 
3391
m4_define([_LT_LANG_C_enabled], [])
 
3392
m4_define([_LT_TAGS], [])
 
3393
 
 
3394
 
 
3395
# LT_LANG(LANG)
 
3396
# -------------
 
3397
# Enable libtool support for the given language if not already enabled.
 
3398
AC_DEFUN([LT_LANG],
 
3399
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
3400
m4_case([$1],
 
3401
  [C],                  [_LT_LANG(C)],
 
3402
  [C++],                [_LT_LANG(CXX)],
 
3403
  [Java],               [_LT_LANG(GCJ)],
 
3404
  [Fortran 77],         [_LT_LANG(F77)],
 
3405
  [Fortran],            [_LT_LANG(FC)],
 
3406
  [Windows Resource],   [_LT_LANG(RC)],
 
3407
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
3408
    [_LT_LANG($1)],
 
3409
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
3410
])# LT_LANG
 
3411
 
 
3412
 
 
3413
# _LT_LANG(LANGNAME)
 
3414
# ------------------
 
3415
m4_defun([_LT_LANG],
 
3416
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
3417
  [LT_SUPPORTED_TAG([$1])dnl
 
3418
  m4_append([_LT_TAGS], [$1 ])dnl
 
3419
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
3420
  _LT_LANG_$1_CONFIG($1)])dnl
 
3421
])# _LT_LANG
 
3422
 
 
3423
 
 
3424
# _LT_LANG_DEFAULT_CONFIG
 
3425
# -----------------------
 
3426
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
3427
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
3428
  [LT_LANG(CXX)],
 
3429
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
3430
 
 
3431
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
3432
  [LT_LANG(F77)],
 
3433
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
3434
 
 
3435
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
3436
  [LT_LANG(FC)],
 
3437
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
3438
 
 
3439
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
3440
dnl pulling things in needlessly.
 
3441
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
3442
  [LT_LANG(GCJ)],
 
3443
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
3444
    [LT_LANG(GCJ)],
 
3445
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
3446
      [LT_LANG(GCJ)],
 
3447
      [m4_ifdef([AC_PROG_GCJ],
 
3448
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
3449
       m4_ifdef([A][M_PROG_GCJ],
 
3450
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
3451
       m4_ifdef([LT_PROG_GCJ],
 
3452
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
3453
 
 
3454
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
3455
  [LT_LANG(RC)],
 
3456
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
3457
])# _LT_LANG_DEFAULT_CONFIG
 
3458
 
 
3459
# Obsolete macros:
 
3460
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
3461
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
3462
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
3463
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
3464
dnl aclocal-1.4 backwards compatibility:
 
3465
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
3466
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
3467
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
3468
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
3469
 
 
3470
 
 
3471
# _LT_TAG_COMPILER
 
3472
# ----------------
 
3473
m4_defun([_LT_TAG_COMPILER],
2651
3474
[AC_REQUIRE([AC_PROG_CC])dnl
2652
3475
 
 
3476
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
3477
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
3478
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
3479
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
3480
 
2653
3481
# If no C compiler was specified, use CC.
2654
3482
LTCC=${LTCC-"$CC"}
2655
3483
 
2658
3486
 
2659
3487
# Allow CC to be a program name with arguments.
2660
3488
compiler=$CC
2661
 
])# _LT_AC_SYS_COMPILER
2662
 
 
2663
 
 
2664
 
# _LT_CC_BASENAME(CC)
2665
 
# -------------------
2666
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2667
 
AC_DEFUN([_LT_CC_BASENAME],
2668
 
[for cc_temp in $1""; do
2669
 
  case $cc_temp in
2670
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
2671
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
2672
 
    \-*) ;;
2673
 
    *) break;;
2674
 
  esac
2675
 
done
2676
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2677
 
])
 
3489
])# _LT_TAG_COMPILER
2678
3490
 
2679
3491
 
2680
3492
# _LT_COMPILER_BOILERPLATE
2681
3493
# ------------------------
2682
3494
# Check for compiler boilerplate output or warnings with
2683
3495
# the simple compiler test code.
2684
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
2685
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3496
m4_defun([_LT_COMPILER_BOILERPLATE],
 
3497
[m4_require([_LT_DECL_SED])dnl
2686
3498
ac_outfile=conftest.$ac_objext
2687
3499
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2688
3500
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2689
3501
_lt_compiler_boilerplate=`cat conftest.err`
2690
 
$rm conftest*
 
3502
$RM conftest*
2691
3503
])# _LT_COMPILER_BOILERPLATE
2692
3504
 
2693
3505
 
2695
3507
# ----------------------
2696
3508
# Check for linker boilerplate output or warnings with
2697
3509
# the simple link test code.
2698
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
2699
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3510
m4_defun([_LT_LINKER_BOILERPLATE],
 
3511
[m4_require([_LT_DECL_SED])dnl
2700
3512
ac_outfile=conftest.$ac_objext
2701
3513
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2702
3514
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2703
3515
_lt_linker_boilerplate=`cat conftest.err`
2704
 
$rm conftest*
 
3516
$RM -r conftest*
2705
3517
])# _LT_LINKER_BOILERPLATE
2706
3518
 
2707
 
 
2708
 
# _LT_AC_SYS_LIBPATH_AIX
2709
 
# ----------------------
 
3519
# _LT_REQUIRED_DARWIN_CHECKS
 
3520
# -------------------------
 
3521
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
3522
  case $host_os in
 
3523
    rhapsody* | darwin*)
 
3524
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
3525
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
3526
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
3527
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
3528
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
3529
    _LT_DECL([], [DSYMUTIL], [1],
 
3530
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
3531
    _LT_DECL([], [NMEDIT], [1],
 
3532
      [Tool to change global to local symbols on Mac OS X])
 
3533
    _LT_DECL([], [LIPO], [1],
 
3534
      [Tool to manipulate fat objects and archives on Mac OS X])
 
3535
    _LT_DECL([], [OTOOL], [1],
 
3536
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
3537
    _LT_DECL([], [OTOOL64], [1],
 
3538
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
3539
 
 
3540
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
3541
      [lt_cv_apple_cc_single_mod=no
 
3542
      if test -z "${LT_MULTI_MODULE}"; then
 
3543
        # By default we will add the -single_module flag. You can override
 
3544
        # by either setting the environment variable LT_MULTI_MODULE
 
3545
        # non-empty at configure time, or by adding -multi_module to the
 
3546
        # link flags.
 
3547
        rm -rf libconftest.dylib*
 
3548
        echo "int foo(void){return 1;}" > conftest.c
 
3549
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
3550
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
3551
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
3552
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
3553
        _lt_result=$?
 
3554
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
3555
          lt_cv_apple_cc_single_mod=yes
 
3556
        else
 
3557
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
3558
        fi
 
3559
        rm -rf libconftest.dylib*
 
3560
        rm -f conftest.*
 
3561
      fi])
 
3562
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
3563
      [lt_cv_ld_exported_symbols_list],
 
3564
      [lt_cv_ld_exported_symbols_list=no
 
3565
      save_LDFLAGS=$LDFLAGS
 
3566
      echo "_main" > conftest.sym
 
3567
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
3568
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3569
        [lt_cv_ld_exported_symbols_list=yes],
 
3570
        [lt_cv_ld_exported_symbols_list=no])
 
3571
        LDFLAGS="$save_LDFLAGS"
 
3572
    ])
 
3573
    case $host_os in
 
3574
    rhapsody* | darwin1.[[012]])
 
3575
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
3576
    darwin1.*)
 
3577
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
3578
    darwin*) # darwin 5.x on
 
3579
      # if running on 10.5 or later, the deployment target defaults
 
3580
      # to the OS version, if on x86, and 10.4, the deployment
 
3581
      # target defaults to 10.4. Don't you love it?
 
3582
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
3583
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
3584
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
3585
        10.[[012]]*)
 
3586
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
3587
        10.*)
 
3588
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
3589
      esac
 
3590
    ;;
 
3591
  esac
 
3592
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
3593
      _lt_dar_single_mod='$single_module'
 
3594
    fi
 
3595
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
3596
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
3597
    else
 
3598
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3599
    fi
 
3600
    if test "$DSYMUTIL" != ":"; then
 
3601
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
3602
    else
 
3603
      _lt_dsymutil=
 
3604
    fi
 
3605
    ;;
 
3606
  esac
 
3607
])
 
3608
 
 
3609
 
 
3610
# _LT_DARWIN_LINKER_FEATURES
 
3611
# --------------------------
 
3612
# Checks for linker and compiler features on darwin
 
3613
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
3614
[
 
3615
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
3616
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
3617
  _LT_TAGVAR(hardcode_direct, $1)=no
 
3618
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
3619
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3620
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
3621
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
3622
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3623
  case $cc_basename in
 
3624
     ifort*) _lt_dar_can_shared=yes ;;
 
3625
     *) _lt_dar_can_shared=$GCC ;;
 
3626
  esac
 
3627
  if test "$_lt_dar_can_shared" = "yes"; then
 
3628
    output_verbose_link_cmd=echo
 
3629
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3630
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3631
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3632
    _LT_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}"
 
3633
    m4_if([$1], [CXX],
 
3634
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3635
      _LT_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}"
 
3636
      _LT_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}"
 
3637
    fi
 
3638
],[])
 
3639
  else
 
3640
  _LT_TAGVAR(ld_shlibs, $1)=no
 
3641
  fi
 
3642
])
 
3643
 
 
3644
# _LT_SYS_MODULE_PATH_AIX
 
3645
# -----------------------
2710
3646
# Links a minimal program and checks the executable
2711
3647
# for the system default hardcoded library path. In most cases,
2712
3648
# this is /usr/lib:/lib, but when the MPI compilers are used
2713
3649
# the location of the communication and MPI libs are included too.
2714
3650
# If we don't find anything, use the default library path according
2715
3651
# to the aix ld manual.
2716
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2717
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3652
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
3653
[m4_require([_LT_DECL_SED])dnl
2718
3654
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2719
3655
lt_aix_libpath_sed='
2720
3656
    /Import File Strings/,/^$/ {
2729
3665
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2730
3666
fi],[])
2731
3667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2732
 
])# _LT_AC_SYS_LIBPATH_AIX
2733
 
 
2734
 
 
2735
 
# _LT_AC_SHELL_INIT(ARG)
2736
 
# ----------------------
2737
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
3668
])# _LT_SYS_MODULE_PATH_AIX
 
3669
 
 
3670
 
 
3671
# _LT_SHELL_INIT(ARG)
 
3672
# -------------------
 
3673
m4_define([_LT_SHELL_INIT],
2738
3674
[ifdef([AC_DIVERSION_NOTICE],
2739
3675
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2740
3676
         [AC_DIVERT_PUSH(NOTICE)])
2741
3677
$1
2742
3678
AC_DIVERT_POP
2743
 
])# _LT_AC_SHELL_INIT
2744
 
 
2745
 
 
2746
 
# _LT_AC_PROG_ECHO_BACKSLASH
2747
 
# --------------------------
 
3679
])# _LT_SHELL_INIT
 
3680
 
 
3681
 
 
3682
# _LT_PROG_ECHO_BACKSLASH
 
3683
# -----------------------
2748
3684
# Add some code to the start of the generated configure script which
2749
3685
# will find an echo command which doesn't interpret backslashes.
2750
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2751
 
[_LT_AC_SHELL_INIT([
 
3686
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
3687
[_LT_SHELL_INIT([
2752
3688
# Check that we are running under the correct shell.
2753
3689
SHELL=${CONFIG_SHELL-/bin/sh}
2754
3690
 
2755
 
case X$ECHO in
 
3691
case X$lt_ECHO in
2756
3692
X*--fallback-echo)
2757
3693
  # Remove one level of quotation (which was required for Make).
2758
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
3694
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2759
3695
  ;;
2760
3696
esac
2761
3697
 
2762
 
echo=${ECHO-echo}
 
3698
ECHO=${lt_ECHO-echo}
2763
3699
if test "X[$]1" = X--no-reexec; then
2764
3700
  # Discard the --no-reexec flag, and continue.
2765
3701
  shift
2766
3702
elif test "X[$]1" = X--fallback-echo; then
2767
3703
  # Avoid inline document here, it may be left over
2768
3704
  :
2769
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2770
 
  # Yippee, $echo works!
 
3705
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
3706
  # Yippee, $ECHO works!
2771
3707
  :
2772
3708
else
2773
3709
  # Restart under the correct shell.
2777
3713
if test "X[$]1" = X--fallback-echo; then
2778
3714
  # used as fallback echo
2779
3715
  shift
2780
 
  cat <<EOF
 
3716
  cat <<_LT_EOF
2781
3717
[$]*
2782
 
EOF
 
3718
_LT_EOF
2783
3719
  exit 0
2784
3720
fi
2785
3721
 
2787
3723
# if CDPATH is set.
2788
3724
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2789
3725
 
2790
 
if test -z "$ECHO"; then
2791
 
if test "X${echo_test_string+set}" != Xset; then
2792
 
# find a string as large as possible, as long as the shell can cope with it
2793
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2794
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2795
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
2796
 
       echo_test_string=`eval $cmd` &&
2797
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2798
 
    then
2799
 
      break
2800
 
    fi
2801
 
  done
2802
 
fi
2803
 
 
2804
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2805
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2806
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
2807
 
  :
2808
 
else
2809
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
2810
 
  # backslashes.  This makes it impossible to quote backslashes using
2811
 
  #   echo "$something" | sed 's/\\/\\\\/g'
2812
 
  #
2813
 
  # So, first we look for a working echo in the user's PATH.
2814
 
 
2815
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2816
 
  for dir in $PATH /usr/ucb; do
 
3726
if test -z "$lt_ECHO"; then
 
3727
  if test "X${echo_test_string+set}" != Xset; then
 
3728
    # find a string as large as possible, as long as the shell can cope with it
 
3729
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
3730
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
3731
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
3732
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
3733
      then
 
3734
        break
 
3735
      fi
 
3736
    done
 
3737
  fi
 
3738
 
 
3739
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
3740
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
3741
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
3742
    :
 
3743
  else
 
3744
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
3745
    # backslashes.  This makes it impossible to quote backslashes using
 
3746
    #   echo "$something" | sed 's/\\/\\\\/g'
 
3747
    #
 
3748
    # So, first we look for a working echo in the user's PATH.
 
3749
 
 
3750
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3751
    for dir in $PATH /usr/ucb; do
 
3752
      IFS="$lt_save_ifs"
 
3753
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
3754
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
3755
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
3756
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
3757
        ECHO="$dir/echo"
 
3758
        break
 
3759
      fi
 
3760
    done
2817
3761
    IFS="$lt_save_ifs"
2818
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2819
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2820
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2821
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
2822
 
      echo="$dir/echo"
2823
 
      break
2824
 
    fi
2825
 
  done
2826
 
  IFS="$lt_save_ifs"
2827
3762
 
2828
 
  if test "X$echo" = Xecho; then
2829
 
    # We didn't find a better echo, so look for alternatives.
2830
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2831
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2832
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
2833
 
      # This shell has a builtin print -r that does the trick.
2834
 
      echo='print -r'
2835
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2836
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
2837
 
      # If we have ksh, try running configure again with it.
2838
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2839
 
      export ORIGINAL_CONFIG_SHELL
2840
 
      CONFIG_SHELL=/bin/ksh
2841
 
      export CONFIG_SHELL
2842
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2843
 
    else
2844
 
      # Try using printf.
2845
 
      echo='printf %s\n'
2846
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2847
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2848
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2849
 
        # Cool, printf works
2850
 
        :
2851
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2852
 
           test "X$echo_testing_string" = 'X\t' &&
2853
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2854
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2855
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2856
 
        export CONFIG_SHELL
2857
 
        SHELL="$CONFIG_SHELL"
2858
 
        export SHELL
2859
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
2860
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2861
 
           test "X$echo_testing_string" = 'X\t' &&
2862
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2863
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2864
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
3763
    if test "X$ECHO" = Xecho; then
 
3764
      # We didn't find a better echo, so look for alternatives.
 
3765
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
3766
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
3767
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
3768
        # This shell has a builtin print -r that does the trick.
 
3769
        ECHO='print -r'
 
3770
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
3771
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
3772
        # If we have ksh, try running configure again with it.
 
3773
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
3774
        export ORIGINAL_CONFIG_SHELL
 
3775
        CONFIG_SHELL=/bin/ksh
 
3776
        export CONFIG_SHELL
 
3777
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2865
3778
      else
2866
 
        # maybe with a smaller string...
2867
 
        prev=:
2868
 
 
2869
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2870
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2871
 
          then
2872
 
            break
 
3779
        # Try using printf.
 
3780
        ECHO='printf %s\n'
 
3781
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
3782
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
3783
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
3784
          # Cool, printf works
 
3785
          :
 
3786
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
3787
             test "X$echo_testing_string" = 'X\t' &&
 
3788
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
3789
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
3790
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
3791
          export CONFIG_SHELL
 
3792
          SHELL="$CONFIG_SHELL"
 
3793
          export SHELL
 
3794
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
3795
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
3796
             test "X$echo_testing_string" = 'X\t' &&
 
3797
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
3798
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
3799
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
3800
        else
 
3801
          # maybe with a smaller string...
 
3802
          prev=:
 
3803
 
 
3804
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
3805
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
3806
            then
 
3807
              break
 
3808
            fi
 
3809
            prev="$cmd"
 
3810
          done
 
3811
 
 
3812
          if test "$prev" != 'sed 50q "[$]0"'; then
 
3813
            echo_test_string=`eval $prev`
 
3814
            export echo_test_string
 
3815
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
3816
          else
 
3817
            # Oops.  We lost completely, so just stick with echo.
 
3818
            ECHO=echo
2873
3819
          fi
2874
 
          prev="$cmd"
2875
 
        done
2876
 
 
2877
 
        if test "$prev" != 'sed 50q "[$]0"'; then
2878
 
          echo_test_string=`eval $prev`
2879
 
          export echo_test_string
2880
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2881
 
        else
2882
 
          # Oops.  We lost completely, so just stick with echo.
2883
 
          echo=echo
2884
 
        fi
 
3820
        fi
2885
3821
      fi
2886
3822
    fi
2887
3823
  fi
2888
3824
fi
2889
 
fi
2890
3825
 
2891
3826
# Copy echo and quote the copy suitably for passing to libtool from
2892
3827
# the Makefile, instead of quoting the original, which is used later.
2893
 
ECHO=$echo
2894
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2895
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
3828
lt_ECHO=$ECHO
 
3829
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
3830
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2896
3831
fi
2897
3832
 
2898
 
AC_SUBST(ECHO)
2899
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
2900
 
 
2901
 
 
2902
 
# _LT_AC_LOCK
2903
 
# -----------
2904
 
AC_DEFUN([_LT_AC_LOCK],
 
3833
AC_SUBST(lt_ECHO)
 
3834
])
 
3835
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
3836
_LT_DECL([], [ECHO], [1],
 
3837
    [An echo program that does not interpret backslashes])
 
3838
])# _LT_PROG_ECHO_BACKSLASH
 
3839
 
 
3840
 
 
3841
# _LT_ENABLE_LOCK
 
3842
# ---------------
 
3843
m4_defun([_LT_ENABLE_LOCK],
2905
3844
[AC_ARG_ENABLE([libtool-lock],
2906
 
    [AC_HELP_STRING([--disable-libtool-lock],
2907
 
        [avoid locking (might break parallel builds)])])
 
3845
  [AS_HELP_STRING([--disable-libtool-lock],
 
3846
    [avoid locking (might break parallel builds)])])
2908
3847
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2909
3848
 
2910
3849
# Some flags need to be propagated to the compiler or linker for good
2915
3854
  echo 'int i;' > conftest.$ac_ext
2916
3855
  if AC_TRY_EVAL(ac_compile); then
2917
3856
    case `/usr/bin/file conftest.$ac_objext` in
2918
 
    *ELF-32*)
2919
 
      HPUX_IA64_MODE="32"
2920
 
      ;;
2921
 
    *ELF-64*)
2922
 
      HPUX_IA64_MODE="64"
2923
 
      ;;
 
3857
      *ELF-32*)
 
3858
        HPUX_IA64_MODE="32"
 
3859
        ;;
 
3860
      *ELF-64*)
 
3861
        HPUX_IA64_MODE="64"
 
3862
        ;;
2924
3863
    esac
2925
3864
  fi
2926
3865
  rm -rf conftest*
2929
3868
  # Find out which ABI we are using.
2930
3869
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2931
3870
  if AC_TRY_EVAL(ac_compile); then
2932
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
2933
 
    case `/usr/bin/file conftest.$ac_objext` in
2934
 
    *32-bit*)
2935
 
      LD="${LD-ld} -melf32bsmip"
2936
 
      ;;
2937
 
    *N32*)
2938
 
      LD="${LD-ld} -melf32bmipn32"
2939
 
      ;;
2940
 
    *64-bit*)
2941
 
      LD="${LD-ld} -melf64bmip"
2942
 
      ;;
2943
 
    esac
2944
 
   else
2945
 
    case `/usr/bin/file conftest.$ac_objext` in
2946
 
    *32-bit*)
2947
 
      LD="${LD-ld} -32"
2948
 
      ;;
2949
 
    *N32*)
2950
 
      LD="${LD-ld} -n32"
2951
 
      ;;
2952
 
    *64-bit*)
2953
 
      LD="${LD-ld} -64"
2954
 
      ;;
2955
 
    esac
2956
 
   fi
 
3871
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
3872
      case `/usr/bin/file conftest.$ac_objext` in
 
3873
        *32-bit*)
 
3874
          LD="${LD-ld} -melf32bsmip"
 
3875
          ;;
 
3876
        *N32*)
 
3877
          LD="${LD-ld} -melf32bmipn32"
 
3878
          ;;
 
3879
        *64-bit*)
 
3880
          LD="${LD-ld} -melf64bmip"
 
3881
        ;;
 
3882
      esac
 
3883
    else
 
3884
      case `/usr/bin/file conftest.$ac_objext` in
 
3885
        *32-bit*)
 
3886
          LD="${LD-ld} -32"
 
3887
          ;;
 
3888
        *N32*)
 
3889
          LD="${LD-ld} -n32"
 
3890
          ;;
 
3891
        *64-bit*)
 
3892
          LD="${LD-ld} -64"
 
3893
          ;;
 
3894
      esac
 
3895
    fi
2957
3896
  fi
2958
3897
  rm -rf conftest*
2959
3898
  ;;
2960
3899
 
2961
3900
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2962
 
s390*-*linux*|sparc*-*linux*)
 
3901
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2963
3902
  # Find out which ABI we are using.
2964
3903
  echo 'int i;' > conftest.$ac_ext
2965
3904
  if AC_TRY_EVAL(ac_compile); then
2966
3905
    case `/usr/bin/file conftest.o` in
2967
 
    *32-bit*)
2968
 
      case $host in
2969
 
        x86_64-*kfreebsd*-gnu)
2970
 
          LD="${LD-ld} -m elf_i386_fbsd"
2971
 
          ;;
2972
 
        x86_64-*linux*)
2973
 
          LD="${LD-ld} -m elf_i386"
2974
 
          ;;
2975
 
        ppc64-*linux*|powerpc64-*linux*)
2976
 
          LD="${LD-ld} -m elf32ppclinux"
2977
 
          ;;
2978
 
        s390x-*linux*)
2979
 
          LD="${LD-ld} -m elf_s390"
2980
 
          ;;
2981
 
        sparc64-*linux*)
2982
 
          LD="${LD-ld} -m elf32_sparc"
2983
 
          ;;
2984
 
      esac
2985
 
      ;;
2986
 
    *64-bit*)
2987
 
      libsuff=64
2988
 
      case $host in
2989
 
        x86_64-*kfreebsd*-gnu)
2990
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
2991
 
          ;;
2992
 
        x86_64-*linux*)
2993
 
          LD="${LD-ld} -m elf_x86_64"
2994
 
          ;;
2995
 
        ppc*-*linux*|powerpc*-*linux*)
2996
 
          LD="${LD-ld} -m elf64ppc"
2997
 
          ;;
2998
 
        s390*-*linux*)
2999
 
          LD="${LD-ld} -m elf64_s390"
3000
 
          ;;
3001
 
        sparc*-*linux*)
3002
 
          LD="${LD-ld} -m elf64_sparc"
3003
 
          ;;
3004
 
      esac
3005
 
      ;;
 
3906
      *32-bit*)
 
3907
        case $host in
 
3908
          x86_64-*kfreebsd*-gnu)
 
3909
            LD="${LD-ld} -m elf_i386_fbsd"
 
3910
            ;;
 
3911
          x86_64-*linux*)
 
3912
            LD="${LD-ld} -m elf_i386"
 
3913
            ;;
 
3914
          ppc64-*linux*|powerpc64-*linux*)
 
3915
            LD="${LD-ld} -m elf32ppclinux"
 
3916
            ;;
 
3917
          s390x-*linux*)
 
3918
            LD="${LD-ld} -m elf_s390"
 
3919
            ;;
 
3920
          sparc64-*linux*)
 
3921
            LD="${LD-ld} -m elf32_sparc"
 
3922
            ;;
 
3923
        esac
 
3924
        ;;
 
3925
      *64-bit*)
 
3926
        case $host in
 
3927
          x86_64-*kfreebsd*-gnu)
 
3928
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
3929
            ;;
 
3930
          x86_64-*linux*)
 
3931
            LD="${LD-ld} -m elf_x86_64"
 
3932
            ;;
 
3933
          ppc*-*linux*|powerpc*-*linux*)
 
3934
            LD="${LD-ld} -m elf64ppc"
 
3935
            ;;
 
3936
          s390*-*linux*|s390*-*tpf*)
 
3937
            LD="${LD-ld} -m elf64_s390"
 
3938
            ;;
 
3939
          sparc*-*linux*)
 
3940
            LD="${LD-ld} -m elf64_sparc"
 
3941
            ;;
 
3942
        esac
 
3943
        ;;
3006
3944
    esac
3007
3945
  fi
3008
3946
  rm -rf conftest*
3014
3952
  CFLAGS="$CFLAGS -belf"
3015
3953
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3016
3954
    [AC_LANG_PUSH(C)
3017
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
3955
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3018
3956
     AC_LANG_POP])
3019
3957
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3020
3958
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3029
3967
    *64-bit*)
3030
3968
      case $lt_cv_prog_gnu_ld in
3031
3969
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3032
 
      *)    LD="${LD-ld} -64" ;;
 
3970
      *)
 
3971
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
3972
          LD="${LD-ld} -64"
 
3973
        fi
 
3974
        ;;
3033
3975
      esac
3034
3976
      ;;
3035
3977
    esac
3036
3978
  fi
3037
3979
  rm -rf conftest*
3038
3980
  ;;
3039
 
 
3040
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3041
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3042
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3043
 
  AC_CHECK_TOOL(AS, as, false)
3044
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
3045
 
  ;;
3046
 
  ])
3047
3981
esac
3048
3982
 
3049
3983
need_locks="$enable_libtool_lock"
3050
 
 
3051
 
])# _LT_AC_LOCK
3052
 
 
3053
 
 
3054
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
3984
])# _LT_ENABLE_LOCK
 
3985
 
 
3986
 
 
3987
# _LT_CMD_OLD_ARCHIVE
 
3988
# -------------------
 
3989
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
3990
[AC_CHECK_TOOL(AR, ar, false)
 
3991
test -z "$AR" && AR=ar
 
3992
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
3993
_LT_DECL([], [AR], [1], [The archiver])
 
3994
_LT_DECL([], [AR_FLAGS], [1])
 
3995
 
 
3996
AC_CHECK_TOOL(STRIP, strip, :)
 
3997
test -z "$STRIP" && STRIP=:
 
3998
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
3999
 
 
4000
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
4001
test -z "$RANLIB" && RANLIB=:
 
4002
_LT_DECL([], [RANLIB], [1],
 
4003
    [Commands used to install an old-style archive])
 
4004
 
 
4005
# Determine commands to create old-style static archives.
 
4006
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
4007
old_postinstall_cmds='chmod 644 $oldlib'
 
4008
old_postuninstall_cmds=
 
4009
 
 
4010
if test -n "$RANLIB"; then
 
4011
  case $host_os in
 
4012
  openbsd*)
 
4013
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
4014
    ;;
 
4015
  *)
 
4016
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
4017
    ;;
 
4018
  esac
 
4019
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4020
fi
 
4021
_LT_DECL([], [old_postinstall_cmds], [2])
 
4022
_LT_DECL([], [old_postuninstall_cmds], [2])
 
4023
_LT_TAGDECL([], [old_archive_cmds], [2],
 
4024
    [Commands used to build an old-style archive])
 
4025
])# _LT_CMD_OLD_ARCHIVE
 
4026
 
 
4027
 
 
4028
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3055
4029
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3056
4030
# ----------------------------------------------------------------
3057
4031
# Check whether the given compiler option works
3058
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3059
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
4032
AC_DEFUN([_LT_COMPILER_OPTION],
 
4033
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4034
m4_require([_LT_DECL_SED])dnl
3060
4035
AC_CACHE_CHECK([$1], [$2],
3061
4036
  [$2=no
3062
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
4037
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3063
4038
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3064
4039
   lt_compiler_flag="$3"
3065
4040
   # Insert the option either (1) after the last *FLAGS variable, or
3079
4054
   if (exit $ac_status) && test -s "$ac_outfile"; then
3080
4055
     # The compiler can only warn and ignore the option if not recognized
3081
4056
     # So say no if there are warnings other than the usual output.
3082
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
4057
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3083
4058
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3084
4059
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3085
4060
       $2=yes
3086
4061
     fi
3087
4062
   fi
3088
 
   $rm conftest*
 
4063
   $RM conftest*
3089
4064
])
3090
4065
 
3091
4066
if test x"[$]$2" = xyes; then
3092
 
    ifelse([$5], , :, [$5])
 
4067
    m4_if([$5], , :, [$5])
3093
4068
else
3094
 
    ifelse([$6], , :, [$6])
 
4069
    m4_if([$6], , :, [$6])
3095
4070
fi
3096
 
])# AC_LIBTOOL_COMPILER_OPTION
3097
 
 
3098
 
 
3099
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3100
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
3101
 
# ------------------------------------------------------------
3102
 
# Check whether the given compiler option works
3103
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3104
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4071
])# _LT_COMPILER_OPTION
 
4072
 
 
4073
# Old name:
 
4074
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
4075
dnl aclocal-1.4 backwards compatibility:
 
4076
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
4077
 
 
4078
 
 
4079
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
4080
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
4081
# ----------------------------------------------------
 
4082
# Check whether the given linker option works
 
4083
AC_DEFUN([_LT_LINKER_OPTION],
 
4084
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4085
m4_require([_LT_DECL_SED])dnl
3105
4086
AC_CACHE_CHECK([$1], [$2],
3106
4087
  [$2=no
3107
4088
   save_LDFLAGS="$LDFLAGS"
3113
4094
     if test -s conftest.err; then
3114
4095
       # Append any errors to the config.log.
3115
4096
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
3116
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
4097
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3117
4098
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3118
4099
       if diff conftest.exp conftest.er2 >/dev/null; then
3119
4100
         $2=yes
3122
4103
       $2=yes
3123
4104
     fi
3124
4105
   fi
3125
 
   $rm conftest*
 
4106
   $RM -r conftest*
3126
4107
   LDFLAGS="$save_LDFLAGS"
3127
4108
])
3128
4109
 
3129
4110
if test x"[$]$2" = xyes; then
3130
 
    ifelse([$4], , :, [$4])
 
4111
    m4_if([$4], , :, [$4])
3131
4112
else
3132
 
    ifelse([$5], , :, [$5])
 
4113
    m4_if([$5], , :, [$5])
3133
4114
fi
3134
 
])# AC_LIBTOOL_LINKER_OPTION
3135
 
 
3136
 
 
3137
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
3138
 
# --------------------------
3139
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3140
 
[# find the maximum length of command line arguments
 
4115
])# _LT_LINKER_OPTION
 
4116
 
 
4117
# Old name:
 
4118
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
4119
dnl aclocal-1.4 backwards compatibility:
 
4120
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
4121
 
 
4122
 
 
4123
# LT_CMD_MAX_LEN
 
4124
#---------------
 
4125
AC_DEFUN([LT_CMD_MAX_LEN],
 
4126
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4127
# find the maximum length of command line arguments
3141
4128
AC_MSG_CHECKING([the maximum length of command line arguments])
3142
4129
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3143
4130
  i=0
3159
4146
    lt_cv_sys_max_cmd_len=-1;
3160
4147
    ;;
3161
4148
 
3162
 
  cygwin* | mingw*)
 
4149
  cygwin* | mingw* | cegcc*)
3163
4150
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3164
4151
    # about 5 minutes as the teststring grows exponentially.
3165
4152
    # Worse, since 9x/ME are not pre-emptively multitasking,
3214
4201
  sysv5* | sco5v6* | sysv4.2uw2*)
3215
4202
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3216
4203
    if test -n "$kargmax"; then
3217
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
4204
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
3218
4205
    else
3219
4206
      lt_cv_sys_max_cmd_len=32768
3220
4207
    fi
3225
4212
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3226
4213
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3227
4214
    else
 
4215
      # Make teststring a little bigger before we do anything with it.
 
4216
      # a 1K string should be a reasonable start.
 
4217
      for i in 1 2 3 4 5 6 7 8 ; do
 
4218
        teststring=$teststring$teststring
 
4219
      done
3228
4220
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3229
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3230
 
               = "XX$teststring") >/dev/null 2>&1 &&
3231
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
3232
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
4221
      # If test is not a shell built-in, we'll probably end up computing a
 
4222
      # maximum length that is only half of the actual maximum length, but
 
4223
      # we can't tell.
 
4224
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4225
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3233
4226
              test $i != 17 # 1/2 MB should be enough
3234
4227
      do
3235
4228
        i=`expr $i + 1`
3236
4229
        teststring=$teststring$teststring
3237
4230
      done
 
4231
      # Only check the string length outside the loop.
 
4232
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3238
4233
      teststring=
3239
 
      # Add a significant safety factor because C++ compilers can tack on massive
3240
 
      # amounts of additional arguments before passing them to the linker.
3241
 
      # It appears as though 1/2 is a usable value.
 
4234
      # Add a significant safety factor because C++ compilers can tack on
 
4235
      # massive amounts of additional arguments before passing them to the
 
4236
      # linker.  It appears as though 1/2 is a usable value.
3242
4237
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3243
4238
    fi
3244
4239
    ;;
3249
4244
else
3250
4245
  AC_MSG_RESULT(none)
3251
4246
fi
3252
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
3253
 
 
3254
 
 
3255
 
# _LT_AC_CHECK_DLFCN
3256
 
# ------------------
3257
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
3258
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
3259
 
])# _LT_AC_CHECK_DLFCN
3260
 
 
3261
 
 
3262
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3263
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3264
 
# ---------------------------------------------------------------------
3265
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
3266
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
4247
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4248
_LT_DECL([], [max_cmd_len], [0],
 
4249
    [What is the maximum length of a command?])
 
4250
])# LT_CMD_MAX_LEN
 
4251
 
 
4252
# Old name:
 
4253
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
4254
dnl aclocal-1.4 backwards compatibility:
 
4255
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
4256
 
 
4257
 
 
4258
# _LT_HEADER_DLFCN
 
4259
# ----------------
 
4260
m4_defun([_LT_HEADER_DLFCN],
 
4261
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
4262
])# _LT_HEADER_DLFCN
 
4263
 
 
4264
 
 
4265
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
4266
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
4267
# ----------------------------------------------------------------
 
4268
m4_defun([_LT_TRY_DLOPEN_SELF],
 
4269
[m4_require([_LT_HEADER_DLFCN])dnl
3267
4270
if test "$cross_compiling" = yes; then :
3268
4271
  [$4]
3269
4272
else
3270
4273
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3271
4274
  lt_status=$lt_dlunknown
3272
 
  cat > conftest.$ac_ext <<EOF
 
4275
  cat > conftest.$ac_ext <<_LT_EOF
3273
4276
[#line __oline__ "configure"
3274
4277
#include "confdefs.h"
3275
4278
 
3311
4314
#  endif
3312
4315
#endif
3313
4316
 
3314
 
#ifdef __cplusplus
3315
 
extern "C" void exit (int);
3316
 
#endif
3317
 
 
3318
4317
void fnord() { int i=42;}
3319
4318
int main ()
3320
4319
{
3330
4329
  else
3331
4330
    puts (dlerror ());
3332
4331
 
3333
 
    exit (status);
 
4332
  return status;
3334
4333
}]
3335
 
EOF
 
4334
_LT_EOF
3336
4335
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3337
4336
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3338
4337
    lt_status=$?
3347
4346
  fi
3348
4347
fi
3349
4348
rm -fr conftest*
3350
 
])# _LT_AC_TRY_DLOPEN_SELF
3351
 
 
3352
 
 
3353
 
# AC_LIBTOOL_DLOPEN_SELF
3354
 
# ----------------------
3355
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
3356
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
4349
])# _LT_TRY_DLOPEN_SELF
 
4350
 
 
4351
 
 
4352
# LT_SYS_DLOPEN_SELF
 
4353
# ------------------
 
4354
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
4355
[m4_require([_LT_HEADER_DLFCN])dnl
3357
4356
if test "x$enable_dlopen" != xyes; then
3358
4357
  enable_dlopen=unknown
3359
4358
  enable_dlopen_self=unknown
3369
4368
    lt_cv_dlopen_self=yes
3370
4369
    ;;
3371
4370
 
3372
 
  mingw* | pw32*)
 
4371
  mingw* | pw32* | cegcc*)
3373
4372
    lt_cv_dlopen="LoadLibrary"
3374
4373
    lt_cv_dlopen_libs=
3375
 
   ;;
 
4374
    ;;
3376
4375
 
3377
4376
  cygwin*)
3378
4377
    lt_cv_dlopen="dlopen"
3379
4378
    lt_cv_dlopen_libs=
3380
 
   ;;
 
4379
    ;;
3381
4380
 
3382
4381
  darwin*)
3383
4382
  # if libdl is installed we need to link against it
3387
4386
    lt_cv_dlopen_libs=
3388
4387
    lt_cv_dlopen_self=yes
3389
4388
    ])
3390
 
   ;;
 
4389
    ;;
3391
4390
 
3392
4391
  *)
3393
4392
    AC_CHECK_FUNC([shl_load],
3394
4393
          [lt_cv_dlopen="shl_load"],
3395
4394
      [AC_CHECK_LIB([dld], [shl_load],
3396
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
4395
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3397
4396
        [AC_CHECK_FUNC([dlopen],
3398
4397
              [lt_cv_dlopen="dlopen"],
3399
4398
          [AC_CHECK_LIB([dl], [dlopen],
3401
4400
            [AC_CHECK_LIB([svld], [dlopen],
3402
4401
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3403
4402
              [AC_CHECK_LIB([dld], [dld_link],
3404
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
4403
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3405
4404
              ])
3406
4405
            ])
3407
4406
          ])
3429
4428
 
3430
4429
    AC_CACHE_CHECK([whether a program can dlopen itself],
3431
4430
          lt_cv_dlopen_self, [dnl
3432
 
          _LT_AC_TRY_DLOPEN_SELF(
 
4431
          _LT_TRY_DLOPEN_SELF(
3433
4432
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3434
4433
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3435
4434
    ])
3437
4436
    if test "x$lt_cv_dlopen_self" = xyes; then
3438
4437
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3439
4438
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3440
 
          lt_cv_dlopen_self_static, [dnl
3441
 
          _LT_AC_TRY_DLOPEN_SELF(
 
4439
          lt_cv_dlopen_self_static, [dnl
 
4440
          _LT_TRY_DLOPEN_SELF(
3442
4441
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3443
4442
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
3444
4443
      ])
3460
4459
  *) enable_dlopen_self_static=unknown ;;
3461
4460
  esac
3462
4461
fi
3463
 
])# AC_LIBTOOL_DLOPEN_SELF
3464
 
 
3465
 
 
3466
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3467
 
# ---------------------------------
3468
 
# Check to see if options -c and -o are simultaneously supported by compiler
3469
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
3470
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3471
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
4462
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
4463
         [Whether dlopen is supported])
 
4464
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
4465
         [Whether dlopen of programs is supported])
 
4466
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
4467
         [Whether dlopen of statically linked programs is supported])
 
4468
])# LT_SYS_DLOPEN_SELF
 
4469
 
 
4470
# Old name:
 
4471
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
4472
dnl aclocal-1.4 backwards compatibility:
 
4473
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
4474
 
 
4475
 
 
4476
# _LT_COMPILER_C_O([TAGNAME])
 
4477
# ---------------------------
 
4478
# Check to see if options -c and -o are simultaneously supported by compiler.
 
4479
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
4480
m4_defun([_LT_COMPILER_C_O],
 
4481
[m4_require([_LT_DECL_SED])dnl
 
4482
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4483
m4_require([_LT_TAG_COMPILER])dnl
3472
4484
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3473
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3474
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3475
 
   $rm -r conftest 2>/dev/null
 
4485
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
4486
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
4487
   $RM -r conftest 2>/dev/null
3476
4488
   mkdir conftest
3477
4489
   cd conftest
3478
4490
   mkdir out
3496
4508
   then
3497
4509
     # The compiler can only warn and ignore the option if not recognized
3498
4510
     # So say no if there are warnings
3499
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
4511
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3500
4512
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3501
4513
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3502
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4514
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3503
4515
     fi
3504
4516
   fi
3505
4517
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
3506
 
   $rm conftest*
 
4518
   $RM conftest*
3507
4519
   # SGI C++ compiler will create directory out/ii_files/ for
3508
4520
   # template instantiation
3509
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
3510
 
   $rm out/* && rmdir out
 
4521
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
4522
   $RM out/* && rmdir out
3511
4523
   cd ..
3512
 
   rmdir conftest
3513
 
   $rm conftest*
 
4524
   $RM -r conftest
 
4525
   $RM conftest*
3514
4526
])
3515
 
])# AC_LIBTOOL_PROG_CC_C_O
3516
 
 
3517
 
 
3518
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3519
 
# -----------------------------------------
 
4527
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
4528
        [Does compiler simultaneously support -c and -o options?])
 
4529
])# _LT_COMPILER_C_O
 
4530
 
 
4531
 
 
4532
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
4533
# ----------------------------------
3520
4534
# Check to see if we can do hard links to lock some files if needed
3521
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
3522
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
4535
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
4536
[m4_require([_LT_ENABLE_LOCK])dnl
 
4537
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4538
_LT_COMPILER_C_O([$1])
3523
4539
 
3524
4540
hard_links="nottested"
3525
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
4541
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3526
4542
  # do not overwrite the value of need_locks provided by the user
3527
4543
  AC_MSG_CHECKING([if we can lock with hard links])
3528
4544
  hard_links=yes
3529
 
  $rm conftest*
 
4545
  $RM conftest*
3530
4546
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3531
4547
  touch conftest.a
3532
4548
  ln conftest.a conftest.b 2>&5 || hard_links=no
3539
4555
else
3540
4556
  need_locks=no
3541
4557
fi
3542
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3543
 
 
3544
 
 
3545
 
# AC_LIBTOOL_OBJDIR
3546
 
# -----------------
3547
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
4558
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
4559
])# _LT_COMPILER_FILE_LOCKS
 
4560
 
 
4561
 
 
4562
# _LT_CHECK_OBJDIR
 
4563
# ----------------
 
4564
m4_defun([_LT_CHECK_OBJDIR],
3548
4565
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3549
4566
[rm -f .libs 2>/dev/null
3550
4567
mkdir .libs 2>/dev/null
3556
4573
fi
3557
4574
rmdir .libs 2>/dev/null])
3558
4575
objdir=$lt_cv_objdir
3559
 
])# AC_LIBTOOL_OBJDIR
3560
 
 
3561
 
 
3562
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3563
 
# ----------------------------------------------
 
4576
_LT_DECL([], [objdir], [0],
 
4577
         [The name of the directory that contains temporary libtool files])dnl
 
4578
m4_pattern_allow([LT_OBJDIR])dnl
 
4579
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
4580
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
4581
])# _LT_CHECK_OBJDIR
 
4582
 
 
4583
 
 
4584
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
4585
# --------------------------------------
3564
4586
# Check hardcoding attributes.
3565
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
4587
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3566
4588
[AC_MSG_CHECKING([how to hardcode library paths into programs])
3567
 
_LT_AC_TAGVAR(hardcode_action, $1)=
3568
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
3569
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
3570
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
4589
_LT_TAGVAR(hardcode_action, $1)=
 
4590
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
4591
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
4592
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3571
4593
 
3572
 
  # We can hardcode non-existant directories.
3573
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
4594
  # We can hardcode non-existent directories.
 
4595
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3574
4596
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
3575
4597
     # have to relink, otherwise we might link with an installed library
3576
4598
     # when we should be linking with a yet-to-be-installed one
3577
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3578
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
4599
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
4600
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3579
4601
    # Linking always hardcodes the temporary library directory.
3580
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
4602
    _LT_TAGVAR(hardcode_action, $1)=relink
3581
4603
  else
3582
4604
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
3583
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
4605
    _LT_TAGVAR(hardcode_action, $1)=immediate
3584
4606
  fi
3585
4607
else
3586
4608
  # We cannot hardcode anything, or else we can only hardcode existing
3587
4609
  # directories.
3588
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
4610
  _LT_TAGVAR(hardcode_action, $1)=unsupported
3589
4611
fi
3590
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
4612
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3591
4613
 
3592
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
4614
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
4615
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3593
4616
  # Fast installation is not supported
3594
4617
  enable_fast_install=no
3595
4618
elif test "$shlibpath_overrides_runpath" = yes ||
3597
4620
  # Fast installation is not necessary
3598
4621
  enable_fast_install=needless
3599
4622
fi
3600
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3601
 
 
3602
 
 
3603
 
# AC_LIBTOOL_SYS_LIB_STRIP
3604
 
# ------------------------
3605
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
3606
 
[striplib=
 
4623
_LT_TAGDECL([], [hardcode_action], [0],
 
4624
    [How to hardcode a shared library path into an executable])
 
4625
])# _LT_LINKER_HARDCODE_LIBPATH
 
4626
 
 
4627
 
 
4628
# _LT_CMD_STRIPLIB
 
4629
# ----------------
 
4630
m4_defun([_LT_CMD_STRIPLIB],
 
4631
[m4_require([_LT_DECL_EGREP])
 
4632
striplib=
3607
4633
old_striplib=
3608
4634
AC_MSG_CHECKING([whether stripping libraries is possible])
3609
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
4635
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3610
4636
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3611
4637
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3612
4638
  AC_MSG_RESULT([yes])
3613
4639
else
3614
4640
# FIXME - insert some real tests, host_os isn't really good enough
3615
4641
  case $host_os in
3616
 
   darwin*)
3617
 
       if test -n "$STRIP" ; then
3618
 
         striplib="$STRIP -x"
3619
 
         old_striplib="$STRIP -S"
3620
 
         AC_MSG_RESULT([yes])
3621
 
       else
3622
 
  AC_MSG_RESULT([no])
3623
 
fi
3624
 
       ;;
3625
 
   *)
3626
 
  AC_MSG_RESULT([no])
 
4642
  darwin*)
 
4643
    if test -n "$STRIP" ; then
 
4644
      striplib="$STRIP -x"
 
4645
      old_striplib="$STRIP -S"
 
4646
      AC_MSG_RESULT([yes])
 
4647
    else
 
4648
      AC_MSG_RESULT([no])
 
4649
    fi
 
4650
    ;;
 
4651
  *)
 
4652
    AC_MSG_RESULT([no])
3627
4653
    ;;
3628
4654
  esac
3629
4655
fi
3630
 
])# AC_LIBTOOL_SYS_LIB_STRIP
3631
 
 
3632
 
 
3633
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
4656
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
4657
_LT_DECL([], [striplib], [1])
 
4658
])# _LT_CMD_STRIPLIB
 
4659
 
 
4660
 
 
4661
# _LT_SYS_DYNAMIC_LINKER([TAG])
3634
4662
# -----------------------------
3635
4663
# PORTME Fill in your ld.so characteristics
3636
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3637
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4664
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
4665
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4666
m4_require([_LT_DECL_EGREP])dnl
 
4667
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4668
m4_require([_LT_DECL_OBJDUMP])dnl
 
4669
m4_require([_LT_DECL_SED])dnl
3638
4670
AC_MSG_CHECKING([dynamic linker characteristics])
3639
 
library_names_spec=
3640
 
libname_spec='lib$name'
3641
 
soname_spec=
3642
 
shrext_cmds=".so"
3643
 
postinstall_cmds=
3644
 
postuninstall_cmds=
3645
 
finish_cmds=
3646
 
finish_eval=
3647
 
shlibpath_var=
3648
 
shlibpath_overrides_runpath=unknown
3649
 
version_type=none
3650
 
dynamic_linker="$host_os ld.so"
3651
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3652
 
m4_if($1,[],[
 
4671
m4_if([$1],
 
4672
        [], [
3653
4673
if test "$GCC" = yes; then
3654
4674
  case $host_os in
3655
4675
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3656
4676
    *) lt_awk_arg="/^libraries:/" ;;
3657
4677
  esac
3658
4678
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3659
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
4679
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3660
4680
    # if the path contains ";" then we assume it to be the separator
3661
4681
    # otherwise default to the standard path separator (i.e. ":") - it is
3662
4682
    # assumed that no part of a normal pathname contains ";" but that should
3663
4683
    # okay in the real world where ";" in dirpaths is itself problematic.
3664
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
4684
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3665
4685
  else
3666
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
4686
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3667
4687
  fi
3668
4688
  # Ok, now we have the path, separated by spaces, we can step through it
3669
4689
  # and add multilib dir if necessary.
3677
4697
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3678
4698
    fi
3679
4699
  done
3680
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
4700
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3681
4701
BEGIN {RS=" "; FS="/|\n";} {
3682
4702
  lt_foo="";
3683
4703
  lt_count=0;
3697
4717
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3698
4718
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3699
4719
}'`
3700
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
4720
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3701
4721
else
3702
4722
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3703
4723
fi])
 
4724
library_names_spec=
 
4725
libname_spec='lib$name'
 
4726
soname_spec=
 
4727
shrext_cmds=".so"
 
4728
postinstall_cmds=
 
4729
postuninstall_cmds=
 
4730
finish_cmds=
 
4731
finish_eval=
 
4732
shlibpath_var=
 
4733
shlibpath_overrides_runpath=unknown
 
4734
version_type=none
 
4735
dynamic_linker="$host_os ld.so"
 
4736
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3704
4737
need_lib_prefix=unknown
3705
4738
hardcode_into_libs=no
3706
4739
 
3718
4751
  soname_spec='${libname}${release}${shared_ext}$major'
3719
4752
  ;;
3720
4753
 
3721
 
aix4* | aix5*)
 
4754
aix[[4-9]]*)
3722
4755
  version_type=linux
3723
4756
  need_lib_prefix=no
3724
4757
  need_version=no
3737
4770
      aix4 | aix4.[[01]] | aix4.[[01]].*)
3738
4771
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3739
4772
           echo ' yes '
3740
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
4773
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3741
4774
        :
3742
4775
      else
3743
4776
        can_build_shared=no
3763
4796
  ;;
3764
4797
 
3765
4798
amigaos*)
3766
 
  library_names_spec='$libname.ixlibrary $libname.a'
3767
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
3768
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
4799
  case $host_cpu in
 
4800
  powerpc)
 
4801
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
4802
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
4803
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
4804
    ;;
 
4805
  m68k)
 
4806
    library_names_spec='$libname.ixlibrary $libname.a'
 
4807
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
4808
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
4809
    ;;
 
4810
  esac
3769
4811
  ;;
3770
4812
 
3771
4813
beos*)
3788
4830
  # libtool to hard-code these into programs
3789
4831
  ;;
3790
4832
 
3791
 
cygwin* | mingw* | pw32*)
 
4833
cygwin* | mingw* | pw32* | cegcc*)
3792
4834
  version_type=windows
3793
4835
  shrext_cmds=".dll"
3794
4836
  need_version=no
3795
4837
  need_lib_prefix=no
3796
4838
 
3797
4839
  case $GCC,$host_os in
3798
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
4840
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3799
4841
    library_names_spec='$libname.dll.a'
3800
4842
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3801
4843
    postinstall_cmds='base_file=`basename \${file}`~
3802
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
4844
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3803
4845
      dldir=$destdir/`dirname \$dlpath`~
3804
4846
      test -d \$dldir || mkdir -p \$dldir~
3805
4847
      $install_prog $dir/$dlname \$dldir/$dlname~
3806
 
      chmod a+x \$dldir/$dlname'
 
4848
      chmod a+x \$dldir/$dlname~
 
4849
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
4850
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
4851
      fi'
3807
4852
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3808
4853
      dlpath=$dir/\$dldll~
3809
 
       $rm \$dlpath'
 
4854
       $RM \$dlpath'
3810
4855
    shlibpath_overrides_runpath=yes
3811
4856
 
3812
4857
    case $host_os in
3815
4860
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3816
4861
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3817
4862
      ;;
3818
 
    mingw*)
 
4863
    mingw* | cegcc*)
3819
4864
      # MinGW DLLs use traditional 'lib' prefix
3820
4865
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3821
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3822
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
4866
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
4867
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3823
4868
        # It is most probably a Windows format PATH printed by
3824
4869
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3825
4870
        # path with ; separators, and with drive letters. We can handle the
3826
4871
        # drive letters (cygwin fileutils understands them), so leave them,
3827
4872
        # especially as we might pass files found there to a mingw objdump,
3828
4873
        # which wouldn't understand a cygwinified path. Ahh.
3829
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
4874
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3830
4875
      else
3831
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
4876
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3832
4877
      fi
3833
4878
      ;;
3834
4879
    pw32*)
3852
4897
  version_type=darwin
3853
4898
  need_lib_prefix=no
3854
4899
  need_version=no
3855
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
4900
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3856
4901
  soname_spec='${libname}${release}${major}$shared_ext'
3857
4902
  shlibpath_overrides_runpath=yes
3858
4903
  shlibpath_var=DYLD_LIBRARY_PATH
3859
4904
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3860
 
  m4_if([$1], [],[
3861
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
4905
m4_if([$1], [],[
 
4906
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3862
4907
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3863
4908
  ;;
3864
4909
 
3951
4996
    fi
3952
4997
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3953
4998
    ;;
3954
 
   hppa*64*)
3955
 
     shrext_cmds='.sl'
3956
 
     hardcode_into_libs=yes
3957
 
     dynamic_linker="$host_os dld.sl"
3958
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3959
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3960
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3961
 
     soname_spec='${libname}${release}${shared_ext}$major'
3962
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3963
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3964
 
     ;;
3965
 
   *)
 
4999
  hppa*64*)
 
5000
    shrext_cmds='.sl'
 
5001
    hardcode_into_libs=yes
 
5002
    dynamic_linker="$host_os dld.sl"
 
5003
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
5004
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
5005
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
5006
    soname_spec='${libname}${release}${shared_ext}$major'
 
5007
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
5008
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
5009
    ;;
 
5010
  *)
3966
5011
    shrext_cmds='.sl'
3967
5012
    dynamic_linker="$host_os dld.sl"
3968
5013
    shlibpath_var=SHLIB_PATH
4039
5084
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4040
5085
  shlibpath_var=LD_LIBRARY_PATH
4041
5086
  shlibpath_overrides_runpath=no
 
5087
  # Some binutils ld are patched to set DT_RUNPATH
 
5088
  save_LDFLAGS=$LDFLAGS
 
5089
  save_libdir=$libdir
 
5090
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
5091
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
5092
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
5093
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
5094
       [shlibpath_overrides_runpath=yes])])
 
5095
  LDFLAGS=$save_LDFLAGS
 
5096
  libdir=$save_libdir
 
5097
 
4042
5098
  # This implies no fast_install, which is unacceptable.
4043
5099
  # Some rework will be needed to allow for fast_install
4044
5100
  # before this can be enabled.
4045
5101
  hardcode_into_libs=yes
4046
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4047
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
5102
 
 
5103
  # Add ABI-specific directories to the system library path.
 
5104
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
4048
5105
 
4049
5106
  # Append ld.so.conf contents to the search path
4050
5107
  if test -f /etc/ld.so.conf; then
4051
 
    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' ' '`
 
5108
    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' ' '`
4052
5109
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
4053
5110
  fi
4054
5111
 
4065
5122
  version_type=sunos
4066
5123
  need_lib_prefix=no
4067
5124
  need_version=no
4068
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5125
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4069
5126
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4070
5127
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4071
5128
    dynamic_linker='NetBSD (a.out) ld.so'
4086
5143
  shlibpath_overrides_runpath=yes
4087
5144
  ;;
4088
5145
 
4089
 
nto-qnx*)
4090
 
  version_type=linux
 
5146
*nto* | *qnx*)
 
5147
  version_type=qnx
4091
5148
  need_lib_prefix=no
4092
5149
  need_version=no
4093
5150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4094
5151
  soname_spec='${libname}${release}${shared_ext}$major'
4095
5152
  shlibpath_var=LD_LIBRARY_PATH
4096
 
  shlibpath_overrides_runpath=yes
 
5153
  shlibpath_overrides_runpath=no
 
5154
  hardcode_into_libs=yes
 
5155
  dynamic_linker='ldqnx.so'
4097
5156
  ;;
4098
5157
 
4099
5158
openbsd*)
4102
5161
  need_lib_prefix=no
4103
5162
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4104
5163
  case $host_os in
4105
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4106
 
    *)                         need_version=no  ;;
 
5164
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
5165
    *)                          need_version=no  ;;
4107
5166
  esac
4108
5167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4109
5168
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4110
5169
  shlibpath_var=LD_LIBRARY_PATH
4111
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5170
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4112
5171
    case $host_os in
4113
5172
      openbsd2.[[89]] | openbsd2.[[89]].*)
4114
5173
        shlibpath_overrides_runpath=no
4180
5239
    sni)
4181
5240
      shlibpath_overrides_runpath=no
4182
5241
      need_lib_prefix=no
4183
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
4184
5242
      runpath_var=LD_RUN_PATH
4185
5243
      ;;
4186
5244
    siemens)
4211
5269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4212
5270
  soname_spec='${libname}${release}${shared_ext}$major'
4213
5271
  shlibpath_var=LD_LIBRARY_PATH
 
5272
  shlibpath_overrides_runpath=yes
4214
5273
  hardcode_into_libs=yes
4215
5274
  if test "$with_gnu_ld" = yes; then
4216
5275
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4217
 
    shlibpath_overrides_runpath=no
4218
5276
  else
4219
5277
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4220
 
    shlibpath_overrides_runpath=yes
4221
5278
    case $host_os in
4222
5279
      sco3.2v5*)
4223
5280
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4227
5284
  sys_lib_dlsearch_path_spec='/usr/lib'
4228
5285
  ;;
4229
5286
 
 
5287
tpf*)
 
5288
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
5289
  version_type=linux
 
5290
  need_lib_prefix=no
 
5291
  need_version=no
 
5292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
5293
  shlibpath_var=LD_LIBRARY_PATH
 
5294
  shlibpath_overrides_runpath=no
 
5295
  hardcode_into_libs=yes
 
5296
  ;;
 
5297
 
4230
5298
uts4*)
4231
5299
  version_type=linux
4232
5300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4245
5313
if test "$GCC" = yes; then
4246
5314
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4247
5315
fi
4248
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4249
 
 
4250
 
 
4251
 
# _LT_AC_TAGCONFIG
4252
 
# ----------------
4253
 
AC_DEFUN([_LT_AC_TAGCONFIG],
4254
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4255
 
AC_ARG_WITH([tags],
4256
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
4257
 
        [include additional configurations @<:@automatic@:>@])],
4258
 
    [tagnames="$withval"])
4259
 
 
4260
 
if test -f "$ltmain" && test -n "$tagnames"; then
4261
 
  if test ! -f "${ofile}"; then
4262
 
    AC_MSG_WARN([output file `$ofile' does not exist])
4263
 
  fi
4264
 
 
4265
 
  if test -z "$LTCC"; then
4266
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
4267
 
    if test -z "$LTCC"; then
4268
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
4269
 
    else
4270
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
4271
 
    fi
4272
 
  fi
4273
 
  if test -z "$LTCFLAGS"; then
4274
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
4275
 
  fi
4276
 
 
4277
 
  # Extract list of available tagged configurations in $ofile.
4278
 
  # Note that this assumes the entire list is on one line.
4279
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
4280
 
 
4281
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4282
 
  for tagname in $tagnames; do
4283
 
    IFS="$lt_save_ifs"
4284
 
    # Check whether tagname contains only valid characters
4285
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
4286
 
    "") ;;
4287
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
4288
 
        ;;
4289
 
    esac
4290
 
 
4291
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
4292
 
    then
4293
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
4294
 
    fi
4295
 
 
4296
 
    # Update the list of available tags.
4297
 
    if test -n "$tagname"; then
4298
 
      echo appending configuration tag \"$tagname\" to $ofile
4299
 
 
4300
 
      case $tagname in
4301
 
      CXX)
4302
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4303
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4304
 
            (test "X$CXX" != "Xg++"))) ; then
4305
 
          AC_LIBTOOL_LANG_CXX_CONFIG
4306
 
        else
4307
 
          tagname=""
4308
 
        fi
4309
 
        ;;
4310
 
 
4311
 
      F77)
4312
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
4313
 
          AC_LIBTOOL_LANG_F77_CONFIG
4314
 
        else
4315
 
          tagname=""
4316
 
        fi
4317
 
        ;;
4318
 
 
4319
 
      GCJ)
4320
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
4321
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
4322
 
        else
4323
 
          tagname=""
4324
 
        fi
4325
 
        ;;
4326
 
 
4327
 
      RC)
4328
 
        AC_LIBTOOL_LANG_RC_CONFIG
4329
 
        ;;
4330
 
 
4331
 
      *)
4332
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
4333
 
        ;;
4334
 
      esac
4335
 
 
4336
 
      # Append the new tag name to the list of available tags.
4337
 
      if test -n "$tagname" ; then
4338
 
      available_tags="$available_tags $tagname"
4339
 
    fi
4340
 
    fi
4341
 
  done
4342
 
  IFS="$lt_save_ifs"
4343
 
 
4344
 
  # Now substitute the updated list of available tags.
4345
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
4346
 
    mv "${ofile}T" "$ofile"
4347
 
    chmod +x "$ofile"
4348
 
  else
4349
 
    rm -f "${ofile}T"
4350
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
4351
 
  fi
4352
 
fi
4353
 
])# _LT_AC_TAGCONFIG
4354
 
 
4355
 
 
4356
 
# AC_LIBTOOL_DLOPEN
4357
 
# -----------------
4358
 
# enable checks for dlopen support
4359
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
4360
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
4361
 
])# AC_LIBTOOL_DLOPEN
4362
 
 
4363
 
 
4364
 
# AC_LIBTOOL_WIN32_DLL
4365
 
# --------------------
4366
 
# declare package support for building win32 DLLs
4367
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
4368
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
4369
 
])# AC_LIBTOOL_WIN32_DLL
4370
 
 
4371
 
 
4372
 
# AC_ENABLE_SHARED([DEFAULT])
4373
 
# ---------------------------
4374
 
# implement the --enable-shared flag
4375
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4376
 
AC_DEFUN([AC_ENABLE_SHARED],
4377
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4378
 
AC_ARG_ENABLE([shared],
4379
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
4380
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
4381
 
    [p=${PACKAGE-default}
4382
 
    case $enableval in
4383
 
    yes) enable_shared=yes ;;
4384
 
    no) enable_shared=no ;;
4385
 
    *)
4386
 
      enable_shared=no
4387
 
      # Look at the argument we got.  We use all the common list separators.
4388
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4389
 
      for pkg in $enableval; do
4390
 
        IFS="$lt_save_ifs"
4391
 
        if test "X$pkg" = "X$p"; then
4392
 
          enable_shared=yes
4393
 
        fi
4394
 
      done
4395
 
      IFS="$lt_save_ifs"
4396
 
      ;;
4397
 
    esac],
4398
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4399
 
])# AC_ENABLE_SHARED
4400
 
 
4401
 
 
4402
 
# AC_DISABLE_SHARED
4403
 
# -----------------
4404
 
# set the default shared flag to --disable-shared
4405
 
AC_DEFUN([AC_DISABLE_SHARED],
4406
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4407
 
AC_ENABLE_SHARED(no)
4408
 
])# AC_DISABLE_SHARED
4409
 
 
4410
 
 
4411
 
# AC_ENABLE_STATIC([DEFAULT])
4412
 
# ---------------------------
4413
 
# implement the --enable-static flag
4414
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4415
 
AC_DEFUN([AC_ENABLE_STATIC],
4416
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4417
 
AC_ARG_ENABLE([static],
4418
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
4419
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
4420
 
    [p=${PACKAGE-default}
4421
 
    case $enableval in
4422
 
    yes) enable_static=yes ;;
4423
 
    no) enable_static=no ;;
4424
 
    *)
4425
 
     enable_static=no
4426
 
      # Look at the argument we got.  We use all the common list separators.
4427
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4428
 
      for pkg in $enableval; do
4429
 
        IFS="$lt_save_ifs"
4430
 
        if test "X$pkg" = "X$p"; then
4431
 
          enable_static=yes
4432
 
        fi
4433
 
      done
4434
 
      IFS="$lt_save_ifs"
4435
 
      ;;
4436
 
    esac],
4437
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
4438
 
])# AC_ENABLE_STATIC
4439
 
 
4440
 
 
4441
 
# AC_DISABLE_STATIC
4442
 
# -----------------
4443
 
# set the default static flag to --disable-static
4444
 
AC_DEFUN([AC_DISABLE_STATIC],
4445
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4446
 
AC_ENABLE_STATIC(no)
4447
 
])# AC_DISABLE_STATIC
4448
 
 
4449
 
 
4450
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
4451
 
# ---------------------------------
4452
 
# implement the --enable-fast-install flag
4453
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4454
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4455
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4456
 
AC_ARG_ENABLE([fast-install],
4457
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
4458
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
4459
 
    [p=${PACKAGE-default}
4460
 
    case $enableval in
4461
 
    yes) enable_fast_install=yes ;;
4462
 
    no) enable_fast_install=no ;;
4463
 
    *)
4464
 
      enable_fast_install=no
4465
 
      # Look at the argument we got.  We use all the common list separators.
4466
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4467
 
      for pkg in $enableval; do
4468
 
        IFS="$lt_save_ifs"
4469
 
        if test "X$pkg" = "X$p"; then
4470
 
          enable_fast_install=yes
4471
 
        fi
4472
 
      done
4473
 
      IFS="$lt_save_ifs"
4474
 
      ;;
4475
 
    esac],
4476
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4477
 
])# AC_ENABLE_FAST_INSTALL
4478
 
 
4479
 
 
4480
 
# AC_DISABLE_FAST_INSTALL
4481
 
# -----------------------
4482
 
# set the default to --disable-fast-install
4483
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4484
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4485
 
AC_ENABLE_FAST_INSTALL(no)
4486
 
])# AC_DISABLE_FAST_INSTALL
4487
 
 
4488
 
 
4489
 
# AC_LIBTOOL_PICMODE([MODE])
 
5316
 
 
5317
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
5318
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
5319
fi
 
5320
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
5321
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
5322
fi
 
5323
 
 
5324
_LT_DECL([], [variables_saved_for_relink], [1],
 
5325
    [Variables whose values should be saved in libtool wrapper scripts and
 
5326
    restored at link time])
 
5327
_LT_DECL([], [need_lib_prefix], [0],
 
5328
    [Do we need the "lib" prefix for modules?])
 
5329
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
5330
_LT_DECL([], [version_type], [0], [Library versioning type])
 
5331
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
5332
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
5333
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
5334
    [Is shlibpath searched before the hard-coded library search path?])
 
5335
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
5336
_LT_DECL([], [library_names_spec], [1],
 
5337
    [[List of archive names.  First name is the real one, the rest are links.
 
5338
    The last name is the one that the linker finds with -lNAME]])
 
5339
_LT_DECL([], [soname_spec], [1],
 
5340
    [[The coded name of the library, if different from the real name]])
 
5341
_LT_DECL([], [postinstall_cmds], [2],
 
5342
    [Command to use after installation of a shared archive])
 
5343
_LT_DECL([], [postuninstall_cmds], [2],
 
5344
    [Command to use after uninstallation of a shared archive])
 
5345
_LT_DECL([], [finish_cmds], [2],
 
5346
    [Commands used to finish a libtool library installation in a directory])
 
5347
_LT_DECL([], [finish_eval], [1],
 
5348
    [[As "finish_cmds", except a single script fragment to be evaled but
 
5349
    not shown]])
 
5350
_LT_DECL([], [hardcode_into_libs], [0],
 
5351
    [Whether we should hardcode library paths into libraries])
 
5352
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
5353
    [Compile-time system search path for libraries])
 
5354
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
5355
    [Run-time system search path for libraries])
 
5356
])# _LT_SYS_DYNAMIC_LINKER
 
5357
 
 
5358
 
 
5359
# _LT_PATH_TOOL_PREFIX(TOOL)
4490
5360
# --------------------------
4491
 
# implement the --with-pic flag
4492
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4493
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
4494
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4495
 
pic_mode=ifelse($#,1,$1,default)
4496
 
])# AC_LIBTOOL_PICMODE
4497
 
 
4498
 
 
4499
 
# AC_PROG_EGREP
4500
 
# -------------
4501
 
# This is predefined starting with Autoconf 2.54, so this conditional
4502
 
# definition can be removed once we require Autoconf 2.54 or later.
4503
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
4504
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4505
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4506
 
    then ac_cv_prog_egrep='grep -E'
4507
 
    else ac_cv_prog_egrep='egrep'
4508
 
    fi])
4509
 
 EGREP=$ac_cv_prog_egrep
4510
 
 AC_SUBST([EGREP])
4511
 
])])
4512
 
 
4513
 
 
4514
 
# AC_PATH_TOOL_PREFIX
4515
 
# -------------------
4516
5361
# find a file program which can recognize shared library
4517
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
4518
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
5362
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
5363
[m4_require([_LT_DECL_EGREP])dnl
4519
5364
AC_MSG_CHECKING([for $1])
4520
5365
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4521
5366
[case $MAGIC_CMD in
4528
5373
dnl $ac_dummy forces splitting on constant user-supplied paths.
4529
5374
dnl POSIX.2 word splitting is done only on the output of word expansions,
4530
5375
dnl not every word.  This closes a longstanding sh security hole.
4531
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
5376
  ac_dummy="m4_if([$2], , $PATH, [$2])"
4532
5377
  for ac_dir in $ac_dummy; do
4533
5378
    IFS="$lt_save_ifs"
4534
5379
    test -z "$ac_dir" && ac_dir=.
4543
5388
            $EGREP "$file_magic_regex" > /dev/null; then
4544
5389
            :
4545
5390
          else
4546
 
            cat <<EOF 1>&2
 
5391
            cat <<_LT_EOF 1>&2
4547
5392
 
4548
5393
*** Warning: the command libtool uses to detect shared libraries,
4549
5394
*** $file_magic_cmd, produces output that libtool cannot recognize.
4554
5399
*** may want to report the problem to your system manager and/or to
4555
5400
*** bug-libtool@gnu.org
4556
5401
 
4557
 
EOF
 
5402
_LT_EOF
4558
5403
          fi ;;
4559
5404
        esac
4560
5405
      fi
4571
5416
else
4572
5417
  AC_MSG_RESULT(no)
4573
5418
fi
4574
 
])# AC_PATH_TOOL_PREFIX
4575
 
 
4576
 
 
4577
 
# AC_PATH_MAGIC
4578
 
# -------------
 
5419
_LT_DECL([], [MAGIC_CMD], [0],
 
5420
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
5421
])# _LT_PATH_TOOL_PREFIX
 
5422
 
 
5423
# Old name:
 
5424
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
5425
dnl aclocal-1.4 backwards compatibility:
 
5426
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
5427
 
 
5428
 
 
5429
# _LT_PATH_MAGIC
 
5430
# --------------
4579
5431
# find a file program which can recognize a shared library
4580
 
AC_DEFUN([AC_PATH_MAGIC],
4581
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
5432
m4_defun([_LT_PATH_MAGIC],
 
5433
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4582
5434
if test -z "$lt_cv_path_MAGIC_CMD"; then
4583
5435
  if test -n "$ac_tool_prefix"; then
4584
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
5436
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4585
5437
  else
4586
5438
    MAGIC_CMD=:
4587
5439
  fi
4588
5440
fi
4589
 
])# AC_PATH_MAGIC
4590
 
 
4591
 
 
4592
 
# AC_PROG_LD
 
5441
])# _LT_PATH_MAGIC
 
5442
 
 
5443
 
 
5444
# LT_PATH_LD
4593
5445
# ----------
4594
5446
# find the pathname to the GNU or non-GNU linker
4595
 
AC_DEFUN([AC_PROG_LD],
4596
 
[AC_ARG_WITH([gnu-ld],
4597
 
    [AC_HELP_STRING([--with-gnu-ld],
 
5447
AC_DEFUN([LT_PATH_LD],
 
5448
[AC_REQUIRE([AC_PROG_CC])dnl
 
5449
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
5450
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
5451
m4_require([_LT_DECL_SED])dnl
 
5452
m4_require([_LT_DECL_EGREP])dnl
 
5453
 
 
5454
AC_ARG_WITH([gnu-ld],
 
5455
    [AS_HELP_STRING([--with-gnu-ld],
4598
5456
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4599
5457
    [test "$withval" = no || with_gnu_ld=yes],
4600
 
    [with_gnu_ld=no])
4601
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
4602
 
AC_REQUIRE([AC_PROG_CC])dnl
4603
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4604
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
5458
    [with_gnu_ld=no])dnl
 
5459
 
4605
5460
ac_prog=ld
4606
5461
if test "$GCC" = yes; then
4607
5462
  # Check if gcc -print-prog-name=ld gives a path.
4618
5473
    [[\\/]]* | ?:[[\\/]]*)
4619
5474
      re_direlt='/[[^/]][[^/]]*/\.\./'
4620
5475
      # Canonicalize the pathname of ld
4621
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4622
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4623
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5476
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5477
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5478
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4624
5479
      done
4625
5480
      test -z "$LD" && LD="$ac_prog"
4626
5481
      ;;
4670
5525
  AC_MSG_RESULT(no)
4671
5526
fi
4672
5527
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4673
 
AC_PROG_LD_GNU
4674
 
])# AC_PROG_LD
4675
 
 
4676
 
 
4677
 
# AC_PROG_LD_GNU
4678
 
# --------------
4679
 
AC_DEFUN([AC_PROG_LD_GNU],
4680
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
4681
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
5528
_LT_PATH_LD_GNU
 
5529
AC_SUBST([LD])
 
5530
 
 
5531
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
5532
])# LT_PATH_LD
 
5533
 
 
5534
# Old names:
 
5535
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
5536
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
5537
dnl aclocal-1.4 backwards compatibility:
 
5538
dnl AC_DEFUN([AM_PROG_LD], [])
 
5539
dnl AC_DEFUN([AC_PROG_LD], [])
 
5540
 
 
5541
 
 
5542
# _LT_PATH_LD_GNU
 
5543
#- --------------
 
5544
m4_defun([_LT_PATH_LD_GNU],
 
5545
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4682
5546
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4683
5547
case `$LD -v 2>&1 </dev/null` in
4684
5548
*GNU* | *'with BFD'*)
4689
5553
  ;;
4690
5554
esac])
4691
5555
with_gnu_ld=$lt_cv_prog_gnu_ld
4692
 
])# AC_PROG_LD_GNU
4693
 
 
4694
 
 
4695
 
# AC_PROG_LD_RELOAD_FLAG
4696
 
# ----------------------
 
5556
])# _LT_PATH_LD_GNU
 
5557
 
 
5558
 
 
5559
# _LT_CMD_RELOAD
 
5560
# --------------
4697
5561
# find reload flag for linker
4698
5562
#   -- PORTME Some linkers may need a different reload flag.
4699
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
5563
m4_defun([_LT_CMD_RELOAD],
4700
5564
[AC_CACHE_CHECK([for $LD option to reload object files],
4701
5565
  lt_cv_ld_reload_flag,
4702
5566
  [lt_cv_ld_reload_flag='-r'])
4715
5579
    fi
4716
5580
    ;;
4717
5581
esac
4718
 
])# AC_PROG_LD_RELOAD_FLAG
4719
 
 
4720
 
 
4721
 
# AC_DEPLIBS_CHECK_METHOD
4722
 
# -----------------------
 
5582
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
5583
_LT_DECL([], [reload_cmds], [2])dnl
 
5584
])# _LT_CMD_RELOAD
 
5585
 
 
5586
 
 
5587
# _LT_CHECK_MAGIC_METHOD
 
5588
# ----------------------
4723
5589
# how to check for library dependencies
4724
5590
#  -- PORTME fill in with the dynamic library characteristics
4725
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4726
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
5591
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
5592
[m4_require([_LT_DECL_EGREP])
 
5593
m4_require([_LT_DECL_OBJDUMP])
 
5594
AC_CACHE_CHECK([how to recognize dependent libraries],
4727
5595
lt_cv_deplibs_check_method,
4728
5596
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4729
5597
lt_cv_file_magic_test_file=
4740
5608
# whether `pass_all' will *always* work, you probably want this one.
4741
5609
 
4742
5610
case $host_os in
4743
 
aix4* | aix5*)
 
5611
aix[[4-9]]*)
4744
5612
  lt_cv_deplibs_check_method=pass_all
4745
5613
  ;;
4746
5614
 
4773
5641
  fi
4774
5642
  ;;
4775
5643
 
 
5644
cegcc)
 
5645
  # use the weaker test based on 'objdump'. See mingw*.
 
5646
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5647
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5648
  ;;
 
5649
 
4776
5650
darwin* | rhapsody*)
4777
5651
  lt_cv_deplibs_check_method=pass_all
4778
5652
  ;;
4779
5653
 
4780
5654
freebsd* | dragonfly*)
4781
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5655
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4782
5656
    case $host_cpu in
4783
5657
    i*86 )
4784
5658
      # Not sure whether the presence of OpenBSD here was a mistake.
4836
5710
  ;;
4837
5711
 
4838
5712
netbsd*)
4839
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5713
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4840
5714
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4841
5715
  else
4842
5716
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4849
5723
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4850
5724
  ;;
4851
5725
 
4852
 
nto-qnx*)
4853
 
  lt_cv_deplibs_check_method=unknown
 
5726
*nto* | *qnx*)
 
5727
  lt_cv_deplibs_check_method=pass_all
4854
5728
  ;;
4855
5729
 
4856
5730
openbsd*)
4857
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5731
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4858
5732
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4859
5733
  else
4860
5734
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4873
5747
  lt_cv_deplibs_check_method=pass_all
4874
5748
  ;;
4875
5749
 
 
5750
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5751
  lt_cv_deplibs_check_method=pass_all
 
5752
  ;;
 
5753
 
4876
5754
sysv4 | sysv4.3*)
4877
5755
  case $host_vendor in
4878
5756
  motorola)
4900
5778
  esac
4901
5779
  ;;
4902
5780
 
4903
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5781
tpf*)
4904
5782
  lt_cv_deplibs_check_method=pass_all
4905
5783
  ;;
4906
5784
esac
4908
5786
file_magic_cmd=$lt_cv_file_magic_cmd
4909
5787
deplibs_check_method=$lt_cv_deplibs_check_method
4910
5788
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4911
 
])# AC_DEPLIBS_CHECK_METHOD
4912
 
 
4913
 
 
4914
 
# AC_PROG_NM
 
5789
 
 
5790
_LT_DECL([], [deplibs_check_method], [1],
 
5791
    [Method to check whether dependent libraries are shared objects])
 
5792
_LT_DECL([], [file_magic_cmd], [1],
 
5793
    [Command to use when deplibs_check_method == "file_magic"])
 
5794
])# _LT_CHECK_MAGIC_METHOD
 
5795
 
 
5796
 
 
5797
# LT_PATH_NM
4915
5798
# ----------
4916
 
# find the pathname to a BSD-compatible name lister
4917
 
AC_DEFUN([AC_PROG_NM],
4918
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
5799
# find the pathname to a BSD- or MS-compatible name lister
 
5800
AC_DEFUN([LT_PATH_NM],
 
5801
[AC_REQUIRE([AC_PROG_CC])dnl
 
5802
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4919
5803
[if test -n "$NM"; then
4920
5804
  # Let the user override the test.
4921
5805
  lt_cv_path_NM="$NM"
4957
5841
    done
4958
5842
    IFS="$lt_save_ifs"
4959
5843
  done
4960
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5844
  : ${lt_cv_path_NM=no}
4961
5845
fi])
4962
 
NM="$lt_cv_path_NM"
4963
 
])# AC_PROG_NM
4964
 
 
4965
 
 
4966
 
# AC_CHECK_LIBM
4967
 
# -------------
 
5846
if test "$lt_cv_path_NM" != "no"; then
 
5847
  NM="$lt_cv_path_NM"
 
5848
else
 
5849
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5850
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
5851
  AC_SUBST([DUMPBIN])
 
5852
  if test "$DUMPBIN" != ":"; then
 
5853
    NM="$DUMPBIN"
 
5854
  fi
 
5855
fi
 
5856
test -z "$NM" && NM=nm
 
5857
AC_SUBST([NM])
 
5858
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
5859
 
 
5860
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
5861
  [lt_cv_nm_interface="BSD nm"
 
5862
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5863
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
5864
  (eval "$ac_compile" 2>conftest.err)
 
5865
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
5866
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
5867
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5868
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
5869
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
5870
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
5871
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5872
    lt_cv_nm_interface="MS dumpbin"
 
5873
  fi
 
5874
  rm -f conftest*])
 
5875
])# LT_PATH_NM
 
5876
 
 
5877
# Old names:
 
5878
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
5879
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
5880
dnl aclocal-1.4 backwards compatibility:
 
5881
dnl AC_DEFUN([AM_PROG_NM], [])
 
5882
dnl AC_DEFUN([AC_PROG_NM], [])
 
5883
 
 
5884
 
 
5885
# LT_LIB_M
 
5886
# --------
4968
5887
# check for math library
4969
 
AC_DEFUN([AC_CHECK_LIBM],
 
5888
AC_DEFUN([LT_LIB_M],
4970
5889
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4971
5890
LIBM=
4972
5891
case $host in
4981
5900
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4982
5901
  ;;
4983
5902
esac
4984
 
])# AC_CHECK_LIBM
4985
 
 
4986
 
 
4987
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4988
 
# -----------------------------------
4989
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
4990
 
# LTDLINCL to the include flags for the libltdl header and adds
4991
 
# --enable-ltdl-convenience to the configure arguments.  Note that
4992
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
4993
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
4994
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4995
 
# (note the single quotes!).  If your package is not flat and you're not
4996
 
# using automake, define top_builddir and top_srcdir appropriately in
4997
 
# the Makefiles.
4998
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4999
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5000
 
  case $enable_ltdl_convenience in
5001
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
5002
 
  "") enable_ltdl_convenience=yes
5003
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5004
 
  esac
5005
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
5006
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5007
 
  # For backwards non-gettext consistent compatibility...
5008
 
  INCLTDL="$LTDLINCL"
5009
 
])# AC_LIBLTDL_CONVENIENCE
5010
 
 
5011
 
 
5012
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
5013
 
# -----------------------------------
5014
 
# sets LIBLTDL to the link flags for the libltdl installable library and
5015
 
# LTDLINCL to the include flags for the libltdl header and adds
5016
 
# --enable-ltdl-install to the configure arguments.  Note that
5017
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
5018
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
5019
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
5020
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
5021
 
# flat and you're not using automake, define top_builddir and top_srcdir
5022
 
# appropriately in the Makefiles.
5023
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
5024
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
5025
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5026
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
5027
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
5028
 
  [if test x"$enable_ltdl_install" = xno; then
5029
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
5030
 
   else
5031
 
     enable_ltdl_install=yes
5032
 
   fi
5033
 
  ])
5034
 
  if test x"$enable_ltdl_install" = x"yes"; then
5035
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
5036
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
5037
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5038
 
  else
5039
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5040
 
    LIBLTDL="-lltdl"
5041
 
    LTDLINCL=
5042
 
  fi
5043
 
  # For backwards non-gettext consistent compatibility...
5044
 
  INCLTDL="$LTDLINCL"
5045
 
])# AC_LIBLTDL_INSTALLABLE
5046
 
 
5047
 
 
5048
 
# AC_LIBTOOL_CXX
5049
 
# --------------
5050
 
# enable support for C++ libraries
5051
 
AC_DEFUN([AC_LIBTOOL_CXX],
5052
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
5053
 
])# AC_LIBTOOL_CXX
5054
 
 
5055
 
 
5056
 
# _LT_AC_LANG_CXX
5057
 
# ---------------
5058
 
AC_DEFUN([_LT_AC_LANG_CXX],
5059
 
[AC_REQUIRE([AC_PROG_CXX])
5060
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5061
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
5062
 
])# _LT_AC_LANG_CXX
5063
 
 
5064
 
# _LT_AC_PROG_CXXCPP
5065
 
# ------------------
5066
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
5067
 
[
5068
 
AC_REQUIRE([AC_PROG_CXX])
5069
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5070
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5071
 
    (test "X$CXX" != "Xg++"))) ; then
5072
 
  AC_PROG_CXXCPP
5073
 
fi
5074
 
])# _LT_AC_PROG_CXXCPP
5075
 
 
5076
 
# AC_LIBTOOL_F77
5077
 
# --------------
5078
 
# enable support for Fortran 77 libraries
5079
 
AC_DEFUN([AC_LIBTOOL_F77],
5080
 
[AC_REQUIRE([_LT_AC_LANG_F77])
5081
 
])# AC_LIBTOOL_F77
5082
 
 
5083
 
 
5084
 
# _LT_AC_LANG_F77
5085
 
# ---------------
5086
 
AC_DEFUN([_LT_AC_LANG_F77],
5087
 
[AC_REQUIRE([AC_PROG_F77])
5088
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
5089
 
])# _LT_AC_LANG_F77
5090
 
 
5091
 
 
5092
 
# AC_LIBTOOL_GCJ
5093
 
# --------------
5094
 
# enable support for GCJ libraries
5095
 
AC_DEFUN([AC_LIBTOOL_GCJ],
5096
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
5097
 
])# AC_LIBTOOL_GCJ
5098
 
 
5099
 
 
5100
 
# _LT_AC_LANG_GCJ
5101
 
# ---------------
5102
 
AC_DEFUN([_LT_AC_LANG_GCJ],
5103
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
5104
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
5105
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
5106
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
5107
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
5108
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5109
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5110
 
])# _LT_AC_LANG_GCJ
5111
 
 
5112
 
 
5113
 
# AC_LIBTOOL_RC
5114
 
# -------------
5115
 
# enable support for Windows resource files
5116
 
AC_DEFUN([AC_LIBTOOL_RC],
5117
 
[AC_REQUIRE([LT_AC_PROG_RC])
5118
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5119
 
])# AC_LIBTOOL_RC
5120
 
 
5121
 
 
5122
 
# AC_LIBTOOL_LANG_C_CONFIG
5123
 
# ------------------------
5124
 
# Ensure that the configuration vars for the C compiler are
5125
 
# suitably defined.  Those variables are subsequently used by
5126
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5127
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
5128
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
5129
 
[lt_save_CC="$CC"
5130
 
AC_LANG_PUSH(C)
5131
 
 
5132
 
# Source file extension for C test sources.
5133
 
ac_ext=c
5134
 
 
5135
 
# Object file extension for compiled C test sources.
5136
 
objext=o
5137
 
_LT_AC_TAGVAR(objext, $1)=$objext
5138
 
 
5139
 
# Code to be used in simple compile tests
5140
 
lt_simple_compile_test_code="int some_variable = 0;"
5141
 
 
5142
 
# Code to be used in simple link tests
5143
 
lt_simple_link_test_code='int main(){return(0);}'
5144
 
 
5145
 
_LT_AC_SYS_COMPILER
5146
 
 
5147
 
# save warnings/boilerplate of simple test code
5148
 
_LT_COMPILER_BOILERPLATE
5149
 
_LT_LINKER_BOILERPLATE
5150
 
 
5151
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5152
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5153
 
AC_LIBTOOL_PROG_CC_C_O($1)
5154
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5155
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5156
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5157
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5158
 
AC_LIBTOOL_SYS_LIB_STRIP
5159
 
AC_LIBTOOL_DLOPEN_SELF
5160
 
 
5161
 
# Report which library types will actually be built
5162
 
AC_MSG_CHECKING([if libtool supports shared libraries])
5163
 
AC_MSG_RESULT([$can_build_shared])
5164
 
 
5165
 
AC_MSG_CHECKING([whether to build shared libraries])
5166
 
test "$can_build_shared" = "no" && enable_shared=no
5167
 
 
5168
 
# On AIX, shared libraries and static libraries use the same namespace, and
5169
 
# are all built from PIC.
5170
 
case $host_os in
5171
 
aix3*)
5172
 
  test "$enable_shared" = yes && enable_static=no
5173
 
  if test -n "$RANLIB"; then
5174
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5175
 
    postinstall_cmds='$RANLIB $lib'
5176
 
  fi
5177
 
  ;;
5178
 
 
5179
 
aix4* | aix5*)
5180
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5181
 
    test "$enable_shared" = yes && enable_static=no
5182
 
  fi
5183
 
    ;;
5184
 
esac
5185
 
AC_MSG_RESULT([$enable_shared])
5186
 
 
5187
 
AC_MSG_CHECKING([whether to build static libraries])
5188
 
# Make sure either enable_shared or enable_static is yes.
5189
 
test "$enable_shared" = yes || enable_static=yes
5190
 
AC_MSG_RESULT([$enable_static])
5191
 
 
5192
 
AC_LIBTOOL_CONFIG($1)
5193
 
 
5194
 
AC_LANG_POP
5195
 
CC="$lt_save_CC"
5196
 
])# AC_LIBTOOL_LANG_C_CONFIG
5197
 
 
5198
 
 
5199
 
# AC_LIBTOOL_LANG_CXX_CONFIG
5200
 
# --------------------------
5201
 
# Ensure that the configuration vars for the C compiler are
5202
 
# suitably defined.  Those variables are subsequently used by
5203
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5204
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5205
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5206
 
[AC_LANG_PUSH(C++)
5207
 
AC_REQUIRE([AC_PROG_CXX])
5208
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5209
 
 
5210
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5211
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5212
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5213
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5214
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5215
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5216
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5217
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5218
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5219
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5220
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5221
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5222
 
_LT_AC_TAGVAR(module_cmds, $1)=
5223
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5224
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5225
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5226
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5227
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5228
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5229
 
 
5230
 
# Dependencies to place before and after the object being linked:
5231
 
_LT_AC_TAGVAR(predep_objects, $1)=
5232
 
_LT_AC_TAGVAR(postdep_objects, $1)=
5233
 
_LT_AC_TAGVAR(predeps, $1)=
5234
 
_LT_AC_TAGVAR(postdeps, $1)=
5235
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5236
 
 
5237
 
# Source file extension for C++ test sources.
5238
 
ac_ext=cpp
5239
 
 
5240
 
# Object file extension for compiled C++ test sources.
5241
 
objext=o
5242
 
_LT_AC_TAGVAR(objext, $1)=$objext
5243
 
 
5244
 
# Code to be used in simple compile tests
5245
 
lt_simple_compile_test_code="int some_variable = 0;"
5246
 
 
5247
 
# Code to be used in simple link tests
5248
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5249
 
 
5250
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5251
 
_LT_AC_SYS_COMPILER
5252
 
 
5253
 
# save warnings/boilerplate of simple test code
5254
 
_LT_COMPILER_BOILERPLATE
5255
 
_LT_LINKER_BOILERPLATE
5256
 
 
5257
 
# Allow CC to be a program name with arguments.
5258
 
lt_save_CC=$CC
5259
 
lt_save_LD=$LD
5260
 
lt_save_GCC=$GCC
5261
 
GCC=$GXX
5262
 
lt_save_with_gnu_ld=$with_gnu_ld
5263
 
lt_save_path_LD=$lt_cv_path_LD
5264
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5265
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5266
 
else
5267
 
  $as_unset lt_cv_prog_gnu_ld
5268
 
fi
5269
 
if test -n "${lt_cv_path_LDCXX+set}"; then
5270
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
5271
 
else
5272
 
  $as_unset lt_cv_path_LD
5273
 
fi
5274
 
test -z "${LDCXX+set}" || LD=$LDCXX
5275
 
CC=${CXX-"c++"}
5276
 
compiler=$CC
5277
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5278
 
_LT_CC_BASENAME([$compiler])
5279
 
 
5280
 
# We don't want -fno-exception wen compiling C++ code, so set the
5281
 
# no_builtin_flag separately
5282
 
if test "$GXX" = yes; then
5283
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5284
 
else
5285
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5286
 
fi
5287
 
 
5288
 
if test "$GXX" = yes; then
5289
 
  # Set up default GNU C++ configuration
5290
 
 
5291
 
  AC_PROG_LD
5292
 
 
5293
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
5294
 
  # archiving commands below assume that GNU ld is being used.
5295
 
  if test "$with_gnu_ld" = yes; then
5296
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5297
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5298
 
 
5299
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5300
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5301
 
 
5302
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
5303
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5304
 
    #     investigate it a little bit more. (MM)
5305
 
    wlarc='${wl}'
5306
 
 
5307
 
    # ancient GNU ld didn't support --whole-archive et. al.
5308
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5309
 
        grep 'no-whole-archive' > /dev/null; then
5310
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5311
 
    else
5312
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5313
 
    fi
5314
 
  else
5315
 
    with_gnu_ld=no
5316
 
    wlarc=
5317
 
 
5318
 
    # A generic and very simple default shared library creation
5319
 
    # command for GNU C++ for the case where it uses the native
5320
 
    # linker, instead of GNU ld.  If possible, this setting should
5321
 
    # overridden to take advantage of the native linker features on
5322
 
    # the platform it is being used on.
5323
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5324
 
  fi
5325
 
 
5326
 
  # Commands to make compiler produce verbose output that lists
5327
 
  # what "hidden" libraries, object files and flags are used when
5328
 
  # linking a shared library.
5329
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5330
 
 
5331
 
else
5332
 
  GXX=no
5333
 
  with_gnu_ld=no
5334
 
  wlarc=
5335
 
fi
5336
 
 
5337
 
# PORTME: fill in a description of your system's C++ link characteristics
5338
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5339
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5340
 
case $host_os in
5341
 
  aix3*)
5342
 
    # FIXME: insert proper C++ library support
5343
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5344
 
    ;;
5345
 
  aix4* | aix5*)
5346
 
    if test "$host_cpu" = ia64; then
5347
 
      # On IA64, the linker does run time linking by default, so we don't
5348
 
      # have to do anything special.
5349
 
      aix_use_runtimelinking=no
5350
 
      exp_sym_flag='-Bexport'
5351
 
      no_entry_flag=""
5352
 
    else
5353
 
      aix_use_runtimelinking=no
5354
 
 
5355
 
      # Test if we are trying to use run time linking or normal
5356
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5357
 
      # need to do runtime linking.
5358
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5359
 
        for ld_flag in $LDFLAGS; do
5360
 
          case $ld_flag in
5361
 
          *-brtl*)
5362
 
            aix_use_runtimelinking=yes
5363
 
            break
5364
 
            ;;
5365
 
          esac
5366
 
        done
5367
 
        ;;
5368
 
      esac
5369
 
 
5370
 
      exp_sym_flag='-bexport'
5371
 
      no_entry_flag='-bnoentry'
5372
 
    fi
5373
 
 
5374
 
    # When large executables or shared objects are built, AIX ld can
5375
 
    # have problems creating the table of contents.  If linking a library
5376
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5377
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5378
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5379
 
 
5380
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
5381
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5382
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5383
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5384
 
 
5385
 
    if test "$GXX" = yes; then
5386
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
5387
 
      # We only want to do this on AIX 4.2 and lower, the check
5388
 
      # below for broken collect2 doesn't work under 4.3+
5389
 
        collect2name=`${CC} -print-prog-name=collect2`
5390
 
        if test -f "$collect2name" && \
5391
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5392
 
        then
5393
 
          # We have reworked collect2
5394
 
          :
5395
 
        else
5396
 
          # We have old collect2
5397
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5398
 
          # It fails to find uninstalled libraries when the uninstalled
5399
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5400
 
          # to unsupported forces relinking
5401
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5402
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5403
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5404
 
        fi
5405
 
        ;;
5406
 
      esac
5407
 
      shared_flag='-shared'
5408
 
      if test "$aix_use_runtimelinking" = yes; then
5409
 
        shared_flag="$shared_flag "'${wl}-G'
5410
 
      fi
5411
 
    else
5412
 
      # not using gcc
5413
 
      if test "$host_cpu" = ia64; then
5414
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5415
 
        # chokes on -Wl,-G. The following line is correct:
5416
 
        shared_flag='-G'
5417
 
      else
5418
 
        if test "$aix_use_runtimelinking" = yes; then
5419
 
          shared_flag='${wl}-G'
5420
 
        else
5421
 
          shared_flag='${wl}-bM:SRE'
5422
 
        fi
5423
 
      fi
5424
 
    fi
5425
 
 
5426
 
    # It seems that -bexpall does not export symbols beginning with
5427
 
    # underscore (_), so it is better to generate a list of symbols to export.
5428
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5429
 
    if test "$aix_use_runtimelinking" = yes; then
5430
 
      # Warning - without using the other runtime loading flags (-brtl),
5431
 
      # -berok will link without error, but may produce a broken library.
5432
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5433
 
      # Determine the default libpath from the value encoded in an empty executable.
5434
 
      _LT_AC_SYS_LIBPATH_AIX
5435
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5436
 
 
5437
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5438
 
     else
5439
 
      if test "$host_cpu" = ia64; then
5440
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5441
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5442
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5443
 
      else
5444
 
        # Determine the default libpath from the value encoded in an empty executable.
5445
 
        _LT_AC_SYS_LIBPATH_AIX
5446
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5447
 
        # Warning - without using the other run time loading flags,
5448
 
        # -berok will link without error, but may produce a broken library.
5449
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5450
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5451
 
        # Exported symbols can be pulled into shared objects from archives
5452
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5453
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5454
 
        # This is similar to how AIX traditionally builds its shared libraries.
5455
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5456
 
      fi
5457
 
    fi
5458
 
    ;;
5459
 
 
5460
 
  beos*)
5461
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5462
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5463
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5464
 
      # support --undefined.  This deserves some investigation.  FIXME
5465
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466
 
    else
5467
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5468
 
    fi
5469
 
    ;;
5470
 
 
5471
 
  chorus*)
5472
 
    case $cc_basename in
5473
 
      *)
5474
 
        # FIXME: insert proper C++ library support
5475
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5476
 
        ;;
5477
 
    esac
5478
 
    ;;
5479
 
 
5480
 
  cygwin* | mingw* | pw32*)
5481
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5482
 
    # as there is no search path for DLLs.
5483
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5484
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5485
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
5486
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5487
 
 
5488
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5489
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5490
 
      # If the export-symbols file already is a .def file (1st line
5491
 
      # is EXPORTS), use it as is; otherwise, prepend...
5492
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5493
 
        cp $export_symbols $output_objdir/$soname.def;
5494
 
      else
5495
 
        echo EXPORTS > $output_objdir/$soname.def;
5496
 
        cat $export_symbols >> $output_objdir/$soname.def;
5497
 
      fi~
5498
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5499
 
    else
5500
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5501
 
    fi
5502
 
  ;;
5503
 
      darwin* | rhapsody*)
5504
 
        case $host_os in
5505
 
        rhapsody* | darwin1.[[012]])
5506
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5507
 
         ;;
5508
 
       *) # Darwin 1.3 on
5509
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5510
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5511
 
         else
5512
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
5513
 
             10.[[012]])
5514
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5515
 
               ;;
5516
 
             10.*)
5517
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5518
 
               ;;
5519
 
           esac
5520
 
         fi
5521
 
         ;;
5522
 
        esac
5523
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5524
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5525
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5526
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5527
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5528
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5529
 
 
5530
 
    if test "$GXX" = yes ; then
5531
 
      lt_int_apple_cc_single_mod=no
5532
 
      output_verbose_link_cmd='echo'
5533
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5534
 
       lt_int_apple_cc_single_mod=yes
5535
 
      fi
5536
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5537
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5538
 
      else
5539
 
          _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'
5540
 
        fi
5541
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5542
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5543
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5544
 
            _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}'
5545
 
          else
5546
 
            _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}'
5547
 
          fi
5548
 
            _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}'
5549
 
      else
5550
 
      case $cc_basename in
5551
 
        xlc*)
5552
 
         output_verbose_link_cmd='echo'
5553
 
          _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'
5554
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5555
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5556
 
          _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}'
5557
 
          _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}'
5558
 
          ;;
5559
 
       *)
5560
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
5561
 
          ;;
5562
 
      esac
5563
 
      fi
5564
 
        ;;
5565
 
 
5566
 
  dgux*)
5567
 
    case $cc_basename in
5568
 
      ec++*)
5569
 
        # FIXME: insert proper C++ library support
5570
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5571
 
        ;;
5572
 
      ghcx*)
5573
 
        # Green Hills C++ Compiler
5574
 
        # FIXME: insert proper C++ library support
5575
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5576
 
        ;;
5577
 
      *)
5578
 
        # FIXME: insert proper C++ library support
5579
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5580
 
        ;;
5581
 
    esac
5582
 
    ;;
5583
 
  freebsd[[12]]*)
5584
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
5585
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5586
 
    ;;
5587
 
  freebsd-elf*)
5588
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5589
 
    ;;
5590
 
  freebsd* | dragonfly*)
5591
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5592
 
    # conventions
5593
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5594
 
    ;;
5595
 
  gnu*)
5596
 
    ;;
5597
 
  hpux9*)
5598
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5599
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5600
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5601
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5602
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5603
 
                                # but as the default
5604
 
                                # location of the library.
5605
 
 
5606
 
    case $cc_basename in
5607
 
    CC*)
5608
 
      # FIXME: insert proper C++ library support
5609
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5610
 
      ;;
5611
 
    aCC*)
5612
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5613
 
      # Commands to make compiler produce verbose output that lists
5614
 
      # what "hidden" libraries, object files and flags are used when
5615
 
      # linking a shared library.
5616
 
      #
5617
 
      # There doesn't appear to be a way to prevent this compiler from
5618
 
      # explicitly linking system object files so we need to strip them
5619
 
      # from the output so that they don't get included in the library
5620
 
      # dependencies.
5621
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5622
 
      ;;
5623
 
    *)
5624
 
      if test "$GXX" = yes; then
5625
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5626
 
      else
5627
 
        # FIXME: insert proper C++ library support
5628
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5629
 
      fi
5630
 
      ;;
5631
 
    esac
5632
 
    ;;
5633
 
  hpux10*|hpux11*)
5634
 
    if test $with_gnu_ld = no; then
5635
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5636
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5637
 
 
5638
 
      case $host_cpu in
5639
 
      hppa*64*|ia64*) ;;
5640
 
      *)
5641
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5642
 
        ;;
5643
 
      esac
5644
 
    fi
5645
 
    case $host_cpu in
5646
 
    hppa*64*|ia64*)
5647
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5648
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5649
 
      ;;
5650
 
    *)
5651
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5652
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5653
 
                                              # but as the default
5654
 
                                              # location of the library.
5655
 
      ;;
5656
 
    esac
5657
 
 
5658
 
    case $cc_basename in
5659
 
      CC*)
5660
 
        # FIXME: insert proper C++ library support
5661
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5662
 
        ;;
5663
 
      aCC*)
5664
 
        case $host_cpu in
5665
 
        hppa*64*)
5666
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5667
 
          ;;
5668
 
        ia64*)
5669
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5670
 
          ;;
5671
 
        *)
5672
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5673
 
          ;;
5674
 
        esac
5675
 
        # Commands to make compiler produce verbose output that lists
5676
 
        # what "hidden" libraries, object files and flags are used when
5677
 
        # linking a shared library.
5678
 
        #
5679
 
        # There doesn't appear to be a way to prevent this compiler from
5680
 
        # explicitly linking system object files so we need to strip them
5681
 
        # from the output so that they don't get included in the library
5682
 
        # dependencies.
5683
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5684
 
        ;;
5685
 
      *)
5686
 
        if test "$GXX" = yes; then
5687
 
          if test $with_gnu_ld = no; then
5688
 
            case $host_cpu in
5689
 
            hppa*64*)
5690
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5691
 
              ;;
5692
 
            ia64*)
5693
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5694
 
              ;;
5695
 
            *)
5696
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5697
 
              ;;
5698
 
            esac
5699
 
          fi
5700
 
        else
5701
 
          # FIXME: insert proper C++ library support
5702
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5703
 
        fi
5704
 
        ;;
5705
 
    esac
5706
 
    ;;
5707
 
  interix[[3-9]]*)
5708
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
5709
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5710
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5711
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5712
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5713
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
5714
 
    # default) and relocated if they conflict, which is a slow very memory
5715
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
5716
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5717
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5718
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5719
 
    _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'
5720
 
    ;;
5721
 
  irix5* | irix6*)
5722
 
    case $cc_basename in
5723
 
      CC*)
5724
 
        # SGI C++
5725
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5726
 
 
5727
 
        # Archives containing C++ object files must be created using
5728
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5729
 
        # necessary to make sure instantiated templates are included
5730
 
        # in the archive.
5731
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5732
 
        ;;
5733
 
      *)
5734
 
        if test "$GXX" = yes; then
5735
 
          if test "$with_gnu_ld" = no; then
5736
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5737
 
          else
5738
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5739
 
          fi
5740
 
        fi
5741
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5742
 
        ;;
5743
 
    esac
5744
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5745
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5746
 
    ;;
5747
 
  linux* | k*bsd*-gnu)
5748
 
    case $cc_basename in
5749
 
      KCC*)
5750
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5751
 
 
5752
 
        # KCC will only create a shared library if the output file
5753
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5754
 
        # to its proper name (with version) after linking.
5755
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5756
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5757
 
        # Commands to make compiler produce verbose output that lists
5758
 
        # what "hidden" libraries, object files and flags are used when
5759
 
        # linking a shared library.
5760
 
        #
5761
 
        # There doesn't appear to be a way to prevent this compiler from
5762
 
        # explicitly linking system object files so we need to strip them
5763
 
        # from the output so that they don't get included in the library
5764
 
        # dependencies.
5765
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5766
 
 
5767
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5768
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5769
 
 
5770
 
        # Archives containing C++ object files must be created using
5771
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5772
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5773
 
        ;;
5774
 
      icpc*)
5775
 
        # Intel C++
5776
 
        with_gnu_ld=yes
5777
 
        # version 8.0 and above of icpc choke on multiply defined symbols
5778
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
5779
 
        # earlier do not add the objects themselves.
5780
 
        case `$CC -V 2>&1` in
5781
 
        *"Version 7."*)
5782
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5783
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5784
 
          ;;
5785
 
        *)  # Version 8.0 or newer
5786
 
          tmp_idyn=
5787
 
          case $host_cpu in
5788
 
            ia64*) tmp_idyn=' -i_dynamic';;
5789
 
          esac
5790
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5792
 
          ;;
5793
 
        esac
5794
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5795
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5796
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5797
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5798
 
        ;;
5799
 
      pgCC*)
5800
 
        # Portland Group C++ compiler
5801
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5802
 
        _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'
5803
 
 
5804
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5805
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5806
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5807
 
        ;;
5808
 
      cxx*)
5809
 
        # Compaq C++
5810
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5811
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5812
 
 
5813
 
        runpath_var=LD_RUN_PATH
5814
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5815
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5816
 
 
5817
 
        # Commands to make compiler produce verbose output that lists
5818
 
        # what "hidden" libraries, object files and flags are used when
5819
 
        # linking a shared library.
5820
 
        #
5821
 
        # There doesn't appear to be a way to prevent this compiler from
5822
 
        # explicitly linking system object files so we need to strip them
5823
 
        # from the output so that they don't get included in the library
5824
 
        # dependencies.
5825
 
        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'
5826
 
        ;;
5827
 
      *)
5828
 
        case `$CC -V 2>&1 | sed 5q` in
5829
 
        *Sun\ C*)
5830
 
          # Sun C++ 5.9
5831
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5832
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5833
 
          _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'
5834
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5835
 
          _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'
5836
 
 
5837
 
          # Not sure whether something based on
5838
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5839
 
          # would be better.
5840
 
          output_verbose_link_cmd='echo'
5841
 
 
5842
 
          # Archives containing C++ object files must be created using
5843
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5844
 
          # necessary to make sure instantiated templates are included
5845
 
          # in the archive.
5846
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5847
 
          ;;
5848
 
        esac
5849
 
        ;;
5850
 
    esac
5851
 
    ;;
5852
 
  lynxos*)
5853
 
    # FIXME: insert proper C++ library support
5854
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5855
 
    ;;
5856
 
  m88k*)
5857
 
    # FIXME: insert proper C++ library support
5858
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5859
 
    ;;
5860
 
  mvs*)
5861
 
    case $cc_basename in
5862
 
      cxx*)
5863
 
        # FIXME: insert proper C++ library support
5864
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5865
 
        ;;
5866
 
      *)
5867
 
        # FIXME: insert proper C++ library support
5868
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5869
 
        ;;
5870
 
    esac
5871
 
    ;;
5872
 
  netbsd*)
5873
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5874
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5875
 
      wlarc=
5876
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5877
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5878
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5879
 
    fi
5880
 
    # Workaround some broken pre-1.5 toolchains
5881
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5882
 
    ;;
5883
 
  openbsd2*)
5884
 
    # C++ shared libraries are fairly broken
5885
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5886
 
    ;;
5887
 
  openbsd*)
5888
 
    if test -f /usr/libexec/ld.so; then
5889
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5890
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5891
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5892
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5893
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5894
 
        _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'
5895
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5896
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5897
 
      fi
5898
 
      output_verbose_link_cmd='echo'
5899
 
    else
5900
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5901
 
    fi
5902
 
    ;;
5903
 
  osf3*)
5904
 
    case $cc_basename in
5905
 
      KCC*)
5906
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5907
 
 
5908
 
        # KCC will only create a shared library if the output file
5909
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5910
 
        # to its proper name (with version) after linking.
5911
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5912
 
 
5913
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5914
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5915
 
 
5916
 
        # Archives containing C++ object files must be created using
5917
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5918
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5919
 
 
5920
 
        ;;
5921
 
      RCC*)
5922
 
        # Rational C++ 2.4.1
5923
 
        # FIXME: insert proper C++ library support
5924
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5925
 
        ;;
5926
 
      cxx*)
5927
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5928
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5929
 
 
5930
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5931
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5932
 
 
5933
 
        # Commands to make compiler produce verbose output that lists
5934
 
        # what "hidden" libraries, object files and flags are used when
5935
 
        # linking a shared library.
5936
 
        #
5937
 
        # There doesn't appear to be a way to prevent this compiler from
5938
 
        # explicitly linking system object files so we need to strip them
5939
 
        # from the output so that they don't get included in the library
5940
 
        # dependencies.
5941
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
5942
 
        ;;
5943
 
      *)
5944
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5945
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5946
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5947
 
 
5948
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5949
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5950
 
 
5951
 
          # Commands to make compiler produce verbose output that lists
5952
 
          # what "hidden" libraries, object files and flags are used when
5953
 
          # linking a shared library.
5954
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5955
 
 
5956
 
        else
5957
 
          # FIXME: insert proper C++ library support
5958
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5959
 
        fi
5960
 
        ;;
5961
 
    esac
5962
 
    ;;
5963
 
  osf4* | osf5*)
5964
 
    case $cc_basename in
5965
 
      KCC*)
5966
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5967
 
 
5968
 
        # KCC will only create a shared library if the output file
5969
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5970
 
        # to its proper name (with version) after linking.
5971
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5972
 
 
5973
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5974
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5975
 
 
5976
 
        # Archives containing C++ object files must be created using
5977
 
        # the KAI C++ compiler.
5978
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5979
 
        ;;
5980
 
      RCC*)
5981
 
        # Rational C++ 2.4.1
5982
 
        # FIXME: insert proper C++ library support
5983
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5984
 
        ;;
5985
 
      cxx*)
5986
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5987
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5988
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5989
 
          echo "-hidden">> $lib.exp~
5990
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
5991
 
          $rm $lib.exp'
5992
 
 
5993
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5994
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5995
 
 
5996
 
        # Commands to make compiler produce verbose output that lists
5997
 
        # what "hidden" libraries, object files and flags are used when
5998
 
        # linking a shared library.
5999
 
        #
6000
 
        # There doesn't appear to be a way to prevent this compiler from
6001
 
        # explicitly linking system object files so we need to strip them
6002
 
        # from the output so that they don't get included in the library
6003
 
        # dependencies.
6004
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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'
6005
 
        ;;
6006
 
      *)
6007
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6008
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6009
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6010
 
 
6011
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6012
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6013
 
 
6014
 
          # Commands to make compiler produce verbose output that lists
6015
 
          # what "hidden" libraries, object files and flags are used when
6016
 
          # linking a shared library.
6017
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6018
 
 
6019
 
        else
6020
 
          # FIXME: insert proper C++ library support
6021
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
6022
 
        fi
6023
 
        ;;
6024
 
    esac
6025
 
    ;;
6026
 
  psos*)
6027
 
    # FIXME: insert proper C++ library support
6028
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6029
 
    ;;
6030
 
  sunos4*)
6031
 
    case $cc_basename in
6032
 
      CC*)
6033
 
        # Sun C++ 4.x
6034
 
        # FIXME: insert proper C++ library support
6035
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6036
 
        ;;
6037
 
      lcc*)
6038
 
        # Lucid
6039
 
        # FIXME: insert proper C++ library support
6040
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6041
 
        ;;
6042
 
      *)
6043
 
        # FIXME: insert proper C++ library support
6044
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6045
 
        ;;
6046
 
    esac
6047
 
    ;;
6048
 
  solaris*)
6049
 
    case $cc_basename in
6050
 
      CC*)
6051
 
        # Sun C++ 4.2, 5.x and Centerline C++
6052
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6053
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6054
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6055
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6056
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6057
 
 
6058
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6059
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6060
 
        case $host_os in
6061
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6062
 
          *)
6063
 
            # The compiler driver will combine and reorder linker options,
6064
 
            # but understands `-z linker_flag'.
6065
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
6066
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6067
 
            ;;
6068
 
        esac
6069
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6070
 
 
6071
 
        output_verbose_link_cmd='echo'
6072
 
 
6073
 
        # Archives containing C++ object files must be created using
6074
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6075
 
        # necessary to make sure instantiated templates are included
6076
 
        # in the archive.
6077
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6078
 
        ;;
6079
 
      gcx*)
6080
 
        # Green Hills C++ Compiler
6081
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6082
 
 
6083
 
        # The C++ compiler must be used to create the archive.
6084
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6085
 
        ;;
6086
 
      *)
6087
 
        # GNU C++ compiler with Solaris linker
6088
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6089
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6090
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
6091
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6092
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6093
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6094
 
 
6095
 
            # Commands to make compiler produce verbose output that lists
6096
 
            # what "hidden" libraries, object files and flags are used when
6097
 
            # linking a shared library.
6098
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6099
 
          else
6100
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
6101
 
            # platform.
6102
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6103
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6104
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6105
 
 
6106
 
            # Commands to make compiler produce verbose output that lists
6107
 
            # what "hidden" libraries, object files and flags are used when
6108
 
            # linking a shared library.
6109
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6110
 
          fi
6111
 
 
6112
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6113
 
          case $host_os in
6114
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6115
 
          *)
6116
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6117
 
            ;;
6118
 
          esac
6119
 
        fi
6120
 
        ;;
6121
 
    esac
6122
 
    ;;
6123
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6124
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6125
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6126
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6127
 
    runpath_var='LD_RUN_PATH'
6128
 
 
6129
 
    case $cc_basename in
6130
 
      CC*)
6131
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6132
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6133
 
        ;;
6134
 
      *)
6135
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6136
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6137
 
        ;;
6138
 
    esac
6139
 
    ;;
6140
 
  sysv5* | sco3.2v5* | sco5v6*)
6141
 
    # Note: We can NOT use -z defs as we might desire, because we do not
6142
 
    # link with -lc, and that would cause any symbols used from libc to
6143
 
    # always be unresolved, which means just about no library would
6144
 
    # ever link correctly.  If we're not using GNU ld we use -z text
6145
 
    # though, which does catch some bad symbols but isn't as heavy-handed
6146
 
    # as -z defs.
6147
 
    # For security reasons, it is highly recommended that you always
6148
 
    # use absolute paths for naming shared libraries, and exclude the
6149
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
6150
 
    # requires that you compile everything twice, which is a pain.
6151
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
6152
 
    # non-empty value in the environment.  Most likely only useful for
6153
 
    # creating official distributions of packages.
6154
 
    # This is a hack until libtool officially supports absolute path
6155
 
    # names for shared libraries.
6156
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6157
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6158
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6159
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6160
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6161
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6162
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6163
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6164
 
    runpath_var='LD_RUN_PATH'
6165
 
 
6166
 
    case $cc_basename in
6167
 
      CC*)
6168
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6169
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6170
 
        ;;
6171
 
      *)
6172
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6173
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6174
 
        ;;
6175
 
    esac
6176
 
    ;;
6177
 
  tandem*)
6178
 
    case $cc_basename in
6179
 
      NCC*)
6180
 
        # NonStop-UX NCC 3.20
6181
 
        # FIXME: insert proper C++ library support
6182
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6183
 
        ;;
6184
 
      *)
6185
 
        # FIXME: insert proper C++ library support
6186
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6187
 
        ;;
6188
 
    esac
6189
 
    ;;
6190
 
  vxworks*)
6191
 
    # FIXME: insert proper C++ library support
6192
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6193
 
    ;;
6194
 
  *)
6195
 
    # FIXME: insert proper C++ library support
6196
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6197
 
    ;;
6198
 
esac
6199
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6200
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6201
 
 
6202
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
6203
 
_LT_AC_TAGVAR(LD, $1)="$LD"
6204
 
 
6205
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
6206
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6207
 
AC_LIBTOOL_PROG_CC_C_O($1)
6208
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6209
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6210
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6211
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6212
 
 
6213
 
AC_LIBTOOL_CONFIG($1)
6214
 
 
6215
 
AC_LANG_POP
6216
 
CC=$lt_save_CC
6217
 
LDCXX=$LD
6218
 
LD=$lt_save_LD
6219
 
GCC=$lt_save_GCC
6220
 
with_gnu_ldcxx=$with_gnu_ld
6221
 
with_gnu_ld=$lt_save_with_gnu_ld
6222
 
lt_cv_path_LDCXX=$lt_cv_path_LD
6223
 
lt_cv_path_LD=$lt_save_path_LD
6224
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6225
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6226
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
6227
 
 
6228
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6229
 
# ------------------------------------
6230
 
# Figure out "hidden" library dependencies from verbose
6231
 
# compiler output when linking a shared library.
6232
 
# Parse the compiler output and extract the necessary
6233
 
# objects, libraries and library flags.
6234
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6235
 
dnl we can't use the lt_simple_compile_test_code here,
6236
 
dnl because it contains code intended for an executable,
6237
 
dnl not a library.  It's possible we should let each
6238
 
dnl tag define a new lt_????_link_test_code variable,
6239
 
dnl but it's only used here...
6240
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6241
 
int a;
6242
 
void foo (void) { a = 0; }
6243
 
EOF
6244
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6245
 
class Foo
6246
 
{
6247
 
public:
6248
 
  Foo (void) { a = 0; }
6249
 
private:
6250
 
  int a;
6251
 
};
6252
 
EOF
6253
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6254
 
      subroutine foo
6255
 
      implicit none
6256
 
      integer*4 a
6257
 
      a=0
6258
 
      return
6259
 
      end
6260
 
EOF
6261
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6262
 
public class foo {
6263
 
  private int a;
6264
 
  public void bar (void) {
6265
 
    a = 0;
6266
 
  }
6267
 
};
6268
 
EOF
6269
 
])
6270
 
dnl Parse the compiler output and extract the necessary
6271
 
dnl objects, libraries and library flags.
6272
 
if AC_TRY_EVAL(ac_compile); then
6273
 
  # Parse the compiler output and extract the necessary
6274
 
  # objects, libraries and library flags.
6275
 
 
6276
 
  # Sentinel used to keep track of whether or not we are before
6277
 
  # the conftest object file.
6278
 
  pre_test_object_deps_done=no
6279
 
 
6280
 
  # The `*' in the case matches for architectures that use `case' in
6281
 
  # $output_verbose_cmd can trigger glob expansion during the loop
6282
 
  # eval without this substitution.
6283
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6284
 
 
6285
 
  for p in `eval $output_verbose_link_cmd`; do
6286
 
    case $p in
6287
 
 
6288
 
    -L* | -R* | -l*)
6289
 
       # Some compilers place space between "-{L,R}" and the path.
6290
 
       # Remove the space.
6291
 
       if test $p = "-L" \
6292
 
          || test $p = "-R"; then
6293
 
         prev=$p
6294
 
         continue
6295
 
       else
6296
 
         prev=
6297
 
       fi
6298
 
 
6299
 
       if test "$pre_test_object_deps_done" = no; then
6300
 
         case $p in
6301
 
         -L* | -R*)
6302
 
           # Internal compiler library paths should come after those
6303
 
           # provided the user.  The postdeps already come after the
6304
 
           # user supplied libs so there is no need to process them.
6305
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6306
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6307
 
           else
6308
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6309
 
           fi
6310
 
           ;;
6311
 
         # The "-l" case would never come before the object being
6312
 
         # linked, so don't bother handling this case.
6313
 
         esac
6314
 
       else
6315
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6316
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6317
 
         else
6318
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6319
 
         fi
6320
 
       fi
6321
 
       ;;
6322
 
 
6323
 
    *.$objext)
6324
 
       # This assumes that the test object file only shows up
6325
 
       # once in the compiler output.
6326
 
       if test "$p" = "conftest.$objext"; then
6327
 
         pre_test_object_deps_done=yes
6328
 
         continue
6329
 
       fi
6330
 
 
6331
 
       if test "$pre_test_object_deps_done" = no; then
6332
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6333
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
6334
 
         else
6335
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6336
 
         fi
6337
 
       else
6338
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6339
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6340
 
         else
6341
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6342
 
         fi
6343
 
       fi
6344
 
       ;;
6345
 
 
6346
 
    *) ;; # Ignore the rest.
6347
 
 
6348
 
    esac
6349
 
  done
6350
 
 
6351
 
  # Clean up.
6352
 
  rm -f a.out a.exe
6353
 
else
6354
 
  echo "libtool.m4: error: problem compiling $1 test program"
6355
 
fi
6356
 
 
6357
 
$rm -f confest.$objext
6358
 
 
6359
 
# PORTME: override above test on systems where it is broken
6360
 
ifelse([$1],[CXX],
6361
 
[case $host_os in
6362
 
interix[[3-9]]*)
6363
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
6364
 
  # hack all around it, let's just trust "g++" to DTRT.
6365
 
  _LT_AC_TAGVAR(predep_objects,$1)=
6366
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
6367
 
  _LT_AC_TAGVAR(postdeps,$1)=
6368
 
  ;;
6369
 
 
6370
 
linux*)
6371
 
  case `$CC -V 2>&1 | sed 5q` in
6372
 
  *Sun\ C*)
6373
 
    # Sun C++ 5.9
6374
 
    #
6375
 
    # The more standards-conforming stlport4 library is
6376
 
    # incompatible with the Cstd library. Avoid specifying
6377
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6378
 
    # -library=stlport4 depends on it.
6379
 
    case " $CXX $CXXFLAGS " in
6380
 
    *" -library=stlport4 "*)
6381
 
      solaris_use_stlport4=yes
6382
 
      ;;
6383
 
    esac
6384
 
    if test "$solaris_use_stlport4" != yes; then
6385
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6386
 
    fi
6387
 
    ;;
6388
 
  esac
6389
 
  ;;
6390
 
 
6391
 
solaris*)
6392
 
  case $cc_basename in
6393
 
  CC*)
6394
 
    # The more standards-conforming stlport4 library is
6395
 
    # incompatible with the Cstd library. Avoid specifying
6396
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6397
 
    # -library=stlport4 depends on it.
6398
 
    case " $CXX $CXXFLAGS " in
6399
 
    *" -library=stlport4 "*)
6400
 
      solaris_use_stlport4=yes
6401
 
      ;;
6402
 
    esac
6403
 
 
6404
 
    # Adding this requires a known-good setup of shared libraries for
6405
 
    # Sun compiler versions before 5.6, else PIC objects from an old
6406
 
    # archive will be linked into the output, leading to subtle bugs.
6407
 
    if test "$solaris_use_stlport4" != yes; then
6408
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6409
 
    fi
6410
 
    ;;
6411
 
  esac
6412
 
  ;;
6413
 
esac
6414
 
])
6415
 
 
6416
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
6417
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6418
 
esac
6419
 
])# AC_LIBTOOL_POSTDEP_PREDEP
6420
 
 
6421
 
# AC_LIBTOOL_LANG_F77_CONFIG
6422
 
# --------------------------
6423
 
# Ensure that the configuration vars for the C compiler are
6424
 
# suitably defined.  Those variables are subsequently used by
6425
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6426
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6427
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6428
 
[AC_REQUIRE([AC_PROG_F77])
6429
 
AC_LANG_PUSH(Fortran 77)
6430
 
 
6431
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6432
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6433
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6434
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6435
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6436
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6437
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6438
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6439
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6440
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6441
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6442
 
_LT_AC_TAGVAR(module_cmds, $1)=
6443
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6444
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6445
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6446
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
6447
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6448
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6449
 
 
6450
 
# Source file extension for f77 test sources.
6451
 
ac_ext=f
6452
 
 
6453
 
# Object file extension for compiled f77 test sources.
6454
 
objext=o
6455
 
_LT_AC_TAGVAR(objext, $1)=$objext
6456
 
 
6457
 
# Code to be used in simple compile tests
6458
 
lt_simple_compile_test_code="\
6459
 
      subroutine t
6460
 
      return
6461
 
      end
6462
 
"
6463
 
 
6464
 
# Code to be used in simple link tests
6465
 
lt_simple_link_test_code="\
6466
 
      program t
6467
 
      end
6468
 
"
6469
 
 
6470
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6471
 
_LT_AC_SYS_COMPILER
6472
 
 
6473
 
# save warnings/boilerplate of simple test code
6474
 
_LT_COMPILER_BOILERPLATE
6475
 
_LT_LINKER_BOILERPLATE
6476
 
 
6477
 
# Allow CC to be a program name with arguments.
6478
 
lt_save_CC="$CC"
6479
 
CC=${F77-"f77"}
6480
 
compiler=$CC
6481
 
_LT_AC_TAGVAR(compiler, $1)=$CC
6482
 
_LT_CC_BASENAME([$compiler])
6483
 
 
6484
 
AC_MSG_CHECKING([if libtool supports shared libraries])
6485
 
AC_MSG_RESULT([$can_build_shared])
6486
 
 
6487
 
AC_MSG_CHECKING([whether to build shared libraries])
6488
 
test "$can_build_shared" = "no" && enable_shared=no
6489
 
 
6490
 
# On AIX, shared libraries and static libraries use the same namespace, and
6491
 
# are all built from PIC.
6492
 
case $host_os in
6493
 
aix3*)
6494
 
  test "$enable_shared" = yes && enable_static=no
6495
 
  if test -n "$RANLIB"; then
6496
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6497
 
    postinstall_cmds='$RANLIB $lib'
6498
 
  fi
6499
 
  ;;
6500
 
aix4* | aix5*)
6501
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6502
 
    test "$enable_shared" = yes && enable_static=no
6503
 
  fi
6504
 
  ;;
6505
 
esac
6506
 
AC_MSG_RESULT([$enable_shared])
6507
 
 
6508
 
AC_MSG_CHECKING([whether to build static libraries])
6509
 
# Make sure either enable_shared or enable_static is yes.
6510
 
test "$enable_shared" = yes || enable_static=yes
6511
 
AC_MSG_RESULT([$enable_static])
6512
 
 
6513
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
6514
 
_LT_AC_TAGVAR(LD, $1)="$LD"
6515
 
 
6516
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6517
 
AC_LIBTOOL_PROG_CC_C_O($1)
6518
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6519
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6520
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6521
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6522
 
 
6523
 
AC_LIBTOOL_CONFIG($1)
6524
 
 
6525
 
AC_LANG_POP
6526
 
CC="$lt_save_CC"
6527
 
])# AC_LIBTOOL_LANG_F77_CONFIG
6528
 
 
6529
 
 
6530
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
6531
 
# --------------------------
6532
 
# Ensure that the configuration vars for the C compiler are
6533
 
# suitably defined.  Those variables are subsequently used by
6534
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6535
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6536
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6537
 
[AC_LANG_SAVE
6538
 
 
6539
 
# Source file extension for Java test sources.
6540
 
ac_ext=java
6541
 
 
6542
 
# Object file extension for compiled Java test sources.
6543
 
objext=o
6544
 
_LT_AC_TAGVAR(objext, $1)=$objext
6545
 
 
6546
 
# Code to be used in simple compile tests
6547
 
lt_simple_compile_test_code="class foo {}"
6548
 
 
6549
 
# Code to be used in simple link tests
6550
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6551
 
 
6552
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6553
 
_LT_AC_SYS_COMPILER
6554
 
 
6555
 
# save warnings/boilerplate of simple test code
6556
 
_LT_COMPILER_BOILERPLATE
6557
 
_LT_LINKER_BOILERPLATE
6558
 
 
6559
 
# Allow CC to be a program name with arguments.
6560
 
lt_save_CC="$CC"
6561
 
CC=${GCJ-"gcj"}
6562
 
compiler=$CC
6563
 
_LT_AC_TAGVAR(compiler, $1)=$CC
6564
 
_LT_CC_BASENAME([$compiler])
6565
 
 
6566
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6567
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6568
 
 
6569
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6570
 
 
6571
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6572
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6573
 
AC_LIBTOOL_PROG_CC_C_O($1)
6574
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6575
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6576
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6577
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6578
 
 
6579
 
AC_LIBTOOL_CONFIG($1)
6580
 
 
6581
 
AC_LANG_RESTORE
6582
 
CC="$lt_save_CC"
6583
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
6584
 
 
6585
 
 
6586
 
# AC_LIBTOOL_LANG_RC_CONFIG
6587
 
# -------------------------
6588
 
# Ensure that the configuration vars for the Windows resource compiler are
6589
 
# suitably defined.  Those variables are subsequently used by
6590
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6591
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6592
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6593
 
[AC_LANG_SAVE
6594
 
 
6595
 
# Source file extension for RC test sources.
6596
 
ac_ext=rc
6597
 
 
6598
 
# Object file extension for compiled RC test sources.
6599
 
objext=o
6600
 
_LT_AC_TAGVAR(objext, $1)=$objext
6601
 
 
6602
 
# Code to be used in simple compile tests
6603
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6604
 
 
6605
 
# Code to be used in simple link tests
6606
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
6607
 
 
6608
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6609
 
_LT_AC_SYS_COMPILER
6610
 
 
6611
 
# save warnings/boilerplate of simple test code
6612
 
_LT_COMPILER_BOILERPLATE
6613
 
_LT_LINKER_BOILERPLATE
6614
 
 
6615
 
# Allow CC to be a program name with arguments.
6616
 
lt_save_CC="$CC"
6617
 
CC=${RC-"windres"}
6618
 
compiler=$CC
6619
 
_LT_AC_TAGVAR(compiler, $1)=$CC
6620
 
_LT_CC_BASENAME([$compiler])
6621
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6622
 
 
6623
 
AC_LIBTOOL_CONFIG($1)
6624
 
 
6625
 
AC_LANG_RESTORE
6626
 
CC="$lt_save_CC"
6627
 
])# AC_LIBTOOL_LANG_RC_CONFIG
6628
 
 
6629
 
 
6630
 
# AC_LIBTOOL_CONFIG([TAGNAME])
6631
 
# ----------------------------
6632
 
# If TAGNAME is not passed, then create an initial libtool script
6633
 
# with a default configuration from the untagged config vars.  Otherwise
6634
 
# add code to config.status for appending the configuration named by
6635
 
# TAGNAME from the matching tagged config vars.
6636
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
6637
 
[# The else clause should only fire when bootstrapping the
6638
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
6639
 
# with your package, and you will get complaints that there are
6640
 
# no rules to generate ltmain.sh.
6641
 
if test -f "$ltmain"; then
6642
 
  # See if we are running on zsh, and set the options which allow our commands through
6643
 
  # without removal of \ escapes.
6644
 
  if test -n "${ZSH_VERSION+set}" ; then
6645
 
    setopt NO_GLOB_SUBST
6646
 
  fi
6647
 
  # Now quote all the things that may contain metacharacters while being
6648
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6649
 
  # variables and quote the copies for generation of the libtool script.
6650
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
6651
 
    SED SHELL STRIP \
6652
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6653
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6654
 
    deplibs_check_method reload_flag reload_cmds need_locks \
6655
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6656
 
    lt_cv_sys_global_symbol_to_c_name_address \
6657
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6658
 
    old_postinstall_cmds old_postuninstall_cmds \
6659
 
    _LT_AC_TAGVAR(compiler, $1) \
6660
 
    _LT_AC_TAGVAR(CC, $1) \
6661
 
    _LT_AC_TAGVAR(LD, $1) \
6662
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6663
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6664
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6665
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6666
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6667
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6668
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6669
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6670
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
6671
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6672
 
    _LT_AC_TAGVAR(predep_objects, $1) \
6673
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
6674
 
    _LT_AC_TAGVAR(predeps, $1) \
6675
 
    _LT_AC_TAGVAR(postdeps, $1) \
6676
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6677
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
6678
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6679
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
6680
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6681
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6682
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6683
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
6684
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6685
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6686
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6687
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6688
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
6689
 
    _LT_AC_TAGVAR(module_cmds, $1) \
6690
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6691
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6692
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
6693
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
6694
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
6695
 
 
6696
 
    case $var in
6697
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6698
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6699
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
6700
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6701
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
6702
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6703
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6704
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6705
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
6706
 
    postinstall_cmds | postuninstall_cmds | \
6707
 
    old_postinstall_cmds | old_postuninstall_cmds | \
6708
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6709
 
      # Double-quote double-evaled strings.
6710
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6711
 
      ;;
6712
 
    *)
6713
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6714
 
      ;;
6715
 
    esac
6716
 
  done
6717
 
 
6718
 
  case $lt_echo in
6719
 
  *'\[$]0 --fallback-echo"')
6720
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6721
 
    ;;
6722
 
  esac
6723
 
 
6724
 
ifelse([$1], [],
6725
 
  [cfgfile="${ofile}T"
6726
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6727
 
  $rm -f "$cfgfile"
6728
 
  AC_MSG_NOTICE([creating $ofile])],
6729
 
  [cfgfile="$ofile"])
6730
 
 
6731
 
  cat <<__EOF__ >> "$cfgfile"
6732
 
ifelse([$1], [],
6733
 
[#! $SHELL
6734
 
 
6735
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6736
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6737
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6738
 
#
6739
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
6740
 
# Free Software Foundation, Inc.
6741
 
#
6742
 
# This file is part of GNU Libtool:
6743
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6744
 
#
6745
 
# This program is free software; you can redistribute it and/or modify
6746
 
# it under the terms of the GNU General Public License as published by
6747
 
# the Free Software Foundation; either version 2 of the License, or
6748
 
# (at your option) any later version.
6749
 
#
6750
 
# This program is distributed in the hope that it will be useful, but
6751
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
6752
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6753
 
# General Public License for more details.
6754
 
#
6755
 
# You should have received a copy of the GNU General Public License
6756
 
# along with this program; if not, write to the Free Software
6757
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6758
 
#
6759
 
# As a special exception to the GNU General Public License, if you
6760
 
# distribute this file as part of a program that contains a
6761
 
# configuration script generated by Autoconf, you may include it under
6762
 
# the same distribution terms that you use for the rest of that program.
6763
 
 
6764
 
# A sed program that does not truncate output.
6765
 
SED=$lt_SED
6766
 
 
6767
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6768
 
Xsed="$SED -e 1s/^X//"
6769
 
 
6770
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
6771
 
# if CDPATH is set.
6772
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6773
 
 
6774
 
# The names of the tagged configurations supported by this script.
6775
 
available_tags=
6776
 
 
6777
 
# ### BEGIN LIBTOOL CONFIG],
6778
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6779
 
 
6780
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6781
 
 
6782
 
# Shell to use when invoking shell scripts.
6783
 
SHELL=$lt_SHELL
6784
 
 
6785
 
# Whether or not to build shared libraries.
6786
 
build_libtool_libs=$enable_shared
6787
 
 
6788
 
# Whether or not to build static libraries.
6789
 
build_old_libs=$enable_static
6790
 
 
6791
 
# Whether or not to add -lc for building shared libraries.
6792
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6793
 
 
6794
 
# Whether or not to disallow shared libs when runtime libs are static
6795
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6796
 
 
6797
 
# Whether or not to optimize for fast installation.
6798
 
fast_install=$enable_fast_install
6799
 
 
6800
 
# The host system.
6801
 
host_alias=$host_alias
6802
 
host=$host
6803
 
host_os=$host_os
6804
 
 
6805
 
# The build system.
6806
 
build_alias=$build_alias
6807
 
build=$build
6808
 
build_os=$build_os
6809
 
 
6810
 
# An echo program that does not interpret backslashes.
6811
 
echo=$lt_echo
6812
 
 
6813
 
# The archiver.
6814
 
AR=$lt_AR
6815
 
AR_FLAGS=$lt_AR_FLAGS
6816
 
 
6817
 
# A C compiler.
6818
 
LTCC=$lt_LTCC
6819
 
 
6820
 
# LTCC compiler flags.
6821
 
LTCFLAGS=$lt_LTCFLAGS
6822
 
 
6823
 
# A language-specific compiler.
6824
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6825
 
 
6826
 
# Is the compiler the GNU C compiler?
6827
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6828
 
 
6829
 
# An ERE matcher.
6830
 
EGREP=$lt_EGREP
6831
 
 
6832
 
# The linker used to build libraries.
6833
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6834
 
 
6835
 
# Whether we need hard or soft links.
6836
 
LN_S=$lt_LN_S
6837
 
 
6838
 
# A BSD-compatible nm program.
6839
 
NM=$lt_NM
6840
 
 
6841
 
# A symbol stripping program
6842
 
STRIP=$lt_STRIP
6843
 
 
6844
 
# Used to examine libraries when file_magic_cmd begins "file"
6845
 
MAGIC_CMD=$MAGIC_CMD
6846
 
 
6847
 
# Used on cygwin: DLL creation program.
6848
 
DLLTOOL="$DLLTOOL"
6849
 
 
6850
 
# Used on cygwin: object dumper.
6851
 
OBJDUMP="$OBJDUMP"
6852
 
 
6853
 
# Used on cygwin: assembler.
6854
 
AS="$AS"
6855
 
 
6856
 
# The name of the directory that contains temporary libtool files.
6857
 
objdir=$objdir
6858
 
 
6859
 
# How to create reloadable object files.
6860
 
reload_flag=$lt_reload_flag
6861
 
reload_cmds=$lt_reload_cmds
6862
 
 
6863
 
# How to pass a linker flag through the compiler.
6864
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6865
 
 
6866
 
# Object file suffix (normally "o").
6867
 
objext="$ac_objext"
6868
 
 
6869
 
# Old archive suffix (normally "a").
6870
 
libext="$libext"
6871
 
 
6872
 
# Shared library suffix (normally ".so").
6873
 
shrext_cmds='$shrext_cmds'
6874
 
 
6875
 
# Executable file suffix (normally "").
6876
 
exeext="$exeext"
6877
 
 
6878
 
# Additional compiler flags for building library objects.
6879
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6880
 
pic_mode=$pic_mode
6881
 
 
6882
 
# What is the maximum length of a command?
6883
 
max_cmd_len=$lt_cv_sys_max_cmd_len
6884
 
 
6885
 
# Does compiler simultaneously support -c and -o options?
6886
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6887
 
 
6888
 
# Must we lock files when doing compilation?
6889
 
need_locks=$lt_need_locks
6890
 
 
6891
 
# Do we need the lib prefix for modules?
6892
 
need_lib_prefix=$need_lib_prefix
6893
 
 
6894
 
# Do we need a version for libraries?
6895
 
need_version=$need_version
6896
 
 
6897
 
# Whether dlopen is supported.
6898
 
dlopen_support=$enable_dlopen
6899
 
 
6900
 
# Whether dlopen of programs is supported.
6901
 
dlopen_self=$enable_dlopen_self
6902
 
 
6903
 
# Whether dlopen of statically linked programs is supported.
6904
 
dlopen_self_static=$enable_dlopen_self_static
6905
 
 
6906
 
# Compiler flag to prevent dynamic linking.
6907
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6908
 
 
6909
 
# Compiler flag to turn off builtin functions.
6910
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6911
 
 
6912
 
# Compiler flag to allow reflexive dlopens.
6913
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6914
 
 
6915
 
# Compiler flag to generate shared objects directly from archives.
6916
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6917
 
 
6918
 
# Compiler flag to generate thread-safe objects.
6919
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6920
 
 
6921
 
# Library versioning type.
6922
 
version_type=$version_type
6923
 
 
6924
 
# Format of library name prefix.
6925
 
libname_spec=$lt_libname_spec
6926
 
 
6927
 
# List of archive names.  First name is the real one, the rest are links.
6928
 
# The last name is the one that the linker finds with -lNAME.
6929
 
library_names_spec=$lt_library_names_spec
6930
 
 
6931
 
# The coded name of the library, if different from the real name.
6932
 
soname_spec=$lt_soname_spec
6933
 
 
6934
 
# Commands used to build and install an old-style archive.
6935
 
RANLIB=$lt_RANLIB
6936
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6937
 
old_postinstall_cmds=$lt_old_postinstall_cmds
6938
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6939
 
 
6940
 
# Create an old-style archive from a shared archive.
6941
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6942
 
 
6943
 
# Create a temporary old-style archive to link instead of a shared archive.
6944
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6945
 
 
6946
 
# Commands used to build and install a shared archive.
6947
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6948
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6949
 
postinstall_cmds=$lt_postinstall_cmds
6950
 
postuninstall_cmds=$lt_postuninstall_cmds
6951
 
 
6952
 
# Commands used to build a loadable module (assumed same as above if empty)
6953
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6954
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6955
 
 
6956
 
# Commands to strip libraries.
6957
 
old_striplib=$lt_old_striplib
6958
 
striplib=$lt_striplib
6959
 
 
6960
 
# Dependencies to place before the objects being linked to create a
6961
 
# shared library.
6962
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6963
 
 
6964
 
# Dependencies to place after the objects being linked to create a
6965
 
# shared library.
6966
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6967
 
 
6968
 
# Dependencies to place before the objects being linked to create a
6969
 
# shared library.
6970
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6971
 
 
6972
 
# Dependencies to place after the objects being linked to create a
6973
 
# shared library.
6974
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6975
 
 
6976
 
# The library search path used internally by the compiler when linking
6977
 
# a shared library.
6978
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6979
 
 
6980
 
# Method to check whether dependent libraries are shared objects.
6981
 
deplibs_check_method=$lt_deplibs_check_method
6982
 
 
6983
 
# Command to use when deplibs_check_method == file_magic.
6984
 
file_magic_cmd=$lt_file_magic_cmd
6985
 
 
6986
 
# Flag that allows shared libraries with undefined symbols to be built.
6987
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6988
 
 
6989
 
# Flag that forces no undefined symbols.
6990
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6991
 
 
6992
 
# Commands used to finish a libtool library installation in a directory.
6993
 
finish_cmds=$lt_finish_cmds
6994
 
 
6995
 
# Same as above, but a single script fragment to be evaled but not shown.
6996
 
finish_eval=$lt_finish_eval
6997
 
 
6998
 
# Take the output of nm and produce a listing of raw symbols and C names.
6999
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7000
 
 
7001
 
# Transform the output of nm in a proper C declaration
7002
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7003
 
 
7004
 
# Transform the output of nm in a C name address pair
7005
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7006
 
 
7007
 
# This is the shared library runtime path variable.
7008
 
runpath_var=$runpath_var
7009
 
 
7010
 
# This is the shared library path variable.
7011
 
shlibpath_var=$shlibpath_var
7012
 
 
7013
 
# Is shlibpath searched before the hard-coded library search path?
7014
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7015
 
 
7016
 
# How to hardcode a shared library path into an executable.
7017
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
7018
 
 
7019
 
# Whether we should hardcode library paths into libraries.
7020
 
hardcode_into_libs=$hardcode_into_libs
7021
 
 
7022
 
# Flag to hardcode \$libdir into a binary during linking.
7023
 
# This must work even if \$libdir does not exist.
7024
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
7025
 
 
7026
 
# If ld is used when linking, flag to hardcode \$libdir into
7027
 
# a binary during linking. This must work even if \$libdir does
7028
 
# not exist.
7029
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
7030
 
 
7031
 
# Whether we need a single -rpath flag with a separated argument.
7032
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
7033
 
 
7034
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7035
 
# resulting binary.
7036
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
7037
 
 
7038
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7039
 
# resulting binary.
7040
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
7041
 
 
7042
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7043
 
# the resulting binary.
7044
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
7045
 
 
7046
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
7047
 
# and all subsequent libraries and executables linked against it.
7048
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
7049
 
 
7050
 
# Variables whose values should be saved in libtool wrapper scripts and
7051
 
# restored at relink time.
7052
 
variables_saved_for_relink="$variables_saved_for_relink"
7053
 
 
7054
 
# Whether libtool must link a program against all its dependency libraries.
7055
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
7056
 
 
7057
 
# Compile-time system search path for libraries
7058
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7059
 
 
7060
 
# Run-time system search path for libraries
7061
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7062
 
 
7063
 
# Fix the shell variable \$srcfile for the compiler.
7064
 
fix_srcfile_path=$lt_fix_srcfile_path
7065
 
 
7066
 
# Set to yes if exported symbols are required.
7067
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
7068
 
 
7069
 
# The commands to list exported symbols.
7070
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
7071
 
 
7072
 
# The commands to extract the exported symbol list from a shared archive.
7073
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7074
 
 
7075
 
# Symbols that should not be listed in the preloaded symbols.
7076
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
7077
 
 
7078
 
# Symbols that must always be exported.
7079
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
7080
 
 
7081
 
ifelse([$1],[],
7082
 
[# ### END LIBTOOL CONFIG],
7083
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
7084
 
 
7085
 
__EOF__
7086
 
 
7087
 
ifelse([$1],[], [
7088
 
  case $host_os in
7089
 
  aix3*)
7090
 
    cat <<\EOF >> "$cfgfile"
7091
 
 
7092
 
# AIX sometimes has problems with the GCC collect2 program.  For some
7093
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
7094
 
# vanish in a puff of smoke.
7095
 
if test "X${COLLECT_NAMES+set}" != Xset; then
7096
 
  COLLECT_NAMES=
7097
 
  export COLLECT_NAMES
7098
 
fi
7099
 
EOF
7100
 
    ;;
7101
 
  esac
7102
 
 
7103
 
  # We use sed instead of cat because bash on DJGPP gets confused if
7104
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7105
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
7106
 
  # is reportedly fixed, but why not run on old versions too?
7107
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7108
 
 
7109
 
  mv -f "$cfgfile" "$ofile" || \
7110
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7111
 
  chmod +x "$ofile"
7112
 
])
7113
 
else
7114
 
  # If there is no Makefile yet, we rely on a make rule to execute
7115
 
  # `config.status --recheck' to rerun these tests and create the
7116
 
  # libtool script then.
7117
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
7118
 
  if test -f "$ltmain_in"; then
7119
 
    test -f Makefile && make "$ltmain"
7120
 
  fi
7121
 
fi
7122
 
])# AC_LIBTOOL_CONFIG
7123
 
 
7124
 
 
7125
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
7126
 
# -------------------------------------------
7127
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
7128
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
7129
 
 
7130
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5903
AC_SUBST([LIBM])
 
5904
])# LT_LIB_M
 
5905
 
 
5906
# Old name:
 
5907
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
5908
dnl aclocal-1.4 backwards compatibility:
 
5909
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
5910
 
 
5911
 
 
5912
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
5913
# -------------------------------
 
5914
m4_defun([_LT_COMPILER_NO_RTTI],
 
5915
[m4_require([_LT_TAG_COMPILER])dnl
 
5916
 
 
5917
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7131
5918
 
7132
5919
if test "$GCC" = yes; then
7133
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5920
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7134
5921
 
7135
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5922
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
7136
5923
    lt_cv_prog_compiler_rtti_exceptions,
7137
5924
    [-fno-rtti -fno-exceptions], [],
7138
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5925
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
7139
5926
fi
7140
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
7141
 
 
7142
 
 
7143
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
7144
 
# ---------------------------------
7145
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
7146
 
[AC_REQUIRE([AC_CANONICAL_HOST])
7147
 
AC_REQUIRE([LT_AC_PROG_SED])
7148
 
AC_REQUIRE([AC_PROG_NM])
7149
 
AC_REQUIRE([AC_OBJEXT])
 
5927
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
5928
        [Compiler flag to turn off builtin functions])
 
5929
])# _LT_COMPILER_NO_RTTI
 
5930
 
 
5931
 
 
5932
# _LT_CMD_GLOBAL_SYMBOLS
 
5933
# ----------------------
 
5934
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
5935
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
5936
AC_REQUIRE([AC_PROG_CC])dnl
 
5937
AC_REQUIRE([LT_PATH_NM])dnl
 
5938
AC_REQUIRE([LT_PATH_LD])dnl
 
5939
m4_require([_LT_DECL_SED])dnl
 
5940
m4_require([_LT_DECL_EGREP])dnl
 
5941
m4_require([_LT_TAG_COMPILER])dnl
 
5942
 
7150
5943
# Check for command to grab the raw symbol name followed by C symbol from nm.
7151
5944
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
7152
5945
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
7160
5953
# Regexp to match symbols that can be accessed directly from C.
7161
5954
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
7162
5955
 
7163
 
# Transform an extracted symbol line into a proper C declaration
7164
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7165
 
 
7166
 
# Transform an extracted symbol line into symbol name and symbol address
7167
 
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'"
7168
 
 
7169
5956
# Define system-specific variables.
7170
5957
case $host_os in
7171
5958
aix*)
7172
5959
  symcode='[[BCDT]]'
7173
5960
  ;;
7174
 
cygwin* | mingw* | pw32*)
 
5961
cygwin* | mingw* | pw32* | cegcc*)
7175
5962
  symcode='[[ABCDGISTW]]'
7176
5963
  ;;
7177
 
hpux*) # Its linker distinguishes data from code symbols
 
5964
hpux*)
7178
5965
  if test "$host_cpu" = ia64; then
7179
5966
    symcode='[[ABCDEGRST]]'
7180
5967
  fi
7181
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7182
 
  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'"
7183
 
  ;;
7184
 
linux* | k*bsd*-gnu)
7185
 
  if test "$host_cpu" = ia64; then
7186
 
    symcode='[[ABCDGIRSTW]]'
7187
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7188
 
    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'"
7189
 
  fi
7190
5968
  ;;
7191
5969
irix* | nonstopux*)
7192
5970
  symcode='[[BCDEGRST]]'
7211
5989
  ;;
7212
5990
esac
7213
5991
 
 
5992
# If we're using GNU nm, then use its standard symbol codes.
 
5993
case `$NM -V 2>&1` in
 
5994
*GNU* | *'with BFD'*)
 
5995
  symcode='[[ABCDGIRSTW]]' ;;
 
5996
esac
 
5997
 
 
5998
# Transform an extracted symbol line into a proper C declaration.
 
5999
# Some systems (esp. on ia64) link data and code symbols differently,
 
6000
# so use this general approach.
 
6001
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6002
 
 
6003
# Transform an extracted symbol line into symbol name and symbol address
 
6004
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6005
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6006
 
7214
6007
# Handle CRLF in mingw tool chain
7215
6008
opt_cr=
7216
6009
case $build_os in
7217
6010
mingw*)
7218
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6011
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7219
6012
  ;;
7220
6013
esac
7221
6014
 
7222
 
# If we're using GNU nm, then use its standard symbol codes.
7223
 
case `$NM -V 2>&1` in
7224
 
*GNU* | *'with BFD'*)
7225
 
  symcode='[[ABCDGIRSTW]]' ;;
7226
 
esac
7227
 
 
7228
 
# Try without a prefix undercore, then with it.
 
6015
# Try without a prefix underscore, then with it.
7229
6016
for ac_symprfx in "" "_"; do
7230
6017
 
7231
6018
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7232
6019
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7233
6020
 
7234
6021
  # Write the raw and C identifiers.
7235
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6022
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6023
    # Fake it for dumpbin and say T for any non-static function
 
6024
    # and D for any global variable.
 
6025
    # Also find C++ and __fastcall symbols from MSVC++,
 
6026
    # which start with @ or ?.
 
6027
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
6028
"     {last_section=section; section=\$ 3};"\
 
6029
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6030
"     \$ 0!~/External *\|/{next};"\
 
6031
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6032
"     {if(hide[section]) next};"\
 
6033
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6034
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6035
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6036
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6037
"     ' prfx=^$ac_symprfx]"
 
6038
  else
 
6039
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6040
  fi
7236
6041
 
7237
6042
  # Check to see that the pipe works correctly.
7238
6043
  pipe_works=no
7239
6044
 
7240
6045
  rm -f conftest*
7241
 
  cat > conftest.$ac_ext <<EOF
 
6046
  cat > conftest.$ac_ext <<_LT_EOF
7242
6047
#ifdef __cplusplus
7243
6048
extern "C" {
7244
6049
#endif
7245
6050
char nm_test_var;
7246
 
void nm_test_func(){}
 
6051
void nm_test_func(void);
 
6052
void nm_test_func(void){}
7247
6053
#ifdef __cplusplus
7248
6054
}
7249
6055
#endif
7250
6056
int main(){nm_test_var='a';nm_test_func();return(0);}
7251
 
EOF
 
6057
_LT_EOF
7252
6058
 
7253
6059
  if AC_TRY_EVAL(ac_compile); then
7254
6060
    # Now try to grab the symbols.
7262
6068
      fi
7263
6069
 
7264
6070
      # Make sure that we snagged all the symbols we need.
7265
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7266
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7267
 
          cat <<EOF > conftest.$ac_ext
 
6071
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6072
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6073
          cat <<_LT_EOF > conftest.$ac_ext
7268
6074
#ifdef __cplusplus
7269
6075
extern "C" {
7270
6076
#endif
7271
6077
 
7272
 
EOF
 
6078
_LT_EOF
7273
6079
          # Now generate the symbol file.
7274
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7275
 
 
7276
 
          cat <<EOF >> conftest.$ac_ext
7277
 
#if defined (__STDC__) && __STDC__
7278
 
# define lt_ptr_t void *
7279
 
#else
7280
 
# define lt_ptr_t char *
7281
 
# define const
7282
 
#endif
7283
 
 
7284
 
/* The mapping between symbol names and symbols. */
 
6080
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6081
 
 
6082
          cat <<_LT_EOF >> conftest.$ac_ext
 
6083
 
 
6084
/* The mapping between symbol names and symbols.  */
7285
6085
const struct {
7286
6086
  const char *name;
7287
 
  lt_ptr_t address;
 
6087
  void       *address;
7288
6088
}
7289
 
lt_preloaded_symbols[[]] =
 
6089
lt__PROGRAM__LTX_preloaded_symbols[[]] =
7290
6090
{
7291
 
EOF
7292
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7293
 
          cat <<\EOF >> conftest.$ac_ext
7294
 
  {0, (lt_ptr_t) 0}
 
6091
  { "@PROGRAM@", (void *) 0 },
 
6092
_LT_EOF
 
6093
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6094
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6095
  {0, (void *) 0}
7295
6096
};
7296
6097
 
 
6098
/* This works around a problem in FreeBSD linker */
 
6099
#ifdef FREEBSD_WORKAROUND
 
6100
static const void *lt_preloaded_setup() {
 
6101
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6102
}
 
6103
#endif
 
6104
 
7297
6105
#ifdef __cplusplus
7298
6106
}
7299
6107
#endif
7300
 
EOF
 
6108
_LT_EOF
7301
6109
          # Now try linking the two files.
7302
6110
          mv conftest.$ac_objext conftstm.$ac_objext
7303
6111
          lt_save_LIBS="$LIBS"
7304
6112
          lt_save_CFLAGS="$CFLAGS"
7305
6113
          LIBS="conftstm.$ac_objext"
7306
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
6114
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
7307
6115
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
7308
6116
            pipe_works=yes
7309
6117
          fi
7322
6130
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
7323
6131
    cat conftest.$ac_ext >&5
7324
6132
  fi
7325
 
  rm -f conftest* conftst*
 
6133
  rm -rf conftest* conftst*
7326
6134
 
7327
6135
  # Do not use the global_symbol_pipe unless it works.
7328
6136
  if test "$pipe_works" = yes; then
7340
6148
else
7341
6149
  AC_MSG_RESULT(ok)
7342
6150
fi
7343
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
7344
 
 
7345
 
 
7346
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
7347
 
# ---------------------------------------
7348
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
7349
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
7350
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7351
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
6151
 
 
6152
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
6153
    [Take the output of nm and produce a listing of raw symbols and C names])
 
6154
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
6155
    [Transform the output of nm in a proper C declaration])
 
6156
_LT_DECL([global_symbol_to_c_name_address],
 
6157
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
6158
    [Transform the output of nm in a C name address pair])
 
6159
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
6160
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
6161
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
6162
]) # _LT_CMD_GLOBAL_SYMBOLS
 
6163
 
 
6164
 
 
6165
# _LT_COMPILER_PIC([TAGNAME])
 
6166
# ---------------------------
 
6167
m4_defun([_LT_COMPILER_PIC],
 
6168
[m4_require([_LT_TAG_COMPILER])dnl
 
6169
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
6170
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6171
_LT_TAGVAR(lt_prog_compiler_static, $1)=
7352
6172
 
7353
6173
AC_MSG_CHECKING([for $compiler option to produce PIC])
7354
 
 ifelse([$1],[CXX],[
 
6174
m4_if([$1], [CXX], [
7355
6175
  # C++ specific cases for pic, static, wl, etc.
7356
6176
  if test "$GXX" = yes; then
7357
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7358
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6177
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6178
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7359
6179
 
7360
6180
    case $host_os in
7361
6181
    aix*)
7362
6182
      # All AIX code is PIC.
7363
6183
      if test "$host_cpu" = ia64; then
7364
6184
        # AIX 5 now supports IA64 processor
7365
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6185
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7366
6186
      fi
7367
6187
      ;;
 
6188
 
7368
6189
    amigaos*)
7369
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7370
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7371
 
      # like `-m68040'.
7372
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6190
      case $host_cpu in
 
6191
      powerpc)
 
6192
            # see comment about AmigaOS4 .so support
 
6193
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6194
        ;;
 
6195
      m68k)
 
6196
            # FIXME: we need at least 68020 code to build shared libraries, but
 
6197
            # adding the `-m68020' flag to GCC prevents building anything better,
 
6198
            # like `-m68040'.
 
6199
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6200
        ;;
 
6201
      esac
7373
6202
      ;;
 
6203
 
7374
6204
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7375
6205
      # PIC is the default for these OSes.
7376
6206
      ;;
7377
 
    mingw* | cygwin* | os2* | pw32*)
 
6207
    mingw* | cygwin* | os2* | pw32* | cegcc*)
7378
6208
      # This hack is so that the source file can tell whether it is being
7379
6209
      # built for inclusion in a dll (and should export symbols for example).
7380
6210
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7381
6211
      # (--disable-auto-import) libraries
7382
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6212
      m4_if([$1], [GCJ], [],
 
6213
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7383
6214
      ;;
7384
6215
    darwin* | rhapsody*)
7385
6216
      # PIC is the default on this platform
7386
6217
      # Common symbols not allowed in MH_DYLIB files
7387
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6218
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7388
6219
      ;;
7389
6220
    *djgpp*)
7390
6221
      # DJGPP does not support shared libraries at all
7391
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6222
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7392
6223
      ;;
7393
6224
    interix[[3-9]]*)
7394
6225
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7396
6227
      ;;
7397
6228
    sysv4*MP*)
7398
6229
      if test -d /usr/nec; then
7399
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6230
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7400
6231
      fi
7401
6232
      ;;
7402
6233
    hpux*)
7403
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7404
 
      # not for PA HP-UX.
 
6234
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
6235
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
6236
      # sets the default TLS model and affects inlining.
7405
6237
      case $host_cpu in
7406
 
      hppa*64*|ia64*)
 
6238
      hppa*64*)
7407
6239
        ;;
7408
6240
      *)
7409
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6241
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7410
6242
        ;;
7411
6243
      esac
7412
6244
      ;;
 
6245
    *qnx* | *nto*)
 
6246
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6247
      # it will coredump.
 
6248
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
6249
      ;;
7413
6250
    *)
7414
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6251
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7415
6252
      ;;
7416
6253
    esac
7417
6254
  else
7418
6255
    case $host_os in
7419
 
      aix4* | aix5*)
 
6256
      aix[[4-9]]*)
7420
6257
        # All AIX code is PIC.
7421
6258
        if test "$host_cpu" = ia64; then
7422
6259
          # AIX 5 now supports IA64 processor
7423
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6260
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7424
6261
        else
7425
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6262
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7426
6263
        fi
7427
6264
        ;;
7428
6265
      chorus*)
7429
6266
        case $cc_basename in
7430
6267
        cxch68*)
7431
6268
          # Green Hills C++ Compiler
7432
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
6269
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
7433
6270
          ;;
7434
6271
        esac
7435
6272
        ;;
7436
 
       darwin*)
7437
 
         # PIC is the default on this platform
7438
 
         # Common symbols not allowed in MH_DYLIB files
7439
 
         case $cc_basename in
7440
 
           xlc*)
7441
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
7442
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7443
 
           ;;
7444
 
         esac
7445
 
       ;;
7446
6273
      dgux*)
7447
6274
        case $cc_basename in
7448
6275
          ec++*)
7449
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6276
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7450
6277
            ;;
7451
6278
          ghcx*)
7452
6279
            # Green Hills C++ Compiler
7453
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6280
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7454
6281
            ;;
7455
6282
          *)
7456
6283
            ;;
7462
6289
      hpux9* | hpux10* | hpux11*)
7463
6290
        case $cc_basename in
7464
6291
          CC*)
7465
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7466
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6292
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6293
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7467
6294
            if test "$host_cpu" != ia64; then
7468
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6295
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7469
6296
            fi
7470
6297
            ;;
7471
6298
          aCC*)
7472
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7473
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6299
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6300
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7474
6301
            case $host_cpu in
7475
6302
            hppa*64*|ia64*)
7476
6303
              # +Z the default
7477
6304
              ;;
7478
6305
            *)
7479
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6306
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7480
6307
              ;;
7481
6308
            esac
7482
6309
            ;;
7491
6318
      irix5* | irix6* | nonstopux*)
7492
6319
        case $cc_basename in
7493
6320
          CC*)
7494
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7495
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6321
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6322
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7496
6323
            # CC pic flag -KPIC is the default.
7497
6324
            ;;
7498
6325
          *)
7503
6330
        case $cc_basename in
7504
6331
          KCC*)
7505
6332
            # KAI C++ Compiler
7506
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7507
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7508
 
            ;;
7509
 
          icpc* | ecpc*)
7510
 
            # Intel C++
7511
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7512
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7513
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7514
 
            ;;
7515
 
          pgCC*)
7516
 
            # Portland Group C++ compiler.
7517
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7518
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7519
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6333
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6334
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6335
            ;;
 
6336
          ecpc* )
 
6337
            # old Intel C++ for x86_64 which still supported -KPIC.
 
6338
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6339
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6340
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6341
            ;;
 
6342
          icpc* )
 
6343
            # Intel C++, used to be incompatible with GCC.
 
6344
            # ICC 10 doesn't accept -KPIC any more.
 
6345
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6346
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6347
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6348
            ;;
 
6349
          pgCC* | pgcpp*)
 
6350
            # Portland Group C++ compiler
 
6351
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6352
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6353
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7520
6354
            ;;
7521
6355
          cxx*)
7522
6356
            # Compaq C++
7523
6357
            # Make sure the PIC flag is empty.  It appears that all Alpha
7524
6358
            # Linux and Compaq Tru64 Unix objects are PIC.
7525
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7526
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6359
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6360
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6361
            ;;
 
6362
          xlc* | xlC*)
 
6363
            # IBM XL 8.0 on PPC
 
6364
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6365
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
6366
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7527
6367
            ;;
7528
6368
          *)
7529
6369
            case `$CC -V 2>&1 | sed 5q` in
7530
6370
            *Sun\ C*)
7531
6371
              # Sun C++ 5.9
7532
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7533
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7534
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6372
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6373
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6374
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7535
6375
              ;;
7536
6376
            esac
7537
6377
            ;;
7544
6384
      mvs*)
7545
6385
        case $cc_basename in
7546
6386
          cxx*)
7547
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
6387
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7548
6388
            ;;
7549
6389
          *)
7550
6390
            ;;
7552
6392
        ;;
7553
6393
      netbsd*)
7554
6394
        ;;
 
6395
      *qnx* | *nto*)
 
6396
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6397
        # it will coredump.
 
6398
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
6399
        ;;
7555
6400
      osf3* | osf4* | osf5*)
7556
6401
        case $cc_basename in
7557
6402
          KCC*)
7558
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6403
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7559
6404
            ;;
7560
6405
          RCC*)
7561
6406
            # Rational C++ 2.4.1
7562
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6407
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7563
6408
            ;;
7564
6409
          cxx*)
7565
6410
            # Digital/Compaq C++
7566
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6411
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7567
6412
            # Make sure the PIC flag is empty.  It appears that all Alpha
7568
6413
            # Linux and Compaq Tru64 Unix objects are PIC.
7569
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7570
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6414
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6415
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7571
6416
            ;;
7572
6417
          *)
7573
6418
            ;;
7579
6424
        case $cc_basename in
7580
6425
          CC*)
7581
6426
            # Sun C++ 4.2, 5.x and Centerline C++
7582
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7583
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7584
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6427
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6428
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6429
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7585
6430
            ;;
7586
6431
          gcx*)
7587
6432
            # Green Hills C++ Compiler
7588
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6433
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7589
6434
            ;;
7590
6435
          *)
7591
6436
            ;;
7595
6440
        case $cc_basename in
7596
6441
          CC*)
7597
6442
            # Sun C++ 4.x
7598
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7599
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6443
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6444
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7600
6445
            ;;
7601
6446
          lcc*)
7602
6447
            # Lucid
7603
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6448
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7604
6449
            ;;
7605
6450
          *)
7606
6451
            ;;
7607
6452
        esac
7608
6453
        ;;
 
6454
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6455
        case $cc_basename in
 
6456
          CC*)
 
6457
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6458
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6459
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6460
            ;;
 
6461
        esac
 
6462
        ;;
7609
6463
      tandem*)
7610
6464
        case $cc_basename in
7611
6465
          NCC*)
7612
6466
            # NonStop-UX NCC 3.20
7613
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6467
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7614
6468
            ;;
7615
6469
          *)
7616
6470
            ;;
7617
6471
        esac
7618
6472
        ;;
7619
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7620
 
        case $cc_basename in
7621
 
          CC*)
7622
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7623
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7624
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7625
 
            ;;
7626
 
        esac
7627
 
        ;;
7628
6473
      vxworks*)
7629
6474
        ;;
7630
6475
      *)
7631
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6476
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7632
6477
        ;;
7633
6478
    esac
7634
6479
  fi
7635
6480
],
7636
6481
[
7637
6482
  if test "$GCC" = yes; then
7638
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7639
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6483
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6484
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7640
6485
 
7641
6486
    case $host_os in
7642
6487
      aix*)
7643
6488
      # All AIX code is PIC.
7644
6489
      if test "$host_cpu" = ia64; then
7645
6490
        # AIX 5 now supports IA64 processor
7646
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6491
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7647
6492
      fi
7648
6493
      ;;
7649
6494
 
7650
6495
    amigaos*)
7651
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7652
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7653
 
      # like `-m68040'.
7654
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6496
      case $host_cpu in
 
6497
      powerpc)
 
6498
            # see comment about AmigaOS4 .so support
 
6499
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6500
        ;;
 
6501
      m68k)
 
6502
            # FIXME: we need at least 68020 code to build shared libraries, but
 
6503
            # adding the `-m68020' flag to GCC prevents building anything better,
 
6504
            # like `-m68040'.
 
6505
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6506
        ;;
 
6507
      esac
7655
6508
      ;;
7656
6509
 
7657
6510
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7658
6511
      # PIC is the default for these OSes.
7659
6512
      ;;
7660
6513
 
7661
 
    mingw* | cygwin* | pw32* | os2*)
 
6514
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7662
6515
      # This hack is so that the source file can tell whether it is being
7663
6516
      # built for inclusion in a dll (and should export symbols for example).
7664
6517
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7665
6518
      # (--disable-auto-import) libraries
7666
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6519
      m4_if([$1], [GCJ], [],
 
6520
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7667
6521
      ;;
7668
6522
 
7669
6523
    darwin* | rhapsody*)
7670
6524
      # PIC is the default on this platform
7671
6525
      # Common symbols not allowed in MH_DYLIB files
7672
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6526
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6527
      ;;
 
6528
 
 
6529
    hpux*)
 
6530
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
6531
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
6532
      # sets the default TLS model and affects inlining.
 
6533
      case $host_cpu in
 
6534
      hppa*64*)
 
6535
        # +Z the default
 
6536
        ;;
 
6537
      *)
 
6538
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6539
        ;;
 
6540
      esac
7673
6541
      ;;
7674
6542
 
7675
6543
    interix[[3-9]]*)
7680
6548
    msdosdjgpp*)
7681
6549
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7682
6550
      # on systems that don't support them.
7683
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6551
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7684
6552
      enable_shared=no
7685
6553
      ;;
7686
6554
 
 
6555
    *nto* | *qnx*)
 
6556
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6557
      # it will coredump.
 
6558
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
6559
      ;;
 
6560
 
7687
6561
    sysv4*MP*)
7688
6562
      if test -d /usr/nec; then
7689
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6563
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7690
6564
      fi
7691
6565
      ;;
7692
6566
 
7693
 
    hpux*)
7694
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7695
 
      # not for PA HP-UX.
7696
 
      case $host_cpu in
7697
 
      hppa*64*|ia64*)
7698
 
        # +Z the default
7699
 
        ;;
7700
 
      *)
7701
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7702
 
        ;;
7703
 
      esac
7704
 
      ;;
7705
 
 
7706
6567
    *)
7707
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6568
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7708
6569
      ;;
7709
6570
    esac
7710
6571
  else
7711
6572
    # PORTME Check for flag to pass linker flags through the system compiler.
7712
6573
    case $host_os in
7713
6574
    aix*)
7714
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6575
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7715
6576
      if test "$host_cpu" = ia64; then
7716
6577
        # AIX 5 now supports IA64 processor
7717
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6578
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7718
6579
      else
7719
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6580
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7720
6581
      fi
7721
6582
      ;;
7722
 
      darwin*)
7723
 
        # PIC is the default on this platform
7724
 
        # Common symbols not allowed in MH_DYLIB files
7725
 
       case $cc_basename in
7726
 
         xlc*)
7727
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
7728
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7729
 
         ;;
7730
 
       esac
7731
 
       ;;
7732
6583
 
7733
 
    mingw* | cygwin* | pw32* | os2*)
 
6584
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7734
6585
      # This hack is so that the source file can tell whether it is being
7735
6586
      # built for inclusion in a dll (and should export symbols for example).
7736
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6587
      m4_if([$1], [GCJ], [],
 
6588
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7737
6589
      ;;
7738
6590
 
7739
6591
    hpux9* | hpux10* | hpux11*)
7740
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6592
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7741
6593
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7742
6594
      # not for PA HP-UX.
7743
6595
      case $host_cpu in
7745
6597
        # +Z the default
7746
6598
        ;;
7747
6599
      *)
7748
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6600
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7749
6601
        ;;
7750
6602
      esac
7751
6603
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7752
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6604
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7753
6605
      ;;
7754
6606
 
7755
6607
    irix5* | irix6* | nonstopux*)
7756
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6608
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7757
6609
      # PIC (with -KPIC) is the default.
7758
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7759
 
      ;;
7760
 
 
7761
 
    newsos6)
7762
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7763
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6610
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7764
6611
      ;;
7765
6612
 
7766
6613
    linux* | k*bsd*-gnu)
7767
6614
      case $cc_basename in
7768
 
      icc* | ecc*)
7769
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7770
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7771
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7772
 
        ;;
 
6615
      # old Intel for x86_64 which still supported -KPIC.
 
6616
      ecc*)
 
6617
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6618
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6619
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6620
        ;;
 
6621
      # icc used to be incompatible with GCC.
 
6622
      # ICC 10 doesn't accept -KPIC any more.
 
6623
      icc* | ifort*)
 
6624
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6625
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6626
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6627
        ;;
 
6628
      # Lahey Fortran 8.1.
 
6629
      lf95*)
 
6630
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6631
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
6632
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
6633
        ;;
7773
6634
      pgcc* | pgf77* | pgf90* | pgf95*)
7774
6635
        # Portland Group compilers (*not* the Pentium gcc compiler,
7775
6636
        # which looks to be a dead project)
7776
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7777
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7778
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6637
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6638
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6639
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7779
6640
        ;;
7780
6641
      ccc*)
7781
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6642
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7782
6643
        # All Alpha code is PIC.
7783
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6644
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7784
6645
        ;;
 
6646
      xl*)
 
6647
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
6648
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6649
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
6650
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
6651
        ;;
7785
6652
      *)
7786
 
        case `$CC -V 2>&1 | sed 5q` in
 
6653
        case `$CC -V 2>&1 | sed 5q` in
7787
6654
        *Sun\ C*)
7788
6655
          # Sun C 5.9
7789
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7790
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7791
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6656
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6657
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6658
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7792
6659
          ;;
7793
6660
        *Sun\ F*)
7794
6661
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7795
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7796
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7797
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6662
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6663
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6664
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7798
6665
          ;;
7799
6666
        esac
7800
6667
        ;;
7801
6668
      esac
7802
6669
      ;;
7803
6670
 
 
6671
    newsos6)
 
6672
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6673
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6674
      ;;
 
6675
 
 
6676
    *nto* | *qnx*)
 
6677
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6678
      # it will coredump.
 
6679
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
6680
      ;;
 
6681
 
7804
6682
    osf3* | osf4* | osf5*)
7805
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6683
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7806
6684
      # All OSF/1 code is PIC.
7807
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6685
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7808
6686
      ;;
7809
6687
 
7810
6688
    rdos*)
7811
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6689
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7812
6690
      ;;
7813
6691
 
7814
6692
    solaris*)
7815
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7816
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6693
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6694
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7817
6695
      case $cc_basename in
7818
6696
      f77* | f90* | f95*)
7819
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6697
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7820
6698
      *)
7821
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6699
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7822
6700
      esac
7823
6701
      ;;
7824
6702
 
7825
6703
    sunos4*)
7826
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7827
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7828
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6704
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6705
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6706
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7829
6707
      ;;
7830
6708
 
7831
6709
    sysv4 | sysv4.2uw2* | sysv4.3*)
7832
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7833
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7834
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6710
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6711
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6712
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7835
6713
      ;;
7836
6714
 
7837
6715
    sysv4*MP*)
7838
6716
      if test -d /usr/nec ;then
7839
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7840
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6717
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6718
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7841
6719
      fi
7842
6720
      ;;
7843
6721
 
7844
6722
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7845
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7846
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7847
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6723
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6724
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6725
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7848
6726
      ;;
7849
6727
 
7850
6728
    unicos*)
7851
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7852
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6729
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6730
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7853
6731
      ;;
7854
6732
 
7855
6733
    uts4*)
7856
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7857
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6734
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6735
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7858
6736
      ;;
7859
6737
 
7860
6738
    *)
7861
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6739
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7862
6740
      ;;
7863
6741
    esac
7864
6742
  fi
7865
6743
])
7866
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
6744
case $host_os in
 
6745
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6746
  *djgpp*)
 
6747
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6748
    ;;
 
6749
  *)
 
6750
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
6751
    ;;
 
6752
esac
 
6753
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
6754
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
6755
        [How to pass a linker flag through the compiler])
7867
6756
 
7868
6757
#
7869
6758
# Check to make sure the PIC flag actually works.
7870
6759
#
7871
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7872
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7873
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7874
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7875
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
6760
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6761
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6762
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
6763
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
6764
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7876
6765
     "" | " "*) ;;
7877
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6766
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7878
6767
     esac],
7879
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7880
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6768
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6769
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7881
6770
fi
7882
 
case $host_os in
7883
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7884
 
  *djgpp*)
7885
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7886
 
    ;;
7887
 
  *)
7888
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7889
 
    ;;
7890
 
esac
 
6771
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
6772
        [Additional compiler flags for building library objects])
7891
6773
 
7892
6774
#
7893
6775
# Check to make sure the static flag actually works.
7894
6776
#
7895
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7896
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7897
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6777
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
6778
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6779
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7898
6780
  $lt_tmp_static_flag,
7899
6781
  [],
7900
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7901
 
])
7902
 
 
7903
 
 
7904
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7905
 
# ------------------------------------
 
6782
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
6783
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
6784
        [Compiler flag to prevent dynamic linking])
 
6785
])# _LT_COMPILER_PIC
 
6786
 
 
6787
 
 
6788
# _LT_LINKER_SHLIBS([TAGNAME])
 
6789
# ----------------------------
7906
6790
# See if the linker supports building shared libraries.
7907
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7908
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6791
m4_defun([_LT_LINKER_SHLIBS],
 
6792
[AC_REQUIRE([LT_PATH_LD])dnl
 
6793
AC_REQUIRE([LT_PATH_NM])dnl
 
6794
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6795
m4_require([_LT_DECL_EGREP])dnl
 
6796
m4_require([_LT_DECL_SED])dnl
 
6797
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
6798
m4_require([_LT_TAG_COMPILER])dnl
7909
6799
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7910
 
ifelse([$1],[CXX],[
7911
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6800
m4_if([$1], [CXX], [
 
6801
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7912
6802
  case $host_os in
7913
 
  aix4* | aix5*)
 
6803
  aix[[4-9]]*)
7914
6804
    # If we're using GNU nm, then we don't want the "-C" option.
7915
6805
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
7916
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7917
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
6806
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
6807
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7918
6808
    else
7919
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
6809
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7920
6810
    fi
7921
6811
    ;;
7922
6812
  pw32*)
7923
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6813
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7924
6814
  ;;
7925
 
  cygwin* | mingw*)
7926
 
    _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'
 
6815
  cygwin* | mingw* | cegcc*)
 
6816
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
7927
6817
  ;;
7928
6818
  *)
7929
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6819
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7930
6820
  ;;
7931
6821
  esac
7932
 
],[
 
6822
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6823
], [
7933
6824
  runpath_var=
7934
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7935
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7936
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
7937
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7938
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7939
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7940
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7941
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7942
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7943
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7944
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7945
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7946
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
7947
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7948
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7949
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7950
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7951
 
  _LT_AC_TAGVAR(module_cmds, $1)=
7952
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7953
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
7954
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6825
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
6826
  _LT_TAGVAR(always_export_symbols, $1)=no
 
6827
  _LT_TAGVAR(archive_cmds, $1)=
 
6828
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
6829
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
6830
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6831
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6832
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6833
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
6834
  _LT_TAGVAR(hardcode_direct, $1)=no
 
6835
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6836
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6837
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6838
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6839
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
6840
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6841
  _LT_TAGVAR(inherit_rpath, $1)=no
 
6842
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6843
  _LT_TAGVAR(module_cmds, $1)=
 
6844
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
6845
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
6846
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6847
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
6848
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
7955
6849
  # include_expsyms should be a list of space-separated symbols to be *always*
7956
6850
  # included in the symbol list
7957
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
6851
  _LT_TAGVAR(include_expsyms, $1)=
7958
6852
  # exclude_expsyms can be an extended regexp of symbols to exclude
7959
6853
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7960
6854
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961
6855
  # as well as any symbol that contains `d'.
7962
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6856
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7963
6857
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964
6858
  # platforms (ab)use it in PIC code, but their linkers get confused if
7965
6859
  # the symbol is explicitly referenced.  Since portable code cannot
7966
6860
  # rely on this symbol name, it's probably fine to never include it in
7967
6861
  # preloaded symbol tables.
 
6862
  # Exclude shared library initialization/finalization symbols.
 
6863
dnl Note also adjust exclude_expsyms for C++ above.
7968
6864
  extract_expsyms_cmds=
7969
 
  # Just being paranoid about ensuring that cc_basename is set.
7970
 
  _LT_CC_BASENAME([$compiler])
 
6865
 
7971
6866
  case $host_os in
7972
 
  cygwin* | mingw* | pw32*)
 
6867
  cygwin* | mingw* | pw32* | cegcc*)
7973
6868
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7974
6869
    # When not using gcc, we currently assume that we are using
7975
6870
    # Microsoft Visual C++.
7986
6881
    ;;
7987
6882
  esac
7988
6883
 
7989
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6884
  _LT_TAGVAR(ld_shlibs, $1)=yes
7990
6885
  if test "$with_gnu_ld" = yes; then
7991
6886
    # If archive_cmds runs LD, not CC, wlarc should be empty
7992
6887
    wlarc='${wl}'
7995
6890
    # are reset later if shared libraries are not supported. Putting them
7996
6891
    # here allows them to be overridden if necessary.
7997
6892
    runpath_var=LD_RUN_PATH
7998
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7999
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6893
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6894
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8000
6895
    # ancient GNU ld didn't support --whole-archive et. al.
8001
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8002
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8003
 
      else
8004
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6896
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
6897
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6898
    else
 
6899
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
8005
6900
    fi
8006
6901
    supports_anon_versioning=no
8007
 
    case `$LD -v 2>/dev/null` in
 
6902
    case `$LD -v 2>&1` in
8008
6903
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
8009
6904
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8010
6905
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8014
6909
 
8015
6910
    # See if GNU ld supports shared libraries.
8016
6911
    case $host_os in
8017
 
    aix3* | aix4* | aix5*)
 
6912
    aix[[3-9]]*)
8018
6913
      # On AIX/PPC, the GNU linker is very broken
8019
6914
      if test "$host_cpu" != ia64; then
8020
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8021
 
        cat <<EOF 1>&2
 
6915
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6916
        cat <<_LT_EOF 1>&2
8022
6917
 
8023
6918
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8024
6919
*** to be unable to reliably create shared libraries on AIX.
8026
6921
*** really care for shared libraries, you may want to modify your PATH
8027
6922
*** so that a non-GNU linker is found, and then restart.
8028
6923
 
8029
 
EOF
 
6924
_LT_EOF
8030
6925
      fi
8031
6926
      ;;
8032
6927
 
8033
6928
    amigaos*)
8034
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8035
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8036
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8037
 
 
8038
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8039
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8040
 
      # to version 4, is to share data among multiple programs linked
8041
 
      # with the same dynamic library.  Since this doesn't match the
8042
 
      # behavior of shared libraries on other platforms, we can't use
8043
 
      # them.
8044
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6929
      case $host_cpu in
 
6930
      powerpc)
 
6931
            # see comment about AmigaOS4 .so support
 
6932
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6933
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
6934
        ;;
 
6935
      m68k)
 
6936
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
6937
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6938
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6939
        ;;
 
6940
      esac
8045
6941
      ;;
8046
6942
 
8047
6943
    beos*)
8048
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6944
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6945
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8050
6946
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8051
6947
        # support --undefined.  This deserves some investigation.  FIXME
8052
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6948
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053
6949
      else
8054
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6950
        _LT_TAGVAR(ld_shlibs, $1)=no
8055
6951
      fi
8056
6952
      ;;
8057
6953
 
8058
 
    cygwin* | mingw* | pw32*)
8059
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6954
    cygwin* | mingw* | pw32* | cegcc*)
 
6955
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8060
6956
      # as there is no search path for DLLs.
8061
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8062
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8063
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
8064
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8065
 
      _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'
 
6957
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6958
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6959
      _LT_TAGVAR(always_export_symbols, $1)=no
 
6960
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6961
      _LT_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'
8066
6962
 
8067
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8068
 
        _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'
 
6963
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6964
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8069
6965
        # If the export-symbols file already is a .def file (1st line
8070
6966
        # is EXPORTS), use it as is; otherwise, prepend...
8071
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6967
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8072
6968
          cp $export_symbols $output_objdir/$soname.def;
8073
6969
        else
8074
6970
          echo EXPORTS > $output_objdir/$soname.def;
8076
6972
        fi~
8077
6973
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8078
6974
      else
8079
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6975
        _LT_TAGVAR(ld_shlibs, $1)=no
8080
6976
      fi
8081
6977
      ;;
8082
6978
 
8083
6979
    interix[[3-9]]*)
8084
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
8085
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8086
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8087
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6980
      _LT_TAGVAR(hardcode_direct, $1)=no
 
6981
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6982
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6983
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8088
6984
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8089
6985
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8090
6986
      # default) and relocated if they conflict, which is a slow very memory
8091
6987
      # consuming and fragmenting process.  To avoid this, we pick a random,
8092
6988
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8093
6989
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8094
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8095
 
      _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'
 
6990
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6991
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8096
6992
      ;;
8097
6993
 
8098
 
    gnu* | linux* | k*bsd*-gnu)
8099
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6994
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
6995
      tmp_diet=no
 
6996
      if test "$host_os" = linux-dietlibc; then
 
6997
        case $cc_basename in
 
6998
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
6999
        esac
 
7000
      fi
 
7001
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
7002
         && test "$tmp_diet" = no
 
7003
      then
8100
7004
        tmp_addflag=
 
7005
        tmp_sharedflag='-shared'
8101
7006
        case $cc_basename,$host_cpu in
8102
 
        pgcc*)                          # Portland Group C compiler
8103
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7007
        pgcc*)                          # Portland Group C compiler
 
7008
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8104
7009
          tmp_addflag=' $pic_flag'
8105
7010
          ;;
8106
7011
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8107
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7012
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8108
7013
          tmp_addflag=' $pic_flag -Mnomain' ;;
8109
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7014
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8110
7015
          tmp_addflag=' -i_dynamic' ;;
8111
7016
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8112
7017
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8113
7018
        ifc* | ifort*)                  # Intel Fortran compiler
8114
7019
          tmp_addflag=' -nofor_main' ;;
 
7020
        lf95*)                          # Lahey Fortran 8.1
 
7021
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7022
          tmp_sharedflag='--shared' ;;
 
7023
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
7024
          tmp_sharedflag='-qmkshrobj'
 
7025
          tmp_addflag= ;;
8115
7026
        esac
8116
7027
        case `$CC -V 2>&1 | sed 5q` in
8117
7028
        *Sun\ C*)                       # Sun C 5.9
8118
 
          _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'
 
7029
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7030
          _LT_TAGVAR(compiler_needs_object, $1)=yes
8119
7031
          tmp_sharedflag='-G' ;;
8120
7032
        *Sun\ F*)                       # Sun Fortran 8.3
8121
7033
          tmp_sharedflag='-G' ;;
8122
 
        *)
8123
 
          tmp_sharedflag='-shared' ;;
8124
 
        esac
8125
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126
 
 
8127
 
        if test $supports_anon_versioning = yes; then
8128
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
8129
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8130
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8131
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8132
 
        fi
 
7034
        esac
 
7035
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7036
 
 
7037
        if test "x$supports_anon_versioning" = xyes; then
 
7038
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7039
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7040
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
7041
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7042
        fi
 
7043
 
 
7044
        case $cc_basename in
 
7045
        xlf*)
 
7046
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
7047
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
7048
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7049
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
7050
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
7051
          if test "x$supports_anon_versioning" = xyes; then
 
7052
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7053
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7054
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
7055
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
7056
          fi
 
7057
          ;;
 
7058
        esac
8133
7059
      else
8134
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7060
        _LT_TAGVAR(ld_shlibs, $1)=no
8135
7061
      fi
8136
7062
      ;;
8137
7063
 
8138
7064
    netbsd*)
8139
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8140
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7065
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7066
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8141
7067
        wlarc=
8142
7068
      else
8143
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7069
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7070
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8145
7071
      fi
8146
7072
      ;;
8147
7073
 
8148
7074
    solaris*)
8149
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8150
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8151
 
        cat <<EOF 1>&2
 
7075
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
7076
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7077
        cat <<_LT_EOF 1>&2
8152
7078
 
8153
7079
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8154
7080
*** create shared libraries on Solaris systems.  Therefore, libtool
8157
7083
*** your PATH or compiler configuration so that the native linker is
8158
7084
*** used, and then restart.
8159
7085
 
8160
 
EOF
8161
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7086
_LT_EOF
 
7087
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7088
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7089
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164
7090
      else
8165
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7091
        _LT_TAGVAR(ld_shlibs, $1)=no
8166
7092
      fi
8167
7093
      ;;
8168
7094
 
8169
7095
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8170
7096
      case `$LD -v 2>&1` in
8171
7097
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8172
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7098
        _LT_TAGVAR(ld_shlibs, $1)=no
8173
7099
        cat <<_LT_EOF 1>&2
8174
7100
 
8175
7101
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8182
7108
_LT_EOF
8183
7109
        ;;
8184
7110
        *)
8185
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8186
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8187
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8188
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7111
          # For security reasons, it is highly recommended that you always
 
7112
          # use absolute paths for naming shared libraries, and exclude the
 
7113
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
7114
          # requires that you compile everything twice, which is a pain.
 
7115
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7116
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7117
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7118
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189
7119
          else
8190
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7120
            _LT_TAGVAR(ld_shlibs, $1)=no
8191
7121
          fi
8192
7122
        ;;
8193
7123
      esac
8194
7124
      ;;
8195
7125
 
8196
7126
    sunos4*)
8197
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7127
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198
7128
      wlarc=
8199
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8200
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7129
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7130
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8201
7131
      ;;
8202
7132
 
8203
7133
    *)
8204
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7134
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7135
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7136
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207
7137
      else
8208
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7138
        _LT_TAGVAR(ld_shlibs, $1)=no
8209
7139
      fi
8210
7140
      ;;
8211
7141
    esac
8212
7142
 
8213
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
7143
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
8214
7144
      runpath_var=
8215
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8216
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8217
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
7145
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7146
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7147
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
8218
7148
    fi
8219
7149
  else
8220
7150
    # PORTME fill in a description of your system's linker (not GNU ld)
8221
7151
    case $host_os in
8222
7152
    aix3*)
8223
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8224
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8225
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
7153
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7154
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
7155
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8226
7156
      # Note: this linker hardcodes the directories in LIBPATH if there
8227
7157
      # are no directories specified by -L.
8228
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7158
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
8229
7159
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8230
7160
        # Neither direct hardcoding nor static linking is supported with a
8231
7161
        # broken collect2.
8232
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
7162
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
8233
7163
      fi
8234
7164
      ;;
8235
7165
 
8236
 
    aix4* | aix5*)
 
7166
    aix[[4-9]]*)
8237
7167
      if test "$host_cpu" = ia64; then
8238
7168
        # On IA64, the linker does run time linking by default, so we don't
8239
7169
        # have to do anything special.
8243
7173
      else
8244
7174
        # If we're using GNU nm, then we don't want the "-C" option.
8245
7175
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8246
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8247
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
7176
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
7177
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8248
7178
        else
8249
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
7179
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8250
7180
        fi
8251
7181
        aix_use_runtimelinking=no
8252
7182
 
8253
7183
        # Test if we are trying to use run time linking or normal
8254
7184
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8255
7185
        # need to do runtime linking.
8256
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
7186
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8257
7187
          for ld_flag in $LDFLAGS; do
8258
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8259
 
            aix_use_runtimelinking=yes
8260
 
            break
8261
 
          fi
 
7188
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7189
            aix_use_runtimelinking=yes
 
7190
            break
 
7191
          fi
8262
7192
          done
8263
7193
          ;;
8264
7194
        esac
8273
7203
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8274
7204
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8275
7205
 
8276
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
8277
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8278
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8279
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7206
      _LT_TAGVAR(archive_cmds, $1)=''
 
7207
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7208
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7209
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7210
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7211
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8280
7212
 
8281
7213
      if test "$GCC" = yes; then
8282
7214
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
8283
7215
        # We only want to do this on AIX 4.2 and lower, the check
8284
7216
        # below for broken collect2 doesn't work under 4.3+
8285
7217
          collect2name=`${CC} -print-prog-name=collect2`
8286
 
          if test -f "$collect2name" && \
8287
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7218
          if test -f "$collect2name" &&
 
7219
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8288
7220
          then
8289
 
          # We have reworked collect2
8290
 
          :
 
7221
          # We have reworked collect2
 
7222
          :
8291
7223
          else
8292
 
          # We have old collect2
8293
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8294
 
          # It fails to find uninstalled libraries when the uninstalled
8295
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8296
 
          # to unsupported forces relinking
8297
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8298
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8299
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
7224
          # We have old collect2
 
7225
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
7226
          # It fails to find uninstalled libraries when the uninstalled
 
7227
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7228
          # to unsupported forces relinking
 
7229
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7230
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7231
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300
7232
          fi
8301
7233
          ;;
8302
7234
        esac
8307
7239
      else
8308
7240
        # not using gcc
8309
7241
        if test "$host_cpu" = ia64; then
8310
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8311
 
        # chokes on -Wl,-G. The following line is correct:
 
7242
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7243
        # chokes on -Wl,-G. The following line is correct:
8312
7244
          shared_flag='-G'
8313
7245
        else
8314
7246
          if test "$aix_use_runtimelinking" = yes; then
8319
7251
        fi
8320
7252
      fi
8321
7253
 
 
7254
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
8322
7255
      # It seems that -bexpall does not export symbols beginning with
8323
7256
      # underscore (_), so it is better to generate a list of symbols to export.
8324
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
7257
      _LT_TAGVAR(always_export_symbols, $1)=yes
8325
7258
      if test "$aix_use_runtimelinking" = yes; then
8326
7259
        # Warning - without using the other runtime loading flags (-brtl),
8327
7260
        # -berok will link without error, but may produce a broken library.
8328
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8329
 
       # Determine the default libpath from the value encoded in an empty executable.
8330
 
       _LT_AC_SYS_LIBPATH_AIX
8331
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8332
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8333
 
       else
 
7261
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7262
        # Determine the default libpath from the value encoded in an
 
7263
        # empty executable.
 
7264
        _LT_SYS_MODULE_PATH_AIX
 
7265
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7266
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7267
      else
8334
7268
        if test "$host_cpu" = ia64; then
8335
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8336
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8337
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7269
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7270
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
7271
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8338
7272
        else
8339
 
         # Determine the default libpath from the value encoded in an empty executable.
8340
 
         _LT_AC_SYS_LIBPATH_AIX
8341
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7273
         # Determine the default libpath from the value encoded in an
 
7274
         # empty executable.
 
7275
         _LT_SYS_MODULE_PATH_AIX
 
7276
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8342
7277
          # Warning - without using the other run time loading flags,
8343
7278
          # -berok will link without error, but may produce a broken library.
8344
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8345
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
7279
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
7280
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8346
7281
          # Exported symbols can be pulled into shared objects from archives
8347
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8348
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7282
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7283
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8349
7284
          # This is similar to how AIX traditionally builds its shared libraries.
8350
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7285
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8351
7286
        fi
8352
7287
      fi
8353
7288
      ;;
8354
7289
 
8355
7290
    amigaos*)
8356
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8357
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8358
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8359
 
      # see comment about different semantics on the GNU ld section
8360
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7291
      case $host_cpu in
 
7292
      powerpc)
 
7293
            # see comment about AmigaOS4 .so support
 
7294
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7295
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
7296
        ;;
 
7297
      m68k)
 
7298
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
7299
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7300
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7301
        ;;
 
7302
      esac
8361
7303
      ;;
8362
7304
 
8363
7305
    bsdi[[45]]*)
8364
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
7306
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8365
7307
      ;;
8366
7308
 
8367
 
    cygwin* | mingw* | pw32*)
 
7309
    cygwin* | mingw* | pw32* | cegcc*)
8368
7310
      # When not using gcc, we currently assume that we are using
8369
7311
      # Microsoft Visual C++.
8370
7312
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8371
7313
      # no search path for DLLs.
8372
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8373
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7314
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7315
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8374
7316
      # Tell ltmain to make .lib files, not .a files.
8375
7317
      libext=lib
8376
7318
      # Tell ltmain to make .dll files, not .so files.
8377
7319
      shrext_cmds=".dll"
8378
7320
      # FIXME: Setting linknames here is a bad hack.
8379
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7321
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8380
7322
      # The linker will automatically build a .lib file if we build a DLL.
8381
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
7323
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8382
7324
      # FIXME: Should let the user specify the lib program.
8383
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8384
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8385
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7325
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
7326
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
7327
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8386
7328
      ;;
8387
7329
 
8388
7330
    darwin* | rhapsody*)
8389
 
      case $host_os in
8390
 
        rhapsody* | darwin1.[[012]])
8391
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
8392
 
         ;;
8393
 
       *) # Darwin 1.3 on
8394
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8395
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8396
 
         else
8397
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8398
 
             10.[[012]])
8399
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8400
 
               ;;
8401
 
             10.*)
8402
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
8403
 
               ;;
8404
 
           esac
8405
 
         fi
8406
 
         ;;
8407
 
      esac
8408
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8409
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
8410
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8411
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8412
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
8413
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8414
 
    if test "$GCC" = yes ; then
8415
 
        output_verbose_link_cmd='echo'
8416
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8417
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8418
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8419
 
      _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}'
8420
 
      _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}'
8421
 
    else
8422
 
      case $cc_basename in
8423
 
        xlc*)
8424
 
         output_verbose_link_cmd='echo'
8425
 
         _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'
8426
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8427
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8428
 
         _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}'
8429
 
          _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}'
8430
 
          ;;
8431
 
       *)
8432
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
8433
 
          ;;
8434
 
      esac
8435
 
    fi
 
7331
      _LT_DARWIN_LINKER_FEATURES($1)
8436
7332
      ;;
8437
7333
 
8438
7334
    dgux*)
8439
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8441
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7335
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7336
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7337
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8442
7338
      ;;
8443
7339
 
8444
7340
    freebsd1*)
8445
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7341
      _LT_TAGVAR(ld_shlibs, $1)=no
8446
7342
      ;;
8447
7343
 
8448
7344
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8450
7346
    # does not break anything, and helps significantly (at the cost of a little
8451
7347
    # extra space).
8452
7348
    freebsd2.2*)
8453
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8454
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8455
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8456
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7349
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7350
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7351
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7352
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8457
7353
      ;;
8458
7354
 
8459
7355
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8460
7356
    freebsd2*)
8461
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8463
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8464
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7357
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7358
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7359
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7360
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8465
7361
      ;;
8466
7362
 
8467
7363
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8468
7364
    freebsd* | dragonfly*)
8469
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8470
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8471
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8472
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7365
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7366
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7367
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7368
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8473
7369
      ;;
8474
7370
 
8475
7371
    hpux9*)
8476
7372
      if test "$GCC" = yes; then
8477
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7373
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8478
7374
      else
8479
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7375
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8480
7376
      fi
8481
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8482
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8483
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7377
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7378
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7379
      _LT_TAGVAR(hardcode_direct, $1)=yes
8484
7380
 
8485
7381
      # hardcode_minus_L: Not really in the search PATH,
8486
7382
      # but as the default location of the library.
8487
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8488
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7383
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7384
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8489
7385
      ;;
8490
7386
 
8491
7387
    hpux10*)
8492
7388
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8493
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7389
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8494
7390
      else
8495
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7391
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8496
7392
      fi
8497
7393
      if test "$with_gnu_ld" = no; then
8498
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8499
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8500
 
 
8501
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8502
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8503
 
 
 
7394
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7395
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
7396
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7397
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7398
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7399
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8504
7400
        # hardcode_minus_L: Not really in the search PATH,
8505
7401
        # but as the default location of the library.
8506
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7402
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
8507
7403
      fi
8508
7404
      ;;
8509
7405
 
8511
7407
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8512
7408
        case $host_cpu in
8513
7409
        hppa*64*)
8514
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7410
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8515
7411
          ;;
8516
7412
        ia64*)
8517
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7413
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8518
7414
          ;;
8519
7415
        *)
8520
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7416
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8521
7417
          ;;
8522
7418
        esac
8523
7419
      else
8524
7420
        case $host_cpu in
8525
7421
        hppa*64*)
8526
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7422
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527
7423
          ;;
8528
7424
        ia64*)
8529
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7425
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8530
7426
          ;;
8531
7427
        *)
8532
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7428
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8533
7429
          ;;
8534
7430
        esac
8535
7431
      fi
8536
7432
      if test "$with_gnu_ld" = no; then
8537
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8538
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7433
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7434
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8539
7435
 
8540
7436
        case $host_cpu in
8541
7437
        hppa*64*|ia64*)
8542
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8543
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
8544
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7438
          _LT_TAGVAR(hardcode_direct, $1)=no
 
7439
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8545
7440
          ;;
8546
7441
        *)
8547
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8548
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7442
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7443
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7444
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8549
7445
 
8550
7446
          # hardcode_minus_L: Not really in the search PATH,
8551
7447
          # but as the default location of the library.
8552
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7448
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
8553
7449
          ;;
8554
7450
        esac
8555
7451
      fi
8557
7453
 
8558
7454
    irix5* | irix6* | nonstopux*)
8559
7455
      if test "$GCC" = yes; then
8560
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7456
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7457
        # Try to use the -exported_symbol ld option, if it does not
 
7458
        # work, assume that -exports_file does not work either and
 
7459
        # implicitly export all symbols.
 
7460
        save_LDFLAGS="$LDFLAGS"
 
7461
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
7462
        AC_LINK_IFELSE(int foo(void) {},
 
7463
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
7464
        )
 
7465
        LDFLAGS="$save_LDFLAGS"
8561
7466
      else
8562
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8563
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
7467
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7468
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8564
7469
      fi
8565
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8566
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8567
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7470
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
7471
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7472
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7473
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
7474
      _LT_TAGVAR(link_all_deplibs, $1)=yes
8568
7475
      ;;
8569
7476
 
8570
7477
    netbsd*)
8571
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8572
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7478
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7479
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8573
7480
      else
8574
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7481
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8575
7482
      fi
8576
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8577
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8578
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7483
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7484
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7485
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8579
7486
      ;;
8580
7487
 
8581
7488
    newsos6)
8582
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8584
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8585
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8586
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7489
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7490
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7491
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7492
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7493
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7494
      ;;
 
7495
 
 
7496
    *nto* | *qnx*)
8587
7497
      ;;
8588
7498
 
8589
7499
    openbsd*)
8590
7500
      if test -f /usr/libexec/ld.so; then
8591
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8592
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8593
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8594
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8595
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8596
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8597
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7501
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7502
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7503
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7504
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7505
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7506
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7507
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7508
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8598
7509
        else
8599
7510
          case $host_os in
8600
7511
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8601
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8602
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7512
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7513
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8603
7514
             ;;
8604
7515
           *)
8605
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8606
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7516
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7517
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8607
7518
             ;;
8608
7519
          esac
8609
 
        fi
 
7520
        fi
8610
7521
      else
8611
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7522
        _LT_TAGVAR(ld_shlibs, $1)=no
8612
7523
      fi
8613
7524
      ;;
8614
7525
 
8615
7526
    os2*)
8616
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8617
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8618
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8619
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8620
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7527
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7528
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7529
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7530
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
7531
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8621
7532
      ;;
8622
7533
 
8623
7534
    osf3*)
8624
7535
      if test "$GCC" = yes; then
8625
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8626
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7536
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7537
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8627
7538
      else
8628
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8629
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7539
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7540
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8630
7541
      fi
8631
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8632
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7542
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
7543
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7544
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8633
7545
      ;;
8634
7546
 
8635
7547
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8636
7548
      if test "$GCC" = yes; then
8637
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8638
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8639
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7549
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7550
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7551
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8640
7552
      else
8641
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8642
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8643
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8644
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7553
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7554
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7555
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
7556
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8645
7557
 
8646
7558
        # Both c and cxx compiler support -rpath directly
8647
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7559
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8648
7560
      fi
8649
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7561
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
7562
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8650
7563
      ;;
8651
7564
 
8652
7565
    solaris*)
8653
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
7566
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8654
7567
      if test "$GCC" = yes; then
8655
7568
        wlarc='${wl}'
8656
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8657
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8658
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7569
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7570
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7571
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8659
7572
      else
8660
 
        wlarc=''
8661
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8663
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7573
        case `$CC -V 2>&1` in
 
7574
        *"Compilers 5.0"*)
 
7575
          wlarc=''
 
7576
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7577
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7578
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
7579
          ;;
 
7580
        *)
 
7581
          wlarc='${wl}'
 
7582
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7583
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7584
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
7585
          ;;
 
7586
        esac
8664
7587
      fi
8665
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8666
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7588
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7589
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8667
7590
      case $host_os in
8668
7591
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8669
7592
      *)
8670
7593
        # The compiler driver will combine and reorder linker options,
8671
7594
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8672
7595
        # but is careful enough not to reorder.
8673
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7596
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8674
7597
        if test "$GCC" = yes; then
8675
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7598
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8676
7599
        else
8677
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7600
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8678
7601
        fi
8679
7602
        ;;
8680
7603
      esac
8681
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7604
      _LT_TAGVAR(link_all_deplibs, $1)=yes
8682
7605
      ;;
8683
7606
 
8684
7607
    sunos4*)
8685
7608
      if test "x$host_vendor" = xsequent; then
8686
7609
        # Use $CC to link under sequent, because it throws in some extra .o
8687
7610
        # files that make .init and .fini sections work.
8688
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7611
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8689
7612
      else
8690
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7613
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8691
7614
      fi
8692
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8693
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8694
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8695
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7615
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7616
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7617
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7618
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8696
7619
      ;;
8697
7620
 
8698
7621
    sysv4)
8699
7622
      case $host_vendor in
8700
7623
        sni)
8701
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
7624
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7625
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8703
7626
        ;;
8704
7627
        siemens)
8705
7628
          ## LD is ld it makes a PLAMLIB
8706
7629
          ## CC just makes a GrossModule.
8707
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8708
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8709
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7630
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7631
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
7632
          _LT_TAGVAR(hardcode_direct, $1)=no
8710
7633
        ;;
8711
7634
        motorola)
8712
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
7635
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7636
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8714
7637
        ;;
8715
7638
      esac
8716
7639
      runpath_var='LD_RUN_PATH'
8717
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7640
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8718
7641
      ;;
8719
7642
 
8720
7643
    sysv4.3*)
8721
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8723
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
7644
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7645
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7646
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8724
7647
      ;;
8725
7648
 
8726
7649
    sysv4*MP*)
8727
7650
      if test -d /usr/nec; then
8728
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7651
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7652
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8730
7653
        runpath_var=LD_RUN_PATH
8731
7654
        hardcode_runpath_var=yes
8732
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
7655
        _LT_TAGVAR(ld_shlibs, $1)=yes
8733
7656
      fi
8734
7657
      ;;
8735
7658
 
8736
7659
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8737
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8738
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8739
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7660
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7661
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7662
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8740
7663
      runpath_var='LD_RUN_PATH'
8741
7664
 
8742
7665
      if test "$GCC" = yes; then
8743
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7666
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7667
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8745
7668
      else
8746
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7669
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7670
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748
7671
      fi
8749
7672
      ;;
8750
7673
 
8755
7678
      # ever link correctly.  If we're not using GNU ld we use -z text
8756
7679
      # though, which does catch some bad symbols but isn't as heavy-handed
8757
7680
      # as -z defs.
8758
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8759
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8760
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8761
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8762
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8763
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8764
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8765
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7681
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7682
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7683
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7684
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7685
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7686
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7687
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7688
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8766
7689
      runpath_var='LD_RUN_PATH'
8767
7690
 
8768
7691
      if test "$GCC" = yes; then
8769
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7692
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7693
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8771
7694
      else
8772
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7695
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7696
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8774
7697
      fi
8775
7698
      ;;
8776
7699
 
8777
7700
    uts4*)
8778
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8780
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7701
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7702
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7703
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8781
7704
      ;;
8782
7705
 
8783
7706
    *)
8784
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7707
      _LT_TAGVAR(ld_shlibs, $1)=no
8785
7708
      ;;
8786
7709
    esac
 
7710
 
 
7711
    if test x$host_vendor = xsni; then
 
7712
      case $host in
 
7713
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7714
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
7715
        ;;
 
7716
      esac
 
7717
    fi
8787
7718
  fi
8788
7719
])
8789
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8790
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7720
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7721
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7722
 
 
7723
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
7724
 
 
7725
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
7726
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
7727
_LT_DECL([], [extract_expsyms_cmds], [2],
 
7728
    [The commands to extract the exported symbol list from a shared archive])
8791
7729
 
8792
7730
#
8793
7731
# Do we need to explicitly link libc?
8794
7732
#
8795
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
7733
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8796
7734
x|xyes)
8797
7735
  # Assume -lc should be added
8798
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7736
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8799
7737
 
8800
7738
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8801
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
7739
    case $_LT_TAGVAR(archive_cmds, $1) in
8802
7740
    *'~'*)
8803
7741
      # FIXME: we may have to deal with multi-command sequences.
8804
7742
      ;;
8807
7745
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8808
7746
      # to ld, don't add -lc before -lgcc.
8809
7747
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8810
 
      $rm conftest*
 
7748
      $RM conftest*
8811
7749
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8812
7750
 
8813
7751
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8815
7753
        lib=conftest
8816
7754
        libobjs=conftest.$ac_objext
8817
7755
        deplibs=
8818
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8819
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
7756
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
7757
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8820
7758
        compiler_flags=-v
8821
7759
        linker_flags=-v
8822
7760
        verstring=
8823
7761
        output_objdir=.
8824
7762
        libname=conftest
8825
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8826
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8827
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
7763
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
7764
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
7765
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8828
7766
        then
8829
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7767
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8830
7768
        else
8831
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7769
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8832
7770
        fi
8833
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7771
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8834
7772
      else
8835
7773
        cat conftest.err 1>&5
8836
7774
      fi
8837
 
      $rm conftest*
8838
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
7775
      $RM conftest*
 
7776
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8839
7777
      ;;
8840
7778
    esac
8841
7779
  fi
8842
7780
  ;;
8843
7781
esac
8844
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
8845
 
 
8846
 
 
8847
 
# _LT_AC_FILE_LTDLL_C
8848
 
# -------------------
8849
 
# Be careful that the start marker always follows a newline.
8850
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8851
 
# /* ltdll.c starts here */
8852
 
# #define WIN32_LEAN_AND_MEAN
8853
 
# #include <windows.h>
8854
 
# #undef WIN32_LEAN_AND_MEAN
8855
 
# #include <stdio.h>
8856
 
#
8857
 
# #ifndef __CYGWIN__
8858
 
# #  ifdef __CYGWIN32__
8859
 
# #    define __CYGWIN__ __CYGWIN32__
8860
 
# #  endif
8861
 
# #endif
8862
 
#
8863
 
# #ifdef __cplusplus
8864
 
# extern "C" {
8865
 
# #endif
8866
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8867
 
# #ifdef __cplusplus
8868
 
# }
8869
 
# #endif
8870
 
#
8871
 
# #ifdef __CYGWIN__
8872
 
# #include <cygwin/cygwin_dll.h>
8873
 
# DECLARE_CYGWIN_DLL( DllMain );
8874
 
# #endif
8875
 
# HINSTANCE __hDllInstance_base;
8876
 
#
8877
 
# BOOL APIENTRY
8878
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8879
 
# {
8880
 
#   __hDllInstance_base = hInst;
8881
 
#   return TRUE;
8882
 
# }
8883
 
# /* ltdll.c ends here */
8884
 
])# _LT_AC_FILE_LTDLL_C
8885
 
 
8886
 
 
8887
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
7782
 
 
7783
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
7784
    [Whether or not to add -lc for building shared libraries])
 
7785
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
7786
    [enable_shared_with_static_runtimes], [0],
 
7787
    [Whether or not to disallow shared libs when runtime libs are static])
 
7788
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
7789
    [Compiler flag to allow reflexive dlopens])
 
7790
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
7791
    [Compiler flag to generate shared objects directly from archives])
 
7792
_LT_TAGDECL([], [compiler_needs_object], [1],
 
7793
    [Whether the compiler copes with passing no objects directly])
 
7794
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
7795
    [Create an old-style archive from a shared archive])
 
7796
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
7797
    [Create a temporary old-style archive to link instead of a shared archive])
 
7798
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
7799
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
7800
_LT_TAGDECL([], [module_cmds], [2],
 
7801
    [Commands used to build a loadable module if different from building
 
7802
    a shared archive.])
 
7803
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
7804
_LT_TAGDECL([], [with_gnu_ld], [1],
 
7805
    [Whether we are building with GNU ld or not])
 
7806
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
7807
    [Flag that allows shared libraries with undefined symbols to be built])
 
7808
_LT_TAGDECL([], [no_undefined_flag], [1],
 
7809
    [Flag that enforces no undefined symbols])
 
7810
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
7811
    [Flag to hardcode $libdir into a binary during linking.
 
7812
    This must work even if $libdir does not exist])
 
7813
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
7814
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
7815
    during linking.  This must work even if $libdir does not exist]])
 
7816
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
7817
    [Whether we need a single "-rpath" flag with a separated argument])
 
7818
_LT_TAGDECL([], [hardcode_direct], [0],
 
7819
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
7820
    DIR into the resulting binary])
 
7821
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
7822
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
7823
    DIR into the resulting binary and the resulting library dependency is
 
7824
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
7825
    library is relocated])
 
7826
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
7827
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
7828
    into the resulting binary])
 
7829
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
7830
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
7831
    into the resulting binary])
 
7832
_LT_TAGDECL([], [hardcode_automatic], [0],
 
7833
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
7834
    into the library and all subsequent libraries and executables linked
 
7835
    against it])
 
7836
_LT_TAGDECL([], [inherit_rpath], [0],
 
7837
    [Set to yes if linker adds runtime paths of dependent libraries
 
7838
    to runtime path list])
 
7839
_LT_TAGDECL([], [link_all_deplibs], [0],
 
7840
    [Whether libtool must link a program against all its dependency libraries])
 
7841
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
7842
    [Fix the shell variable $srcfile for the compiler])
 
7843
_LT_TAGDECL([], [always_export_symbols], [0],
 
7844
    [Set to "yes" if exported symbols are required])
 
7845
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
7846
    [The commands to list exported symbols])
 
7847
_LT_TAGDECL([], [exclude_expsyms], [1],
 
7848
    [Symbols that should not be listed in the preloaded symbols])
 
7849
_LT_TAGDECL([], [include_expsyms], [1],
 
7850
    [Symbols that must always be exported])
 
7851
_LT_TAGDECL([], [prelink_cmds], [2],
 
7852
    [Commands necessary for linking programs (against libraries) with templates])
 
7853
_LT_TAGDECL([], [file_list_spec], [1],
 
7854
    [Specify filename containing input files])
 
7855
dnl FIXME: Not yet implemented
 
7856
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
7857
dnl    [Compiler flag to generate thread safe objects])
 
7858
])# _LT_LINKER_SHLIBS
 
7859
 
 
7860
 
 
7861
# _LT_LANG_C_CONFIG([TAG])
 
7862
# ------------------------
 
7863
# Ensure that the configuration variables for a C compiler are suitably
 
7864
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
7865
# the compiler configuration to `libtool'.
 
7866
m4_defun([_LT_LANG_C_CONFIG],
 
7867
[m4_require([_LT_DECL_EGREP])dnl
 
7868
lt_save_CC="$CC"
 
7869
AC_LANG_PUSH(C)
 
7870
 
 
7871
# Source file extension for C test sources.
 
7872
ac_ext=c
 
7873
 
 
7874
# Object file extension for compiled C test sources.
 
7875
objext=o
 
7876
_LT_TAGVAR(objext, $1)=$objext
 
7877
 
 
7878
# Code to be used in simple compile tests
 
7879
lt_simple_compile_test_code="int some_variable = 0;"
 
7880
 
 
7881
# Code to be used in simple link tests
 
7882
lt_simple_link_test_code='int main(){return(0);}'
 
7883
 
 
7884
_LT_TAG_COMPILER
 
7885
# Save the default compiler, since it gets overwritten when the other
 
7886
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7887
compiler_DEFAULT=$CC
 
7888
 
 
7889
# save warnings/boilerplate of simple test code
 
7890
_LT_COMPILER_BOILERPLATE
 
7891
_LT_LINKER_BOILERPLATE
 
7892
 
 
7893
if test -n "$compiler"; then
 
7894
  _LT_COMPILER_NO_RTTI($1)
 
7895
  _LT_COMPILER_PIC($1)
 
7896
  _LT_COMPILER_C_O($1)
 
7897
  _LT_COMPILER_FILE_LOCKS($1)
 
7898
  _LT_LINKER_SHLIBS($1)
 
7899
  _LT_SYS_DYNAMIC_LINKER($1)
 
7900
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7901
  LT_SYS_DLOPEN_SELF
 
7902
  _LT_CMD_STRIPLIB
 
7903
 
 
7904
  # Report which library types will actually be built
 
7905
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
7906
  AC_MSG_RESULT([$can_build_shared])
 
7907
 
 
7908
  AC_MSG_CHECKING([whether to build shared libraries])
 
7909
  test "$can_build_shared" = "no" && enable_shared=no
 
7910
 
 
7911
  # On AIX, shared libraries and static libraries use the same namespace, and
 
7912
  # are all built from PIC.
 
7913
  case $host_os in
 
7914
  aix3*)
 
7915
    test "$enable_shared" = yes && enable_static=no
 
7916
    if test -n "$RANLIB"; then
 
7917
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7918
      postinstall_cmds='$RANLIB $lib'
 
7919
    fi
 
7920
    ;;
 
7921
 
 
7922
  aix[[4-9]]*)
 
7923
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7924
      test "$enable_shared" = yes && enable_static=no
 
7925
    fi
 
7926
    ;;
 
7927
  esac
 
7928
  AC_MSG_RESULT([$enable_shared])
 
7929
 
 
7930
  AC_MSG_CHECKING([whether to build static libraries])
 
7931
  # Make sure either enable_shared or enable_static is yes.
 
7932
  test "$enable_shared" = yes || enable_static=yes
 
7933
  AC_MSG_RESULT([$enable_static])
 
7934
 
 
7935
  _LT_CONFIG($1)
 
7936
fi
 
7937
AC_LANG_POP
 
7938
CC="$lt_save_CC"
 
7939
])# _LT_LANG_C_CONFIG
 
7940
 
 
7941
 
 
7942
# _LT_PROG_CXX
 
7943
# ------------
 
7944
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
7945
# compiler, we have our own version here.
 
7946
m4_defun([_LT_PROG_CXX],
 
7947
[
 
7948
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
7949
AC_PROG_CXX
 
7950
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7951
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7952
    (test "X$CXX" != "Xg++"))) ; then
 
7953
  AC_PROG_CXXCPP
 
7954
else
 
7955
  _lt_caught_CXX_error=yes
 
7956
fi
 
7957
popdef([AC_MSG_ERROR])
 
7958
])# _LT_PROG_CXX
 
7959
 
 
7960
dnl aclocal-1.4 backwards compatibility:
 
7961
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
7962
 
 
7963
 
 
7964
# _LT_LANG_CXX_CONFIG([TAG])
 
7965
# --------------------------
 
7966
# Ensure that the configuration variables for a C++ compiler are suitably
 
7967
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
7968
# the compiler configuration to `libtool'.
 
7969
m4_defun([_LT_LANG_CXX_CONFIG],
 
7970
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
7971
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7972
m4_require([_LT_DECL_EGREP])dnl
 
7973
 
 
7974
AC_LANG_PUSH(C++)
 
7975
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7976
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7977
_LT_TAGVAR(always_export_symbols, $1)=no
 
7978
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7979
_LT_TAGVAR(compiler_needs_object, $1)=no
 
7980
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7981
_LT_TAGVAR(hardcode_direct, $1)=no
 
7982
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7983
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7984
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7985
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7986
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7987
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
7988
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7989
_LT_TAGVAR(inherit_rpath, $1)=no
 
7990
_LT_TAGVAR(module_cmds, $1)=
 
7991
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7992
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7993
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7994
_LT_TAGVAR(no_undefined_flag, $1)=
 
7995
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7996
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7997
 
 
7998
# Source file extension for C++ test sources.
 
7999
ac_ext=cpp
 
8000
 
 
8001
# Object file extension for compiled C++ test sources.
 
8002
objext=o
 
8003
_LT_TAGVAR(objext, $1)=$objext
 
8004
 
 
8005
# No sense in running all these tests if we already determined that
 
8006
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
8007
# are currently assumed to apply to all compilers on this platform,
 
8008
# and will be corrupted by setting them based on a non-working compiler.
 
8009
if test "$_lt_caught_CXX_error" != yes; then
 
8010
  # Code to be used in simple compile tests
 
8011
  lt_simple_compile_test_code="int some_variable = 0;"
 
8012
 
 
8013
  # Code to be used in simple link tests
 
8014
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
8015
 
 
8016
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8017
  _LT_TAG_COMPILER
 
8018
 
 
8019
  # save warnings/boilerplate of simple test code
 
8020
  _LT_COMPILER_BOILERPLATE
 
8021
  _LT_LINKER_BOILERPLATE
 
8022
 
 
8023
  # Allow CC to be a program name with arguments.
 
8024
  lt_save_CC=$CC
 
8025
  lt_save_LD=$LD
 
8026
  lt_save_GCC=$GCC
 
8027
  GCC=$GXX
 
8028
  lt_save_with_gnu_ld=$with_gnu_ld
 
8029
  lt_save_path_LD=$lt_cv_path_LD
 
8030
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
8031
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
8032
  else
 
8033
    $as_unset lt_cv_prog_gnu_ld
 
8034
  fi
 
8035
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
8036
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
8037
  else
 
8038
    $as_unset lt_cv_path_LD
 
8039
  fi
 
8040
  test -z "${LDCXX+set}" || LD=$LDCXX
 
8041
  CC=${CXX-"c++"}
 
8042
  compiler=$CC
 
8043
  _LT_TAGVAR(compiler, $1)=$CC
 
8044
  _LT_CC_BASENAME([$compiler])
 
8045
 
 
8046
  if test -n "$compiler"; then
 
8047
    # We don't want -fno-exception when compiling C++ code, so set the
 
8048
    # no_builtin_flag separately
 
8049
    if test "$GXX" = yes; then
 
8050
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
8051
    else
 
8052
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
8053
    fi
 
8054
 
 
8055
    if test "$GXX" = yes; then
 
8056
      # Set up default GNU C++ configuration
 
8057
 
 
8058
      LT_PATH_LD
 
8059
 
 
8060
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
8061
      # archiving commands below assume that GNU ld is being used.
 
8062
      if test "$with_gnu_ld" = yes; then
 
8063
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8064
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8065
 
 
8066
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
8067
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
8068
 
 
8069
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
8070
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
8071
        #     investigate it a little bit more. (MM)
 
8072
        wlarc='${wl}'
 
8073
 
 
8074
        # ancient GNU ld didn't support --whole-archive et. al.
 
8075
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
8076
          $GREP 'no-whole-archive' > /dev/null; then
 
8077
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8078
        else
 
8079
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
8080
        fi
 
8081
      else
 
8082
        with_gnu_ld=no
 
8083
        wlarc=
 
8084
 
 
8085
        # A generic and very simple default shared library creation
 
8086
        # command for GNU C++ for the case where it uses the native
 
8087
        # linker, instead of GNU ld.  If possible, this setting should
 
8088
        # overridden to take advantage of the native linker features on
 
8089
        # the platform it is being used on.
 
8090
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
8091
      fi
 
8092
 
 
8093
      # Commands to make compiler produce verbose output that lists
 
8094
      # what "hidden" libraries, object files and flags are used when
 
8095
      # linking a shared library.
 
8096
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8097
 
 
8098
    else
 
8099
      GXX=no
 
8100
      with_gnu_ld=no
 
8101
      wlarc=
 
8102
    fi
 
8103
 
 
8104
    # PORTME: fill in a description of your system's C++ link characteristics
 
8105
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
8106
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
8107
    case $host_os in
 
8108
      aix3*)
 
8109
        # FIXME: insert proper C++ library support
 
8110
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8111
        ;;
 
8112
      aix[[4-9]]*)
 
8113
        if test "$host_cpu" = ia64; then
 
8114
          # On IA64, the linker does run time linking by default, so we don't
 
8115
          # have to do anything special.
 
8116
          aix_use_runtimelinking=no
 
8117
          exp_sym_flag='-Bexport'
 
8118
          no_entry_flag=""
 
8119
        else
 
8120
          aix_use_runtimelinking=no
 
8121
 
 
8122
          # Test if we are trying to use run time linking or normal
 
8123
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8124
          # need to do runtime linking.
 
8125
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
8126
            for ld_flag in $LDFLAGS; do
 
8127
              case $ld_flag in
 
8128
              *-brtl*)
 
8129
                aix_use_runtimelinking=yes
 
8130
                break
 
8131
                ;;
 
8132
              esac
 
8133
            done
 
8134
            ;;
 
8135
          esac
 
8136
 
 
8137
          exp_sym_flag='-bexport'
 
8138
          no_entry_flag='-bnoentry'
 
8139
        fi
 
8140
 
 
8141
        # When large executables or shared objects are built, AIX ld can
 
8142
        # have problems creating the table of contents.  If linking a library
 
8143
        # or program results in "error TOC overflow" add -mminimal-toc to
 
8144
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8145
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8146
 
 
8147
        _LT_TAGVAR(archive_cmds, $1)=''
 
8148
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
8149
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
8150
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
8151
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8152
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
8153
 
 
8154
        if test "$GXX" = yes; then
 
8155
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
8156
          # We only want to do this on AIX 4.2 and lower, the check
 
8157
          # below for broken collect2 doesn't work under 4.3+
 
8158
          collect2name=`${CC} -print-prog-name=collect2`
 
8159
          if test -f "$collect2name" &&
 
8160
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8161
          then
 
8162
            # We have reworked collect2
 
8163
            :
 
8164
          else
 
8165
            # We have old collect2
 
8166
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
8167
            # It fails to find uninstalled libraries when the uninstalled
 
8168
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
8169
            # to unsupported forces relinking
 
8170
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
8171
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
8172
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
8173
          fi
 
8174
          esac
 
8175
          shared_flag='-shared'
 
8176
          if test "$aix_use_runtimelinking" = yes; then
 
8177
            shared_flag="$shared_flag "'${wl}-G'
 
8178
          fi
 
8179
        else
 
8180
          # not using gcc
 
8181
          if test "$host_cpu" = ia64; then
 
8182
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8183
          # chokes on -Wl,-G. The following line is correct:
 
8184
          shared_flag='-G'
 
8185
          else
 
8186
            if test "$aix_use_runtimelinking" = yes; then
 
8187
              shared_flag='${wl}-G'
 
8188
            else
 
8189
              shared_flag='${wl}-bM:SRE'
 
8190
            fi
 
8191
          fi
 
8192
        fi
 
8193
 
 
8194
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
8195
        # It seems that -bexpall does not export symbols beginning with
 
8196
        # underscore (_), so it is better to generate a list of symbols to
 
8197
        # export.
 
8198
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
8199
        if test "$aix_use_runtimelinking" = yes; then
 
8200
          # Warning - without using the other runtime loading flags (-brtl),
 
8201
          # -berok will link without error, but may produce a broken library.
 
8202
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
8203
          # Determine the default libpath from the value encoded in an empty
 
8204
          # executable.
 
8205
          _LT_SYS_MODULE_PATH_AIX
 
8206
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8207
 
 
8208
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8209
        else
 
8210
          if test "$host_cpu" = ia64; then
 
8211
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
8212
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
8213
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
8214
          else
 
8215
            # Determine the default libpath from the value encoded in an
 
8216
            # empty executable.
 
8217
            _LT_SYS_MODULE_PATH_AIX
 
8218
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8219
            # Warning - without using the other run time loading flags,
 
8220
            # -berok will link without error, but may produce a broken library.
 
8221
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
8222
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
8223
            # Exported symbols can be pulled into shared objects from archives
 
8224
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
8225
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
8226
            # This is similar to how AIX traditionally builds its shared
 
8227
            # libraries.
 
8228
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8229
          fi
 
8230
        fi
 
8231
        ;;
 
8232
 
 
8233
      beos*)
 
8234
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8235
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
8236
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8237
          # support --undefined.  This deserves some investigation.  FIXME
 
8238
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8239
        else
 
8240
          _LT_TAGVAR(ld_shlibs, $1)=no
 
8241
        fi
 
8242
        ;;
 
8243
 
 
8244
      chorus*)
 
8245
        case $cc_basename in
 
8246
          *)
 
8247
          # FIXME: insert proper C++ library support
 
8248
          _LT_TAGVAR(ld_shlibs, $1)=no
 
8249
          ;;
 
8250
        esac
 
8251
        ;;
 
8252
 
 
8253
      cygwin* | mingw* | pw32* | cegcc*)
 
8254
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
8255
        # as there is no search path for DLLs.
 
8256
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
8257
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
8258
        _LT_TAGVAR(always_export_symbols, $1)=no
 
8259
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
8260
 
 
8261
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8262
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8263
          # If the export-symbols file already is a .def file (1st line
 
8264
          # is EXPORTS), use it as is; otherwise, prepend...
 
8265
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8266
            cp $export_symbols $output_objdir/$soname.def;
 
8267
          else
 
8268
            echo EXPORTS > $output_objdir/$soname.def;
 
8269
            cat $export_symbols >> $output_objdir/$soname.def;
 
8270
          fi~
 
8271
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8272
        else
 
8273
          _LT_TAGVAR(ld_shlibs, $1)=no
 
8274
        fi
 
8275
        ;;
 
8276
      darwin* | rhapsody*)
 
8277
        _LT_DARWIN_LINKER_FEATURES($1)
 
8278
        ;;
 
8279
 
 
8280
      dgux*)
 
8281
        case $cc_basename in
 
8282
          ec++*)
 
8283
            # FIXME: insert proper C++ library support
 
8284
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8285
            ;;
 
8286
          ghcx*)
 
8287
            # Green Hills C++ Compiler
 
8288
            # FIXME: insert proper C++ library support
 
8289
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8290
            ;;
 
8291
          *)
 
8292
            # FIXME: insert proper C++ library support
 
8293
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8294
            ;;
 
8295
        esac
 
8296
        ;;
 
8297
 
 
8298
      freebsd[[12]]*)
 
8299
        # C++ shared libraries reported to be fairly broken before
 
8300
        # switch to ELF
 
8301
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8302
        ;;
 
8303
 
 
8304
      freebsd-elf*)
 
8305
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8306
        ;;
 
8307
 
 
8308
      freebsd* | dragonfly*)
 
8309
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
8310
        # conventions
 
8311
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
8312
        ;;
 
8313
 
 
8314
      gnu*)
 
8315
        ;;
 
8316
 
 
8317
      hpux9*)
 
8318
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8319
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8320
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8321
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
8322
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
8323
                                             # but as the default
 
8324
                                             # location of the library.
 
8325
 
 
8326
        case $cc_basename in
 
8327
          CC*)
 
8328
            # FIXME: insert proper C++ library support
 
8329
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8330
            ;;
 
8331
          aCC*)
 
8332
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8333
            # Commands to make compiler produce verbose output that lists
 
8334
            # what "hidden" libraries, object files and flags are used when
 
8335
            # linking a shared library.
 
8336
            #
 
8337
            # There doesn't appear to be a way to prevent this compiler from
 
8338
            # explicitly linking system object files so we need to strip them
 
8339
            # from the output so that they don't get included in the library
 
8340
            # dependencies.
 
8341
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8342
            ;;
 
8343
          *)
 
8344
            if test "$GXX" = yes; then
 
8345
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8346
            else
 
8347
              # FIXME: insert proper C++ library support
 
8348
              _LT_TAGVAR(ld_shlibs, $1)=no
 
8349
            fi
 
8350
            ;;
 
8351
        esac
 
8352
        ;;
 
8353
 
 
8354
      hpux10*|hpux11*)
 
8355
        if test $with_gnu_ld = no; then
 
8356
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8357
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8358
 
 
8359
          case $host_cpu in
 
8360
            hppa*64*|ia64*)
 
8361
              ;;
 
8362
            *)
 
8363
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8364
              ;;
 
8365
          esac
 
8366
        fi
 
8367
        case $host_cpu in
 
8368
          hppa*64*|ia64*)
 
8369
            _LT_TAGVAR(hardcode_direct, $1)=no
 
8370
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8371
            ;;
 
8372
          *)
 
8373
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
8374
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
8375
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
8376
                                                 # but as the default
 
8377
                                                 # location of the library.
 
8378
            ;;
 
8379
        esac
 
8380
 
 
8381
        case $cc_basename in
 
8382
          CC*)
 
8383
            # FIXME: insert proper C++ library support
 
8384
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8385
            ;;
 
8386
          aCC*)
 
8387
            case $host_cpu in
 
8388
              hppa*64*)
 
8389
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8390
                ;;
 
8391
              ia64*)
 
8392
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8393
                ;;
 
8394
              *)
 
8395
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8396
                ;;
 
8397
            esac
 
8398
            # Commands to make compiler produce verbose output that lists
 
8399
            # what "hidden" libraries, object files and flags are used when
 
8400
            # linking a shared library.
 
8401
            #
 
8402
            # There doesn't appear to be a way to prevent this compiler from
 
8403
            # explicitly linking system object files so we need to strip them
 
8404
            # from the output so that they don't get included in the library
 
8405
            # dependencies.
 
8406
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8407
            ;;
 
8408
          *)
 
8409
            if test "$GXX" = yes; then
 
8410
              if test $with_gnu_ld = no; then
 
8411
                case $host_cpu in
 
8412
                  hppa*64*)
 
8413
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8414
                    ;;
 
8415
                  ia64*)
 
8416
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8417
                    ;;
 
8418
                  *)
 
8419
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8420
                    ;;
 
8421
                esac
 
8422
              fi
 
8423
            else
 
8424
              # FIXME: insert proper C++ library support
 
8425
              _LT_TAGVAR(ld_shlibs, $1)=no
 
8426
            fi
 
8427
            ;;
 
8428
        esac
 
8429
        ;;
 
8430
 
 
8431
      interix[[3-9]]*)
 
8432
        _LT_TAGVAR(hardcode_direct, $1)=no
 
8433
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8434
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8435
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8436
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8437
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8438
        # default) and relocated if they conflict, which is a slow very memory
 
8439
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
8440
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8441
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8442
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8443
        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8444
        ;;
 
8445
      irix5* | irix6*)
 
8446
        case $cc_basename in
 
8447
          CC*)
 
8448
            # SGI C++
 
8449
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8450
 
 
8451
            # Archives containing C++ object files must be created using
 
8452
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
8453
            # necessary to make sure instantiated templates are included
 
8454
            # in the archive.
 
8455
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
8456
            ;;
 
8457
          *)
 
8458
            if test "$GXX" = yes; then
 
8459
              if test "$with_gnu_ld" = no; then
 
8460
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8461
              else
 
8462
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
8463
              fi
 
8464
            fi
 
8465
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8466
            ;;
 
8467
        esac
 
8468
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
8469
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8470
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
8471
        ;;
 
8472
 
 
8473
      linux* | k*bsd*-gnu)
 
8474
        case $cc_basename in
 
8475
          KCC*)
 
8476
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
8477
 
 
8478
            # KCC will only create a shared library if the output file
 
8479
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
8480
            # to its proper name (with version) after linking.
 
8481
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
8482
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
8483
            # Commands to make compiler produce verbose output that lists
 
8484
            # what "hidden" libraries, object files and flags are used when
 
8485
            # linking a shared library.
 
8486
            #
 
8487
            # There doesn't appear to be a way to prevent this compiler from
 
8488
            # explicitly linking system object files so we need to strip them
 
8489
            # from the output so that they don't get included in the library
 
8490
            # dependencies.
 
8491
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8492
 
 
8493
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8494
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
8495
 
 
8496
            # Archives containing C++ object files must be created using
 
8497
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
8498
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
8499
            ;;
 
8500
          icpc* | ecpc* )
 
8501
            # Intel C++
 
8502
            with_gnu_ld=yes
 
8503
            # version 8.0 and above of icpc choke on multiply defined symbols
 
8504
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
8505
            # earlier do not add the objects themselves.
 
8506
            case `$CC -V 2>&1` in
 
8507
              *"Version 7."*)
 
8508
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8509
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8510
                ;;
 
8511
              *)  # Version 8.0 or newer
 
8512
                tmp_idyn=
 
8513
                case $host_cpu in
 
8514
                  ia64*) tmp_idyn=' -i_dynamic';;
 
8515
                esac
 
8516
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8517
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8518
                ;;
 
8519
            esac
 
8520
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8521
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8522
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
8523
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
8524
            ;;
 
8525
          pgCC* | pgcpp*)
 
8526
            # Portland Group C++ compiler
 
8527
            case `$CC -V` in
 
8528
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
8529
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
8530
                rm -rf $tpldir~
 
8531
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
8532
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
8533
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
8534
                rm -rf $tpldir~
 
8535
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
8536
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
8537
                $RANLIB $oldlib'
 
8538
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
8539
                rm -rf $tpldir~
 
8540
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
8541
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
8542
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
8543
                rm -rf $tpldir~
 
8544
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
8545
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
8546
              ;;
 
8547
            *) # Version 6 will use weak symbols
 
8548
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
8549
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
8550
              ;;
 
8551
            esac
 
8552
 
 
8553
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
8554
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
8555
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8556
            ;;
 
8557
          cxx*)
 
8558
            # Compaq C++
 
8559
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8560
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
8561
 
 
8562
            runpath_var=LD_RUN_PATH
 
8563
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
8564
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8565
 
 
8566
            # Commands to make compiler produce verbose output that lists
 
8567
            # what "hidden" libraries, object files and flags are used when
 
8568
            # linking a shared library.
 
8569
            #
 
8570
            # There doesn't appear to be a way to prevent this compiler from
 
8571
            # explicitly linking system object files so we need to strip them
 
8572
            # from the output so that they don't get included in the library
 
8573
            # dependencies.
 
8574
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8575
            ;;
 
8576
          xl*)
 
8577
            # IBM XL 8.0 on PPC, with GNU ld
 
8578
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
8579
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
8580
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8581
            if test "x$supports_anon_versioning" = xyes; then
 
8582
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
8583
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8584
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
8585
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8586
            fi
 
8587
            ;;
 
8588
          *)
 
8589
            case `$CC -V 2>&1 | sed 5q` in
 
8590
            *Sun\ C*)
 
8591
              # Sun C++ 5.9
 
8592
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
8593
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8594
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
8595
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
8596
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8597
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
8598
 
 
8599
              # Not sure whether something based on
 
8600
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
8601
              # would be better.
 
8602
              output_verbose_link_cmd='echo'
 
8603
 
 
8604
              # Archives containing C++ object files must be created using
 
8605
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
8606
              # necessary to make sure instantiated templates are included
 
8607
              # in the archive.
 
8608
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
8609
              ;;
 
8610
            esac
 
8611
            ;;
 
8612
        esac
 
8613
        ;;
 
8614
 
 
8615
      lynxos*)
 
8616
        # FIXME: insert proper C++ library support
 
8617
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8618
        ;;
 
8619
 
 
8620
      m88k*)
 
8621
        # FIXME: insert proper C++ library support
 
8622
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8623
        ;;
 
8624
 
 
8625
      mvs*)
 
8626
        case $cc_basename in
 
8627
          cxx*)
 
8628
            # FIXME: insert proper C++ library support
 
8629
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8630
            ;;
 
8631
          *)
 
8632
            # FIXME: insert proper C++ library support
 
8633
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8634
            ;;
 
8635
        esac
 
8636
        ;;
 
8637
 
 
8638
      netbsd*)
 
8639
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8640
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
8641
          wlarc=
 
8642
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
8643
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
8644
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8645
        fi
 
8646
        # Workaround some broken pre-1.5 toolchains
 
8647
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
8648
        ;;
 
8649
 
 
8650
      *nto* | *qnx*)
 
8651
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
8652
        ;;
 
8653
 
 
8654
      openbsd2*)
 
8655
        # C++ shared libraries are fairly broken
 
8656
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8657
        ;;
 
8658
 
 
8659
      openbsd*)
 
8660
        if test -f /usr/libexec/ld.so; then
 
8661
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
8662
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8663
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
8664
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
8665
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8666
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8667
            _LT_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'
 
8668
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8669
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8670
          fi
 
8671
          output_verbose_link_cmd=echo
 
8672
        else
 
8673
          _LT_TAGVAR(ld_shlibs, $1)=no
 
8674
        fi
 
8675
        ;;
 
8676
 
 
8677
      osf3* | osf4* | osf5*)
 
8678
        case $cc_basename in
 
8679
          KCC*)
 
8680
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
8681
 
 
8682
            # KCC will only create a shared library if the output file
 
8683
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
8684
            # to its proper name (with version) after linking.
 
8685
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
8686
 
 
8687
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8688
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8689
 
 
8690
            # Archives containing C++ object files must be created using
 
8691
            # the KAI C++ compiler.
 
8692
            case $host in
 
8693
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
8694
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
8695
            esac
 
8696
            ;;
 
8697
          RCC*)
 
8698
            # Rational C++ 2.4.1
 
8699
            # FIXME: insert proper C++ library support
 
8700
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8701
            ;;
 
8702
          cxx*)
 
8703
            case $host in
 
8704
              osf3*)
 
8705
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
8706
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8707
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
8708
                ;;
 
8709
              *)
 
8710
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
8711
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8712
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
8713
                  echo "-hidden">> $lib.exp~
 
8714
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
8715
                  $RM $lib.exp'
 
8716
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
8717
                ;;
 
8718
            esac
 
8719
 
 
8720
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8721
 
 
8722
            # Commands to make compiler produce verbose output that lists
 
8723
            # what "hidden" libraries, object files and flags are used when
 
8724
            # linking a shared library.
 
8725
            #
 
8726
            # There doesn't appear to be a way to prevent this compiler from
 
8727
            # explicitly linking system object files so we need to strip them
 
8728
            # from the output so that they don't get included in the library
 
8729
            # dependencies.
 
8730
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
8731
            ;;
 
8732
          *)
 
8733
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
8734
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
8735
              case $host in
 
8736
                osf3*)
 
8737
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8738
                  ;;
 
8739
                *)
 
8740
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8741
                  ;;
 
8742
              esac
 
8743
 
 
8744
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
8745
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
8746
 
 
8747
              # Commands to make compiler produce verbose output that lists
 
8748
              # what "hidden" libraries, object files and flags are used when
 
8749
              # linking a shared library.
 
8750
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8751
 
 
8752
            else
 
8753
              # FIXME: insert proper C++ library support
 
8754
              _LT_TAGVAR(ld_shlibs, $1)=no
 
8755
            fi
 
8756
            ;;
 
8757
        esac
 
8758
        ;;
 
8759
 
 
8760
      psos*)
 
8761
        # FIXME: insert proper C++ library support
 
8762
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8763
        ;;
 
8764
 
 
8765
      sunos4*)
 
8766
        case $cc_basename in
 
8767
          CC*)
 
8768
            # Sun C++ 4.x
 
8769
            # FIXME: insert proper C++ library support
 
8770
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8771
            ;;
 
8772
          lcc*)
 
8773
            # Lucid
 
8774
            # FIXME: insert proper C++ library support
 
8775
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8776
            ;;
 
8777
          *)
 
8778
            # FIXME: insert proper C++ library support
 
8779
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8780
            ;;
 
8781
        esac
 
8782
        ;;
 
8783
 
 
8784
      solaris*)
 
8785
        case $cc_basename in
 
8786
          CC*)
 
8787
            # Sun C++ 4.2, 5.x and Centerline C++
 
8788
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
8789
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
8790
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
8791
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8792
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
8793
 
 
8794
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
8795
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8796
            case $host_os in
 
8797
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
8798
              *)
 
8799
                # The compiler driver will combine and reorder linker options,
 
8800
                # but understands `-z linker_flag'.
 
8801
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8802
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
8803
                ;;
 
8804
            esac
 
8805
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8806
 
 
8807
            output_verbose_link_cmd='echo'
 
8808
 
 
8809
            # Archives containing C++ object files must be created using
 
8810
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
8811
            # necessary to make sure instantiated templates are included
 
8812
            # in the archive.
 
8813
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
8814
            ;;
 
8815
          gcx*)
 
8816
            # Green Hills C++ Compiler
 
8817
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
8818
 
 
8819
            # The C++ compiler must be used to create the archive.
 
8820
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
8821
            ;;
 
8822
          *)
 
8823
            # GNU C++ compiler with Solaris linker
 
8824
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
8825
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
8826
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
8827
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
8828
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8829
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
8830
 
 
8831
                # Commands to make compiler produce verbose output that lists
 
8832
                # what "hidden" libraries, object files and flags are used when
 
8833
                # linking a shared library.
 
8834
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8835
              else
 
8836
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
8837
                # platform.
 
8838
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
8839
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8840
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
8841
 
 
8842
                # Commands to make compiler produce verbose output that lists
 
8843
                # what "hidden" libraries, object files and flags are used when
 
8844
                # linking a shared library.
 
8845
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8846
              fi
 
8847
 
 
8848
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
8849
              case $host_os in
 
8850
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
8851
                *)
 
8852
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8853
                  ;;
 
8854
              esac
 
8855
            fi
 
8856
            ;;
 
8857
        esac
 
8858
        ;;
 
8859
 
 
8860
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
8861
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
8862
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8863
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8864
      runpath_var='LD_RUN_PATH'
 
8865
 
 
8866
      case $cc_basename in
 
8867
        CC*)
 
8868
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8869
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8870
          ;;
 
8871
        *)
 
8872
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8873
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8874
          ;;
 
8875
      esac
 
8876
      ;;
 
8877
 
 
8878
      sysv5* | sco3.2v5* | sco5v6*)
 
8879
        # Note: We can NOT use -z defs as we might desire, because we do not
 
8880
        # link with -lc, and that would cause any symbols used from libc to
 
8881
        # always be unresolved, which means just about no library would
 
8882
        # ever link correctly.  If we're not using GNU ld we use -z text
 
8883
        # though, which does catch some bad symbols but isn't as heavy-handed
 
8884
        # as -z defs.
 
8885
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
8886
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
8887
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8888
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8889
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
8890
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
8891
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8892
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
8893
        runpath_var='LD_RUN_PATH'
 
8894
 
 
8895
        case $cc_basename in
 
8896
          CC*)
 
8897
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8898
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8899
            ;;
 
8900
          *)
 
8901
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8902
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8903
            ;;
 
8904
        esac
 
8905
      ;;
 
8906
 
 
8907
      tandem*)
 
8908
        case $cc_basename in
 
8909
          NCC*)
 
8910
            # NonStop-UX NCC 3.20
 
8911
            # FIXME: insert proper C++ library support
 
8912
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8913
            ;;
 
8914
          *)
 
8915
            # FIXME: insert proper C++ library support
 
8916
            _LT_TAGVAR(ld_shlibs, $1)=no
 
8917
            ;;
 
8918
        esac
 
8919
        ;;
 
8920
 
 
8921
      vxworks*)
 
8922
        # FIXME: insert proper C++ library support
 
8923
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8924
        ;;
 
8925
 
 
8926
      *)
 
8927
        # FIXME: insert proper C++ library support
 
8928
        _LT_TAGVAR(ld_shlibs, $1)=no
 
8929
        ;;
 
8930
    esac
 
8931
 
 
8932
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
8933
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
8934
 
 
8935
    _LT_TAGVAR(GCC, $1)="$GXX"
 
8936
    _LT_TAGVAR(LD, $1)="$LD"
 
8937
 
 
8938
    ## CAVEAT EMPTOR:
 
8939
    ## There is no encapsulation within the following macros, do not change
 
8940
    ## the running order or otherwise move them around unless you know exactly
 
8941
    ## what you are doing...
 
8942
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
8943
    _LT_COMPILER_PIC($1)
 
8944
    _LT_COMPILER_C_O($1)
 
8945
    _LT_COMPILER_FILE_LOCKS($1)
 
8946
    _LT_LINKER_SHLIBS($1)
 
8947
    _LT_SYS_DYNAMIC_LINKER($1)
 
8948
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
8949
 
 
8950
    _LT_CONFIG($1)
 
8951
  fi # test -n "$compiler"
 
8952
 
 
8953
  CC=$lt_save_CC
 
8954
  LDCXX=$LD
 
8955
  LD=$lt_save_LD
 
8956
  GCC=$lt_save_GCC
 
8957
  with_gnu_ld=$lt_save_with_gnu_ld
 
8958
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
8959
  lt_cv_path_LD=$lt_save_path_LD
 
8960
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
8961
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
8962
fi # test "$_lt_caught_CXX_error" != yes
 
8963
 
 
8964
AC_LANG_POP
 
8965
])# _LT_LANG_CXX_CONFIG
 
8966
 
 
8967
 
 
8968
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8888
8969
# ---------------------------------
8889
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8890
 
 
8891
 
 
8892
 
# old names
8893
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
8894
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
8895
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
8896
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8897
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8898
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
8899
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
8900
 
 
8901
 
# This is just to silence aclocal about the macro not being used
8902
 
ifelse([AC_DISABLE_FAST_INSTALL])
8903
 
 
8904
 
AC_DEFUN([LT_AC_PROG_GCJ],
8905
 
[AC_CHECK_TOOL(GCJ, gcj, no)
8906
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8907
 
  AC_SUBST(GCJFLAGS)
8908
 
])
8909
 
 
8910
 
AC_DEFUN([LT_AC_PROG_RC],
8911
 
[AC_CHECK_TOOL(RC, windres, no)
8912
 
])
8913
 
 
8914
 
 
8915
 
# Cheap backport of AS_EXECUTABLE_P and required macros
8916
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
8917
 
 
8918
 
# _AS_TEST_PREPARE
8919
 
# ----------------
8920
 
m4_ifndef([_AS_TEST_PREPARE],
8921
 
[m4_defun([_AS_TEST_PREPARE],
8922
 
[if test -x / >/dev/null 2>&1; then
8923
 
  as_executable_p='test -x'
 
8970
# Figure out "hidden" library dependencies from verbose
 
8971
# compiler output when linking a shared library.
 
8972
# Parse the compiler output and extract the necessary
 
8973
# objects, libraries and library flags.
 
8974
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
8975
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
8976
# Dependencies to place before and after the object being linked:
 
8977
_LT_TAGVAR(predep_objects, $1)=
 
8978
_LT_TAGVAR(postdep_objects, $1)=
 
8979
_LT_TAGVAR(predeps, $1)=
 
8980
_LT_TAGVAR(postdeps, $1)=
 
8981
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
8982
 
 
8983
dnl we can't use the lt_simple_compile_test_code here,
 
8984
dnl because it contains code intended for an executable,
 
8985
dnl not a library.  It's possible we should let each
 
8986
dnl tag define a new lt_????_link_test_code variable,
 
8987
dnl but it's only used here...
 
8988
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
8989
int a;
 
8990
void foo (void) { a = 0; }
 
8991
_LT_EOF
 
8992
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
8993
class Foo
 
8994
{
 
8995
public:
 
8996
  Foo (void) { a = 0; }
 
8997
private:
 
8998
  int a;
 
8999
};
 
9000
_LT_EOF
 
9001
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
9002
      subroutine foo
 
9003
      implicit none
 
9004
      integer*4 a
 
9005
      a=0
 
9006
      return
 
9007
      end
 
9008
_LT_EOF
 
9009
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
9010
      subroutine foo
 
9011
      implicit none
 
9012
      integer a
 
9013
      a=0
 
9014
      return
 
9015
      end
 
9016
_LT_EOF
 
9017
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
9018
public class foo {
 
9019
  private int a;
 
9020
  public void bar (void) {
 
9021
    a = 0;
 
9022
  }
 
9023
};
 
9024
_LT_EOF
 
9025
])
 
9026
dnl Parse the compiler output and extract the necessary
 
9027
dnl objects, libraries and library flags.
 
9028
if AC_TRY_EVAL(ac_compile); then
 
9029
  # Parse the compiler output and extract the necessary
 
9030
  # objects, libraries and library flags.
 
9031
 
 
9032
  # Sentinel used to keep track of whether or not we are before
 
9033
  # the conftest object file.
 
9034
  pre_test_object_deps_done=no
 
9035
 
 
9036
  for p in `eval "$output_verbose_link_cmd"`; do
 
9037
    case $p in
 
9038
 
 
9039
    -L* | -R* | -l*)
 
9040
       # Some compilers place space between "-{L,R}" and the path.
 
9041
       # Remove the space.
 
9042
       if test $p = "-L" ||
 
9043
          test $p = "-R"; then
 
9044
         prev=$p
 
9045
         continue
 
9046
       else
 
9047
         prev=
 
9048
       fi
 
9049
 
 
9050
       if test "$pre_test_object_deps_done" = no; then
 
9051
         case $p in
 
9052
         -L* | -R*)
 
9053
           # Internal compiler library paths should come after those
 
9054
           # provided the user.  The postdeps already come after the
 
9055
           # user supplied libs so there is no need to process them.
 
9056
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
9057
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
9058
           else
 
9059
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
9060
           fi
 
9061
           ;;
 
9062
         # The "-l" case would never come before the object being
 
9063
         # linked, so don't bother handling this case.
 
9064
         esac
 
9065
       else
 
9066
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
9067
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
9068
         else
 
9069
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
9070
         fi
 
9071
       fi
 
9072
       ;;
 
9073
 
 
9074
    *.$objext)
 
9075
       # This assumes that the test object file only shows up
 
9076
       # once in the compiler output.
 
9077
       if test "$p" = "conftest.$objext"; then
 
9078
         pre_test_object_deps_done=yes
 
9079
         continue
 
9080
       fi
 
9081
 
 
9082
       if test "$pre_test_object_deps_done" = no; then
 
9083
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
9084
           _LT_TAGVAR(predep_objects, $1)="$p"
 
9085
         else
 
9086
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
9087
         fi
 
9088
       else
 
9089
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
9090
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
9091
         else
 
9092
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
9093
         fi
 
9094
       fi
 
9095
       ;;
 
9096
 
 
9097
    *) ;; # Ignore the rest.
 
9098
 
 
9099
    esac
 
9100
  done
 
9101
 
 
9102
  # Clean up.
 
9103
  rm -f a.out a.exe
8924
9104
else
8925
 
  as_executable_p='test -f'
8926
 
fi
8927
 
])])# _AS_TEST_PREPARE
8928
 
 
8929
 
# AS_EXECUTABLE_P
8930
 
# ---------------
8931
 
# Check whether a file is executable.
8932
 
m4_ifndef([AS_EXECUTABLE_P],
8933
 
[m4_defun([AS_EXECUTABLE_P],
8934
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
8935
 
$as_executable_p $1[]dnl
8936
 
])])# AS_EXECUTABLE_P
8937
 
 
 
9105
  echo "libtool.m4: error: problem compiling $1 test program"
 
9106
fi
 
9107
 
 
9108
$RM -f confest.$objext
 
9109
 
 
9110
# PORTME: override above test on systems where it is broken
 
9111
m4_if([$1], [CXX],
 
9112
[case $host_os in
 
9113
interix[[3-9]]*)
 
9114
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
9115
  # hack all around it, let's just trust "g++" to DTRT.
 
9116
  _LT_TAGVAR(predep_objects,$1)=
 
9117
  _LT_TAGVAR(postdep_objects,$1)=
 
9118
  _LT_TAGVAR(postdeps,$1)=
 
9119
  ;;
 
9120
 
 
9121
linux*)
 
9122
  case `$CC -V 2>&1 | sed 5q` in
 
9123
  *Sun\ C*)
 
9124
    # Sun C++ 5.9
 
9125
 
 
9126
    # The more standards-conforming stlport4 library is
 
9127
    # incompatible with the Cstd library. Avoid specifying
 
9128
    # it if it's in CXXFLAGS. Ignore libCrun as
 
9129
    # -library=stlport4 depends on it.
 
9130
    case " $CXX $CXXFLAGS " in
 
9131
    *" -library=stlport4 "*)
 
9132
      solaris_use_stlport4=yes
 
9133
      ;;
 
9134
    esac
 
9135
 
 
9136
    if test "$solaris_use_stlport4" != yes; then
 
9137
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
9138
    fi
 
9139
    ;;
 
9140
  esac
 
9141
  ;;
 
9142
 
 
9143
solaris*)
 
9144
  case $cc_basename in
 
9145
  CC*)
 
9146
    # The more standards-conforming stlport4 library is
 
9147
    # incompatible with the Cstd library. Avoid specifying
 
9148
    # it if it's in CXXFLAGS. Ignore libCrun as
 
9149
    # -library=stlport4 depends on it.
 
9150
    case " $CXX $CXXFLAGS " in
 
9151
    *" -library=stlport4 "*)
 
9152
      solaris_use_stlport4=yes
 
9153
      ;;
 
9154
    esac
 
9155
 
 
9156
    # Adding this requires a known-good setup of shared libraries for
 
9157
    # Sun compiler versions before 5.6, else PIC objects from an old
 
9158
    # archive will be linked into the output, leading to subtle bugs.
 
9159
    if test "$solaris_use_stlport4" != yes; then
 
9160
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
9161
    fi
 
9162
    ;;
 
9163
  esac
 
9164
  ;;
 
9165
esac
 
9166
])
 
9167
 
 
9168
case " $_LT_TAGVAR(postdeps, $1) " in
 
9169
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
9170
esac
 
9171
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
9172
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
9173
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
9174
fi
 
9175
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
9176
    [The directories searched by this compiler when creating a shared library])
 
9177
_LT_TAGDECL([], [predep_objects], [1],
 
9178
    [Dependencies to place before and after the objects being linked to
 
9179
    create a shared library])
 
9180
_LT_TAGDECL([], [postdep_objects], [1])
 
9181
_LT_TAGDECL([], [predeps], [1])
 
9182
_LT_TAGDECL([], [postdeps], [1])
 
9183
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
9184
    [The library search path used internally by the compiler when linking
 
9185
    a shared library])
 
9186
])# _LT_SYS_HIDDEN_LIBDEPS
 
9187
 
 
9188
 
 
9189
# _LT_PROG_F77
 
9190
# ------------
 
9191
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
9192
# if there is no fortran compiler, we have our own version here.
 
9193
m4_defun([_LT_PROG_F77],
 
9194
[
 
9195
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
9196
AC_PROG_F77
 
9197
if test -z "$F77" || test "X$F77" = "Xno"; then
 
9198
  _lt_disable_F77=yes
 
9199
fi
 
9200
popdef([AC_MSG_ERROR])
 
9201
])# _LT_PROG_F77
 
9202
 
 
9203
dnl aclocal-1.4 backwards compatibility:
 
9204
dnl AC_DEFUN([_LT_PROG_F77], [])
 
9205
 
 
9206
 
 
9207
# _LT_LANG_F77_CONFIG([TAG])
 
9208
# --------------------------
 
9209
# Ensure that the configuration variables for a Fortran 77 compiler are
 
9210
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
9211
# to write the compiler configuration to `libtool'.
 
9212
m4_defun([_LT_LANG_F77_CONFIG],
 
9213
[AC_REQUIRE([_LT_PROG_F77])dnl
 
9214
AC_LANG_PUSH(Fortran 77)
 
9215
 
 
9216
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
9217
_LT_TAGVAR(allow_undefined_flag, $1)=
 
9218
_LT_TAGVAR(always_export_symbols, $1)=no
 
9219
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
9220
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
9221
_LT_TAGVAR(hardcode_direct, $1)=no
 
9222
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
9223
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
9224
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
9225
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
9226
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
9227
_LT_TAGVAR(hardcode_automatic, $1)=no
 
9228
_LT_TAGVAR(inherit_rpath, $1)=no
 
9229
_LT_TAGVAR(module_cmds, $1)=
 
9230
_LT_TAGVAR(module_expsym_cmds, $1)=
 
9231
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
9232
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9233
_LT_TAGVAR(no_undefined_flag, $1)=
 
9234
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
9235
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
9236
 
 
9237
# Source file extension for f77 test sources.
 
9238
ac_ext=f
 
9239
 
 
9240
# Object file extension for compiled f77 test sources.
 
9241
objext=o
 
9242
_LT_TAGVAR(objext, $1)=$objext
 
9243
 
 
9244
# No sense in running all these tests if we already determined that
 
9245
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
9246
# are currently assumed to apply to all compilers on this platform,
 
9247
# and will be corrupted by setting them based on a non-working compiler.
 
9248
if test "$_lt_disable_F77" != yes; then
 
9249
  # Code to be used in simple compile tests
 
9250
  lt_simple_compile_test_code="\
 
9251
      subroutine t
 
9252
      return
 
9253
      end
 
9254
"
 
9255
 
 
9256
  # Code to be used in simple link tests
 
9257
  lt_simple_link_test_code="\
 
9258
      program t
 
9259
      end
 
9260
"
 
9261
 
 
9262
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9263
  _LT_TAG_COMPILER
 
9264
 
 
9265
  # save warnings/boilerplate of simple test code
 
9266
  _LT_COMPILER_BOILERPLATE
 
9267
  _LT_LINKER_BOILERPLATE
 
9268
 
 
9269
  # Allow CC to be a program name with arguments.
 
9270
  lt_save_CC="$CC"
 
9271
  lt_save_GCC=$GCC
 
9272
  CC=${F77-"f77"}
 
9273
  compiler=$CC
 
9274
  _LT_TAGVAR(compiler, $1)=$CC
 
9275
  _LT_CC_BASENAME([$compiler])
 
9276
  GCC=$G77
 
9277
  if test -n "$compiler"; then
 
9278
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
9279
    AC_MSG_RESULT([$can_build_shared])
 
9280
 
 
9281
    AC_MSG_CHECKING([whether to build shared libraries])
 
9282
    test "$can_build_shared" = "no" && enable_shared=no
 
9283
 
 
9284
    # On AIX, shared libraries and static libraries use the same namespace, and
 
9285
    # are all built from PIC.
 
9286
    case $host_os in
 
9287
      aix3*)
 
9288
        test "$enable_shared" = yes && enable_static=no
 
9289
        if test -n "$RANLIB"; then
 
9290
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9291
          postinstall_cmds='$RANLIB $lib'
 
9292
        fi
 
9293
        ;;
 
9294
      aix[[4-9]]*)
 
9295
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9296
          test "$enable_shared" = yes && enable_static=no
 
9297
        fi
 
9298
        ;;
 
9299
    esac
 
9300
    AC_MSG_RESULT([$enable_shared])
 
9301
 
 
9302
    AC_MSG_CHECKING([whether to build static libraries])
 
9303
    # Make sure either enable_shared or enable_static is yes.
 
9304
    test "$enable_shared" = yes || enable_static=yes
 
9305
    AC_MSG_RESULT([$enable_static])
 
9306
 
 
9307
    _LT_TAGVAR(GCC, $1)="$G77"
 
9308
    _LT_TAGVAR(LD, $1)="$LD"
 
9309
 
 
9310
    ## CAVEAT EMPTOR:
 
9311
    ## There is no encapsulation within the following macros, do not change
 
9312
    ## the running order or otherwise move them around unless you know exactly
 
9313
    ## what you are doing...
 
9314
    _LT_COMPILER_PIC($1)
 
9315
    _LT_COMPILER_C_O($1)
 
9316
    _LT_COMPILER_FILE_LOCKS($1)
 
9317
    _LT_LINKER_SHLIBS($1)
 
9318
    _LT_SYS_DYNAMIC_LINKER($1)
 
9319
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
9320
 
 
9321
    _LT_CONFIG($1)
 
9322
  fi # test -n "$compiler"
 
9323
 
 
9324
  GCC=$lt_save_GCC
 
9325
  CC="$lt_save_CC"
 
9326
fi # test "$_lt_disable_F77" != yes
 
9327
 
 
9328
AC_LANG_POP
 
9329
])# _LT_LANG_F77_CONFIG
 
9330
 
 
9331
 
 
9332
# _LT_PROG_FC
 
9333
# -----------
 
9334
# Since AC_PROG_FC is broken, in that it returns the empty string
 
9335
# if there is no fortran compiler, we have our own version here.
 
9336
m4_defun([_LT_PROG_FC],
 
9337
[
 
9338
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
9339
AC_PROG_FC
 
9340
if test -z "$FC" || test "X$FC" = "Xno"; then
 
9341
  _lt_disable_FC=yes
 
9342
fi
 
9343
popdef([AC_MSG_ERROR])
 
9344
])# _LT_PROG_FC
 
9345
 
 
9346
dnl aclocal-1.4 backwards compatibility:
 
9347
dnl AC_DEFUN([_LT_PROG_FC], [])
 
9348
 
 
9349
 
 
9350
# _LT_LANG_FC_CONFIG([TAG])
 
9351
# -------------------------
 
9352
# Ensure that the configuration variables for a Fortran compiler are
 
9353
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
9354
# to write the compiler configuration to `libtool'.
 
9355
m4_defun([_LT_LANG_FC_CONFIG],
 
9356
[AC_REQUIRE([_LT_PROG_FC])dnl
 
9357
AC_LANG_PUSH(Fortran)
 
9358
 
 
9359
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
9360
_LT_TAGVAR(allow_undefined_flag, $1)=
 
9361
_LT_TAGVAR(always_export_symbols, $1)=no
 
9362
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
9363
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
9364
_LT_TAGVAR(hardcode_direct, $1)=no
 
9365
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
9366
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
9367
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
9368
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
9369
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
9370
_LT_TAGVAR(hardcode_automatic, $1)=no
 
9371
_LT_TAGVAR(inherit_rpath, $1)=no
 
9372
_LT_TAGVAR(module_cmds, $1)=
 
9373
_LT_TAGVAR(module_expsym_cmds, $1)=
 
9374
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
9375
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9376
_LT_TAGVAR(no_undefined_flag, $1)=
 
9377
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
9378
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
9379
 
 
9380
# Source file extension for fc test sources.
 
9381
ac_ext=${ac_fc_srcext-f}
 
9382
 
 
9383
# Object file extension for compiled fc test sources.
 
9384
objext=o
 
9385
_LT_TAGVAR(objext, $1)=$objext
 
9386
 
 
9387
# No sense in running all these tests if we already determined that
 
9388
# the FC compiler isn't working.  Some variables (like enable_shared)
 
9389
# are currently assumed to apply to all compilers on this platform,
 
9390
# and will be corrupted by setting them based on a non-working compiler.
 
9391
if test "$_lt_disable_FC" != yes; then
 
9392
  # Code to be used in simple compile tests
 
9393
  lt_simple_compile_test_code="\
 
9394
      subroutine t
 
9395
      return
 
9396
      end
 
9397
"
 
9398
 
 
9399
  # Code to be used in simple link tests
 
9400
  lt_simple_link_test_code="\
 
9401
      program t
 
9402
      end
 
9403
"
 
9404
 
 
9405
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9406
  _LT_TAG_COMPILER
 
9407
 
 
9408
  # save warnings/boilerplate of simple test code
 
9409
  _LT_COMPILER_BOILERPLATE
 
9410
  _LT_LINKER_BOILERPLATE
 
9411
 
 
9412
  # Allow CC to be a program name with arguments.
 
9413
  lt_save_CC="$CC"
 
9414
  lt_save_GCC=$GCC
 
9415
  CC=${FC-"f95"}
 
9416
  compiler=$CC
 
9417
  GCC=$ac_cv_fc_compiler_gnu
 
9418
 
 
9419
  _LT_TAGVAR(compiler, $1)=$CC
 
9420
  _LT_CC_BASENAME([$compiler])
 
9421
 
 
9422
  if test -n "$compiler"; then
 
9423
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
9424
    AC_MSG_RESULT([$can_build_shared])
 
9425
 
 
9426
    AC_MSG_CHECKING([whether to build shared libraries])
 
9427
    test "$can_build_shared" = "no" && enable_shared=no
 
9428
 
 
9429
    # On AIX, shared libraries and static libraries use the same namespace, and
 
9430
    # are all built from PIC.
 
9431
    case $host_os in
 
9432
      aix3*)
 
9433
        test "$enable_shared" = yes && enable_static=no
 
9434
        if test -n "$RANLIB"; then
 
9435
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9436
          postinstall_cmds='$RANLIB $lib'
 
9437
        fi
 
9438
        ;;
 
9439
      aix[[4-9]]*)
 
9440
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9441
          test "$enable_shared" = yes && enable_static=no
 
9442
        fi
 
9443
        ;;
 
9444
    esac
 
9445
    AC_MSG_RESULT([$enable_shared])
 
9446
 
 
9447
    AC_MSG_CHECKING([whether to build static libraries])
 
9448
    # Make sure either enable_shared or enable_static is yes.
 
9449
    test "$enable_shared" = yes || enable_static=yes
 
9450
    AC_MSG_RESULT([$enable_static])
 
9451
 
 
9452
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
9453
    _LT_TAGVAR(LD, $1)="$LD"
 
9454
 
 
9455
    ## CAVEAT EMPTOR:
 
9456
    ## There is no encapsulation within the following macros, do not change
 
9457
    ## the running order or otherwise move them around unless you know exactly
 
9458
    ## what you are doing...
 
9459
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
9460
    _LT_COMPILER_PIC($1)
 
9461
    _LT_COMPILER_C_O($1)
 
9462
    _LT_COMPILER_FILE_LOCKS($1)
 
9463
    _LT_LINKER_SHLIBS($1)
 
9464
    _LT_SYS_DYNAMIC_LINKER($1)
 
9465
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
9466
 
 
9467
    _LT_CONFIG($1)
 
9468
  fi # test -n "$compiler"
 
9469
 
 
9470
  GCC=$lt_save_GCC
 
9471
  CC="$lt_save_CC"
 
9472
fi # test "$_lt_disable_FC" != yes
 
9473
 
 
9474
AC_LANG_POP
 
9475
])# _LT_LANG_FC_CONFIG
 
9476
 
 
9477
 
 
9478
# _LT_LANG_GCJ_CONFIG([TAG])
 
9479
# --------------------------
 
9480
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
9481
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
9482
# to write the compiler configuration to `libtool'.
 
9483
m4_defun([_LT_LANG_GCJ_CONFIG],
 
9484
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
9485
AC_LANG_SAVE
 
9486
 
 
9487
# Source file extension for Java test sources.
 
9488
ac_ext=java
 
9489
 
 
9490
# Object file extension for compiled Java test sources.
 
9491
objext=o
 
9492
_LT_TAGVAR(objext, $1)=$objext
 
9493
 
 
9494
# Code to be used in simple compile tests
 
9495
lt_simple_compile_test_code="class foo {}"
 
9496
 
 
9497
# Code to be used in simple link tests
 
9498
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
9499
 
 
9500
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9501
_LT_TAG_COMPILER
 
9502
 
 
9503
# save warnings/boilerplate of simple test code
 
9504
_LT_COMPILER_BOILERPLATE
 
9505
_LT_LINKER_BOILERPLATE
 
9506
 
 
9507
# Allow CC to be a program name with arguments.
 
9508
lt_save_CC="$CC"
 
9509
lt_save_GCC=$GCC
 
9510
GCC=yes
 
9511
CC=${GCJ-"gcj"}
 
9512
compiler=$CC
 
9513
_LT_TAGVAR(compiler, $1)=$CC
 
9514
_LT_TAGVAR(LD, $1)="$LD"
 
9515
_LT_CC_BASENAME([$compiler])
 
9516
 
 
9517
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
9518
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
9519
 
 
9520
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9521
 
 
9522
if test -n "$compiler"; then
 
9523
  _LT_COMPILER_NO_RTTI($1)
 
9524
  _LT_COMPILER_PIC($1)
 
9525
  _LT_COMPILER_C_O($1)
 
9526
  _LT_COMPILER_FILE_LOCKS($1)
 
9527
  _LT_LINKER_SHLIBS($1)
 
9528
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
9529
 
 
9530
  _LT_CONFIG($1)
 
9531
fi
 
9532
 
 
9533
AC_LANG_RESTORE
 
9534
 
 
9535
GCC=$lt_save_GCC
 
9536
CC="$lt_save_CC"
 
9537
])# _LT_LANG_GCJ_CONFIG
 
9538
 
 
9539
 
 
9540
# _LT_LANG_RC_CONFIG([TAG])
 
9541
# -------------------------
 
9542
# Ensure that the configuration variables for the Windows resource compiler
 
9543
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
9544
# to write the compiler configuration to `libtool'.
 
9545
m4_defun([_LT_LANG_RC_CONFIG],
 
9546
[AC_REQUIRE([LT_PROG_RC])dnl
 
9547
AC_LANG_SAVE
 
9548
 
 
9549
# Source file extension for RC test sources.
 
9550
ac_ext=rc
 
9551
 
 
9552
# Object file extension for compiled RC test sources.
 
9553
objext=o
 
9554
_LT_TAGVAR(objext, $1)=$objext
 
9555
 
 
9556
# Code to be used in simple compile tests
 
9557
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
9558
 
 
9559
# Code to be used in simple link tests
 
9560
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
9561
 
 
9562
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9563
_LT_TAG_COMPILER
 
9564
 
 
9565
# save warnings/boilerplate of simple test code
 
9566
_LT_COMPILER_BOILERPLATE
 
9567
_LT_LINKER_BOILERPLATE
 
9568
 
 
9569
# Allow CC to be a program name with arguments.
 
9570
lt_save_CC="$CC"
 
9571
lt_save_GCC=$GCC
 
9572
GCC=
 
9573
CC=${RC-"windres"}
 
9574
compiler=$CC
 
9575
_LT_TAGVAR(compiler, $1)=$CC
 
9576
_LT_CC_BASENAME([$compiler])
 
9577
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
9578
 
 
9579
if test -n "$compiler"; then
 
9580
  :
 
9581
  _LT_CONFIG($1)
 
9582
fi
 
9583
 
 
9584
GCC=$lt_save_GCC
 
9585
AC_LANG_RESTORE
 
9586
CC="$lt_save_CC"
 
9587
])# _LT_LANG_RC_CONFIG
 
9588
 
 
9589
 
 
9590
# LT_PROG_GCJ
 
9591
# -----------
 
9592
AC_DEFUN([LT_PROG_GCJ],
 
9593
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
9594
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
9595
    [AC_CHECK_TOOL(GCJ, gcj,)
 
9596
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
9597
      AC_SUBST(GCJFLAGS)])])[]dnl
 
9598
])
 
9599
 
 
9600
# Old name:
 
9601
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
9602
dnl aclocal-1.4 backwards compatibility:
 
9603
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
9604
 
 
9605
 
 
9606
# LT_PROG_RC
 
9607
# ----------
 
9608
AC_DEFUN([LT_PROG_RC],
 
9609
[AC_CHECK_TOOL(RC, windres,)
 
9610
])
 
9611
 
 
9612
# Old name:
 
9613
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
9614
dnl aclocal-1.4 backwards compatibility:
 
9615
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
9616
 
 
9617
 
 
9618
# _LT_DECL_EGREP
 
9619
# --------------
 
9620
# If we don't have a new enough Autoconf to choose the best grep
 
9621
# available, choose the one first in the user's PATH.
 
9622
m4_defun([_LT_DECL_EGREP],
 
9623
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
9624
AC_REQUIRE([AC_PROG_FGREP])dnl
 
9625
test -z "$GREP" && GREP=grep
 
9626
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
9627
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
9628
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
9629
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
9630
AC_SUBST([GREP])
 
9631
])
 
9632
 
 
9633
 
 
9634
# _LT_DECL_OBJDUMP
 
9635
# --------------
 
9636
# If we don't have a new enough Autoconf to choose the best objdump
 
9637
# available, choose the one first in the user's PATH.
 
9638
m4_defun([_LT_DECL_OBJDUMP],
 
9639
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
9640
test -z "$OBJDUMP" && OBJDUMP=objdump
 
9641
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
9642
AC_SUBST([OBJDUMP])
 
9643
])
 
9644
 
 
9645
 
 
9646
# _LT_DECL_SED
 
9647
# ------------
 
9648
# Check for a fully-functional sed program, that truncates
 
9649
# as few characters as possible.  Prefer GNU sed if found.
 
9650
m4_defun([_LT_DECL_SED],
 
9651
[AC_PROG_SED
 
9652
test -z "$SED" && SED=sed
 
9653
Xsed="$SED -e 1s/^X//"
 
9654
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
9655
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
9656
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
9657
])# _LT_DECL_SED
 
9658
 
 
9659
m4_ifndef([AC_PROG_SED], [
8938
9660
# NOTE: This macro has been submitted for inclusion into   #
8939
9661
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8940
9662
#  a released version of Autoconf we should remove this    #
8941
9663
#  macro and use it instead.                               #
8942
 
# LT_AC_PROG_SED
8943
 
# --------------
8944
 
# Check for a fully-functional sed program, that truncates
8945
 
# as few characters as possible.  Prefer GNU sed if found.
8946
 
AC_DEFUN([LT_AC_PROG_SED],
 
9664
 
 
9665
m4_defun([AC_PROG_SED],
8947
9666
[AC_MSG_CHECKING([for a sed that does not truncate output])
8948
9667
AC_CACHE_VAL(lt_cv_path_SED,
8949
9668
[# Loop through the user's path and test for sed and gsed.
8955
9674
  test -z "$as_dir" && as_dir=.
8956
9675
  for lt_ac_prog in sed gsed; do
8957
9676
    for ac_exec_ext in '' $ac_executable_extensions; do
8958
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
9677
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8959
9678
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8960
9679
      fi
8961
9680
    done
8996
9715
SED=$lt_cv_path_SED
8997
9716
AC_SUBST([SED])
8998
9717
AC_MSG_RESULT([$SED])
 
9718
])#AC_PROG_SED
 
9719
])#m4_ifndef
 
9720
 
 
9721
# Old name:
 
9722
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
9723
dnl aclocal-1.4 backwards compatibility:
 
9724
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
9725
 
 
9726
 
 
9727
# _LT_CHECK_SHELL_FEATURES
 
9728
# ------------------------
 
9729
# Find out whether the shell is Bourne or XSI compatible,
 
9730
# or has some other useful features.
 
9731
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
9732
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
9733
# Try some XSI features
 
9734
xsi_shell=no
 
9735
( _lt_dummy="a/b/c"
 
9736
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
9737
      = c,a/b,, \
 
9738
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
9739
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
9740
  && xsi_shell=yes
 
9741
AC_MSG_RESULT([$xsi_shell])
 
9742
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
9743
 
 
9744
AC_MSG_CHECKING([whether the shell understands "+="])
 
9745
lt_shell_append=no
 
9746
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
9747
    >/dev/null 2>&1 \
 
9748
  && lt_shell_append=yes
 
9749
AC_MSG_RESULT([$lt_shell_append])
 
9750
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
9751
 
 
9752
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
9753
  lt_unset=unset
 
9754
else
 
9755
  lt_unset=false
 
9756
fi
 
9757
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
9758
 
 
9759
# test EBCDIC or ASCII
 
9760
case `echo X|tr X '\101'` in
 
9761
 A) # ASCII based system
 
9762
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
9763
  lt_SP2NL='tr \040 \012'
 
9764
  lt_NL2SP='tr \015\012 \040\040'
 
9765
  ;;
 
9766
 *) # EBCDIC based system
 
9767
  lt_SP2NL='tr \100 \n'
 
9768
  lt_NL2SP='tr \r\n \100\100'
 
9769
  ;;
 
9770
esac
 
9771
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
9772
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
9773
])# _LT_CHECK_SHELL_FEATURES
 
9774
 
 
9775
 
 
9776
# _LT_PROG_XSI_SHELLFNS
 
9777
# ---------------------
 
9778
# Bourne and XSI compatible variants of some useful shell functions.
 
9779
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
9780
[case $xsi_shell in
 
9781
  yes)
 
9782
    cat << \_LT_EOF >> "$cfgfile"
 
9783
 
 
9784
# func_dirname file append nondir_replacement
 
9785
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
9786
# otherwise set result to NONDIR_REPLACEMENT.
 
9787
func_dirname ()
 
9788
{
 
9789
  case ${1} in
 
9790
    */*) func_dirname_result="${1%/*}${2}" ;;
 
9791
    *  ) func_dirname_result="${3}" ;;
 
9792
  esac
 
9793
}
 
9794
 
 
9795
# func_basename file
 
9796
func_basename ()
 
9797
{
 
9798
  func_basename_result="${1##*/}"
 
9799
}
 
9800
 
 
9801
# func_dirname_and_basename file append nondir_replacement
 
9802
# perform func_basename and func_dirname in a single function
 
9803
# call:
 
9804
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
9805
#             add APPEND to the result, otherwise set result
 
9806
#             to NONDIR_REPLACEMENT.
 
9807
#             value returned in "$func_dirname_result"
 
9808
#   basename: Compute filename of FILE.
 
9809
#             value retuned in "$func_basename_result"
 
9810
# Implementation must be kept synchronized with func_dirname
 
9811
# and func_basename. For efficiency, we do not delegate to
 
9812
# those functions but instead duplicate the functionality here.
 
9813
func_dirname_and_basename ()
 
9814
{
 
9815
  case ${1} in
 
9816
    */*) func_dirname_result="${1%/*}${2}" ;;
 
9817
    *  ) func_dirname_result="${3}" ;;
 
9818
  esac
 
9819
  func_basename_result="${1##*/}"
 
9820
}
 
9821
 
 
9822
# func_stripname prefix suffix name
 
9823
# strip PREFIX and SUFFIX off of NAME.
 
9824
# PREFIX and SUFFIX must not contain globbing or regex special
 
9825
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
9826
# dot (in which case that matches only a dot).
 
9827
func_stripname ()
 
9828
{
 
9829
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
9830
  # positional parameters, so assign one to ordinary parameter first.
 
9831
  func_stripname_result=${3}
 
9832
  func_stripname_result=${func_stripname_result#"${1}"}
 
9833
  func_stripname_result=${func_stripname_result%"${2}"}
 
9834
}
 
9835
 
 
9836
# func_opt_split
 
9837
func_opt_split ()
 
9838
{
 
9839
  func_opt_split_opt=${1%%=*}
 
9840
  func_opt_split_arg=${1#*=}
 
9841
}
 
9842
 
 
9843
# func_lo2o object
 
9844
func_lo2o ()
 
9845
{
 
9846
  case ${1} in
 
9847
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
9848
    *)    func_lo2o_result=${1} ;;
 
9849
  esac
 
9850
}
 
9851
 
 
9852
# func_xform libobj-or-source
 
9853
func_xform ()
 
9854
{
 
9855
  func_xform_result=${1%.*}.lo
 
9856
}
 
9857
 
 
9858
# func_arith arithmetic-term...
 
9859
func_arith ()
 
9860
{
 
9861
  func_arith_result=$(( $[*] ))
 
9862
}
 
9863
 
 
9864
# func_len string
 
9865
# STRING may not start with a hyphen.
 
9866
func_len ()
 
9867
{
 
9868
  func_len_result=${#1}
 
9869
}
 
9870
 
 
9871
_LT_EOF
 
9872
    ;;
 
9873
  *) # Bourne compatible functions.
 
9874
    cat << \_LT_EOF >> "$cfgfile"
 
9875
 
 
9876
# func_dirname file append nondir_replacement
 
9877
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
9878
# otherwise set result to NONDIR_REPLACEMENT.
 
9879
func_dirname ()
 
9880
{
 
9881
  # Extract subdirectory from the argument.
 
9882
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
9883
  if test "X$func_dirname_result" = "X${1}"; then
 
9884
    func_dirname_result="${3}"
 
9885
  else
 
9886
    func_dirname_result="$func_dirname_result${2}"
 
9887
  fi
 
9888
}
 
9889
 
 
9890
# func_basename file
 
9891
func_basename ()
 
9892
{
 
9893
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
9894
}
 
9895
 
 
9896
dnl func_dirname_and_basename
 
9897
dnl A portable version of this function is already defined in general.m4sh
 
9898
dnl so there is no need for it here.
 
9899
 
 
9900
# func_stripname prefix suffix name
 
9901
# strip PREFIX and SUFFIX off of NAME.
 
9902
# PREFIX and SUFFIX must not contain globbing or regex special
 
9903
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
9904
# dot (in which case that matches only a dot).
 
9905
# func_strip_suffix prefix name
 
9906
func_stripname ()
 
9907
{
 
9908
  case ${2} in
 
9909
    .*) func_stripname_result=`$ECHO "X${3}" \
 
9910
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
9911
    *)  func_stripname_result=`$ECHO "X${3}" \
 
9912
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
9913
  esac
 
9914
}
 
9915
 
 
9916
# sed scripts:
 
9917
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
9918
my_sed_long_arg='1s/^-[[^=]]*=//'
 
9919
 
 
9920
# func_opt_split
 
9921
func_opt_split ()
 
9922
{
 
9923
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
9924
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
9925
}
 
9926
 
 
9927
# func_lo2o object
 
9928
func_lo2o ()
 
9929
{
 
9930
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
9931
}
 
9932
 
 
9933
# func_xform libobj-or-source
 
9934
func_xform ()
 
9935
{
 
9936
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
9937
}
 
9938
 
 
9939
# func_arith arithmetic-term...
 
9940
func_arith ()
 
9941
{
 
9942
  func_arith_result=`expr "$[@]"`
 
9943
}
 
9944
 
 
9945
# func_len string
 
9946
# STRING may not start with a hyphen.
 
9947
func_len ()
 
9948
{
 
9949
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
9950
}
 
9951
 
 
9952
_LT_EOF
 
9953
esac
 
9954
 
 
9955
case $lt_shell_append in
 
9956
  yes)
 
9957
    cat << \_LT_EOF >> "$cfgfile"
 
9958
 
 
9959
# func_append var value
 
9960
# Append VALUE to the end of shell variable VAR.
 
9961
func_append ()
 
9962
{
 
9963
  eval "$[1]+=\$[2]"
 
9964
}
 
9965
_LT_EOF
 
9966
    ;;
 
9967
  *)
 
9968
    cat << \_LT_EOF >> "$cfgfile"
 
9969
 
 
9970
# func_append var value
 
9971
# Append VALUE to the end of shell variable VAR.
 
9972
func_append ()
 
9973
{
 
9974
  eval "$[1]=\$$[1]\$[2]"
 
9975
}
 
9976
 
 
9977
_LT_EOF
 
9978
    ;;
 
9979
  esac
8999
9980
])
9000
9981
 
9001
 
# lock.m4 serial 6 (gettext-0.16)
9002
 
dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
 
9982
# lock.m4 serial 7 (gettext-0.17)
 
9983
dnl Copyright (C) 2005-2007 Free Software Foundation, Inc.
9003
9984
dnl This file is free software; the Free Software Foundation
9004
9985
dnl gives unlimited permission to copy and/or distribute it,
9005
9986
dnl with or without modifications, as long as this notice is preserved.
9035
10016
  AC_BEFORE([$0], [gl_ARGP])dnl
9036
10017
 
9037
10018
  AC_REQUIRE([AC_CANONICAL_HOST])
9038
 
  AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems
 
10019
  dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems.
 
10020
  dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
 
10021
  dnl AC_GNU_SOURCE.
 
10022
  m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
 
10023
    [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
 
10024
    [AC_REQUIRE([AC_GNU_SOURCE])])
9039
10025
  dnl Check for multithreading.
9040
10026
  AC_ARG_ENABLE(threads,
9041
10027
AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])
9310
10296
dnl   0.5 if the first test terminates OK but the second one loops endlessly,
9311
10297
dnl   0.0 if the first test already loops endlessly.
9312
10298
 
9313
 
# longdouble.m4 serial 2 (gettext-0.15)
9314
 
dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.
9315
 
dnl This file is free software; the Free Software Foundation
9316
 
dnl gives unlimited permission to copy and/or distribute it,
9317
 
dnl with or without modifications, as long as this notice is preserved.
9318
 
 
9319
 
dnl From Bruno Haible.
9320
 
dnl Test whether the compiler supports the 'long double' type.
9321
 
dnl Prerequisite: AC_PROG_CC
9322
 
 
9323
 
dnl This file is only needed in autoconf <= 2.59.  Newer versions of autoconf
9324
 
dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics.
9325
 
 
9326
 
AC_DEFUN([gt_TYPE_LONGDOUBLE],
9327
 
[
9328
 
  AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
9329
 
    [if test "$GCC" = yes; then
9330
 
       gt_cv_c_long_double=yes
9331
 
     else
9332
 
       AC_TRY_COMPILE([
9333
 
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
9334
 
         long double foo = 0.0;
9335
 
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
9336
 
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
9337
 
         ], ,
9338
 
         gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
9339
 
     fi])
9340
 
  if test $gt_cv_c_long_double = yes; then
9341
 
    AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
9342
 
  fi
9343
 
])
9344
 
 
9345
 
# longlong.m4 serial 8
9346
 
dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.
 
10299
# longlong.m4 serial 13
 
10300
dnl Copyright (C) 1999-2007 Free Software Foundation, Inc.
9347
10301
dnl This file is free software; the Free Software Foundation
9348
10302
dnl gives unlimited permission to copy and/or distribute it,
9349
10303
dnl with or without modifications, as long as this notice is preserved.
9351
10305
dnl From Paul Eggert.
9352
10306
 
9353
10307
# Define HAVE_LONG_LONG_INT if 'long long int' works.
9354
 
# This fixes a bug in Autoconf 2.60, but can be removed once we
9355
 
# assume 2.61 everywhere.
 
10308
# This fixes a bug in Autoconf 2.61, but can be removed once we
 
10309
# assume 2.62 everywhere.
9356
10310
 
9357
10311
# Note: If the type 'long long int' exists but is only 32 bits large
9358
 
# (as on some very old compilers), AC_TYPE_LONG_LONG_INT will not be
 
10312
# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
9359
10313
# defined. In this case you can treat 'long long int' like 'long int'.
9360
10314
 
9361
10315
AC_DEFUN([AC_TYPE_LONG_LONG_INT],
9362
10316
[
9363
10317
  AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
9364
10318
    [AC_LINK_IFELSE(
9365
 
       [AC_LANG_PROGRAM(
9366
 
          [[long long int ll = 9223372036854775807ll;
9367
 
            long long int nll = -9223372036854775807LL;
9368
 
            typedef int a[((-9223372036854775807LL < 0
9369
 
                            && 0 < 9223372036854775807ll)
9370
 
                           ? 1 : -1)];
9371
 
            int i = 63;]],
9372
 
          [[long long int llmax = 9223372036854775807ll;
9373
 
            return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9374
 
                    | (llmax / ll) | (llmax % ll));]])],
9375
 
       [ac_cv_type_long_long_int=yes],
 
10319
       [_AC_TYPE_LONG_LONG_SNIPPET],
 
10320
       [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
 
10321
        dnl If cross compiling, assume the bug isn't important, since
 
10322
        dnl nobody cross compiles for this platform as far as we know.
 
10323
        AC_RUN_IFELSE(
 
10324
          [AC_LANG_PROGRAM(
 
10325
             [[@%:@include <limits.h>
 
10326
               @%:@ifndef LLONG_MAX
 
10327
               @%:@ define HALF \
 
10328
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
10329
               @%:@ define LLONG_MAX (HALF - 1 + HALF)
 
10330
               @%:@endif]],
 
10331
             [[long long int n = 1;
 
10332
               int i;
 
10333
               for (i = 0; ; i++)
 
10334
                 {
 
10335
                   long long int m = n << i;
 
10336
                   if (m >> i != n)
 
10337
                     return 1;
 
10338
                   if (LLONG_MAX / 2 < m)
 
10339
                     break;
 
10340
                 }
 
10341
               return 0;]])],
 
10342
          [ac_cv_type_long_long_int=yes],
 
10343
          [ac_cv_type_long_long_int=no],
 
10344
          [ac_cv_type_long_long_int=yes])],
9376
10345
       [ac_cv_type_long_long_int=no])])
9377
10346
  if test $ac_cv_type_long_long_int = yes; then
9378
10347
    AC_DEFINE([HAVE_LONG_LONG_INT], 1,
9380
10349
  fi
9381
10350
])
9382
10351
 
9383
 
# This macro is obsolescent and should go away soon.
9384
 
AC_DEFUN([gl_AC_TYPE_LONG_LONG],
 
10352
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
 
10353
# This fixes a bug in Autoconf 2.61, but can be removed once we
 
10354
# assume 2.62 everywhere.
 
10355
 
 
10356
# Note: If the type 'unsigned long long int' exists but is only 32 bits
 
10357
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
 
10358
# will not be defined. In this case you can treat 'unsigned long long int'
 
10359
# like 'unsigned long int'.
 
10360
 
 
10361
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
9385
10362
[
9386
 
  AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
9387
 
  ac_cv_type_long_long=$ac_cv_type_long_long_int
9388
 
  if test $ac_cv_type_long_long = yes; then
9389
 
    AC_DEFINE(HAVE_LONG_LONG, 1,
9390
 
      [Define if you have the 'long long' type.])
 
10363
  AC_CACHE_CHECK([for unsigned long long int],
 
10364
    [ac_cv_type_unsigned_long_long_int],
 
10365
    [AC_LINK_IFELSE(
 
10366
       [_AC_TYPE_LONG_LONG_SNIPPET],
 
10367
       [ac_cv_type_unsigned_long_long_int=yes],
 
10368
       [ac_cv_type_unsigned_long_long_int=no])])
 
10369
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
10370
    AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
 
10371
      [Define to 1 if the system has the type `unsigned long long int'.])
9391
10372
  fi
9392
10373
])
9393
10374
 
 
10375
# Expands to a C program that can be used to test for simultaneous support
 
10376
# of 'long long' and 'unsigned long long'. We don't want to say that
 
10377
# 'long long' is available if 'unsigned long long' is not, or vice versa,
 
10378
# because too many programs rely on the symmetry between signed and unsigned
 
10379
# integer types (excluding 'bool').
 
10380
AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
 
10381
[
 
10382
  AC_LANG_PROGRAM(
 
10383
    [[/* Test preprocessor.  */
 
10384
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
10385
        error in preprocessor;
 
10386
      #endif
 
10387
      #if ! (18446744073709551615ULL <= -1ull)
 
10388
        error in preprocessor;
 
10389
      #endif
 
10390
      /* Test literals.  */
 
10391
      long long int ll = 9223372036854775807ll;
 
10392
      long long int nll = -9223372036854775807LL;
 
10393
      unsigned long long int ull = 18446744073709551615ULL;
 
10394
      /* Test constant expressions.   */
 
10395
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
10396
                     ? 1 : -1)];
 
10397
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
10398
                     ? 1 : -1)];
 
10399
      int i = 63;]],
 
10400
    [[/* Test availability of runtime routines for shift and division.  */
 
10401
      long long int llmax = 9223372036854775807ll;
 
10402
      unsigned long long int ullmax = 18446744073709551615ull;
 
10403
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
10404
              | (llmax / ll) | (llmax % ll)
 
10405
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
10406
              | (ullmax / ull) | (ullmax % ull));]])
 
10407
])
 
10408
 
 
10409
# Helper functions for option handling.                    -*- Autoconf -*-
 
10410
#
 
10411
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
10412
#   Written by Gary V. Vaughan, 2004
 
10413
#
 
10414
# This file is free software; the Free Software Foundation gives
 
10415
# unlimited permission to copy and/or distribute it, with or without
 
10416
# modifications, as long as this notice is preserved.
 
10417
 
 
10418
# serial 6 ltoptions.m4
 
10419
 
 
10420
# This is to help aclocal find these macros, as it can't see m4_define.
 
10421
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
10422
 
 
10423
 
 
10424
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
10425
# ------------------------------------------
 
10426
m4_define([_LT_MANGLE_OPTION],
 
10427
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
10428
 
 
10429
 
 
10430
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
10431
# ---------------------------------------
 
10432
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
10433
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
10434
# saved as a flag.
 
10435
m4_define([_LT_SET_OPTION],
 
10436
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
10437
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
10438
        _LT_MANGLE_DEFUN([$1], [$2]),
 
10439
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
10440
])
 
10441
 
 
10442
 
 
10443
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
10444
# ------------------------------------------------------------
 
10445
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
10446
m4_define([_LT_IF_OPTION],
 
10447
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
10448
 
 
10449
 
 
10450
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
10451
# -------------------------------------------------------
 
10452
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
10453
# are set.
 
10454
m4_define([_LT_UNLESS_OPTIONS],
 
10455
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
10456
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
10457
                      [m4_define([$0_found])])])[]dnl
 
10458
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
10459
])[]dnl
 
10460
])
 
10461
 
 
10462
 
 
10463
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
10464
# ----------------------------------------
 
10465
# OPTION-LIST is a space-separated list of Libtool options associated
 
10466
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
10467
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
10468
# the unknown option and exit.
 
10469
m4_defun([_LT_SET_OPTIONS],
 
10470
[# Set options
 
10471
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
10472
    [_LT_SET_OPTION([$1], _LT_Option)])
 
10473
 
 
10474
m4_if([$1],[LT_INIT],[
 
10475
  dnl
 
10476
  dnl Simply set some default values (i.e off) if boolean options were not
 
10477
  dnl specified:
 
10478
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
10479
  ])
 
10480
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
10481
  ])
 
10482
  dnl
 
10483
  dnl If no reference was made to various pairs of opposing options, then
 
10484
  dnl we run the default mode handler for the pair.  For example, if neither
 
10485
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
10486
  dnl archives by default:
 
10487
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
10488
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
10489
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
10490
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
10491
                   [_LT_ENABLE_FAST_INSTALL])
 
10492
  ])
 
10493
])# _LT_SET_OPTIONS
 
10494
 
 
10495
 
 
10496
 
 
10497
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
10498
# -----------------------------------------
 
10499
m4_define([_LT_MANGLE_DEFUN],
 
10500
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
10501
 
 
10502
 
 
10503
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
10504
# -----------------------------------------------
 
10505
m4_define([LT_OPTION_DEFINE],
 
10506
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
10507
])# LT_OPTION_DEFINE
 
10508
 
 
10509
 
 
10510
# dlopen
 
10511
# ------
 
10512
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
10513
])
 
10514
 
 
10515
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
10516
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
10517
AC_DIAGNOSE([obsolete],
 
10518
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
10519
put the `dlopen' option into LT_INIT's first parameter.])
 
10520
])
 
10521
 
 
10522
dnl aclocal-1.4 backwards compatibility:
 
10523
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
10524
 
 
10525
 
 
10526
# win32-dll
 
10527
# ---------
 
10528
# Declare package support for building win32 dll's.
 
10529
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
10530
[enable_win32_dll=yes
 
10531
 
 
10532
case $host in
 
10533
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
10534
  AC_CHECK_TOOL(AS, as, false)
 
10535
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
10536
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
10537
  ;;
 
10538
esac
 
10539
 
 
10540
test -z "$AS" && AS=as
 
10541
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
10542
 
 
10543
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
10544
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
10545
 
 
10546
test -z "$OBJDUMP" && OBJDUMP=objdump
 
10547
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
10548
])# win32-dll
 
10549
 
 
10550
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
10551
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
10552
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
10553
AC_DIAGNOSE([obsolete],
 
10554
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
10555
put the `win32-dll' option into LT_INIT's first parameter.])
 
10556
])
 
10557
 
 
10558
dnl aclocal-1.4 backwards compatibility:
 
10559
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
10560
 
 
10561
 
 
10562
# _LT_ENABLE_SHARED([DEFAULT])
 
10563
# ----------------------------
 
10564
# implement the --enable-shared flag, and supports the `shared' and
 
10565
# `disable-shared' LT_INIT options.
 
10566
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
10567
m4_define([_LT_ENABLE_SHARED],
 
10568
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
10569
AC_ARG_ENABLE([shared],
 
10570
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
10571
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
10572
    [p=${PACKAGE-default}
 
10573
    case $enableval in
 
10574
    yes) enable_shared=yes ;;
 
10575
    no) enable_shared=no ;;
 
10576
    *)
 
10577
      enable_shared=no
 
10578
      # Look at the argument we got.  We use all the common list separators.
 
10579
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10580
      for pkg in $enableval; do
 
10581
        IFS="$lt_save_ifs"
 
10582
        if test "X$pkg" = "X$p"; then
 
10583
          enable_shared=yes
 
10584
        fi
 
10585
      done
 
10586
      IFS="$lt_save_ifs"
 
10587
      ;;
 
10588
    esac],
 
10589
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
10590
 
 
10591
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
10592
        [Whether or not to build shared libraries])
 
10593
])# _LT_ENABLE_SHARED
 
10594
 
 
10595
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
10596
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
10597
 
 
10598
# Old names:
 
10599
AC_DEFUN([AC_ENABLE_SHARED],
 
10600
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
10601
])
 
10602
 
 
10603
AC_DEFUN([AC_DISABLE_SHARED],
 
10604
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
10605
])
 
10606
 
 
10607
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
10608
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
10609
 
 
10610
dnl aclocal-1.4 backwards compatibility:
 
10611
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
10612
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
10613
 
 
10614
 
 
10615
 
 
10616
# _LT_ENABLE_STATIC([DEFAULT])
 
10617
# ----------------------------
 
10618
# implement the --enable-static flag, and support the `static' and
 
10619
# `disable-static' LT_INIT options.
 
10620
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
10621
m4_define([_LT_ENABLE_STATIC],
 
10622
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
10623
AC_ARG_ENABLE([static],
 
10624
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
10625
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
10626
    [p=${PACKAGE-default}
 
10627
    case $enableval in
 
10628
    yes) enable_static=yes ;;
 
10629
    no) enable_static=no ;;
 
10630
    *)
 
10631
     enable_static=no
 
10632
      # Look at the argument we got.  We use all the common list separators.
 
10633
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10634
      for pkg in $enableval; do
 
10635
        IFS="$lt_save_ifs"
 
10636
        if test "X$pkg" = "X$p"; then
 
10637
          enable_static=yes
 
10638
        fi
 
10639
      done
 
10640
      IFS="$lt_save_ifs"
 
10641
      ;;
 
10642
    esac],
 
10643
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
10644
 
 
10645
    _LT_DECL([build_old_libs], [enable_static], [0],
 
10646
        [Whether or not to build static libraries])
 
10647
])# _LT_ENABLE_STATIC
 
10648
 
 
10649
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
10650
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
10651
 
 
10652
# Old names:
 
10653
AC_DEFUN([AC_ENABLE_STATIC],
 
10654
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
10655
])
 
10656
 
 
10657
AC_DEFUN([AC_DISABLE_STATIC],
 
10658
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
10659
])
 
10660
 
 
10661
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
10662
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
10663
 
 
10664
dnl aclocal-1.4 backwards compatibility:
 
10665
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
10666
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
10667
 
 
10668
 
 
10669
 
 
10670
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
10671
# ----------------------------------
 
10672
# implement the --enable-fast-install flag, and support the `fast-install'
 
10673
# and `disable-fast-install' LT_INIT options.
 
10674
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
10675
m4_define([_LT_ENABLE_FAST_INSTALL],
 
10676
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
10677
AC_ARG_ENABLE([fast-install],
 
10678
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
10679
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
10680
    [p=${PACKAGE-default}
 
10681
    case $enableval in
 
10682
    yes) enable_fast_install=yes ;;
 
10683
    no) enable_fast_install=no ;;
 
10684
    *)
 
10685
      enable_fast_install=no
 
10686
      # Look at the argument we got.  We use all the common list separators.
 
10687
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10688
      for pkg in $enableval; do
 
10689
        IFS="$lt_save_ifs"
 
10690
        if test "X$pkg" = "X$p"; then
 
10691
          enable_fast_install=yes
 
10692
        fi
 
10693
      done
 
10694
      IFS="$lt_save_ifs"
 
10695
      ;;
 
10696
    esac],
 
10697
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
10698
 
 
10699
_LT_DECL([fast_install], [enable_fast_install], [0],
 
10700
         [Whether or not to optimize for fast installation])dnl
 
10701
])# _LT_ENABLE_FAST_INSTALL
 
10702
 
 
10703
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
10704
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
10705
 
 
10706
# Old names:
 
10707
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
10708
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
10709
AC_DIAGNOSE([obsolete],
 
10710
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
10711
the `fast-install' option into LT_INIT's first parameter.])
 
10712
])
 
10713
 
 
10714
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
10715
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
10716
AC_DIAGNOSE([obsolete],
 
10717
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
10718
the `disable-fast-install' option into LT_INIT's first parameter.])
 
10719
])
 
10720
 
 
10721
dnl aclocal-1.4 backwards compatibility:
 
10722
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
10723
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
10724
 
 
10725
 
 
10726
# _LT_WITH_PIC([MODE])
 
10727
# --------------------
 
10728
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
10729
# LT_INIT options.
 
10730
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
10731
m4_define([_LT_WITH_PIC],
 
10732
[AC_ARG_WITH([pic],
 
10733
    [AS_HELP_STRING([--with-pic],
 
10734
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
10735
    [pic_mode="$withval"],
 
10736
    [pic_mode=default])
 
10737
 
 
10738
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
10739
 
 
10740
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
10741
])# _LT_WITH_PIC
 
10742
 
 
10743
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
10744
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
10745
 
 
10746
# Old name:
 
10747
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
10748
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
10749
AC_DIAGNOSE([obsolete],
 
10750
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
10751
put the `pic-only' option into LT_INIT's first parameter.])
 
10752
])
 
10753
 
 
10754
dnl aclocal-1.4 backwards compatibility:
 
10755
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
10756
 
 
10757
 
 
10758
m4_define([_LTDL_MODE], [])
 
10759
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
10760
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
10761
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
10762
                 [m4_define([_LTDL_MODE], [recursive])])
 
10763
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
10764
                 [m4_define([_LTDL_MODE], [subproject])])
 
10765
 
 
10766
m4_define([_LTDL_TYPE], [])
 
10767
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
10768
                 [m4_define([_LTDL_TYPE], [installable])])
 
10769
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
10770
                 [m4_define([_LTDL_TYPE], [convenience])])
 
10771
 
 
10772
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
10773
#
 
10774
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
10775
# Written by Gary V. Vaughan, 2004
 
10776
#
 
10777
# This file is free software; the Free Software Foundation gives
 
10778
# unlimited permission to copy and/or distribute it, with or without
 
10779
# modifications, as long as this notice is preserved.
 
10780
 
 
10781
# serial 6 ltsugar.m4
 
10782
 
 
10783
# This is to help aclocal find these macros, as it can't see m4_define.
 
10784
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
10785
 
 
10786
 
 
10787
# lt_join(SEP, ARG1, [ARG2...])
 
10788
# -----------------------------
 
10789
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
10790
# associated separator.
 
10791
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
10792
# versions in m4sugar had bugs.
 
10793
m4_define([lt_join],
 
10794
[m4_if([$#], [1], [],
 
10795
       [$#], [2], [[$2]],
 
10796
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
10797
m4_define([_lt_join],
 
10798
[m4_if([$#$2], [2], [],
 
10799
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
10800
 
 
10801
 
 
10802
# lt_car(LIST)
 
10803
# lt_cdr(LIST)
 
10804
# ------------
 
10805
# Manipulate m4 lists.
 
10806
# These macros are necessary as long as will still need to support
 
10807
# Autoconf-2.59 which quotes differently.
 
10808
m4_define([lt_car], [[$1]])
 
10809
m4_define([lt_cdr],
 
10810
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
10811
       [$#], 1, [],
 
10812
       [m4_dquote(m4_shift($@))])])
 
10813
m4_define([lt_unquote], $1)
 
10814
 
 
10815
 
 
10816
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
10817
# ------------------------------------------
 
10818
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
10819
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
10820
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
10821
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
10822
# than defined and empty).
 
10823
#
 
10824
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
10825
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
10826
m4_define([lt_append],
 
10827
[m4_define([$1],
 
10828
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
10829
 
 
10830
 
 
10831
 
 
10832
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
10833
# ----------------------------------------------------------
 
10834
# Produce a SEP delimited list of all paired combinations of elements of
 
10835
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
10836
# has the form PREFIXmINFIXSUFFIXn.
 
10837
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
10838
m4_define([lt_combine],
 
10839
[m4_if(m4_eval([$# > 3]), [1],
 
10840
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
10841
[[m4_foreach([_Lt_prefix], [$2],
 
10842
             [m4_foreach([_Lt_suffix],
 
10843
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
10844
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
10845
 
 
10846
 
 
10847
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
10848
# -----------------------------------------------------------------------
 
10849
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
10850
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
10851
m4_define([lt_if_append_uniq],
 
10852
[m4_ifdef([$1],
 
10853
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
10854
                 [lt_append([$1], [$2], [$3])$4],
 
10855
                 [$5])],
 
10856
          [lt_append([$1], [$2], [$3])$4])])
 
10857
 
 
10858
 
 
10859
# lt_dict_add(DICT, KEY, VALUE)
 
10860
# -----------------------------
 
10861
m4_define([lt_dict_add],
 
10862
[m4_define([$1($2)], [$3])])
 
10863
 
 
10864
 
 
10865
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
10866
# --------------------------------------------
 
10867
m4_define([lt_dict_add_subkey],
 
10868
[m4_define([$1($2:$3)], [$4])])
 
10869
 
 
10870
 
 
10871
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
10872
# ----------------------------------
 
10873
m4_define([lt_dict_fetch],
 
10874
[m4_ifval([$3],
 
10875
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
10876
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
10877
 
 
10878
 
 
10879
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
10880
# -----------------------------------------------------------------
 
10881
m4_define([lt_if_dict_fetch],
 
10882
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
10883
        [$5],
 
10884
    [$6])])
 
10885
 
 
10886
 
 
10887
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
10888
# --------------------------------------------------------------
 
10889
m4_define([lt_dict_filter],
 
10890
[m4_if([$5], [], [],
 
10891
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
10892
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
10893
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
10894
])
 
10895
 
 
10896
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
10897
#
 
10898
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
10899
#   Written by Scott James Remnant, 2004
 
10900
#
 
10901
# This file is free software; the Free Software Foundation gives
 
10902
# unlimited permission to copy and/or distribute it, with or without
 
10903
# modifications, as long as this notice is preserved.
 
10904
 
 
10905
# Generated from ltversion.in.
 
10906
 
 
10907
# serial 3017 ltversion.m4
 
10908
# This file is part of GNU Libtool
 
10909
 
 
10910
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
 
10911
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
10912
 
 
10913
AC_DEFUN([LTVERSION_VERSION],
 
10914
[macro_version='2.2.6b'
 
10915
macro_revision='1.3017'
 
10916
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
10917
_LT_DECL(, macro_revision, 0)
 
10918
])
 
10919
 
 
10920
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
10921
#
 
10922
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
10923
#   Written by Scott James Remnant, 2004.
 
10924
#
 
10925
# This file is free software; the Free Software Foundation gives
 
10926
# unlimited permission to copy and/or distribute it, with or without
 
10927
# modifications, as long as this notice is preserved.
 
10928
 
 
10929
# serial 4 lt~obsolete.m4
 
10930
 
 
10931
# These exist entirely to fool aclocal when bootstrapping libtool.
 
10932
#
 
10933
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
10934
# which have later been changed to m4_define as they aren't part of the
 
10935
# exported API, or moved to Autoconf or Automake where they belong.
 
10936
#
 
10937
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
10938
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
10939
# using a macro with the same name in our local m4/libtool.m4 it'll
 
10940
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
10941
# and doesn't know about Autoconf macros at all.)
 
10942
#
 
10943
# So we provide this file, which has a silly filename so it's always
 
10944
# included after everything else.  This provides aclocal with the
 
10945
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
10946
# because those macros already exist, or will be overwritten later.
 
10947
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
10948
#
 
10949
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
10950
# Yes, that means every name once taken will need to remain here until
 
10951
# we give up compatibility with versions before 1.7, at which point
 
10952
# we need to keep only those names which we still refer to.
 
10953
 
 
10954
# This is to help aclocal find these macros, as it can't see m4_define.
 
10955
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
10956
 
 
10957
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
10958
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
10959
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
10960
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
10961
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
10962
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
10963
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
10964
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
10965
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
10966
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
10967
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
10968
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
10969
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
10970
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
10971
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
10972
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
10973
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
10974
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
10975
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
10976
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
10977
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
10978
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
10979
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
10980
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
10981
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
10982
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
10983
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
10984
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
10985
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
10986
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
10987
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
10988
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
10989
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
10990
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
10991
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
10992
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
10993
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
10994
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
10995
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
10996
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
10997
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
10998
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
10999
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
11000
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
11001
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
11002
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
11003
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
11004
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
11005
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
11006
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
11007
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
11008
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
11009
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
11010
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
11011
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
11012
 
9394
11013
# nls.m4 serial 3 (gettext-0.15)
9395
11014
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
9396
11015
dnl This file is free software; the Free Software Foundation
9491
11110
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9492
11111
# ---------------------------------------------
9493
11112
m4_define([_PKG_CONFIG],
9494
 
[if test -n "$PKG_CONFIG"; then
9495
 
    if test -n "$$1"; then
9496
 
        pkg_cv_[]$1="$$1"
9497
 
    else
9498
 
        PKG_CHECK_EXISTS([$3],
9499
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9500
 
                         [pkg_failed=yes])
9501
 
    fi
9502
 
else
9503
 
        pkg_failed=untried
 
11113
[if test -n "$$1"; then
 
11114
    pkg_cv_[]$1="$$1"
 
11115
 elif test -n "$PKG_CONFIG"; then
 
11116
    PKG_CHECK_EXISTS([$3],
 
11117
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
11118
                     [pkg_failed=yes])
 
11119
 else
 
11120
    pkg_failed=untried
9504
11121
fi[]dnl
9505
11122
])# _PKG_CONFIG
9506
11123
 
9544
11161
if test $pkg_failed = yes; then
9545
11162
        _PKG_SHORT_ERRORS_SUPPORTED
9546
11163
        if test $_pkg_short_errors_supported = yes; then
9547
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
11164
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9548
11165
        else 
9549
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
11166
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9550
11167
        fi
9551
11168
        # Put the nasty error message in config.log where it belongs
9552
11169
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9581
11198
fi[]dnl
9582
11199
])# PKG_CHECK_MODULES
9583
11200
 
9584
 
# po.m4 serial 13 (gettext-0.15)
9585
 
dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
 
11201
# po.m4 serial 15 (gettext-0.17)
 
11202
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
9586
11203
dnl This file is free software; the Free Software Foundation
9587
11204
dnl gives unlimited permission to copy and/or distribute it,
9588
11205
dnl with or without modifications, as long as this notice is preserved.
9610
11227
  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
9611
11228
  AC_REQUIRE([AM_NLS])dnl
9612
11229
 
 
11230
  dnl Release version of the gettext macros. This is used to ensure that
 
11231
  dnl the gettext macros and po/Makefile.in.in are in sync.
 
11232
  AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
 
11233
 
9613
11234
  dnl Perform the following tests also if --disable-nls has been given,
9614
11235
  dnl because they are needed for "make dist" to work.
9615
11236
 
9667
11288
  test -n "$localedir" || localedir='${datadir}/locale'
9668
11289
  AC_SUBST([localedir])
9669
11290
 
 
11291
  dnl Support for AM_XGETTEXT_OPTION.
 
11292
  test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
11293
  AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
 
11294
 
9670
11295
  AC_CONFIG_COMMANDS([po-directories], [[
9671
11296
    for ac_file in $CONFIG_FILES; do
9672
11297
      # Support "outfile[:infile[:infile...]]"
10010
11635
  mv "$ac_file.tmp" "$ac_file"
10011
11636
])
10012
11637
 
10013
 
# printf-posix.m4 serial 2 (gettext-0.13.1)
10014
 
dnl Copyright (C) 2003 Free Software Foundation, Inc.
 
11638
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
 
11639
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
 
11640
[
 
11641
  XGETTEXT_EXTRA_OPTIONS=
 
11642
])
 
11643
 
 
11644
dnl Registers an option to be passed to xgettext in the po subdirectory.
 
11645
AC_DEFUN([AM_XGETTEXT_OPTION],
 
11646
[
 
11647
  AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
 
11648
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
 
11649
])
 
11650
 
 
11651
# printf-posix.m4 serial 3 (gettext-0.17)
 
11652
dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
10015
11653
dnl This file is free software; the Free Software Foundation
10016
11654
dnl gives unlimited permission to copy and/or distribute it,
10017
11655
dnl with or without modifications, as long as this notice is preserved.
10040
11678
}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
10041
11679
      [
10042
11680
        AC_EGREP_CPP(notposix, [
10043
 
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
11681
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
10044
11682
  notposix
10045
11683
#endif
10046
11684
        ], gt_cv_func_printf_posix="guessing no",
10148
11786
AC_SUBST($1)dnl
10149
11787
])
10150
11788
 
10151
 
# size_max.m4 serial 5
 
11789
# size_max.m4 serial 6
10152
11790
dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc.
10153
11791
dnl This file is free software; the Free Software Foundation
10154
11792
dnl gives unlimited permission to copy and/or distribute it,
10176
11814
      dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
10177
11815
      dnl than the type 'unsigned long'. Try hard to find a definition that can
10178
11816
      dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
10179
 
      _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1,
 
11817
      AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
10180
11818
        [#include <stddef.h>
10181
11819
#include <limits.h>], size_t_bits_minus_1=)
10182
 
      _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
 
11820
      AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
10183
11821
        [#include <stddef.h>], fits_in_uint=)
10184
11822
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10185
11823
        if test $fits_in_uint = 1; then
10211
11849
  fi
10212
11850
])
10213
11851
 
 
11852
dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
 
11853
dnl Remove this when we can assume autoconf >= 2.61.
 
11854
m4_ifdef([AC_COMPUTE_INT], [], [
 
11855
  AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
 
11856
])
 
11857
 
10214
11858
# stdint_h.m4 serial 6
10215
11859
dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
10216
11860
dnl This file is free software; the Free Software Foundation
10238
11882
  fi
10239
11883
])
10240
11884
 
10241
 
# uintmax_t.m4 serial 9
10242
 
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
 
11885
# uintmax_t.m4 serial 10
 
11886
dnl Copyright (C) 1997-2004, 2007 Free Software Foundation, Inc.
10243
11887
dnl This file is free software; the Free Software Foundation
10244
11888
dnl gives unlimited permission to copy and/or distribute it,
10245
11889
dnl with or without modifications, as long as this notice is preserved.
10256
11900
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
10257
11901
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
10258
11902
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10259
 
    AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
10260
 
    test $ac_cv_type_unsigned_long_long = yes \
 
11903
    AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
 
11904
    test $ac_cv_type_unsigned_long_long_int = yes \
10261
11905
      && ac_type='unsigned long long' \
10262
11906
      || ac_type='unsigned long'
10263
11907
    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
10269
11913
  fi
10270
11914
])
10271
11915
 
10272
 
# ulonglong.m4 serial 6
10273
 
dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.
10274
 
dnl This file is free software; the Free Software Foundation
10275
 
dnl gives unlimited permission to copy and/or distribute it,
10276
 
dnl with or without modifications, as long as this notice is preserved.
10277
 
 
10278
 
dnl From Paul Eggert.
10279
 
 
10280
 
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
10281
 
# This fixes a bug in Autoconf 2.60, but can be removed once we
10282
 
# assume 2.61 everywhere.
10283
 
 
10284
 
# Note: If the type 'unsigned long long int' exists but is only 32 bits
10285
 
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
10286
 
# will not be defined. In this case you can treat 'unsigned long long int'
10287
 
# like 'unsigned long int'.
10288
 
 
10289
 
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
10290
 
[
10291
 
  AC_CACHE_CHECK([for unsigned long long int],
10292
 
    [ac_cv_type_unsigned_long_long_int],
10293
 
    [AC_LINK_IFELSE(
10294
 
       [AC_LANG_PROGRAM(
10295
 
          [[unsigned long long int ull = 18446744073709551615ULL;
10296
 
            typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
10297
 
                           ? 1 : -1)];
10298
 
           int i = 63;]],
10299
 
          [[unsigned long long int ullmax = 18446744073709551615ull;
10300
 
            return (ull << 63 | ull >> 63 | ull << i | ull >> i
10301
 
                    | ullmax / ull | ullmax % ull);]])],
10302
 
       [ac_cv_type_unsigned_long_long_int=yes],
10303
 
       [ac_cv_type_unsigned_long_long_int=no])])
10304
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
10305
 
    AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
10306
 
      [Define to 1 if the system has the type `unsigned long long int'.])
10307
 
  fi
10308
 
])
10309
 
 
10310
 
# This macro is obsolescent and should go away soon.
10311
 
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
10312
 
[
10313
 
  AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
10314
 
  ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
10315
 
  if test $ac_cv_type_unsigned_long_long = yes; then
10316
 
    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
10317
 
      [Define if you have the 'unsigned long long' type.])
10318
 
  fi
10319
 
])
10320
 
 
10321
11916
# visibility.m4 serial 1 (gettext-0.15)
10322
11917
dnl Copyright (C) 2005 Free Software Foundation, Inc.
10323
11918
dnl This file is free software; the Free Software Foundation
10392
11987
  fi
10393
11988
])
10394
11989
 
10395
 
# wint_t.m4 serial 1 (gettext-0.12)
10396
 
dnl Copyright (C) 2003 Free Software Foundation, Inc.
 
11990
# wint_t.m4 serial 2 (gettext-0.17)
 
11991
dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
10397
11992
dnl This file is free software; the Free Software Foundation
10398
11993
dnl gives unlimited permission to copy and/or distribute it,
10399
11994
dnl with or without modifications, as long as this notice is preserved.
10405
12000
AC_DEFUN([gt_TYPE_WINT_T],
10406
12001
[
10407
12002
  AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
10408
 
    [AC_TRY_COMPILE([#include <wchar.h>
 
12003
    [AC_TRY_COMPILE([
 
12004
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
12005
   <wchar.h>.
 
12006
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
12007
   before <wchar.h>.  */
 
12008
#include <stddef.h>
 
12009
#include <stdio.h>
 
12010
#include <time.h>
 
12011
#include <wchar.h>
10409
12012
       wint_t foo = (wchar_t)'\0';], ,
10410
12013
       gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
10411
12014
  if test $gt_cv_c_wint_t = yes; then
10427
12030
  AC_CHECK_HEADERS(stdint.h)
10428
12031
])
10429
12032
 
10430
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
12033
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
10431
12034
#
10432
12035
# This file is free software; the Free Software Foundation
10433
12036
# gives unlimited permission to copy and/or distribute it,
10439
12042
# generated from the m4 files accompanying Automake X.Y.
10440
12043
# (This private macro should not be called outside this file.)
10441
12044
AC_DEFUN([AM_AUTOMAKE_VERSION],
10442
 
[am__api_version='1.10'
 
12045
[am__api_version='1.11'
10443
12046
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
10444
12047
dnl require some minimum version.  Point them to the right macro.
10445
 
m4_if([$1], [1.10], [],
 
12048
m4_if([$1], [1.11.1], [],
10446
12049
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
10447
12050
])
10448
12051
 
10456
12059
# AM_SET_CURRENT_AUTOMAKE_VERSION
10457
12060
# -------------------------------
10458
12061
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
10459
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
12062
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
10460
12063
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
10461
 
[AM_AUTOMAKE_VERSION([1.10])dnl
10462
 
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
12064
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
12065
m4_ifndef([AC_AUTOCONF_VERSION],
 
12066
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
12067
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10463
12068
 
10464
12069
# Figure out how to run the assembler.                      -*- Autoconf -*-
10465
12070
 
10538
12143
 
10539
12144
# AM_CONDITIONAL                                            -*- Autoconf -*-
10540
12145
 
10541
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
12146
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
10542
12147
# Free Software Foundation, Inc.
10543
12148
#
10544
12149
# This file is free software; the Free Software Foundation
10545
12150
# gives unlimited permission to copy and/or distribute it,
10546
12151
# with or without modifications, as long as this notice is preserved.
10547
12152
 
10548
 
# serial 8
 
12153
# serial 9
10549
12154
 
10550
12155
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
10551
12156
# -------------------------------------
10558
12163
AC_SUBST([$1_FALSE])dnl
10559
12164
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
10560
12165
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
12166
m4_define([_AM_COND_VALUE_$1], [$2])dnl
10561
12167
if $2; then
10562
12168
  $1_TRUE=
10563
12169
  $1_FALSE='#'
10571
12177
Usually this means the macro was only invoked conditionally.]])
10572
12178
fi])])
10573
12179
 
10574
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
12180
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
10575
12181
# Free Software Foundation, Inc.
10576
12182
#
10577
12183
# This file is free software; the Free Software Foundation
10578
12184
# gives unlimited permission to copy and/or distribute it,
10579
12185
# with or without modifications, as long as this notice is preserved.
10580
12186
 
10581
 
# serial 9
 
12187
# serial 10
10582
12188
 
10583
12189
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
10584
12190
# written in clear, in which case automake, when reading aclocal.m4,
10635
12241
  if test "$am_compiler_list" = ""; then
10636
12242
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
10637
12243
  fi
 
12244
  am__universal=false
 
12245
  m4_case([$1], [CC],
 
12246
    [case " $depcc " in #(
 
12247
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12248
     esac],
 
12249
    [CXX],
 
12250
    [case " $depcc " in #(
 
12251
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12252
     esac])
 
12253
 
10638
12254
  for depmode in $am_compiler_list; do
10639
12255
    # Setup a source with many dependencies, because some compilers
10640
12256
    # like to wrap large dependency lists on column 80 (with \), and
10652
12268
    done
10653
12269
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10654
12270
 
 
12271
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12272
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12273
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12274
    # versions had trouble with output in subdirs
 
12275
    am__obj=sub/conftest.${OBJEXT-o}
 
12276
    am__minus_obj="-o $am__obj"
10655
12277
    case $depmode in
 
12278
    gcc)
 
12279
      # This depmode causes a compiler race in universal mode.
 
12280
      test "$am__universal" = false || continue
 
12281
      ;;
10656
12282
    nosideeffect)
10657
12283
      # after this tag, mechanisms are not by side-effect, so they'll
10658
12284
      # only be used when explicitly requested
10662
12288
        break
10663
12289
      fi
10664
12290
      ;;
 
12291
    msvisualcpp | msvcmsys)
 
12292
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12293
      # not run yet.  These depmodes are late enough in the game, and
 
12294
      # so weak that their functioning should not be impacted.
 
12295
      am__obj=conftest.${OBJEXT-o}
 
12296
      am__minus_obj=
 
12297
      ;;
10665
12298
    none) break ;;
10666
12299
    esac
10667
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10668
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
10669
 
    # handle `-M -o', and we need to detect this.
10670
12300
    if depmode=$depmode \
10671
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
12301
       source=sub/conftest.c object=$am__obj \
10672
12302
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10673
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
12303
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10674
12304
         >/dev/null 2>conftest.err &&
10675
12305
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10676
12306
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10677
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
12307
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10678
12308
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10679
12309
      # icc doesn't choke on unknown options, it will just issue warnings
10680
12310
      # or remarks (even with -Werror).  So we grep stderr for any message
10731
12361
 
10732
12362
# Generate code to set up dependency tracking.              -*- Autoconf -*-
10733
12363
 
10734
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
12364
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10735
12365
# Free Software Foundation, Inc.
10736
12366
#
10737
12367
# This file is free software; the Free Software Foundation
10738
12368
# gives unlimited permission to copy and/or distribute it,
10739
12369
# with or without modifications, as long as this notice is preserved.
10740
12370
 
10741
 
#serial 3
 
12371
#serial 5
10742
12372
 
10743
12373
# _AM_OUTPUT_DEPENDENCY_COMMANDS
10744
12374
# ------------------------------
10745
12375
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10746
 
[for mf in $CONFIG_FILES; do
10747
 
  # Strip MF so we end up with the name of the file.
10748
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
10749
 
  # Check whether this is an Automake generated Makefile or not.
10750
 
  # We used to match only the files named `Makefile.in', but
10751
 
  # some people rename them; so instead we look at the file content.
10752
 
  # Grep'ing the first line is not enough: some people post-process
10753
 
  # each Makefile.in and add a new line on top of each file to say so.
10754
 
  # Grep'ing the whole file is not good either: AIX grep has a line
10755
 
  # limit of 2048, but all sed's we know have understand at least 4000.
10756
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
10757
 
    dirpart=`AS_DIRNAME("$mf")`
10758
 
  else
10759
 
    continue
10760
 
  fi
10761
 
  # Extract the definition of DEPDIR, am__include, and am__quote
10762
 
  # from the Makefile without running `make'.
10763
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10764
 
  test -z "$DEPDIR" && continue
10765
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
10766
 
  test -z "am__include" && continue
10767
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10768
 
  # When using ansi2knr, U may be empty or an underscore; expand it
10769
 
  U=`sed -n 's/^U = //p' < "$mf"`
10770
 
  # Find all dependency output files, they are included files with
10771
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
10772
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
10773
 
  # expansion.
10774
 
  for file in `sed -n "
10775
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10776
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10777
 
    # Make sure the directory exists.
10778
 
    test -f "$dirpart/$file" && continue
10779
 
    fdir=`AS_DIRNAME(["$file"])`
10780
 
    AS_MKDIR_P([$dirpart/$fdir])
10781
 
    # echo "creating $dirpart/$file"
10782
 
    echo '# dummy' > "$dirpart/$file"
 
12376
[{
 
12377
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
12378
  # are listed without --file.  Let's play safe and only enable the eval
 
12379
  # if we detect the quoting.
 
12380
  case $CONFIG_FILES in
 
12381
  *\'*) eval set x "$CONFIG_FILES" ;;
 
12382
  *)   set x $CONFIG_FILES ;;
 
12383
  esac
 
12384
  shift
 
12385
  for mf
 
12386
  do
 
12387
    # Strip MF so we end up with the name of the file.
 
12388
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
12389
    # Check whether this is an Automake generated Makefile or not.
 
12390
    # We used to match only the files named `Makefile.in', but
 
12391
    # some people rename them; so instead we look at the file content.
 
12392
    # Grep'ing the first line is not enough: some people post-process
 
12393
    # each Makefile.in and add a new line on top of each file to say so.
 
12394
    # Grep'ing the whole file is not good either: AIX grep has a line
 
12395
    # limit of 2048, but all sed's we know have understand at least 4000.
 
12396
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
12397
      dirpart=`AS_DIRNAME("$mf")`
 
12398
    else
 
12399
      continue
 
12400
    fi
 
12401
    # Extract the definition of DEPDIR, am__include, and am__quote
 
12402
    # from the Makefile without running `make'.
 
12403
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
12404
    test -z "$DEPDIR" && continue
 
12405
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
12406
    test -z "am__include" && continue
 
12407
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
12408
    # When using ansi2knr, U may be empty or an underscore; expand it
 
12409
    U=`sed -n 's/^U = //p' < "$mf"`
 
12410
    # Find all dependency output files, they are included files with
 
12411
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
12412
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
12413
    # expansion.
 
12414
    for file in `sed -n "
 
12415
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
12416
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
12417
      # Make sure the directory exists.
 
12418
      test -f "$dirpart/$file" && continue
 
12419
      fdir=`AS_DIRNAME(["$file"])`
 
12420
      AS_MKDIR_P([$dirpart/$fdir])
 
12421
      # echo "creating $dirpart/$file"
 
12422
      echo '# dummy' > "$dirpart/$file"
 
12423
    done
10783
12424
  done
10784
 
done
 
12425
}
10785
12426
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10786
12427
 
10787
12428
 
10801
12442
# Do all the work for Automake.                             -*- Autoconf -*-
10802
12443
 
10803
12444
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
10804
 
# 2005, 2006 Free Software Foundation, Inc.
 
12445
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
10805
12446
#
10806
12447
# This file is free software; the Free Software Foundation
10807
12448
# gives unlimited permission to copy and/or distribute it,
10808
12449
# with or without modifications, as long as this notice is preserved.
10809
12450
 
10810
 
# serial 12
 
12451
# serial 16
10811
12452
 
10812
12453
# This macro actually does too much.  Some checks are only needed if
10813
12454
# your package does certain things.  But this isn't really a big deal.
10824
12465
# arguments mandatory, and then we can depend on a new Autoconf
10825
12466
# release and drop the old call support.
10826
12467
AC_DEFUN([AM_INIT_AUTOMAKE],
10827
 
[AC_PREREQ([2.60])dnl
 
12468
[AC_PREREQ([2.62])dnl
10828
12469
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
10829
12470
dnl the ones we care about.
10830
12471
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10875
12516
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
10876
12517
AM_MISSING_PROG(AUTOHEADER, autoheader)
10877
12518
AM_MISSING_PROG(MAKEINFO, makeinfo)
10878
 
AM_PROG_INSTALL_SH
10879
 
AM_PROG_INSTALL_STRIP
 
12519
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
12520
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10880
12521
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
10881
12522
# We need awk for the "check" target.  The system "awk" is bad on
10882
12523
# some platforms.
10884
12525
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10885
12526
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10886
12527
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10887
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10888
 
                             [_AM_PROG_TAR([v7])])])
 
12528
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
12529
                             [_AM_PROG_TAR([v7])])])
10889
12530
_AM_IF_OPTION([no-dependencies],,
10890
12531
[AC_PROVIDE_IFELSE([AC_PROG_CC],
10891
 
                  [_AM_DEPENDENCIES(CC)],
10892
 
                  [define([AC_PROG_CC],
10893
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
12532
                  [_AM_DEPENDENCIES(CC)],
 
12533
                  [define([AC_PROG_CC],
 
12534
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
10894
12535
AC_PROVIDE_IFELSE([AC_PROG_CXX],
10895
 
                  [_AM_DEPENDENCIES(CXX)],
10896
 
                  [define([AC_PROG_CXX],
10897
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
12536
                  [_AM_DEPENDENCIES(CXX)],
 
12537
                  [define([AC_PROG_CXX],
 
12538
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
10898
12539
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10899
 
                  [_AM_DEPENDENCIES(OBJC)],
10900
 
                  [define([AC_PROG_OBJC],
10901
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
10902
 
])
10903
 
])
 
12540
                  [_AM_DEPENDENCIES(OBJC)],
 
12541
                  [define([AC_PROG_OBJC],
 
12542
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
12543
])
 
12544
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
12545
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
12546
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
12547
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
12548
AC_CONFIG_COMMANDS_PRE(dnl
 
12549
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
12550
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
12551
])
 
12552
 
 
12553
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
12554
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
12555
dnl mangled by Autoconf and run in a shell conditional statement.
 
12556
m4_define([_AC_COMPILER_EXEEXT],
 
12557
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10904
12558
 
10905
12559
 
10906
12560
# When config.status generates a header, we must update the stamp-h file.
10912
12566
# our stamp files there.
10913
12567
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10914
12568
[# Compute $1's index in $config_headers.
 
12569
_am_arg=$1
10915
12570
_am_stamp_count=1
10916
12571
for _am_header in $config_headers :; do
10917
12572
  case $_am_header in
10918
 
    $1 | $1:* )
 
12573
    $_am_arg | $_am_arg:* )
10919
12574
      break ;;
10920
12575
    * )
10921
12576
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10922
12577
  esac
10923
12578
done
10924
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
12579
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10925
12580
 
10926
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
12581
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
10927
12582
#
10928
12583
# This file is free software; the Free Software Foundation
10929
12584
# gives unlimited permission to copy and/or distribute it,
10934
12589
# Define $install_sh.
10935
12590
AC_DEFUN([AM_PROG_INSTALL_SH],
10936
12591
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10937
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
12592
if test x"${install_sh}" != xset; then
 
12593
  case $am_aux_dir in
 
12594
  *\ * | *\     *)
 
12595
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
12596
  *)
 
12597
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
12598
  esac
 
12599
fi
10938
12600
AC_SUBST(install_sh)])
10939
12601
 
10940
12602
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
10961
12623
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
10962
12624
# From Jim Meyering
10963
12625
 
10964
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
12626
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10965
12627
# Free Software Foundation, Inc.
10966
12628
#
10967
12629
# This file is free software; the Free Software Foundation
10968
12630
# gives unlimited permission to copy and/or distribute it,
10969
12631
# with or without modifications, as long as this notice is preserved.
10970
12632
 
10971
 
# serial 4
 
12633
# serial 5
10972
12634
 
 
12635
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
12636
# ----------------------------------
 
12637
# Control maintainer-specific portions of Makefiles.
 
12638
# Default is to disable them, unless `enable' is passed literally.
 
12639
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
12640
# can override the default with the --enable/--disable switch.
10973
12641
AC_DEFUN([AM_MAINTAINER_MODE],
10974
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10975
 
  dnl maintainer-mode is disabled by default
10976
 
  AC_ARG_ENABLE(maintainer-mode,
10977
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
12642
[m4_case(m4_default([$1], [disable]),
 
12643
       [enable], [m4_define([am_maintainer_other], [disable])],
 
12644
       [disable], [m4_define([am_maintainer_other], [enable])],
 
12645
       [m4_define([am_maintainer_other], [enable])
 
12646
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
12647
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
12648
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
12649
  AC_ARG_ENABLE([maintainer-mode],
 
12650
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
10978
12651
                          (and sometimes confusing) to the casual installer],
10979
 
      USE_MAINTAINER_MODE=$enableval,
10980
 
      USE_MAINTAINER_MODE=no)
 
12652
      [USE_MAINTAINER_MODE=$enableval],
 
12653
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10981
12654
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10982
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
12655
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10983
12656
  MAINT=$MAINTAINER_MODE_TRUE
10984
 
  AC_SUBST(MAINT)dnl
 
12657
  AC_SUBST([MAINT])dnl
10985
12658
]
10986
12659
)
10987
12660
 
10989
12662
 
10990
12663
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
10991
12664
 
10992
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
12665
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
10993
12666
#
10994
12667
# This file is free software; the Free Software Foundation
10995
12668
# gives unlimited permission to copy and/or distribute it,
10996
12669
# with or without modifications, as long as this notice is preserved.
10997
12670
 
10998
 
# serial 3
 
12671
# serial 4
10999
12672
 
11000
12673
# AM_MAKE_INCLUDE()
11001
12674
# -----------------
11004
12677
[am_make=${MAKE-make}
11005
12678
cat > confinc << 'END'
11006
12679
am__doit:
11007
 
        @echo done
 
12680
        @echo this is the am__doit target
11008
12681
.PHONY: am__doit
11009
12682
END
11010
12683
# If we don't find an include directive, just comment out the code.
11014
12687
_am_result=none
11015
12688
# First try GNU make style include.
11016
12689
echo "include confinc" > confmf
11017
 
# We grep out `Entering directory' and `Leaving directory'
11018
 
# messages which can occur if `w' ends up in MAKEFLAGS.
11019
 
# In particular we don't look at `^make:' because GNU make might
11020
 
# be invoked under some other name (usually "gmake"), in which
11021
 
# case it prints its new name instead of `make'.
11022
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
11023
 
   am__include=include
11024
 
   am__quote=
11025
 
   _am_result=GNU
11026
 
fi
 
12690
# Ignore all kinds of additional output from `make'.
 
12691
case `$am_make -s -f confmf 2> /dev/null` in #(
 
12692
*the\ am__doit\ target*)
 
12693
  am__include=include
 
12694
  am__quote=
 
12695
  _am_result=GNU
 
12696
  ;;
 
12697
esac
11027
12698
# Now try BSD make style include.
11028
12699
if test "$am__include" = "#"; then
11029
12700
   echo '.include "confinc"' > confmf
11030
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
11031
 
      am__include=.include
11032
 
      am__quote="\""
11033
 
      _am_result=BSD
11034
 
   fi
 
12701
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
12702
   *the\ am__doit\ target*)
 
12703
     am__include=.include
 
12704
     am__quote="\""
 
12705
     _am_result=BSD
 
12706
     ;;
 
12707
   esac
11035
12708
fi
11036
12709
AC_SUBST([am__include])
11037
12710
AC_SUBST([am__quote])
11039
12712
rm -f confinc confmf
11040
12713
])
11041
12714
 
11042
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
12715
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
11043
12716
# Free Software Foundation, Inc.
11044
12717
#
11045
12718
# This file is free software; the Free Software Foundation
11046
12719
# gives unlimited permission to copy and/or distribute it,
11047
12720
# with or without modifications, as long as this notice is preserved.
11048
12721
 
11049
 
# serial 5
 
12722
# serial 6
11050
12723
 
11051
12724
# AM_PROG_CC_C_O
11052
12725
# --------------
11058
12731
# FIXME: we rely on the cache variable name because
11059
12732
# there is no other way.
11060
12733
set dummy $CC
11061
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
11062
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
12734
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
12735
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
12736
if test "$am_t" != yes; then
11063
12737
   # Losing compiler, so override with the script.
11064
12738
   # FIXME: It is wrong to rewrite CC.
11065
12739
   # But if we don't then we get into trouble of one sort or another.
11075
12749
 
11076
12750
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
11077
12751
 
11078
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
12752
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
11079
12753
# Free Software Foundation, Inc.
11080
12754
#
11081
12755
# This file is free software; the Free Software Foundation
11082
12756
# gives unlimited permission to copy and/or distribute it,
11083
12757
# with or without modifications, as long as this notice is preserved.
11084
12758
 
11085
 
# serial 5
 
12759
# serial 6
11086
12760
 
11087
12761
# AM_MISSING_PROG(NAME, PROGRAM)
11088
12762
# ------------------------------
11099
12773
AC_DEFUN([AM_MISSING_HAS_RUN],
11100
12774
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
11101
12775
AC_REQUIRE_AUX_FILE([missing])dnl
11102
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
12776
if test x"${MISSING+set}" != xset; then
 
12777
  case $am_aux_dir in
 
12778
  *\ * | *\     *)
 
12779
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
12780
  *)
 
12781
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
12782
  esac
 
12783
fi
11103
12784
# Use eval to expand $SHELL
11104
12785
if eval "$MISSING --run true"; then
11105
12786
  am_missing_run="$MISSING --run "
11137
12818
 
11138
12819
# Helper functions for option handling.                     -*- Autoconf -*-
11139
12820
 
11140
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
12821
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
11141
12822
#
11142
12823
# This file is free software; the Free Software Foundation
11143
12824
# gives unlimited permission to copy and/or distribute it,
11144
12825
# with or without modifications, as long as this notice is preserved.
11145
12826
 
11146
 
# serial 3
 
12827
# serial 4
11147
12828
 
11148
12829
# _AM_MANGLE_OPTION(NAME)
11149
12830
# -----------------------
11160
12841
# ----------------------------------
11161
12842
# OPTIONS is a space-separated list of Automake options.
11162
12843
AC_DEFUN([_AM_SET_OPTIONS],
11163
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
12844
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
11164
12845
 
11165
12846
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
11166
12847
# -------------------------------------------
11170
12851
 
11171
12852
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
11172
12853
 
11173
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
12854
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
11174
12855
# Free Software Foundation, Inc.
11175
12856
#
11176
12857
# This file is free software; the Free Software Foundation
11177
12858
# gives unlimited permission to copy and/or distribute it,
11178
12859
# with or without modifications, as long as this notice is preserved.
11179
12860
 
11180
 
# serial 4
 
12861
# serial 5
11181
12862
 
11182
12863
# AM_SANITY_CHECK
11183
12864
# ---------------
11186
12867
# Just in case
11187
12868
sleep 1
11188
12869
echo timestamp > conftest.file
 
12870
# Reject unsafe characters in $srcdir or the absolute working directory
 
12871
# name.  Accept space and tab only in the latter.
 
12872
am_lf='
 
12873
'
 
12874
case `pwd` in
 
12875
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
12876
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
12877
esac
 
12878
case $srcdir in
 
12879
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
12880
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
12881
esac
 
12882
 
11189
12883
# Do `set' in a subshell so we don't clobber the current shell's
11190
12884
# arguments.  Must try -L first in case configure is actually a
11191
12885
# symlink; some systems play weird games with the mod time of symlinks
11192
12886
# (eg FreeBSD returns the mod time of the symlink's containing
11193
12887
# directory).
11194
12888
if (
11195
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
12889
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11196
12890
   if test "$[*]" = "X"; then
11197
12891
      # -L didn't work.
11198
 
      set X `ls -t $srcdir/configure conftest.file`
 
12892
      set X `ls -t "$srcdir/configure" conftest.file`
11199
12893
   fi
11200
12894
   rm -f conftest.file
11201
12895
   if test "$[*]" != "X $srcdir/configure conftest.file" \
11248
12942
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11249
12943
AC_SUBST([INSTALL_STRIP_PROGRAM])])
11250
12944
 
11251
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
12945
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
11252
12946
#
11253
12947
# This file is free software; the Free Software Foundation
11254
12948
# gives unlimited permission to copy and/or distribute it,
11255
12949
# with or without modifications, as long as this notice is preserved.
11256
12950
 
 
12951
# serial 2
 
12952
 
11257
12953
# _AM_SUBST_NOTMAKE(VARIABLE)
11258
12954
# ---------------------------
11259
 
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
12955
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
11260
12956
# This macro is traced by Automake.
11261
12957
AC_DEFUN([_AM_SUBST_NOTMAKE])
11262
12958
 
 
12959
# AM_SUBST_NOTMAKE(VARIABLE)
 
12960
# ---------------------------
 
12961
# Public sister of _AM_SUBST_NOTMAKE.
 
12962
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
12963
 
11263
12964
# Check how to create a tarball.                            -*- Autoconf -*-
11264
12965
 
11265
12966
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.