~ubuntu-branches/ubuntu/wily/totem-pl-parser/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-09 13:39:14 UTC
  • mfrom: (1.4.16) (1.5.12 sid)
  • Revision ID: package-import@ubuntu.com-20120309133914-e6iab9fcyg8cmw33
Tags: 3.2.0-1
* New upstream release.
* debian/patches/01-libquvi-0.4.patch: Removed, merged upstream.
* debian/control.in: Bump (Build-)Depends on libglib2.0-dev to (>= 2.31.0).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1051
1051
AC_SUBST([am__untar])
1052
1052
]) # _AM_PROG_TAR
1053
1053
 
 
1054
dnl Autoconf macros for libgcrypt
 
1055
dnl       Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
1056
dnl
 
1057
dnl This file is free software; as a special exception the author gives
 
1058
dnl unlimited permission to copy and/or distribute it, with or without
 
1059
dnl modifications, as long as this notice is preserved.
 
1060
dnl
 
1061
dnl This file is distributed in the hope that it will be useful, but
 
1062
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
1063
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
1064
 
 
1065
 
 
1066
dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
 
1067
dnl                   [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
 
1068
dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
 
1069
dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
 
1070
dnl with the API version to also check the API compatibility. Example:
 
1071
dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
 
1072
dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1.  Using
 
1073
dnl this features allows to prevent build against newer versions of libgcrypt
 
1074
dnl with a changed API.
 
1075
dnl
 
1076
AC_DEFUN([AM_PATH_LIBGCRYPT],
 
1077
[ AC_ARG_WITH(libgcrypt-prefix,
 
1078
            AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
 
1079
                           [prefix where LIBGCRYPT is installed (optional)]),
 
1080
     libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
 
1081
  if test x$libgcrypt_config_prefix != x ; then
 
1082
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
1083
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
1084
     fi
 
1085
  fi
 
1086
 
 
1087
  AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
 
1088
  tmp=ifelse([$1], ,1:1.2.0,$1)
 
1089
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
1090
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
1091
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
1092
  else
 
1093
     req_libgcrypt_api=0
 
1094
     min_libgcrypt_version="$tmp"
 
1095
  fi
 
1096
 
 
1097
  AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
 
1098
  ok=no
 
1099
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
1100
    req_major=`echo $min_libgcrypt_version | \
 
1101
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
 
1102
    req_minor=`echo $min_libgcrypt_version | \
 
1103
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
 
1104
    req_micro=`echo $min_libgcrypt_version | \
 
1105
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
 
1106
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
1107
    major=`echo $libgcrypt_config_version | \
 
1108
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
 
1109
    minor=`echo $libgcrypt_config_version | \
 
1110
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
 
1111
    micro=`echo $libgcrypt_config_version | \
 
1112
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
 
1113
    if test "$major" -gt "$req_major"; then
 
1114
        ok=yes
 
1115
    else
 
1116
        if test "$major" -eq "$req_major"; then
 
1117
            if test "$minor" -gt "$req_minor"; then
 
1118
               ok=yes
 
1119
            else
 
1120
               if test "$minor" -eq "$req_minor"; then
 
1121
                   if test "$micro" -ge "$req_micro"; then
 
1122
                     ok=yes
 
1123
                   fi
 
1124
               fi
 
1125
            fi
 
1126
        fi
 
1127
    fi
 
1128
  fi
 
1129
  if test $ok = yes; then
 
1130
    AC_MSG_RESULT([yes ($libgcrypt_config_version)])
 
1131
  else
 
1132
    AC_MSG_RESULT(no)
 
1133
  fi
 
1134
  if test $ok = yes; then
 
1135
     # If we have a recent libgcrypt, we should also check that the
 
1136
     # API is compatible
 
1137
     if test "$req_libgcrypt_api" -gt 0 ; then
 
1138
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
1139
        if test "$tmp" -gt 0 ; then
 
1140
           AC_MSG_CHECKING([LIBGCRYPT API version])
 
1141
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
1142
             AC_MSG_RESULT([okay])
 
1143
           else
 
1144
             ok=no
 
1145
             AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
 
1146
           fi
 
1147
        fi
 
1148
     fi
 
1149
  fi
 
1150
  if test $ok = yes; then
 
1151
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
1152
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
1153
    ifelse([$2], , :, [$2])
 
1154
    if test x"$host" != x ; then
 
1155
      libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
 
1156
      if test x"$libgcrypt_config_host" != xnone ; then
 
1157
        if test x"$libgcrypt_config_host" != x"$host" ; then
 
1158
  AC_MSG_WARN([[
 
1159
***
 
1160
*** The config script $LIBGCRYPT_CONFIG was
 
1161
*** built for $libgcrypt_config_host and thus may not match the
 
1162
*** used host $host.
 
1163
*** You may want to use the configure option --with-libgcrypt-prefix
 
1164
*** to specify a matching config script.
 
1165
***]])
 
1166
        fi
 
1167
      fi
 
1168
    fi
 
1169
  else
 
1170
    LIBGCRYPT_CFLAGS=""
 
1171
    LIBGCRYPT_LIBS=""
 
1172
    ifelse([$3], , :, [$3])
 
1173
  fi
 
1174
  AC_SUBST(LIBGCRYPT_CFLAGS)
 
1175
  AC_SUBST(LIBGCRYPT_LIBS)
 
1176
])
 
1177
 
 
1178
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
1179
#
 
1180
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1181
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1182
#                 Inc.
 
1183
#   Written by Gordon Matzigkeit, 1996
 
1184
#
 
1185
# This file is free software; the Free Software Foundation gives
 
1186
# unlimited permission to copy and/or distribute it, with or without
 
1187
# modifications, as long as this notice is preserved.
 
1188
 
 
1189
m4_define([_LT_COPYING], [dnl
 
1190
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1191
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1192
#                 Inc.
 
1193
#   Written by Gordon Matzigkeit, 1996
 
1194
#
 
1195
#   This file is part of GNU Libtool.
 
1196
#
 
1197
# GNU Libtool is free software; you can redistribute it and/or
 
1198
# modify it under the terms of the GNU General Public License as
 
1199
# published by the Free Software Foundation; either version 2 of
 
1200
# the License, or (at your option) any later version.
 
1201
#
 
1202
# As a special exception to the GNU General Public License,
 
1203
# if you distribute this file as part of a program or library that
 
1204
# is built using GNU Libtool, you may include this file under the
 
1205
# same distribution terms that you use for the rest of that program.
 
1206
#
 
1207
# GNU Libtool is distributed in the hope that it will be useful,
 
1208
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1209
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1210
# GNU General Public License for more details.
 
1211
#
 
1212
# You should have received a copy of the GNU General Public License
 
1213
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
1214
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
1215
# obtained by writing to the Free Software Foundation, Inc.,
 
1216
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
1217
])
 
1218
 
 
1219
# serial 57 LT_INIT
 
1220
 
 
1221
 
 
1222
# LT_PREREQ(VERSION)
 
1223
# ------------------
 
1224
# Complain and exit if this libtool version is less that VERSION.
 
1225
m4_defun([LT_PREREQ],
 
1226
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1227
       [m4_default([$3],
 
1228
                   [m4_fatal([Libtool version $1 or higher is required],
 
1229
                             63)])],
 
1230
       [$2])])
 
1231
 
 
1232
 
 
1233
# _LT_CHECK_BUILDDIR
 
1234
# ------------------
 
1235
# Complain if the absolute build directory name contains unusual characters
 
1236
m4_defun([_LT_CHECK_BUILDDIR],
 
1237
[case `pwd` in
 
1238
  *\ * | *\     *)
 
1239
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1240
esac
 
1241
])
 
1242
 
 
1243
 
 
1244
# LT_INIT([OPTIONS])
 
1245
# ------------------
 
1246
AC_DEFUN([LT_INIT],
 
1247
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1248
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 
1249
AC_BEFORE([$0], [LT_LANG])dnl
 
1250
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1251
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1252
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1253
 
 
1254
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1255
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1256
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1257
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1258
dnl unless we require an AC_DEFUNed macro:
 
1259
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1260
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1261
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1262
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1263
m4_require([_LT_PROG_LTMAIN])dnl
 
1264
 
 
1265
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
1266
 
 
1267
dnl Parse OPTIONS
 
1268
_LT_SET_OPTIONS([$0], [$1])
 
1269
 
 
1270
# This can be used to rebuild libtool when needed
 
1271
LIBTOOL_DEPS="$ltmain"
 
1272
 
 
1273
# Always use our own libtool.
 
1274
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
1275
AC_SUBST(LIBTOOL)dnl
 
1276
 
 
1277
_LT_SETUP
 
1278
 
 
1279
# Only expand once:
 
1280
m4_define([LT_INIT])
 
1281
])# LT_INIT
 
1282
 
 
1283
# Old names:
 
1284
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1285
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1286
dnl aclocal-1.4 backwards compatibility:
 
1287
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1288
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1289
 
 
1290
 
 
1291
# _LT_CC_BASENAME(CC)
 
1292
# -------------------
 
1293
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1294
m4_defun([_LT_CC_BASENAME],
 
1295
[for cc_temp in $1""; do
 
1296
  case $cc_temp in
 
1297
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1298
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1299
    \-*) ;;
 
1300
    *) break;;
 
1301
  esac
 
1302
done
 
1303
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
1304
])
 
1305
 
 
1306
 
 
1307
# _LT_FILEUTILS_DEFAULTS
 
1308
# ----------------------
 
1309
# It is okay to use these file commands and assume they have been set
 
1310
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1311
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1312
[: ${CP="cp -f"}
 
1313
: ${MV="mv -f"}
 
1314
: ${RM="rm -f"}
 
1315
])# _LT_FILEUTILS_DEFAULTS
 
1316
 
 
1317
 
 
1318
# _LT_SETUP
 
1319
# ---------
 
1320
m4_defun([_LT_SETUP],
 
1321
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1322
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1323
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
1324
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
1325
 
 
1326
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1327
_LT_DECL([], [host], [0])dnl
 
1328
_LT_DECL([], [host_os], [0])dnl
 
1329
dnl
 
1330
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1331
_LT_DECL([], [build], [0])dnl
 
1332
_LT_DECL([], [build_os], [0])dnl
 
1333
dnl
 
1334
AC_REQUIRE([AC_PROG_CC])dnl
 
1335
AC_REQUIRE([LT_PATH_LD])dnl
 
1336
AC_REQUIRE([LT_PATH_NM])dnl
 
1337
dnl
 
1338
AC_REQUIRE([AC_PROG_LN_S])dnl
 
1339
test -z "$LN_S" && LN_S="ln -s"
 
1340
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1341
dnl
 
1342
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1343
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1344
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1345
dnl
 
1346
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1347
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1348
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
 
1349
m4_require([_LT_CMD_RELOAD])dnl
 
1350
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1351
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
 
1352
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1353
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1354
m4_require([_LT_WITH_SYSROOT])dnl
 
1355
 
 
1356
_LT_CONFIG_LIBTOOL_INIT([
 
1357
# See if we are running on zsh, and set the options which allow our
 
1358
# commands through without removal of \ escapes INIT.
 
1359
if test -n "\${ZSH_VERSION+set}" ; then
 
1360
   setopt NO_GLOB_SUBST
 
1361
fi
 
1362
])
 
1363
if test -n "${ZSH_VERSION+set}" ; then
 
1364
   setopt NO_GLOB_SUBST
 
1365
fi
 
1366
 
 
1367
_LT_CHECK_OBJDIR
 
1368
 
 
1369
m4_require([_LT_TAG_COMPILER])dnl
 
1370
 
 
1371
case $host_os in
 
1372
aix3*)
 
1373
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
1374
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
1375
  # vanish in a puff of smoke.
 
1376
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
1377
    COLLECT_NAMES=
 
1378
    export COLLECT_NAMES
 
1379
  fi
 
1380
  ;;
 
1381
esac
 
1382
 
 
1383
# Global variables:
 
1384
ofile=libtool
 
1385
can_build_shared=yes
 
1386
 
 
1387
# All known linkers require a `.a' archive for static linking (except MSVC,
 
1388
# which needs '.lib').
 
1389
libext=a
 
1390
 
 
1391
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
1392
 
 
1393
old_CC="$CC"
 
1394
old_CFLAGS="$CFLAGS"
 
1395
 
 
1396
# Set sane defaults for various variables
 
1397
test -z "$CC" && CC=cc
 
1398
test -z "$LTCC" && LTCC=$CC
 
1399
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
1400
test -z "$LD" && LD=ld
 
1401
test -z "$ac_objext" && ac_objext=o
 
1402
 
 
1403
_LT_CC_BASENAME([$compiler])
 
1404
 
 
1405
# Only perform the check for file, if the check method requires it
 
1406
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1407
case $deplibs_check_method in
 
1408
file_magic*)
 
1409
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
1410
    _LT_PATH_MAGIC
 
1411
  fi
 
1412
  ;;
 
1413
esac
 
1414
 
 
1415
# Use C for the default configuration in the libtool script
 
1416
LT_SUPPORTED_TAG([CC])
 
1417
_LT_LANG_C_CONFIG
 
1418
_LT_LANG_DEFAULT_CONFIG
 
1419
_LT_CONFIG_COMMANDS
 
1420
])# _LT_SETUP
 
1421
 
 
1422
 
 
1423
# _LT_PREPARE_SED_QUOTE_VARS
 
1424
# --------------------------
 
1425
# Define a few sed substitution that help us do robust quoting.
 
1426
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
1427
[# Backslashify metacharacters that are still active within
 
1428
# double-quoted strings.
 
1429
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1430
 
 
1431
# Same as above, but do not quote variable references.
 
1432
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1433
 
 
1434
# Sed substitution to delay expansion of an escaped shell variable in a
 
1435
# double_quote_subst'ed string.
 
1436
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1437
 
 
1438
# Sed substitution to delay expansion of an escaped single quote.
 
1439
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1440
 
 
1441
# Sed substitution to avoid accidental globbing in evaled expressions
 
1442
no_glob_subst='s/\*/\\\*/g'
 
1443
])
 
1444
 
 
1445
# _LT_PROG_LTMAIN
 
1446
# ---------------
 
1447
# Note that this code is called both from `configure', and `config.status'
 
1448
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1449
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1450
# so we pass a copy along to make sure it has a sensible value anyway.
 
1451
m4_defun([_LT_PROG_LTMAIN],
 
1452
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1453
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1454
ltmain="$ac_aux_dir/ltmain.sh"
 
1455
])# _LT_PROG_LTMAIN
 
1456
 
 
1457
 
 
1458
 
 
1459
# So that we can recreate a full libtool script including additional
 
1460
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1461
# in macros and then make a single call at the end using the `libtool'
 
1462
# label.
 
1463
 
 
1464
 
 
1465
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1466
# ----------------------------------------
 
1467
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1468
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1469
[m4_ifval([$1],
 
1470
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1471
                     [$1
 
1472
])])])
 
1473
 
 
1474
# Initialize.
 
1475
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1476
 
 
1477
 
 
1478
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1479
# ------------------------------
 
1480
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1481
m4_define([_LT_CONFIG_LIBTOOL],
 
1482
[m4_ifval([$1],
 
1483
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1484
                     [$1
 
1485
])])])
 
1486
 
 
1487
# Initialize.
 
1488
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1489
 
 
1490
 
 
1491
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1492
# -----------------------------------------------------
 
1493
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1494
[_LT_CONFIG_LIBTOOL([$1])
 
1495
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1496
])
 
1497
 
 
1498
 
 
1499
# _LT_FORMAT_COMMENT([COMMENT])
 
1500
# -----------------------------
 
1501
# Add leading comment marks to the start of each line, and a trailing
 
1502
# full-stop to the whole comment if one is not present already.
 
1503
m4_define([_LT_FORMAT_COMMENT],
 
1504
[m4_ifval([$1], [
 
1505
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1506
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1507
)])
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1514
# -------------------------------------------------------------------
 
1515
# CONFIGNAME is the name given to the value in the libtool script.
 
1516
# VARNAME is the (base) name used in the configure script.
 
1517
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1518
# VARNAME.  Any other value will be used directly.
 
1519
m4_define([_LT_DECL],
 
1520
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1521
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1522
        [m4_ifval([$1], [$1], [$2])])
 
1523
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1524
    m4_ifval([$4],
 
1525
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1526
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1527
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1528
])
 
1529
 
 
1530
 
 
1531
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1532
# --------------------------------------------------------
 
1533
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1534
 
 
1535
 
 
1536
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1537
# ------------------------------------------------
 
1538
m4_define([lt_decl_tag_varnames],
 
1539
[_lt_decl_filter([tagged?], [yes], $@)])
 
1540
 
 
1541
 
 
1542
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1543
# ---------------------------------------------------------
 
1544
m4_define([_lt_decl_filter],
 
1545
[m4_case([$#],
 
1546
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1547
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1548
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1549
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1550
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1551
])
 
1552
 
 
1553
 
 
1554
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1555
# --------------------------------------------------
 
1556
m4_define([lt_decl_quote_varnames],
 
1557
[_lt_decl_filter([value], [1], $@)])
 
1558
 
 
1559
 
 
1560
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1561
# ---------------------------------------------------
 
1562
m4_define([lt_decl_dquote_varnames],
 
1563
[_lt_decl_filter([value], [2], $@)])
 
1564
 
 
1565
 
 
1566
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1567
# ---------------------------------------------------
 
1568
m4_define([lt_decl_varnames_tagged],
 
1569
[m4_assert([$# <= 2])dnl
 
1570
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1571
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1572
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1573
m4_define([_lt_decl_varnames_tagged],
 
1574
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1575
 
 
1576
 
 
1577
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1578
# ------------------------------------------------
 
1579
m4_define([lt_decl_all_varnames],
 
1580
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1581
     m4_if([$2], [],
 
1582
           m4_quote(lt_decl_varnames),
 
1583
        m4_quote(m4_shift($@))))[]dnl
 
1584
])
 
1585
m4_define([_lt_decl_all_varnames],
 
1586
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1587
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1588
])
 
1589
 
 
1590
 
 
1591
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1592
# ------------------------------------
 
1593
# Quote a variable value, and forward it to `config.status' so that its
 
1594
# declaration there will have the same value as in `configure'.  VARNAME
 
1595
# must have a single quote delimited value for this to work.
 
1596
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1597
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
 
1598
 
 
1599
 
 
1600
# _LT_CONFIG_STATUS_DECLARATIONS
 
1601
# ------------------------------
 
1602
# We delimit libtool config variables with single quotes, so when
 
1603
# we write them to config.status, we have to be sure to quote all
 
1604
# embedded single quotes properly.  In configure, this macro expands
 
1605
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1606
#
 
1607
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
 
1608
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1609
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1610
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1611
 
 
1612
 
 
1613
# _LT_LIBTOOL_TAGS
 
1614
# ----------------
 
1615
# Output comment and list of tags supported by the script
 
1616
m4_defun([_LT_LIBTOOL_TAGS],
 
1617
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1618
available_tags="_LT_TAGS"dnl
 
1619
])
 
1620
 
 
1621
 
 
1622
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1623
# -----------------------------------
 
1624
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1625
# expand to a commented shell variable setting:
 
1626
#
 
1627
#    # Some comment about what VAR is for.
 
1628
#    visible_name=$lt_internal_name
 
1629
m4_define([_LT_LIBTOOL_DECLARE],
 
1630
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1631
                                           [description])))[]dnl
 
1632
m4_pushdef([_libtool_name],
 
1633
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1634
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1635
    [0], [_libtool_name=[$]$1],
 
1636
    [1], [_libtool_name=$lt_[]$1],
 
1637
    [2], [_libtool_name=$lt_[]$1],
 
1638
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1639
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1640
])
 
1641
 
 
1642
 
 
1643
# _LT_LIBTOOL_CONFIG_VARS
 
1644
# -----------------------
 
1645
# Produce commented declarations of non-tagged libtool config variables
 
1646
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1647
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1648
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1649
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1650
[m4_foreach([_lt_var],
 
1651
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1652
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1653
 
 
1654
 
 
1655
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1656
# -------------------------
 
1657
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1658
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1659
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1660
 
 
1661
 
 
1662
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1663
# ------------------------------
 
1664
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1665
 
 
1666
 
 
1667
# _LT_CONFIG_COMMANDS
 
1668
# -------------------
 
1669
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1670
# variables for single and double quote escaping we saved from calls
 
1671
# to _LT_DECL, we can put quote escaped variables declarations
 
1672
# into `config.status', and then the shell code to quote escape them in
 
1673
# for loops in `config.status'.  Finally, any additional code accumulated
 
1674
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1675
m4_defun([_LT_CONFIG_COMMANDS],
 
1676
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1677
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1678
        dnl instead of duplicating it all over again into config.status,
 
1679
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1680
        dnl needs to know what name is stored there:
 
1681
        [AC_CONFIG_COMMANDS([libtool],
 
1682
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1683
    dnl If the libtool generation code is destined for config.status,
 
1684
    dnl expand the accumulated commands and init code now:
 
1685
    [AC_CONFIG_COMMANDS([libtool],
 
1686
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1687
])#_LT_CONFIG_COMMANDS
 
1688
 
 
1689
 
 
1690
# Initialize.
 
1691
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1692
[
 
1693
 
 
1694
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1695
# if CDPATH is set.
 
1696
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1697
 
 
1698
sed_quote_subst='$sed_quote_subst'
 
1699
double_quote_subst='$double_quote_subst'
 
1700
delay_variable_subst='$delay_variable_subst'
 
1701
_LT_CONFIG_STATUS_DECLARATIONS
 
1702
LTCC='$LTCC'
 
1703
LTCFLAGS='$LTCFLAGS'
 
1704
compiler='$compiler_DEFAULT'
 
1705
 
 
1706
# A function that is used when there is no print builtin or printf.
 
1707
func_fallback_echo ()
 
1708
{
 
1709
  eval 'cat <<_LTECHO_EOF
 
1710
\$[]1
 
1711
_LTECHO_EOF'
 
1712
}
 
1713
 
 
1714
# Quote evaled strings.
 
1715
for var in lt_decl_all_varnames([[ \
 
1716
]], lt_decl_quote_varnames); do
 
1717
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1718
    *[[\\\\\\\`\\"\\\$]]*)
 
1719
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1720
      ;;
 
1721
    *)
 
1722
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1723
      ;;
 
1724
    esac
 
1725
done
 
1726
 
 
1727
# Double-quote double-evaled strings.
 
1728
for var in lt_decl_all_varnames([[ \
 
1729
]], lt_decl_dquote_varnames); do
 
1730
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1731
    *[[\\\\\\\`\\"\\\$]]*)
 
1732
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1733
      ;;
 
1734
    *)
 
1735
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1736
      ;;
 
1737
    esac
 
1738
done
 
1739
 
 
1740
_LT_OUTPUT_LIBTOOL_INIT
 
1741
])
 
1742
 
 
1743
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1744
# ------------------------------------
 
1745
# Generate a child script FILE with all initialization necessary to
 
1746
# reuse the environment learned by the parent script, and make the
 
1747
# file executable.  If COMMENT is supplied, it is inserted after the
 
1748
# `#!' sequence but before initialization text begins.  After this
 
1749
# macro, additional text can be appended to FILE to form the body of
 
1750
# the child script.  The macro ends with non-zero status if the
 
1751
# file could not be fully written (such as if the disk is full).
 
1752
m4_ifdef([AS_INIT_GENERATED],
 
1753
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1754
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1755
[m4_require([AS_PREPARE])]dnl
 
1756
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1757
[lt_write_fail=0
 
1758
cat >$1 <<_ASEOF || lt_write_fail=1
 
1759
#! $SHELL
 
1760
# Generated by $as_me.
 
1761
$2
 
1762
SHELL=\${CONFIG_SHELL-$SHELL}
 
1763
export SHELL
 
1764
_ASEOF
 
1765
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1766
AS_SHELL_SANITIZE
 
1767
_AS_PREPARE
 
1768
exec AS_MESSAGE_FD>&1
 
1769
_ASEOF
 
1770
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1771
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
 
1772
 
 
1773
# LT_OUTPUT
 
1774
# ---------
 
1775
# This macro allows early generation of the libtool script (before
 
1776
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1777
# tests.
 
1778
AC_DEFUN([LT_OUTPUT],
 
1779
[: ${CONFIG_LT=./config.lt}
 
1780
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1781
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1782
[# Run this file to recreate a libtool stub with the current configuration.])
 
1783
 
 
1784
cat >>"$CONFIG_LT" <<\_LTEOF
 
1785
lt_cl_silent=false
 
1786
exec AS_MESSAGE_LOG_FD>>config.log
 
1787
{
 
1788
  echo
 
1789
  AS_BOX([Running $as_me.])
 
1790
} >&AS_MESSAGE_LOG_FD
 
1791
 
 
1792
lt_cl_help="\
 
1793
\`$as_me' creates a local libtool stub from the current configuration,
 
1794
for use in further configure time tests before the real libtool is
 
1795
generated.
 
1796
 
 
1797
Usage: $[0] [[OPTIONS]]
 
1798
 
 
1799
  -h, --help      print this help, then exit
 
1800
  -V, --version   print version number, then exit
 
1801
  -q, --quiet     do not print progress messages
 
1802
  -d, --debug     don't remove temporary files
 
1803
 
 
1804
Report bugs to <bug-libtool@gnu.org>."
 
1805
 
 
1806
lt_cl_version="\
 
1807
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1808
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1809
configured by $[0], generated by m4_PACKAGE_STRING.
 
1810
 
 
1811
Copyright (C) 2010 Free Software Foundation, Inc.
 
1812
This config.lt script is free software; the Free Software Foundation
 
1813
gives unlimited permision to copy, distribute and modify it."
 
1814
 
 
1815
while test $[#] != 0
 
1816
do
 
1817
  case $[1] in
 
1818
    --version | --v* | -V )
 
1819
      echo "$lt_cl_version"; exit 0 ;;
 
1820
    --help | --h* | -h )
 
1821
      echo "$lt_cl_help"; exit 0 ;;
 
1822
    --debug | --d* | -d )
 
1823
      debug=: ;;
 
1824
    --quiet | --q* | --silent | --s* | -q )
 
1825
      lt_cl_silent=: ;;
 
1826
 
 
1827
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1828
Try \`$[0] --help' for more information.]) ;;
 
1829
 
 
1830
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1831
Try \`$[0] --help' for more information.]) ;;
 
1832
  esac
 
1833
  shift
 
1834
done
 
1835
 
 
1836
if $lt_cl_silent; then
 
1837
  exec AS_MESSAGE_FD>/dev/null
 
1838
fi
 
1839
_LTEOF
 
1840
 
 
1841
cat >>"$CONFIG_LT" <<_LTEOF
 
1842
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1843
_LTEOF
 
1844
 
 
1845
cat >>"$CONFIG_LT" <<\_LTEOF
 
1846
AC_MSG_NOTICE([creating $ofile])
 
1847
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1848
AS_EXIT(0)
 
1849
_LTEOF
 
1850
chmod +x "$CONFIG_LT"
 
1851
 
 
1852
# configure is writing to config.log, but config.lt does its own redirection,
 
1853
# appending to config.log, which fails on DOS, as config.log is still kept
 
1854
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1855
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1856
lt_cl_success=:
 
1857
test "$silent" = yes &&
 
1858
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1859
exec AS_MESSAGE_LOG_FD>/dev/null
 
1860
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1861
exec AS_MESSAGE_LOG_FD>>config.log
 
1862
$lt_cl_success || AS_EXIT(1)
 
1863
])# LT_OUTPUT
 
1864
 
 
1865
 
 
1866
# _LT_CONFIG(TAG)
 
1867
# ---------------
 
1868
# If TAG is the built-in tag, create an initial libtool script with a
 
1869
# default configuration from the untagged config vars.  Otherwise add code
 
1870
# to config.status for appending the configuration named by TAG from the
 
1871
# matching tagged config vars.
 
1872
m4_defun([_LT_CONFIG],
 
1873
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1874
_LT_CONFIG_SAVE_COMMANDS([
 
1875
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1876
  m4_if(_LT_TAG, [C], [
 
1877
    # See if we are running on zsh, and set the options which allow our
 
1878
    # commands through without removal of \ escapes.
 
1879
    if test -n "${ZSH_VERSION+set}" ; then
 
1880
      setopt NO_GLOB_SUBST
 
1881
    fi
 
1882
 
 
1883
    cfgfile="${ofile}T"
 
1884
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1885
    $RM "$cfgfile"
 
1886
 
 
1887
    cat <<_LT_EOF >> "$cfgfile"
 
1888
#! $SHELL
 
1889
 
 
1890
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1891
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1892
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1893
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1894
#
 
1895
_LT_COPYING
 
1896
_LT_LIBTOOL_TAGS
 
1897
 
 
1898
# ### BEGIN LIBTOOL CONFIG
 
1899
_LT_LIBTOOL_CONFIG_VARS
 
1900
_LT_LIBTOOL_TAG_VARS
 
1901
# ### END LIBTOOL CONFIG
 
1902
 
 
1903
_LT_EOF
 
1904
 
 
1905
  case $host_os in
 
1906
  aix3*)
 
1907
    cat <<\_LT_EOF >> "$cfgfile"
 
1908
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1909
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1910
# vanish in a puff of smoke.
 
1911
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1912
  COLLECT_NAMES=
 
1913
  export COLLECT_NAMES
 
1914
fi
 
1915
_LT_EOF
 
1916
    ;;
 
1917
  esac
 
1918
 
 
1919
  _LT_PROG_LTMAIN
 
1920
 
 
1921
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1922
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1923
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1924
  # is reportedly fixed, but why not run on old versions too?
 
1925
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1926
     || (rm -f "$cfgfile"; exit 1)
 
1927
 
 
1928
  _LT_PROG_REPLACE_SHELLFNS
 
1929
 
 
1930
   mv -f "$cfgfile" "$ofile" ||
 
1931
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1932
  chmod +x "$ofile"
 
1933
],
 
1934
[cat <<_LT_EOF >> "$ofile"
 
1935
 
 
1936
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1937
dnl in a comment (ie after a #).
 
1938
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1939
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1940
# ### END LIBTOOL TAG CONFIG: $1
 
1941
_LT_EOF
 
1942
])dnl /m4_if
 
1943
],
 
1944
[m4_if([$1], [], [
 
1945
    PACKAGE='$PACKAGE'
 
1946
    VERSION='$VERSION'
 
1947
    TIMESTAMP='$TIMESTAMP'
 
1948
    RM='$RM'
 
1949
    ofile='$ofile'], [])
 
1950
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1951
])# _LT_CONFIG
 
1952
 
 
1953
 
 
1954
# LT_SUPPORTED_TAG(TAG)
 
1955
# ---------------------
 
1956
# Trace this macro to discover what tags are supported by the libtool
 
1957
# --tag option, using:
 
1958
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1959
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1960
 
 
1961
 
 
1962
# C support is built-in for now
 
1963
m4_define([_LT_LANG_C_enabled], [])
 
1964
m4_define([_LT_TAGS], [])
 
1965
 
 
1966
 
 
1967
# LT_LANG(LANG)
 
1968
# -------------
 
1969
# Enable libtool support for the given language if not already enabled.
 
1970
AC_DEFUN([LT_LANG],
 
1971
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1972
m4_case([$1],
 
1973
  [C],                  [_LT_LANG(C)],
 
1974
  [C++],                [_LT_LANG(CXX)],
 
1975
  [Java],               [_LT_LANG(GCJ)],
 
1976
  [Fortran 77],         [_LT_LANG(F77)],
 
1977
  [Fortran],            [_LT_LANG(FC)],
 
1978
  [Windows Resource],   [_LT_LANG(RC)],
 
1979
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1980
    [_LT_LANG($1)],
 
1981
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1982
])# LT_LANG
 
1983
 
 
1984
 
 
1985
# _LT_LANG(LANGNAME)
 
1986
# ------------------
 
1987
m4_defun([_LT_LANG],
 
1988
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1989
  [LT_SUPPORTED_TAG([$1])dnl
 
1990
  m4_append([_LT_TAGS], [$1 ])dnl
 
1991
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1992
  _LT_LANG_$1_CONFIG($1)])dnl
 
1993
])# _LT_LANG
 
1994
 
 
1995
 
 
1996
# _LT_LANG_DEFAULT_CONFIG
 
1997
# -----------------------
 
1998
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1999
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
2000
  [LT_LANG(CXX)],
 
2001
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
2002
 
 
2003
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
2004
  [LT_LANG(F77)],
 
2005
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
2006
 
 
2007
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
2008
  [LT_LANG(FC)],
 
2009
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
2010
 
 
2011
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
2012
dnl pulling things in needlessly.
 
2013
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
2014
  [LT_LANG(GCJ)],
 
2015
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
2016
    [LT_LANG(GCJ)],
 
2017
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
2018
      [LT_LANG(GCJ)],
 
2019
      [m4_ifdef([AC_PROG_GCJ],
 
2020
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
2021
       m4_ifdef([A][M_PROG_GCJ],
 
2022
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
2023
       m4_ifdef([LT_PROG_GCJ],
 
2024
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
2025
 
 
2026
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
2027
  [LT_LANG(RC)],
 
2028
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
2029
])# _LT_LANG_DEFAULT_CONFIG
 
2030
 
 
2031
# Obsolete macros:
 
2032
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
2033
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
2034
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
2035
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
2036
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
 
2037
dnl aclocal-1.4 backwards compatibility:
 
2038
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
2039
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
2040
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
2041
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
2042
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
 
2043
 
 
2044
 
 
2045
# _LT_TAG_COMPILER
 
2046
# ----------------
 
2047
m4_defun([_LT_TAG_COMPILER],
 
2048
[AC_REQUIRE([AC_PROG_CC])dnl
 
2049
 
 
2050
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
2051
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
2052
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
2053
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
2054
 
 
2055
# If no C compiler was specified, use CC.
 
2056
LTCC=${LTCC-"$CC"}
 
2057
 
 
2058
# If no C compiler flags were specified, use CFLAGS.
 
2059
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
2060
 
 
2061
# Allow CC to be a program name with arguments.
 
2062
compiler=$CC
 
2063
])# _LT_TAG_COMPILER
 
2064
 
 
2065
 
 
2066
# _LT_COMPILER_BOILERPLATE
 
2067
# ------------------------
 
2068
# Check for compiler boilerplate output or warnings with
 
2069
# the simple compiler test code.
 
2070
m4_defun([_LT_COMPILER_BOILERPLATE],
 
2071
[m4_require([_LT_DECL_SED])dnl
 
2072
ac_outfile=conftest.$ac_objext
 
2073
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
2074
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
2075
_lt_compiler_boilerplate=`cat conftest.err`
 
2076
$RM conftest*
 
2077
])# _LT_COMPILER_BOILERPLATE
 
2078
 
 
2079
 
 
2080
# _LT_LINKER_BOILERPLATE
 
2081
# ----------------------
 
2082
# Check for linker boilerplate output or warnings with
 
2083
# the simple link test code.
 
2084
m4_defun([_LT_LINKER_BOILERPLATE],
 
2085
[m4_require([_LT_DECL_SED])dnl
 
2086
ac_outfile=conftest.$ac_objext
 
2087
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
2088
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
2089
_lt_linker_boilerplate=`cat conftest.err`
 
2090
$RM -r conftest*
 
2091
])# _LT_LINKER_BOILERPLATE
 
2092
 
 
2093
# _LT_REQUIRED_DARWIN_CHECKS
 
2094
# -------------------------
 
2095
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
2096
  case $host_os in
 
2097
    rhapsody* | darwin*)
 
2098
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
2099
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
2100
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
2101
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
2102
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
2103
    _LT_DECL([], [DSYMUTIL], [1],
 
2104
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
2105
    _LT_DECL([], [NMEDIT], [1],
 
2106
      [Tool to change global to local symbols on Mac OS X])
 
2107
    _LT_DECL([], [LIPO], [1],
 
2108
      [Tool to manipulate fat objects and archives on Mac OS X])
 
2109
    _LT_DECL([], [OTOOL], [1],
 
2110
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
2111
    _LT_DECL([], [OTOOL64], [1],
 
2112
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
2113
 
 
2114
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
2115
      [lt_cv_apple_cc_single_mod=no
 
2116
      if test -z "${LT_MULTI_MODULE}"; then
 
2117
        # By default we will add the -single_module flag. You can override
 
2118
        # by either setting the environment variable LT_MULTI_MODULE
 
2119
        # non-empty at configure time, or by adding -multi_module to the
 
2120
        # link flags.
 
2121
        rm -rf libconftest.dylib*
 
2122
        echo "int foo(void){return 1;}" > conftest.c
 
2123
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
2124
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
2125
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
2126
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
2127
        _lt_result=$?
 
2128
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
2129
          lt_cv_apple_cc_single_mod=yes
 
2130
        else
 
2131
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
2132
        fi
 
2133
        rm -rf libconftest.dylib*
 
2134
        rm -f conftest.*
 
2135
      fi])
 
2136
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
2137
      [lt_cv_ld_exported_symbols_list],
 
2138
      [lt_cv_ld_exported_symbols_list=no
 
2139
      save_LDFLAGS=$LDFLAGS
 
2140
      echo "_main" > conftest.sym
 
2141
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
2142
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2143
        [lt_cv_ld_exported_symbols_list=yes],
 
2144
        [lt_cv_ld_exported_symbols_list=no])
 
2145
        LDFLAGS="$save_LDFLAGS"
 
2146
    ])
 
2147
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
2148
      [lt_cv_ld_force_load=no
 
2149
      cat > conftest.c << _LT_EOF
 
2150
int forced_loaded() { return 2;}
 
2151
_LT_EOF
 
2152
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
2153
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
2154
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
2155
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
2156
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
2157
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
2158
      cat > conftest.c << _LT_EOF
 
2159
int main() { return 0;}
 
2160
_LT_EOF
 
2161
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
2162
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
2163
      _lt_result=$?
 
2164
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
2165
        lt_cv_ld_force_load=yes
 
2166
      else
 
2167
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2168
      fi
 
2169
        rm -f conftest.err libconftest.a conftest conftest.c
 
2170
        rm -rf conftest.dSYM
 
2171
    ])
 
2172
    case $host_os in
 
2173
    rhapsody* | darwin1.[[012]])
 
2174
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
2175
    darwin1.*)
 
2176
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2177
    darwin*) # darwin 5.x on
 
2178
      # if running on 10.5 or later, the deployment target defaults
 
2179
      # to the OS version, if on x86, and 10.4, the deployment
 
2180
      # target defaults to 10.4. Don't you love it?
 
2181
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
2182
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
2183
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2184
        10.[[012]]*)
 
2185
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2186
        10.*)
 
2187
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2188
      esac
 
2189
    ;;
 
2190
  esac
 
2191
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
2192
      _lt_dar_single_mod='$single_module'
 
2193
    fi
 
2194
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
2195
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
2196
    else
 
2197
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2198
    fi
 
2199
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
2200
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
2201
    else
 
2202
      _lt_dsymutil=
 
2203
    fi
 
2204
    ;;
 
2205
  esac
 
2206
])
 
2207
 
 
2208
 
 
2209
# _LT_DARWIN_LINKER_FEATURES
 
2210
# --------------------------
 
2211
# Checks for linker and compiler features on darwin
 
2212
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
2213
[
 
2214
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
2215
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
2216
  _LT_TAGVAR(hardcode_direct, $1)=no
 
2217
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
2218
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2219
  if test "$lt_cv_ld_force_load" = "yes"; then
 
2220
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
2221
  else
 
2222
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2223
  fi
 
2224
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
2225
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
2226
  case $cc_basename in
 
2227
     ifort*) _lt_dar_can_shared=yes ;;
 
2228
     *) _lt_dar_can_shared=$GCC ;;
 
2229
  esac
 
2230
  if test "$_lt_dar_can_shared" = "yes"; then
 
2231
    output_verbose_link_cmd=func_echo_all
 
2232
    _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}"
 
2233
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
2234
    _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}"
 
2235
    _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}"
 
2236
    m4_if([$1], [CXX],
 
2237
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
2238
      _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}"
 
2239
      _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}"
 
2240
    fi
 
2241
],[])
 
2242
  else
 
2243
  _LT_TAGVAR(ld_shlibs, $1)=no
 
2244
  fi
 
2245
])
 
2246
 
 
2247
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
2248
# ----------------------------------
 
2249
# Links a minimal program and checks the executable
 
2250
# for the system default hardcoded library path. In most cases,
 
2251
# this is /usr/lib:/lib, but when the MPI compilers are used
 
2252
# the location of the communication and MPI libs are included too.
 
2253
# If we don't find anything, use the default library path according
 
2254
# to the aix ld manual.
 
2255
# Store the results from the different compilers for each TAGNAME.
 
2256
# Allow to override them for all tags through lt_cv_aix_libpath.
 
2257
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
2258
[m4_require([_LT_DECL_SED])dnl
 
2259
if test "${lt_cv_aix_libpath+set}" = set; then
 
2260
  aix_libpath=$lt_cv_aix_libpath
 
2261
else
 
2262
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
2263
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
2264
  lt_aix_libpath_sed='[
 
2265
      /Import File Strings/,/^$/ {
 
2266
          /^0/ {
 
2267
              s/^0  *\([^ ]*\) *$/\1/
 
2268
              p
 
2269
          }
 
2270
      }]'
 
2271
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2272
  # Check for a 64-bit object if we didn't find anything.
 
2273
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2274
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2275
  fi],[])
 
2276
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2277
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
2278
  fi
 
2279
  ])
 
2280
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
2281
fi
 
2282
])# _LT_SYS_MODULE_PATH_AIX
 
2283
 
 
2284
 
 
2285
# _LT_SHELL_INIT(ARG)
 
2286
# -------------------
 
2287
m4_define([_LT_SHELL_INIT],
 
2288
[m4_divert_text([M4SH-INIT], [$1
 
2289
])])# _LT_SHELL_INIT
 
2290
 
 
2291
 
 
2292
 
 
2293
# _LT_PROG_ECHO_BACKSLASH
 
2294
# -----------------------
 
2295
# Find how we can fake an echo command that does not interpret backslash.
 
2296
# In particular, with Autoconf 2.60 or later we add some code to the start
 
2297
# of the generated configure script which will find a shell with a builtin
 
2298
# printf (which we can use as an echo command).
 
2299
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2300
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2301
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2302
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2303
 
 
2304
AC_MSG_CHECKING([how to print strings])
 
2305
# Test print first, because it will be a builtin if present.
 
2306
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2307
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2308
  ECHO='print -r --'
 
2309
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2310
  ECHO='printf %s\n'
 
2311
else
 
2312
  # Use this function as a fallback that always works.
 
2313
  func_fallback_echo ()
 
2314
  {
 
2315
    eval 'cat <<_LTECHO_EOF
 
2316
$[]1
 
2317
_LTECHO_EOF'
 
2318
  }
 
2319
  ECHO='func_fallback_echo'
 
2320
fi
 
2321
 
 
2322
# func_echo_all arg...
 
2323
# Invoke $ECHO with all args, space-separated.
 
2324
func_echo_all ()
 
2325
{
 
2326
    $ECHO "$*" 
 
2327
}
 
2328
 
 
2329
case "$ECHO" in
 
2330
  printf*) AC_MSG_RESULT([printf]) ;;
 
2331
  print*) AC_MSG_RESULT([print -r]) ;;
 
2332
  *) AC_MSG_RESULT([cat]) ;;
 
2333
esac
 
2334
 
 
2335
m4_ifdef([_AS_DETECT_SUGGESTED],
 
2336
[_AS_DETECT_SUGGESTED([
 
2337
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
2338
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2339
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2340
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2341
    PATH=/empty FPATH=/empty; export PATH FPATH
 
2342
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
2343
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
2344
 
 
2345
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2346
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 
2347
])# _LT_PROG_ECHO_BACKSLASH
 
2348
 
 
2349
 
 
2350
# _LT_WITH_SYSROOT
 
2351
# ----------------
 
2352
AC_DEFUN([_LT_WITH_SYSROOT],
 
2353
[AC_MSG_CHECKING([for sysroot])
 
2354
AC_ARG_WITH([sysroot],
 
2355
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
2356
                        (or the compiler's sysroot if not specified).],
 
2357
[], [with_sysroot=no])
 
2358
 
 
2359
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
2360
dnl in case the user passed a directory name.
 
2361
lt_sysroot=
 
2362
case ${with_sysroot} in #(
 
2363
 yes)
 
2364
   if test "$GCC" = yes; then
 
2365
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
2366
   fi
 
2367
   ;; #(
 
2368
 /*)
 
2369
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
2370
   ;; #(
 
2371
 no|'')
 
2372
   ;; #(
 
2373
 *)
 
2374
   AC_MSG_RESULT([${with_sysroot}])
 
2375
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
2376
   ;;
 
2377
esac
 
2378
 
 
2379
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
2380
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
2381
[dependent libraries, and in which our libraries should be installed.])])
 
2382
 
 
2383
# _LT_ENABLE_LOCK
 
2384
# ---------------
 
2385
m4_defun([_LT_ENABLE_LOCK],
 
2386
[AC_ARG_ENABLE([libtool-lock],
 
2387
  [AS_HELP_STRING([--disable-libtool-lock],
 
2388
    [avoid locking (might break parallel builds)])])
 
2389
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
2390
 
 
2391
# Some flags need to be propagated to the compiler or linker for good
 
2392
# libtool support.
 
2393
case $host in
 
2394
ia64-*-hpux*)
 
2395
  # Find out which ABI we are using.
 
2396
  echo 'int i;' > conftest.$ac_ext
 
2397
  if AC_TRY_EVAL(ac_compile); then
 
2398
    case `/usr/bin/file conftest.$ac_objext` in
 
2399
      *ELF-32*)
 
2400
        HPUX_IA64_MODE="32"
 
2401
        ;;
 
2402
      *ELF-64*)
 
2403
        HPUX_IA64_MODE="64"
 
2404
        ;;
 
2405
    esac
 
2406
  fi
 
2407
  rm -rf conftest*
 
2408
  ;;
 
2409
*-*-irix6*)
 
2410
  # Find out which ABI we are using.
 
2411
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 
2412
  if AC_TRY_EVAL(ac_compile); then
 
2413
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2414
      case `/usr/bin/file conftest.$ac_objext` in
 
2415
        *32-bit*)
 
2416
          LD="${LD-ld} -melf32bsmip"
 
2417
          ;;
 
2418
        *N32*)
 
2419
          LD="${LD-ld} -melf32bmipn32"
 
2420
          ;;
 
2421
        *64-bit*)
 
2422
          LD="${LD-ld} -melf64bmip"
 
2423
        ;;
 
2424
      esac
 
2425
    else
 
2426
      case `/usr/bin/file conftest.$ac_objext` in
 
2427
        *32-bit*)
 
2428
          LD="${LD-ld} -32"
 
2429
          ;;
 
2430
        *N32*)
 
2431
          LD="${LD-ld} -n32"
 
2432
          ;;
 
2433
        *64-bit*)
 
2434
          LD="${LD-ld} -64"
 
2435
          ;;
 
2436
      esac
 
2437
    fi
 
2438
  fi
 
2439
  rm -rf conftest*
 
2440
  ;;
 
2441
 
 
2442
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
2443
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
2444
  # Find out which ABI we are using.
 
2445
  echo 'int i;' > conftest.$ac_ext
 
2446
  if AC_TRY_EVAL(ac_compile); then
 
2447
    case `/usr/bin/file conftest.o` in
 
2448
      *32-bit*)
 
2449
        case $host in
 
2450
          x86_64-*kfreebsd*-gnu)
 
2451
            LD="${LD-ld} -m elf_i386_fbsd"
 
2452
            ;;
 
2453
          x86_64-*linux*)
 
2454
            LD="${LD-ld} -m elf_i386"
 
2455
            ;;
 
2456
          ppc64-*linux*|powerpc64-*linux*)
 
2457
            LD="${LD-ld} -m elf32ppclinux"
 
2458
            ;;
 
2459
          s390x-*linux*)
 
2460
            LD="${LD-ld} -m elf_s390"
 
2461
            ;;
 
2462
          sparc64-*linux*)
 
2463
            LD="${LD-ld} -m elf32_sparc"
 
2464
            ;;
 
2465
        esac
 
2466
        ;;
 
2467
      *64-bit*)
 
2468
        case $host in
 
2469
          x86_64-*kfreebsd*-gnu)
 
2470
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2471
            ;;
 
2472
          x86_64-*linux*)
 
2473
            LD="${LD-ld} -m elf_x86_64"
 
2474
            ;;
 
2475
          ppc*-*linux*|powerpc*-*linux*)
 
2476
            LD="${LD-ld} -m elf64ppc"
 
2477
            ;;
 
2478
          s390*-*linux*|s390*-*tpf*)
 
2479
            LD="${LD-ld} -m elf64_s390"
 
2480
            ;;
 
2481
          sparc*-*linux*)
 
2482
            LD="${LD-ld} -m elf64_sparc"
 
2483
            ;;
 
2484
        esac
 
2485
        ;;
 
2486
    esac
 
2487
  fi
 
2488
  rm -rf conftest*
 
2489
  ;;
 
2490
 
 
2491
*-*-sco3.2v5*)
 
2492
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
2493
  SAVE_CFLAGS="$CFLAGS"
 
2494
  CFLAGS="$CFLAGS -belf"
 
2495
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
2496
    [AC_LANG_PUSH(C)
 
2497
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2498
     AC_LANG_POP])
 
2499
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
2500
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
2501
    CFLAGS="$SAVE_CFLAGS"
 
2502
  fi
 
2503
  ;;
 
2504
sparc*-*solaris*)
 
2505
  # Find out which ABI we are using.
 
2506
  echo 'int i;' > conftest.$ac_ext
 
2507
  if AC_TRY_EVAL(ac_compile); then
 
2508
    case `/usr/bin/file conftest.o` in
 
2509
    *64-bit*)
 
2510
      case $lt_cv_prog_gnu_ld in
 
2511
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2512
      *)
 
2513
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2514
          LD="${LD-ld} -64"
 
2515
        fi
 
2516
        ;;
 
2517
      esac
 
2518
      ;;
 
2519
    esac
 
2520
  fi
 
2521
  rm -rf conftest*
 
2522
  ;;
 
2523
esac
 
2524
 
 
2525
need_locks="$enable_libtool_lock"
 
2526
])# _LT_ENABLE_LOCK
 
2527
 
 
2528
 
 
2529
# _LT_PROG_AR
 
2530
# -----------
 
2531
m4_defun([_LT_PROG_AR],
 
2532
[AC_CHECK_TOOLS(AR, [ar], false)
 
2533
: ${AR=ar}
 
2534
: ${AR_FLAGS=cru}
 
2535
_LT_DECL([], [AR], [1], [The archiver])
 
2536
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2537
 
 
2538
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2539
  [lt_cv_ar_at_file=no
 
2540
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2541
     [echo conftest.$ac_objext > conftest.lst
 
2542
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2543
      AC_TRY_EVAL([lt_ar_try])
 
2544
      if test "$ac_status" -eq 0; then
 
2545
        # Ensure the archiver fails upon bogus file names.
 
2546
        rm -f conftest.$ac_objext libconftest.a
 
2547
        AC_TRY_EVAL([lt_ar_try])
 
2548
        if test "$ac_status" -ne 0; then
 
2549
          lt_cv_ar_at_file=@
 
2550
        fi
 
2551
      fi
 
2552
      rm -f conftest.* libconftest.a
 
2553
     ])
 
2554
  ])
 
2555
 
 
2556
if test "x$lt_cv_ar_at_file" = xno; then
 
2557
  archiver_list_spec=
 
2558
else
 
2559
  archiver_list_spec=$lt_cv_ar_at_file
 
2560
fi
 
2561
_LT_DECL([], [archiver_list_spec], [1],
 
2562
  [How to feed a file listing to the archiver])
 
2563
])# _LT_PROG_AR
 
2564
 
 
2565
 
 
2566
# _LT_CMD_OLD_ARCHIVE
 
2567
# -------------------
 
2568
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2569
[_LT_PROG_AR
 
2570
 
 
2571
AC_CHECK_TOOL(STRIP, strip, :)
 
2572
test -z "$STRIP" && STRIP=:
 
2573
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2574
 
 
2575
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2576
test -z "$RANLIB" && RANLIB=:
 
2577
_LT_DECL([], [RANLIB], [1],
 
2578
    [Commands used to install an old-style archive])
 
2579
 
 
2580
# Determine commands to create old-style static archives.
 
2581
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2582
old_postinstall_cmds='chmod 644 $oldlib'
 
2583
old_postuninstall_cmds=
 
2584
 
 
2585
if test -n "$RANLIB"; then
 
2586
  case $host_os in
 
2587
  openbsd*)
 
2588
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2589
    ;;
 
2590
  *)
 
2591
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2592
    ;;
 
2593
  esac
 
2594
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2595
fi
 
2596
 
 
2597
case $host_os in
 
2598
  darwin*)
 
2599
    lock_old_archive_extraction=yes ;;
 
2600
  *)
 
2601
    lock_old_archive_extraction=no ;;
 
2602
esac
 
2603
_LT_DECL([], [old_postinstall_cmds], [2])
 
2604
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2605
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2606
    [Commands used to build an old-style archive])
 
2607
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2608
    [Whether to use a lock for old archive extraction])
 
2609
])# _LT_CMD_OLD_ARCHIVE
 
2610
 
 
2611
 
 
2612
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2613
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
2614
# ----------------------------------------------------------------
 
2615
# Check whether the given compiler option works
 
2616
AC_DEFUN([_LT_COMPILER_OPTION],
 
2617
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2618
m4_require([_LT_DECL_SED])dnl
 
2619
AC_CACHE_CHECK([$1], [$2],
 
2620
  [$2=no
 
2621
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2622
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2623
   lt_compiler_flag="$3"
 
2624
   # Insert the option either (1) after the last *FLAGS variable, or
 
2625
   # (2) before a word containing "conftest.", or (3) at the end.
 
2626
   # Note that $ac_compile itself does not contain backslashes and begins
 
2627
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
2628
   # The option is referenced via a variable to avoid confusing sed.
 
2629
   lt_compile=`echo "$ac_compile" | $SED \
 
2630
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2631
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
2632
   -e 's:$: $lt_compiler_flag:'`
 
2633
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2634
   (eval "$lt_compile" 2>conftest.err)
 
2635
   ac_status=$?
 
2636
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
2637
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2638
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
2639
     # The compiler can only warn and ignore the option if not recognized
 
2640
     # So say no if there are warnings other than the usual output.
 
2641
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
2642
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2643
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
2644
       $2=yes
 
2645
     fi
 
2646
   fi
 
2647
   $RM conftest*
 
2648
])
 
2649
 
 
2650
if test x"[$]$2" = xyes; then
 
2651
    m4_if([$5], , :, [$5])
 
2652
else
 
2653
    m4_if([$6], , :, [$6])
 
2654
fi
 
2655
])# _LT_COMPILER_OPTION
 
2656
 
 
2657
# Old name:
 
2658
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2659
dnl aclocal-1.4 backwards compatibility:
 
2660
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2661
 
 
2662
 
 
2663
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2664
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2665
# ----------------------------------------------------
 
2666
# Check whether the given linker option works
 
2667
AC_DEFUN([_LT_LINKER_OPTION],
 
2668
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2669
m4_require([_LT_DECL_SED])dnl
 
2670
AC_CACHE_CHECK([$1], [$2],
 
2671
  [$2=no
 
2672
   save_LDFLAGS="$LDFLAGS"
 
2673
   LDFLAGS="$LDFLAGS $3"
 
2674
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
2675
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
2676
     # The linker can only warn and ignore the option if not recognized
 
2677
     # So say no if there are warnings
 
2678
     if test -s conftest.err; then
 
2679
       # Append any errors to the config.log.
 
2680
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
2681
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
2682
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2683
       if diff conftest.exp conftest.er2 >/dev/null; then
 
2684
         $2=yes
 
2685
       fi
 
2686
     else
 
2687
       $2=yes
 
2688
     fi
 
2689
   fi
 
2690
   $RM -r conftest*
 
2691
   LDFLAGS="$save_LDFLAGS"
 
2692
])
 
2693
 
 
2694
if test x"[$]$2" = xyes; then
 
2695
    m4_if([$4], , :, [$4])
 
2696
else
 
2697
    m4_if([$5], , :, [$5])
 
2698
fi
 
2699
])# _LT_LINKER_OPTION
 
2700
 
 
2701
# Old name:
 
2702
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2703
dnl aclocal-1.4 backwards compatibility:
 
2704
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2705
 
 
2706
 
 
2707
# LT_CMD_MAX_LEN
 
2708
#---------------
 
2709
AC_DEFUN([LT_CMD_MAX_LEN],
 
2710
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2711
# find the maximum length of command line arguments
 
2712
AC_MSG_CHECKING([the maximum length of command line arguments])
 
2713
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
2714
  i=0
 
2715
  teststring="ABCD"
 
2716
 
 
2717
  case $build_os in
 
2718
  msdosdjgpp*)
 
2719
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
2720
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
2721
    # during glob expansion).  Even if it were fixed, the result of this
 
2722
    # check would be larger than it should be.
 
2723
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
2724
    ;;
 
2725
 
 
2726
  gnu*)
 
2727
    # Under GNU Hurd, this test is not required because there is
 
2728
    # no limit to the length of command line arguments.
 
2729
    # Libtool will interpret -1 as no limit whatsoever
 
2730
    lt_cv_sys_max_cmd_len=-1;
 
2731
    ;;
 
2732
 
 
2733
  cygwin* | mingw* | cegcc*)
 
2734
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
2735
    # about 5 minutes as the teststring grows exponentially.
 
2736
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
2737
    # you end up with a "frozen" computer, even though with patience
 
2738
    # the test eventually succeeds (with a max line length of 256k).
 
2739
    # Instead, let's just punt: use the minimum linelength reported by
 
2740
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
2741
    lt_cv_sys_max_cmd_len=8192;
 
2742
    ;;
 
2743
 
 
2744
  mint*)
 
2745
    # On MiNT this can take a long time and run out of memory.
 
2746
    lt_cv_sys_max_cmd_len=8192;
 
2747
    ;;
 
2748
 
 
2749
  amigaos*)
 
2750
    # On AmigaOS with pdksh, this test takes hours, literally.
 
2751
    # So we just punt and use a minimum line length of 8192.
 
2752
    lt_cv_sys_max_cmd_len=8192;
 
2753
    ;;
 
2754
 
 
2755
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
2756
    # This has been around since 386BSD, at least.  Likely further.
 
2757
    if test -x /sbin/sysctl; then
 
2758
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
2759
    elif test -x /usr/sbin/sysctl; then
 
2760
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
2761
    else
 
2762
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
2763
    fi
 
2764
    # And add a safety zone
 
2765
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2766
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2767
    ;;
 
2768
 
 
2769
  interix*)
 
2770
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
2771
    lt_cv_sys_max_cmd_len=196608
 
2772
    ;;
 
2773
 
 
2774
  osf*)
 
2775
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
2776
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
2777
    # nice to cause kernel panics so lets avoid the loop below.
 
2778
    # First set a reasonable default.
 
2779
    lt_cv_sys_max_cmd_len=16384
 
2780
    #
 
2781
    if test -x /sbin/sysconfig; then
 
2782
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
2783
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
2784
      esac
 
2785
    fi
 
2786
    ;;
 
2787
  sco3.2v5*)
 
2788
    lt_cv_sys_max_cmd_len=102400
 
2789
    ;;
 
2790
  sysv5* | sco5v6* | sysv4.2uw2*)
 
2791
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
2792
    if test -n "$kargmax"; then
 
2793
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
2794
    else
 
2795
      lt_cv_sys_max_cmd_len=32768
 
2796
    fi
 
2797
    ;;
 
2798
  *)
 
2799
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
2800
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
2801
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2802
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2803
    else
 
2804
      # Make teststring a little bigger before we do anything with it.
 
2805
      # a 1K string should be a reasonable start.
 
2806
      for i in 1 2 3 4 5 6 7 8 ; do
 
2807
        teststring=$teststring$teststring
 
2808
      done
 
2809
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2810
      # If test is not a shell built-in, we'll probably end up computing a
 
2811
      # maximum length that is only half of the actual maximum length, but
 
2812
      # we can't tell.
 
2813
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2814
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
2815
              test $i != 17 # 1/2 MB should be enough
 
2816
      do
 
2817
        i=`expr $i + 1`
 
2818
        teststring=$teststring$teststring
 
2819
      done
 
2820
      # Only check the string length outside the loop.
 
2821
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
2822
      teststring=
 
2823
      # Add a significant safety factor because C++ compilers can tack on
 
2824
      # massive amounts of additional arguments before passing them to the
 
2825
      # linker.  It appears as though 1/2 is a usable value.
 
2826
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2827
    fi
 
2828
    ;;
 
2829
  esac
 
2830
])
 
2831
if test -n $lt_cv_sys_max_cmd_len ; then
 
2832
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
2833
else
 
2834
  AC_MSG_RESULT(none)
 
2835
fi
 
2836
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2837
_LT_DECL([], [max_cmd_len], [0],
 
2838
    [What is the maximum length of a command?])
 
2839
])# LT_CMD_MAX_LEN
 
2840
 
 
2841
# Old name:
 
2842
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2843
dnl aclocal-1.4 backwards compatibility:
 
2844
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2845
 
 
2846
 
 
2847
# _LT_HEADER_DLFCN
 
2848
# ----------------
 
2849
m4_defun([_LT_HEADER_DLFCN],
 
2850
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2851
])# _LT_HEADER_DLFCN
 
2852
 
 
2853
 
 
2854
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2855
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2856
# ----------------------------------------------------------------
 
2857
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2858
[m4_require([_LT_HEADER_DLFCN])dnl
 
2859
if test "$cross_compiling" = yes; then :
 
2860
  [$4]
 
2861
else
 
2862
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
2863
  lt_status=$lt_dlunknown
 
2864
  cat > conftest.$ac_ext <<_LT_EOF
 
2865
[#line $LINENO "configure"
 
2866
#include "confdefs.h"
 
2867
 
 
2868
#if HAVE_DLFCN_H
 
2869
#include <dlfcn.h>
 
2870
#endif
 
2871
 
 
2872
#include <stdio.h>
 
2873
 
 
2874
#ifdef RTLD_GLOBAL
 
2875
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
2876
#else
 
2877
#  ifdef DL_GLOBAL
 
2878
#    define LT_DLGLOBAL         DL_GLOBAL
 
2879
#  else
 
2880
#    define LT_DLGLOBAL         0
 
2881
#  endif
 
2882
#endif
 
2883
 
 
2884
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
2885
   find out it does not work in some platform. */
 
2886
#ifndef LT_DLLAZY_OR_NOW
 
2887
#  ifdef RTLD_LAZY
 
2888
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
2889
#  else
 
2890
#    ifdef DL_LAZY
 
2891
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
2892
#    else
 
2893
#      ifdef RTLD_NOW
 
2894
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
2895
#      else
 
2896
#        ifdef DL_NOW
 
2897
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
2898
#        else
 
2899
#          define LT_DLLAZY_OR_NOW      0
 
2900
#        endif
 
2901
#      endif
 
2902
#    endif
 
2903
#  endif
 
2904
#endif
 
2905
 
 
2906
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2907
   correspondingly for the symbols needed.  */
 
2908
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2909
int fnord () __attribute__((visibility("default")));
 
2910
#endif
 
2911
 
 
2912
int fnord () { return 42; }
 
2913
int main ()
 
2914
{
 
2915
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
2916
  int status = $lt_dlunknown;
 
2917
 
 
2918
  if (self)
 
2919
    {
 
2920
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
2921
      else
 
2922
        {
 
2923
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2924
          else puts (dlerror ());
 
2925
        }
 
2926
      /* dlclose (self); */
 
2927
    }
 
2928
  else
 
2929
    puts (dlerror ());
 
2930
 
 
2931
  return status;
 
2932
}]
 
2933
_LT_EOF
 
2934
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
2935
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
2936
    lt_status=$?
 
2937
    case x$lt_status in
 
2938
      x$lt_dlno_uscore) $1 ;;
 
2939
      x$lt_dlneed_uscore) $2 ;;
 
2940
      x$lt_dlunknown|x*) $3 ;;
 
2941
    esac
 
2942
  else :
 
2943
    # compilation failed
 
2944
    $3
 
2945
  fi
 
2946
fi
 
2947
rm -fr conftest*
 
2948
])# _LT_TRY_DLOPEN_SELF
 
2949
 
 
2950
 
 
2951
# LT_SYS_DLOPEN_SELF
 
2952
# ------------------
 
2953
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2954
[m4_require([_LT_HEADER_DLFCN])dnl
 
2955
if test "x$enable_dlopen" != xyes; then
 
2956
  enable_dlopen=unknown
 
2957
  enable_dlopen_self=unknown
 
2958
  enable_dlopen_self_static=unknown
 
2959
else
 
2960
  lt_cv_dlopen=no
 
2961
  lt_cv_dlopen_libs=
 
2962
 
 
2963
  case $host_os in
 
2964
  beos*)
 
2965
    lt_cv_dlopen="load_add_on"
 
2966
    lt_cv_dlopen_libs=
 
2967
    lt_cv_dlopen_self=yes
 
2968
    ;;
 
2969
 
 
2970
  mingw* | pw32* | cegcc*)
 
2971
    lt_cv_dlopen="LoadLibrary"
 
2972
    lt_cv_dlopen_libs=
 
2973
    ;;
 
2974
 
 
2975
  cygwin*)
 
2976
    lt_cv_dlopen="dlopen"
 
2977
    lt_cv_dlopen_libs=
 
2978
    ;;
 
2979
 
 
2980
  darwin*)
 
2981
  # if libdl is installed we need to link against it
 
2982
    AC_CHECK_LIB([dl], [dlopen],
 
2983
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
2984
    lt_cv_dlopen="dyld"
 
2985
    lt_cv_dlopen_libs=
 
2986
    lt_cv_dlopen_self=yes
 
2987
    ])
 
2988
    ;;
 
2989
 
 
2990
  *)
 
2991
    AC_CHECK_FUNC([shl_load],
 
2992
          [lt_cv_dlopen="shl_load"],
 
2993
      [AC_CHECK_LIB([dld], [shl_load],
 
2994
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
2995
        [AC_CHECK_FUNC([dlopen],
 
2996
              [lt_cv_dlopen="dlopen"],
 
2997
          [AC_CHECK_LIB([dl], [dlopen],
 
2998
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
2999
            [AC_CHECK_LIB([svld], [dlopen],
 
3000
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
3001
              [AC_CHECK_LIB([dld], [dld_link],
 
3002
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
3003
              ])
 
3004
            ])
 
3005
          ])
 
3006
        ])
 
3007
      ])
 
3008
    ;;
 
3009
  esac
 
3010
 
 
3011
  if test "x$lt_cv_dlopen" != xno; then
 
3012
    enable_dlopen=yes
 
3013
  else
 
3014
    enable_dlopen=no
 
3015
  fi
 
3016
 
 
3017
  case $lt_cv_dlopen in
 
3018
  dlopen)
 
3019
    save_CPPFLAGS="$CPPFLAGS"
 
3020
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
3021
 
 
3022
    save_LDFLAGS="$LDFLAGS"
 
3023
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
3024
 
 
3025
    save_LIBS="$LIBS"
 
3026
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
3027
 
 
3028
    AC_CACHE_CHECK([whether a program can dlopen itself],
 
3029
          lt_cv_dlopen_self, [dnl
 
3030
          _LT_TRY_DLOPEN_SELF(
 
3031
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
3032
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
3033
    ])
 
3034
 
 
3035
    if test "x$lt_cv_dlopen_self" = xyes; then
 
3036
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
3037
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
3038
          lt_cv_dlopen_self_static, [dnl
 
3039
          _LT_TRY_DLOPEN_SELF(
 
3040
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
3041
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
3042
      ])
 
3043
    fi
 
3044
 
 
3045
    CPPFLAGS="$save_CPPFLAGS"
 
3046
    LDFLAGS="$save_LDFLAGS"
 
3047
    LIBS="$save_LIBS"
 
3048
    ;;
 
3049
  esac
 
3050
 
 
3051
  case $lt_cv_dlopen_self in
 
3052
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
3053
  *) enable_dlopen_self=unknown ;;
 
3054
  esac
 
3055
 
 
3056
  case $lt_cv_dlopen_self_static in
 
3057
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
3058
  *) enable_dlopen_self_static=unknown ;;
 
3059
  esac
 
3060
fi
 
3061
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
3062
         [Whether dlopen is supported])
 
3063
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
3064
         [Whether dlopen of programs is supported])
 
3065
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
3066
         [Whether dlopen of statically linked programs is supported])
 
3067
])# LT_SYS_DLOPEN_SELF
 
3068
 
 
3069
# Old name:
 
3070
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
3071
dnl aclocal-1.4 backwards compatibility:
 
3072
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
3073
 
 
3074
 
 
3075
# _LT_COMPILER_C_O([TAGNAME])
 
3076
# ---------------------------
 
3077
# Check to see if options -c and -o are simultaneously supported by compiler.
 
3078
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
3079
m4_defun([_LT_COMPILER_C_O],
 
3080
[m4_require([_LT_DECL_SED])dnl
 
3081
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3082
m4_require([_LT_TAG_COMPILER])dnl
 
3083
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
3084
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
3085
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
3086
   $RM -r conftest 2>/dev/null
 
3087
   mkdir conftest
 
3088
   cd conftest
 
3089
   mkdir out
 
3090
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
3091
 
 
3092
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
3093
   # Insert the option either (1) after the last *FLAGS variable, or
 
3094
   # (2) before a word containing "conftest.", or (3) at the end.
 
3095
   # Note that $ac_compile itself does not contain backslashes and begins
 
3096
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
3097
   lt_compile=`echo "$ac_compile" | $SED \
 
3098
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
3099
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
3100
   -e 's:$: $lt_compiler_flag:'`
 
3101
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3102
   (eval "$lt_compile" 2>out/conftest.err)
 
3103
   ac_status=$?
 
3104
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
3105
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3106
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
3107
   then
 
3108
     # The compiler can only warn and ignore the option if not recognized
 
3109
     # So say no if there are warnings
 
3110
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
3111
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
3112
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
3113
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
3114
     fi
 
3115
   fi
 
3116
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
3117
   $RM conftest*
 
3118
   # SGI C++ compiler will create directory out/ii_files/ for
 
3119
   # template instantiation
 
3120
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
3121
   $RM out/* && rmdir out
 
3122
   cd ..
 
3123
   $RM -r conftest
 
3124
   $RM conftest*
 
3125
])
 
3126
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
3127
        [Does compiler simultaneously support -c and -o options?])
 
3128
])# _LT_COMPILER_C_O
 
3129
 
 
3130
 
 
3131
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
3132
# ----------------------------------
 
3133
# Check to see if we can do hard links to lock some files if needed
 
3134
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
3135
[m4_require([_LT_ENABLE_LOCK])dnl
 
3136
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3137
_LT_COMPILER_C_O([$1])
 
3138
 
 
3139
hard_links="nottested"
 
3140
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
3141
  # do not overwrite the value of need_locks provided by the user
 
3142
  AC_MSG_CHECKING([if we can lock with hard links])
 
3143
  hard_links=yes
 
3144
  $RM conftest*
 
3145
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
3146
  touch conftest.a
 
3147
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
3148
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
3149
  AC_MSG_RESULT([$hard_links])
 
3150
  if test "$hard_links" = no; then
 
3151
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
3152
    need_locks=warn
 
3153
  fi
 
3154
else
 
3155
  need_locks=no
 
3156
fi
 
3157
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
3158
])# _LT_COMPILER_FILE_LOCKS
 
3159
 
 
3160
 
 
3161
# _LT_CHECK_OBJDIR
 
3162
# ----------------
 
3163
m4_defun([_LT_CHECK_OBJDIR],
 
3164
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
3165
[rm -f .libs 2>/dev/null
 
3166
mkdir .libs 2>/dev/null
 
3167
if test -d .libs; then
 
3168
  lt_cv_objdir=.libs
 
3169
else
 
3170
  # MS-DOS does not allow filenames that begin with a dot.
 
3171
  lt_cv_objdir=_libs
 
3172
fi
 
3173
rmdir .libs 2>/dev/null])
 
3174
objdir=$lt_cv_objdir
 
3175
_LT_DECL([], [objdir], [0],
 
3176
         [The name of the directory that contains temporary libtool files])dnl
 
3177
m4_pattern_allow([LT_OBJDIR])dnl
 
3178
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
3179
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
3180
])# _LT_CHECK_OBJDIR
 
3181
 
 
3182
 
 
3183
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
3184
# --------------------------------------
 
3185
# Check hardcoding attributes.
 
3186
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
3187
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
3188
_LT_TAGVAR(hardcode_action, $1)=
 
3189
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
3190
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
3191
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
3192
 
 
3193
  # We can hardcode non-existent directories.
 
3194
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
3195
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
3196
     # have to relink, otherwise we might link with an installed library
 
3197
     # when we should be linking with a yet-to-be-installed one
 
3198
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
3199
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
3200
    # Linking always hardcodes the temporary library directory.
 
3201
    _LT_TAGVAR(hardcode_action, $1)=relink
 
3202
  else
 
3203
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
3204
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
3205
  fi
 
3206
else
 
3207
  # We cannot hardcode anything, or else we can only hardcode existing
 
3208
  # directories.
 
3209
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
3210
fi
 
3211
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
3212
 
 
3213
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
3214
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
3215
  # Fast installation is not supported
 
3216
  enable_fast_install=no
 
3217
elif test "$shlibpath_overrides_runpath" = yes ||
 
3218
     test "$enable_shared" = no; then
 
3219
  # Fast installation is not necessary
 
3220
  enable_fast_install=needless
 
3221
fi
 
3222
_LT_TAGDECL([], [hardcode_action], [0],
 
3223
    [How to hardcode a shared library path into an executable])
 
3224
])# _LT_LINKER_HARDCODE_LIBPATH
 
3225
 
 
3226
 
 
3227
# _LT_CMD_STRIPLIB
 
3228
# ----------------
 
3229
m4_defun([_LT_CMD_STRIPLIB],
 
3230
[m4_require([_LT_DECL_EGREP])
 
3231
striplib=
 
3232
old_striplib=
 
3233
AC_MSG_CHECKING([whether stripping libraries is possible])
 
3234
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
3235
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
3236
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
3237
  AC_MSG_RESULT([yes])
 
3238
else
 
3239
# FIXME - insert some real tests, host_os isn't really good enough
 
3240
  case $host_os in
 
3241
  darwin*)
 
3242
    if test -n "$STRIP" ; then
 
3243
      striplib="$STRIP -x"
 
3244
      old_striplib="$STRIP -S"
 
3245
      AC_MSG_RESULT([yes])
 
3246
    else
 
3247
      AC_MSG_RESULT([no])
 
3248
    fi
 
3249
    ;;
 
3250
  *)
 
3251
    AC_MSG_RESULT([no])
 
3252
    ;;
 
3253
  esac
 
3254
fi
 
3255
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
3256
_LT_DECL([], [striplib], [1])
 
3257
])# _LT_CMD_STRIPLIB
 
3258
 
 
3259
 
 
3260
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
3261
# -----------------------------
 
3262
# PORTME Fill in your ld.so characteristics
 
3263
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
3264
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3265
m4_require([_LT_DECL_EGREP])dnl
 
3266
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3267
m4_require([_LT_DECL_OBJDUMP])dnl
 
3268
m4_require([_LT_DECL_SED])dnl
 
3269
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
3270
AC_MSG_CHECKING([dynamic linker characteristics])
 
3271
m4_if([$1],
 
3272
        [], [
 
3273
if test "$GCC" = yes; then
 
3274
  case $host_os in
 
3275
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
3276
    *) lt_awk_arg="/^libraries:/" ;;
 
3277
  esac
 
3278
  case $host_os in
 
3279
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
3280
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
3281
  esac
 
3282
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
3283
  case $lt_search_path_spec in
 
3284
  *\;*)
 
3285
    # if the path contains ";" then we assume it to be the separator
 
3286
    # otherwise default to the standard path separator (i.e. ":") - it is
 
3287
    # assumed that no part of a normal pathname contains ";" but that should
 
3288
    # okay in the real world where ";" in dirpaths is itself problematic.
 
3289
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
3290
    ;;
 
3291
  *)
 
3292
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
3293
    ;;
 
3294
  esac
 
3295
  # Ok, now we have the path, separated by spaces, we can step through it
 
3296
  # and add multilib dir if necessary.
 
3297
  lt_tmp_lt_search_path_spec=
 
3298
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
3299
  for lt_sys_path in $lt_search_path_spec; do
 
3300
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
3301
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
3302
    else
 
3303
      test -d "$lt_sys_path" && \
 
3304
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
3305
    fi
 
3306
  done
 
3307
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
3308
BEGIN {RS=" "; FS="/|\n";} {
 
3309
  lt_foo="";
 
3310
  lt_count=0;
 
3311
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
3312
    if ($lt_i != "" && $lt_i != ".") {
 
3313
      if ($lt_i == "..") {
 
3314
        lt_count++;
 
3315
      } else {
 
3316
        if (lt_count == 0) {
 
3317
          lt_foo="/" $lt_i lt_foo;
 
3318
        } else {
 
3319
          lt_count--;
 
3320
        }
 
3321
      }
 
3322
    }
 
3323
  }
 
3324
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
3325
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
3326
}'`
 
3327
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
3328
  # for these hosts.
 
3329
  case $host_os in
 
3330
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
3331
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
3332
  esac
 
3333
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
3334
else
 
3335
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3336
fi])
 
3337
library_names_spec=
 
3338
libname_spec='lib$name'
 
3339
soname_spec=
 
3340
shrext_cmds=".so"
 
3341
postinstall_cmds=
 
3342
postuninstall_cmds=
 
3343
finish_cmds=
 
3344
finish_eval=
 
3345
shlibpath_var=
 
3346
shlibpath_overrides_runpath=unknown
 
3347
version_type=none
 
3348
dynamic_linker="$host_os ld.so"
 
3349
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
3350
need_lib_prefix=unknown
 
3351
hardcode_into_libs=no
 
3352
 
 
3353
# when you set need_version to no, make sure it does not cause -set_version
 
3354
# flags to be left without arguments
 
3355
need_version=unknown
 
3356
 
 
3357
case $host_os in
 
3358
aix3*)
 
3359
  version_type=linux
 
3360
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
3361
  shlibpath_var=LIBPATH
 
3362
 
 
3363
  # AIX 3 has no versioning support, so we append a major version to the name.
 
3364
  soname_spec='${libname}${release}${shared_ext}$major'
 
3365
  ;;
 
3366
 
 
3367
aix[[4-9]]*)
 
3368
  version_type=linux
 
3369
  need_lib_prefix=no
 
3370
  need_version=no
 
3371
  hardcode_into_libs=yes
 
3372
  if test "$host_cpu" = ia64; then
 
3373
    # AIX 5 supports IA64
 
3374
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
3375
    shlibpath_var=LD_LIBRARY_PATH
 
3376
  else
 
3377
    # With GCC up to 2.95.x, collect2 would create an import file
 
3378
    # for dependence libraries.  The import file would start with
 
3379
    # the line `#! .'.  This would cause the generated library to
 
3380
    # depend on `.', always an invalid library.  This was fixed in
 
3381
    # development snapshots of GCC prior to 3.0.
 
3382
    case $host_os in
 
3383
      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
3384
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
3385
           echo ' yes '
 
3386
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
3387
        :
 
3388
      else
 
3389
        can_build_shared=no
 
3390
      fi
 
3391
      ;;
 
3392
    esac
 
3393
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
3394
    # soname into executable. Probably we can add versioning support to
 
3395
    # collect2, so additional links can be useful in future.
 
3396
    if test "$aix_use_runtimelinking" = yes; then
 
3397
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
3398
      # instead of lib<name>.a to let people know that these are not
 
3399
      # typical AIX shared libraries.
 
3400
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3401
    else
 
3402
      # We preserve .a as extension for shared libraries through AIX4.2
 
3403
      # and later when we are not doing run time linking.
 
3404
      library_names_spec='${libname}${release}.a $libname.a'
 
3405
      soname_spec='${libname}${release}${shared_ext}$major'
 
3406
    fi
 
3407
    shlibpath_var=LIBPATH
 
3408
  fi
 
3409
  ;;
 
3410
 
 
3411
amigaos*)
 
3412
  case $host_cpu in
 
3413
  powerpc)
 
3414
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3415
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3416
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3417
    ;;
 
3418
  m68k)
 
3419
    library_names_spec='$libname.ixlibrary $libname.a'
 
3420
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3421
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3422
    ;;
 
3423
  esac
 
3424
  ;;
 
3425
 
 
3426
beos*)
 
3427
  library_names_spec='${libname}${shared_ext}'
 
3428
  dynamic_linker="$host_os ld.so"
 
3429
  shlibpath_var=LIBRARY_PATH
 
3430
  ;;
 
3431
 
 
3432
bsdi[[45]]*)
 
3433
  version_type=linux
 
3434
  need_version=no
 
3435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3436
  soname_spec='${libname}${release}${shared_ext}$major'
 
3437
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
3438
  shlibpath_var=LD_LIBRARY_PATH
 
3439
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
3440
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
3441
  # the default ld.so.conf also contains /usr/contrib/lib and
 
3442
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
3443
  # libtool to hard-code these into programs
 
3444
  ;;
 
3445
 
 
3446
cygwin* | mingw* | pw32* | cegcc*)
 
3447
  version_type=windows
 
3448
  shrext_cmds=".dll"
 
3449
  need_version=no
 
3450
  need_lib_prefix=no
 
3451
 
 
3452
  case $GCC,$cc_basename in
 
3453
  yes,*)
 
3454
    # gcc
 
3455
    library_names_spec='$libname.dll.a'
 
3456
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3457
    postinstall_cmds='base_file=`basename \${file}`~
 
3458
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3459
      dldir=$destdir/`dirname \$dlpath`~
 
3460
      test -d \$dldir || mkdir -p \$dldir~
 
3461
      $install_prog $dir/$dlname \$dldir/$dlname~
 
3462
      chmod a+x \$dldir/$dlname~
 
3463
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3464
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3465
      fi'
 
3466
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3467
      dlpath=$dir/\$dldll~
 
3468
       $RM \$dlpath'
 
3469
    shlibpath_overrides_runpath=yes
 
3470
 
 
3471
    case $host_os in
 
3472
    cygwin*)
 
3473
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
3474
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3475
m4_if([$1], [],[
 
3476
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 
3477
      ;;
 
3478
    mingw* | cegcc*)
 
3479
      # MinGW DLLs use traditional 'lib' prefix
 
3480
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3481
      ;;
 
3482
    pw32*)
 
3483
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
3484
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3485
      ;;
 
3486
    esac
 
3487
    dynamic_linker='Win32 ld.exe'
 
3488
    ;;
 
3489
 
 
3490
  *,cl*)
 
3491
    # Native MSVC
 
3492
    libname_spec='$name'
 
3493
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3494
    library_names_spec='${libname}.dll.lib'
 
3495
 
 
3496
    case $build_os in
 
3497
    mingw*)
 
3498
      sys_lib_search_path_spec=
 
3499
      lt_save_ifs=$IFS
 
3500
      IFS=';'
 
3501
      for lt_path in $LIB
 
3502
      do
 
3503
        IFS=$lt_save_ifs
 
3504
        # Let DOS variable expansion print the short 8.3 style file name.
 
3505
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3506
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3507
      done
 
3508
      IFS=$lt_save_ifs
 
3509
      # Convert to MSYS style.
 
3510
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3511
      ;;
 
3512
    cygwin*)
 
3513
      # Convert to unix form, then to dos form, then back to unix form
 
3514
      # but this time dos style (no spaces!) so that the unix form looks
 
3515
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3516
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3517
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3518
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3519
      ;;
 
3520
    *)
 
3521
      sys_lib_search_path_spec="$LIB"
 
3522
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3523
        # It is most probably a Windows format PATH.
 
3524
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3525
      else
 
3526
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3527
      fi
 
3528
      # FIXME: find the short name or the path components, as spaces are
 
3529
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3530
      ;;
 
3531
    esac
 
3532
 
 
3533
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3534
    postinstall_cmds='base_file=`basename \${file}`~
 
3535
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3536
      dldir=$destdir/`dirname \$dlpath`~
 
3537
      test -d \$dldir || mkdir -p \$dldir~
 
3538
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3539
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3540
      dlpath=$dir/\$dldll~
 
3541
       $RM \$dlpath'
 
3542
    shlibpath_overrides_runpath=yes
 
3543
    dynamic_linker='Win32 link.exe'
 
3544
    ;;
 
3545
 
 
3546
  *)
 
3547
    # Assume MSVC wrapper
 
3548
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3549
    dynamic_linker='Win32 ld.exe'
 
3550
    ;;
 
3551
  esac
 
3552
  # FIXME: first we should search . and the directory the executable is in
 
3553
  shlibpath_var=PATH
 
3554
  ;;
 
3555
 
 
3556
darwin* | rhapsody*)
 
3557
  dynamic_linker="$host_os dyld"
 
3558
  version_type=darwin
 
3559
  need_lib_prefix=no
 
3560
  need_version=no
 
3561
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3562
  soname_spec='${libname}${release}${major}$shared_ext'
 
3563
  shlibpath_overrides_runpath=yes
 
3564
  shlibpath_var=DYLD_LIBRARY_PATH
 
3565
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
3566
m4_if([$1], [],[
 
3567
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
3568
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
3569
  ;;
 
3570
 
 
3571
dgux*)
 
3572
  version_type=linux
 
3573
  need_lib_prefix=no
 
3574
  need_version=no
 
3575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
3576
  soname_spec='${libname}${release}${shared_ext}$major'
 
3577
  shlibpath_var=LD_LIBRARY_PATH
 
3578
  ;;
 
3579
 
 
3580
freebsd1*)
 
3581
  dynamic_linker=no
 
3582
  ;;
 
3583
 
 
3584
freebsd* | dragonfly*)
 
3585
  # DragonFly does not have aout.  When/if they implement a new
 
3586
  # versioning mechanism, adjust this.
 
3587
  if test -x /usr/bin/objformat; then
 
3588
    objformat=`/usr/bin/objformat`
 
3589
  else
 
3590
    case $host_os in
 
3591
    freebsd[[123]]*) objformat=aout ;;
 
3592
    *) objformat=elf ;;
 
3593
    esac
 
3594
  fi
 
3595
  version_type=freebsd-$objformat
 
3596
  case $version_type in
 
3597
    freebsd-elf*)
 
3598
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3599
      need_version=no
 
3600
      need_lib_prefix=no
 
3601
      ;;
 
3602
    freebsd-*)
 
3603
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
3604
      need_version=yes
 
3605
      ;;
 
3606
  esac
 
3607
  shlibpath_var=LD_LIBRARY_PATH
 
3608
  case $host_os in
 
3609
  freebsd2*)
 
3610
    shlibpath_overrides_runpath=yes
 
3611
    ;;
 
3612
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
3613
    shlibpath_overrides_runpath=yes
 
3614
    hardcode_into_libs=yes
 
3615
    ;;
 
3616
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
3617
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
3618
    shlibpath_overrides_runpath=no
 
3619
    hardcode_into_libs=yes
 
3620
    ;;
 
3621
  *) # from 4.6 on, and DragonFly
 
3622
    shlibpath_overrides_runpath=yes
 
3623
    hardcode_into_libs=yes
 
3624
    ;;
 
3625
  esac
 
3626
  ;;
 
3627
 
 
3628
gnu*)
 
3629
  version_type=linux
 
3630
  need_lib_prefix=no
 
3631
  need_version=no
 
3632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3633
  soname_spec='${libname}${release}${shared_ext}$major'
 
3634
  shlibpath_var=LD_LIBRARY_PATH
 
3635
  hardcode_into_libs=yes
 
3636
  ;;
 
3637
 
 
3638
haiku*)
 
3639
  version_type=linux
 
3640
  need_lib_prefix=no
 
3641
  need_version=no
 
3642
  dynamic_linker="$host_os runtime_loader"
 
3643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3644
  soname_spec='${libname}${release}${shared_ext}$major'
 
3645
  shlibpath_var=LIBRARY_PATH
 
3646
  shlibpath_overrides_runpath=yes
 
3647
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
3648
  hardcode_into_libs=yes
 
3649
  ;;
 
3650
 
 
3651
hpux9* | hpux10* | hpux11*)
 
3652
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
3653
  # link against other versions.
 
3654
  version_type=sunos
 
3655
  need_lib_prefix=no
 
3656
  need_version=no
 
3657
  case $host_cpu in
 
3658
  ia64*)
 
3659
    shrext_cmds='.so'
 
3660
    hardcode_into_libs=yes
 
3661
    dynamic_linker="$host_os dld.so"
 
3662
    shlibpath_var=LD_LIBRARY_PATH
 
3663
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3664
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3665
    soname_spec='${libname}${release}${shared_ext}$major'
 
3666
    if test "X$HPUX_IA64_MODE" = X32; then
 
3667
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
3668
    else
 
3669
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
3670
    fi
 
3671
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3672
    ;;
 
3673
  hppa*64*)
 
3674
    shrext_cmds='.sl'
 
3675
    hardcode_into_libs=yes
 
3676
    dynamic_linker="$host_os dld.sl"
 
3677
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3678
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3679
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3680
    soname_spec='${libname}${release}${shared_ext}$major'
 
3681
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3682
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3683
    ;;
 
3684
  *)
 
3685
    shrext_cmds='.sl'
 
3686
    dynamic_linker="$host_os dld.sl"
 
3687
    shlibpath_var=SHLIB_PATH
 
3688
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
3689
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3690
    soname_spec='${libname}${release}${shared_ext}$major'
 
3691
    ;;
 
3692
  esac
 
3693
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
3694
  postinstall_cmds='chmod 555 $lib'
 
3695
  # or fails outright, so override atomically:
 
3696
  install_override_mode=555
 
3697
  ;;
 
3698
 
 
3699
interix[[3-9]]*)
 
3700
  version_type=linux
 
3701
  need_lib_prefix=no
 
3702
  need_version=no
 
3703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3704
  soname_spec='${libname}${release}${shared_ext}$major'
 
3705
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
3706
  shlibpath_var=LD_LIBRARY_PATH
 
3707
  shlibpath_overrides_runpath=no
 
3708
  hardcode_into_libs=yes
 
3709
  ;;
 
3710
 
 
3711
irix5* | irix6* | nonstopux*)
 
3712
  case $host_os in
 
3713
    nonstopux*) version_type=nonstopux ;;
 
3714
    *)
 
3715
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
3716
                version_type=linux
 
3717
        else
 
3718
                version_type=irix
 
3719
        fi ;;
 
3720
  esac
 
3721
  need_lib_prefix=no
 
3722
  need_version=no
 
3723
  soname_spec='${libname}${release}${shared_ext}$major'
 
3724
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3725
  case $host_os in
 
3726
  irix5* | nonstopux*)
 
3727
    libsuff= shlibsuff=
 
3728
    ;;
 
3729
  *)
 
3730
    case $LD in # libtool.m4 will add one of these switches to LD
 
3731
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
3732
      libsuff= shlibsuff= libmagic=32-bit;;
 
3733
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
3734
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
3735
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
3736
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
3737
    *) libsuff= shlibsuff= libmagic=never-match;;
 
3738
    esac
 
3739
    ;;
 
3740
  esac
 
3741
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
3742
  shlibpath_overrides_runpath=no
 
3743
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
3744
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3745
  hardcode_into_libs=yes
 
3746
  ;;
 
3747
 
 
3748
# No shared lib support for Linux oldld, aout, or coff.
 
3749
linux*oldld* | linux*aout* | linux*coff*)
 
3750
  dynamic_linker=no
 
3751
  ;;
 
3752
 
 
3753
# This must be Linux ELF.
 
3754
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3755
  version_type=linux
 
3756
  need_lib_prefix=no
 
3757
  need_version=no
 
3758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3759
  soname_spec='${libname}${release}${shared_ext}$major'
 
3760
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
3761
  shlibpath_var=LD_LIBRARY_PATH
 
3762
  shlibpath_overrides_runpath=no
 
3763
 
 
3764
  # Some binutils ld are patched to set DT_RUNPATH
 
3765
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3766
    [lt_cv_shlibpath_overrides_runpath=no
 
3767
    save_LDFLAGS=$LDFLAGS
 
3768
    save_libdir=$libdir
 
3769
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3770
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3771
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3772
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3773
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3774
    LDFLAGS=$save_LDFLAGS
 
3775
    libdir=$save_libdir
 
3776
    ])
 
3777
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
3778
 
 
3779
  # This implies no fast_install, which is unacceptable.
 
3780
  # Some rework will be needed to allow for fast_install
 
3781
  # before this can be enabled.
 
3782
  hardcode_into_libs=yes
 
3783
 
 
3784
  # Add ABI-specific directories to the system library path.
 
3785
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
3786
 
 
3787
  # Append ld.so.conf contents to the search path
 
3788
  if test -f /etc/ld.so.conf; then
 
3789
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
3790
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
3791
 
 
3792
  fi
 
3793
 
 
3794
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
3795
  # powerpc, because MkLinux only supported shared libraries with the
 
3796
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
3797
  # most powerpc-linux boxes support dynamic linking these days and
 
3798
  # people can always --disable-shared, the test was removed, and we
 
3799
  # assume the GNU/Linux dynamic linker is in use.
 
3800
  dynamic_linker='GNU/Linux ld.so'
 
3801
  ;;
 
3802
 
 
3803
netbsd*)
 
3804
  version_type=sunos
 
3805
  need_lib_prefix=no
 
3806
  need_version=no
 
3807
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
3808
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3809
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3810
    dynamic_linker='NetBSD (a.out) ld.so'
 
3811
  else
 
3812
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3813
    soname_spec='${libname}${release}${shared_ext}$major'
 
3814
    dynamic_linker='NetBSD ld.elf_so'
 
3815
  fi
 
3816
  shlibpath_var=LD_LIBRARY_PATH
 
3817
  shlibpath_overrides_runpath=yes
 
3818
  hardcode_into_libs=yes
 
3819
  ;;
 
3820
 
 
3821
newsos6)
 
3822
  version_type=linux
 
3823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3824
  shlibpath_var=LD_LIBRARY_PATH
 
3825
  shlibpath_overrides_runpath=yes
 
3826
  ;;
 
3827
 
 
3828
*nto* | *qnx*)
 
3829
  version_type=qnx
 
3830
  need_lib_prefix=no
 
3831
  need_version=no
 
3832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3833
  soname_spec='${libname}${release}${shared_ext}$major'
 
3834
  shlibpath_var=LD_LIBRARY_PATH
 
3835
  shlibpath_overrides_runpath=no
 
3836
  hardcode_into_libs=yes
 
3837
  dynamic_linker='ldqnx.so'
 
3838
  ;;
 
3839
 
 
3840
openbsd*)
 
3841
  version_type=sunos
 
3842
  sys_lib_dlsearch_path_spec="/usr/lib"
 
3843
  need_lib_prefix=no
 
3844
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
3845
  case $host_os in
 
3846
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3847
    *)                          need_version=no  ;;
 
3848
  esac
 
3849
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3850
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3851
  shlibpath_var=LD_LIBRARY_PATH
 
3852
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3853
    case $host_os in
 
3854
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
3855
        shlibpath_overrides_runpath=no
 
3856
        ;;
 
3857
      *)
 
3858
        shlibpath_overrides_runpath=yes
 
3859
        ;;
 
3860
      esac
 
3861
  else
 
3862
    shlibpath_overrides_runpath=yes
 
3863
  fi
 
3864
  ;;
 
3865
 
 
3866
os2*)
 
3867
  libname_spec='$name'
 
3868
  shrext_cmds=".dll"
 
3869
  need_lib_prefix=no
 
3870
  library_names_spec='$libname${shared_ext} $libname.a'
 
3871
  dynamic_linker='OS/2 ld.exe'
 
3872
  shlibpath_var=LIBPATH
 
3873
  ;;
 
3874
 
 
3875
osf3* | osf4* | osf5*)
 
3876
  version_type=osf
 
3877
  need_lib_prefix=no
 
3878
  need_version=no
 
3879
  soname_spec='${libname}${release}${shared_ext}$major'
 
3880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3881
  shlibpath_var=LD_LIBRARY_PATH
 
3882
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
3883
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3884
  ;;
 
3885
 
 
3886
rdos*)
 
3887
  dynamic_linker=no
 
3888
  ;;
 
3889
 
 
3890
solaris*)
 
3891
  version_type=linux
 
3892
  need_lib_prefix=no
 
3893
  need_version=no
 
3894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3895
  soname_spec='${libname}${release}${shared_ext}$major'
 
3896
  shlibpath_var=LD_LIBRARY_PATH
 
3897
  shlibpath_overrides_runpath=yes
 
3898
  hardcode_into_libs=yes
 
3899
  # ldd complains unless libraries are executable
 
3900
  postinstall_cmds='chmod +x $lib'
 
3901
  ;;
 
3902
 
 
3903
sunos4*)
 
3904
  version_type=sunos
 
3905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3906
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
3907
  shlibpath_var=LD_LIBRARY_PATH
 
3908
  shlibpath_overrides_runpath=yes
 
3909
  if test "$with_gnu_ld" = yes; then
 
3910
    need_lib_prefix=no
 
3911
  fi
 
3912
  need_version=yes
 
3913
  ;;
 
3914
 
 
3915
sysv4 | sysv4.3*)
 
3916
  version_type=linux
 
3917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3918
  soname_spec='${libname}${release}${shared_ext}$major'
 
3919
  shlibpath_var=LD_LIBRARY_PATH
 
3920
  case $host_vendor in
 
3921
    sni)
 
3922
      shlibpath_overrides_runpath=no
 
3923
      need_lib_prefix=no
 
3924
      runpath_var=LD_RUN_PATH
 
3925
      ;;
 
3926
    siemens)
 
3927
      need_lib_prefix=no
 
3928
      ;;
 
3929
    motorola)
 
3930
      need_lib_prefix=no
 
3931
      need_version=no
 
3932
      shlibpath_overrides_runpath=no
 
3933
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
3934
      ;;
 
3935
  esac
 
3936
  ;;
 
3937
 
 
3938
sysv4*MP*)
 
3939
  if test -d /usr/nec ;then
 
3940
    version_type=linux
 
3941
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
3942
    soname_spec='$libname${shared_ext}.$major'
 
3943
    shlibpath_var=LD_LIBRARY_PATH
 
3944
  fi
 
3945
  ;;
 
3946
 
 
3947
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3948
  version_type=freebsd-elf
 
3949
  need_lib_prefix=no
 
3950
  need_version=no
 
3951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3952
  soname_spec='${libname}${release}${shared_ext}$major'
 
3953
  shlibpath_var=LD_LIBRARY_PATH
 
3954
  shlibpath_overrides_runpath=yes
 
3955
  hardcode_into_libs=yes
 
3956
  if test "$with_gnu_ld" = yes; then
 
3957
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3958
  else
 
3959
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3960
    case $host_os in
 
3961
      sco3.2v5*)
 
3962
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
3963
        ;;
 
3964
    esac
 
3965
  fi
 
3966
  sys_lib_dlsearch_path_spec='/usr/lib'
 
3967
  ;;
 
3968
 
 
3969
tpf*)
 
3970
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3971
  version_type=linux
 
3972
  need_lib_prefix=no
 
3973
  need_version=no
 
3974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3975
  shlibpath_var=LD_LIBRARY_PATH
 
3976
  shlibpath_overrides_runpath=no
 
3977
  hardcode_into_libs=yes
 
3978
  ;;
 
3979
 
 
3980
uts4*)
 
3981
  version_type=linux
 
3982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3983
  soname_spec='${libname}${release}${shared_ext}$major'
 
3984
  shlibpath_var=LD_LIBRARY_PATH
 
3985
  ;;
 
3986
 
 
3987
*)
 
3988
  dynamic_linker=no
 
3989
  ;;
 
3990
esac
 
3991
AC_MSG_RESULT([$dynamic_linker])
 
3992
test "$dynamic_linker" = no && can_build_shared=no
 
3993
 
 
3994
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
3995
if test "$GCC" = yes; then
 
3996
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
3997
fi
 
3998
 
 
3999
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
4000
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
4001
fi
 
4002
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
4003
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
4004
fi
 
4005
 
 
4006
_LT_DECL([], [variables_saved_for_relink], [1],
 
4007
    [Variables whose values should be saved in libtool wrapper scripts and
 
4008
    restored at link time])
 
4009
_LT_DECL([], [need_lib_prefix], [0],
 
4010
    [Do we need the "lib" prefix for modules?])
 
4011
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
4012
_LT_DECL([], [version_type], [0], [Library versioning type])
 
4013
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
4014
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
4015
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
4016
    [Is shlibpath searched before the hard-coded library search path?])
 
4017
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
4018
_LT_DECL([], [library_names_spec], [1],
 
4019
    [[List of archive names.  First name is the real one, the rest are links.
 
4020
    The last name is the one that the linker finds with -lNAME]])
 
4021
_LT_DECL([], [soname_spec], [1],
 
4022
    [[The coded name of the library, if different from the real name]])
 
4023
_LT_DECL([], [install_override_mode], [1],
 
4024
    [Permission mode override for installation of shared libraries])
 
4025
_LT_DECL([], [postinstall_cmds], [2],
 
4026
    [Command to use after installation of a shared archive])
 
4027
_LT_DECL([], [postuninstall_cmds], [2],
 
4028
    [Command to use after uninstallation of a shared archive])
 
4029
_LT_DECL([], [finish_cmds], [2],
 
4030
    [Commands used to finish a libtool library installation in a directory])
 
4031
_LT_DECL([], [finish_eval], [1],
 
4032
    [[As "finish_cmds", except a single script fragment to be evaled but
 
4033
    not shown]])
 
4034
_LT_DECL([], [hardcode_into_libs], [0],
 
4035
    [Whether we should hardcode library paths into libraries])
 
4036
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
4037
    [Compile-time system search path for libraries])
 
4038
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
4039
    [Run-time system search path for libraries])
 
4040
])# _LT_SYS_DYNAMIC_LINKER
 
4041
 
 
4042
 
 
4043
# _LT_PATH_TOOL_PREFIX(TOOL)
 
4044
# --------------------------
 
4045
# find a file program which can recognize shared library
 
4046
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
4047
[m4_require([_LT_DECL_EGREP])dnl
 
4048
AC_MSG_CHECKING([for $1])
 
4049
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
4050
[case $MAGIC_CMD in
 
4051
[[\\/*] |  ?:[\\/]*])
 
4052
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4053
  ;;
 
4054
*)
 
4055
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
4056
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4057
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
4058
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
4059
dnl not every word.  This closes a longstanding sh security hole.
 
4060
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
4061
  for ac_dir in $ac_dummy; do
 
4062
    IFS="$lt_save_ifs"
 
4063
    test -z "$ac_dir" && ac_dir=.
 
4064
    if test -f $ac_dir/$1; then
 
4065
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
4066
      if test -n "$file_magic_test_file"; then
 
4067
        case $deplibs_check_method in
 
4068
        "file_magic "*)
 
4069
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
4070
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4071
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4072
            $EGREP "$file_magic_regex" > /dev/null; then
 
4073
            :
 
4074
          else
 
4075
            cat <<_LT_EOF 1>&2
 
4076
 
 
4077
*** Warning: the command libtool uses to detect shared libraries,
 
4078
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4079
*** The result is that libtool may fail to recognize shared libraries
 
4080
*** as such.  This will affect the creation of libtool libraries that
 
4081
*** depend on shared libraries, but programs linked with such libtool
 
4082
*** libraries will work regardless of this problem.  Nevertheless, you
 
4083
*** may want to report the problem to your system manager and/or to
 
4084
*** bug-libtool@gnu.org
 
4085
 
 
4086
_LT_EOF
 
4087
          fi ;;
 
4088
        esac
 
4089
      fi
 
4090
      break
 
4091
    fi
 
4092
  done
 
4093
  IFS="$lt_save_ifs"
 
4094
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
4095
  ;;
 
4096
esac])
 
4097
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4098
if test -n "$MAGIC_CMD"; then
 
4099
  AC_MSG_RESULT($MAGIC_CMD)
 
4100
else
 
4101
  AC_MSG_RESULT(no)
 
4102
fi
 
4103
_LT_DECL([], [MAGIC_CMD], [0],
 
4104
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
4105
])# _LT_PATH_TOOL_PREFIX
 
4106
 
 
4107
# Old name:
 
4108
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
4109
dnl aclocal-1.4 backwards compatibility:
 
4110
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
4111
 
 
4112
 
 
4113
# _LT_PATH_MAGIC
 
4114
# --------------
 
4115
# find a file program which can recognize a shared library
 
4116
m4_defun([_LT_PATH_MAGIC],
 
4117
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
4118
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4119
  if test -n "$ac_tool_prefix"; then
 
4120
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
4121
  else
 
4122
    MAGIC_CMD=:
 
4123
  fi
 
4124
fi
 
4125
])# _LT_PATH_MAGIC
 
4126
 
 
4127
 
 
4128
# LT_PATH_LD
 
4129
# ----------
 
4130
# find the pathname to the GNU or non-GNU linker
 
4131
AC_DEFUN([LT_PATH_LD],
 
4132
[AC_REQUIRE([AC_PROG_CC])dnl
 
4133
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4134
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
4135
m4_require([_LT_DECL_SED])dnl
 
4136
m4_require([_LT_DECL_EGREP])dnl
 
4137
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 
4138
 
 
4139
AC_ARG_WITH([gnu-ld],
 
4140
    [AS_HELP_STRING([--with-gnu-ld],
 
4141
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
4142
    [test "$withval" = no || with_gnu_ld=yes],
 
4143
    [with_gnu_ld=no])dnl
 
4144
 
 
4145
ac_prog=ld
 
4146
if test "$GCC" = yes; then
 
4147
  # Check if gcc -print-prog-name=ld gives a path.
 
4148
  AC_MSG_CHECKING([for ld used by $CC])
 
4149
  case $host in
 
4150
  *-*-mingw*)
 
4151
    # gcc leaves a trailing carriage return which upsets mingw
 
4152
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4153
  *)
 
4154
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4155
  esac
 
4156
  case $ac_prog in
 
4157
    # Accept absolute paths.
 
4158
    [[\\/]]* | ?:[[\\/]]*)
 
4159
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
4160
      # Canonicalize the pathname of ld
 
4161
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4162
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4163
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4164
      done
 
4165
      test -z "$LD" && LD="$ac_prog"
 
4166
      ;;
 
4167
  "")
 
4168
    # If it fails, then pretend we aren't using GCC.
 
4169
    ac_prog=ld
 
4170
    ;;
 
4171
  *)
 
4172
    # If it is relative, then search for the first ld in PATH.
 
4173
    with_gnu_ld=unknown
 
4174
    ;;
 
4175
  esac
 
4176
elif test "$with_gnu_ld" = yes; then
 
4177
  AC_MSG_CHECKING([for GNU ld])
 
4178
else
 
4179
  AC_MSG_CHECKING([for non-GNU ld])
 
4180
fi
 
4181
AC_CACHE_VAL(lt_cv_path_LD,
 
4182
[if test -z "$LD"; then
 
4183
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4184
  for ac_dir in $PATH; do
 
4185
    IFS="$lt_save_ifs"
 
4186
    test -z "$ac_dir" && ac_dir=.
 
4187
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4188
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4189
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4190
      # but apparently some variants of GNU ld only accept -v.
 
4191
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4192
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4193
      *GNU* | *'with BFD'*)
 
4194
        test "$with_gnu_ld" != no && break
 
4195
        ;;
 
4196
      *)
 
4197
        test "$with_gnu_ld" != yes && break
 
4198
        ;;
 
4199
      esac
 
4200
    fi
 
4201
  done
 
4202
  IFS="$lt_save_ifs"
 
4203
else
 
4204
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4205
fi])
 
4206
LD="$lt_cv_path_LD"
 
4207
if test -n "$LD"; then
 
4208
  AC_MSG_RESULT($LD)
 
4209
else
 
4210
  AC_MSG_RESULT(no)
 
4211
fi
 
4212
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
4213
_LT_PATH_LD_GNU
 
4214
AC_SUBST([LD])
 
4215
 
 
4216
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
4217
])# LT_PATH_LD
 
4218
 
 
4219
# Old names:
 
4220
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
4221
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
4222
dnl aclocal-1.4 backwards compatibility:
 
4223
dnl AC_DEFUN([AM_PROG_LD], [])
 
4224
dnl AC_DEFUN([AC_PROG_LD], [])
 
4225
 
 
4226
 
 
4227
# _LT_PATH_LD_GNU
 
4228
#- --------------
 
4229
m4_defun([_LT_PATH_LD_GNU],
 
4230
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
4231
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4232
case `$LD -v 2>&1 </dev/null` in
 
4233
*GNU* | *'with BFD'*)
 
4234
  lt_cv_prog_gnu_ld=yes
 
4235
  ;;
 
4236
*)
 
4237
  lt_cv_prog_gnu_ld=no
 
4238
  ;;
 
4239
esac])
 
4240
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4241
])# _LT_PATH_LD_GNU
 
4242
 
 
4243
 
 
4244
# _LT_CMD_RELOAD
 
4245
# --------------
 
4246
# find reload flag for linker
 
4247
#   -- PORTME Some linkers may need a different reload flag.
 
4248
m4_defun([_LT_CMD_RELOAD],
 
4249
[AC_CACHE_CHECK([for $LD option to reload object files],
 
4250
  lt_cv_ld_reload_flag,
 
4251
  [lt_cv_ld_reload_flag='-r'])
 
4252
reload_flag=$lt_cv_ld_reload_flag
 
4253
case $reload_flag in
 
4254
"" | " "*) ;;
 
4255
*) reload_flag=" $reload_flag" ;;
 
4256
esac
 
4257
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4258
case $host_os in
 
4259
  cygwin* | mingw* | pw32* | cegcc*)
 
4260
    if test "$GCC" != yes; then
 
4261
      reload_cmds=false
 
4262
    fi
 
4263
    ;;
 
4264
  darwin*)
 
4265
    if test "$GCC" = yes; then
 
4266
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4267
    else
 
4268
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4269
    fi
 
4270
    ;;
 
4271
esac
 
4272
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4273
_LT_TAGDECL([], [reload_cmds], [2])dnl
 
4274
])# _LT_CMD_RELOAD
 
4275
 
 
4276
 
 
4277
# _LT_CHECK_MAGIC_METHOD
 
4278
# ----------------------
 
4279
# how to check for library dependencies
 
4280
#  -- PORTME fill in with the dynamic library characteristics
 
4281
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
4282
[m4_require([_LT_DECL_EGREP])
 
4283
m4_require([_LT_DECL_OBJDUMP])
 
4284
AC_CACHE_CHECK([how to recognize dependent libraries],
 
4285
lt_cv_deplibs_check_method,
 
4286
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4287
lt_cv_file_magic_test_file=
 
4288
lt_cv_deplibs_check_method='unknown'
 
4289
# Need to set the preceding variable on all platforms that support
 
4290
# interlibrary dependencies.
 
4291
# 'none' -- dependencies not supported.
 
4292
# `unknown' -- same as none, but documents that we really don't know.
 
4293
# 'pass_all' -- all dependencies passed with no checks.
 
4294
# 'test_compile' -- check by making test program.
 
4295
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4296
# which responds to the $file_magic_cmd with a given extended regex.
 
4297
# If you have `file' or equivalent on your system and you're not sure
 
4298
# whether `pass_all' will *always* work, you probably want this one.
 
4299
 
 
4300
case $host_os in
 
4301
aix[[4-9]]*)
 
4302
  lt_cv_deplibs_check_method=pass_all
 
4303
  ;;
 
4304
 
 
4305
beos*)
 
4306
  lt_cv_deplibs_check_method=pass_all
 
4307
  ;;
 
4308
 
 
4309
bsdi[[45]]*)
 
4310
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
4311
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4312
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4313
  ;;
 
4314
 
 
4315
cygwin*)
 
4316
  # func_win32_libid is a shell function defined in ltmain.sh
 
4317
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4318
  lt_cv_file_magic_cmd='func_win32_libid'
 
4319
  ;;
 
4320
 
 
4321
mingw* | pw32*)
 
4322
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4323
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4324
  # unless we find 'file', for example because we are cross-compiling.
 
4325
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
4326
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
4327
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4328
    lt_cv_file_magic_cmd='func_win32_libid'
 
4329
  else
 
4330
    # Keep this pattern in sync with the one in func_win32_libid.
 
4331
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
4332
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4333
  fi
 
4334
  ;;
 
4335
 
 
4336
cegcc*)
 
4337
  # use the weaker test based on 'objdump'. See mingw*.
 
4338
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4339
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4340
  ;;
 
4341
 
 
4342
darwin* | rhapsody*)
 
4343
  lt_cv_deplibs_check_method=pass_all
 
4344
  ;;
 
4345
 
 
4346
freebsd* | dragonfly*)
 
4347
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4348
    case $host_cpu in
 
4349
    i*86 )
 
4350
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4351
      # Let's accept both of them until this is cleared up.
 
4352
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
4353
      lt_cv_file_magic_cmd=/usr/bin/file
 
4354
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4355
      ;;
 
4356
    esac
 
4357
  else
 
4358
    lt_cv_deplibs_check_method=pass_all
 
4359
  fi
 
4360
  ;;
 
4361
 
 
4362
gnu*)
 
4363
  lt_cv_deplibs_check_method=pass_all
 
4364
  ;;
 
4365
 
 
4366
haiku*)
 
4367
  lt_cv_deplibs_check_method=pass_all
 
4368
  ;;
 
4369
 
 
4370
hpux10.20* | hpux11*)
 
4371
  lt_cv_file_magic_cmd=/usr/bin/file
 
4372
  case $host_cpu in
 
4373
  ia64*)
 
4374
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
4375
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4376
    ;;
 
4377
  hppa*64*)
 
4378
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
 
4379
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4380
    ;;
 
4381
  *)
 
4382
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 
4383
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4384
    ;;
 
4385
  esac
 
4386
  ;;
 
4387
 
 
4388
interix[[3-9]]*)
 
4389
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4390
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
4391
  ;;
 
4392
 
 
4393
irix5* | irix6* | nonstopux*)
 
4394
  case $LD in
 
4395
  *-32|*"-32 ") libmagic=32-bit;;
 
4396
  *-n32|*"-n32 ") libmagic=N32;;
 
4397
  *-64|*"-64 ") libmagic=64-bit;;
 
4398
  *) libmagic=never-match;;
 
4399
  esac
 
4400
  lt_cv_deplibs_check_method=pass_all
 
4401
  ;;
 
4402
 
 
4403
# This must be Linux ELF.
 
4404
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4405
  lt_cv_deplibs_check_method=pass_all
 
4406
  ;;
 
4407
 
 
4408
netbsd*)
 
4409
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4410
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
4411
  else
 
4412
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
4413
  fi
 
4414
  ;;
 
4415
 
 
4416
newos6*)
 
4417
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
4418
  lt_cv_file_magic_cmd=/usr/bin/file
 
4419
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4420
  ;;
 
4421
 
 
4422
*nto* | *qnx*)
 
4423
  lt_cv_deplibs_check_method=pass_all
 
4424
  ;;
 
4425
 
 
4426
openbsd*)
 
4427
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4428
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
4429
  else
 
4430
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
4431
  fi
 
4432
  ;;
 
4433
 
 
4434
osf3* | osf4* | osf5*)
 
4435
  lt_cv_deplibs_check_method=pass_all
 
4436
  ;;
 
4437
 
 
4438
rdos*)
 
4439
  lt_cv_deplibs_check_method=pass_all
 
4440
  ;;
 
4441
 
 
4442
solaris*)
 
4443
  lt_cv_deplibs_check_method=pass_all
 
4444
  ;;
 
4445
 
 
4446
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4447
  lt_cv_deplibs_check_method=pass_all
 
4448
  ;;
 
4449
 
 
4450
sysv4 | sysv4.3*)
 
4451
  case $host_vendor in
 
4452
  motorola)
 
4453
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 
4454
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4455
    ;;
 
4456
  ncr)
 
4457
    lt_cv_deplibs_check_method=pass_all
 
4458
    ;;
 
4459
  sequent)
 
4460
    lt_cv_file_magic_cmd='/bin/file'
 
4461
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
4462
    ;;
 
4463
  sni)
 
4464
    lt_cv_file_magic_cmd='/bin/file'
 
4465
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
4466
    lt_cv_file_magic_test_file=/lib/libc.so
 
4467
    ;;
 
4468
  siemens)
 
4469
    lt_cv_deplibs_check_method=pass_all
 
4470
    ;;
 
4471
  pc)
 
4472
    lt_cv_deplibs_check_method=pass_all
 
4473
    ;;
 
4474
  esac
 
4475
  ;;
 
4476
 
 
4477
tpf*)
 
4478
  lt_cv_deplibs_check_method=pass_all
 
4479
  ;;
 
4480
esac
 
4481
])
 
4482
 
 
4483
file_magic_glob=
 
4484
want_nocaseglob=no
 
4485
if test "$build" = "$host"; then
 
4486
  case $host_os in
 
4487
  mingw* | pw32*)
 
4488
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4489
      want_nocaseglob=yes
 
4490
    else
 
4491
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4492
    fi
 
4493
    ;;
 
4494
  esac
 
4495
fi
 
4496
 
 
4497
file_magic_cmd=$lt_cv_file_magic_cmd
 
4498
deplibs_check_method=$lt_cv_deplibs_check_method
 
4499
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4500
 
 
4501
_LT_DECL([], [deplibs_check_method], [1],
 
4502
    [Method to check whether dependent libraries are shared objects])
 
4503
_LT_DECL([], [file_magic_cmd], [1],
 
4504
    [Command to use when deplibs_check_method = "file_magic"])
 
4505
_LT_DECL([], [file_magic_glob], [1],
 
4506
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4507
_LT_DECL([], [want_nocaseglob], [1],
 
4508
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 
4509
])# _LT_CHECK_MAGIC_METHOD
 
4510
 
 
4511
 
 
4512
# LT_PATH_NM
 
4513
# ----------
 
4514
# find the pathname to a BSD- or MS-compatible name lister
 
4515
AC_DEFUN([LT_PATH_NM],
 
4516
[AC_REQUIRE([AC_PROG_CC])dnl
 
4517
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
4518
[if test -n "$NM"; then
 
4519
  # Let the user override the test.
 
4520
  lt_cv_path_NM="$NM"
 
4521
else
 
4522
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4523
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4524
    lt_nm_to_check="$lt_nm_to_check nm"
 
4525
  fi
 
4526
  for lt_tmp_nm in $lt_nm_to_check; do
 
4527
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4528
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4529
      IFS="$lt_save_ifs"
 
4530
      test -z "$ac_dir" && ac_dir=.
 
4531
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4532
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4533
        # Check to see if the nm accepts a BSD-compat flag.
 
4534
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4535
        #   nm: unknown option "B" ignored
 
4536
        # Tru64's nm complains that /dev/null is an invalid object file
 
4537
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4538
        */dev/null* | *'Invalid file or object type'*)
 
4539
          lt_cv_path_NM="$tmp_nm -B"
 
4540
          break
 
4541
          ;;
 
4542
        *)
 
4543
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4544
          */dev/null*)
 
4545
            lt_cv_path_NM="$tmp_nm -p"
 
4546
            break
 
4547
            ;;
 
4548
          *)
 
4549
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4550
            continue # so that we can try to find one that supports BSD flags
 
4551
            ;;
 
4552
          esac
 
4553
          ;;
 
4554
        esac
 
4555
      fi
 
4556
    done
 
4557
    IFS="$lt_save_ifs"
 
4558
  done
 
4559
  : ${lt_cv_path_NM=no}
 
4560
fi])
 
4561
if test "$lt_cv_path_NM" != "no"; then
 
4562
  NM="$lt_cv_path_NM"
 
4563
else
 
4564
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4565
  if test -n "$DUMPBIN"; then :
 
4566
    # Let the user override the test.
 
4567
  else
 
4568
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4569
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4570
    *COFF*)
 
4571
      DUMPBIN="$DUMPBIN -symbols"
 
4572
      ;;
 
4573
    *)
 
4574
      DUMPBIN=:
 
4575
      ;;
 
4576
    esac
 
4577
  fi
 
4578
  AC_SUBST([DUMPBIN])
 
4579
  if test "$DUMPBIN" != ":"; then
 
4580
    NM="$DUMPBIN"
 
4581
  fi
 
4582
fi
 
4583
test -z "$NM" && NM=nm
 
4584
AC_SUBST([NM])
 
4585
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4586
 
 
4587
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4588
  [lt_cv_nm_interface="BSD nm"
 
4589
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4590
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4591
  (eval "$ac_compile" 2>conftest.err)
 
4592
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4593
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4594
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4595
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4596
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 
4597
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4598
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4599
    lt_cv_nm_interface="MS dumpbin"
 
4600
  fi
 
4601
  rm -f conftest*])
 
4602
])# LT_PATH_NM
 
4603
 
 
4604
# Old names:
 
4605
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4606
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4607
dnl aclocal-1.4 backwards compatibility:
 
4608
dnl AC_DEFUN([AM_PROG_NM], [])
 
4609
dnl AC_DEFUN([AC_PROG_NM], [])
 
4610
 
 
4611
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4612
# --------------------------------
 
4613
# how to determine the name of the shared library
 
4614
# associated with a specific link library.
 
4615
#  -- PORTME fill in with the dynamic library characteristics
 
4616
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4617
[m4_require([_LT_DECL_EGREP])
 
4618
m4_require([_LT_DECL_OBJDUMP])
 
4619
m4_require([_LT_DECL_DLLTOOL])
 
4620
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4621
lt_cv_sharedlib_from_linklib_cmd,
 
4622
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4623
 
 
4624
case $host_os in
 
4625
cygwin* | mingw* | pw32* | cegcc*)
 
4626
  # two different shell functions defined in ltmain.sh
 
4627
  # decide which to use based on capabilities of $DLLTOOL
 
4628
  case `$DLLTOOL --help 2>&1` in
 
4629
  *--identify-strict*)
 
4630
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4631
    ;;
 
4632
  *)
 
4633
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4634
    ;;
 
4635
  esac
 
4636
  ;;
 
4637
*)
 
4638
  # fallback: assume linklib IS sharedlib
 
4639
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4640
  ;;
 
4641
esac
 
4642
])
 
4643
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4644
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4645
 
 
4646
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4647
    [Command to associate shared and link libraries])
 
4648
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4649
 
 
4650
 
 
4651
# _LT_PATH_MANIFEST_TOOL
 
4652
# ----------------------
 
4653
# locate the manifest tool
 
4654
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4655
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4656
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4657
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4658
  [lt_cv_path_mainfest_tool=no
 
4659
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4660
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4661
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4662
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4663
    lt_cv_path_mainfest_tool=yes
 
4664
  fi
 
4665
  rm -f conftest*])
 
4666
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4667
  MANIFEST_TOOL=:
 
4668
fi
 
4669
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4670
])# _LT_PATH_MANIFEST_TOOL
 
4671
 
 
4672
 
 
4673
# LT_LIB_M
 
4674
# --------
 
4675
# check for math library
 
4676
AC_DEFUN([LT_LIB_M],
 
4677
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4678
LIBM=
 
4679
case $host in
 
4680
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 
4681
  # These system don't have libm, or don't need it
 
4682
  ;;
 
4683
*-ncr-sysv4.3*)
 
4684
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
4685
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
4686
  ;;
 
4687
*)
 
4688
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
4689
  ;;
 
4690
esac
 
4691
AC_SUBST([LIBM])
 
4692
])# LT_LIB_M
 
4693
 
 
4694
# Old name:
 
4695
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4696
dnl aclocal-1.4 backwards compatibility:
 
4697
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4698
 
 
4699
 
 
4700
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4701
# -------------------------------
 
4702
m4_defun([_LT_COMPILER_NO_RTTI],
 
4703
[m4_require([_LT_TAG_COMPILER])dnl
 
4704
 
 
4705
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4706
 
 
4707
if test "$GCC" = yes; then
 
4708
  case $cc_basename in
 
4709
  nvcc*)
 
4710
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
4711
  *)
 
4712
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
4713
  esac
 
4714
 
 
4715
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4716
    lt_cv_prog_compiler_rtti_exceptions,
 
4717
    [-fno-rtti -fno-exceptions], [],
 
4718
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4719
fi
 
4720
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4721
        [Compiler flag to turn off builtin functions])
 
4722
])# _LT_COMPILER_NO_RTTI
 
4723
 
 
4724
 
 
4725
# _LT_CMD_GLOBAL_SYMBOLS
 
4726
# ----------------------
 
4727
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4728
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4729
AC_REQUIRE([AC_PROG_CC])dnl
 
4730
AC_REQUIRE([AC_PROG_AWK])dnl
 
4731
AC_REQUIRE([LT_PATH_NM])dnl
 
4732
AC_REQUIRE([LT_PATH_LD])dnl
 
4733
m4_require([_LT_DECL_SED])dnl
 
4734
m4_require([_LT_DECL_EGREP])dnl
 
4735
m4_require([_LT_TAG_COMPILER])dnl
 
4736
 
 
4737
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4738
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
4739
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
4740
[
 
4741
# These are sane defaults that work on at least a few old systems.
 
4742
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4743
 
 
4744
# Character class describing NM global symbol codes.
 
4745
symcode='[[BCDEGRST]]'
 
4746
 
 
4747
# Regexp to match symbols that can be accessed directly from C.
 
4748
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
4749
 
 
4750
# Define system-specific variables.
 
4751
case $host_os in
 
4752
aix*)
 
4753
  symcode='[[BCDT]]'
 
4754
  ;;
 
4755
cygwin* | mingw* | pw32* | cegcc*)
 
4756
  symcode='[[ABCDGISTW]]'
 
4757
  ;;
 
4758
hpux*)
 
4759
  if test "$host_cpu" = ia64; then
 
4760
    symcode='[[ABCDEGRST]]'
 
4761
  fi
 
4762
  ;;
 
4763
irix* | nonstopux*)
 
4764
  symcode='[[BCDEGRST]]'
 
4765
  ;;
 
4766
osf*)
 
4767
  symcode='[[BCDEGQRST]]'
 
4768
  ;;
 
4769
solaris*)
 
4770
  symcode='[[BDRT]]'
 
4771
  ;;
 
4772
sco3.2v5*)
 
4773
  symcode='[[DT]]'
 
4774
  ;;
 
4775
sysv4.2uw2*)
 
4776
  symcode='[[DT]]'
 
4777
  ;;
 
4778
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4779
  symcode='[[ABDT]]'
 
4780
  ;;
 
4781
sysv4)
 
4782
  symcode='[[DFNSTU]]'
 
4783
  ;;
 
4784
esac
 
4785
 
 
4786
# If we're using GNU nm, then use its standard symbol codes.
 
4787
case `$NM -V 2>&1` in
 
4788
*GNU* | *'with BFD'*)
 
4789
  symcode='[[ABCDGIRSTW]]' ;;
 
4790
esac
 
4791
 
 
4792
# Transform an extracted symbol line into a proper C declaration.
 
4793
# Some systems (esp. on ia64) link data and code symbols differently,
 
4794
# so use this general approach.
 
4795
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4796
 
 
4797
# Transform an extracted symbol line into symbol name and symbol address
 
4798
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4799
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'"
 
4800
 
 
4801
# Handle CRLF in mingw tool chain
 
4802
opt_cr=
 
4803
case $build_os in
 
4804
mingw*)
 
4805
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4806
  ;;
 
4807
esac
 
4808
 
 
4809
# Try without a prefix underscore, then with it.
 
4810
for ac_symprfx in "" "_"; do
 
4811
 
 
4812
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4813
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4814
 
 
4815
  # Write the raw and C identifiers.
 
4816
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4817
    # Fake it for dumpbin and say T for any non-static function
 
4818
    # and D for any global variable.
 
4819
    # Also find C++ and __fastcall symbols from MSVC++,
 
4820
    # which start with @ or ?.
 
4821
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4822
"     {last_section=section; section=\$ 3};"\
 
4823
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4824
"     \$ 0!~/External *\|/{next};"\
 
4825
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4826
"     {if(hide[section]) next};"\
 
4827
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4828
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4829
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4830
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4831
"     ' prfx=^$ac_symprfx]"
 
4832
  else
 
4833
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4834
  fi
 
4835
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
4836
 
 
4837
  # Check to see that the pipe works correctly.
 
4838
  pipe_works=no
 
4839
 
 
4840
  rm -f conftest*
 
4841
  cat > conftest.$ac_ext <<_LT_EOF
 
4842
#ifdef __cplusplus
 
4843
extern "C" {
 
4844
#endif
 
4845
char nm_test_var;
 
4846
void nm_test_func(void);
 
4847
void nm_test_func(void){}
 
4848
#ifdef __cplusplus
 
4849
}
 
4850
#endif
 
4851
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4852
_LT_EOF
 
4853
 
 
4854
  if AC_TRY_EVAL(ac_compile); then
 
4855
    # Now try to grab the symbols.
 
4856
    nlist=conftest.nm
 
4857
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 
4858
      # Try sorting and uniquifying the output.
 
4859
      if sort "$nlist" | uniq > "$nlist"T; then
 
4860
        mv -f "$nlist"T "$nlist"
 
4861
      else
 
4862
        rm -f "$nlist"T
 
4863
      fi
 
4864
 
 
4865
      # Make sure that we snagged all the symbols we need.
 
4866
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4867
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4868
          cat <<_LT_EOF > conftest.$ac_ext
 
4869
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4870
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4871
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4872
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4873
# define LT@&t@_DLSYM_CONST
 
4874
#elif defined(__osf__)
 
4875
/* This system does not cope well with relocations in const data.  */
 
4876
# define LT@&t@_DLSYM_CONST
 
4877
#else
 
4878
# define LT@&t@_DLSYM_CONST const
 
4879
#endif
 
4880
 
 
4881
#ifdef __cplusplus
 
4882
extern "C" {
 
4883
#endif
 
4884
 
 
4885
_LT_EOF
 
4886
          # Now generate the symbol file.
 
4887
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4888
 
 
4889
          cat <<_LT_EOF >> conftest.$ac_ext
 
4890
 
 
4891
/* The mapping between symbol names and symbols.  */
 
4892
LT@&t@_DLSYM_CONST struct {
 
4893
  const char *name;
 
4894
  void       *address;
 
4895
}
 
4896
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
4897
{
 
4898
  { "@PROGRAM@", (void *) 0 },
 
4899
_LT_EOF
 
4900
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4901
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4902
  {0, (void *) 0}
 
4903
};
 
4904
 
 
4905
/* This works around a problem in FreeBSD linker */
 
4906
#ifdef FREEBSD_WORKAROUND
 
4907
static const void *lt_preloaded_setup() {
 
4908
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4909
}
 
4910
#endif
 
4911
 
 
4912
#ifdef __cplusplus
 
4913
}
 
4914
#endif
 
4915
_LT_EOF
 
4916
          # Now try linking the two files.
 
4917
          mv conftest.$ac_objext conftstm.$ac_objext
 
4918
          lt_globsym_save_LIBS=$LIBS
 
4919
          lt_globsym_save_CFLAGS=$CFLAGS
 
4920
          LIBS="conftstm.$ac_objext"
 
4921
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4922
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
4923
            pipe_works=yes
 
4924
          fi
 
4925
          LIBS=$lt_globsym_save_LIBS
 
4926
          CFLAGS=$lt_globsym_save_CFLAGS
 
4927
        else
 
4928
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
4929
        fi
 
4930
      else
 
4931
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
4932
      fi
 
4933
    else
 
4934
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
4935
    fi
 
4936
  else
 
4937
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
4938
    cat conftest.$ac_ext >&5
 
4939
  fi
 
4940
  rm -rf conftest* conftst*
 
4941
 
 
4942
  # Do not use the global_symbol_pipe unless it works.
 
4943
  if test "$pipe_works" = yes; then
 
4944
    break
 
4945
  else
 
4946
    lt_cv_sys_global_symbol_pipe=
 
4947
  fi
 
4948
done
 
4949
])
 
4950
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4951
  lt_cv_sys_global_symbol_to_cdecl=
 
4952
fi
 
4953
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
4954
  AC_MSG_RESULT(failed)
 
4955
else
 
4956
  AC_MSG_RESULT(ok)
 
4957
fi
 
4958
 
 
4959
# Response file support.
 
4960
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4961
  nm_file_list_spec='@'
 
4962
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4963
  nm_file_list_spec='@'
 
4964
fi
 
4965
 
 
4966
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4967
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4968
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4969
    [Transform the output of nm in a proper C declaration])
 
4970
_LT_DECL([global_symbol_to_c_name_address],
 
4971
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4972
    [Transform the output of nm in a C name address pair])
 
4973
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4974
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4975
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4976
_LT_DECL([], [nm_file_list_spec], [1],
 
4977
    [Specify filename containing input files for $NM])
 
4978
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4979
 
 
4980
 
 
4981
# _LT_COMPILER_PIC([TAGNAME])
 
4982
# ---------------------------
 
4983
m4_defun([_LT_COMPILER_PIC],
 
4984
[m4_require([_LT_TAG_COMPILER])dnl
 
4985
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4986
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4987
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4988
 
 
4989
m4_if([$1], [CXX], [
 
4990
  # C++ specific cases for pic, static, wl, etc.
 
4991
  if test "$GXX" = yes; then
 
4992
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4993
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4994
 
 
4995
    case $host_os in
 
4996
    aix*)
 
4997
      # All AIX code is PIC.
 
4998
      if test "$host_cpu" = ia64; then
 
4999
        # AIX 5 now supports IA64 processor
 
5000
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5001
      fi
 
5002
      ;;
 
5003
 
 
5004
    amigaos*)
 
5005
      case $host_cpu in
 
5006
      powerpc)
 
5007
            # see comment about AmigaOS4 .so support
 
5008
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5009
        ;;
 
5010
      m68k)
 
5011
            # FIXME: we need at least 68020 code to build shared libraries, but
 
5012
            # adding the `-m68020' flag to GCC prevents building anything better,
 
5013
            # like `-m68040'.
 
5014
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5015
        ;;
 
5016
      esac
 
5017
      ;;
 
5018
 
 
5019
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5020
      # PIC is the default for these OSes.
 
5021
      ;;
 
5022
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
5023
      # This hack is so that the source file can tell whether it is being
 
5024
      # built for inclusion in a dll (and should export symbols for example).
 
5025
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5026
      # (--disable-auto-import) libraries
 
5027
      m4_if([$1], [GCJ], [],
 
5028
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5029
      ;;
 
5030
    darwin* | rhapsody*)
 
5031
      # PIC is the default on this platform
 
5032
      # Common symbols not allowed in MH_DYLIB files
 
5033
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5034
      ;;
 
5035
    *djgpp*)
 
5036
      # DJGPP does not support shared libraries at all
 
5037
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5038
      ;;
 
5039
    haiku*)
 
5040
      # PIC is the default for Haiku.
 
5041
      # The "-static" flag exists, but is broken.
 
5042
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5043
      ;;
 
5044
    interix[[3-9]]*)
 
5045
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5046
      # Instead, we relocate shared libraries at runtime.
 
5047
      ;;
 
5048
    sysv4*MP*)
 
5049
      if test -d /usr/nec; then
 
5050
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5051
      fi
 
5052
      ;;
 
5053
    hpux*)
 
5054
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
5055
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
5056
      # sets the default TLS model and affects inlining.
 
5057
      case $host_cpu in
 
5058
      hppa*64*)
 
5059
        ;;
 
5060
      *)
 
5061
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5062
        ;;
 
5063
      esac
 
5064
      ;;
 
5065
    *qnx* | *nto*)
 
5066
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5067
      # it will coredump.
 
5068
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5069
      ;;
 
5070
    *)
 
5071
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5072
      ;;
 
5073
    esac
 
5074
  else
 
5075
    case $host_os in
 
5076
      aix[[4-9]]*)
 
5077
        # All AIX code is PIC.
 
5078
        if test "$host_cpu" = ia64; then
 
5079
          # AIX 5 now supports IA64 processor
 
5080
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5081
        else
 
5082
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5083
        fi
 
5084
        ;;
 
5085
      chorus*)
 
5086
        case $cc_basename in
 
5087
        cxch68*)
 
5088
          # Green Hills C++ Compiler
 
5089
          # _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"
 
5090
          ;;
 
5091
        esac
 
5092
        ;;
 
5093
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
5094
        # This hack is so that the source file can tell whether it is being
 
5095
        # built for inclusion in a dll (and should export symbols for example).
 
5096
        m4_if([$1], [GCJ], [],
 
5097
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5098
        ;;
 
5099
      dgux*)
 
5100
        case $cc_basename in
 
5101
          ec++*)
 
5102
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5103
            ;;
 
5104
          ghcx*)
 
5105
            # Green Hills C++ Compiler
 
5106
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5107
            ;;
 
5108
          *)
 
5109
            ;;
 
5110
        esac
 
5111
        ;;
 
5112
      freebsd* | dragonfly*)
 
5113
        # FreeBSD uses GNU C++
 
5114
        ;;
 
5115
      hpux9* | hpux10* | hpux11*)
 
5116
        case $cc_basename in
 
5117
          CC*)
 
5118
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5119
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5120
            if test "$host_cpu" != ia64; then
 
5121
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5122
            fi
 
5123
            ;;
 
5124
          aCC*)
 
5125
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5126
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5127
            case $host_cpu in
 
5128
            hppa*64*|ia64*)
 
5129
              # +Z the default
 
5130
              ;;
 
5131
            *)
 
5132
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5133
              ;;
 
5134
            esac
 
5135
            ;;
 
5136
          *)
 
5137
            ;;
 
5138
        esac
 
5139
        ;;
 
5140
      interix*)
 
5141
        # This is c89, which is MS Visual C++ (no shared libs)
 
5142
        # Anyone wants to do a port?
 
5143
        ;;
 
5144
      irix5* | irix6* | nonstopux*)
 
5145
        case $cc_basename in
 
5146
          CC*)
 
5147
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5148
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5149
            # CC pic flag -KPIC is the default.
 
5150
            ;;
 
5151
          *)
 
5152
            ;;
 
5153
        esac
 
5154
        ;;
 
5155
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5156
        case $cc_basename in
 
5157
          KCC*)
 
5158
            # KAI C++ Compiler
 
5159
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5160
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5161
            ;;
 
5162
          ecpc* )
 
5163
            # old Intel C++ for x86_64 which still supported -KPIC.
 
5164
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5165
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5166
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5167
            ;;
 
5168
          icpc* )
 
5169
            # Intel C++, used to be incompatible with GCC.
 
5170
            # ICC 10 doesn't accept -KPIC any more.
 
5171
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5172
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5173
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5174
            ;;
 
5175
          pgCC* | pgcpp*)
 
5176
            # Portland Group C++ compiler
 
5177
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5178
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5179
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5180
            ;;
 
5181
          cxx*)
 
5182
            # Compaq C++
 
5183
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5184
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5185
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5186
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5187
            ;;
 
5188
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
5189
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
5190
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5191
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5192
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5193
            ;;
 
5194
          *)
 
5195
            case `$CC -V 2>&1 | sed 5q` in
 
5196
            *Sun\ C*)
 
5197
              # Sun C++ 5.9
 
5198
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5199
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5200
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5201
              ;;
 
5202
            esac
 
5203
            ;;
 
5204
        esac
 
5205
        ;;
 
5206
      lynxos*)
 
5207
        ;;
 
5208
      m88k*)
 
5209
        ;;
 
5210
      mvs*)
 
5211
        case $cc_basename in
 
5212
          cxx*)
 
5213
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5214
            ;;
 
5215
          *)
 
5216
            ;;
 
5217
        esac
 
5218
        ;;
 
5219
      netbsd*)
 
5220
        ;;
 
5221
      *qnx* | *nto*)
 
5222
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5223
        # it will coredump.
 
5224
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5225
        ;;
 
5226
      osf3* | osf4* | osf5*)
 
5227
        case $cc_basename in
 
5228
          KCC*)
 
5229
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5230
            ;;
 
5231
          RCC*)
 
5232
            # Rational C++ 2.4.1
 
5233
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5234
            ;;
 
5235
          cxx*)
 
5236
            # Digital/Compaq C++
 
5237
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5238
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5239
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5240
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5241
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5242
            ;;
 
5243
          *)
 
5244
            ;;
 
5245
        esac
 
5246
        ;;
 
5247
      psos*)
 
5248
        ;;
 
5249
      solaris*)
 
5250
        case $cc_basename in
 
5251
          CC* | sunCC*)
 
5252
            # Sun C++ 4.2, 5.x and Centerline C++
 
5253
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5254
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5255
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5256
            ;;
 
5257
          gcx*)
 
5258
            # Green Hills C++ Compiler
 
5259
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5260
            ;;
 
5261
          *)
 
5262
            ;;
 
5263
        esac
 
5264
        ;;
 
5265
      sunos4*)
 
5266
        case $cc_basename in
 
5267
          CC*)
 
5268
            # Sun C++ 4.x
 
5269
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5270
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5271
            ;;
 
5272
          lcc*)
 
5273
            # Lucid
 
5274
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5275
            ;;
 
5276
          *)
 
5277
            ;;
 
5278
        esac
 
5279
        ;;
 
5280
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5281
        case $cc_basename in
 
5282
          CC*)
 
5283
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5284
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5285
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5286
            ;;
 
5287
        esac
 
5288
        ;;
 
5289
      tandem*)
 
5290
        case $cc_basename in
 
5291
          NCC*)
 
5292
            # NonStop-UX NCC 3.20
 
5293
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5294
            ;;
 
5295
          *)
 
5296
            ;;
 
5297
        esac
 
5298
        ;;
 
5299
      vxworks*)
 
5300
        ;;
 
5301
      *)
 
5302
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5303
        ;;
 
5304
    esac
 
5305
  fi
 
5306
],
 
5307
[
 
5308
  if test "$GCC" = yes; then
 
5309
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5310
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5311
 
 
5312
    case $host_os in
 
5313
      aix*)
 
5314
      # All AIX code is PIC.
 
5315
      if test "$host_cpu" = ia64; then
 
5316
        # AIX 5 now supports IA64 processor
 
5317
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5318
      fi
 
5319
      ;;
 
5320
 
 
5321
    amigaos*)
 
5322
      case $host_cpu in
 
5323
      powerpc)
 
5324
            # see comment about AmigaOS4 .so support
 
5325
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5326
        ;;
 
5327
      m68k)
 
5328
            # FIXME: we need at least 68020 code to build shared libraries, but
 
5329
            # adding the `-m68020' flag to GCC prevents building anything better,
 
5330
            # like `-m68040'.
 
5331
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5332
        ;;
 
5333
      esac
 
5334
      ;;
 
5335
 
 
5336
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5337
      # PIC is the default for these OSes.
 
5338
      ;;
 
5339
 
 
5340
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
5341
      # This hack is so that the source file can tell whether it is being
 
5342
      # built for inclusion in a dll (and should export symbols for example).
 
5343
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5344
      # (--disable-auto-import) libraries
 
5345
      m4_if([$1], [GCJ], [],
 
5346
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5347
      ;;
 
5348
 
 
5349
    darwin* | rhapsody*)
 
5350
      # PIC is the default on this platform
 
5351
      # Common symbols not allowed in MH_DYLIB files
 
5352
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5353
      ;;
 
5354
 
 
5355
    haiku*)
 
5356
      # PIC is the default for Haiku.
 
5357
      # The "-static" flag exists, but is broken.
 
5358
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5359
      ;;
 
5360
 
 
5361
    hpux*)
 
5362
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
5363
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
5364
      # sets the default TLS model and affects inlining.
 
5365
      case $host_cpu in
 
5366
      hppa*64*)
 
5367
        # +Z the default
 
5368
        ;;
 
5369
      *)
 
5370
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5371
        ;;
 
5372
      esac
 
5373
      ;;
 
5374
 
 
5375
    interix[[3-9]]*)
 
5376
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5377
      # Instead, we relocate shared libraries at runtime.
 
5378
      ;;
 
5379
 
 
5380
    msdosdjgpp*)
 
5381
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5382
      # on systems that don't support them.
 
5383
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5384
      enable_shared=no
 
5385
      ;;
 
5386
 
 
5387
    *nto* | *qnx*)
 
5388
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5389
      # it will coredump.
 
5390
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5391
      ;;
 
5392
 
 
5393
    sysv4*MP*)
 
5394
      if test -d /usr/nec; then
 
5395
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5396
      fi
 
5397
      ;;
 
5398
 
 
5399
    *)
 
5400
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5401
      ;;
 
5402
    esac
 
5403
 
 
5404
    case $cc_basename in
 
5405
    nvcc*) # Cuda Compiler Driver 2.2
 
5406
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
5407
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
5408
      ;;
 
5409
    esac
 
5410
  else
 
5411
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5412
    case $host_os in
 
5413
    aix*)
 
5414
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5415
      if test "$host_cpu" = ia64; then
 
5416
        # AIX 5 now supports IA64 processor
 
5417
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5418
      else
 
5419
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5420
      fi
 
5421
      ;;
 
5422
 
 
5423
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
5424
      # This hack is so that the source file can tell whether it is being
 
5425
      # built for inclusion in a dll (and should export symbols for example).
 
5426
      m4_if([$1], [GCJ], [],
 
5427
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5428
      ;;
 
5429
 
 
5430
    hpux9* | hpux10* | hpux11*)
 
5431
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5432
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5433
      # not for PA HP-UX.
 
5434
      case $host_cpu in
 
5435
      hppa*64*|ia64*)
 
5436
        # +Z the default
 
5437
        ;;
 
5438
      *)
 
5439
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5440
        ;;
 
5441
      esac
 
5442
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5443
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5444
      ;;
 
5445
 
 
5446
    irix5* | irix6* | nonstopux*)
 
5447
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5448
      # PIC (with -KPIC) is the default.
 
5449
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5450
      ;;
 
5451
 
 
5452
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5453
      case $cc_basename in
 
5454
      # old Intel for x86_64 which still supported -KPIC.
 
5455
      ecc*)
 
5456
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5457
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5458
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5459
        ;;
 
5460
      # icc used to be incompatible with GCC.
 
5461
      # ICC 10 doesn't accept -KPIC any more.
 
5462
      icc* | ifort*)
 
5463
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5464
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5465
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5466
        ;;
 
5467
      # Lahey Fortran 8.1.
 
5468
      lf95*)
 
5469
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5470
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
5471
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
5472
        ;;
 
5473
      nagfor*)
 
5474
        # NAG Fortran compiler
 
5475
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5476
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5477
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5478
        ;;
 
5479
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
5480
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5481
        # which looks to be a dead project)
 
5482
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5483
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5484
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5485
        ;;
 
5486
      ccc*)
 
5487
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5488
        # All Alpha code is PIC.
 
5489
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5490
        ;;
 
5491
      xl* | bgxl* | bgf* | mpixl*)
 
5492
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
5493
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5494
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5495
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5496
        ;;
 
5497
      *)
 
5498
        case `$CC -V 2>&1 | sed 5q` in
 
5499
        *Sun\ F* | *Sun*Fortran*)
 
5500
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5501
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5502
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5503
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5504
          ;;
 
5505
        *Sun\ C*)
 
5506
          # Sun C 5.9
 
5507
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5508
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5509
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5510
          ;;
 
5511
        esac
 
5512
        ;;
 
5513
      esac
 
5514
      ;;
 
5515
 
 
5516
    newsos6)
 
5517
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5518
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5519
      ;;
 
5520
 
 
5521
    *nto* | *qnx*)
 
5522
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5523
      # it will coredump.
 
5524
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5525
      ;;
 
5526
 
 
5527
    osf3* | osf4* | osf5*)
 
5528
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5529
      # All OSF/1 code is PIC.
 
5530
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5531
      ;;
 
5532
 
 
5533
    rdos*)
 
5534
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5535
      ;;
 
5536
 
 
5537
    solaris*)
 
5538
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5539
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5540
      case $cc_basename in
 
5541
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
5542
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5543
      *)
 
5544
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5545
      esac
 
5546
      ;;
 
5547
 
 
5548
    sunos4*)
 
5549
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5550
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5551
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5552
      ;;
 
5553
 
 
5554
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5555
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5556
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5557
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5558
      ;;
 
5559
 
 
5560
    sysv4*MP*)
 
5561
      if test -d /usr/nec ;then
 
5562
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5563
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5564
      fi
 
5565
      ;;
 
5566
 
 
5567
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5568
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5569
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5570
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5571
      ;;
 
5572
 
 
5573
    unicos*)
 
5574
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5575
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5576
      ;;
 
5577
 
 
5578
    uts4*)
 
5579
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5580
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5581
      ;;
 
5582
 
 
5583
    *)
 
5584
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5585
      ;;
 
5586
    esac
 
5587
  fi
 
5588
])
 
5589
case $host_os in
 
5590
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5591
  *djgpp*)
 
5592
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5593
    ;;
 
5594
  *)
 
5595
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5596
    ;;
 
5597
esac
 
5598
 
 
5599
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5600
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5601
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5602
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 
5603
 
 
5604
#
 
5605
# Check to make sure the PIC flag actually works.
 
5606
#
 
5607
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5608
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5609
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5610
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5611
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 
5612
     "" | " "*) ;;
 
5613
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5614
     esac],
 
5615
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5616
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5617
fi
 
5618
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5619
        [Additional compiler flags for building library objects])
 
5620
 
 
5621
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5622
        [How to pass a linker flag through the compiler])
 
5623
#
 
5624
# Check to make sure the static flag actually works.
 
5625
#
 
5626
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5627
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5628
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5629
  $lt_tmp_static_flag,
 
5630
  [],
 
5631
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5632
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5633
        [Compiler flag to prevent dynamic linking])
 
5634
])# _LT_COMPILER_PIC
 
5635
 
 
5636
 
 
5637
# _LT_LINKER_SHLIBS([TAGNAME])
 
5638
# ----------------------------
 
5639
# See if the linker supports building shared libraries.
 
5640
m4_defun([_LT_LINKER_SHLIBS],
 
5641
[AC_REQUIRE([LT_PATH_LD])dnl
 
5642
AC_REQUIRE([LT_PATH_NM])dnl
 
5643
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 
5644
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5645
m4_require([_LT_DECL_EGREP])dnl
 
5646
m4_require([_LT_DECL_SED])dnl
 
5647
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5648
m4_require([_LT_TAG_COMPILER])dnl
 
5649
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5650
m4_if([$1], [CXX], [
 
5651
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5652
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5653
  case $host_os in
 
5654
  aix[[4-9]]*)
 
5655
    # If we're using GNU nm, then we don't want the "-C" option.
 
5656
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5657
    # Also, AIX nm treats weak defined symbols like other global defined
 
5658
    # symbols, whereas GNU nm marks them as "W".
 
5659
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5660
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5661
    else
 
5662
      _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'
 
5663
    fi
 
5664
    ;;
 
5665
  pw32*)
 
5666
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5667
    ;;
 
5668
  cygwin* | mingw* | cegcc*)
 
5669
    case $cc_basename in
 
5670
    cl*) ;;
 
5671
    *)
 
5672
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5673
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5674
      ;;
 
5675
    esac
 
5676
    ;;
 
5677
  *)
 
5678
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5679
    ;;
 
5680
  esac
 
5681
], [
 
5682
  runpath_var=
 
5683
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5684
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5685
  _LT_TAGVAR(archive_cmds, $1)=
 
5686
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5687
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5688
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5689
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5690
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5691
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5692
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5693
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5694
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5695
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5696
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5697
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5698
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5699
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5700
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5701
  _LT_TAGVAR(module_cmds, $1)=
 
5702
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5703
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5704
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5705
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5706
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5707
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5708
  # included in the symbol list
 
5709
  _LT_TAGVAR(include_expsyms, $1)=
 
5710
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5711
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5712
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5713
  # as well as any symbol that contains `d'.
 
5714
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5715
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5716
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
5717
  # the symbol is explicitly referenced.  Since portable code cannot
 
5718
  # rely on this symbol name, it's probably fine to never include it in
 
5719
  # preloaded symbol tables.
 
5720
  # Exclude shared library initialization/finalization symbols.
 
5721
dnl Note also adjust exclude_expsyms for C++ above.
 
5722
  extract_expsyms_cmds=
 
5723
 
 
5724
  case $host_os in
 
5725
  cygwin* | mingw* | pw32* | cegcc*)
 
5726
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5727
    # When not using gcc, we currently assume that we are using
 
5728
    # Microsoft Visual C++.
 
5729
    if test "$GCC" != yes; then
 
5730
      with_gnu_ld=no
 
5731
    fi
 
5732
    ;;
 
5733
  interix*)
 
5734
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5735
    with_gnu_ld=yes
 
5736
    ;;
 
5737
  openbsd*)
 
5738
    with_gnu_ld=no
 
5739
    ;;
 
5740
  esac
 
5741
 
 
5742
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
5743
 
 
5744
  # On some targets, GNU ld is compatible enough with the native linker
 
5745
  # that we're better off using the native interface for both.
 
5746
  lt_use_gnu_ld_interface=no
 
5747
  if test "$with_gnu_ld" = yes; then
 
5748
    case $host_os in
 
5749
      aix*)
 
5750
        # The AIX port of GNU ld has always aspired to compatibility
 
5751
        # with the native linker.  However, as the warning in the GNU ld
 
5752
        # block says, versions before 2.19.5* couldn't really create working
 
5753
        # shared libraries, regardless of the interface used.
 
5754
        case `$LD -v 2>&1` in
 
5755
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
5756
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
5757
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
5758
          *)
 
5759
            lt_use_gnu_ld_interface=yes
 
5760
            ;;
 
5761
        esac
 
5762
        ;;
 
5763
      *)
 
5764
        lt_use_gnu_ld_interface=yes
 
5765
        ;;
 
5766
    esac
 
5767
  fi
 
5768
 
 
5769
  if test "$lt_use_gnu_ld_interface" = yes; then
 
5770
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
5771
    wlarc='${wl}'
 
5772
 
 
5773
    # Set some defaults for GNU ld with shared library support. These
 
5774
    # are reset later if shared libraries are not supported. Putting them
 
5775
    # here allows them to be overridden if necessary.
 
5776
    runpath_var=LD_RUN_PATH
 
5777
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5778
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5779
    # ancient GNU ld didn't support --whole-archive et. al.
 
5780
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5781
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5782
    else
 
5783
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5784
    fi
 
5785
    supports_anon_versioning=no
 
5786
    case `$LD -v 2>&1` in
 
5787
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
5788
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5789
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5790
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5791
      *\ 2.11.*) ;; # other 2.11 versions
 
5792
      *) supports_anon_versioning=yes ;;
 
5793
    esac
 
5794
 
 
5795
    # See if GNU ld supports shared libraries.
 
5796
    case $host_os in
 
5797
    aix[[3-9]]*)
 
5798
      # On AIX/PPC, the GNU linker is very broken
 
5799
      if test "$host_cpu" != ia64; then
 
5800
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5801
        cat <<_LT_EOF 1>&2
 
5802
 
 
5803
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
5804
*** to be unable to reliably create shared libraries on AIX.
 
5805
*** Therefore, libtool is disabling shared libraries support.  If you
 
5806
*** really care for shared libraries, you may want to install binutils
 
5807
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5808
*** You will then need to restart the configuration process.
 
5809
 
 
5810
_LT_EOF
 
5811
      fi
 
5812
      ;;
 
5813
 
 
5814
    amigaos*)
 
5815
      case $host_cpu in
 
5816
      powerpc)
 
5817
            # see comment about AmigaOS4 .so support
 
5818
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5819
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5820
        ;;
 
5821
      m68k)
 
5822
            _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)'
 
5823
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5824
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5825
        ;;
 
5826
      esac
 
5827
      ;;
 
5828
 
 
5829
    beos*)
 
5830
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5831
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5832
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5833
        # support --undefined.  This deserves some investigation.  FIXME
 
5834
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5835
      else
 
5836
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5837
      fi
 
5838
      ;;
 
5839
 
 
5840
    cygwin* | mingw* | pw32* | cegcc*)
 
5841
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5842
      # as there is no search path for DLLs.
 
5843
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5844
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
5845
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5846
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5847
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5848
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5849
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5850
 
 
5851
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5852
        _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'
 
5853
        # If the export-symbols file already is a .def file (1st line
 
5854
        # is EXPORTS), use it as is; otherwise, prepend...
 
5855
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5856
          cp $export_symbols $output_objdir/$soname.def;
 
5857
        else
 
5858
          echo EXPORTS > $output_objdir/$soname.def;
 
5859
          cat $export_symbols >> $output_objdir/$soname.def;
 
5860
        fi~
 
5861
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5862
      else
 
5863
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5864
      fi
 
5865
      ;;
 
5866
 
 
5867
    haiku*)
 
5868
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5869
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5870
      ;;
 
5871
 
 
5872
    interix[[3-9]]*)
 
5873
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5874
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5875
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5876
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5877
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5878
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5879
      # default) and relocated if they conflict, which is a slow very memory
 
5880
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5881
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5882
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5883
      _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'
 
5884
      _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'
 
5885
      ;;
 
5886
 
 
5887
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
5888
      tmp_diet=no
 
5889
      if test "$host_os" = linux-dietlibc; then
 
5890
        case $cc_basename in
 
5891
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5892
        esac
 
5893
      fi
 
5894
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5895
         && test "$tmp_diet" = no
 
5896
      then
 
5897
        tmp_addflag=' $pic_flag'
 
5898
        tmp_sharedflag='-shared'
 
5899
        case $cc_basename,$host_cpu in
 
5900
        pgcc*)                          # Portland Group C compiler
 
5901
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5902
          tmp_addflag=' $pic_flag'
 
5903
          ;;
 
5904
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5905
                                        # Portland Group f77 and f90 compilers
 
5906
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5907
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5908
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
5909
          tmp_addflag=' -i_dynamic' ;;
 
5910
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5911
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5912
        ifc* | ifort*)                  # Intel Fortran compiler
 
5913
          tmp_addflag=' -nofor_main' ;;
 
5914
        lf95*)                          # Lahey Fortran 8.1
 
5915
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5916
          tmp_sharedflag='--shared' ;;
 
5917
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
5918
          tmp_sharedflag='-qmkshrobj'
 
5919
          tmp_addflag= ;;
 
5920
        nvcc*)  # Cuda Compiler Driver 2.2
 
5921
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5922
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5923
          ;;
 
5924
        esac
 
5925
        case `$CC -V 2>&1 | sed 5q` in
 
5926
        *Sun\ C*)                       # Sun C 5.9
 
5927
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5928
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5929
          tmp_sharedflag='-G' ;;
 
5930
        *Sun\ F*)                       # Sun Fortran 8.3
 
5931
          tmp_sharedflag='-G' ;;
 
5932
        esac
 
5933
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5934
 
 
5935
        if test "x$supports_anon_versioning" = xyes; then
 
5936
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5937
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5938
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5939
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5940
        fi
 
5941
 
 
5942
        case $cc_basename in
 
5943
        xlf* | bgf* | bgxlf* | mpixlf*)
 
5944
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5945
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5946
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5947
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5948
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
5949
          if test "x$supports_anon_versioning" = xyes; then
 
5950
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5951
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5952
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5953
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5954
          fi
 
5955
          ;;
 
5956
        esac
 
5957
      else
 
5958
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5959
      fi
 
5960
      ;;
 
5961
 
 
5962
    netbsd*)
 
5963
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5964
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5965
        wlarc=
 
5966
      else
 
5967
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5968
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5969
      fi
 
5970
      ;;
 
5971
 
 
5972
    solaris*)
 
5973
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5974
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5975
        cat <<_LT_EOF 1>&2
 
5976
 
 
5977
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5978
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5979
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5980
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5981
*** your PATH or compiler configuration so that the native linker is
 
5982
*** used, and then restart.
 
5983
 
 
5984
_LT_EOF
 
5985
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5986
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5987
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5988
      else
 
5989
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5990
      fi
 
5991
      ;;
 
5992
 
 
5993
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5994
      case `$LD -v 2>&1` in
 
5995
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5996
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5997
        cat <<_LT_EOF 1>&2
 
5998
 
 
5999
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6000
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6001
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6002
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6003
*** your PATH or compiler configuration so that the native linker is
 
6004
*** used, and then restart.
 
6005
 
 
6006
_LT_EOF
 
6007
        ;;
 
6008
        *)
 
6009
          # For security reasons, it is highly recommended that you always
 
6010
          # use absolute paths for naming shared libraries, and exclude the
 
6011
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
6012
          # requires that you compile everything twice, which is a pain.
 
6013
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6014
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6015
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6016
            _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'
 
6017
          else
 
6018
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6019
          fi
 
6020
        ;;
 
6021
      esac
 
6022
      ;;
 
6023
 
 
6024
    sunos4*)
 
6025
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6026
      wlarc=
 
6027
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6028
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6029
      ;;
 
6030
 
 
6031
    *)
 
6032
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6033
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6034
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6035
      else
 
6036
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6037
      fi
 
6038
      ;;
 
6039
    esac
 
6040
 
 
6041
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
6042
      runpath_var=
 
6043
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6044
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6045
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6046
    fi
 
6047
  else
 
6048
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6049
    case $host_os in
 
6050
    aix3*)
 
6051
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6052
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6053
      _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'
 
6054
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6055
      # are no directories specified by -L.
 
6056
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6057
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6058
        # Neither direct hardcoding nor static linking is supported with a
 
6059
        # broken collect2.
 
6060
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6061
      fi
 
6062
      ;;
 
6063
 
 
6064
    aix[[4-9]]*)
 
6065
      if test "$host_cpu" = ia64; then
 
6066
        # On IA64, the linker does run time linking by default, so we don't
 
6067
        # have to do anything special.
 
6068
        aix_use_runtimelinking=no
 
6069
        exp_sym_flag='-Bexport'
 
6070
        no_entry_flag=""
 
6071
      else
 
6072
        # If we're using GNU nm, then we don't want the "-C" option.
 
6073
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6074
        # Also, AIX nm treats weak defined symbols like other global
 
6075
        # defined symbols, whereas GNU nm marks them as "W".
 
6076
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
6077
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
6078
        else
 
6079
          _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'
 
6080
        fi
 
6081
        aix_use_runtimelinking=no
 
6082
 
 
6083
        # Test if we are trying to use run time linking or normal
 
6084
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6085
        # need to do runtime linking.
 
6086
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6087
          for ld_flag in $LDFLAGS; do
 
6088
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6089
            aix_use_runtimelinking=yes
 
6090
            break
 
6091
          fi
 
6092
          done
 
6093
          ;;
 
6094
        esac
 
6095
 
 
6096
        exp_sym_flag='-bexport'
 
6097
        no_entry_flag='-bnoentry'
 
6098
      fi
 
6099
 
 
6100
      # When large executables or shared objects are built, AIX ld can
 
6101
      # have problems creating the table of contents.  If linking a library
 
6102
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6103
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6104
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6105
 
 
6106
      _LT_TAGVAR(archive_cmds, $1)=''
 
6107
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6108
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6109
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6110
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6111
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6112
 
 
6113
      if test "$GCC" = yes; then
 
6114
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6115
        # We only want to do this on AIX 4.2 and lower, the check
 
6116
        # below for broken collect2 doesn't work under 4.3+
 
6117
          collect2name=`${CC} -print-prog-name=collect2`
 
6118
          if test -f "$collect2name" &&
 
6119
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6120
          then
 
6121
          # We have reworked collect2
 
6122
          :
 
6123
          else
 
6124
          # We have old collect2
 
6125
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6126
          # It fails to find uninstalled libraries when the uninstalled
 
6127
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6128
          # to unsupported forces relinking
 
6129
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6130
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6131
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6132
          fi
 
6133
          ;;
 
6134
        esac
 
6135
        shared_flag='-shared'
 
6136
        if test "$aix_use_runtimelinking" = yes; then
 
6137
          shared_flag="$shared_flag "'${wl}-G'
 
6138
        fi
 
6139
      else
 
6140
        # not using gcc
 
6141
        if test "$host_cpu" = ia64; then
 
6142
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6143
        # chokes on -Wl,-G. The following line is correct:
 
6144
          shared_flag='-G'
 
6145
        else
 
6146
          if test "$aix_use_runtimelinking" = yes; then
 
6147
            shared_flag='${wl}-G'
 
6148
          else
 
6149
            shared_flag='${wl}-bM:SRE'
 
6150
          fi
 
6151
        fi
 
6152
      fi
 
6153
 
 
6154
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6155
      # It seems that -bexpall does not export symbols beginning with
 
6156
      # underscore (_), so it is better to generate a list of symbols to export.
 
6157
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6158
      if test "$aix_use_runtimelinking" = yes; then
 
6159
        # Warning - without using the other runtime loading flags (-brtl),
 
6160
        # -berok will link without error, but may produce a broken library.
 
6161
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6162
        # Determine the default libpath from the value encoded in an
 
6163
        # empty executable.
 
6164
        _LT_SYS_MODULE_PATH_AIX([$1])
 
6165
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6166
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6167
      else
 
6168
        if test "$host_cpu" = ia64; then
 
6169
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6170
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6171
          _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"
 
6172
        else
 
6173
         # Determine the default libpath from the value encoded in an
 
6174
         # empty executable.
 
6175
         _LT_SYS_MODULE_PATH_AIX([$1])
 
6176
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6177
          # Warning - without using the other run time loading flags,
 
6178
          # -berok will link without error, but may produce a broken library.
 
6179
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6180
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6181
          if test "$with_gnu_ld" = yes; then
 
6182
            # We only use this code for GNU lds that support --whole-archive.
 
6183
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6184
          else
 
6185
            # Exported symbols can be pulled into shared objects from archives
 
6186
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6187
          fi
 
6188
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6189
          # This is similar to how AIX traditionally builds its shared libraries.
 
6190
          _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'
 
6191
        fi
 
6192
      fi
 
6193
      ;;
 
6194
 
 
6195
    amigaos*)
 
6196
      case $host_cpu in
 
6197
      powerpc)
 
6198
            # see comment about AmigaOS4 .so support
 
6199
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6200
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
6201
        ;;
 
6202
      m68k)
 
6203
            _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)'
 
6204
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6205
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6206
        ;;
 
6207
      esac
 
6208
      ;;
 
6209
 
 
6210
    bsdi[[45]]*)
 
6211
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6212
      ;;
 
6213
 
 
6214
    cygwin* | mingw* | pw32* | cegcc*)
 
6215
      # When not using gcc, we currently assume that we are using
 
6216
      # Microsoft Visual C++.
 
6217
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6218
      # no search path for DLLs.
 
6219
      case $cc_basename in
 
6220
      cl*)
 
6221
        # Native MSVC
 
6222
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6223
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6224
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6225
        _LT_TAGVAR(file_list_spec, $1)='@'
 
6226
        # Tell ltmain to make .lib files, not .a files.
 
6227
        libext=lib
 
6228
        # Tell ltmain to make .dll files, not .so files.
 
6229
        shrext_cmds=".dll"
 
6230
        # FIXME: Setting linknames here is a bad hack.
 
6231
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6232
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6233
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6234
          else
 
6235
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6236
          fi~
 
6237
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6238
          linknames='
 
6239
        # The linker will not automatically build a static lib if we build a DLL.
 
6240
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6241
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6242
        _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'
 
6243
        # Don't use ranlib
 
6244
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6245
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6246
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6247
          case $lt_outputfile in
 
6248
            *.exe|*.EXE) ;;
 
6249
            *)
 
6250
              lt_outputfile="$lt_outputfile.exe"
 
6251
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6252
              ;;
 
6253
          esac~
 
6254
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6255
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6256
            $RM "$lt_outputfile.manifest";
 
6257
          fi'
 
6258
        ;;
 
6259
      *)
 
6260
        # Assume MSVC wrapper
 
6261
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6262
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6263
        # Tell ltmain to make .lib files, not .a files.
 
6264
        libext=lib
 
6265
        # Tell ltmain to make .dll files, not .so files.
 
6266
        shrext_cmds=".dll"
 
6267
        # FIXME: Setting linknames here is a bad hack.
 
6268
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
6269
        # The linker will automatically build a .lib file if we build a DLL.
 
6270
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6271
        # FIXME: Should let the user specify the lib program.
 
6272
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6273
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6274
        ;;
 
6275
      esac
 
6276
      ;;
 
6277
 
 
6278
    darwin* | rhapsody*)
 
6279
      _LT_DARWIN_LINKER_FEATURES($1)
 
6280
      ;;
 
6281
 
 
6282
    dgux*)
 
6283
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6284
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6285
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6286
      ;;
 
6287
 
 
6288
    freebsd1*)
 
6289
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6290
      ;;
 
6291
 
 
6292
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6293
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6294
    # does not break anything, and helps significantly (at the cost of a little
 
6295
    # extra space).
 
6296
    freebsd2.2*)
 
6297
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6298
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6299
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6300
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6301
      ;;
 
6302
 
 
6303
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6304
    freebsd2*)
 
6305
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6306
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6307
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6308
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6309
      ;;
 
6310
 
 
6311
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6312
    freebsd* | dragonfly*)
 
6313
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6314
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6315
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6316
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6317
      ;;
 
6318
 
 
6319
    hpux9*)
 
6320
      if test "$GCC" = yes; then
 
6321
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6322
      else
 
6323
        _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'
 
6324
      fi
 
6325
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6326
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6327
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6328
 
 
6329
      # hardcode_minus_L: Not really in the search PATH,
 
6330
      # but as the default location of the library.
 
6331
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6332
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6333
      ;;
 
6334
 
 
6335
    hpux10*)
 
6336
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6337
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6338
      else
 
6339
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6340
      fi
 
6341
      if test "$with_gnu_ld" = no; then
 
6342
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6343
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6344
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6345
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6346
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6347
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6348
        # hardcode_minus_L: Not really in the search PATH,
 
6349
        # but as the default location of the library.
 
6350
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6351
      fi
 
6352
      ;;
 
6353
 
 
6354
    hpux11*)
 
6355
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6356
        case $host_cpu in
 
6357
        hppa*64*)
 
6358
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6359
          ;;
 
6360
        ia64*)
 
6361
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6362
          ;;
 
6363
        *)
 
6364
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6365
          ;;
 
6366
        esac
 
6367
      else
 
6368
        case $host_cpu in
 
6369
        hppa*64*)
 
6370
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6371
          ;;
 
6372
        ia64*)
 
6373
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6374
          ;;
 
6375
        *)
 
6376
        m4_if($1, [], [
 
6377
          # Older versions of the 11.00 compiler do not understand -b yet
 
6378
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
6379
          _LT_LINKER_OPTION([if $CC understands -b],
 
6380
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
6381
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
6382
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
6383
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 
6384
          ;;
 
6385
        esac
 
6386
      fi
 
6387
      if test "$with_gnu_ld" = no; then
 
6388
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6389
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6390
 
 
6391
        case $host_cpu in
 
6392
        hppa*64*|ia64*)
 
6393
          _LT_TAGVAR(hardcode_direct, $1)=no
 
6394
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6395
          ;;
 
6396
        *)
 
6397
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6398
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6399
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6400
 
 
6401
          # hardcode_minus_L: Not really in the search PATH,
 
6402
          # but as the default location of the library.
 
6403
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6404
          ;;
 
6405
        esac
 
6406
      fi
 
6407
      ;;
 
6408
 
 
6409
    irix5* | irix6* | nonstopux*)
 
6410
      if test "$GCC" = yes; then
 
6411
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6412
        # Try to use the -exported_symbol ld option, if it does not
 
6413
        # work, assume that -exports_file does not work either and
 
6414
        # implicitly export all symbols.
 
6415
        # This should be the same for all languages, so no per-tag cache variable.
 
6416
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
6417
          [lt_cv_irix_exported_symbol],
 
6418
          [save_LDFLAGS="$LDFLAGS"
 
6419
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6420
           AC_LINK_IFELSE(
 
6421
             [AC_LANG_SOURCE(
 
6422
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
6423
                              [C++], [[int foo (void) { return 0; }]],
 
6424
                              [Fortran 77], [[
 
6425
      subroutine foo
 
6426
      end]],
 
6427
                              [Fortran], [[
 
6428
      subroutine foo
 
6429
      end]])])],
 
6430
              [lt_cv_irix_exported_symbol=yes],
 
6431
              [lt_cv_irix_exported_symbol=no])
 
6432
           LDFLAGS="$save_LDFLAGS"])
 
6433
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6434
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
6435
        fi
 
6436
      else
 
6437
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6438
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
6439
      fi
 
6440
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6441
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6442
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6443
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
6444
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6445
      ;;
 
6446
 
 
6447
    netbsd*)
 
6448
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6449
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6450
      else
 
6451
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6452
      fi
 
6453
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6454
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6455
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6456
      ;;
 
6457
 
 
6458
    newsos6)
 
6459
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6460
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6461
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6462
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6463
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6464
      ;;
 
6465
 
 
6466
    *nto* | *qnx*)
 
6467
      ;;
 
6468
 
 
6469
    openbsd*)
 
6470
      if test -f /usr/libexec/ld.so; then
 
6471
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6472
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6473
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6474
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6475
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6476
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6477
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6478
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6479
        else
 
6480
          case $host_os in
 
6481
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6482
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6483
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6484
             ;;
 
6485
           *)
 
6486
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6487
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6488
             ;;
 
6489
          esac
 
6490
        fi
 
6491
      else
 
6492
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6493
      fi
 
6494
      ;;
 
6495
 
 
6496
    os2*)
 
6497
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6498
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6499
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6500
      _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'
 
6501
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6502
      ;;
 
6503
 
 
6504
    osf3*)
 
6505
      if test "$GCC" = yes; then
 
6506
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6507
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6508
      else
 
6509
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6510
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6511
      fi
 
6512
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6513
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6514
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6515
      ;;
 
6516
 
 
6517
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6518
      if test "$GCC" = yes; then
 
6519
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6520
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6521
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6522
      else
 
6523
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6524
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6525
        _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~
 
6526
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6527
 
 
6528
        # Both c and cxx compiler support -rpath directly
 
6529
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6530
      fi
 
6531
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6532
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6533
      ;;
 
6534
 
 
6535
    solaris*)
 
6536
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
6537
      if test "$GCC" = yes; then
 
6538
        wlarc='${wl}'
 
6539
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6540
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6541
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6542
      else
 
6543
        case `$CC -V 2>&1` in
 
6544
        *"Compilers 5.0"*)
 
6545
          wlarc=''
 
6546
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6547
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6548
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
6549
          ;;
 
6550
        *)
 
6551
          wlarc='${wl}'
 
6552
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6553
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6554
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6555
          ;;
 
6556
        esac
 
6557
      fi
 
6558
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6559
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6560
      case $host_os in
 
6561
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6562
      *)
 
6563
        # The compiler driver will combine and reorder linker options,
 
6564
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6565
        # but is careful enough not to reorder.
 
6566
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6567
        if test "$GCC" = yes; then
 
6568
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6569
        else
 
6570
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6571
        fi
 
6572
        ;;
 
6573
      esac
 
6574
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6575
      ;;
 
6576
 
 
6577
    sunos4*)
 
6578
      if test "x$host_vendor" = xsequent; then
 
6579
        # Use $CC to link under sequent, because it throws in some extra .o
 
6580
        # files that make .init and .fini sections work.
 
6581
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6582
      else
 
6583
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6584
      fi
 
6585
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6586
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6587
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6588
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6589
      ;;
 
6590
 
 
6591
    sysv4)
 
6592
      case $host_vendor in
 
6593
        sni)
 
6594
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6595
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6596
        ;;
 
6597
        siemens)
 
6598
          ## LD is ld it makes a PLAMLIB
 
6599
          ## CC just makes a GrossModule.
 
6600
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6601
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6602
          _LT_TAGVAR(hardcode_direct, $1)=no
 
6603
        ;;
 
6604
        motorola)
 
6605
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6606
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6607
        ;;
 
6608
      esac
 
6609
      runpath_var='LD_RUN_PATH'
 
6610
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6611
      ;;
 
6612
 
 
6613
    sysv4.3*)
 
6614
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6615
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6616
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6617
      ;;
 
6618
 
 
6619
    sysv4*MP*)
 
6620
      if test -d /usr/nec; then
 
6621
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6622
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6623
        runpath_var=LD_RUN_PATH
 
6624
        hardcode_runpath_var=yes
 
6625
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6626
      fi
 
6627
      ;;
 
6628
 
 
6629
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6630
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6631
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6632
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6633
      runpath_var='LD_RUN_PATH'
 
6634
 
 
6635
      if test "$GCC" = yes; then
 
6636
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6637
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6638
      else
 
6639
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6640
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6641
      fi
 
6642
      ;;
 
6643
 
 
6644
    sysv5* | sco3.2v5* | sco5v6*)
 
6645
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6646
      # link with -lc, and that would cause any symbols used from libc to
 
6647
      # always be unresolved, which means just about no library would
 
6648
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6649
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6650
      # as -z defs.
 
6651
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6652
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6653
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6654
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6655
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6656
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6657
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6658
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6659
      runpath_var='LD_RUN_PATH'
 
6660
 
 
6661
      if test "$GCC" = yes; then
 
6662
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6663
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6664
      else
 
6665
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6666
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6667
      fi
 
6668
      ;;
 
6669
 
 
6670
    uts4*)
 
6671
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6672
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6673
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6674
      ;;
 
6675
 
 
6676
    *)
 
6677
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6678
      ;;
 
6679
    esac
 
6680
 
 
6681
    if test x$host_vendor = xsni; then
 
6682
      case $host in
 
6683
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6684
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6685
        ;;
 
6686
      esac
 
6687
    fi
 
6688
  fi
 
6689
])
 
6690
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6691
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6692
 
 
6693
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6694
 
 
6695
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6696
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6697
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6698
    [The commands to extract the exported symbol list from a shared archive])
 
6699
 
 
6700
#
 
6701
# Do we need to explicitly link libc?
 
6702
#
 
6703
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
6704
x|xyes)
 
6705
  # Assume -lc should be added
 
6706
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6707
 
 
6708
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6709
    case $_LT_TAGVAR(archive_cmds, $1) in
 
6710
    *'~'*)
 
6711
      # FIXME: we may have to deal with multi-command sequences.
 
6712
      ;;
 
6713
    '$CC '*)
 
6714
      # Test whether the compiler implicitly links with -lc since on some
 
6715
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6716
      # to ld, don't add -lc before -lgcc.
 
6717
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
6718
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
6719
        [$RM conftest*
 
6720
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6721
 
 
6722
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6723
          soname=conftest
 
6724
          lib=conftest
 
6725
          libobjs=conftest.$ac_objext
 
6726
          deplibs=
 
6727
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6728
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6729
          compiler_flags=-v
 
6730
          linker_flags=-v
 
6731
          verstring=
 
6732
          output_objdir=.
 
6733
          libname=conftest
 
6734
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6735
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
6736
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6737
          then
 
6738
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6739
          else
 
6740
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6741
          fi
 
6742
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6743
        else
 
6744
          cat conftest.err 1>&5
 
6745
        fi
 
6746
        $RM conftest*
 
6747
        ])
 
6748
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 
6749
      ;;
 
6750
    esac
 
6751
  fi
 
6752
  ;;
 
6753
esac
 
6754
 
 
6755
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6756
    [Whether or not to add -lc for building shared libraries])
 
6757
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6758
    [enable_shared_with_static_runtimes], [0],
 
6759
    [Whether or not to disallow shared libs when runtime libs are static])
 
6760
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6761
    [Compiler flag to allow reflexive dlopens])
 
6762
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6763
    [Compiler flag to generate shared objects directly from archives])
 
6764
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6765
    [Whether the compiler copes with passing no objects directly])
 
6766
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6767
    [Create an old-style archive from a shared archive])
 
6768
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6769
    [Create a temporary old-style archive to link instead of a shared archive])
 
6770
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6771
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6772
_LT_TAGDECL([], [module_cmds], [2],
 
6773
    [Commands used to build a loadable module if different from building
 
6774
    a shared archive.])
 
6775
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6776
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6777
    [Whether we are building with GNU ld or not])
 
6778
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6779
    [Flag that allows shared libraries with undefined symbols to be built])
 
6780
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6781
    [Flag that enforces no undefined symbols])
 
6782
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6783
    [Flag to hardcode $libdir into a binary during linking.
 
6784
    This must work even if $libdir does not exist])
 
6785
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6786
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6787
    during linking.  This must work even if $libdir does not exist]])
 
6788
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6789
    [Whether we need a single "-rpath" flag with a separated argument])
 
6790
_LT_TAGDECL([], [hardcode_direct], [0],
 
6791
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6792
    DIR into the resulting binary])
 
6793
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6794
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6795
    DIR into the resulting binary and the resulting library dependency is
 
6796
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6797
    library is relocated])
 
6798
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6799
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6800
    into the resulting binary])
 
6801
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6802
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6803
    into the resulting binary])
 
6804
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6805
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6806
    into the library and all subsequent libraries and executables linked
 
6807
    against it])
 
6808
_LT_TAGDECL([], [inherit_rpath], [0],
 
6809
    [Set to yes if linker adds runtime paths of dependent libraries
 
6810
    to runtime path list])
 
6811
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6812
    [Whether libtool must link a program against all its dependency libraries])
 
6813
_LT_TAGDECL([], [always_export_symbols], [0],
 
6814
    [Set to "yes" if exported symbols are required])
 
6815
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6816
    [The commands to list exported symbols])
 
6817
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6818
    [Symbols that should not be listed in the preloaded symbols])
 
6819
_LT_TAGDECL([], [include_expsyms], [1],
 
6820
    [Symbols that must always be exported])
 
6821
_LT_TAGDECL([], [prelink_cmds], [2],
 
6822
    [Commands necessary for linking programs (against libraries) with templates])
 
6823
_LT_TAGDECL([], [postlink_cmds], [2],
 
6824
    [Commands necessary for finishing linking programs])
 
6825
_LT_TAGDECL([], [file_list_spec], [1],
 
6826
    [Specify filename containing input files])
 
6827
dnl FIXME: Not yet implemented
 
6828
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6829
dnl    [Compiler flag to generate thread safe objects])
 
6830
])# _LT_LINKER_SHLIBS
 
6831
 
 
6832
 
 
6833
# _LT_LANG_C_CONFIG([TAG])
 
6834
# ------------------------
 
6835
# Ensure that the configuration variables for a C compiler are suitably
 
6836
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6837
# the compiler configuration to `libtool'.
 
6838
m4_defun([_LT_LANG_C_CONFIG],
 
6839
[m4_require([_LT_DECL_EGREP])dnl
 
6840
lt_save_CC="$CC"
 
6841
AC_LANG_PUSH(C)
 
6842
 
 
6843
# Source file extension for C test sources.
 
6844
ac_ext=c
 
6845
 
 
6846
# Object file extension for compiled C test sources.
 
6847
objext=o
 
6848
_LT_TAGVAR(objext, $1)=$objext
 
6849
 
 
6850
# Code to be used in simple compile tests
 
6851
lt_simple_compile_test_code="int some_variable = 0;"
 
6852
 
 
6853
# Code to be used in simple link tests
 
6854
lt_simple_link_test_code='int main(){return(0);}'
 
6855
 
 
6856
_LT_TAG_COMPILER
 
6857
# Save the default compiler, since it gets overwritten when the other
 
6858
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6859
compiler_DEFAULT=$CC
 
6860
 
 
6861
# save warnings/boilerplate of simple test code
 
6862
_LT_COMPILER_BOILERPLATE
 
6863
_LT_LINKER_BOILERPLATE
 
6864
 
 
6865
if test -n "$compiler"; then
 
6866
  _LT_COMPILER_NO_RTTI($1)
 
6867
  _LT_COMPILER_PIC($1)
 
6868
  _LT_COMPILER_C_O($1)
 
6869
  _LT_COMPILER_FILE_LOCKS($1)
 
6870
  _LT_LINKER_SHLIBS($1)
 
6871
  _LT_SYS_DYNAMIC_LINKER($1)
 
6872
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6873
  LT_SYS_DLOPEN_SELF
 
6874
  _LT_CMD_STRIPLIB
 
6875
 
 
6876
  # Report which library types will actually be built
 
6877
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6878
  AC_MSG_RESULT([$can_build_shared])
 
6879
 
 
6880
  AC_MSG_CHECKING([whether to build shared libraries])
 
6881
  test "$can_build_shared" = "no" && enable_shared=no
 
6882
 
 
6883
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6884
  # are all built from PIC.
 
6885
  case $host_os in
 
6886
  aix3*)
 
6887
    test "$enable_shared" = yes && enable_static=no
 
6888
    if test -n "$RANLIB"; then
 
6889
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6890
      postinstall_cmds='$RANLIB $lib'
 
6891
    fi
 
6892
    ;;
 
6893
 
 
6894
  aix[[4-9]]*)
 
6895
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6896
      test "$enable_shared" = yes && enable_static=no
 
6897
    fi
 
6898
    ;;
 
6899
  esac
 
6900
  AC_MSG_RESULT([$enable_shared])
 
6901
 
 
6902
  AC_MSG_CHECKING([whether to build static libraries])
 
6903
  # Make sure either enable_shared or enable_static is yes.
 
6904
  test "$enable_shared" = yes || enable_static=yes
 
6905
  AC_MSG_RESULT([$enable_static])
 
6906
 
 
6907
  _LT_CONFIG($1)
 
6908
fi
 
6909
AC_LANG_POP
 
6910
CC="$lt_save_CC"
 
6911
])# _LT_LANG_C_CONFIG
 
6912
 
 
6913
 
 
6914
# _LT_LANG_CXX_CONFIG([TAG])
 
6915
# --------------------------
 
6916
# Ensure that the configuration variables for a C++ compiler are suitably
 
6917
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6918
# the compiler configuration to `libtool'.
 
6919
m4_defun([_LT_LANG_CXX_CONFIG],
 
6920
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6921
m4_require([_LT_DECL_EGREP])dnl
 
6922
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 
6923
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6924
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6925
    (test "X$CXX" != "Xg++"))) ; then
 
6926
  AC_PROG_CXXCPP
 
6927
else
 
6928
  _lt_caught_CXX_error=yes
 
6929
fi
 
6930
 
 
6931
AC_LANG_PUSH(C++)
 
6932
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6933
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6934
_LT_TAGVAR(always_export_symbols, $1)=no
 
6935
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6936
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6937
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6938
_LT_TAGVAR(hardcode_direct, $1)=no
 
6939
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6940
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6941
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6942
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6943
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6944
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6945
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6946
_LT_TAGVAR(inherit_rpath, $1)=no
 
6947
_LT_TAGVAR(module_cmds, $1)=
 
6948
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6949
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6950
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6951
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6952
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
6953
_LT_TAGVAR(no_undefined_flag, $1)=
 
6954
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6955
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6956
 
 
6957
# Source file extension for C++ test sources.
 
6958
ac_ext=cpp
 
6959
 
 
6960
# Object file extension for compiled C++ test sources.
 
6961
objext=o
 
6962
_LT_TAGVAR(objext, $1)=$objext
 
6963
 
 
6964
# No sense in running all these tests if we already determined that
 
6965
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6966
# are currently assumed to apply to all compilers on this platform,
 
6967
# and will be corrupted by setting them based on a non-working compiler.
 
6968
if test "$_lt_caught_CXX_error" != yes; then
 
6969
  # Code to be used in simple compile tests
 
6970
  lt_simple_compile_test_code="int some_variable = 0;"
 
6971
 
 
6972
  # Code to be used in simple link tests
 
6973
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6974
 
 
6975
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6976
  _LT_TAG_COMPILER
 
6977
 
 
6978
  # save warnings/boilerplate of simple test code
 
6979
  _LT_COMPILER_BOILERPLATE
 
6980
  _LT_LINKER_BOILERPLATE
 
6981
 
 
6982
  # Allow CC to be a program name with arguments.
 
6983
  lt_save_CC=$CC
 
6984
  lt_save_CFLAGS=$CFLAGS
 
6985
  lt_save_LD=$LD
 
6986
  lt_save_GCC=$GCC
 
6987
  GCC=$GXX
 
6988
  lt_save_with_gnu_ld=$with_gnu_ld
 
6989
  lt_save_path_LD=$lt_cv_path_LD
 
6990
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6991
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6992
  else
 
6993
    $as_unset lt_cv_prog_gnu_ld
 
6994
  fi
 
6995
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6996
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6997
  else
 
6998
    $as_unset lt_cv_path_LD
 
6999
  fi
 
7000
  test -z "${LDCXX+set}" || LD=$LDCXX
 
7001
  CC=${CXX-"c++"}
 
7002
  CFLAGS=$CXXFLAGS
 
7003
  compiler=$CC
 
7004
  _LT_TAGVAR(compiler, $1)=$CC
 
7005
  _LT_CC_BASENAME([$compiler])
 
7006
 
 
7007
  if test -n "$compiler"; then
 
7008
    # We don't want -fno-exception when compiling C++ code, so set the
 
7009
    # no_builtin_flag separately
 
7010
    if test "$GXX" = yes; then
 
7011
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
7012
    else
 
7013
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
7014
    fi
 
7015
 
 
7016
    if test "$GXX" = yes; then
 
7017
      # Set up default GNU C++ configuration
 
7018
 
 
7019
      LT_PATH_LD
 
7020
 
 
7021
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
7022
      # archiving commands below assume that GNU ld is being used.
 
7023
      if test "$with_gnu_ld" = yes; then
 
7024
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7025
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7026
 
 
7027
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7028
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7029
 
 
7030
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
7031
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
7032
        #     investigate it a little bit more. (MM)
 
7033
        wlarc='${wl}'
 
7034
 
 
7035
        # ancient GNU ld didn't support --whole-archive et. al.
 
7036
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
7037
          $GREP 'no-whole-archive' > /dev/null; then
 
7038
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7039
        else
 
7040
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7041
        fi
 
7042
      else
 
7043
        with_gnu_ld=no
 
7044
        wlarc=
 
7045
 
 
7046
        # A generic and very simple default shared library creation
 
7047
        # command for GNU C++ for the case where it uses the native
 
7048
        # linker, instead of GNU ld.  If possible, this setting should
 
7049
        # overridden to take advantage of the native linker features on
 
7050
        # the platform it is being used on.
 
7051
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7052
      fi
 
7053
 
 
7054
      # Commands to make compiler produce verbose output that lists
 
7055
      # what "hidden" libraries, object files and flags are used when
 
7056
      # linking a shared library.
 
7057
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7058
 
 
7059
    else
 
7060
      GXX=no
 
7061
      with_gnu_ld=no
 
7062
      wlarc=
 
7063
    fi
 
7064
 
 
7065
    # PORTME: fill in a description of your system's C++ link characteristics
 
7066
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
7067
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
7068
    case $host_os in
 
7069
      aix3*)
 
7070
        # FIXME: insert proper C++ library support
 
7071
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7072
        ;;
 
7073
      aix[[4-9]]*)
 
7074
        if test "$host_cpu" = ia64; then
 
7075
          # On IA64, the linker does run time linking by default, so we don't
 
7076
          # have to do anything special.
 
7077
          aix_use_runtimelinking=no
 
7078
          exp_sym_flag='-Bexport'
 
7079
          no_entry_flag=""
 
7080
        else
 
7081
          aix_use_runtimelinking=no
 
7082
 
 
7083
          # Test if we are trying to use run time linking or normal
 
7084
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7085
          # need to do runtime linking.
 
7086
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
7087
            for ld_flag in $LDFLAGS; do
 
7088
              case $ld_flag in
 
7089
              *-brtl*)
 
7090
                aix_use_runtimelinking=yes
 
7091
                break
 
7092
                ;;
 
7093
              esac
 
7094
            done
 
7095
            ;;
 
7096
          esac
 
7097
 
 
7098
          exp_sym_flag='-bexport'
 
7099
          no_entry_flag='-bnoentry'
 
7100
        fi
 
7101
 
 
7102
        # When large executables or shared objects are built, AIX ld can
 
7103
        # have problems creating the table of contents.  If linking a library
 
7104
        # or program results in "error TOC overflow" add -mminimal-toc to
 
7105
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7106
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7107
 
 
7108
        _LT_TAGVAR(archive_cmds, $1)=''
 
7109
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7110
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7111
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7112
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7113
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
7114
 
 
7115
        if test "$GXX" = yes; then
 
7116
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
7117
          # We only want to do this on AIX 4.2 and lower, the check
 
7118
          # below for broken collect2 doesn't work under 4.3+
 
7119
          collect2name=`${CC} -print-prog-name=collect2`
 
7120
          if test -f "$collect2name" &&
 
7121
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
7122
          then
 
7123
            # We have reworked collect2
 
7124
            :
 
7125
          else
 
7126
            # We have old collect2
 
7127
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
7128
            # It fails to find uninstalled libraries when the uninstalled
 
7129
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
7130
            # to unsupported forces relinking
 
7131
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7132
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7133
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7134
          fi
 
7135
          esac
 
7136
          shared_flag='-shared'
 
7137
          if test "$aix_use_runtimelinking" = yes; then
 
7138
            shared_flag="$shared_flag "'${wl}-G'
 
7139
          fi
 
7140
        else
 
7141
          # not using gcc
 
7142
          if test "$host_cpu" = ia64; then
 
7143
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7144
          # chokes on -Wl,-G. The following line is correct:
 
7145
          shared_flag='-G'
 
7146
          else
 
7147
            if test "$aix_use_runtimelinking" = yes; then
 
7148
              shared_flag='${wl}-G'
 
7149
            else
 
7150
              shared_flag='${wl}-bM:SRE'
 
7151
            fi
 
7152
          fi
 
7153
        fi
 
7154
 
 
7155
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
7156
        # It seems that -bexpall does not export symbols beginning with
 
7157
        # underscore (_), so it is better to generate a list of symbols to
 
7158
        # export.
 
7159
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
7160
        if test "$aix_use_runtimelinking" = yes; then
 
7161
          # Warning - without using the other runtime loading flags (-brtl),
 
7162
          # -berok will link without error, but may produce a broken library.
 
7163
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7164
          # Determine the default libpath from the value encoded in an empty
 
7165
          # executable.
 
7166
          _LT_SYS_MODULE_PATH_AIX([$1])
 
7167
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7168
 
 
7169
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7170
        else
 
7171
          if test "$host_cpu" = ia64; then
 
7172
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7173
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
7174
            _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"
 
7175
          else
 
7176
            # Determine the default libpath from the value encoded in an
 
7177
            # empty executable.
 
7178
            _LT_SYS_MODULE_PATH_AIX([$1])
 
7179
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7180
            # Warning - without using the other run time loading flags,
 
7181
            # -berok will link without error, but may produce a broken library.
 
7182
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
7183
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
7184
            if test "$with_gnu_ld" = yes; then
 
7185
              # We only use this code for GNU lds that support --whole-archive.
 
7186
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7187
            else
 
7188
              # Exported symbols can be pulled into shared objects from archives
 
7189
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7190
            fi
 
7191
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7192
            # This is similar to how AIX traditionally builds its shared
 
7193
            # libraries.
 
7194
            _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'
 
7195
          fi
 
7196
        fi
 
7197
        ;;
 
7198
 
 
7199
      beos*)
 
7200
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7201
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7202
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7203
          # support --undefined.  This deserves some investigation.  FIXME
 
7204
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7205
        else
 
7206
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7207
        fi
 
7208
        ;;
 
7209
 
 
7210
      chorus*)
 
7211
        case $cc_basename in
 
7212
          *)
 
7213
          # FIXME: insert proper C++ library support
 
7214
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7215
          ;;
 
7216
        esac
 
7217
        ;;
 
7218
 
 
7219
      cygwin* | mingw* | pw32* | cegcc*)
 
7220
        case $GXX,$cc_basename in
 
7221
        ,cl* | no,cl*)
 
7222
          # Native MSVC
 
7223
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7224
          # no search path for DLLs.
 
7225
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7226
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7227
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
7228
          _LT_TAGVAR(file_list_spec, $1)='@'
 
7229
          # Tell ltmain to make .lib files, not .a files.
 
7230
          libext=lib
 
7231
          # Tell ltmain to make .dll files, not .so files.
 
7232
          shrext_cmds=".dll"
 
7233
          # FIXME: Setting linknames here is a bad hack.
 
7234
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
7235
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7236
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
7237
            else
 
7238
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
7239
            fi~
 
7240
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
7241
            linknames='
 
7242
          # The linker will not automatically build a static lib if we build a DLL.
 
7243
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
7244
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7245
          # Don't use ranlib
 
7246
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
7247
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
7248
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
7249
            case $lt_outputfile in
 
7250
              *.exe|*.EXE) ;;
 
7251
              *)
 
7252
                lt_outputfile="$lt_outputfile.exe"
 
7253
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
7254
                ;;
 
7255
            esac~
 
7256
            func_to_tool_file "$lt_outputfile"~
 
7257
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
7258
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
7259
              $RM "$lt_outputfile.manifest";
 
7260
            fi'
 
7261
          ;;
 
7262
        *)
 
7263
          # g++
 
7264
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7265
          # as there is no search path for DLLs.
 
7266
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7267
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
7268
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7269
          _LT_TAGVAR(always_export_symbols, $1)=no
 
7270
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7271
 
 
7272
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7273
            _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'
 
7274
            # If the export-symbols file already is a .def file (1st line
 
7275
            # is EXPORTS), use it as is; otherwise, prepend...
 
7276
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7277
              cp $export_symbols $output_objdir/$soname.def;
 
7278
            else
 
7279
              echo EXPORTS > $output_objdir/$soname.def;
 
7280
              cat $export_symbols >> $output_objdir/$soname.def;
 
7281
            fi~
 
7282
            $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'
 
7283
          else
 
7284
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7285
          fi
 
7286
          ;;
 
7287
        esac
 
7288
        ;;
 
7289
      darwin* | rhapsody*)
 
7290
        _LT_DARWIN_LINKER_FEATURES($1)
 
7291
        ;;
 
7292
 
 
7293
      dgux*)
 
7294
        case $cc_basename in
 
7295
          ec++*)
 
7296
            # FIXME: insert proper C++ library support
 
7297
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7298
            ;;
 
7299
          ghcx*)
 
7300
            # Green Hills C++ Compiler
 
7301
            # FIXME: insert proper C++ library support
 
7302
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7303
            ;;
 
7304
          *)
 
7305
            # FIXME: insert proper C++ library support
 
7306
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7307
            ;;
 
7308
        esac
 
7309
        ;;
 
7310
 
 
7311
      freebsd[[12]]*)
 
7312
        # C++ shared libraries reported to be fairly broken before
 
7313
        # switch to ELF
 
7314
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7315
        ;;
 
7316
 
 
7317
      freebsd-elf*)
 
7318
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7319
        ;;
 
7320
 
 
7321
      freebsd* | dragonfly*)
 
7322
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
7323
        # conventions
 
7324
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7325
        ;;
 
7326
 
 
7327
      gnu*)
 
7328
        ;;
 
7329
 
 
7330
      haiku*)
 
7331
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7332
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7333
        ;;
 
7334
 
 
7335
      hpux9*)
 
7336
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7337
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7338
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7339
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7340
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
7341
                                             # but as the default
 
7342
                                             # location of the library.
 
7343
 
 
7344
        case $cc_basename in
 
7345
          CC*)
 
7346
            # FIXME: insert proper C++ library support
 
7347
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7348
            ;;
 
7349
          aCC*)
 
7350
            _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'
 
7351
            # Commands to make compiler produce verbose output that lists
 
7352
            # what "hidden" libraries, object files and flags are used when
 
7353
            # linking a shared library.
 
7354
            #
 
7355
            # There doesn't appear to be a way to prevent this compiler from
 
7356
            # explicitly linking system object files so we need to strip them
 
7357
            # from the output so that they don't get included in the library
 
7358
            # dependencies.
 
7359
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7360
            ;;
 
7361
          *)
 
7362
            if test "$GXX" = yes; then
 
7363
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
7364
            else
 
7365
              # FIXME: insert proper C++ library support
 
7366
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7367
            fi
 
7368
            ;;
 
7369
        esac
 
7370
        ;;
 
7371
 
 
7372
      hpux10*|hpux11*)
 
7373
        if test $with_gnu_ld = no; then
 
7374
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7375
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7376
 
 
7377
          case $host_cpu in
 
7378
            hppa*64*|ia64*)
 
7379
              ;;
 
7380
            *)
 
7381
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7382
              ;;
 
7383
          esac
 
7384
        fi
 
7385
        case $host_cpu in
 
7386
          hppa*64*|ia64*)
 
7387
            _LT_TAGVAR(hardcode_direct, $1)=no
 
7388
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7389
            ;;
 
7390
          *)
 
7391
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
7392
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7393
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
7394
                                                 # but as the default
 
7395
                                                 # location of the library.
 
7396
            ;;
 
7397
        esac
 
7398
 
 
7399
        case $cc_basename in
 
7400
          CC*)
 
7401
            # FIXME: insert proper C++ library support
 
7402
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7403
            ;;
 
7404
          aCC*)
 
7405
            case $host_cpu in
 
7406
              hppa*64*)
 
7407
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7408
                ;;
 
7409
              ia64*)
 
7410
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7411
                ;;
 
7412
              *)
 
7413
                _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'
 
7414
                ;;
 
7415
            esac
 
7416
            # Commands to make compiler produce verbose output that lists
 
7417
            # what "hidden" libraries, object files and flags are used when
 
7418
            # linking a shared library.
 
7419
            #
 
7420
            # There doesn't appear to be a way to prevent this compiler from
 
7421
            # explicitly linking system object files so we need to strip them
 
7422
            # from the output so that they don't get included in the library
 
7423
            # dependencies.
 
7424
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7425
            ;;
 
7426
          *)
 
7427
            if test "$GXX" = yes; then
 
7428
              if test $with_gnu_ld = no; then
 
7429
                case $host_cpu in
 
7430
                  hppa*64*)
 
7431
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7432
                    ;;
 
7433
                  ia64*)
 
7434
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7435
                    ;;
 
7436
                  *)
 
7437
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7438
                    ;;
 
7439
                esac
 
7440
              fi
 
7441
            else
 
7442
              # FIXME: insert proper C++ library support
 
7443
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7444
            fi
 
7445
            ;;
 
7446
        esac
 
7447
        ;;
 
7448
 
 
7449
      interix[[3-9]]*)
 
7450
        _LT_TAGVAR(hardcode_direct, $1)=no
 
7451
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7452
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7453
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7454
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7455
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7456
        # default) and relocated if they conflict, which is a slow very memory
 
7457
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
7458
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7459
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7460
        _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'
 
7461
        _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'
 
7462
        ;;
 
7463
      irix5* | irix6*)
 
7464
        case $cc_basename in
 
7465
          CC*)
 
7466
            # SGI C++
 
7467
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7468
 
 
7469
            # Archives containing C++ object files must be created using
 
7470
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
7471
            # necessary to make sure instantiated templates are included
 
7472
            # in the archive.
 
7473
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
7474
            ;;
 
7475
          *)
 
7476
            if test "$GXX" = yes; then
 
7477
              if test "$with_gnu_ld" = no; then
 
7478
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7479
              else
 
7480
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
7481
              fi
 
7482
            fi
 
7483
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7484
            ;;
 
7485
        esac
 
7486
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7487
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7488
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
7489
        ;;
 
7490
 
 
7491
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7492
        case $cc_basename in
 
7493
          KCC*)
 
7494
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7495
 
 
7496
            # KCC will only create a shared library if the output file
 
7497
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7498
            # to its proper name (with version) after linking.
 
7499
            _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'
 
7500
            _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'
 
7501
            # Commands to make compiler produce verbose output that lists
 
7502
            # what "hidden" libraries, object files and flags are used when
 
7503
            # linking a shared library.
 
7504
            #
 
7505
            # There doesn't appear to be a way to prevent this compiler from
 
7506
            # explicitly linking system object files so we need to strip them
 
7507
            # from the output so that they don't get included in the library
 
7508
            # dependencies.
 
7509
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7510
 
 
7511
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7512
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7513
 
 
7514
            # Archives containing C++ object files must be created using
 
7515
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
7516
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
7517
            ;;
 
7518
          icpc* | ecpc* )
 
7519
            # Intel C++
 
7520
            with_gnu_ld=yes
 
7521
            # version 8.0 and above of icpc choke on multiply defined symbols
 
7522
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
7523
            # earlier do not add the objects themselves.
 
7524
            case `$CC -V 2>&1` in
 
7525
              *"Version 7."*)
 
7526
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7527
                _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'
 
7528
                ;;
 
7529
              *)  # Version 8.0 or newer
 
7530
                tmp_idyn=
 
7531
                case $host_cpu in
 
7532
                  ia64*) tmp_idyn=' -i_dynamic';;
 
7533
                esac
 
7534
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7535
                _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'
 
7536
                ;;
 
7537
            esac
 
7538
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7539
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7540
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7541
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7542
            ;;
 
7543
          pgCC* | pgcpp*)
 
7544
            # Portland Group C++ compiler
 
7545
            case `$CC -V` in
 
7546
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 
7547
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
7548
                rm -rf $tpldir~
 
7549
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
7550
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
7551
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
7552
                rm -rf $tpldir~
 
7553
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
7554
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
7555
                $RANLIB $oldlib'
 
7556
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
7557
                rm -rf $tpldir~
 
7558
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7559
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7560
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
7561
                rm -rf $tpldir~
 
7562
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7563
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
7564
              ;;
 
7565
            *) # Version 6 and above use weak symbols
 
7566
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7567
              _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'
 
7568
              ;;
 
7569
            esac
 
7570
 
 
7571
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
7572
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7573
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7574
            ;;
 
7575
          cxx*)
 
7576
            # Compaq C++
 
7577
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7578
            _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'
 
7579
 
 
7580
            runpath_var=LD_RUN_PATH
 
7581
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7582
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7583
 
 
7584
            # Commands to make compiler produce verbose output that lists
 
7585
            # what "hidden" libraries, object files and flags are used when
 
7586
            # linking a shared library.
 
7587
            #
 
7588
            # There doesn't appear to be a way to prevent this compiler from
 
7589
            # explicitly linking system object files so we need to strip them
 
7590
            # from the output so that they don't get included in the library
 
7591
            # dependencies.
 
7592
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
7593
            ;;
 
7594
          xl* | mpixl* | bgxl*)
 
7595
            # IBM XL 8.0 on PPC, with GNU ld
 
7596
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7597
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7598
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7599
            if test "x$supports_anon_versioning" = xyes; then
 
7600
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7601
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7602
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
7603
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7604
            fi
 
7605
            ;;
 
7606
          *)
 
7607
            case `$CC -V 2>&1 | sed 5q` in
 
7608
            *Sun\ C*)
 
7609
              # Sun C++ 5.9
 
7610
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7611
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7612
              _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'
 
7613
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7614
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7615
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7616
 
 
7617
              # Not sure whether something based on
 
7618
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
7619
              # would be better.
 
7620
              output_verbose_link_cmd='func_echo_all'
 
7621
 
 
7622
              # Archives containing C++ object files must be created using
 
7623
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7624
              # necessary to make sure instantiated templates are included
 
7625
              # in the archive.
 
7626
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7627
              ;;
 
7628
            esac
 
7629
            ;;
 
7630
        esac
 
7631
        ;;
 
7632
 
 
7633
      lynxos*)
 
7634
        # FIXME: insert proper C++ library support
 
7635
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7636
        ;;
 
7637
 
 
7638
      m88k*)
 
7639
        # FIXME: insert proper C++ library support
 
7640
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7641
        ;;
 
7642
 
 
7643
      mvs*)
 
7644
        case $cc_basename in
 
7645
          cxx*)
 
7646
            # FIXME: insert proper C++ library support
 
7647
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7648
            ;;
 
7649
          *)
 
7650
            # FIXME: insert proper C++ library support
 
7651
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7652
            ;;
 
7653
        esac
 
7654
        ;;
 
7655
 
 
7656
      netbsd*)
 
7657
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7658
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
7659
          wlarc=
 
7660
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7661
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7662
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7663
        fi
 
7664
        # Workaround some broken pre-1.5 toolchains
 
7665
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
7666
        ;;
 
7667
 
 
7668
      *nto* | *qnx*)
 
7669
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7670
        ;;
 
7671
 
 
7672
      openbsd2*)
 
7673
        # C++ shared libraries are fairly broken
 
7674
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7675
        ;;
 
7676
 
 
7677
      openbsd*)
 
7678
        if test -f /usr/libexec/ld.so; then
 
7679
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7680
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7681
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7682
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7683
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7684
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7685
            _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'
 
7686
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7687
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7688
          fi
 
7689
          output_verbose_link_cmd=func_echo_all
 
7690
        else
 
7691
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7692
        fi
 
7693
        ;;
 
7694
 
 
7695
      osf3* | osf4* | osf5*)
 
7696
        case $cc_basename in
 
7697
          KCC*)
 
7698
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7699
 
 
7700
            # KCC will only create a shared library if the output file
 
7701
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7702
            # to its proper name (with version) after linking.
 
7703
            _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'
 
7704
 
 
7705
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7706
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7707
 
 
7708
            # Archives containing C++ object files must be created using
 
7709
            # the KAI C++ compiler.
 
7710
            case $host in
 
7711
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7712
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7713
            esac
 
7714
            ;;
 
7715
          RCC*)
 
7716
            # Rational C++ 2.4.1
 
7717
            # FIXME: insert proper C++ library support
 
7718
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7719
            ;;
 
7720
          cxx*)
 
7721
            case $host in
 
7722
              osf3*)
 
7723
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7724
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7725
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7726
                ;;
 
7727
              *)
 
7728
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7729
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7730
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7731
                  echo "-hidden">> $lib.exp~
 
7732
                  $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~
 
7733
                  $RM $lib.exp'
 
7734
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7735
                ;;
 
7736
            esac
 
7737
 
 
7738
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7739
 
 
7740
            # Commands to make compiler produce verbose output that lists
 
7741
            # what "hidden" libraries, object files and flags are used when
 
7742
            # linking a shared library.
 
7743
            #
 
7744
            # There doesn't appear to be a way to prevent this compiler from
 
7745
            # explicitly linking system object files so we need to strip them
 
7746
            # from the output so that they don't get included in the library
 
7747
            # dependencies.
 
7748
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7749
            ;;
 
7750
          *)
 
7751
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7752
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7753
              case $host in
 
7754
                osf3*)
 
7755
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7756
                  ;;
 
7757
                *)
 
7758
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7759
                  ;;
 
7760
              esac
 
7761
 
 
7762
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7763
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7764
 
 
7765
              # Commands to make compiler produce verbose output that lists
 
7766
              # what "hidden" libraries, object files and flags are used when
 
7767
              # linking a shared library.
 
7768
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7769
 
 
7770
            else
 
7771
              # FIXME: insert proper C++ library support
 
7772
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7773
            fi
 
7774
            ;;
 
7775
        esac
 
7776
        ;;
 
7777
 
 
7778
      psos*)
 
7779
        # FIXME: insert proper C++ library support
 
7780
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7781
        ;;
 
7782
 
 
7783
      sunos4*)
 
7784
        case $cc_basename in
 
7785
          CC*)
 
7786
            # Sun C++ 4.x
 
7787
            # FIXME: insert proper C++ library support
 
7788
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7789
            ;;
 
7790
          lcc*)
 
7791
            # Lucid
 
7792
            # FIXME: insert proper C++ library support
 
7793
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7794
            ;;
 
7795
          *)
 
7796
            # FIXME: insert proper C++ library support
 
7797
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7798
            ;;
 
7799
        esac
 
7800
        ;;
 
7801
 
 
7802
      solaris*)
 
7803
        case $cc_basename in
 
7804
          CC* | sunCC*)
 
7805
            # Sun C++ 4.2, 5.x and Centerline C++
 
7806
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7807
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7808
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7809
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7810
              $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'
 
7811
 
 
7812
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7813
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7814
            case $host_os in
 
7815
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7816
              *)
 
7817
                # The compiler driver will combine and reorder linker options,
 
7818
                # but understands `-z linker_flag'.
 
7819
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7820
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7821
                ;;
 
7822
            esac
 
7823
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7824
 
 
7825
            output_verbose_link_cmd='func_echo_all'
 
7826
 
 
7827
            # Archives containing C++ object files must be created using
 
7828
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7829
            # necessary to make sure instantiated templates are included
 
7830
            # in the archive.
 
7831
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7832
            ;;
 
7833
          gcx*)
 
7834
            # Green Hills C++ Compiler
 
7835
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7836
 
 
7837
            # The C++ compiler must be used to create the archive.
 
7838
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7839
            ;;
 
7840
          *)
 
7841
            # GNU C++ compiler with Solaris linker
 
7842
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7843
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7844
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7845
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7846
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7847
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7848
 
 
7849
                # Commands to make compiler produce verbose output that lists
 
7850
                # what "hidden" libraries, object files and flags are used when
 
7851
                # linking a shared library.
 
7852
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7853
              else
 
7854
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7855
                # platform.
 
7856
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7857
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7858
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7859
 
 
7860
                # Commands to make compiler produce verbose output that lists
 
7861
                # what "hidden" libraries, object files and flags are used when
 
7862
                # linking a shared library.
 
7863
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7864
              fi
 
7865
 
 
7866
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7867
              case $host_os in
 
7868
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7869
                *)
 
7870
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7871
                  ;;
 
7872
              esac
 
7873
            fi
 
7874
            ;;
 
7875
        esac
 
7876
        ;;
 
7877
 
 
7878
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7879
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7880
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7881
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7882
      runpath_var='LD_RUN_PATH'
 
7883
 
 
7884
      case $cc_basename in
 
7885
        CC*)
 
7886
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7887
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7888
          ;;
 
7889
        *)
 
7890
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7891
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7892
          ;;
 
7893
      esac
 
7894
      ;;
 
7895
 
 
7896
      sysv5* | sco3.2v5* | sco5v6*)
 
7897
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7898
        # link with -lc, and that would cause any symbols used from libc to
 
7899
        # always be unresolved, which means just about no library would
 
7900
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7901
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7902
        # as -z defs.
 
7903
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7904
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7905
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7906
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7907
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7908
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7909
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7910
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7911
        runpath_var='LD_RUN_PATH'
 
7912
 
 
7913
        case $cc_basename in
 
7914
          CC*)
 
7915
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7916
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7917
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7918
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7919
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7920
              '"$_LT_TAGVAR(reload_cmds, $1)"
 
7921
            ;;
 
7922
          *)
 
7923
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7924
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7925
            ;;
 
7926
        esac
 
7927
      ;;
 
7928
 
 
7929
      tandem*)
 
7930
        case $cc_basename in
 
7931
          NCC*)
 
7932
            # NonStop-UX NCC 3.20
 
7933
            # FIXME: insert proper C++ library support
 
7934
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7935
            ;;
 
7936
          *)
 
7937
            # FIXME: insert proper C++ library support
 
7938
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7939
            ;;
 
7940
        esac
 
7941
        ;;
 
7942
 
 
7943
      vxworks*)
 
7944
        # FIXME: insert proper C++ library support
 
7945
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7946
        ;;
 
7947
 
 
7948
      *)
 
7949
        # FIXME: insert proper C++ library support
 
7950
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7951
        ;;
 
7952
    esac
 
7953
 
 
7954
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7955
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7956
 
 
7957
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7958
    _LT_TAGVAR(LD, $1)="$LD"
 
7959
 
 
7960
    ## CAVEAT EMPTOR:
 
7961
    ## There is no encapsulation within the following macros, do not change
 
7962
    ## the running order or otherwise move them around unless you know exactly
 
7963
    ## what you are doing...
 
7964
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7965
    _LT_COMPILER_PIC($1)
 
7966
    _LT_COMPILER_C_O($1)
 
7967
    _LT_COMPILER_FILE_LOCKS($1)
 
7968
    _LT_LINKER_SHLIBS($1)
 
7969
    _LT_SYS_DYNAMIC_LINKER($1)
 
7970
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7971
 
 
7972
    _LT_CONFIG($1)
 
7973
  fi # test -n "$compiler"
 
7974
 
 
7975
  CC=$lt_save_CC
 
7976
  CFLAGS=$lt_save_CFLAGS
 
7977
  LDCXX=$LD
 
7978
  LD=$lt_save_LD
 
7979
  GCC=$lt_save_GCC
 
7980
  with_gnu_ld=$lt_save_with_gnu_ld
 
7981
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7982
  lt_cv_path_LD=$lt_save_path_LD
 
7983
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7984
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7985
fi # test "$_lt_caught_CXX_error" != yes
 
7986
 
 
7987
AC_LANG_POP
 
7988
])# _LT_LANG_CXX_CONFIG
 
7989
 
 
7990
 
 
7991
# _LT_FUNC_STRIPNAME_CNF
 
7992
# ----------------------
 
7993
# func_stripname_cnf prefix suffix name
 
7994
# strip PREFIX and SUFFIX off of NAME.
 
7995
# PREFIX and SUFFIX must not contain globbing or regex special
 
7996
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7997
# dot (in which case that matches only a dot).
 
7998
#
 
7999
# This function is identical to the (non-XSI) version of func_stripname,
 
8000
# except this one can be used by m4 code that may be executed by configure,
 
8001
# rather than the libtool script.
 
8002
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
8003
AC_REQUIRE([_LT_DECL_SED])
 
8004
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
8005
func_stripname_cnf ()
 
8006
{
 
8007
  case ${2} in
 
8008
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8009
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8010
  esac
 
8011
} # func_stripname_cnf
 
8012
])# _LT_FUNC_STRIPNAME_CNF
 
8013
 
 
8014
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
8015
# ---------------------------------
 
8016
# Figure out "hidden" library dependencies from verbose
 
8017
# compiler output when linking a shared library.
 
8018
# Parse the compiler output and extract the necessary
 
8019
# objects, libraries and library flags.
 
8020
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
8021
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
8022
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 
8023
# Dependencies to place before and after the object being linked:
 
8024
_LT_TAGVAR(predep_objects, $1)=
 
8025
_LT_TAGVAR(postdep_objects, $1)=
 
8026
_LT_TAGVAR(predeps, $1)=
 
8027
_LT_TAGVAR(postdeps, $1)=
 
8028
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
8029
 
 
8030
dnl we can't use the lt_simple_compile_test_code here,
 
8031
dnl because it contains code intended for an executable,
 
8032
dnl not a library.  It's possible we should let each
 
8033
dnl tag define a new lt_????_link_test_code variable,
 
8034
dnl but it's only used here...
 
8035
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
8036
int a;
 
8037
void foo (void) { a = 0; }
 
8038
_LT_EOF
 
8039
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
8040
class Foo
 
8041
{
 
8042
public:
 
8043
  Foo (void) { a = 0; }
 
8044
private:
 
8045
  int a;
 
8046
};
 
8047
_LT_EOF
 
8048
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
8049
      subroutine foo
 
8050
      implicit none
 
8051
      integer*4 a
 
8052
      a=0
 
8053
      return
 
8054
      end
 
8055
_LT_EOF
 
8056
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
8057
      subroutine foo
 
8058
      implicit none
 
8059
      integer a
 
8060
      a=0
 
8061
      return
 
8062
      end
 
8063
_LT_EOF
 
8064
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
8065
public class foo {
 
8066
  private int a;
 
8067
  public void bar (void) {
 
8068
    a = 0;
 
8069
  }
 
8070
};
 
8071
_LT_EOF
 
8072
])
 
8073
 
 
8074
_lt_libdeps_save_CFLAGS=$CFLAGS
 
8075
case "$CC $CFLAGS " in #(
 
8076
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
8077
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
8078
esac
 
8079
 
 
8080
dnl Parse the compiler output and extract the necessary
 
8081
dnl objects, libraries and library flags.
 
8082
if AC_TRY_EVAL(ac_compile); then
 
8083
  # Parse the compiler output and extract the necessary
 
8084
  # objects, libraries and library flags.
 
8085
 
 
8086
  # Sentinel used to keep track of whether or not we are before
 
8087
  # the conftest object file.
 
8088
  pre_test_object_deps_done=no
 
8089
 
 
8090
  for p in `eval "$output_verbose_link_cmd"`; do
 
8091
    case ${prev}${p} in
 
8092
 
 
8093
    -L* | -R* | -l*)
 
8094
       # Some compilers place space between "-{L,R}" and the path.
 
8095
       # Remove the space.
 
8096
       if test $p = "-L" ||
 
8097
          test $p = "-R"; then
 
8098
         prev=$p
 
8099
         continue
 
8100
       fi
 
8101
 
 
8102
       # Expand the sysroot to ease extracting the directories later.
 
8103
       if test -z "$prev"; then
 
8104
         case $p in
 
8105
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
8106
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
8107
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
8108
         esac
 
8109
       fi
 
8110
       case $p in
 
8111
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
8112
       esac
 
8113
       if test "$pre_test_object_deps_done" = no; then
 
8114
         case ${prev} in
 
8115
         -L | -R)
 
8116
           # Internal compiler library paths should come after those
 
8117
           # provided the user.  The postdeps already come after the
 
8118
           # user supplied libs so there is no need to process them.
 
8119
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
8120
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
8121
           else
 
8122
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
8123
           fi
 
8124
           ;;
 
8125
         # The "-l" case would never come before the object being
 
8126
         # linked, so don't bother handling this case.
 
8127
         esac
 
8128
       else
 
8129
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
8130
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
8131
         else
 
8132
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
8133
         fi
 
8134
       fi
 
8135
       prev=
 
8136
       ;;
 
8137
 
 
8138
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
8139
    *.$objext)
 
8140
       # This assumes that the test object file only shows up
 
8141
       # once in the compiler output.
 
8142
       if test "$p" = "conftest.$objext"; then
 
8143
         pre_test_object_deps_done=yes
 
8144
         continue
 
8145
       fi
 
8146
 
 
8147
       if test "$pre_test_object_deps_done" = no; then
 
8148
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
8149
           _LT_TAGVAR(predep_objects, $1)="$p"
 
8150
         else
 
8151
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
8152
         fi
 
8153
       else
 
8154
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
8155
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
8156
         else
 
8157
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
8158
         fi
 
8159
       fi
 
8160
       ;;
 
8161
 
 
8162
    *) ;; # Ignore the rest.
 
8163
 
 
8164
    esac
 
8165
  done
 
8166
 
 
8167
  # Clean up.
 
8168
  rm -f a.out a.exe
 
8169
else
 
8170
  echo "libtool.m4: error: problem compiling $1 test program"
 
8171
fi
 
8172
 
 
8173
$RM -f confest.$objext
 
8174
CFLAGS=$_lt_libdeps_save_CFLAGS
 
8175
 
 
8176
# PORTME: override above test on systems where it is broken
 
8177
m4_if([$1], [CXX],
 
8178
[case $host_os in
 
8179
interix[[3-9]]*)
 
8180
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
8181
  # hack all around it, let's just trust "g++" to DTRT.
 
8182
  _LT_TAGVAR(predep_objects,$1)=
 
8183
  _LT_TAGVAR(postdep_objects,$1)=
 
8184
  _LT_TAGVAR(postdeps,$1)=
 
8185
  ;;
 
8186
 
 
8187
linux*)
 
8188
  case `$CC -V 2>&1 | sed 5q` in
 
8189
  *Sun\ C*)
 
8190
    # Sun C++ 5.9
 
8191
 
 
8192
    # The more standards-conforming stlport4 library is
 
8193
    # incompatible with the Cstd library. Avoid specifying
 
8194
    # it if it's in CXXFLAGS. Ignore libCrun as
 
8195
    # -library=stlport4 depends on it.
 
8196
    case " $CXX $CXXFLAGS " in
 
8197
    *" -library=stlport4 "*)
 
8198
      solaris_use_stlport4=yes
 
8199
      ;;
 
8200
    esac
 
8201
 
 
8202
    if test "$solaris_use_stlport4" != yes; then
 
8203
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
8204
    fi
 
8205
    ;;
 
8206
  esac
 
8207
  ;;
 
8208
 
 
8209
solaris*)
 
8210
  case $cc_basename in
 
8211
  CC* | sunCC*)
 
8212
    # The more standards-conforming stlport4 library is
 
8213
    # incompatible with the Cstd library. Avoid specifying
 
8214
    # it if it's in CXXFLAGS. Ignore libCrun as
 
8215
    # -library=stlport4 depends on it.
 
8216
    case " $CXX $CXXFLAGS " in
 
8217
    *" -library=stlport4 "*)
 
8218
      solaris_use_stlport4=yes
 
8219
      ;;
 
8220
    esac
 
8221
 
 
8222
    # Adding this requires a known-good setup of shared libraries for
 
8223
    # Sun compiler versions before 5.6, else PIC objects from an old
 
8224
    # archive will be linked into the output, leading to subtle bugs.
 
8225
    if test "$solaris_use_stlport4" != yes; then
 
8226
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
8227
    fi
 
8228
    ;;
 
8229
  esac
 
8230
  ;;
 
8231
esac
 
8232
])
 
8233
 
 
8234
case " $_LT_TAGVAR(postdeps, $1) " in
 
8235
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
8236
esac
 
8237
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
8238
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
8239
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
8240
fi
 
8241
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
8242
    [The directories searched by this compiler when creating a shared library])
 
8243
_LT_TAGDECL([], [predep_objects], [1],
 
8244
    [Dependencies to place before and after the objects being linked to
 
8245
    create a shared library])
 
8246
_LT_TAGDECL([], [postdep_objects], [1])
 
8247
_LT_TAGDECL([], [predeps], [1])
 
8248
_LT_TAGDECL([], [postdeps], [1])
 
8249
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
8250
    [The library search path used internally by the compiler when linking
 
8251
    a shared library])
 
8252
])# _LT_SYS_HIDDEN_LIBDEPS
 
8253
 
 
8254
 
 
8255
# _LT_LANG_F77_CONFIG([TAG])
 
8256
# --------------------------
 
8257
# Ensure that the configuration variables for a Fortran 77 compiler are
 
8258
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8259
# to write the compiler configuration to `libtool'.
 
8260
m4_defun([_LT_LANG_F77_CONFIG],
 
8261
[AC_LANG_PUSH(Fortran 77)
 
8262
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8263
  _lt_disable_F77=yes
 
8264
fi
 
8265
 
 
8266
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8267
_LT_TAGVAR(allow_undefined_flag, $1)=
 
8268
_LT_TAGVAR(always_export_symbols, $1)=no
 
8269
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
8270
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
8271
_LT_TAGVAR(hardcode_direct, $1)=no
 
8272
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
8273
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
8274
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
8275
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
8276
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
8277
_LT_TAGVAR(hardcode_automatic, $1)=no
 
8278
_LT_TAGVAR(inherit_rpath, $1)=no
 
8279
_LT_TAGVAR(module_cmds, $1)=
 
8280
_LT_TAGVAR(module_expsym_cmds, $1)=
 
8281
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
8282
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8283
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8284
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8285
_LT_TAGVAR(no_undefined_flag, $1)=
 
8286
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
8287
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
8288
 
 
8289
# Source file extension for f77 test sources.
 
8290
ac_ext=f
 
8291
 
 
8292
# Object file extension for compiled f77 test sources.
 
8293
objext=o
 
8294
_LT_TAGVAR(objext, $1)=$objext
 
8295
 
 
8296
# No sense in running all these tests if we already determined that
 
8297
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
8298
# are currently assumed to apply to all compilers on this platform,
 
8299
# and will be corrupted by setting them based on a non-working compiler.
 
8300
if test "$_lt_disable_F77" != yes; then
 
8301
  # Code to be used in simple compile tests
 
8302
  lt_simple_compile_test_code="\
 
8303
      subroutine t
 
8304
      return
 
8305
      end
 
8306
"
 
8307
 
 
8308
  # Code to be used in simple link tests
 
8309
  lt_simple_link_test_code="\
 
8310
      program t
 
8311
      end
 
8312
"
 
8313
 
 
8314
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8315
  _LT_TAG_COMPILER
 
8316
 
 
8317
  # save warnings/boilerplate of simple test code
 
8318
  _LT_COMPILER_BOILERPLATE
 
8319
  _LT_LINKER_BOILERPLATE
 
8320
 
 
8321
  # Allow CC to be a program name with arguments.
 
8322
  lt_save_CC="$CC"
 
8323
  lt_save_GCC=$GCC
 
8324
  lt_save_CFLAGS=$CFLAGS
 
8325
  CC=${F77-"f77"}
 
8326
  CFLAGS=$FFLAGS
 
8327
  compiler=$CC
 
8328
  _LT_TAGVAR(compiler, $1)=$CC
 
8329
  _LT_CC_BASENAME([$compiler])
 
8330
  GCC=$G77
 
8331
  if test -n "$compiler"; then
 
8332
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
8333
    AC_MSG_RESULT([$can_build_shared])
 
8334
 
 
8335
    AC_MSG_CHECKING([whether to build shared libraries])
 
8336
    test "$can_build_shared" = "no" && enable_shared=no
 
8337
 
 
8338
    # On AIX, shared libraries and static libraries use the same namespace, and
 
8339
    # are all built from PIC.
 
8340
    case $host_os in
 
8341
      aix3*)
 
8342
        test "$enable_shared" = yes && enable_static=no
 
8343
        if test -n "$RANLIB"; then
 
8344
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8345
          postinstall_cmds='$RANLIB $lib'
 
8346
        fi
 
8347
        ;;
 
8348
      aix[[4-9]]*)
 
8349
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8350
          test "$enable_shared" = yes && enable_static=no
 
8351
        fi
 
8352
        ;;
 
8353
    esac
 
8354
    AC_MSG_RESULT([$enable_shared])
 
8355
 
 
8356
    AC_MSG_CHECKING([whether to build static libraries])
 
8357
    # Make sure either enable_shared or enable_static is yes.
 
8358
    test "$enable_shared" = yes || enable_static=yes
 
8359
    AC_MSG_RESULT([$enable_static])
 
8360
 
 
8361
    _LT_TAGVAR(GCC, $1)="$G77"
 
8362
    _LT_TAGVAR(LD, $1)="$LD"
 
8363
 
 
8364
    ## CAVEAT EMPTOR:
 
8365
    ## There is no encapsulation within the following macros, do not change
 
8366
    ## the running order or otherwise move them around unless you know exactly
 
8367
    ## what you are doing...
 
8368
    _LT_COMPILER_PIC($1)
 
8369
    _LT_COMPILER_C_O($1)
 
8370
    _LT_COMPILER_FILE_LOCKS($1)
 
8371
    _LT_LINKER_SHLIBS($1)
 
8372
    _LT_SYS_DYNAMIC_LINKER($1)
 
8373
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
8374
 
 
8375
    _LT_CONFIG($1)
 
8376
  fi # test -n "$compiler"
 
8377
 
 
8378
  GCC=$lt_save_GCC
 
8379
  CC="$lt_save_CC"
 
8380
  CFLAGS="$lt_save_CFLAGS"
 
8381
fi # test "$_lt_disable_F77" != yes
 
8382
 
 
8383
AC_LANG_POP
 
8384
])# _LT_LANG_F77_CONFIG
 
8385
 
 
8386
 
 
8387
# _LT_LANG_FC_CONFIG([TAG])
 
8388
# -------------------------
 
8389
# Ensure that the configuration variables for a Fortran compiler are
 
8390
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8391
# to write the compiler configuration to `libtool'.
 
8392
m4_defun([_LT_LANG_FC_CONFIG],
 
8393
[AC_LANG_PUSH(Fortran)
 
8394
 
 
8395
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8396
  _lt_disable_FC=yes
 
8397
fi
 
8398
 
 
8399
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8400
_LT_TAGVAR(allow_undefined_flag, $1)=
 
8401
_LT_TAGVAR(always_export_symbols, $1)=no
 
8402
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
8403
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
8404
_LT_TAGVAR(hardcode_direct, $1)=no
 
8405
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
8406
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
8407
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
8408
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
8409
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
8410
_LT_TAGVAR(hardcode_automatic, $1)=no
 
8411
_LT_TAGVAR(inherit_rpath, $1)=no
 
8412
_LT_TAGVAR(module_cmds, $1)=
 
8413
_LT_TAGVAR(module_expsym_cmds, $1)=
 
8414
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
8415
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8416
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8417
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8418
_LT_TAGVAR(no_undefined_flag, $1)=
 
8419
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
8420
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
8421
 
 
8422
# Source file extension for fc test sources.
 
8423
ac_ext=${ac_fc_srcext-f}
 
8424
 
 
8425
# Object file extension for compiled fc test sources.
 
8426
objext=o
 
8427
_LT_TAGVAR(objext, $1)=$objext
 
8428
 
 
8429
# No sense in running all these tests if we already determined that
 
8430
# the FC compiler isn't working.  Some variables (like enable_shared)
 
8431
# are currently assumed to apply to all compilers on this platform,
 
8432
# and will be corrupted by setting them based on a non-working compiler.
 
8433
if test "$_lt_disable_FC" != yes; then
 
8434
  # Code to be used in simple compile tests
 
8435
  lt_simple_compile_test_code="\
 
8436
      subroutine t
 
8437
      return
 
8438
      end
 
8439
"
 
8440
 
 
8441
  # Code to be used in simple link tests
 
8442
  lt_simple_link_test_code="\
 
8443
      program t
 
8444
      end
 
8445
"
 
8446
 
 
8447
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8448
  _LT_TAG_COMPILER
 
8449
 
 
8450
  # save warnings/boilerplate of simple test code
 
8451
  _LT_COMPILER_BOILERPLATE
 
8452
  _LT_LINKER_BOILERPLATE
 
8453
 
 
8454
  # Allow CC to be a program name with arguments.
 
8455
  lt_save_CC="$CC"
 
8456
  lt_save_GCC=$GCC
 
8457
  lt_save_CFLAGS=$CFLAGS
 
8458
  CC=${FC-"f95"}
 
8459
  CFLAGS=$FCFLAGS
 
8460
  compiler=$CC
 
8461
  GCC=$ac_cv_fc_compiler_gnu
 
8462
 
 
8463
  _LT_TAGVAR(compiler, $1)=$CC
 
8464
  _LT_CC_BASENAME([$compiler])
 
8465
 
 
8466
  if test -n "$compiler"; then
 
8467
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
8468
    AC_MSG_RESULT([$can_build_shared])
 
8469
 
 
8470
    AC_MSG_CHECKING([whether to build shared libraries])
 
8471
    test "$can_build_shared" = "no" && enable_shared=no
 
8472
 
 
8473
    # On AIX, shared libraries and static libraries use the same namespace, and
 
8474
    # are all built from PIC.
 
8475
    case $host_os in
 
8476
      aix3*)
 
8477
        test "$enable_shared" = yes && enable_static=no
 
8478
        if test -n "$RANLIB"; then
 
8479
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8480
          postinstall_cmds='$RANLIB $lib'
 
8481
        fi
 
8482
        ;;
 
8483
      aix[[4-9]]*)
 
8484
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8485
          test "$enable_shared" = yes && enable_static=no
 
8486
        fi
 
8487
        ;;
 
8488
    esac
 
8489
    AC_MSG_RESULT([$enable_shared])
 
8490
 
 
8491
    AC_MSG_CHECKING([whether to build static libraries])
 
8492
    # Make sure either enable_shared or enable_static is yes.
 
8493
    test "$enable_shared" = yes || enable_static=yes
 
8494
    AC_MSG_RESULT([$enable_static])
 
8495
 
 
8496
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
8497
    _LT_TAGVAR(LD, $1)="$LD"
 
8498
 
 
8499
    ## CAVEAT EMPTOR:
 
8500
    ## There is no encapsulation within the following macros, do not change
 
8501
    ## the running order or otherwise move them around unless you know exactly
 
8502
    ## what you are doing...
 
8503
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
8504
    _LT_COMPILER_PIC($1)
 
8505
    _LT_COMPILER_C_O($1)
 
8506
    _LT_COMPILER_FILE_LOCKS($1)
 
8507
    _LT_LINKER_SHLIBS($1)
 
8508
    _LT_SYS_DYNAMIC_LINKER($1)
 
8509
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
8510
 
 
8511
    _LT_CONFIG($1)
 
8512
  fi # test -n "$compiler"
 
8513
 
 
8514
  GCC=$lt_save_GCC
 
8515
  CC=$lt_save_CC
 
8516
  CFLAGS=$lt_save_CFLAGS
 
8517
fi # test "$_lt_disable_FC" != yes
 
8518
 
 
8519
AC_LANG_POP
 
8520
])# _LT_LANG_FC_CONFIG
 
8521
 
 
8522
 
 
8523
# _LT_LANG_GCJ_CONFIG([TAG])
 
8524
# --------------------------
 
8525
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
8526
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8527
# to write the compiler configuration to `libtool'.
 
8528
m4_defun([_LT_LANG_GCJ_CONFIG],
 
8529
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
8530
AC_LANG_SAVE
 
8531
 
 
8532
# Source file extension for Java test sources.
 
8533
ac_ext=java
 
8534
 
 
8535
# Object file extension for compiled Java test sources.
 
8536
objext=o
 
8537
_LT_TAGVAR(objext, $1)=$objext
 
8538
 
 
8539
# Code to be used in simple compile tests
 
8540
lt_simple_compile_test_code="class foo {}"
 
8541
 
 
8542
# Code to be used in simple link tests
 
8543
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
8544
 
 
8545
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8546
_LT_TAG_COMPILER
 
8547
 
 
8548
# save warnings/boilerplate of simple test code
 
8549
_LT_COMPILER_BOILERPLATE
 
8550
_LT_LINKER_BOILERPLATE
 
8551
 
 
8552
# Allow CC to be a program name with arguments.
 
8553
lt_save_CC=$CC
 
8554
lt_save_CFLAGS=$CFLAGS
 
8555
lt_save_GCC=$GCC
 
8556
GCC=yes
 
8557
CC=${GCJ-"gcj"}
 
8558
CFLAGS=$GCJFLAGS
 
8559
compiler=$CC
 
8560
_LT_TAGVAR(compiler, $1)=$CC
 
8561
_LT_TAGVAR(LD, $1)="$LD"
 
8562
_LT_CC_BASENAME([$compiler])
 
8563
 
 
8564
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
8565
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8566
 
 
8567
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8568
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8569
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8570
 
 
8571
if test -n "$compiler"; then
 
8572
  _LT_COMPILER_NO_RTTI($1)
 
8573
  _LT_COMPILER_PIC($1)
 
8574
  _LT_COMPILER_C_O($1)
 
8575
  _LT_COMPILER_FILE_LOCKS($1)
 
8576
  _LT_LINKER_SHLIBS($1)
 
8577
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8578
 
 
8579
  _LT_CONFIG($1)
 
8580
fi
 
8581
 
 
8582
AC_LANG_RESTORE
 
8583
 
 
8584
GCC=$lt_save_GCC
 
8585
CC=$lt_save_CC
 
8586
CFLAGS=$lt_save_CFLAGS
 
8587
])# _LT_LANG_GCJ_CONFIG
 
8588
 
 
8589
 
 
8590
# _LT_LANG_RC_CONFIG([TAG])
 
8591
# -------------------------
 
8592
# Ensure that the configuration variables for the Windows resource compiler
 
8593
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8594
# to write the compiler configuration to `libtool'.
 
8595
m4_defun([_LT_LANG_RC_CONFIG],
 
8596
[AC_REQUIRE([LT_PROG_RC])dnl
 
8597
AC_LANG_SAVE
 
8598
 
 
8599
# Source file extension for RC test sources.
 
8600
ac_ext=rc
 
8601
 
 
8602
# Object file extension for compiled RC test sources.
 
8603
objext=o
 
8604
_LT_TAGVAR(objext, $1)=$objext
 
8605
 
 
8606
# Code to be used in simple compile tests
 
8607
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
8608
 
 
8609
# Code to be used in simple link tests
 
8610
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
8611
 
 
8612
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8613
_LT_TAG_COMPILER
 
8614
 
 
8615
# save warnings/boilerplate of simple test code
 
8616
_LT_COMPILER_BOILERPLATE
 
8617
_LT_LINKER_BOILERPLATE
 
8618
 
 
8619
# Allow CC to be a program name with arguments.
 
8620
lt_save_CC="$CC"
 
8621
lt_save_CFLAGS=$CFLAGS
 
8622
lt_save_GCC=$GCC
 
8623
GCC=
 
8624
CC=${RC-"windres"}
 
8625
CFLAGS=
 
8626
compiler=$CC
 
8627
_LT_TAGVAR(compiler, $1)=$CC
 
8628
_LT_CC_BASENAME([$compiler])
 
8629
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
8630
 
 
8631
if test -n "$compiler"; then
 
8632
  :
 
8633
  _LT_CONFIG($1)
 
8634
fi
 
8635
 
 
8636
GCC=$lt_save_GCC
 
8637
AC_LANG_RESTORE
 
8638
CC=$lt_save_CC
 
8639
CFLAGS=$lt_save_CFLAGS
 
8640
])# _LT_LANG_RC_CONFIG
 
8641
 
 
8642
 
 
8643
# LT_PROG_GCJ
 
8644
# -----------
 
8645
AC_DEFUN([LT_PROG_GCJ],
 
8646
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
8647
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
8648
    [AC_CHECK_TOOL(GCJ, gcj,)
 
8649
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8650
      AC_SUBST(GCJFLAGS)])])[]dnl
 
8651
])
 
8652
 
 
8653
# Old name:
 
8654
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
8655
dnl aclocal-1.4 backwards compatibility:
 
8656
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
8657
 
 
8658
 
 
8659
# LT_PROG_RC
 
8660
# ----------
 
8661
AC_DEFUN([LT_PROG_RC],
 
8662
[AC_CHECK_TOOL(RC, windres,)
 
8663
])
 
8664
 
 
8665
# Old name:
 
8666
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
8667
dnl aclocal-1.4 backwards compatibility:
 
8668
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
8669
 
 
8670
 
 
8671
# _LT_DECL_EGREP
 
8672
# --------------
 
8673
# If we don't have a new enough Autoconf to choose the best grep
 
8674
# available, choose the one first in the user's PATH.
 
8675
m4_defun([_LT_DECL_EGREP],
 
8676
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
8677
AC_REQUIRE([AC_PROG_FGREP])dnl
 
8678
test -z "$GREP" && GREP=grep
 
8679
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
8680
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
8681
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
8682
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
8683
AC_SUBST([GREP])
 
8684
])
 
8685
 
 
8686
 
 
8687
# _LT_DECL_OBJDUMP
 
8688
# --------------
 
8689
# If we don't have a new enough Autoconf to choose the best objdump
 
8690
# available, choose the one first in the user's PATH.
 
8691
m4_defun([_LT_DECL_OBJDUMP],
 
8692
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8693
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8694
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
8695
AC_SUBST([OBJDUMP])
 
8696
])
 
8697
 
 
8698
# _LT_DECL_DLLTOOL
 
8699
# ----------------
 
8700
# Ensure DLLTOOL variable is set.
 
8701
m4_defun([_LT_DECL_DLLTOOL],
 
8702
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8703
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8704
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8705
AC_SUBST([DLLTOOL])
 
8706
])
 
8707
 
 
8708
# _LT_DECL_SED
 
8709
# ------------
 
8710
# Check for a fully-functional sed program, that truncates
 
8711
# as few characters as possible.  Prefer GNU sed if found.
 
8712
m4_defun([_LT_DECL_SED],
 
8713
[AC_PROG_SED
 
8714
test -z "$SED" && SED=sed
 
8715
Xsed="$SED -e 1s/^X//"
 
8716
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
8717
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
8718
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
8719
])# _LT_DECL_SED
 
8720
 
 
8721
m4_ifndef([AC_PROG_SED], [
 
8722
# NOTE: This macro has been submitted for inclusion into   #
 
8723
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
8724
#  a released version of Autoconf we should remove this    #
 
8725
#  macro and use it instead.                               #
 
8726
 
 
8727
m4_defun([AC_PROG_SED],
 
8728
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
8729
AC_CACHE_VAL(lt_cv_path_SED,
 
8730
[# Loop through the user's path and test for sed and gsed.
 
8731
# Then use that list of sed's as ones to test for truncation.
 
8732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8733
for as_dir in $PATH
 
8734
do
 
8735
  IFS=$as_save_IFS
 
8736
  test -z "$as_dir" && as_dir=.
 
8737
  for lt_ac_prog in sed gsed; do
 
8738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8739
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
8740
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
8741
      fi
 
8742
    done
 
8743
  done
 
8744
done
 
8745
IFS=$as_save_IFS
 
8746
lt_ac_max=0
 
8747
lt_ac_count=0
 
8748
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
8749
# along with /bin/sed that truncates output.
 
8750
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
8751
  test ! -f $lt_ac_sed && continue
 
8752
  cat /dev/null > conftest.in
 
8753
  lt_ac_count=0
 
8754
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
8755
  # Check for GNU sed and select it if it is found.
 
8756
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
8757
    lt_cv_path_SED=$lt_ac_sed
 
8758
    break
 
8759
  fi
 
8760
  while true; do
 
8761
    cat conftest.in conftest.in >conftest.tmp
 
8762
    mv conftest.tmp conftest.in
 
8763
    cp conftest.in conftest.nl
 
8764
    echo >>conftest.nl
 
8765
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
8766
    cmp -s conftest.out conftest.nl || break
 
8767
    # 10000 chars as input seems more than enough
 
8768
    test $lt_ac_count -gt 10 && break
 
8769
    lt_ac_count=`expr $lt_ac_count + 1`
 
8770
    if test $lt_ac_count -gt $lt_ac_max; then
 
8771
      lt_ac_max=$lt_ac_count
 
8772
      lt_cv_path_SED=$lt_ac_sed
 
8773
    fi
 
8774
  done
 
8775
done
 
8776
])
 
8777
SED=$lt_cv_path_SED
 
8778
AC_SUBST([SED])
 
8779
AC_MSG_RESULT([$SED])
 
8780
])#AC_PROG_SED
 
8781
])#m4_ifndef
 
8782
 
 
8783
# Old name:
 
8784
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8785
dnl aclocal-1.4 backwards compatibility:
 
8786
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8787
 
 
8788
 
 
8789
# _LT_CHECK_SHELL_FEATURES
 
8790
# ------------------------
 
8791
# Find out whether the shell is Bourne or XSI compatible,
 
8792
# or has some other useful features.
 
8793
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8794
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8795
# Try some XSI features
 
8796
xsi_shell=no
 
8797
( _lt_dummy="a/b/c"
 
8798
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8799
      = c,a/b,b/c, \
 
8800
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8801
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8802
  && xsi_shell=yes
 
8803
AC_MSG_RESULT([$xsi_shell])
 
8804
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8805
 
 
8806
AC_MSG_CHECKING([whether the shell understands "+="])
 
8807
lt_shell_append=no
 
8808
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8809
    >/dev/null 2>&1 \
 
8810
  && lt_shell_append=yes
 
8811
AC_MSG_RESULT([$lt_shell_append])
 
8812
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8813
 
 
8814
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8815
  lt_unset=unset
 
8816
else
 
8817
  lt_unset=false
 
8818
fi
 
8819
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8820
 
 
8821
# test EBCDIC or ASCII
 
8822
case `echo X|tr X '\101'` in
 
8823
 A) # ASCII based system
 
8824
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8825
  lt_SP2NL='tr \040 \012'
 
8826
  lt_NL2SP='tr \015\012 \040\040'
 
8827
  ;;
 
8828
 *) # EBCDIC based system
 
8829
  lt_SP2NL='tr \100 \n'
 
8830
  lt_NL2SP='tr \r\n \100\100'
 
8831
  ;;
 
8832
esac
 
8833
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8834
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8835
])# _LT_CHECK_SHELL_FEATURES
 
8836
 
 
8837
 
 
8838
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8839
# ------------------------------------------------------
 
8840
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8841
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8842
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8843
[dnl {
 
8844
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8845
$1 ()\
 
8846
{\
 
8847
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8848
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8849
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8850
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8851
test 0 -eq $? || _lt_function_replace_fail=:
 
8852
])
 
8853
 
 
8854
 
 
8855
# _LT_PROG_REPLACE_SHELLFNS
 
8856
# -------------------------
 
8857
# Replace existing portable implementations of several shell functions with
 
8858
# equivalent extended shell implementations where those features are available..
 
8859
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8860
[if test x"$xsi_shell" = xyes; then
 
8861
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8862
    case ${1} in
 
8863
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8864
      *  ) func_dirname_result="${3}" ;;
 
8865
    esac])
 
8866
 
 
8867
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8868
    func_basename_result="${1##*/}"])
 
8869
 
 
8870
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8871
    case ${1} in
 
8872
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8873
      *  ) func_dirname_result="${3}" ;;
 
8874
    esac
 
8875
    func_basename_result="${1##*/}"])
 
8876
 
 
8877
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8878
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8879
    # positional parameters, so assign one to ordinary parameter first.
 
8880
    func_stripname_result=${3}
 
8881
    func_stripname_result=${func_stripname_result#"${1}"}
 
8882
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8883
 
 
8884
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8885
    func_split_long_opt_name=${1%%=*}
 
8886
    func_split_long_opt_arg=${1#*=}])
 
8887
 
 
8888
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8889
    func_split_short_opt_arg=${1#??}
 
8890
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8891
 
 
8892
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8893
    case ${1} in
 
8894
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8895
      *)    func_lo2o_result=${1} ;;
 
8896
    esac])
 
8897
 
 
8898
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8899
 
 
8900
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8901
 
 
8902
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8903
fi
 
8904
 
 
8905
if test x"$lt_shell_append" = xyes; then
 
8906
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8907
 
 
8908
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8909
    func_quote_for_eval "${2}"
 
8910
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8911
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8912
 
 
8913
  # Save a `func_append' function call where possible by direct use of '+='
 
8914
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8915
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8916
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8917
  test 0 -eq $? || _lt_function_replace_fail=:
 
8918
else
 
8919
  # Save a `func_append' function call even when '+=' is not available
 
8920
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8921
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8922
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8923
  test 0 -eq $? || _lt_function_replace_fail=:
 
8924
fi
 
8925
 
 
8926
if test x"$_lt_function_replace_fail" = x":"; then
 
8927
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8928
fi
 
8929
])
 
8930
 
 
8931
# _LT_PATH_CONVERSION_FUNCTIONS
 
8932
# -----------------------------
 
8933
# Determine which file name conversion functions should be used by
 
8934
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8935
# for certain cross-compile configurations and native mingw.
 
8936
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8937
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8938
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8939
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8940
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8941
[case $host in
 
8942
  *-*-mingw* )
 
8943
    case $build in
 
8944
      *-*-mingw* ) # actually msys
 
8945
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8946
        ;;
 
8947
      *-*-cygwin* )
 
8948
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8949
        ;;
 
8950
      * ) # otherwise, assume *nix
 
8951
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8952
        ;;
 
8953
    esac
 
8954
    ;;
 
8955
  *-*-cygwin* )
 
8956
    case $build in
 
8957
      *-*-mingw* ) # actually msys
 
8958
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8959
        ;;
 
8960
      *-*-cygwin* )
 
8961
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8962
        ;;
 
8963
      * ) # otherwise, assume *nix
 
8964
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8965
        ;;
 
8966
    esac
 
8967
    ;;
 
8968
  * ) # unhandled hosts (and "normal" native builds)
 
8969
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8970
    ;;
 
8971
esac
 
8972
])
 
8973
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8974
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8975
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8976
         [0], [convert $build file names to $host format])dnl
 
8977
 
 
8978
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8979
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8980
[#assume ordinary cross tools, or native build.
 
8981
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8982
case $host in
 
8983
  *-*-mingw* )
 
8984
    case $build in
 
8985
      *-*-mingw* ) # actually msys
 
8986
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8987
        ;;
 
8988
    esac
 
8989
    ;;
 
8990
esac
 
8991
])
 
8992
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8993
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8994
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8995
         [0], [convert $build files to toolchain format])dnl
 
8996
])# _LT_PATH_CONVERSION_FUNCTIONS
 
8997
 
 
8998
# Helper functions for option handling.                    -*- Autoconf -*-
 
8999
#
 
9000
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
9001
#   Inc.
 
9002
#   Written by Gary V. Vaughan, 2004
 
9003
#
 
9004
# This file is free software; the Free Software Foundation gives
 
9005
# unlimited permission to copy and/or distribute it, with or without
 
9006
# modifications, as long as this notice is preserved.
 
9007
 
 
9008
# serial 7 ltoptions.m4
 
9009
 
 
9010
# This is to help aclocal find these macros, as it can't see m4_define.
 
9011
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
9012
 
 
9013
 
 
9014
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
9015
# ------------------------------------------
 
9016
m4_define([_LT_MANGLE_OPTION],
 
9017
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
9018
 
 
9019
 
 
9020
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
9021
# ---------------------------------------
 
9022
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
9023
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
9024
# saved as a flag.
 
9025
m4_define([_LT_SET_OPTION],
 
9026
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
9027
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
9028
        _LT_MANGLE_DEFUN([$1], [$2]),
 
9029
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
9030
])
 
9031
 
 
9032
 
 
9033
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
9034
# ------------------------------------------------------------
 
9035
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
9036
m4_define([_LT_IF_OPTION],
 
9037
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
9038
 
 
9039
 
 
9040
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
9041
# -------------------------------------------------------
 
9042
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
9043
# are set.
 
9044
m4_define([_LT_UNLESS_OPTIONS],
 
9045
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
9046
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
9047
                      [m4_define([$0_found])])])[]dnl
 
9048
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
9049
])[]dnl
 
9050
])
 
9051
 
 
9052
 
 
9053
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
9054
# ----------------------------------------
 
9055
# OPTION-LIST is a space-separated list of Libtool options associated
 
9056
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
9057
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
9058
# the unknown option and exit.
 
9059
m4_defun([_LT_SET_OPTIONS],
 
9060
[# Set options
 
9061
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
9062
    [_LT_SET_OPTION([$1], _LT_Option)])
 
9063
 
 
9064
m4_if([$1],[LT_INIT],[
 
9065
  dnl
 
9066
  dnl Simply set some default values (i.e off) if boolean options were not
 
9067
  dnl specified:
 
9068
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
9069
  ])
 
9070
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
9071
  ])
 
9072
  dnl
 
9073
  dnl If no reference was made to various pairs of opposing options, then
 
9074
  dnl we run the default mode handler for the pair.  For example, if neither
 
9075
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
9076
  dnl archives by default:
 
9077
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
9078
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
9079
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
9080
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
9081
                   [_LT_ENABLE_FAST_INSTALL])
 
9082
  ])
 
9083
])# _LT_SET_OPTIONS
 
9084
 
 
9085
 
 
9086
 
 
9087
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
9088
# -----------------------------------------
 
9089
m4_define([_LT_MANGLE_DEFUN],
 
9090
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
9091
 
 
9092
 
 
9093
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
9094
# -----------------------------------------------
 
9095
m4_define([LT_OPTION_DEFINE],
 
9096
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
9097
])# LT_OPTION_DEFINE
 
9098
 
 
9099
 
 
9100
# dlopen
 
9101
# ------
 
9102
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
9103
])
 
9104
 
 
9105
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
9106
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
9107
AC_DIAGNOSE([obsolete],
 
9108
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9109
put the `dlopen' option into LT_INIT's first parameter.])
 
9110
])
 
9111
 
 
9112
dnl aclocal-1.4 backwards compatibility:
 
9113
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
9114
 
 
9115
 
 
9116
# win32-dll
 
9117
# ---------
 
9118
# Declare package support for building win32 dll's.
 
9119
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
9120
[enable_win32_dll=yes
 
9121
 
 
9122
case $host in
 
9123
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
9124
  AC_CHECK_TOOL(AS, as, false)
 
9125
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
9126
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
9127
  ;;
 
9128
esac
 
9129
 
 
9130
test -z "$AS" && AS=as
 
9131
_LT_DECL([], [AS],      [1], [Assembler program])dnl
 
9132
 
 
9133
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
9134
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 
9135
 
 
9136
test -z "$OBJDUMP" && OBJDUMP=objdump
 
9137
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 
9138
])# win32-dll
 
9139
 
 
9140
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
9141
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
9142
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
9143
AC_DIAGNOSE([obsolete],
 
9144
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9145
put the `win32-dll' option into LT_INIT's first parameter.])
 
9146
])
 
9147
 
 
9148
dnl aclocal-1.4 backwards compatibility:
 
9149
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
9150
 
 
9151
 
 
9152
# _LT_ENABLE_SHARED([DEFAULT])
 
9153
# ----------------------------
 
9154
# implement the --enable-shared flag, and supports the `shared' and
 
9155
# `disable-shared' LT_INIT options.
 
9156
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9157
m4_define([_LT_ENABLE_SHARED],
 
9158
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9159
AC_ARG_ENABLE([shared],
 
9160
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
9161
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
9162
    [p=${PACKAGE-default}
 
9163
    case $enableval in
 
9164
    yes) enable_shared=yes ;;
 
9165
    no) enable_shared=no ;;
 
9166
    *)
 
9167
      enable_shared=no
 
9168
      # Look at the argument we got.  We use all the common list separators.
 
9169
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9170
      for pkg in $enableval; do
 
9171
        IFS="$lt_save_ifs"
 
9172
        if test "X$pkg" = "X$p"; then
 
9173
          enable_shared=yes
 
9174
        fi
 
9175
      done
 
9176
      IFS="$lt_save_ifs"
 
9177
      ;;
 
9178
    esac],
 
9179
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
9180
 
 
9181
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
9182
        [Whether or not to build shared libraries])
 
9183
])# _LT_ENABLE_SHARED
 
9184
 
 
9185
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
9186
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
9187
 
 
9188
# Old names:
 
9189
AC_DEFUN([AC_ENABLE_SHARED],
 
9190
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
9191
])
 
9192
 
 
9193
AC_DEFUN([AC_DISABLE_SHARED],
 
9194
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
9195
])
 
9196
 
 
9197
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
9198
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
9199
 
 
9200
dnl aclocal-1.4 backwards compatibility:
 
9201
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
9202
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
9203
 
 
9204
 
 
9205
 
 
9206
# _LT_ENABLE_STATIC([DEFAULT])
 
9207
# ----------------------------
 
9208
# implement the --enable-static flag, and support the `static' and
 
9209
# `disable-static' LT_INIT options.
 
9210
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9211
m4_define([_LT_ENABLE_STATIC],
 
9212
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9213
AC_ARG_ENABLE([static],
 
9214
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
9215
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
9216
    [p=${PACKAGE-default}
 
9217
    case $enableval in
 
9218
    yes) enable_static=yes ;;
 
9219
    no) enable_static=no ;;
 
9220
    *)
 
9221
     enable_static=no
 
9222
      # Look at the argument we got.  We use all the common list separators.
 
9223
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9224
      for pkg in $enableval; do
 
9225
        IFS="$lt_save_ifs"
 
9226
        if test "X$pkg" = "X$p"; then
 
9227
          enable_static=yes
 
9228
        fi
 
9229
      done
 
9230
      IFS="$lt_save_ifs"
 
9231
      ;;
 
9232
    esac],
 
9233
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
9234
 
 
9235
    _LT_DECL([build_old_libs], [enable_static], [0],
 
9236
        [Whether or not to build static libraries])
 
9237
])# _LT_ENABLE_STATIC
 
9238
 
 
9239
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
9240
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
9241
 
 
9242
# Old names:
 
9243
AC_DEFUN([AC_ENABLE_STATIC],
 
9244
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
9245
])
 
9246
 
 
9247
AC_DEFUN([AC_DISABLE_STATIC],
 
9248
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
9249
])
 
9250
 
 
9251
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
9252
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
9253
 
 
9254
dnl aclocal-1.4 backwards compatibility:
 
9255
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
9256
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
9257
 
 
9258
 
 
9259
 
 
9260
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
9261
# ----------------------------------
 
9262
# implement the --enable-fast-install flag, and support the `fast-install'
 
9263
# and `disable-fast-install' LT_INIT options.
 
9264
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9265
m4_define([_LT_ENABLE_FAST_INSTALL],
 
9266
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9267
AC_ARG_ENABLE([fast-install],
 
9268
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
9269
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
9270
    [p=${PACKAGE-default}
 
9271
    case $enableval in
 
9272
    yes) enable_fast_install=yes ;;
 
9273
    no) enable_fast_install=no ;;
 
9274
    *)
 
9275
      enable_fast_install=no
 
9276
      # Look at the argument we got.  We use all the common list separators.
 
9277
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9278
      for pkg in $enableval; do
 
9279
        IFS="$lt_save_ifs"
 
9280
        if test "X$pkg" = "X$p"; then
 
9281
          enable_fast_install=yes
 
9282
        fi
 
9283
      done
 
9284
      IFS="$lt_save_ifs"
 
9285
      ;;
 
9286
    esac],
 
9287
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
9288
 
 
9289
_LT_DECL([fast_install], [enable_fast_install], [0],
 
9290
         [Whether or not to optimize for fast installation])dnl
 
9291
])# _LT_ENABLE_FAST_INSTALL
 
9292
 
 
9293
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
9294
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
9295
 
 
9296
# Old names:
 
9297
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
9298
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
9299
AC_DIAGNOSE([obsolete],
 
9300
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
9301
the `fast-install' option into LT_INIT's first parameter.])
 
9302
])
 
9303
 
 
9304
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
9305
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
9306
AC_DIAGNOSE([obsolete],
 
9307
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
9308
the `disable-fast-install' option into LT_INIT's first parameter.])
 
9309
])
 
9310
 
 
9311
dnl aclocal-1.4 backwards compatibility:
 
9312
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
9313
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
9314
 
 
9315
 
 
9316
# _LT_WITH_PIC([MODE])
 
9317
# --------------------
 
9318
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
9319
# LT_INIT options.
 
9320
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
9321
m4_define([_LT_WITH_PIC],
 
9322
[AC_ARG_WITH([pic],
 
9323
    [AS_HELP_STRING([--with-pic],
 
9324
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
9325
    [pic_mode="$withval"],
 
9326
    [pic_mode=default])
 
9327
 
 
9328
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
9329
 
 
9330
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
9331
])# _LT_WITH_PIC
 
9332
 
 
9333
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
9334
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
9335
 
 
9336
# Old name:
 
9337
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
9338
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
9339
AC_DIAGNOSE([obsolete],
 
9340
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9341
put the `pic-only' option into LT_INIT's first parameter.])
 
9342
])
 
9343
 
 
9344
dnl aclocal-1.4 backwards compatibility:
 
9345
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
9346
 
 
9347
 
 
9348
m4_define([_LTDL_MODE], [])
 
9349
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
9350
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
9351
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
9352
                 [m4_define([_LTDL_MODE], [recursive])])
 
9353
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
9354
                 [m4_define([_LTDL_MODE], [subproject])])
 
9355
 
 
9356
m4_define([_LTDL_TYPE], [])
 
9357
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
9358
                 [m4_define([_LTDL_TYPE], [installable])])
 
9359
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
9360
                 [m4_define([_LTDL_TYPE], [convenience])])
 
9361
 
 
9362
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
9363
#
 
9364
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9365
# Written by Gary V. Vaughan, 2004
 
9366
#
 
9367
# This file is free software; the Free Software Foundation gives
 
9368
# unlimited permission to copy and/or distribute it, with or without
 
9369
# modifications, as long as this notice is preserved.
 
9370
 
 
9371
# serial 6 ltsugar.m4
 
9372
 
 
9373
# This is to help aclocal find these macros, as it can't see m4_define.
 
9374
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
9375
 
 
9376
 
 
9377
# lt_join(SEP, ARG1, [ARG2...])
 
9378
# -----------------------------
 
9379
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
9380
# associated separator.
 
9381
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
9382
# versions in m4sugar had bugs.
 
9383
m4_define([lt_join],
 
9384
[m4_if([$#], [1], [],
 
9385
       [$#], [2], [[$2]],
 
9386
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
9387
m4_define([_lt_join],
 
9388
[m4_if([$#$2], [2], [],
 
9389
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
9390
 
 
9391
 
 
9392
# lt_car(LIST)
 
9393
# lt_cdr(LIST)
 
9394
# ------------
 
9395
# Manipulate m4 lists.
 
9396
# These macros are necessary as long as will still need to support
 
9397
# Autoconf-2.59 which quotes differently.
 
9398
m4_define([lt_car], [[$1]])
 
9399
m4_define([lt_cdr],
 
9400
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
9401
       [$#], 1, [],
 
9402
       [m4_dquote(m4_shift($@))])])
 
9403
m4_define([lt_unquote], $1)
 
9404
 
 
9405
 
 
9406
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
9407
# ------------------------------------------
 
9408
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
9409
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
9410
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
9411
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
9412
# than defined and empty).
 
9413
#
 
9414
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
9415
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
9416
m4_define([lt_append],
 
9417
[m4_define([$1],
 
9418
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
9419
 
 
9420
 
 
9421
 
 
9422
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
9423
# ----------------------------------------------------------
 
9424
# Produce a SEP delimited list of all paired combinations of elements of
 
9425
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
9426
# has the form PREFIXmINFIXSUFFIXn.
 
9427
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
9428
m4_define([lt_combine],
 
9429
[m4_if(m4_eval([$# > 3]), [1],
 
9430
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
9431
[[m4_foreach([_Lt_prefix], [$2],
 
9432
             [m4_foreach([_Lt_suffix],
 
9433
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
9434
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
9435
 
 
9436
 
 
9437
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
9438
# -----------------------------------------------------------------------
 
9439
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
9440
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
9441
m4_define([lt_if_append_uniq],
 
9442
[m4_ifdef([$1],
 
9443
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
9444
                 [lt_append([$1], [$2], [$3])$4],
 
9445
                 [$5])],
 
9446
          [lt_append([$1], [$2], [$3])$4])])
 
9447
 
 
9448
 
 
9449
# lt_dict_add(DICT, KEY, VALUE)
 
9450
# -----------------------------
 
9451
m4_define([lt_dict_add],
 
9452
[m4_define([$1($2)], [$3])])
 
9453
 
 
9454
 
 
9455
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
9456
# --------------------------------------------
 
9457
m4_define([lt_dict_add_subkey],
 
9458
[m4_define([$1($2:$3)], [$4])])
 
9459
 
 
9460
 
 
9461
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
9462
# ----------------------------------
 
9463
m4_define([lt_dict_fetch],
 
9464
[m4_ifval([$3],
 
9465
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
9466
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
9467
 
 
9468
 
 
9469
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
9470
# -----------------------------------------------------------------
 
9471
m4_define([lt_if_dict_fetch],
 
9472
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
9473
        [$5],
 
9474
    [$6])])
 
9475
 
 
9476
 
 
9477
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
9478
# --------------------------------------------------------------
 
9479
m4_define([lt_dict_filter],
 
9480
[m4_if([$5], [], [],
 
9481
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
9482
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
9483
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
9484
])
 
9485
 
 
9486
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
9487
#
 
9488
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
9489
#   Written by Scott James Remnant, 2004
 
9490
#
 
9491
# This file is free software; the Free Software Foundation gives
 
9492
# unlimited permission to copy and/or distribute it, with or without
 
9493
# modifications, as long as this notice is preserved.
 
9494
 
 
9495
# @configure_input@
 
9496
 
 
9497
# serial 3293 ltversion.m4
 
9498
# This file is part of GNU Libtool
 
9499
 
 
9500
m4_define([LT_PACKAGE_VERSION], [2.4])
 
9501
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
9502
 
 
9503
AC_DEFUN([LTVERSION_VERSION],
 
9504
[macro_version='2.4'
 
9505
macro_revision='1.3293'
 
9506
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
9507
_LT_DECL(, macro_revision, 0)
 
9508
])
 
9509
 
 
9510
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
9511
#
 
9512
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
9513
#   Written by Scott James Remnant, 2004.
 
9514
#
 
9515
# This file is free software; the Free Software Foundation gives
 
9516
# unlimited permission to copy and/or distribute it, with or without
 
9517
# modifications, as long as this notice is preserved.
 
9518
 
 
9519
# serial 5 lt~obsolete.m4
 
9520
 
 
9521
# These exist entirely to fool aclocal when bootstrapping libtool.
 
9522
#
 
9523
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
9524
# which have later been changed to m4_define as they aren't part of the
 
9525
# exported API, or moved to Autoconf or Automake where they belong.
 
9526
#
 
9527
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
9528
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
9529
# using a macro with the same name in our local m4/libtool.m4 it'll
 
9530
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
9531
# and doesn't know about Autoconf macros at all.)
 
9532
#
 
9533
# So we provide this file, which has a silly filename so it's always
 
9534
# included after everything else.  This provides aclocal with the
 
9535
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
9536
# because those macros already exist, or will be overwritten later.
 
9537
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
9538
#
 
9539
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
9540
# Yes, that means every name once taken will need to remain here until
 
9541
# we give up compatibility with versions before 1.7, at which point
 
9542
# we need to keep only those names which we still refer to.
 
9543
 
 
9544
# This is to help aclocal find these macros, as it can't see m4_define.
 
9545
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
9546
 
 
9547
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
9548
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
9549
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
9550
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
9551
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
9552
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
9553
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
9554
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
9555
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
9556
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
9557
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
9558
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
9559
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
9560
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
9561
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
9562
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
9563
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
9564
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
9565
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
9566
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
9567
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
9568
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
9569
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
9570
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
9571
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
9572
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
9573
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
9574
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
9575
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
9576
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
9577
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
9578
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
9579
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
9580
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
9581
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
9582
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
9583
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
9584
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
9585
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
9586
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
9587
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
9588
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
9589
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
9590
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
9591
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
9592
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
9593
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
9594
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
9595
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
9596
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
9597
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
9598
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
9599
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
9600
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9601
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9602
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9603
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9604
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9605
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9606
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9607
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
 
9608
 
 
9609
# nls.m4 serial 5 (gettext-0.18)
 
9610
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
9611
dnl Inc.
 
9612
dnl This file is free software; the Free Software Foundation
 
9613
dnl gives unlimited permission to copy and/or distribute it,
 
9614
dnl with or without modifications, as long as this notice is preserved.
 
9615
dnl
 
9616
dnl This file can can be used in projects which are not available under
 
9617
dnl the GNU General Public License or the GNU Library General Public
 
9618
dnl License but which still want to provide support for the GNU gettext
 
9619
dnl functionality.
 
9620
dnl Please note that the actual code of the GNU gettext library is covered
 
9621
dnl by the GNU Library General Public License, and the rest of the GNU
 
9622
dnl gettext package package is covered by the GNU General Public License.
 
9623
dnl They are *not* in the public domain.
 
9624
 
 
9625
dnl Authors:
 
9626
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
9627
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
9628
 
 
9629
AC_PREREQ([2.50])
 
9630
 
 
9631
AC_DEFUN([AM_NLS],
 
9632
[
 
9633
  AC_MSG_CHECKING([whether NLS is requested])
 
9634
  dnl Default is enabled NLS
 
9635
  AC_ARG_ENABLE([nls],
 
9636
    [  --disable-nls           do not use Native Language Support],
 
9637
    USE_NLS=$enableval, USE_NLS=yes)
 
9638
  AC_MSG_RESULT([$USE_NLS])
 
9639
  AC_SUBST([USE_NLS])
 
9640
])
 
9641
 
1054
9642
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
1055
9643
# serial 1 (pkg-config-0.24)
1056
9644
1415
10003
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
1416
10004
AC_DEFUN([GTK_DOC_CHECK],
1417
10005
[
 
10006
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1418
10007
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1419
10008
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1420
10009
 
1442
10031
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1443
10032
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
1444
10033
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
10034
    dnl don't check for glib if we build glib
 
10035
    if test "x$PACKAGE_NAME" != "xglib"; then
 
10036
      dnl don't fail if someone does not have glib
 
10037
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
 
10038
    fi
1445
10039
  fi
1446
10040
 
1447
10041
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
1758
10352
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
1759
10353
])
1760
10354
 
1761
 
m4_include([m4/libtool.m4])
1762
 
m4_include([m4/ltoptions.m4])
1763
 
m4_include([m4/ltsugar.m4])
1764
 
m4_include([m4/ltversion.m4])
1765
 
m4_include([m4/lt~obsolete.m4])
1766
 
m4_include([m4/nls.m4])