~linaro-maintainers/compiz-plugins-main/overlay-gl

« back to all changes in this revision

Viewing changes to debian/patches/99_autoreconf.patch

  • Committer: Michael Vogt
  • Date: 2007-06-12 08:52:21 UTC
  • Revision ID: michael.vogt@ubuntu.com-20070612085221-3ygmei8zlxsaef5g
* initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -Nur plugins-main/aclocal.m4 plugins-main.new/aclocal.m4
 
2
--- plugins-main/aclocal.m4     1970-01-01 01:00:00.000000000 +0100
 
3
+++ plugins-main.new/aclocal.m4 2007-06-08 18:39:01.000000000 +0200
 
4
@@ -0,0 +1,7446 @@
 
5
+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
6
+
 
7
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
8
+# 2005  Free Software Foundation, Inc.
 
9
+# This file is free software; the Free Software Foundation
 
10
+# gives unlimited permission to copy and/or distribute it,
 
11
+# with or without modifications, as long as this notice is preserved.
 
12
+
 
13
+# This program is distributed in the hope that it will be useful,
 
14
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
15
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
16
+# PARTICULAR PURPOSE.
 
17
+
 
18
+dnl AM_GCONF_SOURCE_2
 
19
+dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
 
20
+dnl  (i.e. pass to gconftool-2
 
21
+dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
 
22
+dnl  you should install foo.schemas files
 
23
+dnl
 
24
+
 
25
+AC_DEFUN([AM_GCONF_SOURCE_2],
 
26
+[
 
27
+  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
28
+    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
29
+  else
 
30
+    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
31
+  fi
 
32
+
 
33
+  AC_ARG_WITH(gconf-source, 
 
34
+  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
35
+
 
36
+  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
37
+  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
38
+
 
39
+  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
40
+    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
41
+  fi
 
42
+
 
43
+  AC_ARG_WITH(gconf-schema-file-dir, 
 
44
+  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
45
+
 
46
+  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
47
+  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
48
+
 
49
+  AC_ARG_ENABLE(schemas-install,
 
50
+     [  --disable-schemas-install      Disable the schemas installation],
 
51
+     [case ${enableval} in
 
52
+       yes|no) ;;
 
53
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
54
+      esac])
 
55
+  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
56
+])
 
57
+
 
58
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
59
+
 
60
+# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
61
+
 
62
+
 
63
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
64
+# -----------------------------------------------------------
 
65
+# If this macro is not defined by Autoconf, define it here.
 
66
+m4_ifdef([AC_PROVIDE_IFELSE],
 
67
+         [],
 
68
+         [m4_define([AC_PROVIDE_IFELSE],
 
69
+                [m4_ifdef([AC_PROVIDE_$1],
 
70
+                          [$2], [$3])])])
 
71
+
 
72
+
 
73
+# AC_PROG_LIBTOOL
 
74
+# ---------------
 
75
+AC_DEFUN([AC_PROG_LIBTOOL],
 
76
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
77
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
78
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
79
+  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
80
+    [AC_LIBTOOL_CXX],
 
81
+    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
82
+  ])])
 
83
+dnl And a similar setup for Fortran 77 support
 
84
+  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
85
+    [AC_LIBTOOL_F77],
 
86
+    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
87
+])])
 
88
+
 
89
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
90
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
91
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
92
+  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
93
+    [AC_LIBTOOL_GCJ],
 
94
+    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
95
+      [AC_LIBTOOL_GCJ],
 
96
+      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
97
+       [AC_LIBTOOL_GCJ],
 
98
+      [ifdef([AC_PROG_GCJ],
 
99
+            [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
100
+       ifdef([A][M_PROG_GCJ],
 
101
+            [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
102
+       ifdef([LT_AC_PROG_GCJ],
 
103
+            [define([LT_AC_PROG_GCJ],
 
104
+               defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
105
+])])# AC_PROG_LIBTOOL
 
106
+
 
107
+
 
108
+# _AC_PROG_LIBTOOL
 
109
+# ----------------
 
110
+AC_DEFUN([_AC_PROG_LIBTOOL],
 
111
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
112
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
113
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
114
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
115
+
 
116
+# This can be used to rebuild libtool when needed
 
117
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
118
+
 
119
+# Always use our own libtool.
 
120
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
121
+AC_SUBST(LIBTOOL)dnl
 
122
+
 
123
+# Prevent multiple expansion
 
124
+define([AC_PROG_LIBTOOL], [])
 
125
+])# _AC_PROG_LIBTOOL
 
126
+
 
127
+
 
128
+# AC_LIBTOOL_SETUP
 
129
+# ----------------
 
130
+AC_DEFUN([AC_LIBTOOL_SETUP],
 
131
+[AC_PREREQ(2.50)dnl
 
132
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
133
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
134
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
135
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
136
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
137
+AC_REQUIRE([AC_PROG_CC])dnl
 
138
+AC_REQUIRE([AC_PROG_LD])dnl
 
139
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
140
+AC_REQUIRE([AC_PROG_NM])dnl
 
141
+
 
142
+AC_REQUIRE([AC_PROG_LN_S])dnl
 
143
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
144
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
145
+AC_REQUIRE([AC_OBJEXT])dnl
 
146
+AC_REQUIRE([AC_EXEEXT])dnl
 
147
+dnl
 
148
+
 
149
+AC_LIBTOOL_SYS_MAX_CMD_LEN
 
150
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
151
+AC_LIBTOOL_OBJDIR
 
152
+
 
153
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
154
+_LT_AC_PROG_ECHO_BACKSLASH
 
155
+
 
156
+case $host_os in
 
157
+aix3*)
 
158
+  # AIX sometimes has problems with the GCC collect2 program.  For some
 
159
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
160
+  # vanish in a puff of smoke.
 
161
+  if test "X${COLLECT_NAMES+set}" != Xset; then
 
162
+    COLLECT_NAMES=
 
163
+    export COLLECT_NAMES
 
164
+  fi
 
165
+  ;;
 
166
+esac
 
167
+
 
168
+# Sed substitution that helps us do robust quoting.  It backslashifies
 
169
+# metacharacters that are still active within double-quoted strings.
 
170
+Xsed='sed -e 1s/^X//'
 
171
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
172
+
 
173
+# Same as above, but do not quote variable references.
 
174
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
175
+
 
176
+# Sed substitution to delay expansion of an escaped shell variable in a
 
177
+# double_quote_subst'ed string.
 
178
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
179
+
 
180
+# Sed substitution to avoid accidental globbing in evaled expressions
 
181
+no_glob_subst='s/\*/\\\*/g'
 
182
+
 
183
+# Constants:
 
184
+rm="rm -f"
 
185
+
 
186
+# Global variables:
 
187
+default_ofile=libtool
 
188
+can_build_shared=yes
 
189
+
 
190
+# All known linkers require a `.a' archive for static linking (except MSVC,
 
191
+# which needs '.lib').
 
192
+libext=a
 
193
+ltmain="$ac_aux_dir/ltmain.sh"
 
194
+ofile="$default_ofile"
 
195
+with_gnu_ld="$lt_cv_prog_gnu_ld"
 
196
+
 
197
+AC_CHECK_TOOL(AR, ar, false)
 
198
+AC_CHECK_TOOL(RANLIB, ranlib, :)
 
199
+AC_CHECK_TOOL(STRIP, strip, :)
 
200
+
 
201
+old_CC="$CC"
 
202
+old_CFLAGS="$CFLAGS"
 
203
+
 
204
+# Set sane defaults for various variables
 
205
+test -z "$AR" && AR=ar
 
206
+test -z "$AR_FLAGS" && AR_FLAGS=cru
 
207
+test -z "$AS" && AS=as
 
208
+test -z "$CC" && CC=cc
 
209
+test -z "$LTCC" && LTCC=$CC
 
210
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
211
+test -z "$DLLTOOL" && DLLTOOL=dlltool
 
212
+test -z "$LD" && LD=ld
 
213
+test -z "$LN_S" && LN_S="ln -s"
 
214
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
215
+test -z "$NM" && NM=nm
 
216
+test -z "$SED" && SED=sed
 
217
+test -z "$OBJDUMP" && OBJDUMP=objdump
 
218
+test -z "$RANLIB" && RANLIB=:
 
219
+test -z "$STRIP" && STRIP=:
 
220
+test -z "$ac_objext" && ac_objext=o
 
221
+
 
222
+# Determine commands to create old-style static archives.
 
223
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
224
+old_postinstall_cmds='chmod 644 $oldlib'
 
225
+old_postuninstall_cmds=
 
226
+
 
227
+if test -n "$RANLIB"; then
 
228
+  case $host_os in
 
229
+  openbsd*)
 
230
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
231
+    ;;
 
232
+  *)
 
233
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
234
+    ;;
 
235
+  esac
 
236
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
237
+fi
 
238
+
 
239
+_LT_CC_BASENAME([$compiler])
 
240
+
 
241
+# Only perform the check for file, if the check method requires it
 
242
+case $deplibs_check_method in
 
243
+file_magic*)
 
244
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
245
+    AC_PATH_MAGIC
 
246
+  fi
 
247
+  ;;
 
248
+esac
 
249
+
 
250
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
251
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
252
+enable_win32_dll=yes, enable_win32_dll=no)
 
253
+
 
254
+AC_ARG_ENABLE([libtool-lock],
 
255
+    [AC_HELP_STRING([--disable-libtool-lock],
 
256
+       [avoid locking (might break parallel builds)])])
 
257
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
258
+
 
259
+AC_ARG_WITH([pic],
 
260
+    [AC_HELP_STRING([--with-pic],
 
261
+       [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
262
+    [pic_mode="$withval"],
 
263
+    [pic_mode=default])
 
264
+test -z "$pic_mode" && pic_mode=default
 
265
+
 
266
+# Use C for the default configuration in the libtool script
 
267
+tagname=
 
268
+AC_LIBTOOL_LANG_C_CONFIG
 
269
+_LT_AC_TAGCONFIG
 
270
+])# AC_LIBTOOL_SETUP
 
271
+
 
272
+
 
273
+# _LT_AC_SYS_COMPILER
 
274
+# -------------------
 
275
+AC_DEFUN([_LT_AC_SYS_COMPILER],
 
276
+[AC_REQUIRE([AC_PROG_CC])dnl
 
277
+
 
278
+# If no C compiler was specified, use CC.
 
279
+LTCC=${LTCC-"$CC"}
 
280
+
 
281
+# If no C compiler flags were specified, use CFLAGS.
 
282
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
283
+
 
284
+# Allow CC to be a program name with arguments.
 
285
+compiler=$CC
 
286
+])# _LT_AC_SYS_COMPILER
 
287
+
 
288
+
 
289
+# _LT_CC_BASENAME(CC)
 
290
+# -------------------
 
291
+# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
292
+AC_DEFUN([_LT_CC_BASENAME],
 
293
+[for cc_temp in $1""; do
 
294
+  case $cc_temp in
 
295
+    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
296
+    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
297
+    \-*) ;;
 
298
+    *) break;;
 
299
+  esac
 
300
+done
 
301
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
302
+])
 
303
+
 
304
+
 
305
+# _LT_COMPILER_BOILERPLATE
 
306
+# ------------------------
 
307
+# Check for compiler boilerplate output or warnings with
 
308
+# the simple compiler test code.
 
309
+AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
310
+[ac_outfile=conftest.$ac_objext
 
311
+printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
312
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
313
+_lt_compiler_boilerplate=`cat conftest.err`
 
314
+$rm conftest*
 
315
+])# _LT_COMPILER_BOILERPLATE
 
316
+
 
317
+
 
318
+# _LT_LINKER_BOILERPLATE
 
319
+# ----------------------
 
320
+# Check for linker boilerplate output or warnings with
 
321
+# the simple link test code.
 
322
+AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
323
+[ac_outfile=conftest.$ac_objext
 
324
+printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
325
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
326
+_lt_linker_boilerplate=`cat conftest.err`
 
327
+$rm conftest*
 
328
+])# _LT_LINKER_BOILERPLATE
 
329
+
 
330
+
 
331
+# _LT_AC_SYS_LIBPATH_AIX
 
332
+# ----------------------
 
333
+# Links a minimal program and checks the executable
 
334
+# for the system default hardcoded library path. In most cases,
 
335
+# this is /usr/lib:/lib, but when the MPI compilers are used
 
336
+# the location of the communication and MPI libs are included too.
 
337
+# If we don't find anything, use the default library path according
 
338
+# to the aix ld manual.
 
339
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
340
+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
341
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
342
+}'`
 
343
+# Check for a 64-bit object if we didn't find anything.
 
344
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
345
+}'`; fi],[])
 
346
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
347
+])# _LT_AC_SYS_LIBPATH_AIX
 
348
+
 
349
+
 
350
+# _LT_AC_SHELL_INIT(ARG)
 
351
+# ----------------------
 
352
+AC_DEFUN([_LT_AC_SHELL_INIT],
 
353
+[ifdef([AC_DIVERSION_NOTICE],
 
354
+            [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
355
+        [AC_DIVERT_PUSH(NOTICE)])
 
356
+$1
 
357
+AC_DIVERT_POP
 
358
+])# _LT_AC_SHELL_INIT
 
359
+
 
360
+
 
361
+# _LT_AC_PROG_ECHO_BACKSLASH
 
362
+# --------------------------
 
363
+# Add some code to the start of the generated configure script which
 
364
+# will find an echo command which doesn't interpret backslashes.
 
365
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
366
+[_LT_AC_SHELL_INIT([
 
367
+# Check that we are running under the correct shell.
 
368
+SHELL=${CONFIG_SHELL-/bin/sh}
 
369
+
 
370
+case X$ECHO in
 
371
+X*--fallback-echo)
 
372
+  # Remove one level of quotation (which was required for Make).
 
373
+  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
374
+  ;;
 
375
+esac
 
376
+
 
377
+echo=${ECHO-echo}
 
378
+if test "X[$]1" = X--no-reexec; then
 
379
+  # Discard the --no-reexec flag, and continue.
 
380
+  shift
 
381
+elif test "X[$]1" = X--fallback-echo; then
 
382
+  # Avoid inline document here, it may be left over
 
383
+  :
 
384
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
385
+  # Yippee, $echo works!
 
386
+  :
 
387
+else
 
388
+  # Restart under the correct shell.
 
389
+  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
390
+fi
 
391
+
 
392
+if test "X[$]1" = X--fallback-echo; then
 
393
+  # used as fallback echo
 
394
+  shift
 
395
+  cat <<EOF
 
396
+[$]*
 
397
+EOF
 
398
+  exit 0
 
399
+fi
 
400
+
 
401
+# The HP-UX ksh and POSIX shell print the target directory to stdout
 
402
+# if CDPATH is set.
 
403
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
404
+
 
405
+if test -z "$ECHO"; then
 
406
+if test "X${echo_test_string+set}" != Xset; then
 
407
+# find a string as large as possible, as long as the shell can cope with it
 
408
+  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
409
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
410
+    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
411
+       echo_test_string=`eval $cmd` &&
 
412
+       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
413
+    then
 
414
+      break
 
415
+    fi
 
416
+  done
 
417
+fi
 
418
+
 
419
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
420
+   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
421
+   test "X$echo_testing_string" = "X$echo_test_string"; then
 
422
+  :
 
423
+else
 
424
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
425
+  # backslashes.  This makes it impossible to quote backslashes using
 
426
+  #   echo "$something" | sed 's/\\/\\\\/g'
 
427
+  #
 
428
+  # So, first we look for a working echo in the user's PATH.
 
429
+
 
430
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
431
+  for dir in $PATH /usr/ucb; do
 
432
+    IFS="$lt_save_ifs"
 
433
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
434
+       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
435
+       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
436
+       test "X$echo_testing_string" = "X$echo_test_string"; then
 
437
+      echo="$dir/echo"
 
438
+      break
 
439
+    fi
 
440
+  done
 
441
+  IFS="$lt_save_ifs"
 
442
+
 
443
+  if test "X$echo" = Xecho; then
 
444
+    # We didn't find a better echo, so look for alternatives.
 
445
+    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
446
+       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
447
+       test "X$echo_testing_string" = "X$echo_test_string"; then
 
448
+      # This shell has a builtin print -r that does the trick.
 
449
+      echo='print -r'
 
450
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
451
+        test "X$CONFIG_SHELL" != X/bin/ksh; then
 
452
+      # If we have ksh, try running configure again with it.
 
453
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
454
+      export ORIGINAL_CONFIG_SHELL
 
455
+      CONFIG_SHELL=/bin/ksh
 
456
+      export CONFIG_SHELL
 
457
+      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
458
+    else
 
459
+      # Try using printf.
 
460
+      echo='printf %s\n'
 
461
+      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
462
+        echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
463
+        test "X$echo_testing_string" = "X$echo_test_string"; then
 
464
+       # Cool, printf works
 
465
+       :
 
466
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
467
+          test "X$echo_testing_string" = 'X\t' &&
 
468
+          echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
469
+          test "X$echo_testing_string" = "X$echo_test_string"; then
 
470
+       CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
471
+       export CONFIG_SHELL
 
472
+       SHELL="$CONFIG_SHELL"
 
473
+       export SHELL
 
474
+       echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
475
+      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
476
+          test "X$echo_testing_string" = 'X\t' &&
 
477
+          echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
478
+          test "X$echo_testing_string" = "X$echo_test_string"; then
 
479
+       echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
480
+      else
 
481
+       # maybe with a smaller string...
 
482
+       prev=:
 
483
+
 
484
+       for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
485
+         if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
486
+         then
 
487
+           break
 
488
+         fi
 
489
+         prev="$cmd"
 
490
+       done
 
491
+
 
492
+       if test "$prev" != 'sed 50q "[$]0"'; then
 
493
+         echo_test_string=`eval $prev`
 
494
+         export echo_test_string
 
495
+         exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
496
+       else
 
497
+         # Oops.  We lost completely, so just stick with echo.
 
498
+         echo=echo
 
499
+       fi
 
500
+      fi
 
501
+    fi
 
502
+  fi
 
503
+fi
 
504
+fi
 
505
+
 
506
+# Copy echo and quote the copy suitably for passing to libtool from
 
507
+# the Makefile, instead of quoting the original, which is used later.
 
508
+ECHO=$echo
 
509
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
510
+   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
511
+fi
 
512
+
 
513
+AC_SUBST(ECHO)
 
514
+])])# _LT_AC_PROG_ECHO_BACKSLASH
 
515
+
 
516
+
 
517
+# _LT_AC_LOCK
 
518
+# -----------
 
519
+AC_DEFUN([_LT_AC_LOCK],
 
520
+[AC_ARG_ENABLE([libtool-lock],
 
521
+    [AC_HELP_STRING([--disable-libtool-lock],
 
522
+       [avoid locking (might break parallel builds)])])
 
523
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
524
+
 
525
+# Some flags need to be propagated to the compiler or linker for good
 
526
+# libtool support.
 
527
+case $host in
 
528
+ia64-*-hpux*)
 
529
+  # Find out which ABI we are using.
 
530
+  echo 'int i;' > conftest.$ac_ext
 
531
+  if AC_TRY_EVAL(ac_compile); then
 
532
+    case `/usr/bin/file conftest.$ac_objext` in
 
533
+    *ELF-32*)
 
534
+      HPUX_IA64_MODE="32"
 
535
+      ;;
 
536
+    *ELF-64*)
 
537
+      HPUX_IA64_MODE="64"
 
538
+      ;;
 
539
+    esac
 
540
+  fi
 
541
+  rm -rf conftest*
 
542
+  ;;
 
543
+*-*-irix6*)
 
544
+  # Find out which ABI we are using.
 
545
+  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
546
+  if AC_TRY_EVAL(ac_compile); then
 
547
+   if test "$lt_cv_prog_gnu_ld" = yes; then
 
548
+    case `/usr/bin/file conftest.$ac_objext` in
 
549
+    *32-bit*)
 
550
+      LD="${LD-ld} -melf32bsmip"
 
551
+      ;;
 
552
+    *N32*)
 
553
+      LD="${LD-ld} -melf32bmipn32"
 
554
+      ;;
 
555
+    *64-bit*)
 
556
+      LD="${LD-ld} -melf64bmip"
 
557
+      ;;
 
558
+    esac
 
559
+   else
 
560
+    case `/usr/bin/file conftest.$ac_objext` in
 
561
+    *32-bit*)
 
562
+      LD="${LD-ld} -32"
 
563
+      ;;
 
564
+    *N32*)
 
565
+      LD="${LD-ld} -n32"
 
566
+      ;;
 
567
+    *64-bit*)
 
568
+      LD="${LD-ld} -64"
 
569
+      ;;
 
570
+    esac
 
571
+   fi
 
572
+  fi
 
573
+  rm -rf conftest*
 
574
+  ;;
 
575
+
 
576
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
577
+  # Find out which ABI we are using.
 
578
+  echo 'int i;' > conftest.$ac_ext
 
579
+  if AC_TRY_EVAL(ac_compile); then
 
580
+    case `/usr/bin/file conftest.o` in
 
581
+    *32-bit*)
 
582
+      case $host in
 
583
+        x86_64-*linux*)
 
584
+          LD="${LD-ld} -m elf_i386"
 
585
+          ;;
 
586
+        ppc64-*linux*|powerpc64-*linux*)
 
587
+          LD="${LD-ld} -m elf32ppclinux"
 
588
+          ;;
 
589
+        s390x-*linux*)
 
590
+          LD="${LD-ld} -m elf_s390"
 
591
+          ;;
 
592
+        sparc64-*linux*)
 
593
+          LD="${LD-ld} -m elf32_sparc"
 
594
+          ;;
 
595
+      esac
 
596
+      ;;
 
597
+    *64-bit*)
 
598
+      case $host in
 
599
+        x86_64-*linux*)
 
600
+          LD="${LD-ld} -m elf_x86_64"
 
601
+          ;;
 
602
+        ppc*-*linux*|powerpc*-*linux*)
 
603
+          LD="${LD-ld} -m elf64ppc"
 
604
+          ;;
 
605
+        s390*-*linux*)
 
606
+          LD="${LD-ld} -m elf64_s390"
 
607
+          ;;
 
608
+        sparc*-*linux*)
 
609
+          LD="${LD-ld} -m elf64_sparc"
 
610
+          ;;
 
611
+      esac
 
612
+      ;;
 
613
+    esac
 
614
+  fi
 
615
+  rm -rf conftest*
 
616
+  ;;
 
617
+
 
618
+*-*-sco3.2v5*)
 
619
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
620
+  SAVE_CFLAGS="$CFLAGS"
 
621
+  CFLAGS="$CFLAGS -belf"
 
622
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
623
+    [AC_LANG_PUSH(C)
 
624
+     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
625
+     AC_LANG_POP])
 
626
+  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
627
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
628
+    CFLAGS="$SAVE_CFLAGS"
 
629
+  fi
 
630
+  ;;
 
631
+sparc*-*solaris*)
 
632
+  # Find out which ABI we are using.
 
633
+  echo 'int i;' > conftest.$ac_ext
 
634
+  if AC_TRY_EVAL(ac_compile); then
 
635
+    case `/usr/bin/file conftest.o` in
 
636
+    *64-bit*)
 
637
+      case $lt_cv_prog_gnu_ld in
 
638
+      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
639
+      *)    LD="${LD-ld} -64" ;;
 
640
+      esac
 
641
+      ;;
 
642
+    esac
 
643
+  fi
 
644
+  rm -rf conftest*
 
645
+  ;;
 
646
+
 
647
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
648
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
649
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
650
+  AC_CHECK_TOOL(AS, as, false)
 
651
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
652
+  ;;
 
653
+  ])
 
654
+esac
 
655
+
 
656
+need_locks="$enable_libtool_lock"
 
657
+
 
658
+])# _LT_AC_LOCK
 
659
+
 
660
+
 
661
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
662
+#              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
663
+# ----------------------------------------------------------------
 
664
+# Check whether the given compiler option works
 
665
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
666
+[AC_REQUIRE([LT_AC_PROG_SED])
 
667
+AC_CACHE_CHECK([$1], [$2],
 
668
+  [$2=no
 
669
+  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
670
+   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
671
+   lt_compiler_flag="$3"
 
672
+   # Insert the option either (1) after the last *FLAGS variable, or
 
673
+   # (2) before a word containing "conftest.", or (3) at the end.
 
674
+   # Note that $ac_compile itself does not contain backslashes and begins
 
675
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
676
+   # The option is referenced via a variable to avoid confusing sed.
 
677
+   lt_compile=`echo "$ac_compile" | $SED \
 
678
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
679
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
680
+   -e 's:$: $lt_compiler_flag:'`
 
681
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
682
+   (eval "$lt_compile" 2>conftest.err)
 
683
+   ac_status=$?
 
684
+   cat conftest.err >&AS_MESSAGE_LOG_FD
 
685
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
686
+   if (exit $ac_status) && test -s "$ac_outfile"; then
 
687
+     # The compiler can only warn and ignore the option if not recognized
 
688
+     # So say no if there are warnings other than the usual output.
 
689
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
690
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
691
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
692
+       $2=yes
 
693
+     fi
 
694
+   fi
 
695
+   $rm conftest*
 
696
+])
 
697
+
 
698
+if test x"[$]$2" = xyes; then
 
699
+    ifelse([$5], , :, [$5])
 
700
+else
 
701
+    ifelse([$6], , :, [$6])
 
702
+fi
 
703
+])# AC_LIBTOOL_COMPILER_OPTION
 
704
+
 
705
+
 
706
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
707
+#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
708
+# ------------------------------------------------------------
 
709
+# Check whether the given compiler option works
 
710
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
711
+[AC_CACHE_CHECK([$1], [$2],
 
712
+  [$2=no
 
713
+   save_LDFLAGS="$LDFLAGS"
 
714
+   LDFLAGS="$LDFLAGS $3"
 
715
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
716
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
717
+     # The linker can only warn and ignore the option if not recognized
 
718
+     # So say no if there are warnings
 
719
+     if test -s conftest.err; then
 
720
+       # Append any errors to the config.log.
 
721
+       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
722
+       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
723
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
724
+       if diff conftest.exp conftest.er2 >/dev/null; then
 
725
+         $2=yes
 
726
+       fi
 
727
+     else
 
728
+       $2=yes
 
729
+     fi
 
730
+   fi
 
731
+   $rm conftest*
 
732
+   LDFLAGS="$save_LDFLAGS"
 
733
+])
 
734
+
 
735
+if test x"[$]$2" = xyes; then
 
736
+    ifelse([$4], , :, [$4])
 
737
+else
 
738
+    ifelse([$5], , :, [$5])
 
739
+fi
 
740
+])# AC_LIBTOOL_LINKER_OPTION
 
741
+
 
742
+
 
743
+# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
744
+# --------------------------
 
745
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
746
+[# find the maximum length of command line arguments
 
747
+AC_MSG_CHECKING([the maximum length of command line arguments])
 
748
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
749
+  i=0
 
750
+  teststring="ABCD"
 
751
+
 
752
+  case $build_os in
 
753
+  msdosdjgpp*)
 
754
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
755
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
756
+    # during glob expansion).  Even if it were fixed, the result of this
 
757
+    # check would be larger than it should be.
 
758
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
759
+    ;;
 
760
+
 
761
+  gnu*)
 
762
+    # Under GNU Hurd, this test is not required because there is
 
763
+    # no limit to the length of command line arguments.
 
764
+    # Libtool will interpret -1 as no limit whatsoever
 
765
+    lt_cv_sys_max_cmd_len=-1;
 
766
+    ;;
 
767
+
 
768
+  cygwin* | mingw*)
 
769
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
770
+    # about 5 minutes as the teststring grows exponentially.
 
771
+    # Worse, since 9x/ME are not pre-emptively multitasking,
 
772
+    # you end up with a "frozen" computer, even though with patience
 
773
+    # the test eventually succeeds (with a max line length of 256k).
 
774
+    # Instead, let's just punt: use the minimum linelength reported by
 
775
+    # all of the supported platforms: 8192 (on NT/2K/XP).
 
776
+    lt_cv_sys_max_cmd_len=8192;
 
777
+    ;;
 
778
+
 
779
+  amigaos*)
 
780
+    # On AmigaOS with pdksh, this test takes hours, literally.
 
781
+    # So we just punt and use a minimum line length of 8192.
 
782
+    lt_cv_sys_max_cmd_len=8192;
 
783
+    ;;
 
784
+
 
785
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
786
+    # This has been around since 386BSD, at least.  Likely further.
 
787
+    if test -x /sbin/sysctl; then
 
788
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
789
+    elif test -x /usr/sbin/sysctl; then
 
790
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
791
+    else
 
792
+      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
 
793
+    fi
 
794
+    # And add a safety zone
 
795
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
796
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
797
+    ;;
 
798
+
 
799
+  interix*)
 
800
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
801
+    lt_cv_sys_max_cmd_len=196608
 
802
+    ;;
 
803
+
 
804
+  osf*)
 
805
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
806
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
807
+    # nice to cause kernel panics so lets avoid the loop below.
 
808
+    # First set a reasonable default.
 
809
+    lt_cv_sys_max_cmd_len=16384
 
810
+    #
 
811
+    if test -x /sbin/sysconfig; then
 
812
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
813
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
814
+      esac
 
815
+    fi
 
816
+    ;;
 
817
+  sco3.2v5*)
 
818
+    lt_cv_sys_max_cmd_len=102400
 
819
+    ;;
 
820
+  sysv5* | sco5v6* | sysv4.2uw2*)
 
821
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
822
+    if test -n "$kargmax"; then
 
823
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
 
824
+    else
 
825
+      lt_cv_sys_max_cmd_len=32768
 
826
+    fi
 
827
+    ;;
 
828
+  *)
 
829
+    # If test is not a shell built-in, we'll probably end up computing a
 
830
+    # maximum length that is only half of the actual maximum length, but
 
831
+    # we can't tell.
 
832
+    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
833
+    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
834
+              = "XX$teststring") >/dev/null 2>&1 &&
 
835
+           new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
836
+           lt_cv_sys_max_cmd_len=$new_result &&
 
837
+           test $i != 17 # 1/2 MB should be enough
 
838
+    do
 
839
+      i=`expr $i + 1`
 
840
+      teststring=$teststring$teststring
 
841
+    done
 
842
+    teststring=
 
843
+    # Add a significant safety factor because C++ compilers can tack on massive
 
844
+    # amounts of additional arguments before passing them to the linker.
 
845
+    # It appears as though 1/2 is a usable value.
 
846
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
847
+    ;;
 
848
+  esac
 
849
+])
 
850
+if test -n $lt_cv_sys_max_cmd_len ; then
 
851
+  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
852
+else
 
853
+  AC_MSG_RESULT(none)
 
854
+fi
 
855
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
856
+
 
857
+
 
858
+# _LT_AC_CHECK_DLFCN
 
859
+# ------------------
 
860
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
861
+[AC_CHECK_HEADERS(dlfcn.h)dnl
 
862
+])# _LT_AC_CHECK_DLFCN
 
863
+
 
864
+
 
865
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
866
+#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
867
+# ---------------------------------------------------------------------
 
868
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
869
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
870
+if test "$cross_compiling" = yes; then :
 
871
+  [$4]
 
872
+else
 
873
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
874
+  lt_status=$lt_dlunknown
 
875
+  cat > conftest.$ac_ext <<EOF
 
876
+[#line __oline__ "configure"
 
877
+#include "confdefs.h"
 
878
+
 
879
+#if HAVE_DLFCN_H
 
880
+#include <dlfcn.h>
 
881
+#endif
 
882
+
 
883
+#include <stdio.h>
 
884
+
 
885
+#ifdef RTLD_GLOBAL
 
886
+#  define LT_DLGLOBAL          RTLD_GLOBAL
 
887
+#else
 
888
+#  ifdef DL_GLOBAL
 
889
+#    define LT_DLGLOBAL                DL_GLOBAL
 
890
+#  else
 
891
+#    define LT_DLGLOBAL                0
 
892
+#  endif
 
893
+#endif
 
894
+
 
895
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
896
+   find out it does not work in some platform. */
 
897
+#ifndef LT_DLLAZY_OR_NOW
 
898
+#  ifdef RTLD_LAZY
 
899
+#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
 
900
+#  else
 
901
+#    ifdef DL_LAZY
 
902
+#      define LT_DLLAZY_OR_NOW         DL_LAZY
 
903
+#    else
 
904
+#      ifdef RTLD_NOW
 
905
+#        define LT_DLLAZY_OR_NOW       RTLD_NOW
 
906
+#      else
 
907
+#        ifdef DL_NOW
 
908
+#          define LT_DLLAZY_OR_NOW     DL_NOW
 
909
+#        else
 
910
+#          define LT_DLLAZY_OR_NOW     0
 
911
+#        endif
 
912
+#      endif
 
913
+#    endif
 
914
+#  endif
 
915
+#endif
 
916
+
 
917
+#ifdef __cplusplus
 
918
+extern "C" void exit (int);
 
919
+#endif
 
920
+
 
921
+void fnord() { int i=42;}
 
922
+int main ()
 
923
+{
 
924
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
925
+  int status = $lt_dlunknown;
 
926
+
 
927
+  if (self)
 
928
+    {
 
929
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
930
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
931
+      /* dlclose (self); */
 
932
+    }
 
933
+  else
 
934
+    puts (dlerror ());
 
935
+
 
936
+    exit (status);
 
937
+}]
 
938
+EOF
 
939
+  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
940
+    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
941
+    lt_status=$?
 
942
+    case x$lt_status in
 
943
+      x$lt_dlno_uscore) $1 ;;
 
944
+      x$lt_dlneed_uscore) $2 ;;
 
945
+      x$lt_dlunknown|x*) $3 ;;
 
946
+    esac
 
947
+  else :
 
948
+    # compilation failed
 
949
+    $3
 
950
+  fi
 
951
+fi
 
952
+rm -fr conftest*
 
953
+])# _LT_AC_TRY_DLOPEN_SELF
 
954
+
 
955
+
 
956
+# AC_LIBTOOL_DLOPEN_SELF
 
957
+# ----------------------
 
958
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
959
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
960
+if test "x$enable_dlopen" != xyes; then
 
961
+  enable_dlopen=unknown
 
962
+  enable_dlopen_self=unknown
 
963
+  enable_dlopen_self_static=unknown
 
964
+else
 
965
+  lt_cv_dlopen=no
 
966
+  lt_cv_dlopen_libs=
 
967
+
 
968
+  case $host_os in
 
969
+  beos*)
 
970
+    lt_cv_dlopen="load_add_on"
 
971
+    lt_cv_dlopen_libs=
 
972
+    lt_cv_dlopen_self=yes
 
973
+    ;;
 
974
+
 
975
+  mingw* | pw32*)
 
976
+    lt_cv_dlopen="LoadLibrary"
 
977
+    lt_cv_dlopen_libs=
 
978
+   ;;
 
979
+
 
980
+  cygwin*)
 
981
+    lt_cv_dlopen="dlopen"
 
982
+    lt_cv_dlopen_libs=
 
983
+   ;;
 
984
+
 
985
+  darwin*)
 
986
+  # if libdl is installed we need to link against it
 
987
+    AC_CHECK_LIB([dl], [dlopen],
 
988
+               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
989
+    lt_cv_dlopen="dyld"
 
990
+    lt_cv_dlopen_libs=
 
991
+    lt_cv_dlopen_self=yes
 
992
+    ])
 
993
+   ;;
 
994
+
 
995
+  *)
 
996
+    AC_CHECK_FUNC([shl_load],
 
997
+         [lt_cv_dlopen="shl_load"],
 
998
+      [AC_CHECK_LIB([dld], [shl_load],
 
999
+           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1000
+       [AC_CHECK_FUNC([dlopen],
 
1001
+             [lt_cv_dlopen="dlopen"],
 
1002
+         [AC_CHECK_LIB([dl], [dlopen],
 
1003
+               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
1004
+           [AC_CHECK_LIB([svld], [dlopen],
 
1005
+                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
1006
+             [AC_CHECK_LIB([dld], [dld_link],
 
1007
+                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1008
+             ])
 
1009
+           ])
 
1010
+         ])
 
1011
+       ])
 
1012
+      ])
 
1013
+    ;;
 
1014
+  esac
 
1015
+
 
1016
+  if test "x$lt_cv_dlopen" != xno; then
 
1017
+    enable_dlopen=yes
 
1018
+  else
 
1019
+    enable_dlopen=no
 
1020
+  fi
 
1021
+
 
1022
+  case $lt_cv_dlopen in
 
1023
+  dlopen)
 
1024
+    save_CPPFLAGS="$CPPFLAGS"
 
1025
+    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
1026
+
 
1027
+    save_LDFLAGS="$LDFLAGS"
 
1028
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1029
+
 
1030
+    save_LIBS="$LIBS"
 
1031
+    LIBS="$lt_cv_dlopen_libs $LIBS"
 
1032
+
 
1033
+    AC_CACHE_CHECK([whether a program can dlopen itself],
 
1034
+         lt_cv_dlopen_self, [dnl
 
1035
+         _LT_AC_TRY_DLOPEN_SELF(
 
1036
+           lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
1037
+           lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
1038
+    ])
 
1039
+
 
1040
+    if test "x$lt_cv_dlopen_self" = xyes; then
 
1041
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
1042
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
1043
+         lt_cv_dlopen_self_static, [dnl
 
1044
+         _LT_AC_TRY_DLOPEN_SELF(
 
1045
+           lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
1046
+           lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
1047
+      ])
 
1048
+    fi
 
1049
+
 
1050
+    CPPFLAGS="$save_CPPFLAGS"
 
1051
+    LDFLAGS="$save_LDFLAGS"
 
1052
+    LIBS="$save_LIBS"
 
1053
+    ;;
 
1054
+  esac
 
1055
+
 
1056
+  case $lt_cv_dlopen_self in
 
1057
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
1058
+  *) enable_dlopen_self=unknown ;;
 
1059
+  esac
 
1060
+
 
1061
+  case $lt_cv_dlopen_self_static in
 
1062
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
1063
+  *) enable_dlopen_self_static=unknown ;;
 
1064
+  esac
 
1065
+fi
 
1066
+])# AC_LIBTOOL_DLOPEN_SELF
 
1067
+
 
1068
+
 
1069
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1070
+# ---------------------------------
 
1071
+# Check to see if options -c and -o are simultaneously supported by compiler
 
1072
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
1073
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1074
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
1075
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1076
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1077
+   $rm -r conftest 2>/dev/null
 
1078
+   mkdir conftest
 
1079
+   cd conftest
 
1080
+   mkdir out
 
1081
+   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1082
+
 
1083
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
1084
+   # Insert the option either (1) after the last *FLAGS variable, or
 
1085
+   # (2) before a word containing "conftest.", or (3) at the end.
 
1086
+   # Note that $ac_compile itself does not contain backslashes and begins
 
1087
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1088
+   lt_compile=`echo "$ac_compile" | $SED \
 
1089
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
1090
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1091
+   -e 's:$: $lt_compiler_flag:'`
 
1092
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1093
+   (eval "$lt_compile" 2>out/conftest.err)
 
1094
+   ac_status=$?
 
1095
+   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
1096
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1097
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
1098
+   then
 
1099
+     # The compiler can only warn and ignore the option if not recognized
 
1100
+     # So say no if there are warnings
 
1101
+     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1102
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1103
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1104
+       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1105
+     fi
 
1106
+   fi
 
1107
+   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
1108
+   $rm conftest*
 
1109
+   # SGI C++ compiler will create directory out/ii_files/ for
 
1110
+   # template instantiation
 
1111
+   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1112
+   $rm out/* && rmdir out
 
1113
+   cd ..
 
1114
+   rmdir conftest
 
1115
+   $rm conftest*
 
1116
+])
 
1117
+])# AC_LIBTOOL_PROG_CC_C_O
 
1118
+
 
1119
+
 
1120
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1121
+# -----------------------------------------
 
1122
+# Check to see if we can do hard links to lock some files if needed
 
1123
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1124
+[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1125
+
 
1126
+hard_links="nottested"
 
1127
+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1128
+  # do not overwrite the value of need_locks provided by the user
 
1129
+  AC_MSG_CHECKING([if we can lock with hard links])
 
1130
+  hard_links=yes
 
1131
+  $rm conftest*
 
1132
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1133
+  touch conftest.a
 
1134
+  ln conftest.a conftest.b 2>&5 || hard_links=no
 
1135
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
1136
+  AC_MSG_RESULT([$hard_links])
 
1137
+  if test "$hard_links" = no; then
 
1138
+    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
1139
+    need_locks=warn
 
1140
+  fi
 
1141
+else
 
1142
+  need_locks=no
 
1143
+fi
 
1144
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1145
+
 
1146
+
 
1147
+# AC_LIBTOOL_OBJDIR
 
1148
+# -----------------
 
1149
+AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1150
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
1151
+[rm -f .libs 2>/dev/null
 
1152
+mkdir .libs 2>/dev/null
 
1153
+if test -d .libs; then
 
1154
+  lt_cv_objdir=.libs
 
1155
+else
 
1156
+  # MS-DOS does not allow filenames that begin with a dot.
 
1157
+  lt_cv_objdir=_libs
 
1158
+fi
 
1159
+rmdir .libs 2>/dev/null])
 
1160
+objdir=$lt_cv_objdir
 
1161
+])# AC_LIBTOOL_OBJDIR
 
1162
+
 
1163
+
 
1164
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1165
+# ----------------------------------------------
 
1166
+# Check hardcoding attributes.
 
1167
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1168
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
1169
+_LT_AC_TAGVAR(hardcode_action, $1)=
 
1170
+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
1171
+   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1172
+   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1173
+
 
1174
+  # We can hardcode non-existant directories.
 
1175
+  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
1176
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
1177
+     # have to relink, otherwise we might link with an installed library
 
1178
+     # when we should be linking with a yet-to-be-installed one
 
1179
+     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1180
+     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1181
+    # Linking always hardcodes the temporary library directory.
 
1182
+    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
1183
+  else
 
1184
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
1185
+    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
1186
+  fi
 
1187
+else
 
1188
+  # We cannot hardcode anything, or else we can only hardcode existing
 
1189
+  # directories.
 
1190
+  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1191
+fi
 
1192
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1193
+
 
1194
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1195
+  # Fast installation is not supported
 
1196
+  enable_fast_install=no
 
1197
+elif test "$shlibpath_overrides_runpath" = yes ||
 
1198
+     test "$enable_shared" = no; then
 
1199
+  # Fast installation is not necessary
 
1200
+  enable_fast_install=needless
 
1201
+fi
 
1202
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1203
+
 
1204
+
 
1205
+# AC_LIBTOOL_SYS_LIB_STRIP
 
1206
+# ------------------------
 
1207
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
1208
+[striplib=
 
1209
+old_striplib=
 
1210
+AC_MSG_CHECKING([whether stripping libraries is possible])
 
1211
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
1212
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
1213
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
1214
+  AC_MSG_RESULT([yes])
 
1215
+else
 
1216
+# FIXME - insert some real tests, host_os isn't really good enough
 
1217
+  case $host_os in
 
1218
+   darwin*)
 
1219
+       if test -n "$STRIP" ; then
 
1220
+         striplib="$STRIP -x"
 
1221
+         AC_MSG_RESULT([yes])
 
1222
+       else
 
1223
+  AC_MSG_RESULT([no])
 
1224
+fi
 
1225
+       ;;
 
1226
+   *)
 
1227
+  AC_MSG_RESULT([no])
 
1228
+    ;;
 
1229
+  esac
 
1230
+fi
 
1231
+])# AC_LIBTOOL_SYS_LIB_STRIP
 
1232
+
 
1233
+
 
1234
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1235
+# -----------------------------
 
1236
+# PORTME Fill in your ld.so characteristics
 
1237
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1238
+[AC_MSG_CHECKING([dynamic linker characteristics])
 
1239
+library_names_spec=
 
1240
+libname_spec='lib$name'
 
1241
+soname_spec=
 
1242
+shrext_cmds=".so"
 
1243
+postinstall_cmds=
 
1244
+postuninstall_cmds=
 
1245
+finish_cmds=
 
1246
+finish_eval=
 
1247
+shlibpath_var=
 
1248
+shlibpath_overrides_runpath=unknown
 
1249
+version_type=none
 
1250
+dynamic_linker="$host_os ld.so"
 
1251
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1252
+if test "$GCC" = yes; then
 
1253
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1254
+  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1255
+    # if the path contains ";" then we assume it to be the separator
 
1256
+    # otherwise default to the standard path separator (i.e. ":") - it is
 
1257
+    # assumed that no part of a normal pathname contains ";" but that should
 
1258
+    # okay in the real world where ";" in dirpaths is itself problematic.
 
1259
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1260
+  else
 
1261
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1262
+  fi
 
1263
+else
 
1264
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
1265
+fi
 
1266
+need_lib_prefix=unknown
 
1267
+hardcode_into_libs=no
 
1268
+
 
1269
+# when you set need_version to no, make sure it does not cause -set_version
 
1270
+# flags to be left without arguments
 
1271
+need_version=unknown
 
1272
+
 
1273
+case $host_os in
 
1274
+aix3*)
 
1275
+  version_type=linux
 
1276
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
1277
+  shlibpath_var=LIBPATH
 
1278
+
 
1279
+  # AIX 3 has no versioning support, so we append a major version to the name.
 
1280
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1281
+  ;;
 
1282
+
 
1283
+aix4* | aix5*)
 
1284
+  version_type=linux
 
1285
+  need_lib_prefix=no
 
1286
+  need_version=no
 
1287
+  hardcode_into_libs=yes
 
1288
+  if test "$host_cpu" = ia64; then
 
1289
+    # AIX 5 supports IA64
 
1290
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
1291
+    shlibpath_var=LD_LIBRARY_PATH
 
1292
+  else
 
1293
+    # With GCC up to 2.95.x, collect2 would create an import file
 
1294
+    # for dependence libraries.  The import file would start with
 
1295
+    # the line `#! .'.  This would cause the generated library to
 
1296
+    # depend on `.', always an invalid library.  This was fixed in
 
1297
+    # development snapshots of GCC prior to 3.0.
 
1298
+    case $host_os in
 
1299
+      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
1300
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
1301
+          echo ' yes '
 
1302
+          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
1303
+       :
 
1304
+      else
 
1305
+       can_build_shared=no
 
1306
+      fi
 
1307
+      ;;
 
1308
+    esac
 
1309
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
1310
+    # soname into executable. Probably we can add versioning support to
 
1311
+    # collect2, so additional links can be useful in future.
 
1312
+    if test "$aix_use_runtimelinking" = yes; then
 
1313
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
1314
+      # instead of lib<name>.a to let people know that these are not
 
1315
+      # typical AIX shared libraries.
 
1316
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1317
+    else
 
1318
+      # We preserve .a as extension for shared libraries through AIX4.2
 
1319
+      # and later when we are not doing run time linking.
 
1320
+      library_names_spec='${libname}${release}.a $libname.a'
 
1321
+      soname_spec='${libname}${release}${shared_ext}$major'
 
1322
+    fi
 
1323
+    shlibpath_var=LIBPATH
 
1324
+  fi
 
1325
+  ;;
 
1326
+
 
1327
+amigaos*)
 
1328
+  library_names_spec='$libname.ixlibrary $libname.a'
 
1329
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
1330
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
1331
+  ;;
 
1332
+
 
1333
+beos*)
 
1334
+  library_names_spec='${libname}${shared_ext}'
 
1335
+  dynamic_linker="$host_os ld.so"
 
1336
+  shlibpath_var=LIBRARY_PATH
 
1337
+  ;;
 
1338
+
 
1339
+bsdi[[45]]*)
 
1340
+  version_type=linux
 
1341
+  need_version=no
 
1342
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1343
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1344
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
1345
+  shlibpath_var=LD_LIBRARY_PATH
 
1346
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
1347
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
1348
+  # the default ld.so.conf also contains /usr/contrib/lib and
 
1349
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
1350
+  # libtool to hard-code these into programs
 
1351
+  ;;
 
1352
+
 
1353
+cygwin* | mingw* | pw32*)
 
1354
+  version_type=windows
 
1355
+  shrext_cmds=".dll"
 
1356
+  need_version=no
 
1357
+  need_lib_prefix=no
 
1358
+
 
1359
+  case $GCC,$host_os in
 
1360
+  yes,cygwin* | yes,mingw* | yes,pw32*)
 
1361
+    library_names_spec='$libname.dll.a'
 
1362
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
1363
+    postinstall_cmds='base_file=`basename \${file}`~
 
1364
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
1365
+      dldir=$destdir/`dirname \$dlpath`~
 
1366
+      test -d \$dldir || mkdir -p \$dldir~
 
1367
+      $install_prog $dir/$dlname \$dldir/$dlname~
 
1368
+      chmod a+x \$dldir/$dlname'
 
1369
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
1370
+      dlpath=$dir/\$dldll~
 
1371
+       $rm \$dlpath'
 
1372
+    shlibpath_overrides_runpath=yes
 
1373
+
 
1374
+    case $host_os in
 
1375
+    cygwin*)
 
1376
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
1377
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1378
+      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
1379
+      ;;
 
1380
+    mingw*)
 
1381
+      # MinGW DLLs use traditional 'lib' prefix
 
1382
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1383
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1384
+      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
1385
+        # It is most probably a Windows format PATH printed by
 
1386
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
1387
+        # path with ; separators, and with drive letters. We can handle the
 
1388
+        # drive letters (cygwin fileutils understands them), so leave them,
 
1389
+        # especially as we might pass files found there to a mingw objdump,
 
1390
+        # which wouldn't understand a cygwinified path. Ahh.
 
1391
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1392
+      else
 
1393
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1394
+      fi
 
1395
+      ;;
 
1396
+    pw32*)
 
1397
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
1398
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
1399
+      ;;
 
1400
+    esac
 
1401
+    ;;
 
1402
+
 
1403
+  *)
 
1404
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
1405
+    ;;
 
1406
+  esac
 
1407
+  dynamic_linker='Win32 ld.exe'
 
1408
+  # FIXME: first we should search . and the directory the executable is in
 
1409
+  shlibpath_var=PATH
 
1410
+  ;;
 
1411
+
 
1412
+darwin* | rhapsody*)
 
1413
+  dynamic_linker="$host_os dyld"
 
1414
+  version_type=darwin
 
1415
+  need_lib_prefix=no
 
1416
+  need_version=no
 
1417
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
1418
+  soname_spec='${libname}${release}${major}$shared_ext'
 
1419
+  shlibpath_overrides_runpath=yes
 
1420
+  shlibpath_var=DYLD_LIBRARY_PATH
 
1421
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
1422
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
1423
+  if test "$GCC" = yes; then
 
1424
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
1425
+  else
 
1426
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
1427
+  fi
 
1428
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
1429
+  ;;
 
1430
+
 
1431
+dgux*)
 
1432
+  version_type=linux
 
1433
+  need_lib_prefix=no
 
1434
+  need_version=no
 
1435
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
1436
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1437
+  shlibpath_var=LD_LIBRARY_PATH
 
1438
+  ;;
 
1439
+
 
1440
+freebsd1*)
 
1441
+  dynamic_linker=no
 
1442
+  ;;
 
1443
+
 
1444
+freebsd* | dragonfly*)
 
1445
+  # DragonFly does not have aout.  When/if they implement a new
 
1446
+  # versioning mechanism, adjust this.
 
1447
+  if test -x /usr/bin/objformat; then
 
1448
+    objformat=`/usr/bin/objformat`
 
1449
+  else
 
1450
+    case $host_os in
 
1451
+    freebsd[[123]]*) objformat=aout ;;
 
1452
+    *) objformat=elf ;;
 
1453
+    esac
 
1454
+  fi
 
1455
+  version_type=freebsd-$objformat
 
1456
+  case $version_type in
 
1457
+    freebsd-elf*)
 
1458
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1459
+      need_version=no
 
1460
+      need_lib_prefix=no
 
1461
+      ;;
 
1462
+    freebsd-*)
 
1463
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
1464
+      need_version=yes
 
1465
+      ;;
 
1466
+  esac
 
1467
+  shlibpath_var=LD_LIBRARY_PATH
 
1468
+  case $host_os in
 
1469
+  freebsd2*)
 
1470
+    shlibpath_overrides_runpath=yes
 
1471
+    ;;
 
1472
+  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
1473
+    shlibpath_overrides_runpath=yes
 
1474
+    hardcode_into_libs=yes
 
1475
+    ;;
 
1476
+  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1477
+  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
1478
+    shlibpath_overrides_runpath=no
 
1479
+    hardcode_into_libs=yes
 
1480
+    ;;
 
1481
+  freebsd*) # from 4.6 on
 
1482
+    shlibpath_overrides_runpath=yes
 
1483
+    hardcode_into_libs=yes
 
1484
+    ;;
 
1485
+  esac
 
1486
+  ;;
 
1487
+
 
1488
+gnu*)
 
1489
+  version_type=linux
 
1490
+  need_lib_prefix=no
 
1491
+  need_version=no
 
1492
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
1493
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1494
+  shlibpath_var=LD_LIBRARY_PATH
 
1495
+  hardcode_into_libs=yes
 
1496
+  ;;
 
1497
+
 
1498
+hpux9* | hpux10* | hpux11*)
 
1499
+  # Give a soname corresponding to the major version so that dld.sl refuses to
 
1500
+  # link against other versions.
 
1501
+  version_type=sunos
 
1502
+  need_lib_prefix=no
 
1503
+  need_version=no
 
1504
+  case $host_cpu in
 
1505
+  ia64*)
 
1506
+    shrext_cmds='.so'
 
1507
+    hardcode_into_libs=yes
 
1508
+    dynamic_linker="$host_os dld.so"
 
1509
+    shlibpath_var=LD_LIBRARY_PATH
 
1510
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
1511
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1512
+    soname_spec='${libname}${release}${shared_ext}$major'
 
1513
+    if test "X$HPUX_IA64_MODE" = X32; then
 
1514
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
1515
+    else
 
1516
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
1517
+    fi
 
1518
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
1519
+    ;;
 
1520
+   hppa*64*)
 
1521
+     shrext_cmds='.sl'
 
1522
+     hardcode_into_libs=yes
 
1523
+     dynamic_linker="$host_os dld.sl"
 
1524
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
1525
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
1526
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1527
+     soname_spec='${libname}${release}${shared_ext}$major'
 
1528
+     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
1529
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
1530
+     ;;
 
1531
+   *)
 
1532
+    shrext_cmds='.sl'
 
1533
+    dynamic_linker="$host_os dld.sl"
 
1534
+    shlibpath_var=SHLIB_PATH
 
1535
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
1536
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1537
+    soname_spec='${libname}${release}${shared_ext}$major'
 
1538
+    ;;
 
1539
+  esac
 
1540
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
1541
+  postinstall_cmds='chmod 555 $lib'
 
1542
+  ;;
 
1543
+
 
1544
+interix3*)
 
1545
+  version_type=linux
 
1546
+  need_lib_prefix=no
 
1547
+  need_version=no
 
1548
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1549
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1550
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1551
+  shlibpath_var=LD_LIBRARY_PATH
 
1552
+  shlibpath_overrides_runpath=no
 
1553
+  hardcode_into_libs=yes
 
1554
+  ;;
 
1555
+
 
1556
+irix5* | irix6* | nonstopux*)
 
1557
+  case $host_os in
 
1558
+    nonstopux*) version_type=nonstopux ;;
 
1559
+    *)
 
1560
+       if test "$lt_cv_prog_gnu_ld" = yes; then
 
1561
+               version_type=linux
 
1562
+       else
 
1563
+               version_type=irix
 
1564
+       fi ;;
 
1565
+  esac
 
1566
+  need_lib_prefix=no
 
1567
+  need_version=no
 
1568
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1569
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1570
+  case $host_os in
 
1571
+  irix5* | nonstopux*)
 
1572
+    libsuff= shlibsuff=
 
1573
+    ;;
 
1574
+  *)
 
1575
+    case $LD in # libtool.m4 will add one of these switches to LD
 
1576
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
1577
+      libsuff= shlibsuff= libmagic=32-bit;;
 
1578
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
1579
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
1580
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
1581
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
1582
+    *) libsuff= shlibsuff= libmagic=never-match;;
 
1583
+    esac
 
1584
+    ;;
 
1585
+  esac
 
1586
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
1587
+  shlibpath_overrides_runpath=no
 
1588
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
1589
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
1590
+  hardcode_into_libs=yes
 
1591
+  ;;
 
1592
+
 
1593
+# No shared lib support for Linux oldld, aout, or coff.
 
1594
+linux*oldld* | linux*aout* | linux*coff*)
 
1595
+  dynamic_linker=no
 
1596
+  ;;
 
1597
+
 
1598
+# This must be Linux ELF.
 
1599
+linux* | k*bsd*-gnu)
 
1600
+  version_type=linux
 
1601
+  need_lib_prefix=no
 
1602
+  need_version=no
 
1603
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1604
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1605
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
1606
+  shlibpath_var=LD_LIBRARY_PATH
 
1607
+  shlibpath_overrides_runpath=no
 
1608
+  # This implies no fast_install, which is unacceptable.
 
1609
+  # Some rework will be needed to allow for fast_install
 
1610
+  # before this can be enabled.
 
1611
+  hardcode_into_libs=yes
 
1612
+
 
1613
+  # Append ld.so.conf contents to the search path
 
1614
+  if test -f /etc/ld.so.conf; then
 
1615
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,   ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1616
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1617
+  fi
 
1618
+
 
1619
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
1620
+  # powerpc, because MkLinux only supported shared libraries with the
 
1621
+  # GNU dynamic linker.  Since this was broken with cross compilers,
 
1622
+  # most powerpc-linux boxes support dynamic linking these days and
 
1623
+  # people can always --disable-shared, the test was removed, and we
 
1624
+  # assume the GNU/Linux dynamic linker is in use.
 
1625
+  dynamic_linker='GNU/Linux ld.so'
 
1626
+  ;;
 
1627
+
 
1628
+netbsdelf*-gnu)
 
1629
+  version_type=linux
 
1630
+  need_lib_prefix=no
 
1631
+  need_version=no
 
1632
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1633
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1634
+  shlibpath_var=LD_LIBRARY_PATH
 
1635
+  shlibpath_overrides_runpath=no
 
1636
+  hardcode_into_libs=yes
 
1637
+  dynamic_linker='NetBSD ld.elf_so'
 
1638
+  ;;
 
1639
+
 
1640
+netbsd*)
 
1641
+  version_type=sunos
 
1642
+  need_lib_prefix=no
 
1643
+  need_version=no
 
1644
+  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
1645
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1646
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
1647
+    dynamic_linker='NetBSD (a.out) ld.so'
 
1648
+  else
 
1649
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1650
+    soname_spec='${libname}${release}${shared_ext}$major'
 
1651
+    dynamic_linker='NetBSD ld.elf_so'
 
1652
+  fi
 
1653
+  shlibpath_var=LD_LIBRARY_PATH
 
1654
+  shlibpath_overrides_runpath=yes
 
1655
+  hardcode_into_libs=yes
 
1656
+  ;;
 
1657
+
 
1658
+newsos6)
 
1659
+  version_type=linux
 
1660
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1661
+  shlibpath_var=LD_LIBRARY_PATH
 
1662
+  shlibpath_overrides_runpath=yes
 
1663
+  ;;
 
1664
+
 
1665
+nto-qnx*)
 
1666
+  version_type=linux
 
1667
+  need_lib_prefix=no
 
1668
+  need_version=no
 
1669
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1670
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1671
+  shlibpath_var=LD_LIBRARY_PATH
 
1672
+  shlibpath_overrides_runpath=yes
 
1673
+  ;;
 
1674
+
 
1675
+openbsd*)
 
1676
+  version_type=sunos
 
1677
+  sys_lib_dlsearch_path_spec="/usr/lib"
 
1678
+  need_lib_prefix=no
 
1679
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1680
+  case $host_os in
 
1681
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1682
+    *)                         need_version=no  ;;
 
1683
+  esac
 
1684
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1685
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
1686
+  shlibpath_var=LD_LIBRARY_PATH
 
1687
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
1688
+    case $host_os in
 
1689
+      openbsd2.[[89]] | openbsd2.[[89]].*)
 
1690
+       shlibpath_overrides_runpath=no
 
1691
+       ;;
 
1692
+      *)
 
1693
+       shlibpath_overrides_runpath=yes
 
1694
+       ;;
 
1695
+      esac
 
1696
+  else
 
1697
+    shlibpath_overrides_runpath=yes
 
1698
+  fi
 
1699
+  ;;
 
1700
+
 
1701
+os2*)
 
1702
+  libname_spec='$name'
 
1703
+  shrext_cmds=".dll"
 
1704
+  need_lib_prefix=no
 
1705
+  library_names_spec='$libname${shared_ext} $libname.a'
 
1706
+  dynamic_linker='OS/2 ld.exe'
 
1707
+  shlibpath_var=LIBPATH
 
1708
+  ;;
 
1709
+
 
1710
+osf3* | osf4* | osf5*)
 
1711
+  version_type=osf
 
1712
+  need_lib_prefix=no
 
1713
+  need_version=no
 
1714
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1715
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1716
+  shlibpath_var=LD_LIBRARY_PATH
 
1717
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
1718
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
1719
+  ;;
 
1720
+
 
1721
+solaris*)
 
1722
+  version_type=linux
 
1723
+  need_lib_prefix=no
 
1724
+  need_version=no
 
1725
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1726
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1727
+  shlibpath_var=LD_LIBRARY_PATH
 
1728
+  shlibpath_overrides_runpath=yes
 
1729
+  hardcode_into_libs=yes
 
1730
+  # ldd complains unless libraries are executable
 
1731
+  postinstall_cmds='chmod +x $lib'
 
1732
+  ;;
 
1733
+
 
1734
+sunos4*)
 
1735
+  version_type=sunos
 
1736
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
1737
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
1738
+  shlibpath_var=LD_LIBRARY_PATH
 
1739
+  shlibpath_overrides_runpath=yes
 
1740
+  if test "$with_gnu_ld" = yes; then
 
1741
+    need_lib_prefix=no
 
1742
+  fi
 
1743
+  need_version=yes
 
1744
+  ;;
 
1745
+
 
1746
+sysv4 | sysv4.3*)
 
1747
+  version_type=linux
 
1748
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1749
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1750
+  shlibpath_var=LD_LIBRARY_PATH
 
1751
+  case $host_vendor in
 
1752
+    sni)
 
1753
+      shlibpath_overrides_runpath=no
 
1754
+      need_lib_prefix=no
 
1755
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
1756
+      runpath_var=LD_RUN_PATH
 
1757
+      ;;
 
1758
+    siemens)
 
1759
+      need_lib_prefix=no
 
1760
+      ;;
 
1761
+    motorola)
 
1762
+      need_lib_prefix=no
 
1763
+      need_version=no
 
1764
+      shlibpath_overrides_runpath=no
 
1765
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
1766
+      ;;
 
1767
+  esac
 
1768
+  ;;
 
1769
+
 
1770
+sysv4*MP*)
 
1771
+  if test -d /usr/nec ;then
 
1772
+    version_type=linux
 
1773
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
1774
+    soname_spec='$libname${shared_ext}.$major'
 
1775
+    shlibpath_var=LD_LIBRARY_PATH
 
1776
+  fi
 
1777
+  ;;
 
1778
+
 
1779
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1780
+  version_type=freebsd-elf
 
1781
+  need_lib_prefix=no
 
1782
+  need_version=no
 
1783
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1784
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1785
+  shlibpath_var=LD_LIBRARY_PATH
 
1786
+  hardcode_into_libs=yes
 
1787
+  if test "$with_gnu_ld" = yes; then
 
1788
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1789
+    shlibpath_overrides_runpath=no
 
1790
+  else
 
1791
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1792
+    shlibpath_overrides_runpath=yes
 
1793
+    case $host_os in
 
1794
+      sco3.2v5*)
 
1795
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1796
+       ;;
 
1797
+    esac
 
1798
+  fi
 
1799
+  sys_lib_dlsearch_path_spec='/usr/lib'
 
1800
+  ;;
 
1801
+
 
1802
+uts4*)
 
1803
+  version_type=linux
 
1804
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
1805
+  soname_spec='${libname}${release}${shared_ext}$major'
 
1806
+  shlibpath_var=LD_LIBRARY_PATH
 
1807
+  ;;
 
1808
+
 
1809
+*)
 
1810
+  dynamic_linker=no
 
1811
+  ;;
 
1812
+esac
 
1813
+AC_MSG_RESULT([$dynamic_linker])
 
1814
+test "$dynamic_linker" = no && can_build_shared=no
 
1815
+
 
1816
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1817
+if test "$GCC" = yes; then
 
1818
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1819
+fi
 
1820
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1821
+
 
1822
+
 
1823
+# _LT_AC_TAGCONFIG
 
1824
+# ----------------
 
1825
+AC_DEFUN([_LT_AC_TAGCONFIG],
 
1826
+[AC_ARG_WITH([tags],
 
1827
+    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
1828
+        [include additional configurations @<:@automatic@:>@])],
 
1829
+    [tagnames="$withval"])
 
1830
+
 
1831
+if test -f "$ltmain" && test -n "$tagnames"; then
 
1832
+  if test ! -f "${ofile}"; then
 
1833
+    AC_MSG_WARN([output file `$ofile' does not exist])
 
1834
+  fi
 
1835
+
 
1836
+  if test -z "$LTCC"; then
 
1837
+    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
1838
+    if test -z "$LTCC"; then
 
1839
+      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
1840
+    else
 
1841
+      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
1842
+    fi
 
1843
+  fi
 
1844
+  if test -z "$LTCFLAGS"; then
 
1845
+    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1846
+  fi
 
1847
+
 
1848
+  # Extract list of available tagged configurations in $ofile.
 
1849
+  # Note that this assumes the entire list is on one line.
 
1850
+  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
1851
+
 
1852
+  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1853
+  for tagname in $tagnames; do
 
1854
+    IFS="$lt_save_ifs"
 
1855
+    # Check whether tagname contains only valid characters
 
1856
+    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
1857
+    "") ;;
 
1858
+    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
1859
+       ;;
 
1860
+    esac
 
1861
+
 
1862
+    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
1863
+    then
 
1864
+      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
1865
+    fi
 
1866
+
 
1867
+    # Update the list of available tags.
 
1868
+    if test -n "$tagname"; then
 
1869
+      echo appending configuration tag \"$tagname\" to $ofile
 
1870
+
 
1871
+      case $tagname in
 
1872
+      CXX)
 
1873
+       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1874
+           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1875
+           (test "X$CXX" != "Xg++"))) ; then
 
1876
+         AC_LIBTOOL_LANG_CXX_CONFIG
 
1877
+       else
 
1878
+         tagname=""
 
1879
+       fi
 
1880
+       ;;
 
1881
+
 
1882
+      F77)
 
1883
+       if test -n "$F77" && test "X$F77" != "Xno"; then
 
1884
+         AC_LIBTOOL_LANG_F77_CONFIG
 
1885
+       else
 
1886
+         tagname=""
 
1887
+       fi
 
1888
+       ;;
 
1889
+
 
1890
+      GCJ)
 
1891
+       if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
1892
+         AC_LIBTOOL_LANG_GCJ_CONFIG
 
1893
+       else
 
1894
+         tagname=""
 
1895
+       fi
 
1896
+       ;;
 
1897
+
 
1898
+      RC)
 
1899
+       AC_LIBTOOL_LANG_RC_CONFIG
 
1900
+       ;;
 
1901
+
 
1902
+      *)
 
1903
+       AC_MSG_ERROR([Unsupported tag name: $tagname])
 
1904
+       ;;
 
1905
+      esac
 
1906
+
 
1907
+      # Append the new tag name to the list of available tags.
 
1908
+      if test -n "$tagname" ; then
 
1909
+      available_tags="$available_tags $tagname"
 
1910
+    fi
 
1911
+    fi
 
1912
+  done
 
1913
+  IFS="$lt_save_ifs"
 
1914
+
 
1915
+  # Now substitute the updated list of available tags.
 
1916
+  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
1917
+    mv "${ofile}T" "$ofile"
 
1918
+    chmod +x "$ofile"
 
1919
+  else
 
1920
+    rm -f "${ofile}T"
 
1921
+    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
1922
+  fi
 
1923
+fi
 
1924
+])# _LT_AC_TAGCONFIG
 
1925
+
 
1926
+
 
1927
+# AC_LIBTOOL_DLOPEN
 
1928
+# -----------------
 
1929
+# enable checks for dlopen support
 
1930
+AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
1931
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
1932
+])# AC_LIBTOOL_DLOPEN
 
1933
+
 
1934
+
 
1935
+# AC_LIBTOOL_WIN32_DLL
 
1936
+# --------------------
 
1937
+# declare package support for building win32 DLLs
 
1938
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
1939
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
1940
+])# AC_LIBTOOL_WIN32_DLL
 
1941
+
 
1942
+
 
1943
+# AC_ENABLE_SHARED([DEFAULT])
 
1944
+# ---------------------------
 
1945
+# implement the --enable-shared flag
 
1946
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1947
+AC_DEFUN([AC_ENABLE_SHARED],
 
1948
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
1949
+AC_ARG_ENABLE([shared],
 
1950
+    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
1951
+       [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
1952
+    [p=${PACKAGE-default}
 
1953
+    case $enableval in
 
1954
+    yes) enable_shared=yes ;;
 
1955
+    no) enable_shared=no ;;
 
1956
+    *)
 
1957
+      enable_shared=no
 
1958
+      # Look at the argument we got.  We use all the common list separators.
 
1959
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1960
+      for pkg in $enableval; do
 
1961
+       IFS="$lt_save_ifs"
 
1962
+       if test "X$pkg" = "X$p"; then
 
1963
+         enable_shared=yes
 
1964
+       fi
 
1965
+      done
 
1966
+      IFS="$lt_save_ifs"
 
1967
+      ;;
 
1968
+    esac],
 
1969
+    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
1970
+])# AC_ENABLE_SHARED
 
1971
+
 
1972
+
 
1973
+# AC_DISABLE_SHARED
 
1974
+# -----------------
 
1975
+# set the default shared flag to --disable-shared
 
1976
+AC_DEFUN([AC_DISABLE_SHARED],
 
1977
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
1978
+AC_ENABLE_SHARED(no)
 
1979
+])# AC_DISABLE_SHARED
 
1980
+
 
1981
+
 
1982
+# AC_ENABLE_STATIC([DEFAULT])
 
1983
+# ---------------------------
 
1984
+# implement the --enable-static flag
 
1985
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1986
+AC_DEFUN([AC_ENABLE_STATIC],
 
1987
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
1988
+AC_ARG_ENABLE([static],
 
1989
+    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
1990
+       [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
1991
+    [p=${PACKAGE-default}
 
1992
+    case $enableval in
 
1993
+    yes) enable_static=yes ;;
 
1994
+    no) enable_static=no ;;
 
1995
+    *)
 
1996
+     enable_static=no
 
1997
+      # Look at the argument we got.  We use all the common list separators.
 
1998
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1999
+      for pkg in $enableval; do
 
2000
+       IFS="$lt_save_ifs"
 
2001
+       if test "X$pkg" = "X$p"; then
 
2002
+         enable_static=yes
 
2003
+       fi
 
2004
+      done
 
2005
+      IFS="$lt_save_ifs"
 
2006
+      ;;
 
2007
+    esac],
 
2008
+    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2009
+])# AC_ENABLE_STATIC
 
2010
+
 
2011
+
 
2012
+# AC_DISABLE_STATIC
 
2013
+# -----------------
 
2014
+# set the default static flag to --disable-static
 
2015
+AC_DEFUN([AC_DISABLE_STATIC],
 
2016
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2017
+AC_ENABLE_STATIC(no)
 
2018
+])# AC_DISABLE_STATIC
 
2019
+
 
2020
+
 
2021
+# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2022
+# ---------------------------------
 
2023
+# implement the --enable-fast-install flag
 
2024
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2025
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
2026
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
2027
+AC_ARG_ENABLE([fast-install],
 
2028
+    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2029
+    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2030
+    [p=${PACKAGE-default}
 
2031
+    case $enableval in
 
2032
+    yes) enable_fast_install=yes ;;
 
2033
+    no) enable_fast_install=no ;;
 
2034
+    *)
 
2035
+      enable_fast_install=no
 
2036
+      # Look at the argument we got.  We use all the common list separators.
 
2037
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2038
+      for pkg in $enableval; do
 
2039
+       IFS="$lt_save_ifs"
 
2040
+       if test "X$pkg" = "X$p"; then
 
2041
+         enable_fast_install=yes
 
2042
+       fi
 
2043
+      done
 
2044
+      IFS="$lt_save_ifs"
 
2045
+      ;;
 
2046
+    esac],
 
2047
+    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2048
+])# AC_ENABLE_FAST_INSTALL
 
2049
+
 
2050
+
 
2051
+# AC_DISABLE_FAST_INSTALL
 
2052
+# -----------------------
 
2053
+# set the default to --disable-fast-install
 
2054
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
2055
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2056
+AC_ENABLE_FAST_INSTALL(no)
 
2057
+])# AC_DISABLE_FAST_INSTALL
 
2058
+
 
2059
+
 
2060
+# AC_LIBTOOL_PICMODE([MODE])
 
2061
+# --------------------------
 
2062
+# implement the --with-pic flag
 
2063
+# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
2064
+AC_DEFUN([AC_LIBTOOL_PICMODE],
 
2065
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2066
+pic_mode=ifelse($#,1,$1,default)
 
2067
+])# AC_LIBTOOL_PICMODE
 
2068
+
 
2069
+
 
2070
+# AC_PROG_EGREP
 
2071
+# -------------
 
2072
+# This is predefined starting with Autoconf 2.54, so this conditional
 
2073
+# definition can be removed once we require Autoconf 2.54 or later.
 
2074
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2075
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2076
+   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2077
+    then ac_cv_prog_egrep='grep -E'
 
2078
+    else ac_cv_prog_egrep='egrep'
 
2079
+    fi])
 
2080
+ EGREP=$ac_cv_prog_egrep
 
2081
+ AC_SUBST([EGREP])
 
2082
+])])
 
2083
+
 
2084
+
 
2085
+# AC_PATH_TOOL_PREFIX
 
2086
+# -------------------
 
2087
+# find a file program which can recognise shared library
 
2088
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
2089
+[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2090
+AC_MSG_CHECKING([for $1])
 
2091
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
2092
+[case $MAGIC_CMD in
 
2093
+[[\\/*] |  ?:[\\/]*])
 
2094
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2095
+  ;;
 
2096
+*)
 
2097
+  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
2098
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2099
+dnl $ac_dummy forces splitting on constant user-supplied paths.
 
2100
+dnl POSIX.2 word splitting is done only on the output of word expansions,
 
2101
+dnl not every word.  This closes a longstanding sh security hole.
 
2102
+  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2103
+  for ac_dir in $ac_dummy; do
 
2104
+    IFS="$lt_save_ifs"
 
2105
+    test -z "$ac_dir" && ac_dir=.
 
2106
+    if test -f $ac_dir/$1; then
 
2107
+      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
2108
+      if test -n "$file_magic_test_file"; then
 
2109
+       case $deplibs_check_method in
 
2110
+       "file_magic "*)
 
2111
+         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
2112
+         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2113
+         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2114
+           $EGREP "$file_magic_regex" > /dev/null; then
 
2115
+           :
 
2116
+         else
 
2117
+           cat <<EOF 1>&2
 
2118
+
 
2119
+*** Warning: the command libtool uses to detect shared libraries,
 
2120
+*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2121
+*** The result is that libtool may fail to recognize shared libraries
 
2122
+*** as such.  This will affect the creation of libtool libraries that
 
2123
+*** depend on shared libraries, but programs linked with such libtool
 
2124
+*** libraries will work regardless of this problem.  Nevertheless, you
 
2125
+*** may want to report the problem to your system manager and/or to
 
2126
+*** bug-libtool@gnu.org
 
2127
+
 
2128
+EOF
 
2129
+         fi ;;
 
2130
+       esac
 
2131
+      fi
 
2132
+      break
 
2133
+    fi
 
2134
+  done
 
2135
+  IFS="$lt_save_ifs"
 
2136
+  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
2137
+  ;;
 
2138
+esac])
 
2139
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2140
+if test -n "$MAGIC_CMD"; then
 
2141
+  AC_MSG_RESULT($MAGIC_CMD)
 
2142
+else
 
2143
+  AC_MSG_RESULT(no)
 
2144
+fi
 
2145
+])# AC_PATH_TOOL_PREFIX
 
2146
+
 
2147
+
 
2148
+# AC_PATH_MAGIC
 
2149
+# -------------
 
2150
+# find a file program which can recognise a shared library
 
2151
+AC_DEFUN([AC_PATH_MAGIC],
 
2152
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2153
+if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2154
+  if test -n "$ac_tool_prefix"; then
 
2155
+    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2156
+  else
 
2157
+    MAGIC_CMD=:
 
2158
+  fi
 
2159
+fi
 
2160
+])# AC_PATH_MAGIC
 
2161
+
 
2162
+
 
2163
+# AC_PROG_LD
 
2164
+# ----------
 
2165
+# find the pathname to the GNU or non-GNU linker
 
2166
+AC_DEFUN([AC_PROG_LD],
 
2167
+[AC_ARG_WITH([gnu-ld],
 
2168
+    [AC_HELP_STRING([--with-gnu-ld],
 
2169
+       [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
2170
+    [test "$withval" = no || with_gnu_ld=yes],
 
2171
+    [with_gnu_ld=no])
 
2172
+AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2173
+AC_REQUIRE([AC_PROG_CC])dnl
 
2174
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2175
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2176
+ac_prog=ld
 
2177
+if test "$GCC" = yes; then
 
2178
+  # Check if gcc -print-prog-name=ld gives a path.
 
2179
+  AC_MSG_CHECKING([for ld used by $CC])
 
2180
+  case $host in
 
2181
+  *-*-mingw*)
 
2182
+    # gcc leaves a trailing carriage return which upsets mingw
 
2183
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2184
+  *)
 
2185
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2186
+  esac
 
2187
+  case $ac_prog in
 
2188
+    # Accept absolute paths.
 
2189
+    [[\\/]]* | ?:[[\\/]]*)
 
2190
+      re_direlt='/[[^/]][[^/]]*/\.\./'
 
2191
+      # Canonicalize the pathname of ld
 
2192
+      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2193
+      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2194
+       ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2195
+      done
 
2196
+      test -z "$LD" && LD="$ac_prog"
 
2197
+      ;;
 
2198
+  "")
 
2199
+    # If it fails, then pretend we aren't using GCC.
 
2200
+    ac_prog=ld
 
2201
+    ;;
 
2202
+  *)
 
2203
+    # If it is relative, then search for the first ld in PATH.
 
2204
+    with_gnu_ld=unknown
 
2205
+    ;;
 
2206
+  esac
 
2207
+elif test "$with_gnu_ld" = yes; then
 
2208
+  AC_MSG_CHECKING([for GNU ld])
 
2209
+else
 
2210
+  AC_MSG_CHECKING([for non-GNU ld])
 
2211
+fi
 
2212
+AC_CACHE_VAL(lt_cv_path_LD,
 
2213
+[if test -z "$LD"; then
 
2214
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2215
+  for ac_dir in $PATH; do
 
2216
+    IFS="$lt_save_ifs"
 
2217
+    test -z "$ac_dir" && ac_dir=.
 
2218
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2219
+      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2220
+      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2221
+      # but apparently some variants of GNU ld only accept -v.
 
2222
+      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2223
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2224
+      *GNU* | *'with BFD'*)
 
2225
+       test "$with_gnu_ld" != no && break
 
2226
+       ;;
 
2227
+      *)
 
2228
+       test "$with_gnu_ld" != yes && break
 
2229
+       ;;
 
2230
+      esac
 
2231
+    fi
 
2232
+  done
 
2233
+  IFS="$lt_save_ifs"
 
2234
+else
 
2235
+  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2236
+fi])
 
2237
+LD="$lt_cv_path_LD"
 
2238
+if test -n "$LD"; then
 
2239
+  AC_MSG_RESULT($LD)
 
2240
+else
 
2241
+  AC_MSG_RESULT(no)
 
2242
+fi
 
2243
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
2244
+AC_PROG_LD_GNU
 
2245
+])# AC_PROG_LD
 
2246
+
 
2247
+
 
2248
+# AC_PROG_LD_GNU
 
2249
+# --------------
 
2250
+AC_DEFUN([AC_PROG_LD_GNU],
 
2251
+[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2252
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2253
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
2254
+case `$LD -v 2>&1 </dev/null` in
 
2255
+*GNU* | *'with BFD'*)
 
2256
+  lt_cv_prog_gnu_ld=yes
 
2257
+  ;;
 
2258
+*)
 
2259
+  lt_cv_prog_gnu_ld=no
 
2260
+  ;;
 
2261
+esac])
 
2262
+with_gnu_ld=$lt_cv_prog_gnu_ld
 
2263
+])# AC_PROG_LD_GNU
 
2264
+
 
2265
+
 
2266
+# AC_PROG_LD_RELOAD_FLAG
 
2267
+# ----------------------
 
2268
+# find reload flag for linker
 
2269
+#   -- PORTME Some linkers may need a different reload flag.
 
2270
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2271
+[AC_CACHE_CHECK([for $LD option to reload object files],
 
2272
+  lt_cv_ld_reload_flag,
 
2273
+  [lt_cv_ld_reload_flag='-r'])
 
2274
+reload_flag=$lt_cv_ld_reload_flag
 
2275
+case $reload_flag in
 
2276
+"" | " "*) ;;
 
2277
+*) reload_flag=" $reload_flag" ;;
 
2278
+esac
 
2279
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2280
+case $host_os in
 
2281
+  darwin*)
 
2282
+    if test "$GCC" = yes; then
 
2283
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2284
+    else
 
2285
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2286
+    fi
 
2287
+    ;;
 
2288
+esac
 
2289
+])# AC_PROG_LD_RELOAD_FLAG
 
2290
+
 
2291
+
 
2292
+# AC_DEPLIBS_CHECK_METHOD
 
2293
+# -----------------------
 
2294
+# how to check for library dependencies
 
2295
+#  -- PORTME fill in with the dynamic library characteristics
 
2296
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
2297
+[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2298
+lt_cv_deplibs_check_method,
 
2299
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2300
+lt_cv_file_magic_test_file=
 
2301
+lt_cv_deplibs_check_method='unknown'
 
2302
+# Need to set the preceding variable on all platforms that support
 
2303
+# interlibrary dependencies.
 
2304
+# 'none' -- dependencies not supported.
 
2305
+# `unknown' -- same as none, but documents that we really don't know.
 
2306
+# 'pass_all' -- all dependencies passed with no checks.
 
2307
+# 'test_compile' -- check by making test program.
 
2308
+# 'file_magic [[regex]]' -- check by looking for files in library path
 
2309
+# which responds to the $file_magic_cmd with a given extended regex.
 
2310
+# If you have `file' or equivalent on your system and you're not sure
 
2311
+# whether `pass_all' will *always* work, you probably want this one.
 
2312
+
 
2313
+case $host_os in
 
2314
+aix4* | aix5*)
 
2315
+  lt_cv_deplibs_check_method=pass_all
 
2316
+  ;;
 
2317
+
 
2318
+beos*)
 
2319
+  lt_cv_deplibs_check_method=pass_all
 
2320
+  ;;
 
2321
+
 
2322
+bsdi[[45]]*)
 
2323
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
2324
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2325
+  lt_cv_file_magic_test_file=/shlib/libc.so
 
2326
+  ;;
 
2327
+
 
2328
+cygwin*)
 
2329
+  # func_win32_libid is a shell function defined in ltmain.sh
 
2330
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2331
+  lt_cv_file_magic_cmd='func_win32_libid'
 
2332
+  ;;
 
2333
+
 
2334
+mingw* | pw32*)
 
2335
+  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2336
+  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2337
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2338
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2339
+  ;;
 
2340
+
 
2341
+darwin* | rhapsody*)
 
2342
+  lt_cv_deplibs_check_method=pass_all
 
2343
+  ;;
 
2344
+
 
2345
+freebsd* | dragonfly*)
 
2346
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2347
+    case $host_cpu in
 
2348
+    i*86 )
 
2349
+      # Not sure whether the presence of OpenBSD here was a mistake.
 
2350
+      # Let's accept both of them until this is cleared up.
 
2351
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
2352
+      lt_cv_file_magic_cmd=/usr/bin/file
 
2353
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2354
+      ;;
 
2355
+    esac
 
2356
+  else
 
2357
+    lt_cv_deplibs_check_method=pass_all
 
2358
+  fi
 
2359
+  ;;
 
2360
+
 
2361
+gnu*)
 
2362
+  lt_cv_deplibs_check_method=pass_all
 
2363
+  ;;
 
2364
+
 
2365
+hpux10.20* | hpux11*)
 
2366
+  lt_cv_file_magic_cmd=/usr/bin/file
 
2367
+  case $host_cpu in
 
2368
+  ia64*)
 
2369
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
2370
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
2371
+    ;;
 
2372
+  hppa*64*)
 
2373
+    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
2374
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
2375
+    ;;
 
2376
+  *)
 
2377
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
2378
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
2379
+    ;;
 
2380
+  esac
 
2381
+  ;;
 
2382
+
 
2383
+interix3*)
 
2384
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2385
+  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2386
+  ;;
 
2387
+
 
2388
+irix5* | irix6* | nonstopux*)
 
2389
+  case $LD in
 
2390
+  *-32|*"-32 ") libmagic=32-bit;;
 
2391
+  *-n32|*"-n32 ") libmagic=N32;;
 
2392
+  *-64|*"-64 ") libmagic=64-bit;;
 
2393
+  *) libmagic=never-match;;
 
2394
+  esac
 
2395
+  lt_cv_deplibs_check_method=pass_all
 
2396
+  ;;
 
2397
+
 
2398
+# This must be Linux ELF.
 
2399
+linux* | k*bsd*-gnu)
 
2400
+  lt_cv_deplibs_check_method=pass_all
 
2401
+  ;;
 
2402
+
 
2403
+netbsd* | netbsdelf*-gnu)
 
2404
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2405
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
2406
+  else
 
2407
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
2408
+  fi
 
2409
+  ;;
 
2410
+
 
2411
+newos6*)
 
2412
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
2413
+  lt_cv_file_magic_cmd=/usr/bin/file
 
2414
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
2415
+  ;;
 
2416
+
 
2417
+nto-qnx*)
 
2418
+  lt_cv_deplibs_check_method=unknown
 
2419
+  ;;
 
2420
+
 
2421
+openbsd*)
 
2422
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2423
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
2424
+  else
 
2425
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
2426
+  fi
 
2427
+  ;;
 
2428
+
 
2429
+osf3* | osf4* | osf5*)
 
2430
+  lt_cv_deplibs_check_method=pass_all
 
2431
+  ;;
 
2432
+
 
2433
+solaris*)
 
2434
+  lt_cv_deplibs_check_method=pass_all
 
2435
+  ;;
 
2436
+
 
2437
+sysv4 | sysv4.3*)
 
2438
+  case $host_vendor in
 
2439
+  motorola)
 
2440
+    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]]'
 
2441
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
2442
+    ;;
 
2443
+  ncr)
 
2444
+    lt_cv_deplibs_check_method=pass_all
 
2445
+    ;;
 
2446
+  sequent)
 
2447
+    lt_cv_file_magic_cmd='/bin/file'
 
2448
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
2449
+    ;;
 
2450
+  sni)
 
2451
+    lt_cv_file_magic_cmd='/bin/file'
 
2452
+    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
2453
+    lt_cv_file_magic_test_file=/lib/libc.so
 
2454
+    ;;
 
2455
+  siemens)
 
2456
+    lt_cv_deplibs_check_method=pass_all
 
2457
+    ;;
 
2458
+  pc)
 
2459
+    lt_cv_deplibs_check_method=pass_all
 
2460
+    ;;
 
2461
+  esac
 
2462
+  ;;
 
2463
+
 
2464
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
2465
+  lt_cv_deplibs_check_method=pass_all
 
2466
+  ;;
 
2467
+esac
 
2468
+])
 
2469
+file_magic_cmd=$lt_cv_file_magic_cmd
 
2470
+deplibs_check_method=$lt_cv_deplibs_check_method
 
2471
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
2472
+])# AC_DEPLIBS_CHECK_METHOD
 
2473
+
 
2474
+
 
2475
+# AC_PROG_NM
 
2476
+# ----------
 
2477
+# find the pathname to a BSD-compatible name lister
 
2478
+AC_DEFUN([AC_PROG_NM],
 
2479
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
2480
+[if test -n "$NM"; then
 
2481
+  # Let the user override the test.
 
2482
+  lt_cv_path_NM="$NM"
 
2483
+else
 
2484
+  lt_nm_to_check="${ac_tool_prefix}nm"
 
2485
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2486
+    lt_nm_to_check="$lt_nm_to_check nm"
 
2487
+  fi
 
2488
+  for lt_tmp_nm in $lt_nm_to_check; do
 
2489
+    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2490
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2491
+      IFS="$lt_save_ifs"
 
2492
+      test -z "$ac_dir" && ac_dir=.
 
2493
+      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2494
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2495
+       # Check to see if the nm accepts a BSD-compat flag.
 
2496
+       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2497
+       #   nm: unknown option "B" ignored
 
2498
+       # Tru64's nm complains that /dev/null is an invalid object file
 
2499
+       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2500
+       */dev/null* | *'Invalid file or object type'*)
 
2501
+         lt_cv_path_NM="$tmp_nm -B"
 
2502
+         break
 
2503
+         ;;
 
2504
+       *)
 
2505
+         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2506
+         */dev/null*)
 
2507
+           lt_cv_path_NM="$tmp_nm -p"
 
2508
+           break
 
2509
+           ;;
 
2510
+         *)
 
2511
+           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2512
+           continue # so that we can try to find one that supports BSD flags
 
2513
+           ;;
 
2514
+         esac
 
2515
+         ;;
 
2516
+       esac
 
2517
+      fi
 
2518
+    done
 
2519
+    IFS="$lt_save_ifs"
 
2520
+  done
 
2521
+  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2522
+fi])
 
2523
+NM="$lt_cv_path_NM"
 
2524
+])# AC_PROG_NM
 
2525
+
 
2526
+
 
2527
+# AC_CHECK_LIBM
 
2528
+# -------------
 
2529
+# check for math library
 
2530
+AC_DEFUN([AC_CHECK_LIBM],
 
2531
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2532
+LIBM=
 
2533
+case $host in
 
2534
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
2535
+  # These system don't have libm, or don't need it
 
2536
+  ;;
 
2537
+*-ncr-sysv4.3*)
 
2538
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
2539
+  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
2540
+  ;;
 
2541
+*)
 
2542
+  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
2543
+  ;;
 
2544
+esac
 
2545
+])# AC_CHECK_LIBM
 
2546
+
 
2547
+
 
2548
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
2549
+# -----------------------------------
 
2550
+# sets LIBLTDL to the link flags for the libltdl convenience library and
 
2551
+# LTDLINCL to the include flags for the libltdl header and adds
 
2552
+# --enable-ltdl-convenience to the configure arguments.  Note that
 
2553
+# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2554
+# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2555
+# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2556
+# (note the single quotes!).  If your package is not flat and you're not
 
2557
+# using automake, define top_builddir and top_srcdir appropriately in
 
2558
+# the Makefiles.
 
2559
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
2560
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2561
+  case $enable_ltdl_convenience in
 
2562
+  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
2563
+  "") enable_ltdl_convenience=yes
 
2564
+      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
2565
+  esac
 
2566
+  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
2567
+  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
2568
+  # For backwards non-gettext consistent compatibility...
 
2569
+  INCLTDL="$LTDLINCL"
 
2570
+])# AC_LIBLTDL_CONVENIENCE
 
2571
+
 
2572
+
 
2573
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
2574
+# -----------------------------------
 
2575
+# sets LIBLTDL to the link flags for the libltdl installable library and
 
2576
+# LTDLINCL to the include flags for the libltdl header and adds
 
2577
+# --enable-ltdl-install to the configure arguments.  Note that
 
2578
+# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2579
+# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2580
+# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2581
+# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2582
+# flat and you're not using automake, define top_builddir and top_srcdir
 
2583
+# appropriately in the Makefiles.
 
2584
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
2585
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
2586
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2587
+  AC_CHECK_LIB(ltdl, lt_dlinit,
 
2588
+  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
2589
+  [if test x"$enable_ltdl_install" = xno; then
 
2590
+     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
2591
+   else
 
2592
+     enable_ltdl_install=yes
 
2593
+   fi
 
2594
+  ])
 
2595
+  if test x"$enable_ltdl_install" = x"yes"; then
 
2596
+    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
2597
+    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
2598
+    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
2599
+  else
 
2600
+    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
2601
+    LIBLTDL="-lltdl"
 
2602
+    LTDLINCL=
 
2603
+  fi
 
2604
+  # For backwards non-gettext consistent compatibility...
 
2605
+  INCLTDL="$LTDLINCL"
 
2606
+])# AC_LIBLTDL_INSTALLABLE
 
2607
+
 
2608
+
 
2609
+# AC_LIBTOOL_CXX
 
2610
+# --------------
 
2611
+# enable support for C++ libraries
 
2612
+AC_DEFUN([AC_LIBTOOL_CXX],
 
2613
+[AC_REQUIRE([_LT_AC_LANG_CXX])
 
2614
+])# AC_LIBTOOL_CXX
 
2615
+
 
2616
+
 
2617
+# _LT_AC_LANG_CXX
 
2618
+# ---------------
 
2619
+AC_DEFUN([_LT_AC_LANG_CXX],
 
2620
+[AC_REQUIRE([AC_PROG_CXX])
 
2621
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2622
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
2623
+])# _LT_AC_LANG_CXX
 
2624
+
 
2625
+# _LT_AC_PROG_CXXCPP
 
2626
+# ------------------
 
2627
+AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2628
+[
 
2629
+AC_REQUIRE([AC_PROG_CXX])
 
2630
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2631
+    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2632
+    (test "X$CXX" != "Xg++"))) ; then
 
2633
+  AC_PROG_CXXCPP
 
2634
+fi
 
2635
+])# _LT_AC_PROG_CXXCPP
 
2636
+
 
2637
+# AC_LIBTOOL_F77
 
2638
+# --------------
 
2639
+# enable support for Fortran 77 libraries
 
2640
+AC_DEFUN([AC_LIBTOOL_F77],
 
2641
+[AC_REQUIRE([_LT_AC_LANG_F77])
 
2642
+])# AC_LIBTOOL_F77
 
2643
+
 
2644
+
 
2645
+# _LT_AC_LANG_F77
 
2646
+# ---------------
 
2647
+AC_DEFUN([_LT_AC_LANG_F77],
 
2648
+[AC_REQUIRE([AC_PROG_F77])
 
2649
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
2650
+])# _LT_AC_LANG_F77
 
2651
+
 
2652
+
 
2653
+# AC_LIBTOOL_GCJ
 
2654
+# --------------
 
2655
+# enable support for GCJ libraries
 
2656
+AC_DEFUN([AC_LIBTOOL_GCJ],
 
2657
+[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
2658
+])# AC_LIBTOOL_GCJ
 
2659
+
 
2660
+
 
2661
+# _LT_AC_LANG_GCJ
 
2662
+# ---------------
 
2663
+AC_DEFUN([_LT_AC_LANG_GCJ],
 
2664
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
2665
+  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
2666
+    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
2667
+      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
2668
+        [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
2669
+          [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
2670
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
2671
+])# _LT_AC_LANG_GCJ
 
2672
+
 
2673
+
 
2674
+# AC_LIBTOOL_RC
 
2675
+# -------------
 
2676
+# enable support for Windows resource files
 
2677
+AC_DEFUN([AC_LIBTOOL_RC],
 
2678
+[AC_REQUIRE([LT_AC_PROG_RC])
 
2679
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
2680
+])# AC_LIBTOOL_RC
 
2681
+
 
2682
+
 
2683
+# AC_LIBTOOL_LANG_C_CONFIG
 
2684
+# ------------------------
 
2685
+# Ensure that the configuration vars for the C compiler are
 
2686
+# suitably defined.  Those variables are subsequently used by
 
2687
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2688
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
2689
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
2690
+[lt_save_CC="$CC"
 
2691
+AC_LANG_PUSH(C)
 
2692
+
 
2693
+# Source file extension for C test sources.
 
2694
+ac_ext=c
 
2695
+
 
2696
+# Object file extension for compiled C test sources.
 
2697
+objext=o
 
2698
+_LT_AC_TAGVAR(objext, $1)=$objext
 
2699
+
 
2700
+# Code to be used in simple compile tests
 
2701
+lt_simple_compile_test_code="int some_variable = 0;\n"
 
2702
+
 
2703
+# Code to be used in simple link tests
 
2704
+lt_simple_link_test_code='int main(){return(0);}\n'
 
2705
+
 
2706
+_LT_AC_SYS_COMPILER
 
2707
+
 
2708
+# save warnings/boilerplate of simple test code
 
2709
+_LT_COMPILER_BOILERPLATE
 
2710
+_LT_LINKER_BOILERPLATE
 
2711
+
 
2712
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
2713
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
2714
+AC_LIBTOOL_PROG_CC_C_O($1)
 
2715
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
2716
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
2717
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
2718
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
2719
+AC_LIBTOOL_SYS_LIB_STRIP
 
2720
+AC_LIBTOOL_DLOPEN_SELF
 
2721
+
 
2722
+# Report which library types will actually be built
 
2723
+AC_MSG_CHECKING([if libtool supports shared libraries])
 
2724
+AC_MSG_RESULT([$can_build_shared])
 
2725
+
 
2726
+AC_MSG_CHECKING([whether to build shared libraries])
 
2727
+test "$can_build_shared" = "no" && enable_shared=no
 
2728
+
 
2729
+# On AIX, shared libraries and static libraries use the same namespace, and
 
2730
+# are all built from PIC.
 
2731
+case $host_os in
 
2732
+aix3*)
 
2733
+  test "$enable_shared" = yes && enable_static=no
 
2734
+  if test -n "$RANLIB"; then
 
2735
+    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
2736
+    postinstall_cmds='$RANLIB $lib'
 
2737
+  fi
 
2738
+  ;;
 
2739
+
 
2740
+aix4* | aix5*)
 
2741
+  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
2742
+    test "$enable_shared" = yes && enable_static=no
 
2743
+  fi
 
2744
+    ;;
 
2745
+esac
 
2746
+AC_MSG_RESULT([$enable_shared])
 
2747
+
 
2748
+AC_MSG_CHECKING([whether to build static libraries])
 
2749
+# Make sure either enable_shared or enable_static is yes.
 
2750
+test "$enable_shared" = yes || enable_static=yes
 
2751
+AC_MSG_RESULT([$enable_static])
 
2752
+
 
2753
+AC_LIBTOOL_CONFIG($1)
 
2754
+
 
2755
+AC_LANG_POP
 
2756
+CC="$lt_save_CC"
 
2757
+])# AC_LIBTOOL_LANG_C_CONFIG
 
2758
+
 
2759
+
 
2760
+# AC_LIBTOOL_LANG_CXX_CONFIG
 
2761
+# --------------------------
 
2762
+# Ensure that the configuration vars for the C compiler are
 
2763
+# suitably defined.  Those variables are subsequently used by
 
2764
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2765
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
2766
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
2767
+[AC_LANG_PUSH(C++)
 
2768
+AC_REQUIRE([AC_PROG_CXX])
 
2769
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
2770
+
 
2771
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2772
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
2773
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
2774
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
2775
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
2776
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2777
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
2778
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
2779
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
2780
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2781
+_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2782
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
2783
+_LT_AC_TAGVAR(module_cmds, $1)=
 
2784
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
2785
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
2786
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
2787
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
2788
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
2789
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
2790
+
 
2791
+# Dependencies to place before and after the object being linked:
 
2792
+_LT_AC_TAGVAR(predep_objects, $1)=
 
2793
+_LT_AC_TAGVAR(postdep_objects, $1)=
 
2794
+_LT_AC_TAGVAR(predeps, $1)=
 
2795
+_LT_AC_TAGVAR(postdeps, $1)=
 
2796
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2797
+
 
2798
+# Source file extension for C++ test sources.
 
2799
+ac_ext=cpp
 
2800
+
 
2801
+# Object file extension for compiled C++ test sources.
 
2802
+objext=o
 
2803
+_LT_AC_TAGVAR(objext, $1)=$objext
 
2804
+
 
2805
+# Code to be used in simple compile tests
 
2806
+lt_simple_compile_test_code="int some_variable = 0;\n"
 
2807
+
 
2808
+# Code to be used in simple link tests
 
2809
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2810
+
 
2811
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
2812
+_LT_AC_SYS_COMPILER
 
2813
+
 
2814
+# save warnings/boilerplate of simple test code
 
2815
+_LT_COMPILER_BOILERPLATE
 
2816
+_LT_LINKER_BOILERPLATE
 
2817
+
 
2818
+# Allow CC to be a program name with arguments.
 
2819
+lt_save_CC=$CC
 
2820
+lt_save_LD=$LD
 
2821
+lt_save_GCC=$GCC
 
2822
+GCC=$GXX
 
2823
+lt_save_with_gnu_ld=$with_gnu_ld
 
2824
+lt_save_path_LD=$lt_cv_path_LD
 
2825
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
2826
+  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
2827
+else
 
2828
+  $as_unset lt_cv_prog_gnu_ld
 
2829
+fi
 
2830
+if test -n "${lt_cv_path_LDCXX+set}"; then
 
2831
+  lt_cv_path_LD=$lt_cv_path_LDCXX
 
2832
+else
 
2833
+  $as_unset lt_cv_path_LD
 
2834
+fi
 
2835
+test -z "${LDCXX+set}" || LD=$LDCXX
 
2836
+CC=${CXX-"c++"}
 
2837
+compiler=$CC
 
2838
+_LT_AC_TAGVAR(compiler, $1)=$CC
 
2839
+_LT_CC_BASENAME([$compiler])
 
2840
+
 
2841
+# We don't want -fno-exception wen compiling C++ code, so set the
 
2842
+# no_builtin_flag separately
 
2843
+if test "$GXX" = yes; then
 
2844
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
2845
+else
 
2846
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
2847
+fi
 
2848
+
 
2849
+if test "$GXX" = yes; then
 
2850
+  # Set up default GNU C++ configuration
 
2851
+
 
2852
+  AC_PROG_LD
 
2853
+
 
2854
+  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
2855
+  # archiving commands below assume that GNU ld is being used.
 
2856
+  if test "$with_gnu_ld" = yes; then
 
2857
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2858
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
2859
+
 
2860
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
2861
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
2862
+
 
2863
+    # If archive_cmds runs LD, not CC, wlarc should be empty
 
2864
+    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
2865
+    #     investigate it a little bit more. (MM)
 
2866
+    wlarc='${wl}'
 
2867
+
 
2868
+    # ancient GNU ld didn't support --whole-archive et. al.
 
2869
+    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
2870
+       grep 'no-whole-archive' > /dev/null; then
 
2871
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
2872
+    else
 
2873
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
2874
+    fi
 
2875
+  else
 
2876
+    with_gnu_ld=no
 
2877
+    wlarc=
 
2878
+
 
2879
+    # A generic and very simple default shared library creation
 
2880
+    # command for GNU C++ for the case where it uses the native
 
2881
+    # linker, instead of GNU ld.  If possible, this setting should
 
2882
+    # overridden to take advantage of the native linker features on
 
2883
+    # the platform it is being used on.
 
2884
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
2885
+  fi
 
2886
+
 
2887
+  # Commands to make compiler produce verbose output that lists
 
2888
+  # what "hidden" libraries, object files and flags are used when
 
2889
+  # linking a shared library.
 
2890
+  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
2891
+
 
2892
+else
 
2893
+  GXX=no
 
2894
+  with_gnu_ld=no
 
2895
+  wlarc=
 
2896
+fi
 
2897
+
 
2898
+# PORTME: fill in a description of your system's C++ link characteristics
 
2899
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
2900
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
2901
+case $host_os in
 
2902
+  aix3*)
 
2903
+    # FIXME: insert proper C++ library support
 
2904
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2905
+    ;;
 
2906
+  aix4* | aix5*)
 
2907
+    if test "$host_cpu" = ia64; then
 
2908
+      # On IA64, the linker does run time linking by default, so we don't
 
2909
+      # have to do anything special.
 
2910
+      aix_use_runtimelinking=no
 
2911
+      exp_sym_flag='-Bexport'
 
2912
+      no_entry_flag=""
 
2913
+    else
 
2914
+      aix_use_runtimelinking=no
 
2915
+
 
2916
+      # Test if we are trying to use run time linking or normal
 
2917
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
2918
+      # need to do runtime linking.
 
2919
+      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
2920
+       for ld_flag in $LDFLAGS; do
 
2921
+         case $ld_flag in
 
2922
+         *-brtl*)
 
2923
+           aix_use_runtimelinking=yes
 
2924
+           break
 
2925
+           ;;
 
2926
+         esac
 
2927
+       done
 
2928
+       ;;
 
2929
+      esac
 
2930
+
 
2931
+      exp_sym_flag='-bexport'
 
2932
+      no_entry_flag='-bnoentry'
 
2933
+    fi
 
2934
+
 
2935
+    # When large executables or shared objects are built, AIX ld can
 
2936
+    # have problems creating the table of contents.  If linking a library
 
2937
+    # or program results in "error TOC overflow" add -mminimal-toc to
 
2938
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
2939
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
2940
+
 
2941
+    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
2942
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2943
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
2944
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
2945
+
 
2946
+    if test "$GXX" = yes; then
 
2947
+      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
2948
+      # We only want to do this on AIX 4.2 and lower, the check
 
2949
+      # below for broken collect2 doesn't work under 4.3+
 
2950
+       collect2name=`${CC} -print-prog-name=collect2`
 
2951
+       if test -f "$collect2name" && \
 
2952
+          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
2953
+       then
 
2954
+         # We have reworked collect2
 
2955
+         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2956
+       else
 
2957
+         # We have old collect2
 
2958
+         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
2959
+         # It fails to find uninstalled libraries when the uninstalled
 
2960
+         # path is not listed in the libpath.  Setting hardcode_minus_L
 
2961
+         # to unsupported forces relinking
 
2962
+         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
2963
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
2964
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
2965
+       fi
 
2966
+       ;;
 
2967
+      esac
 
2968
+      shared_flag='-shared'
 
2969
+      if test "$aix_use_runtimelinking" = yes; then
 
2970
+       shared_flag="$shared_flag "'${wl}-G'
 
2971
+      fi
 
2972
+    else
 
2973
+      # not using gcc
 
2974
+      if test "$host_cpu" = ia64; then
 
2975
+       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
2976
+       # chokes on -Wl,-G. The following line is correct:
 
2977
+       shared_flag='-G'
 
2978
+      else
 
2979
+       if test "$aix_use_runtimelinking" = yes; then
 
2980
+         shared_flag='${wl}-G'
 
2981
+       else
 
2982
+         shared_flag='${wl}-bM:SRE'
 
2983
+       fi
 
2984
+      fi
 
2985
+    fi
 
2986
+
 
2987
+    # It seems that -bexpall does not export symbols beginning with
 
2988
+    # underscore (_), so it is better to generate a list of symbols to export.
 
2989
+    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
2990
+    if test "$aix_use_runtimelinking" = yes; then
 
2991
+      # Warning - without using the other runtime loading flags (-brtl),
 
2992
+      # -berok will link without error, but may produce a broken library.
 
2993
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
2994
+      # Determine the default libpath from the value encoded in an empty executable.
 
2995
+      _LT_AC_SYS_LIBPATH_AIX
 
2996
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
2997
+
 
2998
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
2999
+     else
 
3000
+      if test "$host_cpu" = ia64; then
 
3001
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3002
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3003
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
3004
+      else
 
3005
+       # Determine the default libpath from the value encoded in an empty executable.
 
3006
+       _LT_AC_SYS_LIBPATH_AIX
 
3007
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3008
+       # Warning - without using the other run time loading flags,
 
3009
+       # -berok will link without error, but may produce a broken library.
 
3010
+       _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3011
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3012
+       # Exported symbols can be pulled into shared objects from archives
 
3013
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
3014
+       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3015
+       # This is similar to how AIX traditionally builds its shared libraries.
 
3016
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3017
+      fi
 
3018
+    fi
 
3019
+    ;;
 
3020
+
 
3021
+  beos*)
 
3022
+    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3023
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3024
+      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3025
+      # support --undefined.  This deserves some investigation.  FIXME
 
3026
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3027
+    else
 
3028
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3029
+    fi
 
3030
+    ;;
 
3031
+
 
3032
+  chorus*)
 
3033
+    case $cc_basename in
 
3034
+      *)
 
3035
+       # FIXME: insert proper C++ library support
 
3036
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3037
+       ;;
 
3038
+    esac
 
3039
+    ;;
 
3040
+
 
3041
+  cygwin* | mingw* | pw32*)
 
3042
+    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3043
+    # as there is no search path for DLLs.
 
3044
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3045
+    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3046
+    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3047
+    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3048
+
 
3049
+    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3050
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
3051
+      # If the export-symbols file already is a .def file (1st line
 
3052
+      # is EXPORTS), use it as is; otherwise, prepend...
 
3053
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3054
+       cp $export_symbols $output_objdir/$soname.def;
 
3055
+      else
 
3056
+       echo EXPORTS > $output_objdir/$soname.def;
 
3057
+       cat $export_symbols >> $output_objdir/$soname.def;
 
3058
+      fi~
 
3059
+      $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'
 
3060
+    else
 
3061
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3062
+    fi
 
3063
+  ;;
 
3064
+      darwin* | rhapsody*)
 
3065
+        case $host_os in
 
3066
+        rhapsody* | darwin1.[[012]])
 
3067
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3068
+         ;;
 
3069
+       *) # Darwin 1.3 on
 
3070
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3071
+           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3072
+         else
 
3073
+           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3074
+             10.[[012]])
 
3075
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3076
+               ;;
 
3077
+             10.*)
 
3078
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3079
+               ;;
 
3080
+           esac
 
3081
+         fi
 
3082
+         ;;
 
3083
+        esac
 
3084
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3085
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3086
+      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3087
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3088
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3089
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3090
+
 
3091
+    if test "$GXX" = yes ; then
 
3092
+      lt_int_apple_cc_single_mod=no
 
3093
+      output_verbose_link_cmd='echo'
 
3094
+      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3095
+       lt_int_apple_cc_single_mod=yes
 
3096
+      fi
 
3097
+      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3098
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3099
+      else
 
3100
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3101
+        fi
 
3102
+        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3103
+        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3104
+          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3105
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3106
+          else
 
3107
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3108
+          fi
 
3109
+            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3110
+      else
 
3111
+      case $cc_basename in
 
3112
+        xlc*)
 
3113
+         output_verbose_link_cmd='echo'
 
3114
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3115
+          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3116
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3117
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3118
+          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3119
+          ;;
 
3120
+       *)
 
3121
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3122
+          ;;
 
3123
+      esac
 
3124
+      fi
 
3125
+        ;;
 
3126
+
 
3127
+  dgux*)
 
3128
+    case $cc_basename in
 
3129
+      ec++*)
 
3130
+       # FIXME: insert proper C++ library support
 
3131
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3132
+       ;;
 
3133
+      ghcx*)
 
3134
+       # Green Hills C++ Compiler
 
3135
+       # FIXME: insert proper C++ library support
 
3136
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3137
+       ;;
 
3138
+      *)
 
3139
+       # FIXME: insert proper C++ library support
 
3140
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3141
+       ;;
 
3142
+    esac
 
3143
+    ;;
 
3144
+  freebsd[[12]]*)
 
3145
+    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3146
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3147
+    ;;
 
3148
+  freebsd-elf*)
 
3149
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3150
+    ;;
 
3151
+  freebsd* | dragonfly*)
 
3152
+    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3153
+    # conventions
 
3154
+    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3155
+    ;;
 
3156
+  gnu*)
 
3157
+    ;;
 
3158
+  hpux9*)
 
3159
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3160
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3161
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3162
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3163
+    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3164
+                               # but as the default
 
3165
+                               # location of the library.
 
3166
+
 
3167
+    case $cc_basename in
 
3168
+    CC*)
 
3169
+      # FIXME: insert proper C++ library support
 
3170
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3171
+      ;;
 
3172
+    aCC*)
 
3173
+      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
3174
+      # Commands to make compiler produce verbose output that lists
 
3175
+      # what "hidden" libraries, object files and flags are used when
 
3176
+      # linking a shared library.
 
3177
+      #
 
3178
+      # There doesn't appear to be a way to prevent this compiler from
 
3179
+      # explicitly linking system object files so we need to strip them
 
3180
+      # from the output so that they don't get included in the library
 
3181
+      # dependencies.
 
3182
+      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3183
+      ;;
 
3184
+    *)
 
3185
+      if test "$GXX" = yes; then
 
3186
+        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
3187
+      else
 
3188
+        # FIXME: insert proper C++ library support
 
3189
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3190
+      fi
 
3191
+      ;;
 
3192
+    esac
 
3193
+    ;;
 
3194
+  hpux10*|hpux11*)
 
3195
+    if test $with_gnu_ld = no; then
 
3196
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3197
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3198
+
 
3199
+      case $host_cpu in
 
3200
+      hppa*64*|ia64*)
 
3201
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3202
+        ;;
 
3203
+      *)
 
3204
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3205
+        ;;
 
3206
+      esac
 
3207
+    fi
 
3208
+    case $host_cpu in
 
3209
+    hppa*64*|ia64*)
 
3210
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3211
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3212
+      ;;
 
3213
+    *)
 
3214
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3215
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3216
+                                             # but as the default
 
3217
+                                             # location of the library.
 
3218
+      ;;
 
3219
+    esac
 
3220
+
 
3221
+    case $cc_basename in
 
3222
+      CC*)
 
3223
+       # FIXME: insert proper C++ library support
 
3224
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3225
+       ;;
 
3226
+      aCC*)
 
3227
+       case $host_cpu in
 
3228
+       hppa*64*)
 
3229
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3230
+         ;;
 
3231
+       ia64*)
 
3232
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3233
+         ;;
 
3234
+       *)
 
3235
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3236
+         ;;
 
3237
+       esac
 
3238
+       # Commands to make compiler produce verbose output that lists
 
3239
+       # what "hidden" libraries, object files and flags are used when
 
3240
+       # linking a shared library.
 
3241
+       #
 
3242
+       # There doesn't appear to be a way to prevent this compiler from
 
3243
+       # explicitly linking system object files so we need to strip them
 
3244
+       # from the output so that they don't get included in the library
 
3245
+       # dependencies.
 
3246
+       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3247
+       ;;
 
3248
+      *)
 
3249
+       if test "$GXX" = yes; then
 
3250
+         if test $with_gnu_ld = no; then
 
3251
+           case $host_cpu in
 
3252
+           hppa*64*)
 
3253
+             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3254
+             ;;
 
3255
+           ia64*)
 
3256
+             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3257
+             ;;
 
3258
+           *)
 
3259
+             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3260
+             ;;
 
3261
+           esac
 
3262
+         fi
 
3263
+       else
 
3264
+         # FIXME: insert proper C++ library support
 
3265
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3266
+       fi
 
3267
+       ;;
 
3268
+    esac
 
3269
+    ;;
 
3270
+  interix3*)
 
3271
+    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3272
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3273
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3274
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3275
+    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3276
+    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3277
+    # default) and relocated if they conflict, which is a slow very memory
 
3278
+    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3279
+    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3280
+    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3281
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3282
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3283
+    ;;
 
3284
+  irix5* | irix6*)
 
3285
+    case $cc_basename in
 
3286
+      CC*)
 
3287
+       # SGI C++
 
3288
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3289
+
 
3290
+       # Archives containing C++ object files must be created using
 
3291
+       # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
3292
+       # necessary to make sure instantiated templates are included
 
3293
+       # in the archive.
 
3294
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
3295
+       ;;
 
3296
+      *)
 
3297
+       if test "$GXX" = yes; then
 
3298
+         if test "$with_gnu_ld" = no; then
 
3299
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3300
+         else
 
3301
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
3302
+         fi
 
3303
+       fi
 
3304
+       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3305
+       ;;
 
3306
+    esac
 
3307
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3308
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3309
+    ;;
 
3310
+  linux* | k*bsd*-gnu)
 
3311
+    case $cc_basename in
 
3312
+      KCC*)
 
3313
+       # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3314
+
 
3315
+       # KCC will only create a shared library if the output file
 
3316
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3317
+       # to its proper name (with version) after linking.
 
3318
+       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
3319
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
3320
+       # Commands to make compiler produce verbose output that lists
 
3321
+       # what "hidden" libraries, object files and flags are used when
 
3322
+       # linking a shared library.
 
3323
+       #
 
3324
+       # There doesn't appear to be a way to prevent this compiler from
 
3325
+       # explicitly linking system object files so we need to strip them
 
3326
+       # from the output so that they don't get included in the library
 
3327
+       # dependencies.
 
3328
+       output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3329
+
 
3330
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
3331
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3332
+
 
3333
+       # Archives containing C++ object files must be created using
 
3334
+       # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
3335
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
3336
+       ;;
 
3337
+      icpc*)
 
3338
+       # Intel C++
 
3339
+       with_gnu_ld=yes
 
3340
+       # version 8.0 and above of icpc choke on multiply defined symbols
 
3341
+       # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3342
+       # earlier do not add the objects themselves.
 
3343
+       case `$CC -V 2>&1` in
 
3344
+       *"Version 7."*)
 
3345
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3346
+         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3347
+         ;;
 
3348
+       *)  # Version 8.0 or newer
 
3349
+         tmp_idyn=
 
3350
+         case $host_cpu in
 
3351
+           ia64*) tmp_idyn=' -i_dynamic';;
 
3352
+         esac
 
3353
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3354
+         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3355
+         ;;
 
3356
+       esac
 
3357
+       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3358
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3359
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3360
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
3361
+       ;;
 
3362
+      pgCC*)
 
3363
+        # Portland Group C++ compiler
 
3364
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3365
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3366
+
 
3367
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3368
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3369
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3370
+        ;;
 
3371
+      cxx*)
 
3372
+       # Compaq C++
 
3373
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3374
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
3375
+
 
3376
+       runpath_var=LD_RUN_PATH
 
3377
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
3378
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3379
+
 
3380
+       # Commands to make compiler produce verbose output that lists
 
3381
+       # what "hidden" libraries, object files and flags are used when
 
3382
+       # linking a shared library.
 
3383
+       #
 
3384
+       # There doesn't appear to be a way to prevent this compiler from
 
3385
+       # explicitly linking system object files so we need to strip them
 
3386
+       # from the output so that they don't get included in the library
 
3387
+       # dependencies.
 
3388
+       output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3389
+       ;;
 
3390
+    esac
 
3391
+    ;;
 
3392
+  lynxos*)
 
3393
+    # FIXME: insert proper C++ library support
 
3394
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3395
+    ;;
 
3396
+  m88k*)
 
3397
+    # FIXME: insert proper C++ library support
 
3398
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3399
+    ;;
 
3400
+  mvs*)
 
3401
+    case $cc_basename in
 
3402
+      cxx*)
 
3403
+       # FIXME: insert proper C++ library support
 
3404
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3405
+       ;;
 
3406
+      *)
 
3407
+       # FIXME: insert proper C++ library support
 
3408
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3409
+       ;;
 
3410
+    esac
 
3411
+    ;;
 
3412
+  netbsd* | netbsdelf*-gnu)
 
3413
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3414
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
3415
+      wlarc=
 
3416
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3417
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3418
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3419
+    fi
 
3420
+    # Workaround some broken pre-1.5 toolchains
 
3421
+    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
3422
+    ;;
 
3423
+  openbsd2*)
 
3424
+    # C++ shared libraries are fairly broken
 
3425
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3426
+    ;;
 
3427
+  openbsd*)
 
3428
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3429
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3430
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3431
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3432
+    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3433
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3434
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3435
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3436
+    fi
 
3437
+    output_verbose_link_cmd='echo'
 
3438
+    ;;
 
3439
+  osf3*)
 
3440
+    case $cc_basename in
 
3441
+      KCC*)
 
3442
+       # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3443
+
 
3444
+       # KCC will only create a shared library if the output file
 
3445
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3446
+       # to its proper name (with version) after linking.
 
3447
+       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
3448
+
 
3449
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3450
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3451
+
 
3452
+       # Archives containing C++ object files must be created using
 
3453
+       # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
3454
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
3455
+
 
3456
+       ;;
 
3457
+      RCC*)
 
3458
+       # Rational C++ 2.4.1
 
3459
+       # FIXME: insert proper C++ library support
 
3460
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3461
+       ;;
 
3462
+      cxx*)
 
3463
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3464
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3465
+
 
3466
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3467
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3468
+
 
3469
+       # Commands to make compiler produce verbose output that lists
 
3470
+       # what "hidden" libraries, object files and flags are used when
 
3471
+       # linking a shared library.
 
3472
+       #
 
3473
+       # There doesn't appear to be a way to prevent this compiler from
 
3474
+       # explicitly linking system object files so we need to strip them
 
3475
+       # from the output so that they don't get included in the library
 
3476
+       # dependencies.
 
3477
+       output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3478
+       ;;
 
3479
+      *)
 
3480
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3481
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3482
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3483
+
 
3484
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3485
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3486
+
 
3487
+         # Commands to make compiler produce verbose output that lists
 
3488
+         # what "hidden" libraries, object files and flags are used when
 
3489
+         # linking a shared library.
 
3490
+         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3491
+
 
3492
+       else
 
3493
+         # FIXME: insert proper C++ library support
 
3494
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3495
+       fi
 
3496
+       ;;
 
3497
+    esac
 
3498
+    ;;
 
3499
+  osf4* | osf5*)
 
3500
+    case $cc_basename in
 
3501
+      KCC*)
 
3502
+       # Kuck and Associates, Inc. (KAI) C++ Compiler
 
3503
+
 
3504
+       # KCC will only create a shared library if the output file
 
3505
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
3506
+       # to its proper name (with version) after linking.
 
3507
+       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
3508
+
 
3509
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3510
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3511
+
 
3512
+       # Archives containing C++ object files must be created using
 
3513
+       # the KAI C++ compiler.
 
3514
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
3515
+       ;;
 
3516
+      RCC*)
 
3517
+       # Rational C++ 2.4.1
 
3518
+       # FIXME: insert proper C++ library support
 
3519
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3520
+       ;;
 
3521
+      cxx*)
 
3522
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
3523
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
3524
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
3525
+         echo "-hidden">> $lib.exp~
 
3526
+         $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~
 
3527
+         $rm $lib.exp'
 
3528
+
 
3529
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
3530
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3531
+
 
3532
+       # Commands to make compiler produce verbose output that lists
 
3533
+       # what "hidden" libraries, object files and flags are used when
 
3534
+       # linking a shared library.
 
3535
+       #
 
3536
+       # There doesn't appear to be a way to prevent this compiler from
 
3537
+       # explicitly linking system object files so we need to strip them
 
3538
+       # from the output so that they don't get included in the library
 
3539
+       # dependencies.
 
3540
+       output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3541
+       ;;
 
3542
+      *)
 
3543
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3544
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
3545
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
3546
+
 
3547
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
3548
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3549
+
 
3550
+         # Commands to make compiler produce verbose output that lists
 
3551
+         # what "hidden" libraries, object files and flags are used when
 
3552
+         # linking a shared library.
 
3553
+         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3554
+
 
3555
+       else
 
3556
+         # FIXME: insert proper C++ library support
 
3557
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3558
+       fi
 
3559
+       ;;
 
3560
+    esac
 
3561
+    ;;
 
3562
+  psos*)
 
3563
+    # FIXME: insert proper C++ library support
 
3564
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3565
+    ;;
 
3566
+  sunos4*)
 
3567
+    case $cc_basename in
 
3568
+      CC*)
 
3569
+       # Sun C++ 4.x
 
3570
+       # FIXME: insert proper C++ library support
 
3571
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3572
+       ;;
 
3573
+      lcc*)
 
3574
+       # Lucid
 
3575
+       # FIXME: insert proper C++ library support
 
3576
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3577
+       ;;
 
3578
+      *)
 
3579
+       # FIXME: insert proper C++ library support
 
3580
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3581
+       ;;
 
3582
+    esac
 
3583
+    ;;
 
3584
+  solaris*)
 
3585
+    case $cc_basename in
 
3586
+      CC*)
 
3587
+       # Sun C++ 4.2, 5.x and Centerline C++
 
3588
+        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
3589
+       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3590
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3591
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3592
+       $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'
 
3593
+
 
3594
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3595
+       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3596
+       case $host_os in
 
3597
+         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3598
+         *)
 
3599
+           # The C++ compiler is used as linker so we must use $wl
 
3600
+           # flag to pass the commands to the underlying system
 
3601
+           # linker. We must also pass each convience library through
 
3602
+           # to the system linker between allextract/defaultextract.
 
3603
+           # The C++ compiler will combine linker options so we
 
3604
+           # cannot just pass the convience library names through
 
3605
+           # without $wl.
 
3606
+           # Supported since Solaris 2.6 (maybe 2.5.1?)
 
3607
+           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3608
+           ;;
 
3609
+       esac
 
3610
+       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3611
+
 
3612
+       output_verbose_link_cmd='echo'
 
3613
+
 
3614
+       # Archives containing C++ object files must be created using
 
3615
+       # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3616
+       # necessary to make sure instantiated templates are included
 
3617
+       # in the archive.
 
3618
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3619
+       ;;
 
3620
+      gcx*)
 
3621
+       # Green Hills C++ Compiler
 
3622
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3623
+
 
3624
+       # The C++ compiler must be used to create the archive.
 
3625
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
3626
+       ;;
 
3627
+      *)
 
3628
+       # GNU C++ compiler with Solaris linker
 
3629
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
3630
+         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
3631
+         if $CC --version | grep -v '^2\.7' > /dev/null; then
 
3632
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3633
+           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3634
+               $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3635
+
 
3636
+           # Commands to make compiler produce verbose output that lists
 
3637
+           # what "hidden" libraries, object files and flags are used when
 
3638
+           # linking a shared library.
 
3639
+           output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
3640
+         else
 
3641
+           # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
3642
+           # platform.
 
3643
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
3644
+           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
3645
+               $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3646
+
 
3647
+           # Commands to make compiler produce verbose output that lists
 
3648
+           # what "hidden" libraries, object files and flags are used when
 
3649
+           # linking a shared library.
 
3650
+           output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
3651
+         fi
 
3652
+
 
3653
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3654
+       fi
 
3655
+       ;;
 
3656
+    esac
 
3657
+    ;;
 
3658
+  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3659
+    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3660
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3661
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3662
+    runpath_var='LD_RUN_PATH'
 
3663
+
 
3664
+    case $cc_basename in
 
3665
+      CC*)
 
3666
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3667
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3668
+       ;;
 
3669
+      *)
 
3670
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3671
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3672
+       ;;
 
3673
+    esac
 
3674
+    ;;
 
3675
+  sysv5* | sco3.2v5* | sco5v6*)
 
3676
+    # Note: We can NOT use -z defs as we might desire, because we do not
 
3677
+    # link with -lc, and that would cause any symbols used from libc to
 
3678
+    # always be unresolved, which means just about no library would
 
3679
+    # ever link correctly.  If we're not using GNU ld we use -z text
 
3680
+    # though, which does catch some bad symbols but isn't as heavy-handed
 
3681
+    # as -z defs.
 
3682
+    # For security reasons, it is highly recommended that you always
 
3683
+    # use absolute paths for naming shared libraries, and exclude the
 
3684
+    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3685
+    # requires that you compile everything twice, which is a pain.
 
3686
+    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3687
+    # non-empty value in the environment.  Most likely only useful for
 
3688
+    # creating official distributions of packages.
 
3689
+    # This is a hack until libtool officially supports absolute path
 
3690
+    # names for shared libraries.
 
3691
+    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3692
+    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3693
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3694
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3695
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3696
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3697
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3698
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3699
+    runpath_var='LD_RUN_PATH'
 
3700
+
 
3701
+    case $cc_basename in
 
3702
+      CC*)
 
3703
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3704
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3705
+       ;;
 
3706
+      *)
 
3707
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3708
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3709
+       ;;
 
3710
+    esac
 
3711
+    ;;
 
3712
+  tandem*)
 
3713
+    case $cc_basename in
 
3714
+      NCC*)
 
3715
+       # NonStop-UX NCC 3.20
 
3716
+       # FIXME: insert proper C++ library support
 
3717
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3718
+       ;;
 
3719
+      *)
 
3720
+       # FIXME: insert proper C++ library support
 
3721
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3722
+       ;;
 
3723
+    esac
 
3724
+    ;;
 
3725
+  vxworks*)
 
3726
+    # FIXME: insert proper C++ library support
 
3727
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3728
+    ;;
 
3729
+  *)
 
3730
+    # FIXME: insert proper C++ library support
 
3731
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3732
+    ;;
 
3733
+esac
 
3734
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
3735
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
3736
+
 
3737
+_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
3738
+_LT_AC_TAGVAR(LD, $1)="$LD"
 
3739
+
 
3740
+AC_LIBTOOL_POSTDEP_PREDEP($1)
 
3741
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3742
+AC_LIBTOOL_PROG_CC_C_O($1)
 
3743
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3744
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3745
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3746
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3747
+
 
3748
+AC_LIBTOOL_CONFIG($1)
 
3749
+
 
3750
+AC_LANG_POP
 
3751
+CC=$lt_save_CC
 
3752
+LDCXX=$LD
 
3753
+LD=$lt_save_LD
 
3754
+GCC=$lt_save_GCC
 
3755
+with_gnu_ldcxx=$with_gnu_ld
 
3756
+with_gnu_ld=$lt_save_with_gnu_ld
 
3757
+lt_cv_path_LDCXX=$lt_cv_path_LD
 
3758
+lt_cv_path_LD=$lt_save_path_LD
 
3759
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
3760
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
3761
+])# AC_LIBTOOL_LANG_CXX_CONFIG
 
3762
+
 
3763
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
3764
+# ------------------------------------
 
3765
+# Figure out "hidden" library dependencies from verbose
 
3766
+# compiler output when linking a shared library.
 
3767
+# Parse the compiler output and extract the necessary
 
3768
+# objects, libraries and library flags.
 
3769
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3770
+dnl we can't use the lt_simple_compile_test_code here,
 
3771
+dnl because it contains code intended for an executable,
 
3772
+dnl not a library.  It's possible we should let each
 
3773
+dnl tag define a new lt_????_link_test_code variable,
 
3774
+dnl but it's only used here...
 
3775
+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
3776
+int a;
 
3777
+void foo (void) { a = 0; }
 
3778
+EOF
 
3779
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
3780
+class Foo
 
3781
+{
 
3782
+public:
 
3783
+  Foo (void) { a = 0; }
 
3784
+private:
 
3785
+  int a;
 
3786
+};
 
3787
+EOF
 
3788
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
3789
+      subroutine foo
 
3790
+      implicit none
 
3791
+      integer*4 a
 
3792
+      a=0
 
3793
+      return
 
3794
+      end
 
3795
+EOF
 
3796
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
3797
+public class foo {
 
3798
+  private int a;
 
3799
+  public void bar (void) {
 
3800
+    a = 0;
 
3801
+  }
 
3802
+};
 
3803
+EOF
 
3804
+])
 
3805
+dnl Parse the compiler output and extract the necessary
 
3806
+dnl objects, libraries and library flags.
 
3807
+if AC_TRY_EVAL(ac_compile); then
 
3808
+  # Parse the compiler output and extract the necessary
 
3809
+  # objects, libraries and library flags.
 
3810
+
 
3811
+  # Sentinel used to keep track of whether or not we are before
 
3812
+  # the conftest object file.
 
3813
+  pre_test_object_deps_done=no
 
3814
+
 
3815
+  # The `*' in the case matches for architectures that use `case' in
 
3816
+  # $output_verbose_cmd can trigger glob expansion during the loop
 
3817
+  # eval without this substitution.
 
3818
+  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
3819
+
 
3820
+  for p in `eval $output_verbose_link_cmd`; do
 
3821
+    case $p in
 
3822
+
 
3823
+    -L* | -R* | -l*)
 
3824
+       # Some compilers place space between "-{L,R}" and the path.
 
3825
+       # Remove the space.
 
3826
+       if test $p = "-L" \
 
3827
+         || test $p = "-R"; then
 
3828
+        prev=$p
 
3829
+        continue
 
3830
+       else
 
3831
+        prev=
 
3832
+       fi
 
3833
+
 
3834
+       if test "$pre_test_object_deps_done" = no; then
 
3835
+        case $p in
 
3836
+        -L* | -R*)
 
3837
+          # Internal compiler library paths should come after those
 
3838
+          # provided the user.  The postdeps already come after the
 
3839
+          # user supplied libs so there is no need to process them.
 
3840
+          if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
3841
+            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
3842
+          else
 
3843
+            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
3844
+          fi
 
3845
+          ;;
 
3846
+        # The "-l" case would never come before the object being
 
3847
+        # linked, so don't bother handling this case.
 
3848
+        esac
 
3849
+       else
 
3850
+        if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
3851
+          _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
3852
+        else
 
3853
+          _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
3854
+        fi
 
3855
+       fi
 
3856
+       ;;
 
3857
+
 
3858
+    *.$objext)
 
3859
+       # This assumes that the test object file only shows up
 
3860
+       # once in the compiler output.
 
3861
+       if test "$p" = "conftest.$objext"; then
 
3862
+        pre_test_object_deps_done=yes
 
3863
+        continue
 
3864
+       fi
 
3865
+
 
3866
+       if test "$pre_test_object_deps_done" = no; then
 
3867
+        if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
3868
+          _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
3869
+        else
 
3870
+          _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
3871
+        fi
 
3872
+       else
 
3873
+        if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
3874
+          _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
3875
+        else
 
3876
+          _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
3877
+        fi
 
3878
+       fi
 
3879
+       ;;
 
3880
+
 
3881
+    *) ;; # Ignore the rest.
 
3882
+
 
3883
+    esac
 
3884
+  done
 
3885
+
 
3886
+  # Clean up.
 
3887
+  rm -f a.out a.exe
 
3888
+else
 
3889
+  echo "libtool.m4: error: problem compiling $1 test program"
 
3890
+fi
 
3891
+
 
3892
+$rm -f confest.$objext
 
3893
+
 
3894
+# PORTME: override above test on systems where it is broken
 
3895
+ifelse([$1],[CXX],
 
3896
+[case $host_os in
 
3897
+interix3*)
 
3898
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3899
+  # hack all around it, let's just trust "g++" to DTRT.
 
3900
+  _LT_AC_TAGVAR(predep_objects,$1)=
 
3901
+  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3902
+  _LT_AC_TAGVAR(postdeps,$1)=
 
3903
+  ;;
 
3904
+
 
3905
+solaris*)
 
3906
+  case $cc_basename in
 
3907
+  CC*)
 
3908
+    # Adding this requires a known-good setup of shared libraries for
 
3909
+    # Sun compiler versions before 5.6, else PIC objects from an old
 
3910
+    # archive will be linked into the output, leading to subtle bugs.
 
3911
+    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3912
+    ;;
 
3913
+  esac
 
3914
+  ;;
 
3915
+esac
 
3916
+])
 
3917
+
 
3918
+case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
3919
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
3920
+esac
 
3921
+])# AC_LIBTOOL_POSTDEP_PREDEP
 
3922
+
 
3923
+# AC_LIBTOOL_LANG_F77_CONFIG
 
3924
+# --------------------------
 
3925
+# Ensure that the configuration vars for the C compiler are
 
3926
+# suitably defined.  Those variables are subsequently used by
 
3927
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3928
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
3929
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
3930
+[AC_REQUIRE([AC_PROG_F77])
 
3931
+AC_LANG_PUSH(Fortran 77)
 
3932
+
 
3933
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3934
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3935
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3936
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3937
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3938
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3939
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3940
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3941
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3942
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3943
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3944
+_LT_AC_TAGVAR(module_cmds, $1)=
 
3945
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3946
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3947
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3948
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3949
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3950
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3951
+
 
3952
+# Source file extension for f77 test sources.
 
3953
+ac_ext=f
 
3954
+
 
3955
+# Object file extension for compiled f77 test sources.
 
3956
+objext=o
 
3957
+_LT_AC_TAGVAR(objext, $1)=$objext
 
3958
+
 
3959
+# Code to be used in simple compile tests
 
3960
+lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
3961
+
 
3962
+# Code to be used in simple link tests
 
3963
+lt_simple_link_test_code="      program t\n      end\n"
 
3964
+
 
3965
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3966
+_LT_AC_SYS_COMPILER
 
3967
+
 
3968
+# save warnings/boilerplate of simple test code
 
3969
+_LT_COMPILER_BOILERPLATE
 
3970
+_LT_LINKER_BOILERPLATE
 
3971
+
 
3972
+# Allow CC to be a program name with arguments.
 
3973
+lt_save_CC="$CC"
 
3974
+CC=${F77-"f77"}
 
3975
+compiler=$CC
 
3976
+_LT_AC_TAGVAR(compiler, $1)=$CC
 
3977
+_LT_CC_BASENAME([$compiler])
 
3978
+
 
3979
+AC_MSG_CHECKING([if libtool supports shared libraries])
 
3980
+AC_MSG_RESULT([$can_build_shared])
 
3981
+
 
3982
+AC_MSG_CHECKING([whether to build shared libraries])
 
3983
+test "$can_build_shared" = "no" && enable_shared=no
 
3984
+
 
3985
+# On AIX, shared libraries and static libraries use the same namespace, and
 
3986
+# are all built from PIC.
 
3987
+ca