]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - pkgs/lua/patches/lua-5.1.4-autotoolize.patch
8aa8812c61318651a8cd0c0c983c2b59c4a83f6d
[people/pmueller/ipfire-3.x.git] / pkgs / lua / patches / lua-5.1.4-autotoolize.patch
1 diff -urN lua-5.1.4/aclocal.m4 lua-5.1.4-autotoolize/aclocal.m4
2 --- lua-5.1.4/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
3 +++ lua-5.1.4-autotoolize/aclocal.m4 2008-09-03 13:18:37.000000000 +0200
4 @@ -0,0 +1,7307 @@
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 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19 +
20 +# serial 48 AC_PROG_LIBTOOL
21 +
22 +
23 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
24 +# -----------------------------------------------------------
25 +# If this macro is not defined by Autoconf, define it here.
26 +m4_ifdef([AC_PROVIDE_IFELSE],
27 + [],
28 + [m4_define([AC_PROVIDE_IFELSE],
29 + [m4_ifdef([AC_PROVIDE_$1],
30 + [$2], [$3])])])
31 +
32 +
33 +# AC_PROG_LIBTOOL
34 +# ---------------
35 +AC_DEFUN([AC_PROG_LIBTOOL],
36 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
37 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
38 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
39 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
40 + [AC_LIBTOOL_CXX],
41 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
42 + ])])
43 +dnl And a similar setup for Fortran 77 support
44 + AC_PROVIDE_IFELSE([AC_PROG_F77],
45 + [AC_LIBTOOL_F77],
46 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
47 +])])
48 +
49 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
50 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
51 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
52 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
53 + [AC_LIBTOOL_GCJ],
54 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
55 + [AC_LIBTOOL_GCJ],
56 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
57 + [AC_LIBTOOL_GCJ],
58 + [ifdef([AC_PROG_GCJ],
59 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
60 + ifdef([A][M_PROG_GCJ],
61 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
62 + ifdef([LT_AC_PROG_GCJ],
63 + [define([LT_AC_PROG_GCJ],
64 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
65 +])])# AC_PROG_LIBTOOL
66 +
67 +
68 +# _AC_PROG_LIBTOOL
69 +# ----------------
70 +AC_DEFUN([_AC_PROG_LIBTOOL],
71 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
72 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
73 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
74 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
75 +
76 +# This can be used to rebuild libtool when needed
77 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
78 +
79 +# Always use our own libtool.
80 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
81 +AC_SUBST(LIBTOOL)dnl
82 +
83 +# Prevent multiple expansion
84 +define([AC_PROG_LIBTOOL], [])
85 +])# _AC_PROG_LIBTOOL
86 +
87 +
88 +# AC_LIBTOOL_SETUP
89 +# ----------------
90 +AC_DEFUN([AC_LIBTOOL_SETUP],
91 +[AC_PREREQ(2.50)dnl
92 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
93 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
94 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
95 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
96 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
97 +AC_REQUIRE([AC_PROG_CC])dnl
98 +AC_REQUIRE([AC_PROG_LD])dnl
99 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
100 +AC_REQUIRE([AC_PROG_NM])dnl
101 +
102 +AC_REQUIRE([AC_PROG_LN_S])dnl
103 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
104 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
105 +AC_REQUIRE([AC_OBJEXT])dnl
106 +AC_REQUIRE([AC_EXEEXT])dnl
107 +dnl
108 +
109 +AC_LIBTOOL_SYS_MAX_CMD_LEN
110 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
111 +AC_LIBTOOL_OBJDIR
112 +
113 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
114 +_LT_AC_PROG_ECHO_BACKSLASH
115 +
116 +case $host_os in
117 +aix3*)
118 + # AIX sometimes has problems with the GCC collect2 program. For some
119 + # reason, if we set the COLLECT_NAMES environment variable, the problems
120 + # vanish in a puff of smoke.
121 + if test "X${COLLECT_NAMES+set}" != Xset; then
122 + COLLECT_NAMES=
123 + export COLLECT_NAMES
124 + fi
125 + ;;
126 +esac
127 +
128 +# Sed substitution that helps us do robust quoting. It backslashifies
129 +# metacharacters that are still active within double-quoted strings.
130 +Xsed='sed -e 1s/^X//'
131 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
132 +
133 +# Same as above, but do not quote variable references.
134 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
135 +
136 +# Sed substitution to delay expansion of an escaped shell variable in a
137 +# double_quote_subst'ed string.
138 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
139 +
140 +# Sed substitution to avoid accidental globbing in evaled expressions
141 +no_glob_subst='s/\*/\\\*/g'
142 +
143 +# Constants:
144 +rm="rm -f"
145 +
146 +# Global variables:
147 +default_ofile=libtool
148 +can_build_shared=yes
149 +
150 +# All known linkers require a `.a' archive for static linking (except MSVC,
151 +# which needs '.lib').
152 +libext=a
153 +ltmain="$ac_aux_dir/ltmain.sh"
154 +ofile="$default_ofile"
155 +with_gnu_ld="$lt_cv_prog_gnu_ld"
156 +
157 +AC_CHECK_TOOL(AR, ar, false)
158 +AC_CHECK_TOOL(RANLIB, ranlib, :)
159 +AC_CHECK_TOOL(STRIP, strip, :)
160 +
161 +old_CC="$CC"
162 +old_CFLAGS="$CFLAGS"
163 +
164 +# Set sane defaults for various variables
165 +test -z "$AR" && AR=ar
166 +test -z "$AR_FLAGS" && AR_FLAGS=cru
167 +test -z "$AS" && AS=as
168 +test -z "$CC" && CC=cc
169 +test -z "$LTCC" && LTCC=$CC
170 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171 +test -z "$DLLTOOL" && DLLTOOL=dlltool
172 +test -z "$LD" && LD=ld
173 +test -z "$LN_S" && LN_S="ln -s"
174 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
175 +test -z "$NM" && NM=nm
176 +test -z "$SED" && SED=sed
177 +test -z "$OBJDUMP" && OBJDUMP=objdump
178 +test -z "$RANLIB" && RANLIB=:
179 +test -z "$STRIP" && STRIP=:
180 +test -z "$ac_objext" && ac_objext=o
181 +
182 +# Determine commands to create old-style static archives.
183 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
184 +old_postinstall_cmds='chmod 644 $oldlib'
185 +old_postuninstall_cmds=
186 +
187 +if test -n "$RANLIB"; then
188 + case $host_os in
189 + openbsd*)
190 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
191 + ;;
192 + *)
193 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
194 + ;;
195 + esac
196 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197 +fi
198 +
199 +_LT_CC_BASENAME([$compiler])
200 +
201 +# Only perform the check for file, if the check method requires it
202 +case $deplibs_check_method in
203 +file_magic*)
204 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 + AC_PATH_MAGIC
206 + fi
207 + ;;
208 +esac
209 +
210 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212 +enable_win32_dll=yes, enable_win32_dll=no)
213 +
214 +AC_ARG_ENABLE([libtool-lock],
215 + [AC_HELP_STRING([--disable-libtool-lock],
216 + [avoid locking (might break parallel builds)])])
217 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
218 +
219 +AC_ARG_WITH([pic],
220 + [AC_HELP_STRING([--with-pic],
221 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
222 + [pic_mode="$withval"],
223 + [pic_mode=default])
224 +test -z "$pic_mode" && pic_mode=default
225 +
226 +# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
227 +#
228 +# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
229 +# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
230 +# calls AC_LIBTOOL_CONFIG and creates libtool.
231 +#
232 +_LT_VERSION_CHECK
233 +
234 +# Use C for the default configuration in the libtool script
235 +tagname=
236 +AC_LIBTOOL_LANG_C_CONFIG
237 +_LT_AC_TAGCONFIG
238 +])# AC_LIBTOOL_SETUP
239 +
240 +
241 +# _LT_VERSION_CHECK
242 +# -----------------
243 +AC_DEFUN([_LT_VERSION_CHECK],
244 +[AC_MSG_CHECKING([for correct ltmain.sh version])
245 +if test "x$ltmain" = "x" ; then
246 + AC_MSG_RESULT(no)
247 + AC_MSG_ERROR([
248 +
249 +*** @<:@Gentoo@:>@ sanity check failed! ***
250 +*** \$ltmain is not defined, please check the patch for consistency! ***
251 +])
252 +fi
253 +gentoo_lt_version="1.5.22"
254 +gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
255 +if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
256 + AC_MSG_RESULT(no)
257 + AC_MSG_ERROR([
258 +
259 +*** @<:@Gentoo@:>@ sanity check failed! ***
260 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
261 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
262 +
263 +Please run:
264 +
265 + libtoolize --copy --force
266 +
267 +if appropriate, please contact the maintainer of this
268 +package (or your distribution) for help.
269 +])
270 +else
271 + AC_MSG_RESULT(yes)
272 +fi
273 +])# _LT_VERSION_CHECK
274 +
275 +
276 +# _LT_AC_SYS_COMPILER
277 +# -------------------
278 +AC_DEFUN([_LT_AC_SYS_COMPILER],
279 +[AC_REQUIRE([AC_PROG_CC])dnl
280 +
281 +# If no C compiler was specified, use CC.
282 +LTCC=${LTCC-"$CC"}
283 +
284 +# If no C compiler flags were specified, use CFLAGS.
285 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
286 +
287 +# Allow CC to be a program name with arguments.
288 +compiler=$CC
289 +])# _LT_AC_SYS_COMPILER
290 +
291 +
292 +# _LT_CC_BASENAME(CC)
293 +# -------------------
294 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
295 +AC_DEFUN([_LT_CC_BASENAME],
296 +[for cc_temp in $1""; do
297 + case $cc_temp in
298 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
299 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
300 + \-*) ;;
301 + *) break;;
302 + esac
303 +done
304 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
305 +])
306 +
307 +
308 +# _LT_COMPILER_BOILERPLATE
309 +# ------------------------
310 +# Check for compiler boilerplate output or warnings with
311 +# the simple compiler test code.
312 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
313 +[ac_outfile=conftest.$ac_objext
314 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
315 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
316 +_lt_compiler_boilerplate=`cat conftest.err`
317 +$rm conftest*
318 +])# _LT_COMPILER_BOILERPLATE
319 +
320 +
321 +# _LT_LINKER_BOILERPLATE
322 +# ----------------------
323 +# Check for linker boilerplate output or warnings with
324 +# the simple link test code.
325 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
326 +[ac_outfile=conftest.$ac_objext
327 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
328 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
329 +_lt_linker_boilerplate=`cat conftest.err`
330 +$rm conftest*
331 +])# _LT_LINKER_BOILERPLATE
332 +
333 +
334 +# _LT_AC_SYS_LIBPATH_AIX
335 +# ----------------------
336 +# Links a minimal program and checks the executable
337 +# for the system default hardcoded library path. In most cases,
338 +# this is /usr/lib:/lib, but when the MPI compilers are used
339 +# the location of the communication and MPI libs are included too.
340 +# If we don't find anything, use the default library path according
341 +# to the aix ld manual.
342 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
343 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
344 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
345 +}'`
346 +# Check for a 64-bit object if we didn't find anything.
347 +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; }
348 +}'`; fi],[])
349 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
350 +])# _LT_AC_SYS_LIBPATH_AIX
351 +
352 +
353 +# _LT_AC_SHELL_INIT(ARG)
354 +# ----------------------
355 +AC_DEFUN([_LT_AC_SHELL_INIT],
356 +[ifdef([AC_DIVERSION_NOTICE],
357 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
358 + [AC_DIVERT_PUSH(NOTICE)])
359 +$1
360 +AC_DIVERT_POP
361 +])# _LT_AC_SHELL_INIT
362 +
363 +
364 +# _LT_AC_PROG_ECHO_BACKSLASH
365 +# --------------------------
366 +# Add some code to the start of the generated configure script which
367 +# will find an echo command which doesn't interpret backslashes.
368 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
369 +[_LT_AC_SHELL_INIT([
370 +# Check that we are running under the correct shell.
371 +SHELL=${CONFIG_SHELL-/bin/sh}
372 +
373 +case X$ECHO in
374 +X*--fallback-echo)
375 + # Remove one level of quotation (which was required for Make).
376 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
377 + ;;
378 +esac
379 +
380 +echo=${ECHO-echo}
381 +if test "X[$]1" = X--no-reexec; then
382 + # Discard the --no-reexec flag, and continue.
383 + shift
384 +elif test "X[$]1" = X--fallback-echo; then
385 + # Avoid inline document here, it may be left over
386 + :
387 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
388 + # Yippee, $echo works!
389 + :
390 +else
391 + # Restart under the correct shell.
392 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
393 +fi
394 +
395 +if test "X[$]1" = X--fallback-echo; then
396 + # used as fallback echo
397 + shift
398 + cat <<EOF
399 +[$]*
400 +EOF
401 + exit 0
402 +fi
403 +
404 +# The HP-UX ksh and POSIX shell print the target directory to stdout
405 +# if CDPATH is set.
406 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
407 +
408 +if test -z "$ECHO"; then
409 +if test "X${echo_test_string+set}" != Xset; then
410 +# find a string as large as possible, as long as the shell can cope with it
411 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
412 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
413 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
414 + echo_test_string=`eval $cmd` &&
415 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
416 + then
417 + break
418 + fi
419 + done
420 +fi
421 +
422 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
423 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
424 + test "X$echo_testing_string" = "X$echo_test_string"; then
425 + :
426 +else
427 + # The Solaris, AIX, and Digital Unix default echo programs unquote
428 + # backslashes. This makes it impossible to quote backslashes using
429 + # echo "$something" | sed 's/\\/\\\\/g'
430 + #
431 + # So, first we look for a working echo in the user's PATH.
432 +
433 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
434 + for dir in $PATH /usr/ucb; do
435 + IFS="$lt_save_ifs"
436 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
437 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
438 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
439 + test "X$echo_testing_string" = "X$echo_test_string"; then
440 + echo="$dir/echo"
441 + break
442 + fi
443 + done
444 + IFS="$lt_save_ifs"
445 +
446 + if test "X$echo" = Xecho; then
447 + # We didn't find a better echo, so look for alternatives.
448 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
449 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
450 + test "X$echo_testing_string" = "X$echo_test_string"; then
451 + # This shell has a builtin print -r that does the trick.
452 + echo='print -r'
453 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
454 + test "X$CONFIG_SHELL" != X/bin/ksh; then
455 + # If we have ksh, try running configure again with it.
456 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
457 + export ORIGINAL_CONFIG_SHELL
458 + CONFIG_SHELL=/bin/ksh
459 + export CONFIG_SHELL
460 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
461 + else
462 + # Try using printf.
463 + echo='printf %s\n'
464 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
465 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
466 + test "X$echo_testing_string" = "X$echo_test_string"; then
467 + # Cool, printf works
468 + :
469 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
470 + test "X$echo_testing_string" = 'X\t' &&
471 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
472 + test "X$echo_testing_string" = "X$echo_test_string"; then
473 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
474 + export CONFIG_SHELL
475 + SHELL="$CONFIG_SHELL"
476 + export SHELL
477 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
478 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
479 + test "X$echo_testing_string" = 'X\t' &&
480 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
481 + test "X$echo_testing_string" = "X$echo_test_string"; then
482 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
483 + else
484 + # maybe with a smaller string...
485 + prev=:
486 +
487 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
488 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
489 + then
490 + break
491 + fi
492 + prev="$cmd"
493 + done
494 +
495 + if test "$prev" != 'sed 50q "[$]0"'; then
496 + echo_test_string=`eval $prev`
497 + export echo_test_string
498 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
499 + else
500 + # Oops. We lost completely, so just stick with echo.
501 + echo=echo
502 + fi
503 + fi
504 + fi
505 + fi
506 +fi
507 +fi
508 +
509 +# Copy echo and quote the copy suitably for passing to libtool from
510 +# the Makefile, instead of quoting the original, which is used later.
511 +ECHO=$echo
512 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
513 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
514 +fi
515 +
516 +AC_SUBST(ECHO)
517 +])])# _LT_AC_PROG_ECHO_BACKSLASH
518 +
519 +
520 +# _LT_AC_LOCK
521 +# -----------
522 +AC_DEFUN([_LT_AC_LOCK],
523 +[AC_ARG_ENABLE([libtool-lock],
524 + [AC_HELP_STRING([--disable-libtool-lock],
525 + [avoid locking (might break parallel builds)])])
526 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
527 +
528 +# Some flags need to be propagated to the compiler or linker for good
529 +# libtool support.
530 +case $host in
531 +ia64-*-hpux*)
532 + # Find out which ABI we are using.
533 + echo 'int i;' > conftest.$ac_ext
534 + if AC_TRY_EVAL(ac_compile); then
535 + case `/usr/bin/file conftest.$ac_objext` in
536 + *ELF-32*)
537 + HPUX_IA64_MODE="32"
538 + ;;
539 + *ELF-64*)
540 + HPUX_IA64_MODE="64"
541 + ;;
542 + esac
543 + fi
544 + rm -rf conftest*
545 + ;;
546 +*-*-irix6*)
547 + # Find out which ABI we are using.
548 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
549 + if AC_TRY_EVAL(ac_compile); then
550 + if test "$lt_cv_prog_gnu_ld" = yes; then
551 + case `/usr/bin/file conftest.$ac_objext` in
552 + *32-bit*)
553 + LD="${LD-ld} -melf32bsmip"
554 + ;;
555 + *N32*)
556 + LD="${LD-ld} -melf32bmipn32"
557 + ;;
558 + *64-bit*)
559 + LD="${LD-ld} -melf64bmip"
560 + ;;
561 + esac
562 + else
563 + case `/usr/bin/file conftest.$ac_objext` in
564 + *32-bit*)
565 + LD="${LD-ld} -32"
566 + ;;
567 + *N32*)
568 + LD="${LD-ld} -n32"
569 + ;;
570 + *64-bit*)
571 + LD="${LD-ld} -64"
572 + ;;
573 + esac
574 + fi
575 + fi
576 + rm -rf conftest*
577 + ;;
578 +
579 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
580 + # Find out which ABI we are using.
581 + echo 'int i;' > conftest.$ac_ext
582 + if AC_TRY_EVAL(ac_compile); then
583 + case `/usr/bin/file conftest.o` in
584 + *32-bit*)
585 + case $host in
586 + x86_64-*linux*)
587 + LD="${LD-ld} -m elf_i386"
588 + ;;
589 + ppc64-*linux*|powerpc64-*linux*)
590 + LD="${LD-ld} -m elf32ppclinux"
591 + ;;
592 + s390x-*linux*)
593 + LD="${LD-ld} -m elf_s390"
594 + ;;
595 + sparc64-*linux*)
596 + LD="${LD-ld} -m elf32_sparc"
597 + ;;
598 + esac
599 + ;;
600 + *64-bit*)
601 + case $host in
602 + x86_64-*linux*)
603 + LD="${LD-ld} -m elf_x86_64"
604 + ;;
605 + ppc*-*linux*|powerpc*-*linux*)
606 + LD="${LD-ld} -m elf64ppc"
607 + ;;
608 + s390*-*linux*)
609 + LD="${LD-ld} -m elf64_s390"
610 + ;;
611 + sparc*-*linux*)
612 + LD="${LD-ld} -m elf64_sparc"
613 + ;;
614 + esac
615 + ;;
616 + esac
617 + fi
618 + rm -rf conftest*
619 + ;;
620 +
621 +*-*-sco3.2v5*)
622 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
623 + SAVE_CFLAGS="$CFLAGS"
624 + CFLAGS="$CFLAGS -belf"
625 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
626 + [AC_LANG_PUSH(C)
627 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
628 + AC_LANG_POP])
629 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
630 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
631 + CFLAGS="$SAVE_CFLAGS"
632 + fi
633 + ;;
634 +sparc*-*solaris*)
635 + # Find out which ABI we are using.
636 + echo 'int i;' > conftest.$ac_ext
637 + if AC_TRY_EVAL(ac_compile); then
638 + case `/usr/bin/file conftest.o` in
639 + *64-bit*)
640 + case $lt_cv_prog_gnu_ld in
641 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
642 + *) LD="${LD-ld} -64" ;;
643 + esac
644 + ;;
645 + esac
646 + fi
647 + rm -rf conftest*
648 + ;;
649 +
650 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
651 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
652 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
653 + AC_CHECK_TOOL(AS, as, false)
654 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
655 + ;;
656 + ])
657 +esac
658 +
659 +need_locks="$enable_libtool_lock"
660 +
661 +])# _LT_AC_LOCK
662 +
663 +
664 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
665 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
666 +# ----------------------------------------------------------------
667 +# Check whether the given compiler option works
668 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
669 +[AC_REQUIRE([LT_AC_PROG_SED])
670 +AC_CACHE_CHECK([$1], [$2],
671 + [$2=no
672 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
673 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
674 + lt_compiler_flag="$3"
675 + # Insert the option either (1) after the last *FLAGS variable, or
676 + # (2) before a word containing "conftest.", or (3) at the end.
677 + # Note that $ac_compile itself does not contain backslashes and begins
678 + # with a dollar sign (not a hyphen), so the echo should work correctly.
679 + # The option is referenced via a variable to avoid confusing sed.
680 + lt_compile=`echo "$ac_compile" | $SED \
681 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
682 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
683 + -e 's:$: $lt_compiler_flag:'`
684 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
685 + (eval "$lt_compile" 2>conftest.err)
686 + ac_status=$?
687 + cat conftest.err >&AS_MESSAGE_LOG_FD
688 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
689 + if (exit $ac_status) && test -s "$ac_outfile"; then
690 + # The compiler can only warn and ignore the option if not recognized
691 + # So say no if there are warnings other than the usual output.
692 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
693 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
694 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
695 + $2=yes
696 + fi
697 + fi
698 + $rm conftest*
699 +])
700 +
701 +if test x"[$]$2" = xyes; then
702 + ifelse([$5], , :, [$5])
703 +else
704 + ifelse([$6], , :, [$6])
705 +fi
706 +])# AC_LIBTOOL_COMPILER_OPTION
707 +
708 +
709 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
710 +# [ACTION-SUCCESS], [ACTION-FAILURE])
711 +# ------------------------------------------------------------
712 +# Check whether the given compiler option works
713 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
714 +[AC_CACHE_CHECK([$1], [$2],
715 + [$2=no
716 + save_LDFLAGS="$LDFLAGS"
717 + LDFLAGS="$LDFLAGS $3"
718 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
719 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
720 + # The linker can only warn and ignore the option if not recognized
721 + # So say no if there are warnings
722 + if test -s conftest.err; then
723 + # Append any errors to the config.log.
724 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
725 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
726 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
727 + if diff conftest.exp conftest.er2 >/dev/null; then
728 + $2=yes
729 + fi
730 + else
731 + $2=yes
732 + fi
733 + fi
734 + $rm conftest*
735 + LDFLAGS="$save_LDFLAGS"
736 +])
737 +
738 +if test x"[$]$2" = xyes; then
739 + ifelse([$4], , :, [$4])
740 +else
741 + ifelse([$5], , :, [$5])
742 +fi
743 +])# AC_LIBTOOL_LINKER_OPTION
744 +
745 +
746 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
747 +# --------------------------
748 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
749 +[# find the maximum length of command line arguments
750 +AC_MSG_CHECKING([the maximum length of command line arguments])
751 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
752 + i=0
753 + teststring="ABCD"
754 +
755 + case $build_os in
756 + msdosdjgpp*)
757 + # On DJGPP, this test can blow up pretty badly due to problems in libc
758 + # (any single argument exceeding 2000 bytes causes a buffer overrun
759 + # during glob expansion). Even if it were fixed, the result of this
760 + # check would be larger than it should be.
761 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
762 + ;;
763 +
764 + gnu*)
765 + # Under GNU Hurd, this test is not required because there is
766 + # no limit to the length of command line arguments.
767 + # Libtool will interpret -1 as no limit whatsoever
768 + lt_cv_sys_max_cmd_len=-1;
769 + ;;
770 +
771 + cygwin* | mingw*)
772 + # On Win9x/ME, this test blows up -- it succeeds, but takes
773 + # about 5 minutes as the teststring grows exponentially.
774 + # Worse, since 9x/ME are not pre-emptively multitasking,
775 + # you end up with a "frozen" computer, even though with patience
776 + # the test eventually succeeds (with a max line length of 256k).
777 + # Instead, let's just punt: use the minimum linelength reported by
778 + # all of the supported platforms: 8192 (on NT/2K/XP).
779 + lt_cv_sys_max_cmd_len=8192;
780 + ;;
781 +
782 + amigaos*)
783 + # On AmigaOS with pdksh, this test takes hours, literally.
784 + # So we just punt and use a minimum line length of 8192.
785 + lt_cv_sys_max_cmd_len=8192;
786 + ;;
787 +
788 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
789 + # This has been around since 386BSD, at least. Likely further.
790 + if test -x /sbin/sysctl; then
791 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
792 + elif test -x /usr/sbin/sysctl; then
793 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
794 + else
795 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
796 + fi
797 + # And add a safety zone
798 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
799 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
800 + ;;
801 +
802 + interix*)
803 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
804 + lt_cv_sys_max_cmd_len=196608
805 + ;;
806 +
807 + osf*)
808 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
809 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
810 + # nice to cause kernel panics so lets avoid the loop below.
811 + # First set a reasonable default.
812 + lt_cv_sys_max_cmd_len=16384
813 + #
814 + if test -x /sbin/sysconfig; then
815 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
816 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
817 + esac
818 + fi
819 + ;;
820 + sco3.2v5*)
821 + lt_cv_sys_max_cmd_len=102400
822 + ;;
823 + sysv5* | sco5v6* | sysv4.2uw2*)
824 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
825 + if test -n "$kargmax"; then
826 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
827 + else
828 + lt_cv_sys_max_cmd_len=32768
829 + fi
830 + ;;
831 + *)
832 + # If test is not a shell built-in, we'll probably end up computing a
833 + # maximum length that is only half of the actual maximum length, but
834 + # we can't tell.
835 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
836 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
837 + = "XX$teststring") >/dev/null 2>&1 &&
838 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
839 + lt_cv_sys_max_cmd_len=$new_result &&
840 + test $i != 17 # 1/2 MB should be enough
841 + do
842 + i=`expr $i + 1`
843 + teststring=$teststring$teststring
844 + done
845 + teststring=
846 + # Add a significant safety factor because C++ compilers can tack on massive
847 + # amounts of additional arguments before passing them to the linker.
848 + # It appears as though 1/2 is a usable value.
849 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
850 + ;;
851 + esac
852 +])
853 +if test -n $lt_cv_sys_max_cmd_len ; then
854 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
855 +else
856 + AC_MSG_RESULT(none)
857 +fi
858 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
859 +
860 +
861 +# _LT_AC_CHECK_DLFCN
862 +# ------------------
863 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
864 +[AC_CHECK_HEADERS(dlfcn.h)dnl
865 +])# _LT_AC_CHECK_DLFCN
866 +
867 +
868 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
869 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
870 +# ---------------------------------------------------------------------
871 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
872 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
873 +if test "$cross_compiling" = yes; then :
874 + [$4]
875 +else
876 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
877 + lt_status=$lt_dlunknown
878 + cat > conftest.$ac_ext <<EOF
879 +[#line __oline__ "configure"
880 +#include "confdefs.h"
881 +
882 +#if HAVE_DLFCN_H
883 +#include <dlfcn.h>
884 +#endif
885 +
886 +#include <stdio.h>
887 +
888 +#ifdef RTLD_GLOBAL
889 +# define LT_DLGLOBAL RTLD_GLOBAL
890 +#else
891 +# ifdef DL_GLOBAL
892 +# define LT_DLGLOBAL DL_GLOBAL
893 +# else
894 +# define LT_DLGLOBAL 0
895 +# endif
896 +#endif
897 +
898 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
899 + find out it does not work in some platform. */
900 +#ifndef LT_DLLAZY_OR_NOW
901 +# ifdef RTLD_LAZY
902 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
903 +# else
904 +# ifdef DL_LAZY
905 +# define LT_DLLAZY_OR_NOW DL_LAZY
906 +# else
907 +# ifdef RTLD_NOW
908 +# define LT_DLLAZY_OR_NOW RTLD_NOW
909 +# else
910 +# ifdef DL_NOW
911 +# define LT_DLLAZY_OR_NOW DL_NOW
912 +# else
913 +# define LT_DLLAZY_OR_NOW 0
914 +# endif
915 +# endif
916 +# endif
917 +# endif
918 +#endif
919 +
920 +#ifdef __cplusplus
921 +extern "C" void exit (int);
922 +#endif
923 +
924 +void fnord() { int i=42;}
925 +int main ()
926 +{
927 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
928 + int status = $lt_dlunknown;
929 +
930 + if (self)
931 + {
932 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
933 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
934 + /* dlclose (self); */
935 + }
936 + else
937 + puts (dlerror ());
938 +
939 + exit (status);
940 +}]
941 +EOF
942 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
943 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
944 + lt_status=$?
945 + case x$lt_status in
946 + x$lt_dlno_uscore) $1 ;;
947 + x$lt_dlneed_uscore) $2 ;;
948 + x$lt_dlunknown|x*) $3 ;;
949 + esac
950 + else :
951 + # compilation failed
952 + $3
953 + fi
954 +fi
955 +rm -fr conftest*
956 +])# _LT_AC_TRY_DLOPEN_SELF
957 +
958 +
959 +# AC_LIBTOOL_DLOPEN_SELF
960 +# ----------------------
961 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
962 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
963 +if test "x$enable_dlopen" != xyes; then
964 + enable_dlopen=unknown
965 + enable_dlopen_self=unknown
966 + enable_dlopen_self_static=unknown
967 +else
968 + lt_cv_dlopen=no
969 + lt_cv_dlopen_libs=
970 +
971 + case $host_os in
972 + beos*)
973 + lt_cv_dlopen="load_add_on"
974 + lt_cv_dlopen_libs=
975 + lt_cv_dlopen_self=yes
976 + ;;
977 +
978 + mingw* | pw32*)
979 + lt_cv_dlopen="LoadLibrary"
980 + lt_cv_dlopen_libs=
981 + ;;
982 +
983 + cygwin*)
984 + lt_cv_dlopen="dlopen"
985 + lt_cv_dlopen_libs=
986 + ;;
987 +
988 + darwin*)
989 + # if libdl is installed we need to link against it
990 + AC_CHECK_LIB([dl], [dlopen],
991 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
992 + lt_cv_dlopen="dyld"
993 + lt_cv_dlopen_libs=
994 + lt_cv_dlopen_self=yes
995 + ])
996 + ;;
997 +
998 + *)
999 + AC_CHECK_FUNC([shl_load],
1000 + [lt_cv_dlopen="shl_load"],
1001 + [AC_CHECK_LIB([dld], [shl_load],
1002 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1003 + [AC_CHECK_FUNC([dlopen],
1004 + [lt_cv_dlopen="dlopen"],
1005 + [AC_CHECK_LIB([dl], [dlopen],
1006 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1007 + [AC_CHECK_LIB([svld], [dlopen],
1008 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1009 + [AC_CHECK_LIB([dld], [dld_link],
1010 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1011 + ])
1012 + ])
1013 + ])
1014 + ])
1015 + ])
1016 + ;;
1017 + esac
1018 +
1019 + if test "x$lt_cv_dlopen" != xno; then
1020 + enable_dlopen=yes
1021 + else
1022 + enable_dlopen=no
1023 + fi
1024 +
1025 + case $lt_cv_dlopen in
1026 + dlopen)
1027 + save_CPPFLAGS="$CPPFLAGS"
1028 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1029 +
1030 + save_LDFLAGS="$LDFLAGS"
1031 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1032 +
1033 + save_LIBS="$LIBS"
1034 + LIBS="$lt_cv_dlopen_libs $LIBS"
1035 +
1036 + AC_CACHE_CHECK([whether a program can dlopen itself],
1037 + lt_cv_dlopen_self, [dnl
1038 + _LT_AC_TRY_DLOPEN_SELF(
1039 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1040 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1041 + ])
1042 +
1043 + if test "x$lt_cv_dlopen_self" = xyes; then
1044 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1045 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1046 + lt_cv_dlopen_self_static, [dnl
1047 + _LT_AC_TRY_DLOPEN_SELF(
1048 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1049 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1050 + ])
1051 + fi
1052 +
1053 + CPPFLAGS="$save_CPPFLAGS"
1054 + LDFLAGS="$save_LDFLAGS"
1055 + LIBS="$save_LIBS"
1056 + ;;
1057 + esac
1058 +
1059 + case $lt_cv_dlopen_self in
1060 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1061 + *) enable_dlopen_self=unknown ;;
1062 + esac
1063 +
1064 + case $lt_cv_dlopen_self_static in
1065 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1066 + *) enable_dlopen_self_static=unknown ;;
1067 + esac
1068 +fi
1069 +])# AC_LIBTOOL_DLOPEN_SELF
1070 +
1071 +
1072 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1073 +# ---------------------------------
1074 +# Check to see if options -c and -o are simultaneously supported by compiler
1075 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1076 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1077 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1078 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1079 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1080 + $rm -r conftest 2>/dev/null
1081 + mkdir conftest
1082 + cd conftest
1083 + mkdir out
1084 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1085 +
1086 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1087 + # Insert the option either (1) after the last *FLAGS variable, or
1088 + # (2) before a word containing "conftest.", or (3) at the end.
1089 + # Note that $ac_compile itself does not contain backslashes and begins
1090 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1091 + lt_compile=`echo "$ac_compile" | $SED \
1092 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1093 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1094 + -e 's:$: $lt_compiler_flag:'`
1095 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1096 + (eval "$lt_compile" 2>out/conftest.err)
1097 + ac_status=$?
1098 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1099 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1100 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1101 + then
1102 + # The compiler can only warn and ignore the option if not recognized
1103 + # So say no if there are warnings
1104 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1105 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1106 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1107 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1108 + fi
1109 + fi
1110 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1111 + $rm conftest*
1112 + # SGI C++ compiler will create directory out/ii_files/ for
1113 + # template instantiation
1114 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1115 + $rm out/* && rmdir out
1116 + cd ..
1117 + rmdir conftest
1118 + $rm conftest*
1119 +])
1120 +])# AC_LIBTOOL_PROG_CC_C_O
1121 +
1122 +
1123 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1124 +# -----------------------------------------
1125 +# Check to see if we can do hard links to lock some files if needed
1126 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1127 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1128 +
1129 +hard_links="nottested"
1130 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1131 + # do not overwrite the value of need_locks provided by the user
1132 + AC_MSG_CHECKING([if we can lock with hard links])
1133 + hard_links=yes
1134 + $rm conftest*
1135 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1136 + touch conftest.a
1137 + ln conftest.a conftest.b 2>&5 || hard_links=no
1138 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1139 + AC_MSG_RESULT([$hard_links])
1140 + if test "$hard_links" = no; then
1141 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1142 + need_locks=warn
1143 + fi
1144 +else
1145 + need_locks=no
1146 +fi
1147 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1148 +
1149 +
1150 +# AC_LIBTOOL_OBJDIR
1151 +# -----------------
1152 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1153 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1154 +[rm -f .libs 2>/dev/null
1155 +mkdir .libs 2>/dev/null
1156 +if test -d .libs; then
1157 + lt_cv_objdir=.libs
1158 +else
1159 + # MS-DOS does not allow filenames that begin with a dot.
1160 + lt_cv_objdir=_libs
1161 +fi
1162 +rmdir .libs 2>/dev/null])
1163 +objdir=$lt_cv_objdir
1164 +])# AC_LIBTOOL_OBJDIR
1165 +
1166 +
1167 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1168 +# ----------------------------------------------
1169 +# Check hardcoding attributes.
1170 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1171 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
1172 +_LT_AC_TAGVAR(hardcode_action, $1)=
1173 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1174 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1175 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1176 +
1177 + # We can hardcode non-existant directories.
1178 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1179 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1180 + # have to relink, otherwise we might link with an installed library
1181 + # when we should be linking with a yet-to-be-installed one
1182 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1183 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1184 + # Linking always hardcodes the temporary library directory.
1185 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
1186 + else
1187 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1188 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1189 + fi
1190 +else
1191 + # We cannot hardcode anything, or else we can only hardcode existing
1192 + # directories.
1193 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1194 +fi
1195 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1196 +
1197 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1198 + # Fast installation is not supported
1199 + enable_fast_install=no
1200 +elif test "$shlibpath_overrides_runpath" = yes ||
1201 + test "$enable_shared" = no; then
1202 + # Fast installation is not necessary
1203 + enable_fast_install=needless
1204 +fi
1205 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1206 +
1207 +
1208 +# AC_LIBTOOL_SYS_LIB_STRIP
1209 +# ------------------------
1210 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1211 +[striplib=
1212 +old_striplib=
1213 +AC_MSG_CHECKING([whether stripping libraries is possible])
1214 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1215 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1216 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1217 + AC_MSG_RESULT([yes])
1218 +else
1219 +# FIXME - insert some real tests, host_os isn't really good enough
1220 + case $host_os in
1221 + darwin*)
1222 + if test -n "$STRIP" ; then
1223 + striplib="$STRIP -x"
1224 + AC_MSG_RESULT([yes])
1225 + else
1226 + AC_MSG_RESULT([no])
1227 +fi
1228 + ;;
1229 + *)
1230 + AC_MSG_RESULT([no])
1231 + ;;
1232 + esac
1233 +fi
1234 +])# AC_LIBTOOL_SYS_LIB_STRIP
1235 +
1236 +
1237 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1238 +# -----------------------------
1239 +# PORTME Fill in your ld.so characteristics
1240 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1241 +[AC_MSG_CHECKING([dynamic linker characteristics])
1242 +library_names_spec=
1243 +libname_spec='lib$name'
1244 +soname_spec=
1245 +shrext_cmds=".so"
1246 +postinstall_cmds=
1247 +postuninstall_cmds=
1248 +finish_cmds=
1249 +finish_eval=
1250 +shlibpath_var=
1251 +shlibpath_overrides_runpath=unknown
1252 +version_type=none
1253 +dynamic_linker="$host_os ld.so"
1254 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1255 +if test "$GCC" = yes; then
1256 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1257 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1258 + # if the path contains ";" then we assume it to be the separator
1259 + # otherwise default to the standard path separator (i.e. ":") - it is
1260 + # assumed that no part of a normal pathname contains ";" but that should
1261 + # okay in the real world where ";" in dirpaths is itself problematic.
1262 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1263 + else
1264 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1265 + fi
1266 +else
1267 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1268 +fi
1269 +need_lib_prefix=unknown
1270 +hardcode_into_libs=no
1271 +
1272 +# when you set need_version to no, make sure it does not cause -set_version
1273 +# flags to be left without arguments
1274 +need_version=unknown
1275 +
1276 +case $host_os in
1277 +aix3*)
1278 + version_type=linux
1279 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1280 + shlibpath_var=LIBPATH
1281 +
1282 + # AIX 3 has no versioning support, so we append a major version to the name.
1283 + soname_spec='${libname}${release}${shared_ext}$major'
1284 + ;;
1285 +
1286 +aix4* | aix5*)
1287 + version_type=linux
1288 + need_lib_prefix=no
1289 + need_version=no
1290 + hardcode_into_libs=yes
1291 + if test "$host_cpu" = ia64; then
1292 + # AIX 5 supports IA64
1293 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1294 + shlibpath_var=LD_LIBRARY_PATH
1295 + else
1296 + # With GCC up to 2.95.x, collect2 would create an import file
1297 + # for dependence libraries. The import file would start with
1298 + # the line `#! .'. This would cause the generated library to
1299 + # depend on `.', always an invalid library. This was fixed in
1300 + # development snapshots of GCC prior to 3.0.
1301 + case $host_os in
1302 + aix4 | aix4.[[01]] | aix4.[[01]].*)
1303 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1304 + echo ' yes '
1305 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1306 + :
1307 + else
1308 + can_build_shared=no
1309 + fi
1310 + ;;
1311 + esac
1312 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1313 + # soname into executable. Probably we can add versioning support to
1314 + # collect2, so additional links can be useful in future.
1315 + if test "$aix_use_runtimelinking" = yes; then
1316 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1317 + # instead of lib<name>.a to let people know that these are not
1318 + # typical AIX shared libraries.
1319 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1320 + else
1321 + # We preserve .a as extension for shared libraries through AIX4.2
1322 + # and later when we are not doing run time linking.
1323 + library_names_spec='${libname}${release}.a $libname.a'
1324 + soname_spec='${libname}${release}${shared_ext}$major'
1325 + fi
1326 + shlibpath_var=LIBPATH
1327 + fi
1328 + ;;
1329 +
1330 +amigaos*)
1331 + library_names_spec='$libname.ixlibrary $libname.a'
1332 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1333 + 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'
1334 + ;;
1335 +
1336 +beos*)
1337 + library_names_spec='${libname}${shared_ext}'
1338 + dynamic_linker="$host_os ld.so"
1339 + shlibpath_var=LIBRARY_PATH
1340 + ;;
1341 +
1342 +bsdi[[45]]*)
1343 + version_type=linux
1344 + need_version=no
1345 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1346 + soname_spec='${libname}${release}${shared_ext}$major'
1347 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1348 + shlibpath_var=LD_LIBRARY_PATH
1349 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1350 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1351 + # the default ld.so.conf also contains /usr/contrib/lib and
1352 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1353 + # libtool to hard-code these into programs
1354 + ;;
1355 +
1356 +cygwin* | mingw* | pw32*)
1357 + version_type=windows
1358 + shrext_cmds=".dll"
1359 + need_version=no
1360 + need_lib_prefix=no
1361 +
1362 + case $GCC,$host_os in
1363 + yes,cygwin* | yes,mingw* | yes,pw32*)
1364 + library_names_spec='$libname.dll.a'
1365 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1366 + postinstall_cmds='base_file=`basename \${file}`~
1367 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1368 + dldir=$destdir/`dirname \$dlpath`~
1369 + test -d \$dldir || mkdir -p \$dldir~
1370 + $install_prog $dir/$dlname \$dldir/$dlname~
1371 + chmod a+x \$dldir/$dlname'
1372 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1373 + dlpath=$dir/\$dldll~
1374 + $rm \$dlpath'
1375 + shlibpath_overrides_runpath=yes
1376 +
1377 + case $host_os in
1378 + cygwin*)
1379 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1380 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1381 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1382 + ;;
1383 + mingw*)
1384 + # MinGW DLLs use traditional 'lib' prefix
1385 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1386 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1387 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1388 + # It is most probably a Windows format PATH printed by
1389 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1390 + # path with ; separators, and with drive letters. We can handle the
1391 + # drive letters (cygwin fileutils understands them), so leave them,
1392 + # especially as we might pass files found there to a mingw objdump,
1393 + # which wouldn't understand a cygwinified path. Ahh.
1394 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1395 + else
1396 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1397 + fi
1398 + ;;
1399 + pw32*)
1400 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1401 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1402 + ;;
1403 + esac
1404 + ;;
1405 +
1406 + linux*)
1407 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1408 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1409 + supports_anon_versioning=no
1410 + case `$LD -v 2>/dev/null` in
1411 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1412 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1413 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1414 + *\ 2.11.*) ;; # other 2.11 versions
1415 + *) supports_anon_versioning=yes ;;
1416 + esac
1417 + if test $supports_anon_versioning = yes; then
1418 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1419 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1420 +$echo "local: *; };" >> $output_objdir/$libname.ver~
1421 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1422 + else
1423 + $archive_expsym_cmds="$archive_cmds"
1424 + fi
1425 + else
1426 + ld_shlibs=no
1427 + fi
1428 + ;;
1429 +
1430 + *)
1431 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1432 + ;;
1433 + esac
1434 + dynamic_linker='Win32 ld.exe'
1435 + # FIXME: first we should search . and the directory the executable is in
1436 + shlibpath_var=PATH
1437 + ;;
1438 +
1439 +darwin* | rhapsody*)
1440 + dynamic_linker="$host_os dyld"
1441 + version_type=darwin
1442 + need_lib_prefix=no
1443 + need_version=no
1444 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1445 + soname_spec='${libname}${release}${major}$shared_ext'
1446 + shlibpath_overrides_runpath=yes
1447 + shlibpath_var=DYLD_LIBRARY_PATH
1448 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1449 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1450 + if test "$GCC" = yes; then
1451 + 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"`
1452 + else
1453 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1454 + fi
1455 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1456 + ;;
1457 +
1458 +dgux*)
1459 + version_type=linux
1460 + need_lib_prefix=no
1461 + need_version=no
1462 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1463 + soname_spec='${libname}${release}${shared_ext}$major'
1464 + shlibpath_var=LD_LIBRARY_PATH
1465 + ;;
1466 +
1467 +freebsd1*)
1468 + dynamic_linker=no
1469 + ;;
1470 +
1471 +kfreebsd*-gnu)
1472 + version_type=linux
1473 + need_lib_prefix=no
1474 + need_version=no
1475 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1476 + soname_spec='${libname}${release}${shared_ext}$major'
1477 + shlibpath_var=LD_LIBRARY_PATH
1478 + shlibpath_overrides_runpath=no
1479 + hardcode_into_libs=yes
1480 + dynamic_linker='GNU ld.so'
1481 + ;;
1482 +
1483 +freebsd* | dragonfly*)
1484 + # DragonFly does not have aout. When/if they implement a new
1485 + # versioning mechanism, adjust this.
1486 + if test -x /usr/bin/objformat; then
1487 + objformat=`/usr/bin/objformat`
1488 + else
1489 + case $host_os in
1490 + freebsd[[123]]*) objformat=aout ;;
1491 + *) objformat=elf ;;
1492 + esac
1493 + fi
1494 + # Handle Gentoo/FreeBSD as it was Linux
1495 + case $host_vendor in
1496 + gentoo)
1497 + version_type=linux ;;
1498 + *)
1499 + version_type=freebsd-$objformat ;;
1500 + esac
1501 +
1502 + case $version_type in
1503 + freebsd-elf*)
1504 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1505 + need_version=no
1506 + need_lib_prefix=no
1507 + ;;
1508 + freebsd-*)
1509 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1510 + need_version=yes
1511 + ;;
1512 + linux)
1513 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1514 + soname_spec='${libname}${release}${shared_ext}$major'
1515 + need_lib_prefix=no
1516 + need_version=no
1517 + ;;
1518 + esac
1519 + shlibpath_var=LD_LIBRARY_PATH
1520 + case $host_os in
1521 + freebsd2*)
1522 + shlibpath_overrides_runpath=yes
1523 + ;;
1524 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1525 + shlibpath_overrides_runpath=yes
1526 + hardcode_into_libs=yes
1527 + ;;
1528 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1529 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1530 + shlibpath_overrides_runpath=no
1531 + hardcode_into_libs=yes
1532 + ;;
1533 + freebsd*) # from 4.6 on
1534 + shlibpath_overrides_runpath=yes
1535 + hardcode_into_libs=yes
1536 + ;;
1537 + esac
1538 + ;;
1539 +
1540 +gnu*)
1541 + version_type=linux
1542 + need_lib_prefix=no
1543 + need_version=no
1544 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1545 + soname_spec='${libname}${release}${shared_ext}$major'
1546 + shlibpath_var=LD_LIBRARY_PATH
1547 + hardcode_into_libs=yes
1548 + ;;
1549 +
1550 +hpux9* | hpux10* | hpux11*)
1551 + # Give a soname corresponding to the major version so that dld.sl refuses to
1552 + # link against other versions.
1553 + version_type=sunos
1554 + need_lib_prefix=no
1555 + need_version=no
1556 + case $host_cpu in
1557 + ia64*)
1558 + shrext_cmds='.so'
1559 + hardcode_into_libs=yes
1560 + dynamic_linker="$host_os dld.so"
1561 + shlibpath_var=LD_LIBRARY_PATH
1562 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1563 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1564 + soname_spec='${libname}${release}${shared_ext}$major'
1565 + if test "X$HPUX_IA64_MODE" = X32; then
1566 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1567 + else
1568 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1569 + fi
1570 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1571 + ;;
1572 + hppa*64*)
1573 + shrext_cmds='.sl'
1574 + hardcode_into_libs=yes
1575 + dynamic_linker="$host_os dld.sl"
1576 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1577 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1578 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1579 + soname_spec='${libname}${release}${shared_ext}$major'
1580 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1581 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1582 + ;;
1583 + *)
1584 + shrext_cmds='.sl'
1585 + dynamic_linker="$host_os dld.sl"
1586 + shlibpath_var=SHLIB_PATH
1587 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1588 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1589 + soname_spec='${libname}${release}${shared_ext}$major'
1590 + ;;
1591 + esac
1592 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1593 + postinstall_cmds='chmod 555 $lib'
1594 + ;;
1595 +
1596 +interix3*)
1597 + version_type=linux
1598 + need_lib_prefix=no
1599 + need_version=no
1600 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1601 + soname_spec='${libname}${release}${shared_ext}$major'
1602 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1603 + shlibpath_var=LD_LIBRARY_PATH
1604 + shlibpath_overrides_runpath=no
1605 + hardcode_into_libs=yes
1606 + ;;
1607 +
1608 +irix5* | irix6* | nonstopux*)
1609 + case $host_os in
1610 + nonstopux*) version_type=nonstopux ;;
1611 + *)
1612 + if test "$lt_cv_prog_gnu_ld" = yes; then
1613 + version_type=linux
1614 + else
1615 + version_type=irix
1616 + fi ;;
1617 + esac
1618 + need_lib_prefix=no
1619 + need_version=no
1620 + soname_spec='${libname}${release}${shared_ext}$major'
1621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1622 + case $host_os in
1623 + irix5* | nonstopux*)
1624 + libsuff= shlibsuff=
1625 + ;;
1626 + *)
1627 + case $LD in # libtool.m4 will add one of these switches to LD
1628 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1629 + libsuff= shlibsuff= libmagic=32-bit;;
1630 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1631 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1632 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1633 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1634 + *) libsuff= shlibsuff= libmagic=never-match;;
1635 + esac
1636 + ;;
1637 + esac
1638 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1639 + shlibpath_overrides_runpath=no
1640 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1641 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1642 + hardcode_into_libs=yes
1643 + ;;
1644 +
1645 +# No shared lib support for Linux oldld, aout, or coff.
1646 +linux*oldld* | linux*aout* | linux*coff*)
1647 + dynamic_linker=no
1648 + ;;
1649 +
1650 +# This must be Linux ELF.
1651 +linux*)
1652 + version_type=linux
1653 + need_lib_prefix=no
1654 + need_version=no
1655 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1656 + soname_spec='${libname}${release}${shared_ext}$major'
1657 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1658 + shlibpath_var=LD_LIBRARY_PATH
1659 + shlibpath_overrides_runpath=no
1660 + # This implies no fast_install, which is unacceptable.
1661 + # Some rework will be needed to allow for fast_install
1662 + # before this can be enabled.
1663 + hardcode_into_libs=yes
1664 +
1665 + # Append ld.so.conf contents to the search path
1666 + if test -f /etc/ld.so.conf; then
1667 + 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' ' '`
1668 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1669 + fi
1670 +
1671 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1672 + # powerpc, because MkLinux only supported shared libraries with the
1673 + # GNU dynamic linker. Since this was broken with cross compilers,
1674 + # most powerpc-linux boxes support dynamic linking these days and
1675 + # people can always --disable-shared, the test was removed, and we
1676 + # assume the GNU/Linux dynamic linker is in use.
1677 + dynamic_linker='GNU/Linux ld.so'
1678 + ;;
1679 +
1680 +knetbsd*-gnu)
1681 + version_type=linux
1682 + need_lib_prefix=no
1683 + need_version=no
1684 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1685 + soname_spec='${libname}${release}${shared_ext}$major'
1686 + shlibpath_var=LD_LIBRARY_PATH
1687 + shlibpath_overrides_runpath=no
1688 + hardcode_into_libs=yes
1689 + dynamic_linker='GNU ld.so'
1690 + ;;
1691 +
1692 +netbsd*)
1693 + version_type=sunos
1694 + need_lib_prefix=no
1695 + need_version=no
1696 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1698 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1699 + dynamic_linker='NetBSD (a.out) ld.so'
1700 + else
1701 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1702 + soname_spec='${libname}${release}${shared_ext}$major'
1703 + dynamic_linker='NetBSD ld.elf_so'
1704 + fi
1705 + shlibpath_var=LD_LIBRARY_PATH
1706 + shlibpath_overrides_runpath=yes
1707 + hardcode_into_libs=yes
1708 + ;;
1709 +
1710 +newsos6)
1711 + version_type=linux
1712 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1713 + shlibpath_var=LD_LIBRARY_PATH
1714 + shlibpath_overrides_runpath=yes
1715 + ;;
1716 +
1717 +nto-qnx*)
1718 + version_type=linux
1719 + need_lib_prefix=no
1720 + need_version=no
1721 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1722 + soname_spec='${libname}${release}${shared_ext}$major'
1723 + shlibpath_var=LD_LIBRARY_PATH
1724 + shlibpath_overrides_runpath=yes
1725 + ;;
1726 +
1727 +openbsd*)
1728 + version_type=sunos
1729 + sys_lib_dlsearch_path_spec="/usr/lib"
1730 + need_lib_prefix=no
1731 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1732 + case $host_os in
1733 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1734 + *) need_version=no ;;
1735 + esac
1736 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1737 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1738 + shlibpath_var=LD_LIBRARY_PATH
1739 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1740 + case $host_os in
1741 + openbsd2.[[89]] | openbsd2.[[89]].*)
1742 + shlibpath_overrides_runpath=no
1743 + ;;
1744 + *)
1745 + shlibpath_overrides_runpath=yes
1746 + ;;
1747 + esac
1748 + else
1749 + shlibpath_overrides_runpath=yes
1750 + fi
1751 + ;;
1752 +
1753 +os2*)
1754 + libname_spec='$name'
1755 + shrext_cmds=".dll"
1756 + need_lib_prefix=no
1757 + library_names_spec='$libname${shared_ext} $libname.a'
1758 + dynamic_linker='OS/2 ld.exe'
1759 + shlibpath_var=LIBPATH
1760 + ;;
1761 +
1762 +osf3* | osf4* | osf5*)
1763 + version_type=osf
1764 + need_lib_prefix=no
1765 + need_version=no
1766 + soname_spec='${libname}${release}${shared_ext}$major'
1767 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1768 + shlibpath_var=LD_LIBRARY_PATH
1769 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1770 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1771 + ;;
1772 +
1773 +solaris*)
1774 + version_type=linux
1775 + need_lib_prefix=no
1776 + need_version=no
1777 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1778 + soname_spec='${libname}${release}${shared_ext}$major'
1779 + shlibpath_var=LD_LIBRARY_PATH
1780 + shlibpath_overrides_runpath=yes
1781 + hardcode_into_libs=yes
1782 + # ldd complains unless libraries are executable
1783 + postinstall_cmds='chmod +x $lib'
1784 + ;;
1785 +
1786 +sunos4*)
1787 + version_type=sunos
1788 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1789 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1790 + shlibpath_var=LD_LIBRARY_PATH
1791 + shlibpath_overrides_runpath=yes
1792 + if test "$with_gnu_ld" = yes; then
1793 + need_lib_prefix=no
1794 + fi
1795 + need_version=yes
1796 + ;;
1797 +
1798 +sysv4 | sysv4.3*)
1799 + version_type=linux
1800 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1801 + soname_spec='${libname}${release}${shared_ext}$major'
1802 + shlibpath_var=LD_LIBRARY_PATH
1803 + case $host_vendor in
1804 + sni)
1805 + shlibpath_overrides_runpath=no
1806 + need_lib_prefix=no
1807 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1808 + runpath_var=LD_RUN_PATH
1809 + ;;
1810 + siemens)
1811 + need_lib_prefix=no
1812 + ;;
1813 + motorola)
1814 + need_lib_prefix=no
1815 + need_version=no
1816 + shlibpath_overrides_runpath=no
1817 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1818 + ;;
1819 + esac
1820 + ;;
1821 +
1822 +sysv4*MP*)
1823 + if test -d /usr/nec ;then
1824 + version_type=linux
1825 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1826 + soname_spec='$libname${shared_ext}.$major'
1827 + shlibpath_var=LD_LIBRARY_PATH
1828 + fi
1829 + ;;
1830 +
1831 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1832 + version_type=freebsd-elf
1833 + need_lib_prefix=no
1834 + need_version=no
1835 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1836 + soname_spec='${libname}${release}${shared_ext}$major'
1837 + shlibpath_var=LD_LIBRARY_PATH
1838 + hardcode_into_libs=yes
1839 + if test "$with_gnu_ld" = yes; then
1840 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1841 + shlibpath_overrides_runpath=no
1842 + else
1843 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1844 + shlibpath_overrides_runpath=yes
1845 + case $host_os in
1846 + sco3.2v5*)
1847 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1848 + ;;
1849 + esac
1850 + fi
1851 + sys_lib_dlsearch_path_spec='/usr/lib'
1852 + ;;
1853 +
1854 +uts4*)
1855 + version_type=linux
1856 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1857 + soname_spec='${libname}${release}${shared_ext}$major'
1858 + shlibpath_var=LD_LIBRARY_PATH
1859 + ;;
1860 +
1861 +*)
1862 + dynamic_linker=no
1863 + ;;
1864 +esac
1865 +AC_MSG_RESULT([$dynamic_linker])
1866 +test "$dynamic_linker" = no && can_build_shared=no
1867 +
1868 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1869 +if test "$GCC" = yes; then
1870 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1871 +fi
1872 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1873 +
1874 +
1875 +# _LT_AC_TAGCONFIG
1876 +# ----------------
1877 +AC_DEFUN([_LT_AC_TAGCONFIG],
1878 +[AC_ARG_WITH([tags],
1879 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1880 + [include additional configurations @<:@automatic@:>@])],
1881 + [tagnames="$withval"])
1882 +
1883 +if test -f "$ltmain" && test -n "$tagnames"; then
1884 + if test ! -f "${ofile}"; then
1885 + AC_MSG_WARN([output file `$ofile' does not exist])
1886 + fi
1887 +
1888 + if test -z "$LTCC"; then
1889 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1890 + if test -z "$LTCC"; then
1891 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1892 + else
1893 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1894 + fi
1895 + fi
1896 + if test -z "$LTCFLAGS"; then
1897 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1898 + fi
1899 +
1900 + # Extract list of available tagged configurations in $ofile.
1901 + # Note that this assumes the entire list is on one line.
1902 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1903 +
1904 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1905 + for tagname in $tagnames; do
1906 + IFS="$lt_save_ifs"
1907 + # Check whether tagname contains only valid characters
1908 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1909 + "") ;;
1910 + *) AC_MSG_ERROR([invalid tag name: $tagname])
1911 + ;;
1912 + esac
1913 +
1914 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1915 + then
1916 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
1917 + fi
1918 +
1919 + # Update the list of available tags.
1920 + if test -n "$tagname"; then
1921 + echo appending configuration tag \"$tagname\" to $ofile
1922 +
1923 + case $tagname in
1924 + CXX)
1925 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1926 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1927 + (test "X$CXX" != "Xg++"))) ; then
1928 + AC_LIBTOOL_LANG_CXX_CONFIG
1929 + else
1930 + tagname=""
1931 + fi
1932 + ;;
1933 +
1934 + F77)
1935 + if test -n "$F77" && test "X$F77" != "Xno"; then
1936 + AC_LIBTOOL_LANG_F77_CONFIG
1937 + else
1938 + tagname=""
1939 + fi
1940 + ;;
1941 +
1942 + GCJ)
1943 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1944 + AC_LIBTOOL_LANG_GCJ_CONFIG
1945 + else
1946 + tagname=""
1947 + fi
1948 + ;;
1949 +
1950 + RC)
1951 + AC_LIBTOOL_LANG_RC_CONFIG
1952 + ;;
1953 +
1954 + *)
1955 + AC_MSG_ERROR([Unsupported tag name: $tagname])
1956 + ;;
1957 + esac
1958 +
1959 + # Append the new tag name to the list of available tags.
1960 + if test -n "$tagname" ; then
1961 + available_tags="$available_tags $tagname"
1962 + fi
1963 + fi
1964 + done
1965 + IFS="$lt_save_ifs"
1966 +
1967 + # Now substitute the updated list of available tags.
1968 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1969 + mv "${ofile}T" "$ofile"
1970 + chmod +x "$ofile"
1971 + else
1972 + rm -f "${ofile}T"
1973 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
1974 + fi
1975 +fi
1976 +])# _LT_AC_TAGCONFIG
1977 +
1978 +
1979 +# AC_LIBTOOL_DLOPEN
1980 +# -----------------
1981 +# enable checks for dlopen support
1982 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
1983 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1984 +])# AC_LIBTOOL_DLOPEN
1985 +
1986 +
1987 +# AC_LIBTOOL_WIN32_DLL
1988 +# --------------------
1989 +# declare package support for building win32 DLLs
1990 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1991 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1992 +])# AC_LIBTOOL_WIN32_DLL
1993 +
1994 +
1995 +# AC_ENABLE_SHARED([DEFAULT])
1996 +# ---------------------------
1997 +# implement the --enable-shared flag
1998 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1999 +AC_DEFUN([AC_ENABLE_SHARED],
2000 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2001 +AC_ARG_ENABLE([shared],
2002 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2003 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2004 + [p=${PACKAGE-default}
2005 + case $enableval in
2006 + yes) enable_shared=yes ;;
2007 + no) enable_shared=no ;;
2008 + *)
2009 + enable_shared=no
2010 + # Look at the argument we got. We use all the common list separators.
2011 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012 + for pkg in $enableval; do
2013 + IFS="$lt_save_ifs"
2014 + if test "X$pkg" = "X$p"; then
2015 + enable_shared=yes
2016 + fi
2017 + done
2018 + IFS="$lt_save_ifs"
2019 + ;;
2020 + esac],
2021 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2022 +])# AC_ENABLE_SHARED
2023 +
2024 +
2025 +# AC_DISABLE_SHARED
2026 +# -----------------
2027 +# set the default shared flag to --disable-shared
2028 +AC_DEFUN([AC_DISABLE_SHARED],
2029 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2030 +AC_ENABLE_SHARED(no)
2031 +])# AC_DISABLE_SHARED
2032 +
2033 +
2034 +# AC_ENABLE_STATIC([DEFAULT])
2035 +# ---------------------------
2036 +# implement the --enable-static flag
2037 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2038 +AC_DEFUN([AC_ENABLE_STATIC],
2039 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2040 +AC_ARG_ENABLE([static],
2041 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2042 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2043 + [p=${PACKAGE-default}
2044 + case $enableval in
2045 + yes) enable_static=yes ;;
2046 + no) enable_static=no ;;
2047 + *)
2048 + enable_static=no
2049 + # Look at the argument we got. We use all the common list separators.
2050 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2051 + for pkg in $enableval; do
2052 + IFS="$lt_save_ifs"
2053 + if test "X$pkg" = "X$p"; then
2054 + enable_static=yes
2055 + fi
2056 + done
2057 + IFS="$lt_save_ifs"
2058 + ;;
2059 + esac],
2060 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2061 +])# AC_ENABLE_STATIC
2062 +
2063 +
2064 +# AC_DISABLE_STATIC
2065 +# -----------------
2066 +# set the default static flag to --disable-static
2067 +AC_DEFUN([AC_DISABLE_STATIC],
2068 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2069 +AC_ENABLE_STATIC(no)
2070 +])# AC_DISABLE_STATIC
2071 +
2072 +
2073 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
2074 +# ---------------------------------
2075 +# implement the --enable-fast-install flag
2076 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2077 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2078 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2079 +AC_ARG_ENABLE([fast-install],
2080 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2081 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2082 + [p=${PACKAGE-default}
2083 + case $enableval in
2084 + yes) enable_fast_install=yes ;;
2085 + no) enable_fast_install=no ;;
2086 + *)
2087 + enable_fast_install=no
2088 + # Look at the argument we got. We use all the common list separators.
2089 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2090 + for pkg in $enableval; do
2091 + IFS="$lt_save_ifs"
2092 + if test "X$pkg" = "X$p"; then
2093 + enable_fast_install=yes
2094 + fi
2095 + done
2096 + IFS="$lt_save_ifs"
2097 + ;;
2098 + esac],
2099 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2100 +])# AC_ENABLE_FAST_INSTALL
2101 +
2102 +
2103 +# AC_DISABLE_FAST_INSTALL
2104 +# -----------------------
2105 +# set the default to --disable-fast-install
2106 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2107 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2108 +AC_ENABLE_FAST_INSTALL(no)
2109 +])# AC_DISABLE_FAST_INSTALL
2110 +
2111 +
2112 +# AC_LIBTOOL_PICMODE([MODE])
2113 +# --------------------------
2114 +# implement the --with-pic flag
2115 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2116 +AC_DEFUN([AC_LIBTOOL_PICMODE],
2117 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2118 +pic_mode=ifelse($#,1,$1,default)
2119 +])# AC_LIBTOOL_PICMODE
2120 +
2121 +
2122 +# AC_PROG_EGREP
2123 +# -------------
2124 +# This is predefined starting with Autoconf 2.54, so this conditional
2125 +# definition can be removed once we require Autoconf 2.54 or later.
2126 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2127 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2128 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2129 + then ac_cv_prog_egrep='grep -E'
2130 + else ac_cv_prog_egrep='egrep'
2131 + fi])
2132 + EGREP=$ac_cv_prog_egrep
2133 + AC_SUBST([EGREP])
2134 +])])
2135 +
2136 +
2137 +# AC_PATH_TOOL_PREFIX
2138 +# -------------------
2139 +# find a file program which can recognise shared library
2140 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
2141 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2142 +AC_MSG_CHECKING([for $1])
2143 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2144 +[case $MAGIC_CMD in
2145 +[[\\/*] | ?:[\\/]*])
2146 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2147 + ;;
2148 +*)
2149 + lt_save_MAGIC_CMD="$MAGIC_CMD"
2150 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2151 +dnl $ac_dummy forces splitting on constant user-supplied paths.
2152 +dnl POSIX.2 word splitting is done only on the output of word expansions,
2153 +dnl not every word. This closes a longstanding sh security hole.
2154 + ac_dummy="ifelse([$2], , $PATH, [$2])"
2155 + for ac_dir in $ac_dummy; do
2156 + IFS="$lt_save_ifs"
2157 + test -z "$ac_dir" && ac_dir=.
2158 + if test -f $ac_dir/$1; then
2159 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2160 + if test -n "$file_magic_test_file"; then
2161 + case $deplibs_check_method in
2162 + "file_magic "*)
2163 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2164 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2165 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2166 + $EGREP "$file_magic_regex" > /dev/null; then
2167 + :
2168 + else
2169 + cat <<EOF 1>&2
2170 +
2171 +*** Warning: the command libtool uses to detect shared libraries,
2172 +*** $file_magic_cmd, produces output that libtool cannot recognize.
2173 +*** The result is that libtool may fail to recognize shared libraries
2174 +*** as such. This will affect the creation of libtool libraries that
2175 +*** depend on shared libraries, but programs linked with such libtool
2176 +*** libraries will work regardless of this problem. Nevertheless, you
2177 +*** may want to report the problem to your system manager and/or to
2178 +*** bug-libtool@gnu.org
2179 +
2180 +EOF
2181 + fi ;;
2182 + esac
2183 + fi
2184 + break
2185 + fi
2186 + done
2187 + IFS="$lt_save_ifs"
2188 + MAGIC_CMD="$lt_save_MAGIC_CMD"
2189 + ;;
2190 +esac])
2191 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2192 +if test -n "$MAGIC_CMD"; then
2193 + AC_MSG_RESULT($MAGIC_CMD)
2194 +else
2195 + AC_MSG_RESULT(no)
2196 +fi
2197 +])# AC_PATH_TOOL_PREFIX
2198 +
2199 +
2200 +# AC_PATH_MAGIC
2201 +# -------------
2202 +# find a file program which can recognise a shared library
2203 +AC_DEFUN([AC_PATH_MAGIC],
2204 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2205 +if test -z "$lt_cv_path_MAGIC_CMD"; then
2206 + if test -n "$ac_tool_prefix"; then
2207 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2208 + else
2209 + MAGIC_CMD=:
2210 + fi
2211 +fi
2212 +])# AC_PATH_MAGIC
2213 +
2214 +
2215 +# AC_PROG_LD
2216 +# ----------
2217 +# find the pathname to the GNU or non-GNU linker
2218 +AC_DEFUN([AC_PROG_LD],
2219 +[AC_ARG_WITH([gnu-ld],
2220 + [AC_HELP_STRING([--with-gnu-ld],
2221 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2222 + [test "$withval" = no || with_gnu_ld=yes],
2223 + [with_gnu_ld=no])
2224 +AC_REQUIRE([LT_AC_PROG_SED])dnl
2225 +AC_REQUIRE([AC_PROG_CC])dnl
2226 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
2227 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2228 +ac_prog=ld
2229 +if test "$GCC" = yes; then
2230 + # Check if gcc -print-prog-name=ld gives a path.
2231 + AC_MSG_CHECKING([for ld used by $CC])
2232 + case $host in
2233 + *-*-mingw*)
2234 + # gcc leaves a trailing carriage return which upsets mingw
2235 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2236 + *)
2237 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2238 + esac
2239 + case $ac_prog in
2240 + # Accept absolute paths.
2241 + [[\\/]]* | ?:[[\\/]]*)
2242 + re_direlt='/[[^/]][[^/]]*/\.\./'
2243 + # Canonicalize the pathname of ld
2244 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2245 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2246 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2247 + done
2248 + test -z "$LD" && LD="$ac_prog"
2249 + ;;
2250 + "")
2251 + # If it fails, then pretend we aren't using GCC.
2252 + ac_prog=ld
2253 + ;;
2254 + *)
2255 + # If it is relative, then search for the first ld in PATH.
2256 + with_gnu_ld=unknown
2257 + ;;
2258 + esac
2259 +elif test "$with_gnu_ld" = yes; then
2260 + AC_MSG_CHECKING([for GNU ld])
2261 +else
2262 + AC_MSG_CHECKING([for non-GNU ld])
2263 +fi
2264 +AC_CACHE_VAL(lt_cv_path_LD,
2265 +[if test -z "$LD"; then
2266 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2267 + for ac_dir in $PATH; do
2268 + IFS="$lt_save_ifs"
2269 + test -z "$ac_dir" && ac_dir=.
2270 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2271 + lt_cv_path_LD="$ac_dir/$ac_prog"
2272 + # Check to see if the program is GNU ld. I'd rather use --version,
2273 + # but apparently some variants of GNU ld only accept -v.
2274 + # Break only if it was the GNU/non-GNU ld that we prefer.
2275 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2276 + *GNU* | *'with BFD'*)
2277 + test "$with_gnu_ld" != no && break
2278 + ;;
2279 + *)
2280 + test "$with_gnu_ld" != yes && break
2281 + ;;
2282 + esac
2283 + fi
2284 + done
2285 + IFS="$lt_save_ifs"
2286 +else
2287 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
2288 +fi])
2289 +LD="$lt_cv_path_LD"
2290 +if test -n "$LD"; then
2291 + AC_MSG_RESULT($LD)
2292 +else
2293 + AC_MSG_RESULT(no)
2294 +fi
2295 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2296 +AC_PROG_LD_GNU
2297 +])# AC_PROG_LD
2298 +
2299 +
2300 +# AC_PROG_LD_GNU
2301 +# --------------
2302 +AC_DEFUN([AC_PROG_LD_GNU],
2303 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2304 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2305 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2306 +case `$LD -v 2>&1 </dev/null` in
2307 +*GNU* | *'with BFD'*)
2308 + lt_cv_prog_gnu_ld=yes
2309 + ;;
2310 +*)
2311 + lt_cv_prog_gnu_ld=no
2312 + ;;
2313 +esac])
2314 +with_gnu_ld=$lt_cv_prog_gnu_ld
2315 +])# AC_PROG_LD_GNU
2316 +
2317 +
2318 +# AC_PROG_LD_RELOAD_FLAG
2319 +# ----------------------
2320 +# find reload flag for linker
2321 +# -- PORTME Some linkers may need a different reload flag.
2322 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2323 +[AC_CACHE_CHECK([for $LD option to reload object files],
2324 + lt_cv_ld_reload_flag,
2325 + [lt_cv_ld_reload_flag='-r'])
2326 +reload_flag=$lt_cv_ld_reload_flag
2327 +case $reload_flag in
2328 +"" | " "*) ;;
2329 +*) reload_flag=" $reload_flag" ;;
2330 +esac
2331 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
2332 +case $host_os in
2333 + darwin*)
2334 + if test "$GCC" = yes; then
2335 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2336 + else
2337 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
2338 + fi
2339 + ;;
2340 +esac
2341 +])# AC_PROG_LD_RELOAD_FLAG
2342 +
2343 +
2344 +# AC_DEPLIBS_CHECK_METHOD
2345 +# -----------------------
2346 +# how to check for library dependencies
2347 +# -- PORTME fill in with the dynamic library characteristics
2348 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2349 +[AC_CACHE_CHECK([how to recognise dependent libraries],
2350 +lt_cv_deplibs_check_method,
2351 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
2352 +lt_cv_file_magic_test_file=
2353 +lt_cv_deplibs_check_method='unknown'
2354 +# Need to set the preceding variable on all platforms that support
2355 +# interlibrary dependencies.
2356 +# 'none' -- dependencies not supported.
2357 +# `unknown' -- same as none, but documents that we really don't know.
2358 +# 'pass_all' -- all dependencies passed with no checks.
2359 +# 'test_compile' -- check by making test program.
2360 +# 'file_magic [[regex]]' -- check by looking for files in library path
2361 +# which responds to the $file_magic_cmd with a given extended regex.
2362 +# If you have `file' or equivalent on your system and you're not sure
2363 +# whether `pass_all' will *always* work, you probably want this one.
2364 +
2365 +case $host_os in
2366 +aix4* | aix5*)
2367 + lt_cv_deplibs_check_method=pass_all
2368 + ;;
2369 +
2370 +beos*)
2371 + lt_cv_deplibs_check_method=pass_all
2372 + ;;
2373 +
2374 +bsdi[[45]]*)
2375 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2376 + lt_cv_file_magic_cmd='/usr/bin/file -L'
2377 + lt_cv_file_magic_test_file=/shlib/libc.so
2378 + ;;
2379 +
2380 +cygwin*)
2381 + # func_win32_libid is a shell function defined in ltmain.sh
2382 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2383 + lt_cv_file_magic_cmd='func_win32_libid'
2384 + ;;
2385 +
2386 +mingw* | pw32*)
2387 + # Base MSYS/MinGW do not provide the 'file' command needed by
2388 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2389 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2390 + lt_cv_file_magic_cmd='$OBJDUMP -f'
2391 + ;;
2392 +
2393 +darwin* | rhapsody*)
2394 + lt_cv_deplibs_check_method=pass_all
2395 + ;;
2396 +
2397 +freebsd* | kfreebsd*-gnu | dragonfly*)
2398 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2399 + case $host_cpu in
2400 + i*86 )
2401 + # Not sure whether the presence of OpenBSD here was a mistake.
2402 + # Let's accept both of them until this is cleared up.
2403 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2404 + lt_cv_file_magic_cmd=/usr/bin/file
2405 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2406 + ;;
2407 + esac
2408 + else
2409 + lt_cv_deplibs_check_method=pass_all
2410 + fi
2411 + ;;
2412 +
2413 +gnu*)
2414 + lt_cv_deplibs_check_method=pass_all
2415 + ;;
2416 +
2417 +hpux10.20* | hpux11*)
2418 + lt_cv_file_magic_cmd=/usr/bin/file
2419 + case $host_cpu in
2420 + ia64*)
2421 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2422 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2423 + ;;
2424 + hppa*64*)
2425 + [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]']
2426 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2427 + ;;
2428 + *)
2429 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2430 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
2431 + ;;
2432 + esac
2433 + ;;
2434 +
2435 +interix3*)
2436 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2437 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2438 + ;;
2439 +
2440 +irix5* | irix6* | nonstopux*)
2441 + case $LD in
2442 + *-32|*"-32 ") libmagic=32-bit;;
2443 + *-n32|*"-n32 ") libmagic=N32;;
2444 + *-64|*"-64 ") libmagic=64-bit;;
2445 + *) libmagic=never-match;;
2446 + esac
2447 + lt_cv_deplibs_check_method=pass_all
2448 + ;;
2449 +
2450 +# This must be Linux ELF.
2451 +linux*)
2452 + lt_cv_deplibs_check_method=pass_all
2453 + ;;
2454 +
2455 +netbsd*)
2456 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2457 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2458 + else
2459 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2460 + fi
2461 + ;;
2462 +
2463 +newos6*)
2464 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2465 + lt_cv_file_magic_cmd=/usr/bin/file
2466 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
2467 + ;;
2468 +
2469 +nto-qnx*)
2470 + lt_cv_deplibs_check_method=unknown
2471 + ;;
2472 +
2473 +openbsd*)
2474 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2475 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2476 + else
2477 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2478 + fi
2479 + ;;
2480 +
2481 +osf3* | osf4* | osf5*)
2482 + lt_cv_deplibs_check_method=pass_all
2483 + ;;
2484 +
2485 +solaris*)
2486 + lt_cv_deplibs_check_method=pass_all
2487 + ;;
2488 +
2489 +sysv4 | sysv4.3*)
2490 + case $host_vendor in
2491 + motorola)
2492 + 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]]'
2493 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2494 + ;;
2495 + ncr)
2496 + lt_cv_deplibs_check_method=pass_all
2497 + ;;
2498 + sequent)
2499 + lt_cv_file_magic_cmd='/bin/file'
2500 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2501 + ;;
2502 + sni)
2503 + lt_cv_file_magic_cmd='/bin/file'
2504 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2505 + lt_cv_file_magic_test_file=/lib/libc.so
2506 + ;;
2507 + siemens)
2508 + lt_cv_deplibs_check_method=pass_all
2509 + ;;
2510 + pc)
2511 + lt_cv_deplibs_check_method=pass_all
2512 + ;;
2513 + esac
2514 + ;;
2515 +
2516 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2517 + lt_cv_deplibs_check_method=pass_all
2518 + ;;
2519 +esac
2520 +])
2521 +file_magic_cmd=$lt_cv_file_magic_cmd
2522 +deplibs_check_method=$lt_cv_deplibs_check_method
2523 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
2524 +])# AC_DEPLIBS_CHECK_METHOD
2525 +
2526 +
2527 +# AC_PROG_NM
2528 +# ----------
2529 +# find the pathname to a BSD-compatible name lister
2530 +AC_DEFUN([AC_PROG_NM],
2531 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2532 +[if test -n "$NM"; then
2533 + # Let the user override the test.
2534 + lt_cv_path_NM="$NM"
2535 +else
2536 + lt_nm_to_check="${ac_tool_prefix}nm"
2537 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2538 + lt_nm_to_check="$lt_nm_to_check nm"
2539 + fi
2540 + for lt_tmp_nm in $lt_nm_to_check; do
2541 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2542 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2543 + IFS="$lt_save_ifs"
2544 + test -z "$ac_dir" && ac_dir=.
2545 + tmp_nm="$ac_dir/$lt_tmp_nm"
2546 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2547 + # Check to see if the nm accepts a BSD-compat flag.
2548 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2549 + # nm: unknown option "B" ignored
2550 + # Tru64's nm complains that /dev/null is an invalid object file
2551 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2552 + */dev/null* | *'Invalid file or object type'*)
2553 + lt_cv_path_NM="$tmp_nm -B"
2554 + break
2555 + ;;
2556 + *)
2557 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2558 + */dev/null*)
2559 + lt_cv_path_NM="$tmp_nm -p"
2560 + break
2561 + ;;
2562 + *)
2563 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2564 + continue # so that we can try to find one that supports BSD flags
2565 + ;;
2566 + esac
2567 + ;;
2568 + esac
2569 + fi
2570 + done
2571 + IFS="$lt_save_ifs"
2572 + done
2573 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2574 +fi])
2575 +NM="$lt_cv_path_NM"
2576 +])# AC_PROG_NM
2577 +
2578 +
2579 +# AC_CHECK_LIBM
2580 +# -------------
2581 +# check for math library
2582 +AC_DEFUN([AC_CHECK_LIBM],
2583 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2584 +LIBM=
2585 +case $host in
2586 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2587 + # These system don't have libm, or don't need it
2588 + ;;
2589 +*-ncr-sysv4.3*)
2590 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2591 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2592 + ;;
2593 +*)
2594 + AC_CHECK_LIB(m, cos, LIBM="-lm")
2595 + ;;
2596 +esac
2597 +])# AC_CHECK_LIBM
2598 +
2599 +
2600 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2601 +# -----------------------------------
2602 +# sets LIBLTDL to the link flags for the libltdl convenience library and
2603 +# LTDLINCL to the include flags for the libltdl header and adds
2604 +# --enable-ltdl-convenience to the configure arguments. Note that
2605 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2606 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2607 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2608 +# (note the single quotes!). If your package is not flat and you're not
2609 +# using automake, define top_builddir and top_srcdir appropriately in
2610 +# the Makefiles.
2611 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2612 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2613 + case $enable_ltdl_convenience in
2614 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2615 + "") enable_ltdl_convenience=yes
2616 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2617 + esac
2618 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2619 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2620 + # For backwards non-gettext consistent compatibility...
2621 + INCLTDL="$LTDLINCL"
2622 +])# AC_LIBLTDL_CONVENIENCE
2623 +
2624 +
2625 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2626 +# -----------------------------------
2627 +# sets LIBLTDL to the link flags for the libltdl installable library and
2628 +# LTDLINCL to the include flags for the libltdl header and adds
2629 +# --enable-ltdl-install to the configure arguments. Note that
2630 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2631 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
2632 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2633 +# '${top_srcdir}/' (note the single quotes!). If your package is not
2634 +# flat and you're not using automake, define top_builddir and top_srcdir
2635 +# appropriately in the Makefiles.
2636 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2637 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2638 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2639 + AC_CHECK_LIB(ltdl, lt_dlinit,
2640 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2641 + [if test x"$enable_ltdl_install" = xno; then
2642 + AC_MSG_WARN([libltdl not installed, but installation disabled])
2643 + else
2644 + enable_ltdl_install=yes
2645 + fi
2646 + ])
2647 + if test x"$enable_ltdl_install" = x"yes"; then
2648 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
2649 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2650 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2651 + else
2652 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2653 + LIBLTDL="-lltdl"
2654 + LTDLINCL=
2655 + fi
2656 + # For backwards non-gettext consistent compatibility...
2657 + INCLTDL="$LTDLINCL"
2658 +])# AC_LIBLTDL_INSTALLABLE
2659 +
2660 +
2661 +# AC_LIBTOOL_CXX
2662 +# --------------
2663 +# enable support for C++ libraries
2664 +AC_DEFUN([AC_LIBTOOL_CXX],
2665 +[AC_REQUIRE([_LT_AC_LANG_CXX])
2666 +])# AC_LIBTOOL_CXX
2667 +
2668 +
2669 +# _LT_AC_LANG_CXX
2670 +# ---------------
2671 +AC_DEFUN([_LT_AC_LANG_CXX],
2672 +[AC_REQUIRE([AC_PROG_CXX])
2673 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2674 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2675 +])# _LT_AC_LANG_CXX
2676 +
2677 +# _LT_AC_PROG_CXXCPP
2678 +# ------------------
2679 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
2680 +[
2681 +AC_REQUIRE([AC_PROG_CXX])
2682 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2683 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2684 + (test "X$CXX" != "Xg++"))) ; then
2685 + AC_PROG_CXXCPP
2686 +fi
2687 +])# _LT_AC_PROG_CXXCPP
2688 +
2689 +# AC_LIBTOOL_F77
2690 +# --------------
2691 +# enable support for Fortran 77 libraries
2692 +AC_DEFUN([AC_LIBTOOL_F77],
2693 +[AC_REQUIRE([_LT_AC_LANG_F77])
2694 +])# AC_LIBTOOL_F77
2695 +
2696 +
2697 +# _LT_AC_LANG_F77
2698 +# ---------------
2699 +AC_DEFUN([_LT_AC_LANG_F77],
2700 +[AC_REQUIRE([AC_PROG_F77])
2701 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2702 +])# _LT_AC_LANG_F77
2703 +
2704 +
2705 +# AC_LIBTOOL_GCJ
2706 +# --------------
2707 +# enable support for GCJ libraries
2708 +AC_DEFUN([AC_LIBTOOL_GCJ],
2709 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
2710 +])# AC_LIBTOOL_GCJ
2711 +
2712 +
2713 +# _LT_AC_LANG_GCJ
2714 +# ---------------
2715 +AC_DEFUN([_LT_AC_LANG_GCJ],
2716 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2717 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2718 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2719 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2720 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2721 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2722 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2723 +])# _LT_AC_LANG_GCJ
2724 +
2725 +
2726 +# AC_LIBTOOL_RC
2727 +# -------------
2728 +# enable support for Windows resource files
2729 +AC_DEFUN([AC_LIBTOOL_RC],
2730 +[AC_REQUIRE([LT_AC_PROG_RC])
2731 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2732 +])# AC_LIBTOOL_RC
2733 +
2734 +
2735 +# AC_LIBTOOL_LANG_C_CONFIG
2736 +# ------------------------
2737 +# Ensure that the configuration vars for the C compiler are
2738 +# suitably defined. Those variables are subsequently used by
2739 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2740 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2741 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2742 +[lt_save_CC="$CC"
2743 +AC_LANG_PUSH(C)
2744 +
2745 +# Source file extension for C test sources.
2746 +ac_ext=c
2747 +
2748 +# Object file extension for compiled C test sources.
2749 +objext=o
2750 +_LT_AC_TAGVAR(objext, $1)=$objext
2751 +
2752 +# Code to be used in simple compile tests
2753 +lt_simple_compile_test_code="int some_variable = 0;\n"
2754 +
2755 +# Code to be used in simple link tests
2756 +lt_simple_link_test_code='int main(){return(0);}\n'
2757 +
2758 +_LT_AC_SYS_COMPILER
2759 +
2760 +# save warnings/boilerplate of simple test code
2761 +_LT_COMPILER_BOILERPLATE
2762 +_LT_LINKER_BOILERPLATE
2763 +
2764 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2765 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
2766 +AC_LIBTOOL_PROG_CC_C_O($1)
2767 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2768 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
2769 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2770 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2771 +AC_LIBTOOL_SYS_LIB_STRIP
2772 +AC_LIBTOOL_DLOPEN_SELF
2773 +
2774 +# Report which library types will actually be built
2775 +AC_MSG_CHECKING([if libtool supports shared libraries])
2776 +AC_MSG_RESULT([$can_build_shared])
2777 +
2778 +AC_MSG_CHECKING([whether to build shared libraries])
2779 +test "$can_build_shared" = "no" && enable_shared=no
2780 +
2781 +# On AIX, shared libraries and static libraries use the same namespace, and
2782 +# are all built from PIC.
2783 +case $host_os in
2784 +aix3*)
2785 + test "$enable_shared" = yes && enable_static=no
2786 + if test -n "$RANLIB"; then
2787 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
2788 + postinstall_cmds='$RANLIB $lib'
2789 + fi
2790 + ;;
2791 +
2792 +aix4* | aix5*)
2793 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2794 + test "$enable_shared" = yes && enable_static=no
2795 + fi
2796 + ;;
2797 +esac
2798 +AC_MSG_RESULT([$enable_shared])
2799 +
2800 +AC_MSG_CHECKING([whether to build static libraries])
2801 +# Make sure either enable_shared or enable_static is yes.
2802 +test "$enable_shared" = yes || enable_static=yes
2803 +AC_MSG_RESULT([$enable_static])
2804 +
2805 +AC_LIBTOOL_CONFIG($1)
2806 +
2807 +AC_LANG_POP
2808 +CC="$lt_save_CC"
2809 +])# AC_LIBTOOL_LANG_C_CONFIG
2810 +
2811 +
2812 +# AC_LIBTOOL_LANG_CXX_CONFIG
2813 +# --------------------------
2814 +# Ensure that the configuration vars for the C compiler are
2815 +# suitably defined. Those variables are subsequently used by
2816 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2817 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2818 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2819 +[AC_LANG_PUSH(C++)
2820 +AC_REQUIRE([AC_PROG_CXX])
2821 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2822 +
2823 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2824 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2825 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
2826 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2827 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2828 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
2829 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2830 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2831 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2832 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2833 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2834 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2835 +_LT_AC_TAGVAR(module_cmds, $1)=
2836 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2837 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2838 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2839 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
2840 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2841 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2842 +
2843 +# Dependencies to place before and after the object being linked:
2844 +_LT_AC_TAGVAR(predep_objects, $1)=
2845 +_LT_AC_TAGVAR(postdep_objects, $1)=
2846 +_LT_AC_TAGVAR(predeps, $1)=
2847 +_LT_AC_TAGVAR(postdeps, $1)=
2848 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2849 +
2850 +# Source file extension for C++ test sources.
2851 +ac_ext=cpp
2852 +
2853 +# Object file extension for compiled C++ test sources.
2854 +objext=o
2855 +_LT_AC_TAGVAR(objext, $1)=$objext
2856 +
2857 +# Code to be used in simple compile tests
2858 +lt_simple_compile_test_code="int some_variable = 0;\n"
2859 +
2860 +# Code to be used in simple link tests
2861 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2862 +
2863 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2864 +_LT_AC_SYS_COMPILER
2865 +
2866 +# save warnings/boilerplate of simple test code
2867 +_LT_COMPILER_BOILERPLATE
2868 +_LT_LINKER_BOILERPLATE
2869 +
2870 +# Allow CC to be a program name with arguments.
2871 +lt_save_CC=$CC
2872 +lt_save_LD=$LD
2873 +lt_save_GCC=$GCC
2874 +GCC=$GXX
2875 +lt_save_with_gnu_ld=$with_gnu_ld
2876 +lt_save_path_LD=$lt_cv_path_LD
2877 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2878 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2879 +else
2880 + $as_unset lt_cv_prog_gnu_ld
2881 +fi
2882 +if test -n "${lt_cv_path_LDCXX+set}"; then
2883 + lt_cv_path_LD=$lt_cv_path_LDCXX
2884 +else
2885 + $as_unset lt_cv_path_LD
2886 +fi
2887 +test -z "${LDCXX+set}" || LD=$LDCXX
2888 +CC=${CXX-"c++"}
2889 +compiler=$CC
2890 +_LT_AC_TAGVAR(compiler, $1)=$CC
2891 +_LT_CC_BASENAME([$compiler])
2892 +
2893 +# We don't want -fno-exception wen compiling C++ code, so set the
2894 +# no_builtin_flag separately
2895 +if test "$GXX" = yes; then
2896 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2897 +else
2898 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2899 +fi
2900 +
2901 +if test "$GXX" = yes; then
2902 + # Set up default GNU C++ configuration
2903 +
2904 + AC_PROG_LD
2905 +
2906 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
2907 + # archiving commands below assume that GNU ld is being used.
2908 + if test "$with_gnu_ld" = yes; then
2909 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2910 + _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'
2911 +
2912 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2913 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2914 +
2915 + # If archive_cmds runs LD, not CC, wlarc should be empty
2916 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2917 + # investigate it a little bit more. (MM)
2918 + wlarc='${wl}'
2919 +
2920 + # ancient GNU ld didn't support --whole-archive et. al.
2921 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2922 + grep 'no-whole-archive' > /dev/null; then
2923 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2924 + else
2925 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2926 + fi
2927 + else
2928 + with_gnu_ld=no
2929 + wlarc=
2930 +
2931 + # A generic and very simple default shared library creation
2932 + # command for GNU C++ for the case where it uses the native
2933 + # linker, instead of GNU ld. If possible, this setting should
2934 + # overridden to take advantage of the native linker features on
2935 + # the platform it is being used on.
2936 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2937 + fi
2938 +
2939 + # Commands to make compiler produce verbose output that lists
2940 + # what "hidden" libraries, object files and flags are used when
2941 + # linking a shared library.
2942 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2943 +
2944 +else
2945 + GXX=no
2946 + with_gnu_ld=no
2947 + wlarc=
2948 +fi
2949 +
2950 +# PORTME: fill in a description of your system's C++ link characteristics
2951 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2952 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2953 +case $host_os in
2954 + aix3*)
2955 + # FIXME: insert proper C++ library support
2956 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2957 + ;;
2958 + aix4* | aix5*)
2959 + if test "$host_cpu" = ia64; then
2960 + # On IA64, the linker does run time linking by default, so we don't
2961 + # have to do anything special.
2962 + aix_use_runtimelinking=no
2963 + exp_sym_flag='-Bexport'
2964 + no_entry_flag=""
2965 + else
2966 + aix_use_runtimelinking=no
2967 +
2968 + # Test if we are trying to use run time linking or normal
2969 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2970 + # need to do runtime linking.
2971 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2972 + for ld_flag in $LDFLAGS; do
2973 + case $ld_flag in
2974 + *-brtl*)
2975 + aix_use_runtimelinking=yes
2976 + break
2977 + ;;
2978 + esac
2979 + done
2980 + ;;
2981 + esac
2982 +
2983 + exp_sym_flag='-bexport'
2984 + no_entry_flag='-bnoentry'
2985 + fi
2986 +
2987 + # When large executables or shared objects are built, AIX ld can
2988 + # have problems creating the table of contents. If linking a library
2989 + # or program results in "error TOC overflow" add -mminimal-toc to
2990 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2991 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2992 +
2993 + _LT_AC_TAGVAR(archive_cmds, $1)=''
2994 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2995 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2996 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2997 +
2998 + if test "$GXX" = yes; then
2999 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3000 + # We only want to do this on AIX 4.2 and lower, the check
3001 + # below for broken collect2 doesn't work under 4.3+
3002 + collect2name=`${CC} -print-prog-name=collect2`
3003 + if test -f "$collect2name" && \
3004 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3005 + then
3006 + # We have reworked collect2
3007 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3008 + else
3009 + # We have old collect2
3010 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3011 + # It fails to find uninstalled libraries when the uninstalled
3012 + # path is not listed in the libpath. Setting hardcode_minus_L
3013 + # to unsupported forces relinking
3014 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3015 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3016 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3017 + fi
3018 + ;;
3019 + esac
3020 + shared_flag='-shared'
3021 + if test "$aix_use_runtimelinking" = yes; then
3022 + shared_flag="$shared_flag "'${wl}-G'
3023 + fi
3024 + else
3025 + # not using gcc
3026 + if test "$host_cpu" = ia64; then
3027 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3028 + # chokes on -Wl,-G. The following line is correct:
3029 + shared_flag='-G'
3030 + else
3031 + if test "$aix_use_runtimelinking" = yes; then
3032 + shared_flag='${wl}-G'
3033 + else
3034 + shared_flag='${wl}-bM:SRE'
3035 + fi
3036 + fi
3037 + fi
3038 +
3039 + # It seems that -bexpall does not export symbols beginning with
3040 + # underscore (_), so it is better to generate a list of symbols to export.
3041 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3042 + if test "$aix_use_runtimelinking" = yes; then
3043 + # Warning - without using the other runtime loading flags (-brtl),
3044 + # -berok will link without error, but may produce a broken library.
3045 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3046 + # Determine the default libpath from the value encoded in an empty executable.
3047 + _LT_AC_SYS_LIBPATH_AIX
3048 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3049 +
3050 + _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"
3051 + else
3052 + if test "$host_cpu" = ia64; then
3053 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3054 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3055 + _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"
3056 + else
3057 + # Determine the default libpath from the value encoded in an empty executable.
3058 + _LT_AC_SYS_LIBPATH_AIX
3059 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3060 + # Warning - without using the other run time loading flags,
3061 + # -berok will link without error, but may produce a broken library.
3062 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3063 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3064 + # Exported symbols can be pulled into shared objects from archives
3065 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3066 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3067 + # This is similar to how AIX traditionally builds its shared libraries.
3068 + _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'
3069 + fi
3070 + fi
3071 + ;;
3072 +
3073 + beos*)
3074 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3075 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3076 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3077 + # support --undefined. This deserves some investigation. FIXME
3078 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3079 + else
3080 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3081 + fi
3082 + ;;
3083 +
3084 + chorus*)
3085 + case $cc_basename in
3086 + *)
3087 + # FIXME: insert proper C++ library support
3088 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3089 + ;;
3090 + esac
3091 + ;;
3092 +
3093 + cygwin* | mingw* | pw32*)
3094 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3095 + # as there is no search path for DLLs.
3096 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3097 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3098 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3099 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3100 +
3101 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3102 + _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'
3103 + # If the export-symbols file already is a .def file (1st line
3104 + # is EXPORTS), use it as is; otherwise, prepend...
3105 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3106 + cp $export_symbols $output_objdir/$soname.def;
3107 + else
3108 + echo EXPORTS > $output_objdir/$soname.def;
3109 + cat $export_symbols >> $output_objdir/$soname.def;
3110 + fi~
3111 + $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'
3112 + else
3113 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3114 + fi
3115 + ;;
3116 + darwin* | rhapsody*)
3117 + case $host_os in
3118 + rhapsody* | darwin1.[[012]])
3119 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3120 + ;;
3121 + *) # Darwin 1.3 on
3122 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3123 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3124 + else
3125 + case ${MACOSX_DEPLOYMENT_TARGET} in
3126 + 10.[[012]])
3127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3128 + ;;
3129 + 10.*)
3130 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3131 + ;;
3132 + esac
3133 + fi
3134 + ;;
3135 + esac
3136 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3137 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3138 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3139 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3140 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3141 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3142 +
3143 + if test "$GXX" = yes ; then
3144 + lt_int_apple_cc_single_mod=no
3145 + output_verbose_link_cmd='echo'
3146 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3147 + lt_int_apple_cc_single_mod=yes
3148 + fi
3149 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3150 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3151 + else
3152 + _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'
3153 + fi
3154 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3155 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3156 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3157 + _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}'
3158 + else
3159 + _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}'
3160 + fi
3161 + _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}'
3162 + else
3163 + case $cc_basename in
3164 + xlc*)
3165 + output_verbose_link_cmd='echo'
3166 + _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'
3167 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3168 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3169 + _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}'
3170 + _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}'
3171 + ;;
3172 + *)
3173 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3174 + ;;
3175 + esac
3176 + fi
3177 + ;;
3178 +
3179 + dgux*)
3180 + case $cc_basename in
3181 + ec++*)
3182 + # FIXME: insert proper C++ library support
3183 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3184 + ;;
3185 + ghcx*)
3186 + # Green Hills C++ Compiler
3187 + # FIXME: insert proper C++ library support
3188 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3189 + ;;
3190 + *)
3191 + # FIXME: insert proper C++ library support
3192 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3193 + ;;
3194 + esac
3195 + ;;
3196 + freebsd[[12]]*)
3197 + # C++ shared libraries reported to be fairly broken before switch to ELF
3198 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3199 + ;;
3200 + freebsd-elf*)
3201 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3202 + ;;
3203 + freebsd* | kfreebsd*-gnu | dragonfly*)
3204 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3205 + # conventions
3206 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3207 + ;;
3208 + gnu*)
3209 + ;;
3210 + hpux9*)
3211 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3212 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3213 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
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 + case $cc_basename in
3220 + CC*)
3221 + # FIXME: insert proper C++ library support
3222 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3223 + ;;
3224 + aCC*)
3225 + _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'
3226 + # Commands to make compiler produce verbose output that lists
3227 + # what "hidden" libraries, object files and flags are used when
3228 + # linking a shared library.
3229 + #
3230 + # There doesn't appear to be a way to prevent this compiler from
3231 + # explicitly linking system object files so we need to strip them
3232 + # from the output so that they don't get included in the library
3233 + # dependencies.
3234 + 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'
3235 + ;;
3236 + *)
3237 + if test "$GXX" = yes; then
3238 + _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'
3239 + else
3240 + # FIXME: insert proper C++ library support
3241 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3242 + fi
3243 + ;;
3244 + esac
3245 + ;;
3246 + hpux10*|hpux11*)
3247 + if test $with_gnu_ld = no; then
3248 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3249 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3250 +
3251 + case $host_cpu in
3252 + hppa*64*|ia64*)
3253 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3254 + ;;
3255 + *)
3256 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3257 + ;;
3258 + esac
3259 + fi
3260 + case $host_cpu in
3261 + hppa*64*|ia64*)
3262 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3263 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3264 + ;;
3265 + *)
3266 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3267 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3268 + # but as the default
3269 + # location of the library.
3270 + ;;
3271 + esac
3272 +
3273 + case $cc_basename in
3274 + CC*)
3275 + # FIXME: insert proper C++ library support
3276 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3277 + ;;
3278 + aCC*)
3279 + case $host_cpu in
3280 + hppa*64*)
3281 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3282 + ;;
3283 + ia64*)
3284 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3285 + ;;
3286 + *)
3287 + _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'
3288 + ;;
3289 + esac
3290 + # Commands to make compiler produce verbose output that lists
3291 + # what "hidden" libraries, object files and flags are used when
3292 + # linking a shared library.
3293 + #
3294 + # There doesn't appear to be a way to prevent this compiler from
3295 + # explicitly linking system object files so we need to strip them
3296 + # from the output so that they don't get included in the library
3297 + # dependencies.
3298 + 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'
3299 + ;;
3300 + *)
3301 + if test "$GXX" = yes; then
3302 + if test $with_gnu_ld = no; then
3303 + case $host_cpu in
3304 + hppa*64*)
3305 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3306 + ;;
3307 + ia64*)
3308 + _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'
3309 + ;;
3310 + *)
3311 + _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'
3312 + ;;
3313 + esac
3314 + fi
3315 + else
3316 + # FIXME: insert proper C++ library support
3317 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3318 + fi
3319 + ;;
3320 + esac
3321 + ;;
3322 + interix3*)
3323 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3324 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3325 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3326 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3327 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3328 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3329 + # default) and relocated if they conflict, which is a slow very memory
3330 + # consuming and fragmenting process. To avoid this, we pick a random,
3331 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3332 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3333 + _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'
3334 + _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'
3335 + ;;
3336 + irix5* | irix6*)
3337 + case $cc_basename in
3338 + CC*)
3339 + # SGI C++
3340 + _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'
3341 +
3342 + # Archives containing C++ object files must be created using
3343 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3344 + # necessary to make sure instantiated templates are included
3345 + # in the archive.
3346 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3347 + ;;
3348 + *)
3349 + if test "$GXX" = yes; then
3350 + if test "$with_gnu_ld" = no; then
3351 + _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'
3352 + else
3353 + _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'
3354 + fi
3355 + fi
3356 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3357 + ;;
3358 + esac
3359 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3360 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3361 + ;;
3362 + linux*)
3363 + case $cc_basename in
3364 + KCC*)
3365 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3366 +
3367 + # KCC will only create a shared library if the output file
3368 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3369 + # to its proper name (with version) after linking.
3370 + _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'
3371 + _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'
3372 + # Commands to make compiler produce verbose output that lists
3373 + # what "hidden" libraries, object files and flags are used when
3374 + # linking a shared library.
3375 + #
3376 + # There doesn't appear to be a way to prevent this compiler from
3377 + # explicitly linking system object files so we need to strip them
3378 + # from the output so that they don't get included in the library
3379 + # dependencies.
3380 + 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'
3381 +
3382 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3383 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3384 +
3385 + # Archives containing C++ object files must be created using
3386 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3387 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3388 + ;;
3389 + icpc*)
3390 + # Intel C++
3391 + with_gnu_ld=yes
3392 + # version 8.0 and above of icpc choke on multiply defined symbols
3393 + # if we add $predep_objects and $postdep_objects, however 7.1 and
3394 + # earlier do not add the objects themselves.
3395 + case `$CC -V 2>&1` in
3396 + *"Version 7."*)
3397 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3398 + _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'
3399 + ;;
3400 + *) # Version 8.0 or newer
3401 + tmp_idyn=
3402 + case $host_cpu in
3403 + ia64*) tmp_idyn=' -i_dynamic';;
3404 + esac
3405 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3406 + _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'
3407 + ;;
3408 + esac
3409 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3410 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3411 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3412 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3413 + ;;
3414 + pgCC*)
3415 + # Portland Group C++ compiler
3416 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3417 + _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'
3418 +
3419 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3420 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3421 + _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'
3422 + ;;
3423 + cxx*)
3424 + # Compaq C++
3425 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3426 + _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'
3427 +
3428 + runpath_var=LD_RUN_PATH
3429 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3430 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3431 +
3432 + # Commands to make compiler produce verbose output that lists
3433 + # what "hidden" libraries, object files and flags are used when
3434 + # linking a shared library.
3435 + #
3436 + # There doesn't appear to be a way to prevent this compiler from
3437 + # explicitly linking system object files so we need to strip them
3438 + # from the output so that they don't get included in the library
3439 + # dependencies.
3440 + 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'
3441 + ;;
3442 + esac
3443 + ;;
3444 + lynxos*)
3445 + # FIXME: insert proper C++ library support
3446 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3447 + ;;
3448 + m88k*)
3449 + # FIXME: insert proper C++ library support
3450 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3451 + ;;
3452 + mvs*)
3453 + case $cc_basename in
3454 + cxx*)
3455 + # FIXME: insert proper C++ library support
3456 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3457 + ;;
3458 + *)
3459 + # FIXME: insert proper C++ library support
3460 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3461 + ;;
3462 + esac
3463 + ;;
3464 + netbsd*)
3465 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3466 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3467 + wlarc=
3468 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3470 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3471 + fi
3472 + # Workaround some broken pre-1.5 toolchains
3473 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3474 + ;;
3475 + openbsd2*)
3476 + # C++ shared libraries are fairly broken
3477 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3478 + ;;
3479 + openbsd*)
3480 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3481 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3482 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3483 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3484 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3485 + _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'
3486 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3487 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3488 + fi
3489 + output_verbose_link_cmd='echo'
3490 + ;;
3491 + osf3*)
3492 + case $cc_basename in
3493 + KCC*)
3494 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3495 +
3496 + # KCC will only create a shared library if the output file
3497 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3498 + # to its proper name (with version) after linking.
3499 + _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'
3500 +
3501 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3502 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3503 +
3504 + # Archives containing C++ object files must be created using
3505 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3506 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3507 +
3508 + ;;
3509 + RCC*)
3510 + # Rational C++ 2.4.1
3511 + # FIXME: insert proper C++ library support
3512 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3513 + ;;
3514 + cxx*)
3515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3516 + _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'
3517 +
3518 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3519 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3520 +
3521 + # Commands to make compiler produce verbose output that lists
3522 + # what "hidden" libraries, object files and flags are used when
3523 + # linking a shared library.
3524 + #
3525 + # There doesn't appear to be a way to prevent this compiler from
3526 + # explicitly linking system object files so we need to strip them
3527 + # from the output so that they don't get included in the library
3528 + # dependencies.
3529 + 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'
3530 + ;;
3531 + *)
3532 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3533 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3534 + _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'
3535 +
3536 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3537 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3538 +
3539 + # Commands to make compiler produce verbose output that lists
3540 + # what "hidden" libraries, object files and flags are used when
3541 + # linking a shared library.
3542 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3543 +
3544 + else
3545 + # FIXME: insert proper C++ library support
3546 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3547 + fi
3548 + ;;
3549 + esac
3550 + ;;
3551 + osf4* | osf5*)
3552 + case $cc_basename in
3553 + KCC*)
3554 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3555 +
3556 + # KCC will only create a shared library if the output file
3557 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3558 + # to its proper name (with version) after linking.
3559 + _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'
3560 +
3561 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3562 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3563 +
3564 + # Archives containing C++ object files must be created using
3565 + # the KAI C++ compiler.
3566 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3567 + ;;
3568 + RCC*)
3569 + # Rational C++ 2.4.1
3570 + # FIXME: insert proper C++ library support
3571 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3572 + ;;
3573 + cxx*)
3574 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3575 + _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'
3576 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3577 + echo "-hidden">> $lib.exp~
3578 + $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~
3579 + $rm $lib.exp'
3580 +
3581 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3582 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3583 +
3584 + # Commands to make compiler produce verbose output that lists
3585 + # what "hidden" libraries, object files and flags are used when
3586 + # linking a shared library.
3587 + #
3588 + # There doesn't appear to be a way to prevent this compiler from
3589 + # explicitly linking system object files so we need to strip them
3590 + # from the output so that they don't get included in the library
3591 + # dependencies.
3592 + 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'
3593 + ;;
3594 + *)
3595 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3596 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3597 + _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'
3598 +
3599 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3600 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3601 +
3602 + # Commands to make compiler produce verbose output that lists
3603 + # what "hidden" libraries, object files and flags are used when
3604 + # linking a shared library.
3605 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3606 +
3607 + else
3608 + # FIXME: insert proper C++ library support
3609 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3610 + fi
3611 + ;;
3612 + esac
3613 + ;;
3614 + psos*)
3615 + # FIXME: insert proper C++ library support
3616 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3617 + ;;
3618 + sunos4*)
3619 + case $cc_basename in
3620 + CC*)
3621 + # Sun C++ 4.x
3622 + # FIXME: insert proper C++ library support
3623 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3624 + ;;
3625 + lcc*)
3626 + # Lucid
3627 + # FIXME: insert proper C++ library support
3628 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3629 + ;;
3630 + *)
3631 + # FIXME: insert proper C++ library support
3632 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3633 + ;;
3634 + esac
3635 + ;;
3636 + solaris*)
3637 + case $cc_basename in
3638 + CC*)
3639 + # Sun C++ 4.2, 5.x and Centerline C++
3640 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3641 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3642 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3643 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3644 + $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'
3645 +
3646 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3647 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3648 + case $host_os in
3649 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3650 + *)
3651 + # The C++ compiler is used as linker so we must use $wl
3652 + # flag to pass the commands to the underlying system
3653 + # linker. We must also pass each convience library through
3654 + # to the system linker between allextract/defaultextract.
3655 + # The C++ compiler will combine linker options so we
3656 + # cannot just pass the convience library names through
3657 + # without $wl.
3658 + # Supported since Solaris 2.6 (maybe 2.5.1?)
3659 + _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'
3660 + ;;
3661 + esac
3662 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3663 +
3664 + output_verbose_link_cmd='echo'
3665 +
3666 + # Archives containing C++ object files must be created using
3667 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
3668 + # necessary to make sure instantiated templates are included
3669 + # in the archive.
3670 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3671 + ;;
3672 + gcx*)
3673 + # Green Hills C++ Compiler
3674 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3675 +
3676 + # The C++ compiler must be used to create the archive.
3677 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3678 + ;;
3679 + *)
3680 + # GNU C++ compiler with Solaris linker
3681 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3682 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3683 + if $CC --version | grep -v '^2\.7' > /dev/null; then
3684 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3685 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3686 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3687 +
3688 + # Commands to make compiler produce verbose output that lists
3689 + # what "hidden" libraries, object files and flags are used when
3690 + # linking a shared library.
3691 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3692 + else
3693 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
3694 + # platform.
3695 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3696 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3697 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3698 +
3699 + # Commands to make compiler produce verbose output that lists
3700 + # what "hidden" libraries, object files and flags are used when
3701 + # linking a shared library.
3702 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3703 + fi
3704 +
3705 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3706 + fi
3707 + ;;
3708 + esac
3709 + ;;
3710 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3711 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3712 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3713 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714 + runpath_var='LD_RUN_PATH'
3715 +
3716 + case $cc_basename in
3717 + CC*)
3718 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3719 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3720 + ;;
3721 + *)
3722 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3723 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3724 + ;;
3725 + esac
3726 + ;;
3727 + sysv5* | sco3.2v5* | sco5v6*)
3728 + # Note: We can NOT use -z defs as we might desire, because we do not
3729 + # link with -lc, and that would cause any symbols used from libc to
3730 + # always be unresolved, which means just about no library would
3731 + # ever link correctly. If we're not using GNU ld we use -z text
3732 + # though, which does catch some bad symbols but isn't as heavy-handed
3733 + # as -z defs.
3734 + # For security reasons, it is highly recommended that you always
3735 + # use absolute paths for naming shared libraries, and exclude the
3736 + # DT_RUNPATH tag from executables and libraries. But doing so
3737 + # requires that you compile everything twice, which is a pain.
3738 + # So that behaviour is only enabled if SCOABSPATH is set to a
3739 + # non-empty value in the environment. Most likely only useful for
3740 + # creating official distributions of packages.
3741 + # This is a hack until libtool officially supports absolute path
3742 + # names for shared libraries.
3743 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3744 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3745 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3746 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3748 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3749 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3750 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3751 + runpath_var='LD_RUN_PATH'
3752 +
3753 + case $cc_basename in
3754 + CC*)
3755 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3756 + _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'
3757 + ;;
3758 + *)
3759 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3760 + _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'
3761 + ;;
3762 + esac
3763 + ;;
3764 + tandem*)
3765 + case $cc_basename in
3766 + NCC*)
3767 + # NonStop-UX NCC 3.20
3768 + # FIXME: insert proper C++ library support
3769 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3770 + ;;
3771 + *)
3772 + # FIXME: insert proper C++ library support
3773 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3774 + ;;
3775 + esac
3776 + ;;
3777 + vxworks*)
3778 + # FIXME: insert proper C++ library support
3779 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3780 + ;;
3781 + *)
3782 + # FIXME: insert proper C++ library support
3783 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3784 + ;;
3785 +esac
3786 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3787 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3788 +
3789 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
3790 +_LT_AC_TAGVAR(LD, $1)="$LD"
3791 +
3792 +AC_LIBTOOL_POSTDEP_PREDEP($1)
3793 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3794 +AC_LIBTOOL_PROG_CC_C_O($1)
3795 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3796 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3797 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3798 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3799 +
3800 +AC_LIBTOOL_CONFIG($1)
3801 +
3802 +AC_LANG_POP
3803 +CC=$lt_save_CC
3804 +LDCXX=$LD
3805 +LD=$lt_save_LD
3806 +GCC=$lt_save_GCC
3807 +with_gnu_ldcxx=$with_gnu_ld
3808 +with_gnu_ld=$lt_save_with_gnu_ld
3809 +lt_cv_path_LDCXX=$lt_cv_path_LD
3810 +lt_cv_path_LD=$lt_save_path_LD
3811 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3812 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3813 +])# AC_LIBTOOL_LANG_CXX_CONFIG
3814 +
3815 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3816 +# ------------------------------------
3817 +# Figure out "hidden" library dependencies from verbose
3818 +# compiler output when linking a shared library.
3819 +# Parse the compiler output and extract the necessary
3820 +# objects, libraries and library flags.
3821 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3822 +dnl we can't use the lt_simple_compile_test_code here,
3823 +dnl because it contains code intended for an executable,
3824 +dnl not a library. It's possible we should let each
3825 +dnl tag define a new lt_????_link_test_code variable,
3826 +dnl but it's only used here...
3827 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3828 +int a;
3829 +void foo (void) { a = 0; }
3830 +EOF
3831 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3832 +class Foo
3833 +{
3834 +public:
3835 + Foo (void) { a = 0; }
3836 +private:
3837 + int a;
3838 +};
3839 +EOF
3840 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3841 + subroutine foo
3842 + implicit none
3843 + integer*4 a
3844 + a=0
3845 + return
3846 + end
3847 +EOF
3848 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3849 +public class foo {
3850 + private int a;
3851 + public void bar (void) {
3852 + a = 0;
3853 + }
3854 +};
3855 +EOF
3856 +])
3857 +dnl Parse the compiler output and extract the necessary
3858 +dnl objects, libraries and library flags.
3859 +if AC_TRY_EVAL(ac_compile); then
3860 + # Parse the compiler output and extract the necessary
3861 + # objects, libraries and library flags.
3862 +
3863 + # Sentinel used to keep track of whether or not we are before
3864 + # the conftest object file.
3865 + pre_test_object_deps_done=no
3866 +
3867 + # The `*' in the case matches for architectures that use `case' in
3868 + # $output_verbose_cmd can trigger glob expansion during the loop
3869 + # eval without this substitution.
3870 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3871 +
3872 + for p in `eval $output_verbose_link_cmd`; do
3873 + case $p in
3874 +
3875 + -L* | -R* | -l*)
3876 + # Some compilers place space between "-{L,R}" and the path.
3877 + # Remove the space.
3878 + if test $p = "-L" \
3879 + || test $p = "-R"; then
3880 + prev=$p
3881 + continue
3882 + else
3883 + prev=
3884 + fi
3885 +
3886 + if test "$pre_test_object_deps_done" = no; then
3887 + case $p in
3888 + -L* | -R*)
3889 + # Internal compiler library paths should come after those
3890 + # provided the user. The postdeps already come after the
3891 + # user supplied libs so there is no need to process them.
3892 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3893 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3894 + else
3895 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3896 + fi
3897 + ;;
3898 + # The "-l" case would never come before the object being
3899 + # linked, so don't bother handling this case.
3900 + esac
3901 + else
3902 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3903 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3904 + else
3905 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3906 + fi
3907 + fi
3908 + ;;
3909 +
3910 + *.$objext)
3911 + # This assumes that the test object file only shows up
3912 + # once in the compiler output.
3913 + if test "$p" = "conftest.$objext"; then
3914 + pre_test_object_deps_done=yes
3915 + continue
3916 + fi
3917 +
3918 + if test "$pre_test_object_deps_done" = no; then
3919 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3920 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
3921 + else
3922 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3923 + fi
3924 + else
3925 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3926 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3927 + else
3928 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3929 + fi
3930 + fi
3931 + ;;
3932 +
3933 + *) ;; # Ignore the rest.
3934 +
3935 + esac
3936 + done
3937 +
3938 + # Clean up.
3939 + rm -f a.out a.exe
3940 +else
3941 + echo "libtool.m4: error: problem compiling $1 test program"
3942 +fi
3943 +
3944 +$rm -f confest.$objext
3945 +
3946 +# PORTME: override above test on systems where it is broken
3947 +ifelse([$1],[CXX],
3948 +[case $host_os in
3949 +interix3*)
3950 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
3951 + # hack all around it, let's just trust "g++" to DTRT.
3952 + _LT_AC_TAGVAR(predep_objects,$1)=
3953 + _LT_AC_TAGVAR(postdep_objects,$1)=
3954 + _LT_AC_TAGVAR(postdeps,$1)=
3955 + ;;
3956 +
3957 +solaris*)
3958 + case $cc_basename in
3959 + CC*)
3960 + # Adding this requires a known-good setup of shared libraries for
3961 + # Sun compiler versions before 5.6, else PIC objects from an old
3962 + # archive will be linked into the output, leading to subtle bugs.
3963 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3964 + ;;
3965 + esac
3966 + ;;
3967 +esac
3968 +])
3969 +
3970 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
3971 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3972 +esac
3973 +])# AC_LIBTOOL_POSTDEP_PREDEP
3974 +
3975 +# AC_LIBTOOL_LANG_F77_CONFIG
3976 +# --------------------------
3977 +# Ensure that the configuration vars for the C compiler are
3978 +# suitably defined. Those variables are subsequently used by
3979 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3980 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3981 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3982 +[AC_REQUIRE([AC_PROG_F77])
3983 +AC_LANG_PUSH(Fortran 77)
3984 +
3985 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3986 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3987 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
3988 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3989 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3990 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
3991 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3992 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3993 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3994 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3995 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3996 +_LT_AC_TAGVAR(module_cmds, $1)=
3997 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3998 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3999 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4000 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4001 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4002 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4003 +
4004 +# Source file extension for f77 test sources.
4005 +ac_ext=f
4006 +
4007 +# Object file extension for compiled f77 test sources.
4008 +objext=o
4009 +_LT_AC_TAGVAR(objext, $1)=$objext
4010 +
4011 +# Code to be used in simple compile tests
4012 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4013 +
4014 +# Code to be used in simple link tests
4015 +lt_simple_link_test_code=" program t\n end\n"
4016 +
4017 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4018 +_LT_AC_SYS_COMPILER
4019 +
4020 +# save warnings/boilerplate of simple test code
4021 +_LT_COMPILER_BOILERPLATE
4022 +_LT_LINKER_BOILERPLATE
4023 +
4024 +# Allow CC to be a program name with arguments.
4025 +lt_save_CC="$CC"
4026 +CC=${F77-"f77"}
4027 +compiler=$CC
4028 +_LT_AC_TAGVAR(compiler, $1)=$CC
4029 +_LT_CC_BASENAME([$compiler])
4030 +
4031 +AC_MSG_CHECKING([if libtool supports shared libraries])
4032 +AC_MSG_RESULT([$can_build_shared])
4033 +
4034 +AC_MSG_CHECKING([whether to build shared libraries])
4035 +test "$can_build_shared" = "no" && enable_shared=no
4036 +
4037 +# On AIX, shared libraries and static libraries use the same namespace, and
4038 +# are all built from PIC.
4039 +case $host_os in
4040 +aix3*)
4041 + test "$enable_shared" = yes && enable_static=no
4042 + if test -n "$RANLIB"; then
4043 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4044 + postinstall_cmds='$RANLIB $lib'
4045 + fi
4046 + ;;
4047 +aix4* | aix5*)
4048 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4049 + test "$enable_shared" = yes && enable_static=no
4050 + fi
4051 + ;;
4052 +esac
4053 +AC_MSG_RESULT([$enable_shared])
4054 +
4055 +AC_MSG_CHECKING([whether to build static libraries])
4056 +# Make sure either enable_shared or enable_static is yes.
4057 +test "$enable_shared" = yes || enable_static=yes
4058 +AC_MSG_RESULT([$enable_static])
4059 +
4060 +_LT_AC_TAGVAR(GCC, $1)="$G77"
4061 +_LT_AC_TAGVAR(LD, $1)="$LD"
4062 +
4063 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4064 +AC_LIBTOOL_PROG_CC_C_O($1)
4065 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4066 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4067 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4068 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4069 +
4070 +AC_LIBTOOL_CONFIG($1)
4071 +
4072 +AC_LANG_POP
4073 +CC="$lt_save_CC"
4074 +])# AC_LIBTOOL_LANG_F77_CONFIG
4075 +
4076 +
4077 +# AC_LIBTOOL_LANG_GCJ_CONFIG
4078 +# --------------------------
4079 +# Ensure that the configuration vars for the C compiler are
4080 +# suitably defined. Those variables are subsequently used by
4081 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4082 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4083 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4084 +[AC_LANG_SAVE
4085 +
4086 +# Source file extension for Java test sources.
4087 +ac_ext=java
4088 +
4089 +# Object file extension for compiled Java test sources.
4090 +objext=o
4091 +_LT_AC_TAGVAR(objext, $1)=$objext
4092 +
4093 +# Code to be used in simple compile tests
4094 +lt_simple_compile_test_code="class foo {}\n"
4095 +
4096 +# Code to be used in simple link tests
4097 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4098 +
4099 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4100 +_LT_AC_SYS_COMPILER
4101 +
4102 +# save warnings/boilerplate of simple test code
4103 +_LT_COMPILER_BOILERPLATE
4104 +_LT_LINKER_BOILERPLATE
4105 +
4106 +# Allow CC to be a program name with arguments.
4107 +lt_save_CC="$CC"
4108 +CC=${GCJ-"gcj"}
4109 +compiler=$CC
4110 +_LT_AC_TAGVAR(compiler, $1)=$CC
4111 +_LT_CC_BASENAME([$compiler])
4112 +
4113 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
4114 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4115 +
4116 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4117 +
4118 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4119 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4120 +AC_LIBTOOL_PROG_CC_C_O($1)
4121 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4122 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4123 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4124 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4125 +
4126 +AC_LIBTOOL_CONFIG($1)
4127 +
4128 +AC_LANG_RESTORE
4129 +CC="$lt_save_CC"
4130 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
4131 +
4132 +
4133 +# AC_LIBTOOL_LANG_RC_CONFIG
4134 +# -------------------------
4135 +# Ensure that the configuration vars for the Windows resource compiler are
4136 +# suitably defined. Those variables are subsequently used by
4137 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4138 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4139 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4140 +[AC_LANG_SAVE
4141 +
4142 +# Source file extension for RC test sources.
4143 +ac_ext=rc
4144 +
4145 +# Object file extension for compiled RC test sources.
4146 +objext=o
4147 +_LT_AC_TAGVAR(objext, $1)=$objext
4148 +
4149 +# Code to be used in simple compile tests
4150 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4151 +
4152 +# Code to be used in simple link tests
4153 +lt_simple_link_test_code="$lt_simple_compile_test_code"
4154 +
4155 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4156 +_LT_AC_SYS_COMPILER
4157 +
4158 +# save warnings/boilerplate of simple test code
4159 +_LT_COMPILER_BOILERPLATE
4160 +_LT_LINKER_BOILERPLATE
4161 +
4162 +# Allow CC to be a program name with arguments.
4163 +lt_save_CC="$CC"
4164 +CC=${RC-"windres"}
4165 +compiler=$CC
4166 +_LT_AC_TAGVAR(compiler, $1)=$CC
4167 +_LT_CC_BASENAME([$compiler])
4168 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4169 +
4170 +AC_LIBTOOL_CONFIG($1)
4171 +
4172 +AC_LANG_RESTORE
4173 +CC="$lt_save_CC"
4174 +])# AC_LIBTOOL_LANG_RC_CONFIG
4175 +
4176 +
4177 +# AC_LIBTOOL_CONFIG([TAGNAME])
4178 +# ----------------------------
4179 +# If TAGNAME is not passed, then create an initial libtool script
4180 +# with a default configuration from the untagged config vars. Otherwise
4181 +# add code to config.status for appending the configuration named by
4182 +# TAGNAME from the matching tagged config vars.
4183 +AC_DEFUN([AC_LIBTOOL_CONFIG],
4184 +[# The else clause should only fire when bootstrapping the
4185 +# libtool distribution, otherwise you forgot to ship ltmain.sh
4186 +# with your package, and you will get complaints that there are
4187 +# no rules to generate ltmain.sh.
4188 +if test -f "$ltmain"; then
4189 + # See if we are running on zsh, and set the options which allow our commands through
4190 + # without removal of \ escapes.
4191 + if test -n "${ZSH_VERSION+set}" ; then
4192 + setopt NO_GLOB_SUBST
4193 + fi
4194 + # Now quote all the things that may contain metacharacters while being
4195 + # careful not to overquote the AC_SUBSTed values. We take copies of the
4196 + # variables and quote the copies for generation of the libtool script.
4197 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4198 + SED SHELL STRIP \
4199 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4200 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4201 + deplibs_check_method reload_flag reload_cmds need_locks \
4202 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4203 + lt_cv_sys_global_symbol_to_c_name_address \
4204 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4205 + old_postinstall_cmds old_postuninstall_cmds \
4206 + _LT_AC_TAGVAR(compiler, $1) \
4207 + _LT_AC_TAGVAR(CC, $1) \
4208 + _LT_AC_TAGVAR(LD, $1) \
4209 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4210 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4211 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4212 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4213 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4214 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4215 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4216 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4217 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
4218 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4219 + _LT_AC_TAGVAR(predep_objects, $1) \
4220 + _LT_AC_TAGVAR(postdep_objects, $1) \
4221 + _LT_AC_TAGVAR(predeps, $1) \
4222 + _LT_AC_TAGVAR(postdeps, $1) \
4223 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4224 + _LT_AC_TAGVAR(archive_cmds, $1) \
4225 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4226 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
4227 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4228 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4229 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4230 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
4231 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4232 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4233 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4234 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4235 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
4236 + _LT_AC_TAGVAR(module_cmds, $1) \
4237 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4238 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4239 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
4240 + _LT_AC_TAGVAR(include_expsyms, $1); do
4241 +
4242 + case $var in
4243 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4244 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4245 + _LT_AC_TAGVAR(archive_cmds, $1) | \
4246 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4247 + _LT_AC_TAGVAR(module_cmds, $1) | \
4248 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4249 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4250 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4251 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
4252 + postinstall_cmds | postuninstall_cmds | \
4253 + old_postinstall_cmds | old_postuninstall_cmds | \
4254 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4255 + # Double-quote double-evaled strings.
4256 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4257 + ;;
4258 + *)
4259 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4260 + ;;
4261 + esac
4262 + done
4263 +
4264 + case $lt_echo in
4265 + *'\[$]0 --fallback-echo"')
4266 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4267 + ;;
4268 + esac
4269 +
4270 +ifelse([$1], [],
4271 + [cfgfile="${ofile}T"
4272 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4273 + $rm -f "$cfgfile"
4274 + AC_MSG_NOTICE([creating $ofile])],
4275 + [cfgfile="$ofile"])
4276 +
4277 + cat <<__EOF__ >> "$cfgfile"
4278 +ifelse([$1], [],
4279 +[#! $SHELL
4280 +
4281 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4282 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4283 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4284 +#
4285 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4286 +# Free Software Foundation, Inc.
4287 +#
4288 +# This file is part of GNU Libtool:
4289 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4290 +#
4291 +# This program is free software; you can redistribute it and/or modify
4292 +# it under the terms of the GNU General Public License as published by
4293 +# the Free Software Foundation; either version 2 of the License, or
4294 +# (at your option) any later version.
4295 +#
4296 +# This program is distributed in the hope that it will be useful, but
4297 +# WITHOUT ANY WARRANTY; without even the implied warranty of
4298 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4299 +# General Public License for more details.
4300 +#
4301 +# You should have received a copy of the GNU General Public License
4302 +# along with this program; if not, write to the Free Software
4303 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4304 +#
4305 +# As a special exception to the GNU General Public License, if you
4306 +# distribute this file as part of a program that contains a
4307 +# configuration script generated by Autoconf, you may include it under
4308 +# the same distribution terms that you use for the rest of that program.
4309 +
4310 +# A sed program that does not truncate output.
4311 +SED=$lt_SED
4312 +
4313 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4314 +Xsed="$SED -e 1s/^X//"
4315 +
4316 +# The HP-UX ksh and POSIX shell print the target directory to stdout
4317 +# if CDPATH is set.
4318 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4319 +
4320 +# The names of the tagged configurations supported by this script.
4321 +available_tags=
4322 +
4323 +# ### BEGIN LIBTOOL CONFIG],
4324 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4325 +
4326 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4327 +
4328 +# Shell to use when invoking shell scripts.
4329 +SHELL=$lt_SHELL
4330 +
4331 +# Whether or not to build shared libraries.
4332 +build_libtool_libs=$enable_shared
4333 +
4334 +# Whether or not to build static libraries.
4335 +build_old_libs=$enable_static
4336 +
4337 +# Whether or not to add -lc for building shared libraries.
4338 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4339 +
4340 +# Whether or not to disallow shared libs when runtime libs are static
4341 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4342 +
4343 +# Whether or not to optimize for fast installation.
4344 +fast_install=$enable_fast_install
4345 +
4346 +# The host system.
4347 +host_alias=$host_alias
4348 +host=$host
4349 +host_os=$host_os
4350 +
4351 +# The build system.
4352 +build_alias=$build_alias
4353 +build=$build
4354 +build_os=$build_os
4355 +
4356 +# An echo program that does not interpret backslashes.
4357 +echo=$lt_echo
4358 +
4359 +# The archiver.
4360 +AR=$lt_AR
4361 +AR_FLAGS=$lt_AR_FLAGS
4362 +
4363 +# A C compiler.
4364 +LTCC=$lt_LTCC
4365 +
4366 +# LTCC compiler flags.
4367 +LTCFLAGS=$lt_LTCFLAGS
4368 +
4369 +# A language-specific compiler.
4370 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4371 +
4372 +# Is the compiler the GNU C compiler?
4373 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4374 +
4375 +# An ERE matcher.
4376 +EGREP=$lt_EGREP
4377 +
4378 +# The linker used to build libraries.
4379 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4380 +
4381 +# Whether we need hard or soft links.
4382 +LN_S=$lt_LN_S
4383 +
4384 +# A BSD-compatible nm program.
4385 +NM=$lt_NM
4386 +
4387 +# A symbol stripping program
4388 +STRIP=$lt_STRIP
4389 +
4390 +# Used to examine libraries when file_magic_cmd begins "file"
4391 +MAGIC_CMD=$MAGIC_CMD
4392 +
4393 +# Used on cygwin: DLL creation program.
4394 +DLLTOOL="$DLLTOOL"
4395 +
4396 +# Used on cygwin: object dumper.
4397 +OBJDUMP="$OBJDUMP"
4398 +
4399 +# Used on cygwin: assembler.
4400 +AS="$AS"
4401 +
4402 +# The name of the directory that contains temporary libtool files.
4403 +objdir=$objdir
4404 +
4405 +# How to create reloadable object files.
4406 +reload_flag=$lt_reload_flag
4407 +reload_cmds=$lt_reload_cmds
4408 +
4409 +# How to pass a linker flag through the compiler.
4410 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4411 +
4412 +# Object file suffix (normally "o").
4413 +objext="$ac_objext"
4414 +
4415 +# Old archive suffix (normally "a").
4416 +libext="$libext"
4417 +
4418 +# Shared library suffix (normally ".so").
4419 +shrext_cmds='$shrext_cmds'
4420 +
4421 +# Executable file suffix (normally "").
4422 +exeext="$exeext"
4423 +
4424 +# Additional compiler flags for building library objects.
4425 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4426 +pic_mode=$pic_mode
4427 +
4428 +# What is the maximum length of a command?
4429 +max_cmd_len=$lt_cv_sys_max_cmd_len
4430 +
4431 +# Does compiler simultaneously support -c and -o options?
4432 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4433 +
4434 +# Must we lock files when doing compilation?
4435 +need_locks=$lt_need_locks
4436 +
4437 +# Do we need the lib prefix for modules?
4438 +need_lib_prefix=$need_lib_prefix
4439 +
4440 +# Do we need a version for libraries?
4441 +need_version=$need_version
4442 +
4443 +# Whether dlopen is supported.
4444 +dlopen_support=$enable_dlopen
4445 +
4446 +# Whether dlopen of programs is supported.
4447 +dlopen_self=$enable_dlopen_self
4448 +
4449 +# Whether dlopen of statically linked programs is supported.
4450 +dlopen_self_static=$enable_dlopen_self_static
4451 +
4452 +# Compiler flag to prevent dynamic linking.
4453 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4454 +
4455 +# Compiler flag to turn off builtin functions.
4456 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4457 +
4458 +# Compiler flag to allow reflexive dlopens.
4459 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4460 +
4461 +# Compiler flag to generate shared objects directly from archives.
4462 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4463 +
4464 +# Compiler flag to generate thread-safe objects.
4465 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4466 +
4467 +# Library versioning type.
4468 +version_type=$version_type
4469 +
4470 +# Format of library name prefix.
4471 +libname_spec=$lt_libname_spec
4472 +
4473 +# List of archive names. First name is the real one, the rest are links.
4474 +# The last name is the one that the linker finds with -lNAME.
4475 +library_names_spec=$lt_library_names_spec
4476 +
4477 +# The coded name of the library, if different from the real name.
4478 +soname_spec=$lt_soname_spec
4479 +
4480 +# Commands used to build and install an old-style archive.
4481 +RANLIB=$lt_RANLIB
4482 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4483 +old_postinstall_cmds=$lt_old_postinstall_cmds
4484 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
4485 +
4486 +# Create an old-style archive from a shared archive.
4487 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4488 +
4489 +# Create a temporary old-style archive to link instead of a shared archive.
4490 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4491 +
4492 +# Commands used to build and install a shared archive.
4493 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4494 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4495 +postinstall_cmds=$lt_postinstall_cmds
4496 +postuninstall_cmds=$lt_postuninstall_cmds
4497 +
4498 +# Commands used to build a loadable module (assumed same as above if empty)
4499 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4500 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4501 +
4502 +# Commands to strip libraries.
4503 +old_striplib=$lt_old_striplib
4504 +striplib=$lt_striplib
4505 +
4506 +# Dependencies to place before the objects being linked to create a
4507 +# shared library.
4508 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4509 +
4510 +# Dependencies to place after the objects being linked to create a
4511 +# shared library.
4512 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4513 +
4514 +# Dependencies to place before the objects being linked to create a
4515 +# shared library.
4516 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4517 +
4518 +# Dependencies to place after the objects being linked to create a
4519 +# shared library.
4520 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4521 +
4522 +# The library search path used internally by the compiler when linking
4523 +# a shared library.
4524 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4525 +
4526 +# Method to check whether dependent libraries are shared objects.
4527 +deplibs_check_method=$lt_deplibs_check_method
4528 +
4529 +# Command to use when deplibs_check_method == file_magic.
4530 +file_magic_cmd=$lt_file_magic_cmd
4531 +
4532 +# Flag that allows shared libraries with undefined symbols to be built.
4533 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4534 +
4535 +# Flag that forces no undefined symbols.
4536 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4537 +
4538 +# Commands used to finish a libtool library installation in a directory.
4539 +finish_cmds=$lt_finish_cmds
4540 +
4541 +# Same as above, but a single script fragment to be evaled but not shown.
4542 +finish_eval=$lt_finish_eval
4543 +
4544 +# Take the output of nm and produce a listing of raw symbols and C names.
4545 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4546 +
4547 +# Transform the output of nm in a proper C declaration
4548 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4549 +
4550 +# Transform the output of nm in a C name address pair
4551 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4552 +
4553 +# This is the shared library runtime path variable.
4554 +runpath_var=$runpath_var
4555 +
4556 +# This is the shared library path variable.
4557 +shlibpath_var=$shlibpath_var
4558 +
4559 +# Is shlibpath searched before the hard-coded library search path?
4560 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4561 +
4562 +# How to hardcode a shared library path into an executable.
4563 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4564 +
4565 +# Whether we should hardcode library paths into libraries.
4566 +hardcode_into_libs=$hardcode_into_libs
4567 +
4568 +# Flag to hardcode \$libdir into a binary during linking.
4569 +# This must work even if \$libdir does not exist.
4570 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4571 +
4572 +# If ld is used when linking, flag to hardcode \$libdir into
4573 +# a binary during linking. This must work even if \$libdir does
4574 +# not exist.
4575 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4576 +
4577 +# Whether we need a single -rpath flag with a separated argument.
4578 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4579 +
4580 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4581 +# resulting binary.
4582 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4583 +
4584 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4585 +# resulting binary.
4586 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4587 +
4588 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4589 +# the resulting binary.
4590 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4591 +
4592 +# Set to yes if building a shared library automatically hardcodes DIR into the library
4593 +# and all subsequent libraries and executables linked against it.
4594 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4595 +
4596 +# Variables whose values should be saved in libtool wrapper scripts and
4597 +# restored at relink time.
4598 +variables_saved_for_relink="$variables_saved_for_relink"
4599 +
4600 +# Whether libtool must link a program against all its dependency libraries.
4601 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4602 +
4603 +# Compile-time system search path for libraries
4604 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4605 +
4606 +# Run-time system search path for libraries
4607 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4608 +
4609 +# Fix the shell variable \$srcfile for the compiler.
4610 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4611 +
4612 +# Set to yes if exported symbols are required.
4613 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4614 +
4615 +# The commands to list exported symbols.
4616 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4617 +
4618 +# The commands to extract the exported symbol list from a shared archive.
4619 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
4620 +
4621 +# Symbols that should not be listed in the preloaded symbols.
4622 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4623 +
4624 +# Symbols that must always be exported.
4625 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4626 +
4627 +ifelse([$1],[],
4628 +[# ### END LIBTOOL CONFIG],
4629 +[# ### END LIBTOOL TAG CONFIG: $tagname])
4630 +
4631 +__EOF__
4632 +
4633 +ifelse([$1],[], [
4634 + case $host_os in
4635 + aix3*)
4636 + cat <<\EOF >> "$cfgfile"
4637 +
4638 +# AIX sometimes has problems with the GCC collect2 program. For some
4639 +# reason, if we set the COLLECT_NAMES environment variable, the problems
4640 +# vanish in a puff of smoke.
4641 +if test "X${COLLECT_NAMES+set}" != Xset; then
4642 + COLLECT_NAMES=
4643 + export COLLECT_NAMES
4644 +fi
4645 +EOF
4646 + ;;
4647 + esac
4648 +
4649 + # We use sed instead of cat because bash on DJGPP gets confused if
4650 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
4651 + # text mode, it properly converts lines to CR/LF. This bash problem
4652 + # is reportedly fixed, but why not run on old versions too?
4653 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4654 +
4655 + mv -f "$cfgfile" "$ofile" || \
4656 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4657 + chmod +x "$ofile"
4658 +])
4659 +else
4660 + # If there is no Makefile yet, we rely on a make rule to execute
4661 + # `config.status --recheck' to rerun these tests and create the
4662 + # libtool script then.
4663 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4664 + if test -f "$ltmain_in"; then
4665 + test -f Makefile && make "$ltmain"
4666 + fi
4667 +fi
4668 +])# AC_LIBTOOL_CONFIG
4669 +
4670 +
4671 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4672 +# -------------------------------------------
4673 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4674 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4675 +
4676 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4677 +
4678 +if test "$GCC" = yes; then
4679 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4680 +
4681 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4682 + lt_cv_prog_compiler_rtti_exceptions,
4683 + [-fno-rtti -fno-exceptions], [],
4684 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4685 +fi
4686 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4687 +
4688 +
4689 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4690 +# ---------------------------------
4691 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4692 +[AC_REQUIRE([AC_CANONICAL_HOST])
4693 +AC_REQUIRE([AC_PROG_NM])
4694 +AC_REQUIRE([AC_OBJEXT])
4695 +# Check for command to grab the raw symbol name followed by C symbol from nm.
4696 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4697 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4698 +[
4699 +# These are sane defaults that work on at least a few old systems.
4700 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4701 +
4702 +# Character class describing NM global symbol codes.
4703 +symcode='[[BCDEGRST]]'
4704 +
4705 +# Regexp to match symbols that can be accessed directly from C.
4706 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4707 +
4708 +# Transform an extracted symbol line into a proper C declaration
4709 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4710 +
4711 +# Transform an extracted symbol line into symbol name and symbol address
4712 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4713 +
4714 +# Define system-specific variables.
4715 +case $host_os in
4716 +aix*)
4717 + symcode='[[BCDT]]'
4718 + ;;
4719 +cygwin* | mingw* | pw32*)
4720 + symcode='[[ABCDGISTW]]'
4721 + ;;
4722 +hpux*) # Its linker distinguishes data from code symbols
4723 + if test "$host_cpu" = ia64; then
4724 + symcode='[[ABCDEGRST]]'
4725 + fi
4726 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4727 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4728 + ;;
4729 +linux*)
4730 + if test "$host_cpu" = ia64; then
4731 + symcode='[[ABCDGIRSTW]]'
4732 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4733 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4734 + fi
4735 + ;;
4736 +irix* | nonstopux*)
4737 + symcode='[[BCDEGRST]]'
4738 + ;;
4739 +osf*)
4740 + symcode='[[BCDEGQRST]]'
4741 + ;;
4742 +solaris*)
4743 + symcode='[[BDRT]]'
4744 + ;;
4745 +sco3.2v5*)
4746 + symcode='[[DT]]'
4747 + ;;
4748 +sysv4.2uw2*)
4749 + symcode='[[DT]]'
4750 + ;;
4751 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
4752 + symcode='[[ABDT]]'
4753 + ;;
4754 +sysv4)
4755 + symcode='[[DFNSTU]]'
4756 + ;;
4757 +esac
4758 +
4759 +# Handle CRLF in mingw tool chain
4760 +opt_cr=
4761 +case $build_os in
4762 +mingw*)
4763 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4764 + ;;
4765 +esac
4766 +
4767 +# If we're using GNU nm, then use its standard symbol codes.
4768 +case `$NM -V 2>&1` in
4769 +*GNU* | *'with BFD'*)
4770 + symcode='[[ABCDGIRSTW]]' ;;
4771 +esac
4772 +
4773 +# Try without a prefix undercore, then with it.
4774 +for ac_symprfx in "" "_"; do
4775 +
4776 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4777 + symxfrm="\\1 $ac_symprfx\\2 \\2"
4778 +
4779 + # Write the raw and C identifiers.
4780 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4781 +
4782 + # Check to see that the pipe works correctly.
4783 + pipe_works=no
4784 +
4785 + rm -f conftest*
4786 + cat > conftest.$ac_ext <<EOF
4787 +#ifdef __cplusplus
4788 +extern "C" {
4789 +#endif
4790 +char nm_test_var;
4791 +void nm_test_func(){}
4792 +#ifdef __cplusplus
4793 +}
4794 +#endif
4795 +int main(){nm_test_var='a';nm_test_func();return(0);}
4796 +EOF
4797 +
4798 + if AC_TRY_EVAL(ac_compile); then
4799 + # Now try to grab the symbols.
4800 + nlist=conftest.nm
4801 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4802 + # Try sorting and uniquifying the output.
4803 + if sort "$nlist" | uniq > "$nlist"T; then
4804 + mv -f "$nlist"T "$nlist"
4805 + else
4806 + rm -f "$nlist"T
4807 + fi
4808 +
4809 + # Make sure that we snagged all the symbols we need.
4810 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
4811 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
4812 + cat <<EOF > conftest.$ac_ext
4813 +#ifdef __cplusplus
4814 +extern "C" {
4815 +#endif
4816 +
4817 +EOF
4818 + # Now generate the symbol file.
4819 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4820 +
4821 + cat <<EOF >> conftest.$ac_ext
4822 +#if defined (__STDC__) && __STDC__
4823 +# define lt_ptr_t void *
4824 +#else
4825 +# define lt_ptr_t char *
4826 +# define const
4827 +#endif
4828 +
4829 +/* The mapping between symbol names and symbols. */
4830 +const struct {
4831 + const char *name;
4832 + lt_ptr_t address;
4833 +}
4834 +lt_preloaded_symbols[[]] =
4835 +{
4836 +EOF
4837 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4838 + cat <<\EOF >> conftest.$ac_ext
4839 + {0, (lt_ptr_t) 0}
4840 +};
4841 +
4842 +#ifdef __cplusplus
4843 +}
4844 +#endif
4845 +EOF
4846 + # Now try linking the two files.
4847 + mv conftest.$ac_objext conftstm.$ac_objext
4848 + lt_save_LIBS="$LIBS"
4849 + lt_save_CFLAGS="$CFLAGS"
4850 + LIBS="conftstm.$ac_objext"
4851 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4852 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4853 + pipe_works=yes
4854 + fi
4855 + LIBS="$lt_save_LIBS"
4856 + CFLAGS="$lt_save_CFLAGS"
4857 + else
4858 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4859 + fi
4860 + else
4861 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4862 + fi
4863 + else
4864 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4865 + fi
4866 + else
4867 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4868 + cat conftest.$ac_ext >&5
4869 + fi
4870 + rm -f conftest* conftst*
4871 +
4872 + # Do not use the global_symbol_pipe unless it works.
4873 + if test "$pipe_works" = yes; then
4874 + break
4875 + else
4876 + lt_cv_sys_global_symbol_pipe=
4877 + fi
4878 +done
4879 +])
4880 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
4881 + lt_cv_sys_global_symbol_to_cdecl=
4882 +fi
4883 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4884 + AC_MSG_RESULT(failed)
4885 +else
4886 + AC_MSG_RESULT(ok)
4887 +fi
4888 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4889 +
4890 +
4891 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4892 +# ---------------------------------------
4893 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4894 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4895 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4896 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4897 +
4898 +AC_MSG_CHECKING([for $compiler option to produce PIC])
4899 + ifelse([$1],[CXX],[
4900 + # C++ specific cases for pic, static, wl, etc.
4901 + if test "$GXX" = yes; then
4902 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4904 +
4905 + case $host_os in
4906 + aix*)
4907 + # All AIX code is PIC.
4908 + if test "$host_cpu" = ia64; then
4909 + # AIX 5 now supports IA64 processor
4910 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911 + fi
4912 + ;;
4913 + amigaos*)
4914 + # FIXME: we need at least 68020 code to build shared libraries, but
4915 + # adding the `-m68020' flag to GCC prevents building anything better,
4916 + # like `-m68040'.
4917 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4918 + ;;
4919 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4920 + # PIC is the default for these OSes.
4921 + ;;
4922 + mingw* | os2* | pw32*)
4923 + # This hack is so that the source file can tell whether it is being
4924 + # built for inclusion in a dll (and should export symbols for example).
4925 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4926 + ;;
4927 + darwin* | rhapsody*)
4928 + # PIC is the default on this platform
4929 + # Common symbols not allowed in MH_DYLIB files
4930 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4931 + ;;
4932 + *djgpp*)
4933 + # DJGPP does not support shared libraries at all
4934 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4935 + ;;
4936 + interix3*)
4937 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4938 + # Instead, we relocate shared libraries at runtime.
4939 + ;;
4940 + sysv4*MP*)
4941 + if test -d /usr/nec; then
4942 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4943 + fi
4944 + ;;
4945 + hpux*)
4946 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4947 + # not for PA HP-UX.
4948 + case $host_cpu in
4949 + hppa*64*|ia64*)
4950 + ;;
4951 + *)
4952 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4953 + ;;
4954 + esac
4955 + ;;
4956 + *)
4957 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4958 + ;;
4959 + esac
4960 + else
4961 + case $host_os in
4962 + aix4* | aix5*)
4963 + # All AIX code is PIC.
4964 + if test "$host_cpu" = ia64; then
4965 + # AIX 5 now supports IA64 processor
4966 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4967 + else
4968 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4969 + fi
4970 + ;;
4971 + chorus*)
4972 + case $cc_basename in
4973 + cxch68*)
4974 + # Green Hills C++ Compiler
4975 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4976 + ;;
4977 + esac
4978 + ;;
4979 + darwin*)
4980 + # PIC is the default on this platform
4981 + # Common symbols not allowed in MH_DYLIB files
4982 + case $cc_basename in
4983 + xlc*)
4984 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4985 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4986 + ;;
4987 + esac
4988 + ;;
4989 + dgux*)
4990 + case $cc_basename in
4991 + ec++*)
4992 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4993 + ;;
4994 + ghcx*)
4995 + # Green Hills C++ Compiler
4996 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4997 + ;;
4998 + *)
4999 + ;;
5000 + esac
5001 + ;;
5002 + freebsd* | kfreebsd*-gnu | dragonfly*)
5003 + # FreeBSD uses GNU C++
5004 + ;;
5005 + hpux9* | hpux10* | hpux11*)
5006 + case $cc_basename in
5007 + CC*)
5008 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5009 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5010 + if test "$host_cpu" != ia64; then
5011 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5012 + fi
5013 + ;;
5014 + aCC*)
5015 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5016 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5017 + case $host_cpu in
5018 + hppa*64*|ia64*)
5019 + # +Z the default
5020 + ;;
5021 + *)
5022 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5023 + ;;
5024 + esac
5025 + ;;
5026 + *)
5027 + ;;
5028 + esac
5029 + ;;
5030 + interix*)
5031 + # This is c89, which is MS Visual C++ (no shared libs)
5032 + # Anyone wants to do a port?
5033 + ;;
5034 + irix5* | irix6* | nonstopux*)
5035 + case $cc_basename in
5036 + CC*)
5037 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5038 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5039 + # CC pic flag -KPIC is the default.
5040 + ;;
5041 + *)
5042 + ;;
5043 + esac
5044 + ;;
5045 + linux*)
5046 + case $cc_basename in
5047 + KCC*)
5048 + # KAI C++ Compiler
5049 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5050 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5051 + ;;
5052 + icpc* | ecpc*)
5053 + # Intel C++
5054 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5055 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5056 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5057 + ;;
5058 + pgCC*)
5059 + # Portland Group C++ compiler.
5060 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5061 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5062 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5063 + ;;
5064 + cxx*)
5065 + # Compaq C++
5066 + # Make sure the PIC flag is empty. It appears that all Alpha
5067 + # Linux and Compaq Tru64 Unix objects are PIC.
5068 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5069 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5070 + ;;
5071 + *)
5072 + ;;
5073 + esac
5074 + ;;
5075 + lynxos*)
5076 + ;;
5077 + m88k*)
5078 + ;;
5079 + mvs*)
5080 + case $cc_basename in
5081 + cxx*)
5082 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5083 + ;;
5084 + *)
5085 + ;;
5086 + esac
5087 + ;;
5088 + netbsd*)
5089 + ;;
5090 + osf3* | osf4* | osf5*)
5091 + case $cc_basename in
5092 + KCC*)
5093 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5094 + ;;
5095 + RCC*)
5096 + # Rational C++ 2.4.1
5097 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5098 + ;;
5099 + cxx*)
5100 + # Digital/Compaq C++
5101 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5102 + # Make sure the PIC flag is empty. It appears that all Alpha
5103 + # Linux and Compaq Tru64 Unix objects are PIC.
5104 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5105 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5106 + ;;
5107 + *)
5108 + ;;
5109 + esac
5110 + ;;
5111 + psos*)
5112 + ;;
5113 + solaris*)
5114 + case $cc_basename in
5115 + CC*)
5116 + # Sun C++ 4.2, 5.x and Centerline C++
5117 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5118 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5119 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5120 + ;;
5121 + gcx*)
5122 + # Green Hills C++ Compiler
5123 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5124 + ;;
5125 + *)
5126 + ;;
5127 + esac
5128 + ;;
5129 + sunos4*)
5130 + case $cc_basename in
5131 + CC*)
5132 + # Sun C++ 4.x
5133 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5134 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135 + ;;
5136 + lcc*)
5137 + # Lucid
5138 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5139 + ;;
5140 + *)
5141 + ;;
5142 + esac
5143 + ;;
5144 + tandem*)
5145 + case $cc_basename in
5146 + NCC*)
5147 + # NonStop-UX NCC 3.20
5148 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5149 + ;;
5150 + *)
5151 + ;;
5152 + esac
5153 + ;;
5154 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5155 + case $cc_basename in
5156 + CC*)
5157 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5158 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5159 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5160 + ;;
5161 + esac
5162 + ;;
5163 + vxworks*)
5164 + ;;
5165 + *)
5166 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5167 + ;;
5168 + esac
5169 + fi
5170 +],
5171 +[
5172 + if test "$GCC" = yes; then
5173 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5174 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5175 +
5176 + case $host_os in
5177 + aix*)
5178 + # All AIX code is PIC.
5179 + if test "$host_cpu" = ia64; then
5180 + # AIX 5 now supports IA64 processor
5181 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5182 + fi
5183 + ;;
5184 +
5185 + amigaos*)
5186 + # FIXME: we need at least 68020 code to build shared libraries, but
5187 + # adding the `-m68020' flag to GCC prevents building anything better,
5188 + # like `-m68040'.
5189 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5190 + ;;
5191 +
5192 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5193 + # PIC is the default for these OSes.
5194 + ;;
5195 +
5196 + mingw* | pw32* | os2*)
5197 + # This hack is so that the source file can tell whether it is being
5198 + # built for inclusion in a dll (and should export symbols for example).
5199 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5200 + ;;
5201 +
5202 + darwin* | rhapsody*)
5203 + # PIC is the default on this platform
5204 + # Common symbols not allowed in MH_DYLIB files
5205 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5206 + ;;
5207 +
5208 + interix3*)
5209 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5210 + # Instead, we relocate shared libraries at runtime.
5211 + ;;
5212 +
5213 + msdosdjgpp*)
5214 + # Just because we use GCC doesn't mean we suddenly get shared libraries
5215 + # on systems that don't support them.
5216 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5217 + enable_shared=no
5218 + ;;
5219 +
5220 + sysv4*MP*)
5221 + if test -d /usr/nec; then
5222 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5223 + fi
5224 + ;;
5225 +
5226 + hpux*)
5227 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5228 + # not for PA HP-UX.
5229 + case $host_cpu in
5230 + hppa*64*|ia64*)
5231 + # +Z the default
5232 + ;;
5233 + *)
5234 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5235 + ;;
5236 + esac
5237 + ;;
5238 +
5239 + *)
5240 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5241 + ;;
5242 + esac
5243 + else
5244 + # PORTME Check for flag to pass linker flags through the system compiler.
5245 + case $host_os in
5246 + aix*)
5247 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5248 + if test "$host_cpu" = ia64; then
5249 + # AIX 5 now supports IA64 processor
5250 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5251 + else
5252 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5253 + fi
5254 + ;;
5255 + darwin*)
5256 + # PIC is the default on this platform
5257 + # Common symbols not allowed in MH_DYLIB files
5258 + case $cc_basename in
5259 + xlc*)
5260 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5261 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5262 + ;;
5263 + esac
5264 + ;;
5265 +
5266 + mingw* | pw32* | os2*)
5267 + # This hack is so that the source file can tell whether it is being
5268 + # built for inclusion in a dll (and should export symbols for example).
5269 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5270 + ;;
5271 +
5272 + hpux9* | hpux10* | hpux11*)
5273 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5274 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5275 + # not for PA HP-UX.
5276 + case $host_cpu in
5277 + hppa*64*|ia64*)
5278 + # +Z the default
5279 + ;;
5280 + *)
5281 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5282 + ;;
5283 + esac
5284 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
5285 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5286 + ;;
5287 +
5288 + irix5* | irix6* | nonstopux*)
5289 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5290 + # PIC (with -KPIC) is the default.
5291 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5292 + ;;
5293 +
5294 + newsos6)
5295 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5296 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5297 + ;;
5298 +
5299 + linux*)
5300 + case $cc_basename in
5301 + icc* | ecc*)
5302 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5303 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5304 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5305 + ;;
5306 + pgcc* | pgf77* | pgf90* | pgf95*)
5307 + # Portland Group compilers (*not* the Pentium gcc compiler,
5308 + # which looks to be a dead project)
5309 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5311 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5312 + ;;
5313 + ccc*)
5314 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5315 + # All Alpha code is PIC.
5316 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5317 + ;;
5318 + esac
5319 + ;;
5320 +
5321 + osf3* | osf4* | osf5*)
5322 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5323 + # All OSF/1 code is PIC.
5324 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5325 + ;;
5326 +
5327 + solaris*)
5328 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5329 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5330 + case $cc_basename in
5331 + f77* | f90* | f95*)
5332 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5333 + *)
5334 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5335 + esac
5336 + ;;
5337 +
5338 + sunos4*)
5339 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5340 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5341 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5342 + ;;
5343 +
5344 + sysv4 | sysv4.2uw2* | sysv4.3*)
5345 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5346 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5347 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5348 + ;;
5349 +
5350 + sysv4*MP*)
5351 + if test -d /usr/nec ;then
5352 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5353 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5354 + fi
5355 + ;;
5356 +
5357 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5358 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5359 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5360 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5361 + ;;
5362 +
5363 + unicos*)
5364 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5365 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5366 + ;;
5367 +
5368 + uts4*)
5369 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5370 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5371 + ;;
5372 +
5373 + *)
5374 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5375 + ;;
5376 + esac
5377 + fi
5378 +])
5379 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5380 +
5381 +#
5382 +# Check to make sure the PIC flag actually works.
5383 +#
5384 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5385 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5386 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5387 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5388 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5389 + "" | " "*) ;;
5390 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5391 + esac],
5392 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5393 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5394 +fi
5395 +case $host_os in
5396 + # For platforms which do not support PIC, -DPIC is meaningless:
5397 + *djgpp*)
5398 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5399 + ;;
5400 + *)
5401 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5402 + ;;
5403 +esac
5404 +
5405 +#
5406 +# Check to make sure the static flag actually works.
5407 +#
5408 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5409 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5410 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5411 + $lt_tmp_static_flag,
5412 + [],
5413 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5414 +])
5415 +
5416 +
5417 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5418 +# ------------------------------------
5419 +# See if the linker supports building shared libraries.
5420 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5421 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5422 +ifelse([$1],[CXX],[
5423 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5424 + case $host_os in
5425 + aix4* | aix5*)
5426 + # If we're using GNU nm, then we don't want the "-C" option.
5427 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
5428 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5429 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5430 + else
5431 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5432 + fi
5433 + ;;
5434 + pw32*)
5435 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5436 + ;;
5437 + cygwin* | mingw*)
5438 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5439 + ;;
5440 + *)
5441 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5442 + ;;
5443 + esac
5444 +],[
5445 + runpath_var=
5446 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5447 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5448 + _LT_AC_TAGVAR(archive_cmds, $1)=
5449 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5450 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5451 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5452 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5453 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5454 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5455 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5456 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5457 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5458 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5459 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5460 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5461 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5462 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5463 + _LT_AC_TAGVAR(module_cmds, $1)=
5464 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5465 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5466 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5467 + # include_expsyms should be a list of space-separated symbols to be *always*
5468 + # included in the symbol list
5469 + _LT_AC_TAGVAR(include_expsyms, $1)=
5470 + # exclude_expsyms can be an extended regexp of symbols to exclude
5471 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
5472 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5473 + # as well as any symbol that contains `d'.
5474 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5475 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5476 + # platforms (ab)use it in PIC code, but their linkers get confused if
5477 + # the symbol is explicitly referenced. Since portable code cannot
5478 + # rely on this symbol name, it's probably fine to never include it in
5479 + # preloaded symbol tables.
5480 + extract_expsyms_cmds=
5481 + # Just being paranoid about ensuring that cc_basename is set.
5482 + _LT_CC_BASENAME([$compiler])
5483 + case $host_os in
5484 + cygwin* | mingw* | pw32*)
5485 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
5486 + # When not using gcc, we currently assume that we are using
5487 + # Microsoft Visual C++.
5488 + if test "$GCC" != yes; then
5489 + with_gnu_ld=no
5490 + fi
5491 + ;;
5492 + interix*)
5493 + # we just hope/assume this is gcc and not c89 (= MSVC++)
5494 + with_gnu_ld=yes
5495 + ;;
5496 + openbsd*)
5497 + with_gnu_ld=no
5498 + ;;
5499 + esac
5500 +
5501 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5502 + if test "$with_gnu_ld" = yes; then
5503 + # If archive_cmds runs LD, not CC, wlarc should be empty
5504 + wlarc='${wl}'
5505 +
5506 + # Set some defaults for GNU ld with shared library support. These
5507 + # are reset later if shared libraries are not supported. Putting them
5508 + # here allows them to be overridden if necessary.
5509 + runpath_var=LD_RUN_PATH
5510 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5511 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5512 + # ancient GNU ld didn't support --whole-archive et. al.
5513 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5514 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5515 + else
5516 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5517 + fi
5518 + supports_anon_versioning=no
5519 + case `$LD -v 2>/dev/null` in
5520 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5521 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5522 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5523 + *\ 2.11.*) ;; # other 2.11 versions
5524 + *) supports_anon_versioning=yes ;;
5525 + esac
5526 +
5527 + # See if GNU ld supports shared libraries.
5528 + case $host_os in
5529 + aix3* | aix4* | aix5*)
5530 + # On AIX/PPC, the GNU linker is very broken
5531 + if test "$host_cpu" != ia64; then
5532 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5533 + cat <<EOF 1>&2
5534 +
5535 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5536 +*** to be unable to reliably create shared libraries on AIX.
5537 +*** Therefore, libtool is disabling shared libraries support. If you
5538 +*** really care for shared libraries, you may want to modify your PATH
5539 +*** so that a non-GNU linker is found, and then restart.
5540 +
5541 +EOF
5542 + fi
5543 + ;;
5544 +
5545 + amigaos*)
5546 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5547 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5548 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5549 +
5550 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5551 + # that the semantics of dynamic libraries on AmigaOS, at least up
5552 + # to version 4, is to share data among multiple programs linked
5553 + # with the same dynamic library. Since this doesn't match the
5554 + # behavior of shared libraries on other platforms, we can't use
5555 + # them.
5556 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5557 + ;;
5558 +
5559 + beos*)
5560 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5561 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5562 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5563 + # support --undefined. This deserves some investigation. FIXME
5564 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5565 + else
5566 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5567 + fi
5568 + ;;
5569 +
5570 + cygwin* | mingw* | pw32*)
5571 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5572 + # as there is no search path for DLLs.
5573 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5574 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5575 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5576 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5577 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5578 +
5579 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5580 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5581 + # If the export-symbols file already is a .def file (1st line
5582 + # is EXPORTS), use it as is; otherwise, prepend...
5583 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5584 + cp $export_symbols $output_objdir/$soname.def;
5585 + else
5586 + echo EXPORTS > $output_objdir/$soname.def;
5587 + cat $export_symbols >> $output_objdir/$soname.def;
5588 + fi~
5589 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5590 + else
5591 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5592 + fi
5593 + ;;
5594 +
5595 + interix3*)
5596 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5597 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5598 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5599 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5600 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5601 + # Instead, shared libraries are loaded at an image base (0x10000000 by
5602 + # default) and relocated if they conflict, which is a slow very memory
5603 + # consuming and fragmenting process. To avoid this, we pick a random,
5604 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5605 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5606 + _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'
5607 + _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'
5608 + ;;
5609 +
5610 + linux*)
5611 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5612 + tmp_addflag=
5613 + case $cc_basename,$host_cpu in
5614 + pgcc*) # Portland Group C compiler
5615 + _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'
5616 + tmp_addflag=' $pic_flag'
5617 + ;;
5618 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5619 + _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'
5620 + tmp_addflag=' $pic_flag -Mnomain' ;;
5621 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5622 + tmp_addflag=' -i_dynamic' ;;
5623 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5624 + tmp_addflag=' -i_dynamic -nofor_main' ;;
5625 + ifc* | ifort*) # Intel Fortran compiler
5626 + tmp_addflag=' -nofor_main' ;;
5627 + esac
5628 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5629 +
5630 + if test $supports_anon_versioning = yes; then
5631 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5632 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5633 + $echo "local: *; };" >> $output_objdir/$libname.ver~
5634 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5635 + fi
5636 + else
5637 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5638 + fi
5639 + ;;
5640 +
5641 + netbsd*)
5642 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5643 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5644 + wlarc=
5645 + else
5646 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5647 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5648 + fi
5649 + ;;
5650 +
5651 + solaris*)
5652 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5653 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5654 + cat <<EOF 1>&2
5655 +
5656 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5657 +*** create shared libraries on Solaris systems. Therefore, libtool
5658 +*** is disabling shared libraries support. We urge you to upgrade GNU
5659 +*** binutils to release 2.9.1 or newer. Another option is to modify
5660 +*** your PATH or compiler configuration so that the native linker is
5661 +*** used, and then restart.
5662 +
5663 +EOF
5664 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5665 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5666 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5667 + else
5668 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5669 + fi
5670 + ;;
5671 +
5672 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5673 + case `$LD -v 2>&1` in
5674 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5675 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5676 + cat <<_LT_EOF 1>&2
5677 +
5678 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5679 +*** reliably create shared libraries on SCO systems. Therefore, libtool
5680 +*** is disabling shared libraries support. We urge you to upgrade GNU
5681 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5682 +*** your PATH or compiler configuration so that the native linker is
5683 +*** used, and then restart.
5684 +
5685 +_LT_EOF
5686 + ;;
5687 + *)
5688 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5689 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5690 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5691 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5692 + else
5693 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5694 + fi
5695 + ;;
5696 + esac
5697 + ;;
5698 +
5699 + sunos4*)
5700 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5701 + wlarc=
5702 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5703 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5704 + ;;
5705 +
5706 + *)
5707 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5708 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5709 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5710 + else
5711 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5712 + fi
5713 + ;;
5714 + esac
5715 +
5716 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5717 + runpath_var=
5718 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5719 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5720 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5721 + fi
5722 + else
5723 + # PORTME fill in a description of your system's linker (not GNU ld)
5724 + case $host_os in
5725 + aix3*)
5726 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5727 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5728 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5729 + # Note: this linker hardcodes the directories in LIBPATH if there
5730 + # are no directories specified by -L.
5731 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5732 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5733 + # Neither direct hardcoding nor static linking is supported with a
5734 + # broken collect2.
5735 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5736 + fi
5737 + ;;
5738 +
5739 + aix4* | aix5*)
5740 + if test "$host_cpu" = ia64; then
5741 + # On IA64, the linker does run time linking by default, so we don't
5742 + # have to do anything special.
5743 + aix_use_runtimelinking=no
5744 + exp_sym_flag='-Bexport'
5745 + no_entry_flag=""
5746 + else
5747 + # If we're using GNU nm, then we don't want the "-C" option.
5748 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
5749 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5750 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5751 + else
5752 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5753 + fi
5754 + aix_use_runtimelinking=no
5755 +
5756 + # Test if we are trying to use run time linking or normal
5757 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5758 + # need to do runtime linking.
5759 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5760 + for ld_flag in $LDFLAGS; do
5761 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5762 + aix_use_runtimelinking=yes
5763 + break
5764 + fi
5765 + done
5766 + ;;
5767 + esac
5768 +
5769 + exp_sym_flag='-bexport'
5770 + no_entry_flag='-bnoentry'
5771 + fi
5772 +
5773 + # When large executables or shared objects are built, AIX ld can
5774 + # have problems creating the table of contents. If linking a library
5775 + # or program results in "error TOC overflow" add -mminimal-toc to
5776 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5777 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5778 +
5779 + _LT_AC_TAGVAR(archive_cmds, $1)=''
5780 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5781 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5782 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5783 +
5784 + if test "$GCC" = yes; then
5785 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
5786 + # We only want to do this on AIX 4.2 and lower, the check
5787 + # below for broken collect2 doesn't work under 4.3+
5788 + collect2name=`${CC} -print-prog-name=collect2`
5789 + if test -f "$collect2name" && \
5790 + strings "$collect2name" | grep resolve_lib_name >/dev/null
5791 + then
5792 + # We have reworked collect2
5793 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5794 + else
5795 + # We have old collect2
5796 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5797 + # It fails to find uninstalled libraries when the uninstalled
5798 + # path is not listed in the libpath. Setting hardcode_minus_L
5799 + # to unsupported forces relinking
5800 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5801 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5802 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5803 + fi
5804 + ;;
5805 + esac
5806 + shared_flag='-shared'
5807 + if test "$aix_use_runtimelinking" = yes; then
5808 + shared_flag="$shared_flag "'${wl}-G'
5809 + fi
5810 + else
5811 + # not using gcc
5812 + if test "$host_cpu" = ia64; then
5813 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5814 + # chokes on -Wl,-G. The following line is correct:
5815 + shared_flag='-G'
5816 + else
5817 + if test "$aix_use_runtimelinking" = yes; then
5818 + shared_flag='${wl}-G'
5819 + else
5820 + shared_flag='${wl}-bM:SRE'
5821 + fi
5822 + fi
5823 + fi
5824 +
5825 + # It seems that -bexpall does not export symbols beginning with
5826 + # underscore (_), so it is better to generate a list of symbols to export.
5827 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5828 + if test "$aix_use_runtimelinking" = yes; then
5829 + # Warning - without using the other runtime loading flags (-brtl),
5830 + # -berok will link without error, but may produce a broken library.
5831 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5832 + # Determine the default libpath from the value encoded in an empty executable.
5833 + _LT_AC_SYS_LIBPATH_AIX
5834 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5835 + _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"
5836 + else
5837 + if test "$host_cpu" = ia64; then
5838 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5839 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5840 + _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"
5841 + else
5842 + # Determine the default libpath from the value encoded in an empty executable.
5843 + _LT_AC_SYS_LIBPATH_AIX
5844 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5845 + # Warning - without using the other run time loading flags,
5846 + # -berok will link without error, but may produce a broken library.
5847 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5848 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5849 + # Exported symbols can be pulled into shared objects from archives
5850 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5851 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5852 + # This is similar to how AIX traditionally builds its shared libraries.
5853 + _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'
5854 + fi
5855 + fi
5856 + ;;
5857 +
5858 + amigaos*)
5859 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5860 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5861 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5862 + # see comment about different semantics on the GNU ld section
5863 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5864 + ;;
5865 +
5866 + bsdi[[45]]*)
5867 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5868 + ;;
5869 +
5870 + cygwin* | mingw* | pw32*)
5871 + # When not using gcc, we currently assume that we are using
5872 + # Microsoft Visual C++.
5873 + # hardcode_libdir_flag_spec is actually meaningless, as there is
5874 + # no search path for DLLs.
5875 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5876 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5877 + # Tell ltmain to make .lib files, not .a files.
5878 + libext=lib
5879 + # Tell ltmain to make .dll files, not .so files.
5880 + shrext_cmds=".dll"
5881 + # FIXME: Setting linknames here is a bad hack.
5882 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5883 + # The linker will automatically build a .lib file if we build a DLL.
5884 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5885 + # FIXME: Should let the user specify the lib program.
5886 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5887 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5888 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5889 + ;;
5890 +
5891 + darwin* | rhapsody*)
5892 + case $host_os in
5893 + rhapsody* | darwin1.[[012]])
5894 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5895 + ;;
5896 + *) # Darwin 1.3 on
5897 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5898 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5899 + else
5900 + case ${MACOSX_DEPLOYMENT_TARGET} in
5901 + 10.[[012]])
5902 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5903 + ;;
5904 + 10.*)
5905 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5906 + ;;
5907 + esac
5908 + fi
5909 + ;;
5910 + esac
5911 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5912 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5913 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5914 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5915 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5916 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5917 + if test "$GCC" = yes ; then
5918 + output_verbose_link_cmd='echo'
5919 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5920 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5921 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5922 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5923 + _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}'
5924 + else
5925 + case $cc_basename in
5926 + xlc*)
5927 + output_verbose_link_cmd='echo'
5928 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5929 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5930 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5931 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5932 + _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}'
5933 + ;;
5934 + *)
5935 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5936 + ;;
5937 + esac
5938 + fi
5939 + ;;
5940 +
5941 + dgux*)
5942 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5944 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5945 + ;;
5946 +
5947 + freebsd1*)
5948 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5949 + ;;
5950 +
5951 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5952 + # support. Future versions do this automatically, but an explicit c++rt0.o
5953 + # does not break anything, and helps significantly (at the cost of a little
5954 + # extra space).
5955 + freebsd2.2*)
5956 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5957 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5958 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5959 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5960 + ;;
5961 +
5962 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5963 + freebsd2*)
5964 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5965 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5966 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5967 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5968 + ;;
5969 +
5970 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5971 + freebsd* | kfreebsd*-gnu | dragonfly*)
5972 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5973 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5974 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5975 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5976 + ;;
5977 +
5978 + hpux9*)
5979 + if test "$GCC" = yes; then
5980 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5981 + else
5982 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5983 + fi
5984 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5985 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5986 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5987 +
5988 + # hardcode_minus_L: Not really in the search PATH,
5989 + # but as the default location of the library.
5990 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5991 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5992 + ;;
5993 +
5994 + hpux10*)
5995 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5996 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5997 + else
5998 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5999 + fi
6000 + if test "$with_gnu_ld" = no; then
6001 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6002 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6003 +
6004 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6005 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6006 +
6007 + # hardcode_minus_L: Not really in the search PATH,
6008 + # but as the default location of the library.
6009 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6010 + fi
6011 + ;;
6012 +
6013 + hpux11*)
6014 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6015 + case $host_cpu in
6016 + hppa*64*)
6017 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6018 + ;;
6019 + ia64*)
6020 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6021 + ;;
6022 + *)
6023 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6024 + ;;
6025 + esac
6026 + else
6027 + case $host_cpu in
6028 + hppa*64*)
6029 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6030 + ;;
6031 + ia64*)
6032 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6033 + ;;
6034 + *)
6035 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6036 + ;;
6037 + esac
6038 + fi
6039 + if test "$with_gnu_ld" = no; then
6040 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6041 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6042 +
6043 + case $host_cpu in
6044 + hppa*64*|ia64*)
6045 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6046 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6047 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6048 + ;;
6049 + *)
6050 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6051 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6052 +
6053 + # hardcode_minus_L: Not really in the search PATH,
6054 + # but as the default location of the library.
6055 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6056 + ;;
6057 + esac
6058 + fi
6059 + ;;
6060 +
6061 + irix5* | irix6* | nonstopux*)
6062 + if test "$GCC" = yes; then
6063 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6064 + else
6065 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6066 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6067 + fi
6068 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6069 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6070 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6071 + ;;
6072 +
6073 + netbsd*)
6074 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6075 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6076 + else
6077 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6078 + fi
6079 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6080 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6081 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6082 + ;;
6083 +
6084 + newsos6)
6085 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6086 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6088 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6089 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6090 + ;;
6091 +
6092 + openbsd*)
6093 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6094 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6095 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6097 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6098 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6099 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6100 + else
6101 + case $host_os in
6102 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6103 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6104 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6105 + ;;
6106 + *)
6107 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6108 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6109 + ;;
6110 + esac
6111 + fi
6112 + ;;
6113 +
6114 + os2*)
6115 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6116 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6117 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6118 + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6119 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6120 + ;;
6121 +
6122 + osf3*)
6123 + if test "$GCC" = yes; then
6124 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6125 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6126 + else
6127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6128 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6129 + fi
6130 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6131 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6132 + ;;
6133 +
6134 + osf4* | osf5*) # as osf3* with the addition of -msym flag
6135 + if test "$GCC" = yes; then
6136 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6137 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6138 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6139 + else
6140 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6141 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6142 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6143 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6144 +
6145 + # Both c and cxx compiler support -rpath directly
6146 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6147 + fi
6148 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6149 + ;;
6150 +
6151 + solaris*)
6152 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6153 + if test "$GCC" = yes; then
6154 + wlarc='${wl}'
6155 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6156 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6157 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6158 + else
6159 + wlarc=''
6160 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6161 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6162 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6163 + fi
6164 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6165 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6166 + case $host_os in
6167 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6168 + *)
6169 + # The compiler driver will combine linker options so we
6170 + # cannot just pass the convience library names through
6171 + # without $wl, iff we do not link with $LD.
6172 + # Luckily, gcc supports the same syntax we need for Sun Studio.
6173 + # Supported since Solaris 2.6 (maybe 2.5.1?)
6174 + case $wlarc in
6175 + '')
6176 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6177 + *)
6178 + _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' ;;
6179 + esac ;;
6180 + esac
6181 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6182 + ;;
6183 +
6184 + sunos4*)
6185 + if test "x$host_vendor" = xsequent; then
6186 + # Use $CC to link under sequent, because it throws in some extra .o
6187 + # files that make .init and .fini sections work.
6188 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6189 + else
6190 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6191 + fi
6192 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6194 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6195 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6196 + ;;
6197 +
6198 + sysv4)
6199 + case $host_vendor in
6200 + sni)
6201 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6202 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6203 + ;;
6204 + siemens)
6205 + ## LD is ld it makes a PLAMLIB
6206 + ## CC just makes a GrossModule.
6207 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6208 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6209 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6210 + ;;
6211 + motorola)
6212 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6213 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6214 + ;;
6215 + esac
6216 + runpath_var='LD_RUN_PATH'
6217 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6218 + ;;
6219 +
6220 + sysv4.3*)
6221 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6222 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6223 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6224 + ;;
6225 +
6226 + sysv4*MP*)
6227 + if test -d /usr/nec; then
6228 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6230 + runpath_var=LD_RUN_PATH
6231 + hardcode_runpath_var=yes
6232 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6233 + fi
6234 + ;;
6235 +
6236 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6237 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6238 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6239 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6240 + runpath_var='LD_RUN_PATH'
6241 +
6242 + if test "$GCC" = yes; then
6243 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6244 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6245 + else
6246 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6247 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6248 + fi
6249 + ;;
6250 +
6251 + sysv5* | sco3.2v5* | sco5v6*)
6252 + # Note: We can NOT use -z defs as we might desire, because we do not
6253 + # link with -lc, and that would cause any symbols used from libc to
6254 + # always be unresolved, which means just about no library would
6255 + # ever link correctly. If we're not using GNU ld we use -z text
6256 + # though, which does catch some bad symbols but isn't as heavy-handed
6257 + # as -z defs.
6258 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6259 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6260 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6261 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6262 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6263 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6264 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6265 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6266 + runpath_var='LD_RUN_PATH'
6267 +
6268 + if test "$GCC" = yes; then
6269 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6270 + _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'
6271 + else
6272 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6273 + _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'
6274 + fi
6275 + ;;
6276 +
6277 + uts4*)
6278 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6280 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6281 + ;;
6282 +
6283 + *)
6284 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6285 + ;;
6286 + esac
6287 + fi
6288 +])
6289 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6290 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6291 +
6292 +#
6293 +# Do we need to explicitly link libc?
6294 +#
6295 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6296 +x|xyes)
6297 + # Assume -lc should be added
6298 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6299 +
6300 + if test "$enable_shared" = yes && test "$GCC" = yes; then
6301 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
6302 + *'~'*)
6303 + # FIXME: we may have to deal with multi-command sequences.
6304 + ;;
6305 + '$CC '*)
6306 + # Test whether the compiler implicitly links with -lc since on some
6307 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
6308 + # to ld, don't add -lc before -lgcc.
6309 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6310 + $rm conftest*
6311 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6312 +
6313 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6314 + soname=conftest
6315 + lib=conftest
6316 + libobjs=conftest.$ac_objext
6317 + deplibs=
6318 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6319 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6320 + compiler_flags=-v
6321 + linker_flags=-v
6322 + verstring=
6323 + output_objdir=.
6324 + libname=conftest
6325 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6326 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6327 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6328 + then
6329 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6330 + else
6331 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6332 + fi
6333 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6334 + else
6335 + cat conftest.err 1>&5
6336 + fi
6337 + $rm conftest*
6338 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6339 + ;;
6340 + esac
6341 + fi
6342 + ;;
6343 +esac
6344 +])# AC_LIBTOOL_PROG_LD_SHLIBS
6345 +
6346 +
6347 +# _LT_AC_FILE_LTDLL_C
6348 +# -------------------
6349 +# Be careful that the start marker always follows a newline.
6350 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6351 +# /* ltdll.c starts here */
6352 +# #define WIN32_LEAN_AND_MEAN
6353 +# #include <windows.h>
6354 +# #undef WIN32_LEAN_AND_MEAN
6355 +# #include <stdio.h>
6356 +#
6357 +# #ifndef __CYGWIN__
6358 +# # ifdef __CYGWIN32__
6359 +# # define __CYGWIN__ __CYGWIN32__
6360 +# # endif
6361 +# #endif
6362 +#
6363 +# #ifdef __cplusplus
6364 +# extern "C" {
6365 +# #endif
6366 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6367 +# #ifdef __cplusplus
6368 +# }
6369 +# #endif
6370 +#
6371 +# #ifdef __CYGWIN__
6372 +# #include <cygwin/cygwin_dll.h>
6373 +# DECLARE_CYGWIN_DLL( DllMain );
6374 +# #endif
6375 +# HINSTANCE __hDllInstance_base;
6376 +#
6377 +# BOOL APIENTRY
6378 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6379 +# {
6380 +# __hDllInstance_base = hInst;
6381 +# return TRUE;
6382 +# }
6383 +# /* ltdll.c ends here */
6384 +])# _LT_AC_FILE_LTDLL_C
6385 +
6386 +
6387 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6388 +# ---------------------------------
6389 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6390 +
6391 +
6392 +# old names
6393 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6394 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6395 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6396 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6397 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6398 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6399 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6400 +
6401 +# This is just to silence aclocal about the macro not being used
6402 +ifelse([AC_DISABLE_FAST_INSTALL])
6403 +
6404 +AC_DEFUN([LT_AC_PROG_GCJ],
6405 +[AC_CHECK_TOOL(GCJ, gcj, no)
6406 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6407 + AC_SUBST(GCJFLAGS)
6408 +])
6409 +
6410 +AC_DEFUN([LT_AC_PROG_RC],
6411 +[AC_CHECK_TOOL(RC, windres, no)
6412 +])
6413 +
6414 +# NOTE: This macro has been submitted for inclusion into #
6415 +# GNU Autoconf as AC_PROG_SED. When it is available in #
6416 +# a released version of Autoconf we should remove this #
6417 +# macro and use it instead. #
6418 +# LT_AC_PROG_SED
6419 +# --------------
6420 +# Check for a fully-functional sed program, that truncates
6421 +# as few characters as possible. Prefer GNU sed if found.
6422 +AC_DEFUN([LT_AC_PROG_SED],
6423 +[AC_MSG_CHECKING([for a sed that does not truncate output])
6424 +AC_CACHE_VAL(lt_cv_path_SED,
6425 +[# Loop through the user's path and test for sed and gsed.
6426 +# Then use that list of sed's as ones to test for truncation.
6427 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 +for as_dir in $PATH
6429 +do
6430 + IFS=$as_save_IFS
6431 + test -z "$as_dir" && as_dir=.
6432 + for lt_ac_prog in sed gsed; do
6433 + for ac_exec_ext in '' $ac_executable_extensions; do
6434 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6435 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6436 + fi
6437 + done
6438 + done
6439 +done
6440 +lt_ac_max=0
6441 +lt_ac_count=0
6442 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6443 +# along with /bin/sed that truncates output.
6444 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6445 + test ! -f $lt_ac_sed && continue
6446 + cat /dev/null > conftest.in
6447 + lt_ac_count=0
6448 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6449 + # Check for GNU sed and select it if it is found.
6450 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6451 + lt_cv_path_SED=$lt_ac_sed
6452 + break
6453 + fi
6454 + while true; do
6455 + cat conftest.in conftest.in >conftest.tmp
6456 + mv conftest.tmp conftest.in
6457 + cp conftest.in conftest.nl
6458 + echo >>conftest.nl
6459 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6460 + cmp -s conftest.out conftest.nl || break
6461 + # 10000 chars as input seems more than enough
6462 + test $lt_ac_count -gt 10 && break
6463 + lt_ac_count=`expr $lt_ac_count + 1`
6464 + if test $lt_ac_count -gt $lt_ac_max; then
6465 + lt_ac_max=$lt_ac_count
6466 + lt_cv_path_SED=$lt_ac_sed
6467 + fi
6468 + done
6469 +done
6470 +])
6471 +SED=$lt_cv_path_SED
6472 +AC_MSG_RESULT([$SED])
6473 +])
6474 +
6475 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6476 +#
6477 +# This file is free software; the Free Software Foundation
6478 +# gives unlimited permission to copy and/or distribute it,
6479 +# with or without modifications, as long as this notice is preserved.
6480 +
6481 +# AM_AUTOMAKE_VERSION(VERSION)
6482 +# ----------------------------
6483 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
6484 +# generated from the m4 files accompanying Automake X.Y.
6485 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6486 +
6487 +# AM_SET_CURRENT_AUTOMAKE_VERSION
6488 +# -------------------------------
6489 +# Call AM_AUTOMAKE_VERSION so it can be traced.
6490 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6491 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6492 + [AM_AUTOMAKE_VERSION([1.9.6])])
6493 +
6494 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6495 +
6496 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6497 +#
6498 +# This file is free software; the Free Software Foundation
6499 +# gives unlimited permission to copy and/or distribute it,
6500 +# with or without modifications, as long as this notice is preserved.
6501 +
6502 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6503 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6504 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6505 +#
6506 +# Of course, Automake must honor this variable whenever it calls a
6507 +# tool from the auxiliary directory. The problem is that $srcdir (and
6508 +# therefore $ac_aux_dir as well) can be either absolute or relative,
6509 +# depending on how configure is run. This is pretty annoying, since
6510 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6511 +# source directory, any form will work fine, but in subdirectories a
6512 +# relative path needs to be adjusted first.
6513 +#
6514 +# $ac_aux_dir/missing
6515 +# fails when called from a subdirectory if $ac_aux_dir is relative
6516 +# $top_srcdir/$ac_aux_dir/missing
6517 +# fails if $ac_aux_dir is absolute,
6518 +# fails when called from a subdirectory in a VPATH build with
6519 +# a relative $ac_aux_dir
6520 +#
6521 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6522 +# are both prefixed by $srcdir. In an in-source build this is usually
6523 +# harmless because $srcdir is `.', but things will broke when you
6524 +# start a VPATH build or use an absolute $srcdir.
6525 +#
6526 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6527 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6528 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6529 +# and then we would define $MISSING as
6530 +# MISSING="\${SHELL} $am_aux_dir/missing"
6531 +# This will work as long as MISSING is not called from configure, because
6532 +# unfortunately $(top_srcdir) has no meaning in configure.
6533 +# However there are other variables, like CC, which are often used in
6534 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
6535 +#
6536 +# Another solution, used here, is to always expand $ac_aux_dir to an
6537 +# absolute PATH. The drawback is that using absolute paths prevent a
6538 +# configured tree to be moved without reconfiguration.
6539 +
6540 +AC_DEFUN([AM_AUX_DIR_EXPAND],
6541 +[dnl Rely on autoconf to set up CDPATH properly.
6542 +AC_PREREQ([2.50])dnl
6543 +# expand $ac_aux_dir to an absolute path
6544 +am_aux_dir=`cd $ac_aux_dir && pwd`
6545 +])
6546 +
6547 +# AM_CONDITIONAL -*- Autoconf -*-
6548 +
6549 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6550 +# Free Software Foundation, Inc.
6551 +#
6552 +# This file is free software; the Free Software Foundation
6553 +# gives unlimited permission to copy and/or distribute it,
6554 +# with or without modifications, as long as this notice is preserved.
6555 +
6556 +# serial 7
6557 +
6558 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6559 +# -------------------------------------
6560 +# Define a conditional.
6561 +AC_DEFUN([AM_CONDITIONAL],
6562 +[AC_PREREQ(2.52)dnl
6563 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6564 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6565 +AC_SUBST([$1_TRUE])
6566 +AC_SUBST([$1_FALSE])
6567 +if $2; then
6568 + $1_TRUE=
6569 + $1_FALSE='#'
6570 +else
6571 + $1_TRUE='#'
6572 + $1_FALSE=
6573 +fi
6574 +AC_CONFIG_COMMANDS_PRE(
6575 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6576 + AC_MSG_ERROR([[conditional "$1" was never defined.
6577 +Usually this means the macro was only invoked conditionally.]])
6578 +fi])])
6579 +
6580 +
6581 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6582 +# Free Software Foundation, Inc.
6583 +#
6584 +# This file is free software; the Free Software Foundation
6585 +# gives unlimited permission to copy and/or distribute it,
6586 +# with or without modifications, as long as this notice is preserved.
6587 +
6588 +# serial 8
6589 +
6590 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6591 +# written in clear, in which case automake, when reading aclocal.m4,
6592 +# will think it sees a *use*, and therefore will trigger all it's
6593 +# C support machinery. Also note that it means that autoscan, seeing
6594 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6595 +
6596 +
6597 +# _AM_DEPENDENCIES(NAME)
6598 +# ----------------------
6599 +# See how the compiler implements dependency checking.
6600 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
6601 +# We try a few techniques and use that to set a single cache variable.
6602 +#
6603 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6604 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6605 +# dependency, and given that the user is not expected to run this macro,
6606 +# just rely on AC_PROG_CC.
6607 +AC_DEFUN([_AM_DEPENDENCIES],
6608 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
6609 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6610 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6611 +AC_REQUIRE([AM_DEP_TRACK])dnl
6612 +
6613 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6614 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
6615 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6616 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6617 + [depcc="$$1" am_compiler_list=])
6618 +
6619 +AC_CACHE_CHECK([dependency style of $depcc],
6620 + [am_cv_$1_dependencies_compiler_type],
6621 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6622 + # We make a subdir and do the tests there. Otherwise we can end up
6623 + # making bogus files that we don't know about and never remove. For
6624 + # instance it was reported that on HP-UX the gcc test will end up
6625 + # making a dummy file named `D' -- because `-MD' means `put the output
6626 + # in D'.
6627 + mkdir conftest.dir
6628 + # Copy depcomp to subdir because otherwise we won't find it if we're
6629 + # using a relative directory.
6630 + cp "$am_depcomp" conftest.dir
6631 + cd conftest.dir
6632 + # We will build objects and dependencies in a subdirectory because
6633 + # it helps to detect inapplicable dependency modes. For instance
6634 + # both Tru64's cc and ICC support -MD to output dependencies as a
6635 + # side effect of compilation, but ICC will put the dependencies in
6636 + # the current directory while Tru64 will put them in the object
6637 + # directory.
6638 + mkdir sub
6639 +
6640 + am_cv_$1_dependencies_compiler_type=none
6641 + if test "$am_compiler_list" = ""; then
6642 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6643 + fi
6644 + for depmode in $am_compiler_list; do
6645 + # Setup a source with many dependencies, because some compilers
6646 + # like to wrap large dependency lists on column 80 (with \), and
6647 + # we should not choose a depcomp mode which is confused by this.
6648 + #
6649 + # We need to recreate these files for each test, as the compiler may
6650 + # overwrite some of them when testing with obscure command lines.
6651 + # This happens at least with the AIX C compiler.
6652 + : > sub/conftest.c
6653 + for i in 1 2 3 4 5 6; do
6654 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
6655 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6656 + # Solaris 8's {/usr,}/bin/sh.
6657 + touch sub/conftst$i.h
6658 + done
6659 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6660 +
6661 + case $depmode in
6662 + nosideeffect)
6663 + # after this tag, mechanisms are not by side-effect, so they'll
6664 + # only be used when explicitly requested
6665 + if test "x$enable_dependency_tracking" = xyes; then
6666 + continue
6667 + else
6668 + break
6669 + fi
6670 + ;;
6671 + none) break ;;
6672 + esac
6673 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
6674 + # mode. It turns out that the SunPro C++ compiler does not properly
6675 + # handle `-M -o', and we need to detect this.
6676 + if depmode=$depmode \
6677 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6678 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6679 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6680 + >/dev/null 2>conftest.err &&
6681 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6683 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684 + # icc doesn't choke on unknown options, it will just issue warnings
6685 + # or remarks (even with -Werror). So we grep stderr for any message
6686 + # that says an option was ignored or not supported.
6687 + # When given -MP, icc 7.0 and 7.1 complain thusly:
6688 + # icc: Command line warning: ignoring option '-M'; no argument required
6689 + # The diagnosis changed in icc 8.0:
6690 + # icc: Command line remark: option '-MP' not supported
6691 + if (grep 'ignoring option' conftest.err ||
6692 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693 + am_cv_$1_dependencies_compiler_type=$depmode
6694 + break
6695 + fi
6696 + fi
6697 + done
6698 +
6699 + cd ..
6700 + rm -rf conftest.dir
6701 +else
6702 + am_cv_$1_dependencies_compiler_type=none
6703 +fi
6704 +])
6705 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6706 +AM_CONDITIONAL([am__fastdep$1], [
6707 + test "x$enable_dependency_tracking" != xno \
6708 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6709 +])
6710 +
6711 +
6712 +# AM_SET_DEPDIR
6713 +# -------------
6714 +# Choose a directory name for dependency files.
6715 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6716 +AC_DEFUN([AM_SET_DEPDIR],
6717 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6718 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6719 +])
6720 +
6721 +
6722 +# AM_DEP_TRACK
6723 +# ------------
6724 +AC_DEFUN([AM_DEP_TRACK],
6725 +[AC_ARG_ENABLE(dependency-tracking,
6726 +[ --disable-dependency-tracking speeds up one-time build
6727 + --enable-dependency-tracking do not reject slow dependency extractors])
6728 +if test "x$enable_dependency_tracking" != xno; then
6729 + am_depcomp="$ac_aux_dir/depcomp"
6730 + AMDEPBACKSLASH='\'
6731 +fi
6732 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6733 +AC_SUBST([AMDEPBACKSLASH])
6734 +])
6735 +
6736 +# Generate code to set up dependency tracking. -*- Autoconf -*-
6737 +
6738 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6739 +# Free Software Foundation, Inc.
6740 +#
6741 +# This file is free software; the Free Software Foundation
6742 +# gives unlimited permission to copy and/or distribute it,
6743 +# with or without modifications, as long as this notice is preserved.
6744 +
6745 +#serial 3
6746 +
6747 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
6748 +# ------------------------------
6749 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6750 +[for mf in $CONFIG_FILES; do
6751 + # Strip MF so we end up with the name of the file.
6752 + mf=`echo "$mf" | sed -e 's/:.*$//'`
6753 + # Check whether this is an Automake generated Makefile or not.
6754 + # We used to match only the files named `Makefile.in', but
6755 + # some people rename them; so instead we look at the file content.
6756 + # Grep'ing the first line is not enough: some people post-process
6757 + # each Makefile.in and add a new line on top of each file to say so.
6758 + # So let's grep whole file.
6759 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6760 + dirpart=`AS_DIRNAME("$mf")`
6761 + else
6762 + continue
6763 + fi
6764 + # Extract the definition of DEPDIR, am__include, and am__quote
6765 + # from the Makefile without running `make'.
6766 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6767 + test -z "$DEPDIR" && continue
6768 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
6769 + test -z "am__include" && continue
6770 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6771 + # When using ansi2knr, U may be empty or an underscore; expand it
6772 + U=`sed -n 's/^U = //p' < "$mf"`
6773 + # Find all dependency output files, they are included files with
6774 + # $(DEPDIR) in their names. We invoke sed twice because it is the
6775 + # simplest approach to changing $(DEPDIR) to its actual value in the
6776 + # expansion.
6777 + for file in `sed -n "
6778 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6779 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6780 + # Make sure the directory exists.
6781 + test -f "$dirpart/$file" && continue
6782 + fdir=`AS_DIRNAME(["$file"])`
6783 + AS_MKDIR_P([$dirpart/$fdir])
6784 + # echo "creating $dirpart/$file"
6785 + echo '# dummy' > "$dirpart/$file"
6786 + done
6787 +done
6788 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6789 +
6790 +
6791 +# AM_OUTPUT_DEPENDENCY_COMMANDS
6792 +# -----------------------------
6793 +# This macro should only be invoked once -- use via AC_REQUIRE.
6794 +#
6795 +# This code is only required when automatic dependency tracking
6796 +# is enabled. FIXME. This creates each `.P' file that we will
6797 +# need in order to bootstrap the dependency handling code.
6798 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6799 +[AC_CONFIG_COMMANDS([depfiles],
6800 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6801 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6802 +])
6803 +
6804 +# Do all the work for Automake. -*- Autoconf -*-
6805 +
6806 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6807 +# Free Software Foundation, Inc.
6808 +#
6809 +# This file is free software; the Free Software Foundation
6810 +# gives unlimited permission to copy and/or distribute it,
6811 +# with or without modifications, as long as this notice is preserved.
6812 +
6813 +# serial 12
6814 +
6815 +# This macro actually does too much. Some checks are only needed if
6816 +# your package does certain things. But this isn't really a big deal.
6817 +
6818 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6819 +# AM_INIT_AUTOMAKE([OPTIONS])
6820 +# -----------------------------------------------
6821 +# The call with PACKAGE and VERSION arguments is the old style
6822 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
6823 +# and VERSION should now be passed to AC_INIT and removed from
6824 +# the call to AM_INIT_AUTOMAKE.
6825 +# We support both call styles for the transition. After
6826 +# the next Automake release, Autoconf can make the AC_INIT
6827 +# arguments mandatory, and then we can depend on a new Autoconf
6828 +# release and drop the old call support.
6829 +AC_DEFUN([AM_INIT_AUTOMAKE],
6830 +[AC_PREREQ([2.58])dnl
6831 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
6832 +dnl the ones we care about.
6833 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6834 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6835 +AC_REQUIRE([AC_PROG_INSTALL])dnl
6836 +# test to see if srcdir already configured
6837 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
6838 + test -f $srcdir/config.status; then
6839 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6840 +fi
6841 +
6842 +# test whether we have cygpath
6843 +if test -z "$CYGPATH_W"; then
6844 + if (cygpath --version) >/dev/null 2>/dev/null; then
6845 + CYGPATH_W='cygpath -w'
6846 + else
6847 + CYGPATH_W=echo
6848 + fi
6849 +fi
6850 +AC_SUBST([CYGPATH_W])
6851 +
6852 +# Define the identity of the package.
6853 +dnl Distinguish between old-style and new-style calls.
6854 +m4_ifval([$2],
6855 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6856 + AC_SUBST([PACKAGE], [$1])dnl
6857 + AC_SUBST([VERSION], [$2])],
6858 +[_AM_SET_OPTIONS([$1])dnl
6859 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6860 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6861 +
6862 +_AM_IF_OPTION([no-define],,
6863 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6864 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6865 +
6866 +# Some tools Automake needs.
6867 +AC_REQUIRE([AM_SANITY_CHECK])dnl
6868 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
6869 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6870 +AM_MISSING_PROG(AUTOCONF, autoconf)
6871 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6872 +AM_MISSING_PROG(AUTOHEADER, autoheader)
6873 +AM_MISSING_PROG(MAKEINFO, makeinfo)
6874 +AM_PROG_INSTALL_SH
6875 +AM_PROG_INSTALL_STRIP
6876 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6877 +# We need awk for the "check" target. The system "awk" is bad on
6878 +# some platforms.
6879 +AC_REQUIRE([AC_PROG_AWK])dnl
6880 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6881 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6882 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6883 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6884 + [_AM_PROG_TAR([v7])])])
6885 +_AM_IF_OPTION([no-dependencies],,
6886 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
6887 + [_AM_DEPENDENCIES(CC)],
6888 + [define([AC_PROG_CC],
6889 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6890 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
6891 + [_AM_DEPENDENCIES(CXX)],
6892 + [define([AC_PROG_CXX],
6893 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6894 +])
6895 +])
6896 +
6897 +
6898 +# When config.status generates a header, we must update the stamp-h file.
6899 +# This file resides in the same directory as the config header
6900 +# that is generated. The stamp files are numbered to have different names.
6901 +
6902 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6903 +# loop where config.status creates the headers, so we can generate
6904 +# our stamp files there.
6905 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6906 +[# Compute $1's index in $config_headers.
6907 +_am_stamp_count=1
6908 +for _am_header in $config_headers :; do
6909 + case $_am_header in
6910 + $1 | $1:* )
6911 + break ;;
6912 + * )
6913 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6914 + esac
6915 +done
6916 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6917 +
6918 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6919 +#
6920 +# This file is free software; the Free Software Foundation
6921 +# gives unlimited permission to copy and/or distribute it,
6922 +# with or without modifications, as long as this notice is preserved.
6923 +
6924 +# AM_PROG_INSTALL_SH
6925 +# ------------------
6926 +# Define $install_sh.
6927 +AC_DEFUN([AM_PROG_INSTALL_SH],
6928 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6929 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
6930 +AC_SUBST(install_sh)])
6931 +
6932 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6933 +#
6934 +# This file is free software; the Free Software Foundation
6935 +# gives unlimited permission to copy and/or distribute it,
6936 +# with or without modifications, as long as this notice is preserved.
6937 +
6938 +# serial 2
6939 +
6940 +# Check whether the underlying file-system supports filenames
6941 +# with a leading dot. For instance MS-DOS doesn't.
6942 +AC_DEFUN([AM_SET_LEADING_DOT],
6943 +[rm -rf .tst 2>/dev/null
6944 +mkdir .tst 2>/dev/null
6945 +if test -d .tst; then
6946 + am__leading_dot=.
6947 +else
6948 + am__leading_dot=_
6949 +fi
6950 +rmdir .tst 2>/dev/null
6951 +AC_SUBST([am__leading_dot])])
6952 +
6953 +# Check to see how 'make' treats includes. -*- Autoconf -*-
6954 +
6955 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6956 +#
6957 +# This file is free software; the Free Software Foundation
6958 +# gives unlimited permission to copy and/or distribute it,
6959 +# with or without modifications, as long as this notice is preserved.
6960 +
6961 +# serial 3
6962 +
6963 +# AM_MAKE_INCLUDE()
6964 +# -----------------
6965 +# Check to see how make treats includes.
6966 +AC_DEFUN([AM_MAKE_INCLUDE],
6967 +[am_make=${MAKE-make}
6968 +cat > confinc << 'END'
6969 +am__doit:
6970 + @echo done
6971 +.PHONY: am__doit
6972 +END
6973 +# If we don't find an include directive, just comment out the code.
6974 +AC_MSG_CHECKING([for style of include used by $am_make])
6975 +am__include="#"
6976 +am__quote=
6977 +_am_result=none
6978 +# First try GNU make style include.
6979 +echo "include confinc" > confmf
6980 +# We grep out `Entering directory' and `Leaving directory'
6981 +# messages which can occur if `w' ends up in MAKEFLAGS.
6982 +# In particular we don't look at `^make:' because GNU make might
6983 +# be invoked under some other name (usually "gmake"), in which
6984 +# case it prints its new name instead of `make'.
6985 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6986 + am__include=include
6987 + am__quote=
6988 + _am_result=GNU
6989 +fi
6990 +# Now try BSD make style include.
6991 +if test "$am__include" = "#"; then
6992 + echo '.include "confinc"' > confmf
6993 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6994 + am__include=.include
6995 + am__quote="\""
6996 + _am_result=BSD
6997 + fi
6998 +fi
6999 +AC_SUBST([am__include])
7000 +AC_SUBST([am__quote])
7001 +AC_MSG_RESULT([$_am_result])
7002 +rm -f confinc confmf
7003 +])
7004 +
7005 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7006 +
7007 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7008 +# Free Software Foundation, Inc.
7009 +#
7010 +# This file is free software; the Free Software Foundation
7011 +# gives unlimited permission to copy and/or distribute it,
7012 +# with or without modifications, as long as this notice is preserved.
7013 +
7014 +# serial 4
7015 +
7016 +# AM_MISSING_PROG(NAME, PROGRAM)
7017 +# ------------------------------
7018 +AC_DEFUN([AM_MISSING_PROG],
7019 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
7020 +$1=${$1-"${am_missing_run}$2"}
7021 +AC_SUBST($1)])
7022 +
7023 +
7024 +# AM_MISSING_HAS_RUN
7025 +# ------------------
7026 +# Define MISSING if not defined so far and test if it supports --run.
7027 +# If it does, set am_missing_run to use it, otherwise, to nothing.
7028 +AC_DEFUN([AM_MISSING_HAS_RUN],
7029 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7030 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7031 +# Use eval to expand $SHELL
7032 +if eval "$MISSING --run true"; then
7033 + am_missing_run="$MISSING --run "
7034 +else
7035 + am_missing_run=
7036 + AC_MSG_WARN([`missing' script is too old or missing])
7037 +fi
7038 +])
7039 +
7040 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7041 +#
7042 +# This file is free software; the Free Software Foundation
7043 +# gives unlimited permission to copy and/or distribute it,
7044 +# with or without modifications, as long as this notice is preserved.
7045 +
7046 +# AM_PROG_MKDIR_P
7047 +# ---------------
7048 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7049 +#
7050 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7051 +# created by `make install' are always world readable, even if the
7052 +# installer happens to have an overly restrictive umask (e.g. 077).
7053 +# This was a mistake. There are at least two reasons why we must not
7054 +# use `-m 0755':
7055 +# - it causes special bits like SGID to be ignored,
7056 +# - it may be too restrictive (some setups expect 775 directories).
7057 +#
7058 +# Do not use -m 0755 and let people choose whatever they expect by
7059 +# setting umask.
7060 +#
7061 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7062 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
7063 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7064 +# concurrently, both version can detect that a/ is missing, but only
7065 +# one can create it and the other will error out. Consequently we
7066 +# restrict ourselves to GNU make (using the --version option ensures
7067 +# this.)
7068 +AC_DEFUN([AM_PROG_MKDIR_P],
7069 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7070 + # We used to keeping the `.' as first argument, in order to
7071 + # allow $(mkdir_p) to be used without argument. As in
7072 + # $(mkdir_p) $(somedir)
7073 + # where $(somedir) is conditionally defined. However this is wrong
7074 + # for two reasons:
7075 + # 1. if the package is installed by a user who cannot write `.'
7076 + # make install will fail,
7077 + # 2. the above comment should most certainly read
7078 + # $(mkdir_p) $(DESTDIR)$(somedir)
7079 + # so it does not work when $(somedir) is undefined and
7080 + # $(DESTDIR) is not.
7081 + # To support the latter case, we have to write
7082 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7083 + # so the `.' trick is pointless.
7084 + mkdir_p='mkdir -p --'
7085 +else
7086 + # On NextStep and OpenStep, the `mkdir' command does not
7087 + # recognize any option. It will interpret all options as
7088 + # directories to create, and then abort because `.' already
7089 + # exists.
7090 + for d in ./-p ./--version;
7091 + do
7092 + test -d $d && rmdir $d
7093 + done
7094 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7095 + if test -f "$ac_aux_dir/mkinstalldirs"; then
7096 + mkdir_p='$(mkinstalldirs)'
7097 + else
7098 + mkdir_p='$(install_sh) -d'
7099 + fi
7100 +fi
7101 +AC_SUBST([mkdir_p])])
7102 +
7103 +# Helper functions for option handling. -*- Autoconf -*-
7104 +
7105 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7106 +#
7107 +# This file is free software; the Free Software Foundation
7108 +# gives unlimited permission to copy and/or distribute it,
7109 +# with or without modifications, as long as this notice is preserved.
7110 +
7111 +# serial 3
7112 +
7113 +# _AM_MANGLE_OPTION(NAME)
7114 +# -----------------------
7115 +AC_DEFUN([_AM_MANGLE_OPTION],
7116 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7117 +
7118 +# _AM_SET_OPTION(NAME)
7119 +# ------------------------------
7120 +# Set option NAME. Presently that only means defining a flag for this option.
7121 +AC_DEFUN([_AM_SET_OPTION],
7122 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7123 +
7124 +# _AM_SET_OPTIONS(OPTIONS)
7125 +# ----------------------------------
7126 +# OPTIONS is a space-separated list of Automake options.
7127 +AC_DEFUN([_AM_SET_OPTIONS],
7128 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7129 +
7130 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7131 +# -------------------------------------------
7132 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7133 +AC_DEFUN([_AM_IF_OPTION],
7134 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7135 +
7136 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
7137 +
7138 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7139 +# Free Software Foundation, Inc.
7140 +#
7141 +# This file is free software; the Free Software Foundation
7142 +# gives unlimited permission to copy and/or distribute it,
7143 +# with or without modifications, as long as this notice is preserved.
7144 +
7145 +# serial 4
7146 +
7147 +# AM_SANITY_CHECK
7148 +# ---------------
7149 +AC_DEFUN([AM_SANITY_CHECK],
7150 +[AC_MSG_CHECKING([whether build environment is sane])
7151 +# Just in case
7152 +sleep 1
7153 +echo timestamp > conftest.file
7154 +# Do `set' in a subshell so we don't clobber the current shell's
7155 +# arguments. Must try -L first in case configure is actually a
7156 +# symlink; some systems play weird games with the mod time of symlinks
7157 +# (eg FreeBSD returns the mod time of the symlink's containing
7158 +# directory).
7159 +if (
7160 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7161 + if test "$[*]" = "X"; then
7162 + # -L didn't work.
7163 + set X `ls -t $srcdir/configure conftest.file`
7164 + fi
7165 + rm -f conftest.file
7166 + if test "$[*]" != "X $srcdir/configure conftest.file" \
7167 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
7168 +
7169 + # If neither matched, then we have a broken ls. This can happen
7170 + # if, for instance, CONFIG_SHELL is bash and it inherits a
7171 + # broken ls alias from the environment. This has actually
7172 + # happened. Such a system could not be considered "sane".
7173 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7174 +alias in your environment])
7175 + fi
7176 +
7177 + test "$[2]" = conftest.file
7178 + )
7179 +then
7180 + # Ok.
7181 + :
7182 +else
7183 + AC_MSG_ERROR([newly created file is older than distributed files!
7184 +Check your system clock])
7185 +fi
7186 +AC_MSG_RESULT(yes)])
7187 +
7188 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7189 +#
7190 +# This file is free software; the Free Software Foundation
7191 +# gives unlimited permission to copy and/or distribute it,
7192 +# with or without modifications, as long as this notice is preserved.
7193 +
7194 +# AM_PROG_INSTALL_STRIP
7195 +# ---------------------
7196 +# One issue with vendor `install' (even GNU) is that you can't
7197 +# specify the program used to strip binaries. This is especially
7198 +# annoying in cross-compiling environments, where the build's strip
7199 +# is unlikely to handle the host's binaries.
7200 +# Fortunately install-sh will honor a STRIPPROG variable, so we
7201 +# always use install-sh in `make install-strip', and initialize
7202 +# STRIPPROG with the value of the STRIP variable (set by the user).
7203 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
7204 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7205 +# Installed binaries are usually stripped using `strip' when the user
7206 +# run `make install-strip'. However `strip' might not be the right
7207 +# tool to use in cross-compilation environments, therefore Automake
7208 +# will honor the `STRIP' environment variable to overrule this program.
7209 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7210 +if test "$cross_compiling" != no; then
7211 + AC_CHECK_TOOL([STRIP], [strip], :)
7212 +fi
7213 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7214 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
7215 +
7216 +# Check how to create a tarball. -*- Autoconf -*-
7217 +
7218 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7219 +#
7220 +# This file is free software; the Free Software Foundation
7221 +# gives unlimited permission to copy and/or distribute it,
7222 +# with or without modifications, as long as this notice is preserved.
7223 +
7224 +# serial 2
7225 +
7226 +# _AM_PROG_TAR(FORMAT)
7227 +# --------------------
7228 +# Check how to create a tarball in format FORMAT.
7229 +# FORMAT should be one of `v7', `ustar', or `pax'.
7230 +#
7231 +# Substitute a variable $(am__tar) that is a command
7232 +# writing to stdout a FORMAT-tarball containing the directory
7233 +# $tardir.
7234 +# tardir=directory && $(am__tar) > result.tar
7235 +#
7236 +# Substitute a variable $(am__untar) that extract such
7237 +# a tarball read from stdin.
7238 +# $(am__untar) < result.tar
7239 +AC_DEFUN([_AM_PROG_TAR],
7240 +[# Always define AMTAR for backward compatibility.
7241 +AM_MISSING_PROG([AMTAR], [tar])
7242 +m4_if([$1], [v7],
7243 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7244 + [m4_case([$1], [ustar],, [pax],,
7245 + [m4_fatal([Unknown tar format])])
7246 +AC_MSG_CHECKING([how to create a $1 tar archive])
7247 +# Loop over all known methods to create a tar archive until one works.
7248 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7249 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7250 +# Do not fold the above two line into one, because Tru64 sh and
7251 +# Solaris sh will not grok spaces in the rhs of `-'.
7252 +for _am_tool in $_am_tools
7253 +do
7254 + case $_am_tool in
7255 + gnutar)
7256 + for _am_tar in tar gnutar gtar;
7257 + do
7258 + AM_RUN_LOG([$_am_tar --version]) && break
7259 + done
7260 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7261 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7262 + am__untar="$_am_tar -xf -"
7263 + ;;
7264 + plaintar)
7265 + # Must skip GNU tar: if it does not support --format= it doesn't create
7266 + # ustar tarball either.
7267 + (tar --version) >/dev/null 2>&1 && continue
7268 + am__tar='tar chf - "$$tardir"'
7269 + am__tar_='tar chf - "$tardir"'
7270 + am__untar='tar xf -'
7271 + ;;
7272 + pax)
7273 + am__tar='pax -L -x $1 -w "$$tardir"'
7274 + am__tar_='pax -L -x $1 -w "$tardir"'
7275 + am__untar='pax -r'
7276 + ;;
7277 + cpio)
7278 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7279 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7280 + am__untar='cpio -i -H $1 -d'
7281 + ;;
7282 + none)
7283 + am__tar=false
7284 + am__tar_=false
7285 + am__untar=false
7286 + ;;
7287 + esac
7288 +
7289 + # If the value was cached, stop now. We just wanted to have am__tar
7290 + # and am__untar set.
7291 + test -n "${am_cv_prog_tar_$1}" && break
7292 +
7293 + # tar/untar a dummy directory, and stop if the command works
7294 + rm -rf conftest.dir
7295 + mkdir conftest.dir
7296 + echo GrepMe > conftest.dir/file
7297 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7298 + rm -rf conftest.dir
7299 + if test -s conftest.tar; then
7300 + AM_RUN_LOG([$am__untar <conftest.tar])
7301 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7302 + fi
7303 +done
7304 +rm -rf conftest.dir
7305 +
7306 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7307 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7308 +AC_SUBST([am__tar])
7309 +AC_SUBST([am__untar])
7310 +]) # _AM_PROG_TAR
7311 +
7312 diff -urN lua-5.1.4/autogen.sh lua-5.1.4-autotoolize/autogen.sh
7313 --- lua-5.1.4/autogen.sh 1970-01-01 01:00:00.000000000 +0100
7314 +++ lua-5.1.4-autotoolize/autogen.sh 2008-09-03 13:18:28.000000000 +0200
7315 @@ -0,0 +1,5 @@
7316 +#!/bin/sh
7317 +
7318 +autoreconf -fvi
7319 +
7320 +echo "Now run ./configure"
7321 diff -urN lua-5.1.4/config.guess lua-5.1.4-autotoolize/config.guess
7322 --- lua-5.1.4/config.guess 1970-01-01 01:00:00.000000000 +0100
7323 +++ lua-5.1.4-autotoolize/config.guess 2008-09-03 13:18:37.000000000 +0200
7324 @@ -0,0 +1,1517 @@
7325 +#! /bin/sh
7326 +# Attempt to guess a canonical system name.
7327 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
7328 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
7329 +# Inc.
7330 +
7331 +timestamp='2006-02-27'
7332 +
7333 +# This file is free software; you can redistribute it and/or modify it
7334 +# under the terms of the GNU General Public License as published by
7335 +# the Free Software Foundation; either version 2 of the License, or
7336 +# (at your option) any later version.
7337 +#
7338 +# This program is distributed in the hope that it will be useful, but
7339 +# WITHOUT ANY WARRANTY; without even the implied warranty of
7340 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7341 +# General Public License for more details.
7342 +#
7343 +# You should have received a copy of the GNU General Public License
7344 +# along with this program; if not, write to the Free Software
7345 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
7346 +# 02110-1301, USA.
7347 +#
7348 +# As a special exception to the GNU General Public License, if you
7349 +# distribute this file as part of a program that contains a
7350 +# configuration script generated by Autoconf, you may include it under
7351 +# the same distribution terms that you use for the rest of that program.
7352 +
7353 +
7354 +# Originally written by Per Bothner <per@bothner.com>.
7355 +# Please send patches to <config-patches@gnu.org>. Submit a context
7356 +# diff and a properly formatted ChangeLog entry.
7357 +#
7358 +# This script attempts to guess a canonical system name similar to
7359 +# config.sub. If it succeeds, it prints the system name on stdout, and
7360 +# exits with 0. Otherwise, it exits with 1.
7361 +#
7362 +# The plan is that this can be called by configure scripts if you
7363 +# don't specify an explicit build system type.
7364 +
7365 +me=`echo "$0" | sed -e 's,.*/,,'`
7366 +
7367 +usage="\
7368 +Usage: $0 [OPTION]
7369 +
7370 +Output the configuration name of the system \`$me' is run on.
7371 +
7372 +Operation modes:
7373 + -h, --help print this help, then exit
7374 + -t, --time-stamp print date of last modification, then exit
7375 + -v, --version print version number, then exit
7376 +
7377 +Report bugs and patches to <config-patches@gnu.org>."
7378 +
7379 +version="\
7380 +GNU config.guess ($timestamp)
7381 +
7382 +Originally written by Per Bothner.
7383 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7384 +Free Software Foundation, Inc.
7385 +
7386 +This is free software; see the source for copying conditions. There is NO
7387 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7388 +
7389 +help="
7390 +Try \`$me --help' for more information."
7391 +
7392 +# Parse command line
7393 +while test $# -gt 0 ; do
7394 + case $1 in
7395 + --time-stamp | --time* | -t )
7396 + echo "$timestamp" ; exit ;;
7397 + --version | -v )
7398 + echo "$version" ; exit ;;
7399 + --help | --h* | -h )
7400 + echo "$usage"; exit ;;
7401 + -- ) # Stop option processing
7402 + shift; break ;;
7403 + - ) # Use stdin as input.
7404 + break ;;
7405 + -* )
7406 + echo "$me: invalid option $1$help" >&2
7407 + exit 1 ;;
7408 + * )
7409 + break ;;
7410 + esac
7411 +done
7412 +
7413 +if test $# != 0; then
7414 + echo "$me: too many arguments$help" >&2
7415 + exit 1
7416 +fi
7417 +
7418 +trap 'exit 1' 1 2 15
7419 +
7420 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
7421 +# compiler to aid in system detection is discouraged as it requires
7422 +# temporary files to be created and, as you can see below, it is a
7423 +# headache to deal with in a portable fashion.
7424 +
7425 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
7426 +# use `HOST_CC' if defined, but it is deprecated.
7427 +
7428 +# Portable tmp directory creation inspired by the Autoconf team.
7429 +
7430 +set_cc_for_build='
7431 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
7432 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
7433 +: ${TMPDIR=/tmp} ;
7434 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
7435 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
7436 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
7437 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
7438 +dummy=$tmp/dummy ;
7439 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
7440 +case $CC_FOR_BUILD,$HOST_CC,$CC in
7441 + ,,) echo "int x;" > $dummy.c ;
7442 + for c in cc gcc c89 c99 ; do
7443 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
7444 + CC_FOR_BUILD="$c"; break ;
7445 + fi ;
7446 + done ;
7447 + if test x"$CC_FOR_BUILD" = x ; then
7448 + CC_FOR_BUILD=no_compiler_found ;
7449 + fi
7450 + ;;
7451 + ,,*) CC_FOR_BUILD=$CC ;;
7452 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
7453 +esac ; set_cc_for_build= ;'
7454 +
7455 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
7456 +# (ghazi@noc.rutgers.edu 1994-08-24)
7457 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
7458 + PATH=$PATH:/.attbin ; export PATH
7459 +fi
7460 +
7461 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
7462 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
7463 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
7464 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
7465 +
7466 +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
7467 + eval $set_cc_for_build
7468 + cat << EOF > $dummy.c
7469 + #include <features.h>
7470 + #ifdef __UCLIBC__
7471 + # ifdef __UCLIBC_CONFIG_VERSION__
7472 + LIBC=uclibc __UCLIBC_CONFIG_VERSION__
7473 + # else
7474 + LIBC=uclibc
7475 + # endif
7476 + #else
7477 + LIBC=gnu
7478 + #endif
7479 +EOF
7480 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
7481 +fi
7482 +
7483 +# Note: order is significant - the case branches are not exclusive.
7484 +
7485 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
7486 + *:NetBSD:*:*)
7487 + # NetBSD (nbsd) targets should (where applicable) match one or
7488 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
7489 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
7490 + # switched to ELF, *-*-netbsd* would select the old
7491 + # object file format. This provides both forward
7492 + # compatibility and a consistent mechanism for selecting the
7493 + # object file format.
7494 + #
7495 + # Note: NetBSD doesn't particularly care about the vendor
7496 + # portion of the name. We always set it to "unknown".
7497 + sysctl="sysctl -n hw.machine_arch"
7498 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
7499 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
7500 + case "${UNAME_MACHINE_ARCH}" in
7501 + armeb) machine=armeb-unknown ;;
7502 + arm*) machine=arm-unknown ;;
7503 + sh3el) machine=shl-unknown ;;
7504 + sh3eb) machine=sh-unknown ;;
7505 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
7506 + esac
7507 + # The Operating System including object format, if it has switched
7508 + # to ELF recently, or will in the future.
7509 + case "${UNAME_MACHINE_ARCH}" in
7510 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
7511 + eval $set_cc_for_build
7512 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
7513 + | grep __ELF__ >/dev/null
7514 + then
7515 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
7516 + # Return netbsd for either. FIX?
7517 + os=netbsd
7518 + else
7519 + os=netbsdelf
7520 + fi
7521 + ;;
7522 + *)
7523 + os=netbsd
7524 + ;;
7525 + esac
7526 + # The OS release
7527 + # Debian GNU/NetBSD machines have a different userland, and
7528 + # thus, need a distinct triplet. However, they do not need
7529 + # kernel version information, so it can be replaced with a
7530 + # suitable tag, in the style of linux-gnu.
7531 + case "${UNAME_VERSION}" in
7532 + Debian*)
7533 + release='-gnu'
7534 + ;;
7535 + *)
7536 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
7537 + ;;
7538 + esac
7539 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
7540 + # contains redundant information, the shorter form:
7541 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
7542 + echo "${machine}-${os}${release}"
7543 + exit ;;
7544 + *:OpenBSD:*:*)
7545 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
7546 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
7547 + exit ;;
7548 + *:ekkoBSD:*:*)
7549 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
7550 + exit ;;
7551 + *:SolidBSD:*:*)
7552 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
7553 + exit ;;
7554 + macppc:MirBSD:*:*)
7555 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
7556 + exit ;;
7557 + *:MirBSD:*:*)
7558 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
7559 + exit ;;
7560 + alpha:OSF1:*:*)
7561 + case $UNAME_RELEASE in
7562 + *4.0)
7563 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
7564 + ;;
7565 + *5.*)
7566 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
7567 + ;;
7568 + esac
7569 + # According to Compaq, /usr/sbin/psrinfo has been available on
7570 + # OSF/1 and Tru64 systems produced since 1995. I hope that
7571 + # covers most systems running today. This code pipes the CPU
7572 + # types through head -n 1, so we only detect the type of CPU 0.
7573 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
7574 + case "$ALPHA_CPU_TYPE" in
7575 + "EV4 (21064)")
7576 + UNAME_MACHINE="alpha" ;;
7577 + "EV4.5 (21064)")
7578 + UNAME_MACHINE="alpha" ;;
7579 + "LCA4 (21066/21068)")
7580 + UNAME_MACHINE="alpha" ;;
7581 + "EV5 (21164)")
7582 + UNAME_MACHINE="alphaev5" ;;
7583 + "EV5.6 (21164A)")
7584 + UNAME_MACHINE="alphaev56" ;;
7585 + "EV5.6 (21164PC)")
7586 + UNAME_MACHINE="alphapca56" ;;
7587 + "EV5.7 (21164PC)")
7588 + UNAME_MACHINE="alphapca57" ;;
7589 + "EV6 (21264)")
7590 + UNAME_MACHINE="alphaev6" ;;
7591 + "EV6.7 (21264A)")
7592 + UNAME_MACHINE="alphaev67" ;;
7593 + "EV6.8CB (21264C)")
7594 + UNAME_MACHINE="alphaev68" ;;
7595 + "EV6.8AL (21264B)")
7596 + UNAME_MACHINE="alphaev68" ;;
7597 + "EV6.8CX (21264D)")
7598 + UNAME_MACHINE="alphaev68" ;;
7599 + "EV6.9A (21264/EV69A)")
7600 + UNAME_MACHINE="alphaev69" ;;
7601 + "EV7 (21364)")
7602 + UNAME_MACHINE="alphaev7" ;;
7603 + "EV7.9 (21364A)")
7604 + UNAME_MACHINE="alphaev79" ;;
7605 + esac
7606 + # A Pn.n version is a patched version.
7607 + # A Vn.n version is a released version.
7608 + # A Tn.n version is a released field test version.
7609 + # A Xn.n version is an unreleased experimental baselevel.
7610 + # 1.2 uses "1.2" for uname -r.
7611 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7612 + exit ;;
7613 + Alpha\ *:Windows_NT*:*)
7614 + # How do we know it's Interix rather than the generic POSIX subsystem?
7615 + # Should we change UNAME_MACHINE based on the output of uname instead
7616 + # of the specific Alpha model?
7617 + echo alpha-pc-interix
7618 + exit ;;
7619 + 21064:Windows_NT:50:3)
7620 + echo alpha-dec-winnt3.5
7621 + exit ;;
7622 + Amiga*:UNIX_System_V:4.0:*)
7623 + echo m68k-unknown-sysv4
7624 + exit ;;
7625 + *:[Aa]miga[Oo][Ss]:*:*)
7626 + echo ${UNAME_MACHINE}-unknown-amigaos
7627 + exit ;;
7628 + *:[Mm]orph[Oo][Ss]:*:*)
7629 + echo ${UNAME_MACHINE}-unknown-morphos
7630 + exit ;;
7631 + *:OS/390:*:*)
7632 + echo i370-ibm-openedition
7633 + exit ;;
7634 + *:z/VM:*:*)
7635 + echo s390-ibm-zvmoe
7636 + exit ;;
7637 + *:OS400:*:*)
7638 + echo powerpc-ibm-os400
7639 + exit ;;
7640 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
7641 + echo arm-acorn-riscix${UNAME_RELEASE}
7642 + exit ;;
7643 + arm:riscos:*:*|arm:RISCOS:*:*)
7644 + echo arm-unknown-riscos
7645 + exit ;;
7646 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
7647 + echo hppa1.1-hitachi-hiuxmpp
7648 + exit ;;
7649 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
7650 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
7651 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
7652 + echo pyramid-pyramid-sysv3
7653 + else
7654 + echo pyramid-pyramid-bsd
7655 + fi
7656 + exit ;;
7657 + NILE*:*:*:dcosx)
7658 + echo pyramid-pyramid-svr4
7659 + exit ;;
7660 + DRS?6000:unix:4.0:6*)
7661 + echo sparc-icl-nx6
7662 + exit ;;
7663 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
7664 + case `/usr/bin/uname -p` in
7665 + sparc) echo sparc-icl-nx7; exit ;;
7666 + esac ;;
7667 + sun4H:SunOS:5.*:*)
7668 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7669 + exit ;;
7670 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
7671 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7672 + exit ;;
7673 + i86pc:SunOS:5.*:*)
7674 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7675 + exit ;;
7676 + sun4*:SunOS:6*:*)
7677 + # According to config.sub, this is the proper way to canonicalize
7678 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
7679 + # it's likely to be more like Solaris than SunOS4.
7680 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7681 + exit ;;
7682 + sun4*:SunOS:*:*)
7683 + case "`/usr/bin/arch -k`" in
7684 + Series*|S4*)
7685 + UNAME_RELEASE=`uname -v`
7686 + ;;
7687 + esac
7688 + # Japanese Language versions have a version number like `4.1.3-JL'.
7689 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
7690 + exit ;;
7691 + sun3*:SunOS:*:*)
7692 + echo m68k-sun-sunos${UNAME_RELEASE}
7693 + exit ;;
7694 + sun*:*:4.2BSD:*)
7695 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
7696 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
7697 + case "`/bin/arch`" in
7698 + sun3)
7699 + echo m68k-sun-sunos${UNAME_RELEASE}
7700 + ;;
7701 + sun4)
7702 + echo sparc-sun-sunos${UNAME_RELEASE}
7703 + ;;
7704 + esac
7705 + exit ;;
7706 + aushp:SunOS:*:*)
7707 + echo sparc-auspex-sunos${UNAME_RELEASE}
7708 + exit ;;
7709 + # The situation for MiNT is a little confusing. The machine name
7710 + # can be virtually everything (everything which is not
7711 + # "atarist" or "atariste" at least should have a processor
7712 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
7713 + # to the lowercase version "mint" (or "freemint"). Finally
7714 + # the system name "TOS" denotes a system which is actually not
7715 + # MiNT. But MiNT is downward compatible to TOS, so this should
7716 + # be no problem.
7717 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
7718 + echo m68k-atari-mint${UNAME_RELEASE}
7719 + exit ;;
7720 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
7721 + echo m68k-atari-mint${UNAME_RELEASE}
7722 + exit ;;
7723 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
7724 + echo m68k-atari-mint${UNAME_RELEASE}
7725 + exit ;;
7726 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
7727 + echo m68k-milan-mint${UNAME_RELEASE}
7728 + exit ;;
7729 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
7730 + echo m68k-hades-mint${UNAME_RELEASE}
7731 + exit ;;
7732 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
7733 + echo m68k-unknown-mint${UNAME_RELEASE}
7734 + exit ;;
7735 + m68k:machten:*:*)
7736 + echo m68k-apple-machten${UNAME_RELEASE}
7737 + exit ;;
7738 + powerpc:machten:*:*)
7739 + echo powerpc-apple-machten${UNAME_RELEASE}
7740 + exit ;;
7741 + RISC*:Mach:*:*)
7742 + echo mips-dec-mach_bsd4.3
7743 + exit ;;
7744 + RISC*:ULTRIX:*:*)
7745 + echo mips-dec-ultrix${UNAME_RELEASE}
7746 + exit ;;
7747 + VAX*:ULTRIX*:*:*)
7748 + echo vax-dec-ultrix${UNAME_RELEASE}
7749 + exit ;;
7750 + 2020:CLIX:*:* | 2430:CLIX:*:*)
7751 + echo clipper-intergraph-clix${UNAME_RELEASE}
7752 + exit ;;
7753 + mips:*:*:UMIPS | mips:*:*:RISCos)
7754 + eval $set_cc_for_build
7755 + sed 's/^ //' << EOF >$dummy.c
7756 +#ifdef __cplusplus
7757 +#include <stdio.h> /* for printf() prototype */
7758 + int main (int argc, char *argv[]) {
7759 +#else
7760 + int main (argc, argv) int argc; char *argv[]; {
7761 +#endif
7762 + #if defined (host_mips) && defined (MIPSEB)
7763 + #if defined (SYSTYPE_SYSV)
7764 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
7765 + #endif
7766 + #if defined (SYSTYPE_SVR4)
7767 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
7768 + #endif
7769 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
7770 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
7771 + #endif
7772 + #endif
7773 + exit (-1);
7774 + }
7775 +EOF
7776 + $CC_FOR_BUILD -o $dummy $dummy.c &&
7777 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
7778 + SYSTEM_NAME=`$dummy $dummyarg` &&
7779 + { echo "$SYSTEM_NAME"; exit; }
7780 + echo mips-mips-riscos${UNAME_RELEASE}
7781 + exit ;;
7782 + Motorola:PowerMAX_OS:*:*)
7783 + echo powerpc-motorola-powermax
7784 + exit ;;
7785 + Motorola:*:4.3:PL8-*)
7786 + echo powerpc-harris-powermax
7787 + exit ;;
7788 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
7789 + echo powerpc-harris-powermax
7790 + exit ;;
7791 + Night_Hawk:Power_UNIX:*:*)
7792 + echo powerpc-harris-powerunix
7793 + exit ;;
7794 + m88k:CX/UX:7*:*)
7795 + echo m88k-harris-cxux7
7796 + exit ;;
7797 + m88k:*:4*:R4*)
7798 + echo m88k-motorola-sysv4
7799 + exit ;;
7800 + m88k:*:3*:R3*)
7801 + echo m88k-motorola-sysv3
7802 + exit ;;
7803 + AViiON:dgux:*:*)
7804 + # DG/UX returns AViiON for all architectures
7805 + UNAME_PROCESSOR=`/usr/bin/uname -p`
7806 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
7807 + then
7808 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
7809 + [ ${TARGET_BINARY_INTERFACE}x = x ]
7810 + then
7811 + echo m88k-dg-dgux${UNAME_RELEASE}
7812 + else
7813 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
7814 + fi
7815 + else
7816 + echo i586-dg-dgux${UNAME_RELEASE}
7817 + fi
7818 + exit ;;
7819 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
7820 + echo m88k-dolphin-sysv3
7821 + exit ;;
7822 + M88*:*:R3*:*)
7823 + # Delta 88k system running SVR3
7824 + echo m88k-motorola-sysv3
7825 + exit ;;
7826 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
7827 + echo m88k-tektronix-sysv3
7828 + exit ;;
7829 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
7830 + echo m68k-tektronix-bsd
7831 + exit ;;
7832 + *:IRIX*:*:*)
7833 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
7834 + exit ;;
7835 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
7836 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
7837 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
7838 + i*86:AIX:*:*)
7839 + echo i386-ibm-aix
7840 + exit ;;
7841 + ia64:AIX:*:*)
7842 + if [ -x /usr/bin/oslevel ] ; then
7843 + IBM_REV=`/usr/bin/oslevel`
7844 + else
7845 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7846 + fi
7847 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
7848 + exit ;;
7849 + *:AIX:2:3)
7850 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
7851 + eval $set_cc_for_build
7852 + sed 's/^ //' << EOF >$dummy.c
7853 + #include <sys/systemcfg.h>
7854 +
7855 + main()
7856 + {
7857 + if (!__power_pc())
7858 + exit(1);
7859 + puts("powerpc-ibm-aix3.2.5");
7860 + exit(0);
7861 + }
7862 +EOF
7863 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
7864 + then
7865 + echo "$SYSTEM_NAME"
7866 + else
7867 + echo rs6000-ibm-aix3.2.5
7868 + fi
7869 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
7870 + echo rs6000-ibm-aix3.2.4
7871 + else
7872 + echo rs6000-ibm-aix3.2
7873 + fi
7874 + exit ;;
7875 + *:AIX:*:[45])
7876 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
7877 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
7878 + IBM_ARCH=rs6000
7879 + else
7880 + IBM_ARCH=powerpc
7881 + fi
7882 + if [ -x /usr/bin/oslevel ] ; then
7883 + IBM_REV=`/usr/bin/oslevel`
7884 + else
7885 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7886 + fi
7887 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
7888 + exit ;;
7889 + *:AIX:*:*)
7890 + echo rs6000-ibm-aix
7891 + exit ;;
7892 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
7893 + echo romp-ibm-bsd4.4
7894 + exit ;;
7895 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
7896 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
7897 + exit ;; # report: romp-ibm BSD 4.3
7898 + *:BOSX:*:*)
7899 + echo rs6000-bull-bosx
7900 + exit ;;
7901 + DPX/2?00:B.O.S.:*:*)
7902 + echo m68k-bull-sysv3
7903 + exit ;;
7904 + 9000/[34]??:4.3bsd:1.*:*)
7905 + echo m68k-hp-bsd
7906 + exit ;;
7907 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
7908 + echo m68k-hp-bsd4.4
7909 + exit ;;
7910 + 9000/[34678]??:HP-UX:*:*)
7911 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7912 + case "${UNAME_MACHINE}" in
7913 + 9000/31? ) HP_ARCH=m68000 ;;
7914 + 9000/[34]?? ) HP_ARCH=m68k ;;
7915 + 9000/[678][0-9][0-9])
7916 + if [ -x /usr/bin/getconf ]; then
7917 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
7918 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
7919 + case "${sc_cpu_version}" in
7920 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
7921 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
7922 + 532) # CPU_PA_RISC2_0
7923 + case "${sc_kernel_bits}" in
7924 + 32) HP_ARCH="hppa2.0n" ;;
7925 + 64) HP_ARCH="hppa2.0w" ;;
7926 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
7927 + esac ;;
7928 + esac
7929 + fi
7930 + if [ "${HP_ARCH}" = "" ]; then
7931 + eval $set_cc_for_build
7932 + sed 's/^ //' << EOF >$dummy.c
7933 +
7934 + #define _HPUX_SOURCE
7935 + #include <stdlib.h>
7936 + #include <unistd.h>
7937 +
7938 + int main ()
7939 + {
7940 + #if defined(_SC_KERNEL_BITS)
7941 + long bits = sysconf(_SC_KERNEL_BITS);
7942 + #endif
7943 + long cpu = sysconf (_SC_CPU_VERSION);
7944 +
7945 + switch (cpu)
7946 + {
7947 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
7948 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
7949 + case CPU_PA_RISC2_0:
7950 + #if defined(_SC_KERNEL_BITS)
7951 + switch (bits)
7952 + {
7953 + case 64: puts ("hppa2.0w"); break;
7954 + case 32: puts ("hppa2.0n"); break;
7955 + default: puts ("hppa2.0"); break;
7956 + } break;
7957 + #else /* !defined(_SC_KERNEL_BITS) */
7958 + puts ("hppa2.0"); break;
7959 + #endif
7960 + default: puts ("hppa1.0"); break;
7961 + }
7962 + exit (0);
7963 + }
7964 +EOF
7965 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
7966 + test -z "$HP_ARCH" && HP_ARCH=hppa
7967 + fi ;;
7968 + esac
7969 + if [ ${HP_ARCH} = "hppa2.0w" ]
7970 + then
7971 + eval $set_cc_for_build
7972 +
7973 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
7974 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
7975 + # generating 64-bit code. GNU and HP use different nomenclature:
7976 + #
7977 + # $ CC_FOR_BUILD=cc ./config.guess
7978 + # => hppa2.0w-hp-hpux11.23
7979 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
7980 + # => hppa64-hp-hpux11.23
7981 +
7982 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
7983 + grep __LP64__ >/dev/null
7984 + then
7985 + HP_ARCH="hppa2.0w"
7986 + else
7987 + HP_ARCH="hppa64"
7988 + fi
7989 + fi
7990 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
7991 + exit ;;
7992 + ia64:HP-UX:*:*)
7993 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7994 + echo ia64-hp-hpux${HPUX_REV}
7995 + exit ;;
7996 + 3050*:HI-UX:*:*)
7997 + eval $set_cc_for_build
7998 + sed 's/^ //' << EOF >$dummy.c
7999 + #include <unistd.h>
8000 + int
8001 + main ()
8002 + {
8003 + long cpu = sysconf (_SC_CPU_VERSION);
8004 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
8005 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
8006 + results, however. */
8007 + if (CPU_IS_PA_RISC (cpu))
8008 + {
8009 + switch (cpu)
8010 + {
8011 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
8012 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
8013 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
8014 + default: puts ("hppa-hitachi-hiuxwe2"); break;
8015 + }
8016 + }
8017 + else if (CPU_IS_HP_MC68K (cpu))
8018 + puts ("m68k-hitachi-hiuxwe2");
8019 + else puts ("unknown-hitachi-hiuxwe2");
8020 + exit (0);
8021 + }
8022 +EOF
8023 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
8024 + { echo "$SYSTEM_NAME"; exit; }
8025 + echo unknown-hitachi-hiuxwe2
8026 + exit ;;
8027 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
8028 + echo hppa1.1-hp-bsd
8029 + exit ;;
8030 + 9000/8??:4.3bsd:*:*)
8031 + echo hppa1.0-hp-bsd
8032 + exit ;;
8033 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
8034 + echo hppa1.0-hp-mpeix
8035 + exit ;;
8036 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
8037 + echo hppa1.1-hp-osf
8038 + exit ;;
8039 + hp8??:OSF1:*:*)
8040 + echo hppa1.0-hp-osf
8041 + exit ;;
8042 + i*86:OSF1:*:*)
8043 + if [ -x /usr/sbin/sysversion ] ; then
8044 + echo ${UNAME_MACHINE}-unknown-osf1mk
8045 + else
8046 + echo ${UNAME_MACHINE}-unknown-osf1
8047 + fi
8048 + exit ;;
8049 + parisc*:Lites*:*:*)
8050 + echo hppa1.1-hp-lites
8051 + exit ;;
8052 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
8053 + echo c1-convex-bsd
8054 + exit ;;
8055 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
8056 + if getsysinfo -f scalar_acc
8057 + then echo c32-convex-bsd
8058 + else echo c2-convex-bsd
8059 + fi
8060 + exit ;;
8061 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
8062 + echo c34-convex-bsd
8063 + exit ;;
8064 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
8065 + echo c38-convex-bsd
8066 + exit ;;
8067 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
8068 + echo c4-convex-bsd
8069 + exit ;;
8070 + CRAY*Y-MP:*:*:*)
8071 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8072 + exit ;;
8073 + CRAY*[A-Z]90:*:*:*)
8074 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
8075 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
8076 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
8077 + -e 's/\.[^.]*$/.X/'
8078 + exit ;;
8079 + CRAY*TS:*:*:*)
8080 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8081 + exit ;;
8082 + CRAY*T3E:*:*:*)
8083 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8084 + exit ;;
8085 + CRAY*SV1:*:*:*)
8086 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8087 + exit ;;
8088 + *:UNICOS/mp:*:*)
8089 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8090 + exit ;;
8091 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
8092 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
8093 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
8094 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
8095 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
8096 + exit ;;
8097 + 5000:UNIX_System_V:4.*:*)
8098 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
8099 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
8100 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
8101 + exit ;;
8102 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
8103 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
8104 + exit ;;
8105 + sparc*:BSD/OS:*:*)
8106 + echo sparc-unknown-bsdi${UNAME_RELEASE}
8107 + exit ;;
8108 + *:BSD/OS:*:*)
8109 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
8110 + exit ;;
8111 + *:FreeBSD:*:*)
8112 + case ${UNAME_MACHINE} in
8113 + pc98)
8114 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
8115 + *)
8116 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
8117 + esac
8118 + exit ;;
8119 + i*:CYGWIN*:*)
8120 + echo ${UNAME_MACHINE}-pc-cygwin
8121 + exit ;;
8122 + i*:MINGW*:*)
8123 + echo ${UNAME_MACHINE}-pc-mingw32
8124 + exit ;;
8125 + i*:MSYS_NT-*:*:*)
8126 + echo ${UNAME_MACHINE}-pc-mingw32
8127 + exit ;;
8128 + i*:windows32*:*)
8129 + # uname -m includes "-pc" on this system.
8130 + echo ${UNAME_MACHINE}-mingw32
8131 + exit ;;
8132 + i*:PW*:*)
8133 + echo ${UNAME_MACHINE}-pc-pw32
8134 + exit ;;
8135 + x86:Interix*:[345]*)
8136 + echo i586-pc-interix${UNAME_RELEASE}
8137 + exit ;;
8138 + EM64T:Interix*:[345]*)
8139 + echo x86_64-unknown-interix${UNAME_RELEASE}
8140 + exit ;;
8141 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
8142 + echo i${UNAME_MACHINE}-pc-mks
8143 + exit ;;
8144 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
8145 + # How do we know it's Interix rather than the generic POSIX subsystem?
8146 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
8147 + # UNAME_MACHINE based on the output of uname instead of i386?
8148 + echo i586-pc-interix
8149 + exit ;;
8150 + i*:UWIN*:*)
8151 + echo ${UNAME_MACHINE}-pc-uwin
8152 + exit ;;
8153 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
8154 + echo x86_64-unknown-cygwin
8155 + exit ;;
8156 + p*:CYGWIN*:*)
8157 + echo powerpcle-unknown-cygwin
8158 + exit ;;
8159 + prep*:SunOS:5.*:*)
8160 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8161 + exit ;;
8162 + *:GNU:*:*)
8163 + # the GNU system
8164 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
8165 + exit ;;
8166 + *:GNU/*:*:*)
8167 + # other systems with GNU libc and userland
8168 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
8169 + exit ;;
8170 + i*86:Minix:*:*)
8171 + echo ${UNAME_MACHINE}-pc-minix
8172 + exit ;;
8173 + arm*:Linux:*:*)
8174 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8175 + exit ;;
8176 + cris:Linux:*:*)
8177 + echo cris-axis-linux-${LIBC}
8178 + exit ;;
8179 + crisv32:Linux:*:*)
8180 + echo crisv32-axis-linux-${LIBC}
8181 + exit ;;
8182 + frv:Linux:*:*)
8183 + echo frv-unknown-linux-${LIBC}
8184 + exit ;;
8185 + ia64:Linux:*:*)
8186 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8187 + exit ;;
8188 + m32r*:Linux:*:*)
8189 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8190 + exit ;;
8191 + m68*:Linux:*:*)
8192 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8193 + exit ;;
8194 + mips:Linux:*:*)
8195 + eval $set_cc_for_build
8196 + sed 's/^ //' << EOF >$dummy.c
8197 + #undef CPU
8198 + #undef mips
8199 + #undef mipsel
8200 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8201 + CPU=mipsel
8202 + #else
8203 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8204 + CPU=mips
8205 + #else
8206 + CPU=
8207 + #endif
8208 + #endif
8209 +EOF
8210 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8211 + /^CPU/{
8212 + s: ::g
8213 + p
8214 + }'`"
8215 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
8216 + ;;
8217 + mips64:Linux:*:*)
8218 + eval $set_cc_for_build
8219 + sed 's/^ //' << EOF >$dummy.c
8220 + #undef CPU
8221 + #undef mips64
8222 + #undef mips64el
8223 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8224 + CPU=mips64el
8225 + #else
8226 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8227 + CPU=mips64
8228 + #else
8229 + CPU=
8230 + #endif
8231 + #endif
8232 +EOF
8233 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8234 + /^CPU/{
8235 + s: ::g
8236 + p
8237 + }'`"
8238 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
8239 + ;;
8240 + or32:Linux:*:*)
8241 + echo or32-unknown-linux-${LIBC}
8242 + exit ;;
8243 + ppc:Linux:*:*)
8244 + echo powerpc-unknown-linux-${LIBC}
8245 + exit ;;
8246 + ppc64:Linux:*:*)
8247 + echo powerpc64-unknown-linux-${LIBC}
8248 + exit ;;
8249 + alpha:Linux:*:*)
8250 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
8251 + EV5) UNAME_MACHINE=alphaev5 ;;
8252 + EV56) UNAME_MACHINE=alphaev56 ;;
8253 + PCA56) UNAME_MACHINE=alphapca56 ;;
8254 + PCA57) UNAME_MACHINE=alphapca56 ;;
8255 + EV6) UNAME_MACHINE=alphaev6 ;;
8256 + EV67) UNAME_MACHINE=alphaev67 ;;
8257 + EV68*) UNAME_MACHINE=alphaev68 ;;
8258 + esac
8259 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
8260 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
8261 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8262 + exit ;;
8263 + parisc:Linux:*:* | hppa:Linux:*:*)
8264 + # Look for CPU level
8265 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
8266 + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
8267 + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
8268 + *) echo hppa-unknown-linux-${LIBC} ;;
8269 + esac
8270 + exit ;;
8271 + parisc64:Linux:*:* | hppa64:Linux:*:*)
8272 + echo hppa64-unknown-linux-${LIBC}
8273 + exit ;;
8274 + s390:Linux:*:* | s390x:Linux:*:*)
8275 + echo ${UNAME_MACHINE}-ibm-linux
8276 + exit ;;
8277 + sh64*:Linux:*:*)
8278 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8279 + exit ;;
8280 + sh*:Linux:*:*)
8281 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8282 + exit ;;
8283 + sparc:Linux:*:* | sparc64:Linux:*:*)
8284 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8285 + exit ;;
8286 + vax:Linux:*:*)
8287 + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
8288 + exit ;;
8289 + x86_64:Linux:*:*)
8290 + echo x86_64-unknown-linux-${LIBC}
8291 + exit ;;
8292 + i*86:Linux:*:*)
8293 + # The BFD linker knows what the default object file format is, so
8294 + # first see if it will tell us. cd to the root directory to prevent
8295 + # problems with other programs or directories called `ld' in the path.
8296 + # Set LC_ALL=C to ensure ld outputs messages in English.
8297 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
8298 + | sed -ne '/supported targets:/!d
8299 + s/[ ][ ]*/ /g
8300 + s/.*supported targets: *//
8301 + s/ .*//
8302 + p'`
8303 + case "$ld_supported_targets" in
8304 + elf32-i386)
8305 + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
8306 + ;;
8307 + a.out-i386-linux)
8308 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
8309 + exit ;;
8310 + coff-i386)
8311 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
8312 + exit ;;
8313 + "")
8314 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
8315 + # one that does not give us useful --help.
8316 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
8317 + exit ;;
8318 + esac
8319 + # This should get integrated into the C code below, but now we hack
8320 + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
8321 + # Determine whether the default compiler is a.out or elf
8322 + eval $set_cc_for_build
8323 + sed 's/^ //' << EOF >$dummy.c
8324 + #include <features.h>
8325 + #ifdef __ELF__
8326 + # ifdef __GLIBC__
8327 + # if __GLIBC__ >= 2
8328 + LIBC=gnu
8329 + # else
8330 + LIBC=gnulibc1
8331 + # endif
8332 + # else
8333 + LIBC=gnulibc1
8334 + # endif
8335 + #else
8336 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
8337 + LIBC=gnu
8338 + #else
8339 + LIBC=gnuaout
8340 + #endif
8341 + #endif
8342 + #ifdef __dietlibc__
8343 + LIBC=dietlibc
8344 + #endif
8345 +EOF
8346 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8347 + /^LIBC/{
8348 + s: ::g
8349 + p
8350 + }'`"
8351 + test x"${LIBC}" != x && {
8352 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
8353 + exit
8354 + }
8355 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
8356 + ;;
8357 + i*86:DYNIX/ptx:4*:*)
8358 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
8359 + # earlier versions are messed up and put the nodename in both
8360 + # sysname and nodename.
8361 + echo i386-sequent-sysv4
8362 + exit ;;
8363 + i*86:UNIX_SV:4.2MP:2.*)
8364 + # Unixware is an offshoot of SVR4, but it has its own version
8365 + # number series starting with 2...
8366 + # I am not positive that other SVR4 systems won't match this,
8367 + # I just have to hope. -- rms.
8368 + # Use sysv4.2uw... so that sysv4* matches it.
8369 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
8370 + exit ;;
8371 + i*86:OS/2:*:*)
8372 + # If we were able to find `uname', then EMX Unix compatibility
8373 + # is probably installed.
8374 + echo ${UNAME_MACHINE}-pc-os2-emx
8375 + exit ;;
8376 + i*86:XTS-300:*:STOP)
8377 + echo ${UNAME_MACHINE}-unknown-stop
8378 + exit ;;
8379 + i*86:atheos:*:*)
8380 + echo ${UNAME_MACHINE}-unknown-atheos
8381 + exit ;;
8382 + i*86:syllable:*:*)
8383 + echo ${UNAME_MACHINE}-pc-syllable
8384 + exit ;;
8385 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
8386 + echo i386-unknown-lynxos${UNAME_RELEASE}
8387 + exit ;;
8388 + i*86:*DOS:*:*)
8389 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
8390 + exit ;;
8391 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
8392 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
8393 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
8394 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
8395 + else
8396 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
8397 + fi
8398 + exit ;;
8399 + i*86:*:5:[678]*)
8400 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
8401 + case `/bin/uname -X | grep "^Machine"` in
8402 + *486*) UNAME_MACHINE=i486 ;;
8403 + *Pentium) UNAME_MACHINE=i586 ;;
8404 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
8405 + esac
8406 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
8407 + exit ;;
8408 + i*86:*:3.2:*)
8409 + if test -f /usr/options/cb.name; then
8410 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
8411 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
8412 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
8413 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
8414 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
8415 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
8416 + && UNAME_MACHINE=i586
8417 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
8418 + && UNAME_MACHINE=i686
8419 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
8420 + && UNAME_MACHINE=i686
8421 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
8422 + else
8423 + echo ${UNAME_MACHINE}-pc-sysv32
8424 + fi
8425 + exit ;;
8426 + pc:*:*:*)
8427 + # Left here for compatibility:
8428 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
8429 + # the processor, so we play safe by assuming i386.
8430 + echo i386-pc-msdosdjgpp
8431 + exit ;;
8432 + Intel:Mach:3*:*)
8433 + echo i386-pc-mach3
8434 + exit ;;
8435 + paragon:*:*:*)
8436 + echo i860-intel-osf1
8437 + exit ;;
8438 + i860:*:4.*:*) # i860-SVR4
8439 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
8440 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
8441 + else # Add other i860-SVR4 vendors below as they are discovered.
8442 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
8443 + fi
8444 + exit ;;
8445 + mini*:CTIX:SYS*5:*)
8446 + # "miniframe"
8447 + echo m68010-convergent-sysv
8448 + exit ;;
8449 + mc68k:UNIX:SYSTEM5:3.51m)
8450 + echo m68k-convergent-sysv
8451 + exit ;;
8452 + M680?0:D-NIX:5.3:*)
8453 + echo m68k-diab-dnix
8454 + exit ;;
8455 + M68*:*:R3V[5678]*:*)
8456 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
8457 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
8458 + OS_REL=''
8459 + test -r /etc/.relid \
8460 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
8461 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
8462 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
8463 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
8464 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
8465 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
8466 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
8467 + && { echo i486-ncr-sysv4; exit; } ;;
8468 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
8469 + echo m68k-unknown-lynxos${UNAME_RELEASE}
8470 + exit ;;
8471 + mc68030:UNIX_System_V:4.*:*)
8472 + echo m68k-atari-sysv4
8473 + exit ;;
8474 + TSUNAMI:LynxOS:2.*:*)
8475 + echo sparc-unknown-lynxos${UNAME_RELEASE}
8476 + exit ;;
8477 + rs6000:LynxOS:2.*:*)
8478 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
8479 + exit ;;
8480 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
8481 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
8482 + exit ;;
8483 + SM[BE]S:UNIX_SV:*:*)
8484 + echo mips-dde-sysv${UNAME_RELEASE}
8485 + exit ;;
8486 + RM*:ReliantUNIX-*:*:*)
8487 + echo mips-sni-sysv4
8488 + exit ;;
8489 + RM*:SINIX-*:*:*)
8490 + echo mips-sni-sysv4
8491 + exit ;;
8492 + *:SINIX-*:*:*)
8493 + if uname -p 2>/dev/null >/dev/null ; then
8494 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
8495 + echo ${UNAME_MACHINE}-sni-sysv4
8496 + else
8497 + echo ns32k-sni-sysv
8498 + fi
8499 + exit ;;
8500 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
8501 + # says <Richard.M.Bartel@ccMail.Census.GOV>
8502 + echo i586-unisys-sysv4
8503 + exit ;;
8504 + *:UNIX_System_V:4*:FTX*)
8505 + # From Gerald Hewes <hewes@openmarket.com>.
8506 + # How about differentiating between stratus architectures? -djm
8507 + echo hppa1.1-stratus-sysv4
8508 + exit ;;
8509 + *:*:*:FTX*)
8510 + # From seanf@swdc.stratus.com.
8511 + echo i860-stratus-sysv4
8512 + exit ;;
8513 + i*86:VOS:*:*)
8514 + # From Paul.Green@stratus.com.
8515 + echo ${UNAME_MACHINE}-stratus-vos
8516 + exit ;;
8517 + *:VOS:*:*)
8518 + # From Paul.Green@stratus.com.
8519 + echo hppa1.1-stratus-vos
8520 + exit ;;
8521 + mc68*:A/UX:*:*)
8522 + echo m68k-apple-aux${UNAME_RELEASE}
8523 + exit ;;
8524 + news*:NEWS-OS:6*:*)
8525 + echo mips-sony-newsos6
8526 + exit ;;
8527 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
8528 + if [ -d /usr/nec ]; then
8529 + echo mips-nec-sysv${UNAME_RELEASE}
8530 + else
8531 + echo mips-unknown-sysv${UNAME_RELEASE}
8532 + fi
8533 + exit ;;
8534 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
8535 + echo powerpc-be-beos
8536 + exit ;;
8537 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
8538 + echo powerpc-apple-beos
8539 + exit ;;
8540 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
8541 + echo i586-pc-beos
8542 + exit ;;
8543 + SX-4:SUPER-UX:*:*)
8544 + echo sx4-nec-superux${UNAME_RELEASE}
8545 + exit ;;
8546 + SX-5:SUPER-UX:*:*)
8547 + echo sx5-nec-superux${UNAME_RELEASE}
8548 + exit ;;
8549 + SX-6:SUPER-UX:*:*)
8550 + echo sx6-nec-superux${UNAME_RELEASE}
8551 + exit ;;
8552 + Power*:Rhapsody:*:*)
8553 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
8554 + exit ;;
8555 + *:Rhapsody:*:*)
8556 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
8557 + exit ;;
8558 + *:Darwin:*:*)
8559 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
8560 + case $UNAME_PROCESSOR in
8561 + unknown) UNAME_PROCESSOR=powerpc ;;
8562 + esac
8563 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
8564 + exit ;;
8565 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
8566 + UNAME_PROCESSOR=`uname -p`
8567 + if test "$UNAME_PROCESSOR" = "x86"; then
8568 + UNAME_PROCESSOR=i386
8569 + UNAME_MACHINE=pc
8570 + fi
8571 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
8572 + exit ;;
8573 + *:QNX:*:4*)
8574 + echo i386-pc-qnx
8575 + exit ;;
8576 + NSE-?:NONSTOP_KERNEL:*:*)
8577 + echo nse-tandem-nsk${UNAME_RELEASE}
8578 + exit ;;
8579 + NSR-?:NONSTOP_KERNEL:*:*)
8580 + echo nsr-tandem-nsk${UNAME_RELEASE}
8581 + exit ;;
8582 + *:NonStop-UX:*:*)
8583 + echo mips-compaq-nonstopux
8584 + exit ;;
8585 + BS2000:POSIX*:*:*)
8586 + echo bs2000-siemens-sysv
8587 + exit ;;
8588 + DS/*:UNIX_System_V:*:*)
8589 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
8590 + exit ;;
8591 + *:Plan9:*:*)
8592 + # "uname -m" is not consistent, so use $cputype instead. 386
8593 + # is converted to i386 for consistency with other x86
8594 + # operating systems.
8595 + if test "$cputype" = "386"; then
8596 + UNAME_MACHINE=i386
8597 + else
8598 + UNAME_MACHINE="$cputype"
8599 + fi
8600 + echo ${UNAME_MACHINE}-unknown-plan9
8601 + exit ;;
8602 + *:TOPS-10:*:*)
8603 + echo pdp10-unknown-tops10
8604 + exit ;;
8605 + *:TENEX:*:*)
8606 + echo pdp10-unknown-tenex
8607 + exit ;;
8608 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
8609 + echo pdp10-dec-tops20
8610 + exit ;;
8611 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
8612 + echo pdp10-xkl-tops20
8613 + exit ;;
8614 + *:TOPS-20:*:*)
8615 + echo pdp10-unknown-tops20
8616 + exit ;;
8617 + *:ITS:*:*)
8618 + echo pdp10-unknown-its
8619 + exit ;;
8620 + SEI:*:*:SEIUX)
8621 + echo mips-sei-seiux${UNAME_RELEASE}
8622 + exit ;;
8623 + *:DragonFly:*:*)
8624 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
8625 + exit ;;
8626 + *:*VMS:*:*)
8627 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
8628 + case "${UNAME_MACHINE}" in
8629 + A*) echo alpha-dec-vms ; exit ;;
8630 + I*) echo ia64-dec-vms ; exit ;;
8631 + V*) echo vax-dec-vms ; exit ;;
8632 + esac ;;
8633 + *:XENIX:*:SysV)
8634 + echo i386-pc-xenix
8635 + exit ;;
8636 + i*86:skyos:*:*)
8637 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
8638 + exit ;;
8639 + i*86:rdos:*:*)
8640 + echo ${UNAME_MACHINE}-pc-rdos
8641 + exit ;;
8642 +esac
8643 +
8644 +#echo '(No uname command or uname output not recognized.)' 1>&2
8645 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
8646 +
8647 +eval $set_cc_for_build
8648 +cat >$dummy.c <<EOF
8649 +#ifdef _SEQUENT_
8650 +# include <sys/types.h>
8651 +# include <sys/utsname.h>
8652 +#endif
8653 +main ()
8654 +{
8655 +#if defined (sony)
8656 +#if defined (MIPSEB)
8657 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
8658 + I don't know.... */
8659 + printf ("mips-sony-bsd\n"); exit (0);
8660 +#else
8661 +#include <sys/param.h>
8662 + printf ("m68k-sony-newsos%s\n",
8663 +#ifdef NEWSOS4
8664 + "4"
8665 +#else
8666 + ""
8667 +#endif
8668 + ); exit (0);
8669 +#endif
8670 +#endif
8671 +
8672 +#if defined (__arm) && defined (__acorn) && defined (__unix)
8673 + printf ("arm-acorn-riscix\n"); exit (0);
8674 +#endif
8675 +
8676 +#if defined (hp300) && !defined (hpux)
8677 + printf ("m68k-hp-bsd\n"); exit (0);
8678 +#endif
8679 +
8680 +#if defined (NeXT)
8681 +#if !defined (__ARCHITECTURE__)
8682 +#define __ARCHITECTURE__ "m68k"
8683 +#endif
8684 + int version;
8685 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
8686 + if (version < 4)
8687 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
8688 + else
8689 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
8690 + exit (0);
8691 +#endif
8692 +
8693 +#if defined (MULTIMAX) || defined (n16)
8694 +#if defined (UMAXV)
8695 + printf ("ns32k-encore-sysv\n"); exit (0);
8696 +#else
8697 +#if defined (CMU)
8698 + printf ("ns32k-encore-mach\n"); exit (0);
8699 +#else
8700 + printf ("ns32k-encore-bsd\n"); exit (0);
8701 +#endif
8702 +#endif
8703 +#endif
8704 +
8705 +#if defined (__386BSD__)
8706 + printf ("i386-pc-bsd\n"); exit (0);
8707 +#endif
8708 +
8709 +#if defined (sequent)
8710 +#if defined (i386)
8711 + printf ("i386-sequent-dynix\n"); exit (0);
8712 +#endif
8713 +#if defined (ns32000)
8714 + printf ("ns32k-sequent-dynix\n"); exit (0);
8715 +#endif
8716 +#endif
8717 +
8718 +#if defined (_SEQUENT_)
8719 + struct utsname un;
8720 +
8721 + uname(&un);
8722 +
8723 + if (strncmp(un.version, "V2", 2) == 0) {
8724 + printf ("i386-sequent-ptx2\n"); exit (0);
8725 + }
8726 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
8727 + printf ("i386-sequent-ptx1\n"); exit (0);
8728 + }
8729 + printf ("i386-sequent-ptx\n"); exit (0);
8730 +
8731 +#endif
8732 +
8733 +#if defined (vax)
8734 +# if !defined (ultrix)
8735 +# include <sys/param.h>
8736 +# if defined (BSD)
8737 +# if BSD == 43
8738 + printf ("vax-dec-bsd4.3\n"); exit (0);
8739 +# else
8740 +# if BSD == 199006
8741 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
8742 +# else
8743 + printf ("vax-dec-bsd\n"); exit (0);
8744 +# endif
8745 +# endif
8746 +# else
8747 + printf ("vax-dec-bsd\n"); exit (0);
8748 +# endif
8749 +# else
8750 + printf ("vax-dec-ultrix\n"); exit (0);
8751 +# endif
8752 +#endif
8753 +
8754 +#if defined (alliant) && defined (i860)
8755 + printf ("i860-alliant-bsd\n"); exit (0);
8756 +#endif
8757 +
8758 + exit (1);
8759 +}
8760 +EOF
8761 +
8762 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
8763 + { echo "$SYSTEM_NAME"; exit; }
8764 +
8765 +# Apollos put the system type in the environment.
8766 +
8767 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
8768 +
8769 +# Convex versions that predate uname can use getsysinfo(1)
8770 +
8771 +if [ -x /usr/convex/getsysinfo ]
8772 +then
8773 + case `getsysinfo -f cpu_type` in
8774 + c1*)
8775 + echo c1-convex-bsd
8776 + exit ;;
8777 + c2*)
8778 + if getsysinfo -f scalar_acc
8779 + then echo c32-convex-bsd
8780 + else echo c2-convex-bsd
8781 + fi
8782 + exit ;;
8783 + c34*)
8784 + echo c34-convex-bsd
8785 + exit ;;
8786 + c38*)
8787 + echo c38-convex-bsd
8788 + exit ;;
8789 + c4*)
8790 + echo c4-convex-bsd
8791 + exit ;;
8792 + esac
8793 +fi
8794 +
8795 +cat >&2 <<EOF
8796 +$0: unable to guess system type
8797 +
8798 +This script, last modified $timestamp, has failed to recognize
8799 +the operating system you are using. It is advised that you
8800 +download the most up to date version of the config scripts from
8801 +
8802 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
8803 +and
8804 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
8805 +
8806 +If the version you run ($0) is already up to date, please
8807 +send the following data and any information you think might be
8808 +pertinent to <config-patches@gnu.org> in order to provide the needed
8809 +information to handle your system.
8810 +
8811 +config.guess timestamp = $timestamp
8812 +
8813 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
8814 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
8815 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
8816 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
8817 +
8818 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
8819 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
8820 +
8821 +hostinfo = `(hostinfo) 2>/dev/null`
8822 +/bin/universe = `(/bin/universe) 2>/dev/null`
8823 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
8824 +/bin/arch = `(/bin/arch) 2>/dev/null`
8825 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
8826 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
8827 +
8828 +UNAME_MACHINE = ${UNAME_MACHINE}
8829 +UNAME_RELEASE = ${UNAME_RELEASE}
8830 +UNAME_SYSTEM = ${UNAME_SYSTEM}
8831 +UNAME_VERSION = ${UNAME_VERSION}
8832 +EOF
8833 +
8834 +exit 1
8835 +
8836 +# Local variables:
8837 +# eval: (add-hook 'write-file-hooks 'time-stamp)
8838 +# time-stamp-start: "timestamp='"
8839 +# time-stamp-format: "%:y-%02m-%02d"
8840 +# time-stamp-end: "'"
8841 +# End:
8842 diff -urN lua-5.1.4/config.h.in lua-5.1.4-autotoolize/config.h.in
8843 --- lua-5.1.4/config.h.in 1970-01-01 01:00:00.000000000 +0100
8844 +++ lua-5.1.4-autotoolize/config.h.in 2008-09-03 13:18:23.000000000 +0200
8845 @@ -0,0 +1,64 @@
8846 +/* config.h.in. Generated from configure.ac by autoheader. */
8847 +
8848 +/* Define to 1 if you have the <dlfcn.h> header file. */
8849 +#undef HAVE_DLFCN_H
8850 +
8851 +/* Define to 1 if you have the <inttypes.h> header file. */
8852 +#undef HAVE_INTTYPES_H
8853 +
8854 +/* Define to 1 if you have the `readline' library (-lreadline). */
8855 +#undef HAVE_LIBREADLINE
8856 +
8857 +/* Define to 1 if you have the <memory.h> header file. */
8858 +#undef HAVE_MEMORY_H
8859 +
8860 +/* Define to 1 if you have the <readline/history.h> header file. */
8861 +#undef HAVE_READLINE_HISTORY_H
8862 +
8863 +/* Define to 1 if you have the <readline/readline.h> header file. */
8864 +#undef HAVE_READLINE_READLINE_H
8865 +
8866 +/* Define to 1 if you have the <stdint.h> header file. */
8867 +#undef HAVE_STDINT_H
8868 +
8869 +/* Define to 1 if you have the <stdlib.h> header file. */
8870 +#undef HAVE_STDLIB_H
8871 +
8872 +/* Define to 1 if you have the <strings.h> header file. */
8873 +#undef HAVE_STRINGS_H
8874 +
8875 +/* Define to 1 if you have the <string.h> header file. */
8876 +#undef HAVE_STRING_H
8877 +
8878 +/* Define to 1 if you have the <sys/stat.h> header file. */
8879 +#undef HAVE_SYS_STAT_H
8880 +
8881 +/* Define to 1 if you have the <sys/types.h> header file. */
8882 +#undef HAVE_SYS_TYPES_H
8883 +
8884 +/* Define to 1 if you have the <unistd.h> header file. */
8885 +#undef HAVE_UNISTD_H
8886 +
8887 +/* Name of package */
8888 +#undef PACKAGE
8889 +
8890 +/* Define to the address where bug reports for this package should be sent. */
8891 +#undef PACKAGE_BUGREPORT
8892 +
8893 +/* Define to the full name of this package. */
8894 +#undef PACKAGE_NAME
8895 +
8896 +/* Define to the full name and version of this package. */
8897 +#undef PACKAGE_STRING
8898 +
8899 +/* Define to the one symbol short name of this package. */
8900 +#undef PACKAGE_TARNAME
8901 +
8902 +/* Define to the version of this package. */
8903 +#undef PACKAGE_VERSION
8904 +
8905 +/* Define to 1 if you have the ANSI C header files. */
8906 +#undef STDC_HEADERS
8907 +
8908 +/* Version number of package */
8909 +#undef VERSION
8910 diff -urN lua-5.1.4/config.sub lua-5.1.4-autotoolize/config.sub
8911 --- lua-5.1.4/config.sub 1970-01-01 01:00:00.000000000 +0100
8912 +++ lua-5.1.4-autotoolize/config.sub 2008-09-03 13:18:37.000000000 +0200
8913 @@ -0,0 +1,1627 @@
8914 +#! /bin/sh
8915 +# Configuration validation subroutine script.
8916 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
8917 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
8918 +# Inc.
8919 +
8920 +timestamp='2006-02-27'
8921 +
8922 +# This file is (in principle) common to ALL GNU software.
8923 +# The presence of a machine in this file suggests that SOME GNU software
8924 +# can handle that machine. It does not imply ALL GNU software can.
8925 +#
8926 +# This file is free software; you can redistribute it and/or modify
8927 +# it under the terms of the GNU General Public License as published by
8928 +# the Free Software Foundation; either version 2 of the License, or
8929 +# (at your option) any later version.
8930 +#
8931 +# This program is distributed in the hope that it will be useful,
8932 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
8933 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8934 +# GNU General Public License for more details.
8935 +#
8936 +# You should have received a copy of the GNU General Public License
8937 +# along with this program; if not, write to the Free Software
8938 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
8939 +# 02110-1301, USA.
8940 +#
8941 +# As a special exception to the GNU General Public License, if you
8942 +# distribute this file as part of a program that contains a
8943 +# configuration script generated by Autoconf, you may include it under
8944 +# the same distribution terms that you use for the rest of that program.
8945 +
8946 +
8947 +# Please send patches to <config-patches@gnu.org>. Submit a context
8948 +# diff and a properly formatted ChangeLog entry.
8949 +#
8950 +# Configuration subroutine to validate and canonicalize a configuration type.
8951 +# Supply the specified configuration type as an argument.
8952 +# If it is invalid, we print an error message on stderr and exit with code 1.
8953 +# Otherwise, we print the canonical config type on stdout and succeed.
8954 +
8955 +# This file is supposed to be the same for all GNU packages
8956 +# and recognize all the CPU types, system types and aliases
8957 +# that are meaningful with *any* GNU software.
8958 +# Each package is responsible for reporting which valid configurations
8959 +# it does not support. The user should be able to distinguish
8960 +# a failure to support a valid configuration from a meaningless
8961 +# configuration.
8962 +
8963 +# The goal of this file is to map all the various variations of a given
8964 +# machine specification into a single specification in the form:
8965 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
8966 +# or in some cases, the newer four-part form:
8967 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
8968 +# It is wrong to echo any other type of specification.
8969 +
8970 +me=`echo "$0" | sed -e 's,.*/,,'`
8971 +
8972 +usage="\
8973 +Usage: $0 [OPTION] CPU-MFR-OPSYS
8974 + $0 [OPTION] ALIAS
8975 +
8976 +Canonicalize a configuration name.
8977 +
8978 +Operation modes:
8979 + -h, --help print this help, then exit
8980 + -t, --time-stamp print date of last modification, then exit
8981 + -v, --version print version number, then exit
8982 +
8983 +Report bugs and patches to <config-patches@gnu.org>."
8984 +
8985 +version="\
8986 +GNU config.sub ($timestamp)
8987 +
8988 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8989 +Free Software Foundation, Inc.
8990 +
8991 +This is free software; see the source for copying conditions. There is NO
8992 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8993 +
8994 +help="
8995 +Try \`$me --help' for more information."
8996 +
8997 +# Parse command line
8998 +while test $# -gt 0 ; do
8999 + case $1 in
9000 + --time-stamp | --time* | -t )
9001 + echo "$timestamp" ; exit ;;
9002 + --version | -v )
9003 + echo "$version" ; exit ;;
9004 + --help | --h* | -h )
9005 + echo "$usage"; exit ;;
9006 + -- ) # Stop option processing
9007 + shift; break ;;
9008 + - ) # Use stdin as input.
9009 + break ;;
9010 + -* )
9011 + echo "$me: invalid option $1$help"
9012 + exit 1 ;;
9013 +
9014 + *local*)
9015 + # First pass through any local machine types.
9016 + echo $1
9017 + exit ;;
9018 +
9019 + * )
9020 + break ;;
9021 + esac
9022 +done
9023 +
9024 +case $# in
9025 + 0) echo "$me: missing argument$help" >&2
9026 + exit 1;;
9027 + 1) ;;
9028 + *) echo "$me: too many arguments$help" >&2
9029 + exit 1;;
9030 +esac
9031 +
9032 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
9033 +# Here we must recognize all the valid KERNEL-OS combinations.
9034 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
9035 +case $maybe_os in
9036 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
9037 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
9038 + storm-chaos* | os2-emx* | rtmk-nova*)
9039 + os=-$maybe_os
9040 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
9041 + ;;
9042 + *)
9043 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
9044 + if [ $basic_machine != $1 ]
9045 + then os=`echo $1 | sed 's/.*-/-/'`
9046 + else os=; fi
9047 + ;;
9048 +esac
9049 +
9050 +### Let's recognize common machines as not being operating systems so
9051 +### that things like config.sub decstation-3100 work. We also
9052 +### recognize some manufacturers as not being operating systems, so we
9053 +### can provide default operating systems below.
9054 +case $os in
9055 + -sun*os*)
9056 + # Prevent following clause from handling this invalid input.
9057 + ;;
9058 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
9059 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
9060 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
9061 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
9062 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
9063 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
9064 + -apple | -axis | -knuth | -cray)
9065 + os=
9066 + basic_machine=$1
9067 + ;;
9068 + -sim | -cisco | -oki | -wec | -winbond)
9069 + os=
9070 + basic_machine=$1
9071 + ;;
9072 + -scout)
9073 + ;;
9074 + -wrs)
9075 + os=-vxworks
9076 + basic_machine=$1
9077 + ;;
9078 + -chorusos*)
9079 + os=-chorusos
9080 + basic_machine=$1
9081 + ;;
9082 + -chorusrdb)
9083 + os=-chorusrdb
9084 + basic_machine=$1
9085 + ;;
9086 + -hiux*)
9087 + os=-hiuxwe2
9088 + ;;
9089 + -sco6)
9090 + os=-sco5v6
9091 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9092 + ;;
9093 + -sco5)
9094 + os=-sco3.2v5
9095 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9096 + ;;
9097 + -sco4)
9098 + os=-sco3.2v4
9099 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9100 + ;;
9101 + -sco3.2.[4-9]*)
9102 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
9103 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9104 + ;;
9105 + -sco3.2v[4-9]*)
9106 + # Don't forget version if it is 3.2v4 or newer.
9107 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9108 + ;;
9109 + -sco5v6*)
9110 + # Don't forget version if it is 3.2v4 or newer.
9111 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9112 + ;;
9113 + -sco*)
9114 + os=-sco3.2v2
9115 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9116 + ;;
9117 + -udk*)
9118 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9119 + ;;
9120 + -isc)
9121 + os=-isc2.2
9122 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9123 + ;;
9124 + -clix*)
9125 + basic_machine=clipper-intergraph
9126 + ;;
9127 + -isc*)
9128 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9129 + ;;
9130 + -lynx*)
9131 + os=-lynxos
9132 + ;;
9133 + -ptx*)
9134 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
9135 + ;;
9136 + -windowsnt*)
9137 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
9138 + ;;
9139 + -psos*)
9140 + os=-psos
9141 + ;;
9142 + -mint | -mint[0-9]*)
9143 + basic_machine=m68k-atari
9144 + os=-mint
9145 + ;;
9146 +esac
9147 +
9148 +# Decode aliases for certain CPU-COMPANY combinations.
9149 +case $basic_machine in
9150 + # Recognize the basic CPU types without company name.
9151 + # Some are omitted here because they have special meanings below.
9152 + 1750a | 580 \
9153 + | a29k \
9154 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
9155 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
9156 + | am33_2.0 \
9157 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
9158 + | bfin \
9159 + | c4x | clipper \
9160 + | d10v | d30v | dlx | dsp16xx | dvp \
9161 + | fr30 | frv \
9162 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
9163 + | i370 | i860 | i960 | ia64 \
9164 + | ip2k | iq2000 \
9165 + | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
9166 + | mips | mipsbe | mipseb | mipsel | mipsle \
9167 + | mips16 \
9168 + | mips64 | mips64el \
9169 + | mips64vr | mips64vrel \
9170 + | mips64orion | mips64orionel \
9171 + | mips64vr4100 | mips64vr4100el \
9172 + | mips64vr4300 | mips64vr4300el \
9173 + | mips64vr5000 | mips64vr5000el \
9174 + | mips64vr5900 | mips64vr5900el \
9175 + | mipsisa32 | mipsisa32el \
9176 + | mipsisa32r2 | mipsisa32r2el \
9177 + | mipsisa64 | mipsisa64el \
9178 + | mipsisa64r2 | mipsisa64r2el \
9179 + | mipsisa64sb1 | mipsisa64sb1el \
9180 + | mipsisa64sr71k | mipsisa64sr71kel \
9181 + | mipstx39 | mipstx39el \
9182 + | mn10200 | mn10300 \
9183 + | mt \
9184 + | msp430 \
9185 + | nios | nios2 \
9186 + | ns16k | ns32k \
9187 + | or32 \
9188 + | pdp10 | pdp11 | pj | pjl \
9189 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
9190 + | pyramid \
9191 + | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | sheb | shle | sh[1234]le | sh3ele \
9192 + | sh64 | sh64le \
9193 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
9194 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
9195 + | strongarm \
9196 + | tahoe | thumb | tic4x | tic80 | tron \
9197 + | v850 | v850e \
9198 + | we32k \
9199 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
9200 + | z8k)
9201 + basic_machine=$basic_machine-unknown
9202 + ;;
9203 + m32c)
9204 + basic_machine=$basic_machine-unknown
9205 + ;;
9206 + m6811 | m68hc11 | m6812 | m68hc12)
9207 + # Motorola 68HC11/12.
9208 + basic_machine=$basic_machine-unknown
9209 + os=-none
9210 + ;;
9211 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
9212 + ;;
9213 + ms1)
9214 + basic_machine=mt-unknown
9215 + ;;
9216 +
9217 + # We use `pc' rather than `unknown'
9218 + # because (1) that's what they normally are, and
9219 + # (2) the word "unknown" tends to confuse beginning users.
9220 + i*86 | x86_64)
9221 + basic_machine=$basic_machine-pc
9222 + ;;
9223 + # Object if more than one company name word.
9224 + *-*-*)
9225 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
9226 + exit 1
9227 + ;;
9228 + # Recognize the basic CPU types with company name.
9229 + 580-* \
9230 + | a29k-* \
9231 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
9232 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
9233 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
9234 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
9235 + | avr-* \
9236 + | bfin-* | bs2000-* \
9237 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
9238 + | clipper-* | craynv-* | cydra-* \
9239 + | d10v-* | d30v-* | dlx-* \
9240 + | elxsi-* \
9241 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
9242 + | h8300-* | h8500-* \
9243 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
9244 + | i*86-* | i860-* | i960-* | ia64-* \
9245 + | ip2k-* | iq2000-* \
9246 + | m32r-* | m32rle-* \
9247 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
9248 + | m88110-* | m88k-* | maxq-* | mcore-* \
9249 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
9250 + | mips16-* \
9251 + | mips64-* | mips64el-* \
9252 + | mips64vr-* | mips64vrel-* \
9253 + | mips64orion-* | mips64orionel-* \
9254 + | mips64vr4100-* | mips64vr4100el-* \
9255 + | mips64vr4300-* | mips64vr4300el-* \
9256 + | mips64vr5000-* | mips64vr5000el-* \
9257 + | mips64vr5900-* | mips64vr5900el-* \
9258 + | mipsisa32-* | mipsisa32el-* \
9259 + | mipsisa32r2-* | mipsisa32r2el-* \
9260 + | mipsisa64-* | mipsisa64el-* \
9261 + | mipsisa64r2-* | mipsisa64r2el-* \
9262 + | mipsisa64sb1-* | mipsisa64sb1el-* \
9263 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
9264 + | mipstx39-* | mipstx39el-* \
9265 + | mmix-* \
9266 + | mt-* \
9267 + | msp430-* \
9268 + | nios-* | nios2-* \
9269 + | none-* | np1-* | ns16k-* | ns32k-* \
9270 + | orion-* \
9271 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
9272 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
9273 + | pyramid-* \
9274 + | romp-* | rs6000-* \
9275 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | shbe-* | sheb-* \
9276 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
9277 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
9278 + | sparclite-* \
9279 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
9280 + | tahoe-* | thumb-* \
9281 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
9282 + | tron-* \
9283 + | v850-* | v850e-* | vax-* \
9284 + | we32k-* \
9285 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
9286 + | xstormy16-* | xtensa-* \
9287 + | ymp-* \
9288 + | z8k-*)
9289 + ;;
9290 + m32c-*)
9291 + ;;
9292 + # Recognize the various machine names and aliases which stand
9293 + # for a CPU type and a company and sometimes even an OS.
9294 + 386bsd)
9295 + basic_machine=i386-unknown
9296 + os=-bsd
9297 + ;;
9298 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
9299 + basic_machine=m68000-att
9300 + ;;
9301 + 3b*)
9302 + basic_machine=we32k-att
9303 + ;;
9304 + a29khif)
9305 + basic_machine=a29k-amd
9306 + os=-udi
9307 + ;;
9308 + abacus)
9309 + basic_machine=abacus-unknown
9310 + ;;
9311 + adobe68k)
9312 + basic_machine=m68010-adobe
9313 + os=-scout
9314 + ;;
9315 + alliant | fx80)
9316 + basic_machine=fx80-alliant
9317 + ;;
9318 + altos | altos3068)
9319 + basic_machine=m68k-altos
9320 + ;;
9321 + am29k)
9322 + basic_machine=a29k-none
9323 + os=-bsd
9324 + ;;
9325 + amd64)
9326 + basic_machine=x86_64-pc
9327 + ;;
9328 + amd64-*)
9329 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
9330 + ;;
9331 + amdahl)
9332 + basic_machine=580-amdahl
9333 + os=-sysv
9334 + ;;
9335 + amiga | amiga-*)
9336 + basic_machine=m68k-unknown
9337 + ;;
9338 + amigaos | amigados)
9339 + basic_machine=m68k-unknown
9340 + os=-amigaos
9341 + ;;
9342 + amigaunix | amix)
9343 + basic_machine=m68k-unknown
9344 + os=-sysv4
9345 + ;;
9346 + apollo68)
9347 + basic_machine=m68k-apollo
9348 + os=-sysv
9349 + ;;
9350 + apollo68bsd)
9351 + basic_machine=m68k-apollo
9352 + os=-bsd
9353 + ;;
9354 + aux)
9355 + basic_machine=m68k-apple
9356 + os=-aux
9357 + ;;
9358 + balance)
9359 + basic_machine=ns32k-sequent
9360 + os=-dynix
9361 + ;;
9362 + c90)
9363 + basic_machine=c90-cray
9364 + os=-unicos
9365 + ;;
9366 + convex-c1)
9367 + basic_machine=c1-convex
9368 + os=-bsd
9369 + ;;
9370 + convex-c2)
9371 + basic_machine=c2-convex
9372 + os=-bsd
9373 + ;;
9374 + convex-c32)
9375 + basic_machine=c32-convex
9376 + os=-bsd
9377 + ;;
9378 + convex-c34)
9379 + basic_machine=c34-convex
9380 + os=-bsd
9381 + ;;
9382 + convex-c38)
9383 + basic_machine=c38-convex
9384 + os=-bsd
9385 + ;;
9386 + cray | j90)
9387 + basic_machine=j90-cray
9388 + os=-unicos
9389 + ;;
9390 + craynv)
9391 + basic_machine=craynv-cray
9392 + os=-unicosmp
9393 + ;;
9394 + cr16c)
9395 + basic_machine=cr16c-unknown
9396 + os=-elf
9397 + ;;
9398 + crds | unos)
9399 + basic_machine=m68k-crds
9400 + ;;
9401 + crisv32 | crisv32-* | etraxfs*)
9402 + basic_machine=crisv32-axis
9403 + ;;
9404 + cris | cris-* | etrax*)
9405 + basic_machine=cris-axis
9406 + ;;
9407 + crx)
9408 + basic_machine=crx-unknown
9409 + os=-elf
9410 + ;;
9411 + da30 | da30-*)
9412 + basic_machine=m68k-da30
9413 + ;;
9414 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
9415 + basic_machine=mips-dec
9416 + ;;
9417 + decsystem10* | dec10*)
9418 + basic_machine=pdp10-dec
9419 + os=-tops10
9420 + ;;
9421 + decsystem20* | dec20*)
9422 + basic_machine=pdp10-dec
9423 + os=-tops20
9424 + ;;
9425 + delta | 3300 | motorola-3300 | motorola-delta \
9426 + | 3300-motorola | delta-motorola)
9427 + basic_machine=m68k-motorola
9428 + ;;
9429 + delta88)
9430 + basic_machine=m88k-motorola
9431 + os=-sysv3
9432 + ;;
9433 + djgpp)
9434 + basic_machine=i586-pc
9435 + os=-msdosdjgpp
9436 + ;;
9437 + dpx20 | dpx20-*)
9438 + basic_machine=rs6000-bull
9439 + os=-bosx
9440 + ;;
9441 + dpx2* | dpx2*-bull)
9442 + basic_machine=m68k-bull
9443 + os=-sysv3
9444 + ;;
9445 + ebmon29k)
9446 + basic_machine=a29k-amd
9447 + os=-ebmon
9448 + ;;
9449 + elxsi)
9450 + basic_machine=elxsi-elxsi
9451 + os=-bsd
9452 + ;;
9453 + encore | umax | mmax)
9454 + basic_machine=ns32k-encore
9455 + ;;
9456 + es1800 | OSE68k | ose68k | ose | OSE)
9457 + basic_machine=m68k-ericsson
9458 + os=-ose
9459 + ;;
9460 + fx2800)
9461 + basic_machine=i860-alliant
9462 + ;;
9463 + genix)
9464 + basic_machine=ns32k-ns
9465 + ;;
9466 + gmicro)
9467 + basic_machine=tron-gmicro
9468 + os=-sysv
9469 + ;;
9470 + go32)
9471 + basic_machine=i386-pc
9472 + os=-go32
9473 + ;;
9474 + h3050r* | hiux*)
9475 + basic_machine=hppa1.1-hitachi
9476 + os=-hiuxwe2
9477 + ;;
9478 + h8300hms)
9479 + basic_machine=h8300-hitachi
9480 + os=-hms
9481 + ;;
9482 + h8300xray)
9483 + basic_machine=h8300-hitachi
9484 + os=-xray
9485 + ;;
9486 + h8500hms)
9487 + basic_machine=h8500-hitachi
9488 + os=-hms
9489 + ;;
9490 + harris)
9491 + basic_machine=m88k-harris
9492 + os=-sysv3
9493 + ;;
9494 + hp300-*)
9495 + basic_machine=m68k-hp
9496 + ;;
9497 + hp300bsd)
9498 + basic_machine=m68k-hp
9499 + os=-bsd
9500 + ;;
9501 + hp300hpux)
9502 + basic_machine=m68k-hp
9503 + os=-hpux
9504 + ;;
9505 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
9506 + basic_machine=hppa1.0-hp
9507 + ;;
9508 + hp9k2[0-9][0-9] | hp9k31[0-9])
9509 + basic_machine=m68000-hp
9510 + ;;
9511 + hp9k3[2-9][0-9])
9512 + basic_machine=m68k-hp
9513 + ;;
9514 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
9515 + basic_machine=hppa1.0-hp
9516 + ;;
9517 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
9518 + basic_machine=hppa1.1-hp
9519 + ;;
9520 + hp9k78[0-9] | hp78[0-9])
9521 + # FIXME: really hppa2.0-hp
9522 + basic_machine=hppa1.1-hp
9523 + ;;
9524 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
9525 + # FIXME: really hppa2.0-hp
9526 + basic_machine=hppa1.1-hp
9527 + ;;
9528 + hp9k8[0-9][13679] | hp8[0-9][13679])
9529 + basic_machine=hppa1.1-hp
9530 + ;;
9531 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
9532 + basic_machine=hppa1.0-hp
9533 + ;;
9534 + hppa-next)
9535 + os=-nextstep3
9536 + ;;
9537 + hppaosf)
9538 + basic_machine=hppa1.1-hp
9539 + os=-osf
9540 + ;;
9541 + hppro)
9542 + basic_machine=hppa1.1-hp
9543 + os=-proelf
9544 + ;;
9545 + i370-ibm* | ibm*)
9546 + basic_machine=i370-ibm
9547 + ;;
9548 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
9549 + i*86v32)
9550 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9551 + os=-sysv32
9552 + ;;
9553 + i*86v4*)
9554 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9555 + os=-sysv4
9556 + ;;
9557 + i*86v)
9558 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9559 + os=-sysv
9560 + ;;
9561 + i*86sol2)
9562 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9563 + os=-solaris2
9564 + ;;
9565 + i386mach)
9566 + basic_machine=i386-mach
9567 + os=-mach
9568 + ;;
9569 + i386-vsta | vsta)
9570 + basic_machine=i386-unknown
9571 + os=-vsta
9572 + ;;
9573 + iris | iris4d)
9574 + basic_machine=mips-sgi
9575 + case $os in
9576 + -irix*)
9577 + ;;
9578 + *)
9579 + os=-irix4
9580 + ;;
9581 + esac
9582 + ;;
9583 + isi68 | isi)
9584 + basic_machine=m68k-isi
9585 + os=-sysv
9586 + ;;
9587 + m88k-omron*)
9588 + basic_machine=m88k-omron
9589 + ;;
9590 + magnum | m3230)
9591 + basic_machine=mips-mips
9592 + os=-sysv
9593 + ;;
9594 + merlin)
9595 + basic_machine=ns32k-utek
9596 + os=-sysv
9597 + ;;
9598 + mingw32)
9599 + basic_machine=i386-pc
9600 + os=-mingw32
9601 + ;;
9602 + miniframe)
9603 + basic_machine=m68000-convergent
9604 + ;;
9605 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
9606 + basic_machine=m68k-atari
9607 + os=-mint
9608 + ;;
9609 + mipsEE* | ee | ps2)
9610 + basic_machine=mips64r5900el-scei
9611 + case $os in
9612 + -linux*)
9613 + ;;
9614 + *)
9615 + os=-elf
9616 + ;;
9617 + esac
9618 + ;;
9619 + iop)
9620 + basic_machine=mipsel-scei
9621 + os=-irx
9622 + ;;
9623 + dvp)
9624 + basic_machine=dvp-scei
9625 + os=-elf
9626 + ;;
9627 + mips3*-*)
9628 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
9629 + ;;
9630 + mips3*)
9631 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
9632 + ;;
9633 + monitor)
9634 + basic_machine=m68k-rom68k
9635 + os=-coff
9636 + ;;
9637 + morphos)
9638 + basic_machine=powerpc-unknown
9639 + os=-morphos
9640 + ;;
9641 + msdos)
9642 + basic_machine=i386-pc
9643 + os=-msdos
9644 + ;;
9645 + ms1-*)
9646 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
9647 + ;;
9648 + mvs)
9649 + basic_machine=i370-ibm
9650 + os=-mvs
9651 + ;;
9652 + ncr3000)
9653 + basic_machine=i486-ncr
9654 + os=-sysv4
9655 + ;;
9656 + netbsd386)
9657 + basic_machine=i386-unknown
9658 + os=-netbsd
9659 + ;;
9660 + netwinder)
9661 + basic_machine=armv4l-rebel
9662 + os=-linux
9663 + ;;
9664 + news | news700 | news800 | news900)
9665 + basic_machine=m68k-sony
9666 + os=-newsos
9667 + ;;
9668 + news1000)
9669 + basic_machine=m68030-sony
9670 + os=-newsos
9671 + ;;
9672 + news-3600 | risc-news)
9673 + basic_machine=mips-sony
9674 + os=-newsos
9675 + ;;
9676 + necv70)
9677 + basic_machine=v70-nec
9678 + os=-sysv
9679 + ;;
9680 + next | m*-next )
9681 + basic_machine=m68k-next
9682 + case $os in
9683 + -nextstep* )
9684 + ;;
9685 + -ns2*)
9686 + os=-nextstep2
9687 + ;;
9688 + *)
9689 + os=-nextstep3
9690 + ;;
9691 + esac
9692 + ;;
9693 + nh3000)
9694 + basic_machine=m68k-harris
9695 + os=-cxux
9696 + ;;
9697 + nh[45]000)
9698 + basic_machine=m88k-harris
9699 + os=-cxux
9700 + ;;
9701 + nindy960)
9702 + basic_machine=i960-intel
9703 + os=-nindy
9704 + ;;
9705 + mon960)
9706 + basic_machine=i960-intel
9707 + os=-mon960
9708 + ;;
9709 + nonstopux)
9710 + basic_machine=mips-compaq
9711 + os=-nonstopux
9712 + ;;
9713 + np1)
9714 + basic_machine=np1-gould
9715 + ;;
9716 + nsr-tandem)
9717 + basic_machine=nsr-tandem
9718 + ;;
9719 + op50n-* | op60c-*)
9720 + basic_machine=hppa1.1-oki
9721 + os=-proelf
9722 + ;;
9723 + openrisc | openrisc-*)
9724 + basic_machine=or32-unknown
9725 + ;;
9726 + os400)
9727 + basic_machine=powerpc-ibm
9728 + os=-os400
9729 + ;;
9730 + OSE68000 | ose68000)
9731 + basic_machine=m68000-ericsson
9732 + os=-ose
9733 + ;;
9734 + os68k)
9735 + basic_machine=m68k-none
9736 + os=-os68k
9737 + ;;
9738 + pa-hitachi)
9739 + basic_machine=hppa1.1-hitachi
9740 + os=-hiuxwe2
9741 + ;;
9742 + paragon)
9743 + basic_machine=i860-intel
9744 + os=-osf
9745 + ;;
9746 + pbd)
9747 + basic_machine=sparc-tti
9748 + ;;
9749 + pbb)
9750 + basic_machine=m68k-tti
9751 + ;;
9752 + pc532 | pc532-*)
9753 + basic_machine=ns32k-pc532
9754 + ;;
9755 + pc98)
9756 + basic_machine=i386-pc
9757 + ;;
9758 + pc98-*)
9759 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
9760 + ;;
9761 + pentium | p5 | k5 | k6 | nexgen | viac3)
9762 + basic_machine=i586-pc
9763 + ;;
9764 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
9765 + basic_machine=i686-pc
9766 + ;;
9767 + pentiumii | pentium2 | pentiumiii | pentium3)
9768 + basic_machine=i686-pc
9769 + ;;
9770 + pentium4)
9771 + basic_machine=i786-pc
9772 + ;;
9773 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
9774 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
9775 + ;;
9776 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
9777 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9778 + ;;
9779 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
9780 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9781 + ;;
9782 + pentium4-*)
9783 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
9784 + ;;
9785 + pn)
9786 + basic_machine=pn-gould
9787 + ;;
9788 + power) basic_machine=power-ibm
9789 + ;;
9790 + ppc) basic_machine=powerpc-unknown
9791 + ;;
9792 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9793 + ;;
9794 + ppcle | powerpclittle | ppc-le | powerpc-little)
9795 + basic_machine=powerpcle-unknown
9796 + ;;
9797 + ppcle-* | powerpclittle-*)
9798 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
9799 + ;;
9800 + ppc64) basic_machine=powerpc64-unknown
9801 + ;;
9802 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
9803 + ;;
9804 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
9805 + basic_machine=powerpc64le-unknown
9806 + ;;
9807 + ppc64le-* | powerpc64little-*)
9808 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
9809 + ;;
9810 + ps2)
9811 + basic_machine=i386-ibm
9812 + ;;
9813 + pw32)
9814 + basic_machine=i586-unknown
9815 + os=-pw32
9816 + ;;
9817 + rdos)
9818 + basic_machine=i386-pc
9819 + os=-rdos
9820 + ;;
9821 + rom68k)
9822 + basic_machine=m68k-rom68k
9823 + os=-coff
9824 + ;;
9825 + rm[46]00)
9826 + basic_machine=mips-siemens
9827 + ;;
9828 + rtpc | rtpc-*)
9829 + basic_machine=romp-ibm
9830 + ;;
9831 + s390 | s390-*)
9832 + basic_machine=s390-ibm
9833 + ;;
9834 + s390x | s390x-*)
9835 + basic_machine=s390x-ibm
9836 + ;;
9837 + sa29200)
9838 + basic_machine=a29k-amd
9839 + os=-udi
9840 + ;;
9841 + sb1)
9842 + basic_machine=mipsisa64sb1-unknown
9843 + ;;
9844 + sb1el)
9845 + basic_machine=mipsisa64sb1el-unknown
9846 + ;;
9847 + sei)
9848 + basic_machine=mips-sei
9849 + os=-seiux
9850 + ;;
9851 + sequent)
9852 + basic_machine=i386-sequent
9853 + ;;
9854 + sh)
9855 + basic_machine=sh-hitachi
9856 + os=-hms
9857 + ;;
9858 + sh64)
9859 + basic_machine=sh64-unknown
9860 + ;;
9861 + sparclite-wrs | simso-wrs)
9862 + basic_machine=sparclite-wrs
9863 + os=-vxworks
9864 + ;;
9865 + sps7)
9866 + basic_machine=m68k-bull
9867 + os=-sysv2
9868 + ;;
9869 + spur)
9870 + basic_machine=spur-unknown
9871 + ;;
9872 + st2000)
9873 + basic_machine=m68k-tandem
9874 + ;;
9875 + stratus)
9876 + basic_machine=i860-stratus
9877 + os=-sysv4
9878 + ;;
9879 + sun2)
9880 + basic_machine=m68000-sun
9881 + ;;
9882 + sun2os3)
9883 + basic_machine=m68000-sun
9884 + os=-sunos3
9885 + ;;
9886 + sun2os4)
9887 + basic_machine=m68000-sun
9888 + os=-sunos4
9889 + ;;
9890 + sun3os3)
9891 + basic_machine=m68k-sun
9892 + os=-sunos3
9893 + ;;
9894 + sun3os4)
9895 + basic_machine=m68k-sun
9896 + os=-sunos4
9897 + ;;
9898 + sun4os3)
9899 + basic_machine=sparc-sun
9900 + os=-sunos3
9901 + ;;
9902 + sun4os4)
9903 + basic_machine=sparc-sun
9904 + os=-sunos4
9905 + ;;
9906 + sun4sol2)
9907 + basic_machine=sparc-sun
9908 + os=-solaris2
9909 + ;;
9910 + sun3 | sun3-*)
9911 + basic_machine=m68k-sun
9912 + ;;
9913 + sun4)
9914 + basic_machine=sparc-sun
9915 + ;;
9916 + sun386 | sun386i | roadrunner)
9917 + basic_machine=i386-sun
9918 + ;;
9919 + sv1)
9920 + basic_machine=sv1-cray
9921 + os=-unicos
9922 + ;;
9923 + symmetry)
9924 + basic_machine=i386-sequent
9925 + os=-dynix
9926 + ;;
9927 + t3e)
9928 + basic_machine=alphaev5-cray
9929 + os=-unicos
9930 + ;;
9931 + t90)
9932 + basic_machine=t90-cray
9933 + os=-unicos
9934 + ;;
9935 + tic54x | c54x*)
9936 + basic_machine=tic54x-unknown
9937 + os=-coff
9938 + ;;
9939 + tic55x | c55x*)
9940 + basic_machine=tic55x-unknown
9941 + os=-coff
9942 + ;;
9943 + tic6x | c6x*)
9944 + basic_machine=tic6x-unknown
9945 + os=-coff
9946 + ;;
9947 + tx39)
9948 + basic_machine=mipstx39-unknown
9949 + ;;
9950 + tx39el)
9951 + basic_machine=mipstx39el-unknown
9952 + ;;
9953 + toad1)
9954 + basic_machine=pdp10-xkl
9955 + os=-tops20
9956 + ;;
9957 + tower | tower-32)
9958 + basic_machine=m68k-ncr
9959 + ;;
9960 + tpf)
9961 + basic_machine=s390x-ibm
9962 + os=-tpf
9963 + ;;
9964 + udi29k)
9965 + basic_machine=a29k-amd
9966 + os=-udi
9967 + ;;
9968 + ultra3)
9969 + basic_machine=a29k-nyu
9970 + os=-sym1
9971 + ;;
9972 + v810 | necv810)
9973 + basic_machine=v810-nec
9974 + os=-none
9975 + ;;
9976 + vaxv)
9977 + basic_machine=vax-dec
9978 + os=-sysv
9979 + ;;
9980 + vms)
9981 + basic_machine=vax-dec
9982 + os=-vms
9983 + ;;
9984 + vpp*|vx|vx-*)
9985 + basic_machine=f301-fujitsu
9986 + ;;
9987 + vxworks960)
9988 + basic_machine=i960-wrs
9989 + os=-vxworks
9990 + ;;
9991 + vxworks68)
9992 + basic_machine=m68k-wrs
9993 + os=-vxworks
9994 + ;;
9995 + vxworks29k)
9996 + basic_machine=a29k-wrs
9997 + os=-vxworks
9998 + ;;
9999 + w65*)
10000 + basic_machine=w65-wdc
10001 + os=-none
10002 + ;;
10003 + w89k-*)
10004 + basic_machine=hppa1.1-winbond
10005 + os=-proelf
10006 + ;;
10007 + xbox)
10008 + basic_machine=i686-pc
10009 + os=-mingw32
10010 + ;;
10011 + xps | xps100)
10012 + basic_machine=xps100-honeywell
10013 + ;;
10014 + ymp)
10015 + basic_machine=ymp-cray
10016 + os=-unicos
10017 + ;;
10018 + z8k-*-coff)
10019 + basic_machine=z8k-unknown
10020 + os=-sim
10021 + ;;
10022 + none)
10023 + basic_machine=none-none
10024 + os=-none
10025 + ;;
10026 +
10027 +# Here we handle the default manufacturer of certain CPU types. It is in
10028 +# some cases the only manufacturer, in others, it is the most popular.
10029 + w89k)
10030 + basic_machine=hppa1.1-winbond
10031 + ;;
10032 + op50n)
10033 + basic_machine=hppa1.1-oki
10034 + ;;
10035 + op60c)
10036 + basic_machine=hppa1.1-oki
10037 + ;;
10038 + romp)
10039 + basic_machine=romp-ibm
10040 + ;;
10041 + mmix)
10042 + basic_machine=mmix-knuth
10043 + ;;
10044 + rs6000)
10045 + basic_machine=rs6000-ibm
10046 + ;;
10047 + vax)
10048 + basic_machine=vax-dec
10049 + ;;
10050 + pdp10)
10051 + # there are many clones, so DEC is not a safe bet
10052 + basic_machine=pdp10-unknown
10053 + ;;
10054 + pdp11)
10055 + basic_machine=pdp11-dec
10056 + ;;
10057 + we32k)
10058 + basic_machine=we32k-att
10059 + ;;
10060 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
10061 + basic_machine=sh-unknown
10062 + ;;
10063 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
10064 + basic_machine=sparc-sun
10065 + ;;
10066 + cydra)
10067 + basic_machine=cydra-cydrome
10068 + ;;
10069 + orion)
10070 + basic_machine=orion-highlevel
10071 + ;;
10072 + orion105)
10073 + basic_machine=clipper-highlevel
10074 + ;;
10075 + mac | mpw | mac-mpw)
10076 + basic_machine=m68k-apple
10077 + ;;
10078 + pmac | pmac-mpw)
10079 + basic_machine=powerpc-apple
10080 + ;;
10081 + *-unknown)
10082 + # Make sure to match an already-canonicalized machine name.
10083 + ;;
10084 + *)
10085 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
10086 + exit 1
10087 + ;;
10088 +esac
10089 +
10090 +# Here we canonicalize certain aliases for manufacturers.
10091 +case $basic_machine in
10092 + *-digital*)
10093 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
10094 + ;;
10095 + *-commodore*)
10096 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
10097 + ;;
10098 + *)
10099 + ;;
10100 +esac
10101 +
10102 +# Decode manufacturer-specific aliases for certain operating systems.
10103 +
10104 +if [ x"$os" != x"" ]
10105 +then
10106 +case $os in
10107 + # First match some system type aliases
10108 + # that might get confused with valid system types.
10109 + # -solaris* is a basic system type, with this one exception.
10110 + -solaris1 | -solaris1.*)
10111 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
10112 + ;;
10113 + -solaris)
10114 + os=-solaris2
10115 + ;;
10116 + -svr4*)
10117 + os=-sysv4
10118 + ;;
10119 + -unixware*)
10120 + os=-sysv4.2uw
10121 + ;;
10122 + -gnu/linux*)
10123 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
10124 + ;;
10125 + # First accept the basic system types.
10126 + # The portable systems comes first.
10127 + # Each alternative MUST END IN A *, to match a version number.
10128 + # -sysv* is not here because it comes later, after sysvr4.
10129 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
10130 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
10131 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
10132 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
10133 + | -aos* \
10134 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
10135 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
10136 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
10137 + | -openbsd* | -solidbsd* \
10138 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
10139 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
10140 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
10141 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
10142 + | -chorusos* | -chorusrdb* \
10143 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
10144 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
10145 + | -uxpv* | -beos* | -mpeix* | -udk* \
10146 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
10147 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
10148 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
10149 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
10150 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
10151 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
10152 + | -skyos* | -haiku* | -rdos* | -irx*)
10153 + # Remember, each alternative MUST END IN *, to match a version number.
10154 + ;;
10155 + -qnx*)
10156 + case $basic_machine in
10157 + x86-* | i*86-*)
10158 + ;;
10159 + *)
10160 + os=-nto$os
10161 + ;;
10162 + esac
10163 + ;;
10164 + -nto-qnx*)
10165 + ;;
10166 + -nto*)
10167 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
10168 + ;;
10169 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
10170 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
10171 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
10172 + ;;
10173 + -mac*)
10174 + os=`echo $os | sed -e 's|mac|macos|'`
10175 + ;;
10176 + -linux-dietlibc)
10177 + os=-linux-dietlibc
10178 + ;;
10179 + -linux*)
10180 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
10181 + ;;
10182 + -sunos5*)
10183 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
10184 + ;;
10185 + -sunos6*)
10186 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
10187 + ;;
10188 + -opened*)
10189 + os=-openedition
10190 + ;;
10191 + -os400*)
10192 + os=-os400
10193 + ;;
10194 + -wince*)
10195 + os=-wince
10196 + ;;
10197 + -osfrose*)
10198 + os=-osfrose
10199 + ;;
10200 + -osf*)
10201 + os=-osf
10202 + ;;
10203 + -utek*)
10204 + os=-bsd
10205 + ;;
10206 + -dynix*)
10207 + os=-bsd
10208 + ;;
10209 + -acis*)
10210 + os=-aos
10211 + ;;
10212 + -atheos*)
10213 + os=-atheos
10214 + ;;
10215 + -syllable*)
10216 + os=-syllable
10217 + ;;
10218 + -386bsd)
10219 + os=-bsd
10220 + ;;
10221 + -ctix* | -uts*)
10222 + os=-sysv
10223 + ;;
10224 + -nova*)
10225 + os=-rtmk-nova
10226 + ;;
10227 + -ns2 )
10228 + os=-nextstep2
10229 + ;;
10230 + -nsk*)
10231 + os=-nsk
10232 + ;;
10233 + # Preserve the version number of sinix5.
10234 + -sinix5.*)
10235 + os=`echo $os | sed -e 's|sinix|sysv|'`
10236 + ;;
10237 + -sinix*)
10238 + os=-sysv4
10239 + ;;
10240 + -tpf*)
10241 + os=-tpf
10242 + ;;
10243 + -triton*)
10244 + os=-sysv3
10245 + ;;
10246 + -oss*)
10247 + os=-sysv3
10248 + ;;
10249 + -svr4)
10250 + os=-sysv4
10251 + ;;
10252 + -svr3)
10253 + os=-sysv3
10254 + ;;
10255 + -sysvr4)
10256 + os=-sysv4
10257 + ;;
10258 + # This must come after -sysvr4.
10259 + -sysv*)
10260 + ;;
10261 + -ose*)
10262 + os=-ose
10263 + ;;
10264 + -es1800*)
10265 + os=-ose
10266 + ;;
10267 + -xenix)
10268 + os=-xenix
10269 + ;;
10270 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
10271 + os=-mint
10272 + ;;
10273 + -aros*)
10274 + os=-aros
10275 + ;;
10276 + -kaos*)
10277 + os=-kaos
10278 + ;;
10279 + -zvmoe)
10280 + os=-zvmoe
10281 + ;;
10282 + -none)
10283 + ;;
10284 + *)
10285 + # Get rid of the `-' at the beginning of $os.
10286 + os=`echo $os | sed 's/[^-]*-//'`
10287 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
10288 + exit 1
10289 + ;;
10290 +esac
10291 +else
10292 +
10293 +# Here we handle the default operating systems that come with various machines.
10294 +# The value should be what the vendor currently ships out the door with their
10295 +# machine or put another way, the most popular os provided with the machine.
10296 +
10297 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
10298 +# "-sun"), then you have to tell the case statement up towards the top
10299 +# that MANUFACTURER isn't an operating system. Otherwise, code above
10300 +# will signal an error saying that MANUFACTURER isn't an operating
10301 +# system, and we'll never get to this point.
10302 +
10303 +case $basic_machine in
10304 + *-acorn)
10305 + os=-riscix1.2
10306 + ;;
10307 + arm*-rebel)
10308 + os=-linux
10309 + ;;
10310 + arm*-semi)
10311 + os=-aout
10312 + ;;
10313 + c4x-* | tic4x-*)
10314 + os=-coff
10315 + ;;
10316 + # This must come before the *-dec entry.
10317 + pdp10-*)
10318 + os=-tops20
10319 + ;;
10320 + pdp11-*)
10321 + os=-none
10322 + ;;
10323 + *-dec | vax-*)
10324 + os=-ultrix4.2
10325 + ;;
10326 + m68*-apollo)
10327 + os=-domain
10328 + ;;
10329 + i386-sun)
10330 + os=-sunos4.0.2
10331 + ;;
10332 + m68000-sun)
10333 + os=-sunos3
10334 + # This also exists in the configure program, but was not the
10335 + # default.
10336 + # os=-sunos4
10337 + ;;
10338 + m68*-cisco)
10339 + os=-aout
10340 + ;;
10341 + mips*-cisco)
10342 + os=-elf
10343 + ;;
10344 + mips*-*)
10345 + os=-elf
10346 + ;;
10347 + or32-*)
10348 + os=-coff
10349 + ;;
10350 + *-tti) # must be before sparc entry or we get the wrong os.
10351 + os=-sysv3
10352 + ;;
10353 + sparc-* | *-sun)
10354 + os=-sunos4.1.1
10355 + ;;
10356 + *-be)
10357 + os=-beos
10358 + ;;
10359 + *-haiku)
10360 + os=-haiku
10361 + ;;
10362 + *-ibm)
10363 + os=-aix
10364 + ;;
10365 + *-knuth)
10366 + os=-mmixware
10367 + ;;
10368 + *-wec)
10369 + os=-proelf
10370 + ;;
10371 + *-winbond)
10372 + os=-proelf
10373 + ;;
10374 + *-oki)
10375 + os=-proelf
10376 + ;;
10377 + *-hp)
10378 + os=-hpux
10379 + ;;
10380 + *-hitachi)
10381 + os=-hiux
10382 + ;;
10383 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
10384 + os=-sysv
10385 + ;;
10386 + *-cbm)
10387 + os=-amigaos
10388 + ;;
10389 + *-dg)
10390 + os=-dgux
10391 + ;;
10392 + *-dolphin)
10393 + os=-sysv3
10394 + ;;
10395 + m68k-ccur)
10396 + os=-rtu
10397 + ;;
10398 + m88k-omron*)
10399 + os=-luna
10400 + ;;
10401 + *-next )
10402 + os=-nextstep
10403 + ;;
10404 + *-sequent)
10405 + os=-ptx
10406 + ;;
10407 + *-crds)
10408 + os=-unos
10409 + ;;
10410 + *-ns)
10411 + os=-genix
10412 + ;;
10413 + i370-*)
10414 + os=-mvs
10415 + ;;
10416 + *-next)
10417 + os=-nextstep3
10418 + ;;
10419 + *-gould)
10420 + os=-sysv
10421 + ;;
10422 + *-highlevel)
10423 + os=-bsd
10424 + ;;
10425 + *-encore)
10426 + os=-bsd
10427 + ;;
10428 + *-sgi)
10429 + os=-irix
10430 + ;;
10431 + *-siemens)
10432 + os=-sysv4
10433 + ;;
10434 + *-masscomp)
10435 + os=-rtu
10436 + ;;
10437 + f30[01]-fujitsu | f700-fujitsu)
10438 + os=-uxpv
10439 + ;;
10440 + *-rom68k)
10441 + os=-coff
10442 + ;;
10443 + *-*bug)
10444 + os=-coff
10445 + ;;
10446 + *-apple)
10447 + os=-macos
10448 + ;;
10449 + *-atari*)
10450 + os=-mint
10451 + ;;
10452 + *)
10453 + os=-none
10454 + ;;
10455 +esac
10456 +fi
10457 +
10458 +# Here we handle the case where we know the os, and the CPU type, but not the
10459 +# manufacturer. We pick the logical manufacturer.
10460 +vendor=unknown
10461 +case $basic_machine in
10462 + *-unknown)
10463 + case $os in
10464 + -riscix*)
10465 + vendor=acorn
10466 + ;;
10467 + -sunos*)
10468 + vendor=sun
10469 + ;;
10470 + -aix*)
10471 + vendor=ibm
10472 + ;;
10473 + -beos*)
10474 + vendor=be
10475 + ;;
10476 + -hpux*)
10477 + vendor=hp
10478 + ;;
10479 + -mpeix*)
10480 + vendor=hp
10481 + ;;
10482 + -hiux*)
10483 + vendor=hitachi
10484 + ;;
10485 + -unos*)
10486 + vendor=crds
10487 + ;;
10488 + -dgux*)
10489 + vendor=dg
10490 + ;;
10491 + -luna*)
10492 + vendor=omron
10493 + ;;
10494 + -genix*)
10495 + vendor=ns
10496 + ;;
10497 + -mvs* | -opened*)
10498 + vendor=ibm
10499 + ;;
10500 + -os400*)
10501 + vendor=ibm
10502 + ;;
10503 + -ptx*)
10504 + vendor=sequent
10505 + ;;
10506 + -tpf*)
10507 + vendor=ibm
10508 + ;;
10509 + -vxsim* | -vxworks* | -windiss*)
10510 + vendor=wrs
10511 + ;;
10512 + -aux*)
10513 + vendor=apple
10514 + ;;
10515 + -hms*)
10516 + vendor=hitachi
10517 + ;;
10518 + -mpw* | -macos*)
10519 + vendor=apple
10520 + ;;
10521 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
10522 + vendor=atari
10523 + ;;
10524 + -vos*)
10525 + vendor=stratus
10526 + ;;
10527 + esac
10528 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
10529 + ;;
10530 +esac
10531 +
10532 +echo $basic_machine$os
10533 +exit
10534 +
10535 +# Local variables:
10536 +# eval: (add-hook 'write-file-hooks 'time-stamp)
10537 +# time-stamp-start: "timestamp='"
10538 +# time-stamp-format: "%:y-%02m-%02d"
10539 +# time-stamp-end: "'"
10540 +# End:
10541 diff -urN lua-5.1.4/configure lua-5.1.4-autotoolize/configure
10542 --- lua-5.1.4/configure 1970-01-01 01:00:00.000000000 +0100
10543 +++ lua-5.1.4-autotoolize/configure 2008-09-03 13:18:28.000000000 +0200
10544 @@ -0,0 +1,20444 @@
10545 +#! /bin/sh
10546 +# Guess values for system-dependent variables and create Makefiles.
10547 +# Generated by GNU Autoconf 2.59 for Autotoolized Lua 5.1.3.
10548 +#
10549 +# Copyright (C) 2003 Free Software Foundation, Inc.
10550 +# This configure script is free software; the Free Software Foundation
10551 +# gives unlimited permission to copy, distribute and modify it.
10552 +## --------------------- ##
10553 +## M4sh Initialization. ##
10554 +## --------------------- ##
10555 +
10556 +# Be Bourne compatible
10557 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10558 + emulate sh
10559 + NULLCMD=:
10560 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10561 + # is contrary to our usage. Disable this feature.
10562 + alias -g '${1+"$@"}'='"$@"'
10563 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10564 + set -o posix
10565 +fi
10566 +DUALCASE=1; export DUALCASE # for MKS sh
10567 +
10568 +# Support unset when possible.
10569 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10570 + as_unset=unset
10571 +else
10572 + as_unset=false
10573 +fi
10574 +
10575 +
10576 +# Work around bugs in pre-3.0 UWIN ksh.
10577 +$as_unset ENV MAIL MAILPATH
10578 +PS1='$ '
10579 +PS2='> '
10580 +PS4='+ '
10581 +
10582 +# NLS nuisances.
10583 +for as_var in \
10584 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10585 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10586 + LC_TELEPHONE LC_TIME
10587 +do
10588 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10589 + eval $as_var=C; export $as_var
10590 + else
10591 + $as_unset $as_var
10592 + fi
10593 +done
10594 +
10595 +# Required to use basename.
10596 +if expr a : '\(a\)' >/dev/null 2>&1; then
10597 + as_expr=expr
10598 +else
10599 + as_expr=false
10600 +fi
10601 +
10602 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10603 + as_basename=basename
10604 +else
10605 + as_basename=false
10606 +fi
10607 +
10608 +
10609 +# Name of the executable.
10610 +as_me=`$as_basename "$0" ||
10611 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10612 + X"$0" : 'X\(//\)$' \| \
10613 + X"$0" : 'X\(/\)$' \| \
10614 + . : '\(.\)' 2>/dev/null ||
10615 +echo X/"$0" |
10616 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10617 + /^X\/\(\/\/\)$/{ s//\1/; q; }
10618 + /^X\/\(\/\).*/{ s//\1/; q; }
10619 + s/.*/./; q'`
10620 +
10621 +
10622 +# PATH needs CR, and LINENO needs CR and PATH.
10623 +# Avoid depending upon Character Ranges.
10624 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10625 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10626 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10627 +as_cr_digits='0123456789'
10628 +as_cr_alnum=$as_cr_Letters$as_cr_digits
10629 +
10630 +# The user is always right.
10631 +if test "${PATH_SEPARATOR+set}" != set; then
10632 + echo "#! /bin/sh" >conf$$.sh
10633 + echo "exit 0" >>conf$$.sh
10634 + chmod +x conf$$.sh
10635 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10636 + PATH_SEPARATOR=';'
10637 + else
10638 + PATH_SEPARATOR=:
10639 + fi
10640 + rm -f conf$$.sh
10641 +fi
10642 +
10643 +
10644 + as_lineno_1=$LINENO
10645 + as_lineno_2=$LINENO
10646 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10647 + test "x$as_lineno_1" != "x$as_lineno_2" &&
10648 + test "x$as_lineno_3" = "x$as_lineno_2" || {
10649 + # Find who we are. Look in the path if we contain no path at all
10650 + # relative or not.
10651 + case $0 in
10652 + *[\\/]* ) as_myself=$0 ;;
10653 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 +for as_dir in $PATH
10655 +do
10656 + IFS=$as_save_IFS
10657 + test -z "$as_dir" && as_dir=.
10658 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10659 +done
10660 +
10661 + ;;
10662 + esac
10663 + # We did not find ourselves, most probably we were run as `sh COMMAND'
10664 + # in which case we are not to be found in the path.
10665 + if test "x$as_myself" = x; then
10666 + as_myself=$0
10667 + fi
10668 + if test ! -f "$as_myself"; then
10669 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
10670 + { (exit 1); exit 1; }; }
10671 + fi
10672 + case $CONFIG_SHELL in
10673 + '')
10674 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10676 +do
10677 + IFS=$as_save_IFS
10678 + test -z "$as_dir" && as_dir=.
10679 + for as_base in sh bash ksh sh5; do
10680 + case $as_dir in
10681 + /*)
10682 + if ("$as_dir/$as_base" -c '
10683 + as_lineno_1=$LINENO
10684 + as_lineno_2=$LINENO
10685 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10686 + test "x$as_lineno_1" != "x$as_lineno_2" &&
10687 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10688 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10689 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10690 + CONFIG_SHELL=$as_dir/$as_base
10691 + export CONFIG_SHELL
10692 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10693 + fi;;
10694 + esac
10695 + done
10696 +done
10697 +;;
10698 + esac
10699 +
10700 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10701 + # uniformly replaced by the line number. The first 'sed' inserts a
10702 + # line-number line before each line; the second 'sed' does the real
10703 + # work. The second script uses 'N' to pair each line-number line
10704 + # with the numbered line, and appends trailing '-' during
10705 + # substitution so that $LINENO is not a special case at line end.
10706 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10707 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10708 + sed '=' <$as_myself |
10709 + sed '
10710 + N
10711 + s,$,-,
10712 + : loop
10713 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10714 + t loop
10715 + s,-$,,
10716 + s,^['$as_cr_digits']*\n,,
10717 + ' >$as_me.lineno &&
10718 + chmod +x $as_me.lineno ||
10719 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10720 + { (exit 1); exit 1; }; }
10721 +
10722 + # Don't try to exec as it changes $[0], causing all sort of problems
10723 + # (the dirname of $[0] is not the place where we might find the
10724 + # original and so on. Autoconf is especially sensible to this).
10725 + . ./$as_me.lineno
10726 + # Exit status is that of the last command.
10727 + exit
10728 +}
10729 +
10730 +
10731 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10732 + *c*,-n*) ECHO_N= ECHO_C='
10733 +' ECHO_T=' ' ;;
10734 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10735 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10736 +esac
10737 +
10738 +if expr a : '\(a\)' >/dev/null 2>&1; then
10739 + as_expr=expr
10740 +else
10741 + as_expr=false
10742 +fi
10743 +
10744 +rm -f conf$$ conf$$.exe conf$$.file
10745 +echo >conf$$.file
10746 +if ln -s conf$$.file conf$$ 2>/dev/null; then
10747 + # We could just check for DJGPP; but this test a) works b) is more generic
10748 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10749 + if test -f conf$$.exe; then
10750 + # Don't use ln at all; we don't have any links
10751 + as_ln_s='cp -p'
10752 + else
10753 + as_ln_s='ln -s'
10754 + fi
10755 +elif ln conf$$.file conf$$ 2>/dev/null; then
10756 + as_ln_s=ln
10757 +else
10758 + as_ln_s='cp -p'
10759 +fi
10760 +rm -f conf$$ conf$$.exe conf$$.file
10761 +
10762 +if mkdir -p . 2>/dev/null; then
10763 + as_mkdir_p=:
10764 +else
10765 + test -d ./-p && rmdir ./-p
10766 + as_mkdir_p=false
10767 +fi
10768 +
10769 +as_executable_p="test -f"
10770 +
10771 +# Sed expression to map a string onto a valid CPP name.
10772 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10773 +
10774 +# Sed expression to map a string onto a valid variable name.
10775 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10776 +
10777 +
10778 +# IFS
10779 +# We need space, tab and new line, in precisely that order.
10780 +as_nl='
10781 +'
10782 +IFS=" $as_nl"
10783 +
10784 +# CDPATH.
10785 +$as_unset CDPATH
10786 +
10787 +
10788 +
10789 +# Check that we are running under the correct shell.
10790 +SHELL=${CONFIG_SHELL-/bin/sh}
10791 +
10792 +case X$ECHO in
10793 +X*--fallback-echo)
10794 + # Remove one level of quotation (which was required for Make).
10795 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
10796 + ;;
10797 +esac
10798 +
10799 +echo=${ECHO-echo}
10800 +if test "X$1" = X--no-reexec; then
10801 + # Discard the --no-reexec flag, and continue.
10802 + shift
10803 +elif test "X$1" = X--fallback-echo; then
10804 + # Avoid inline document here, it may be left over
10805 + :
10806 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
10807 + # Yippee, $echo works!
10808 + :
10809 +else
10810 + # Restart under the correct shell.
10811 + exec $SHELL "$0" --no-reexec ${1+"$@"}
10812 +fi
10813 +
10814 +if test "X$1" = X--fallback-echo; then
10815 + # used as fallback echo
10816 + shift
10817 + cat <<EOF
10818 +$*
10819 +EOF
10820 + exit 0
10821 +fi
10822 +
10823 +# The HP-UX ksh and POSIX shell print the target directory to stdout
10824 +# if CDPATH is set.
10825 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10826 +
10827 +if test -z "$ECHO"; then
10828 +if test "X${echo_test_string+set}" != Xset; then
10829 +# find a string as large as possible, as long as the shell can cope with it
10830 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10831 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10832 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
10833 + echo_test_string=`eval $cmd` &&
10834 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10835 + then
10836 + break
10837 + fi
10838 + done
10839 +fi
10840 +
10841 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10842 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10843 + test "X$echo_testing_string" = "X$echo_test_string"; then
10844 + :
10845 +else
10846 + # The Solaris, AIX, and Digital Unix default echo programs unquote
10847 + # backslashes. This makes it impossible to quote backslashes using
10848 + # echo "$something" | sed 's/\\/\\\\/g'
10849 + #
10850 + # So, first we look for a working echo in the user's PATH.
10851 +
10852 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10853 + for dir in $PATH /usr/ucb; do
10854 + IFS="$lt_save_ifs"
10855 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
10856 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
10857 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
10858 + test "X$echo_testing_string" = "X$echo_test_string"; then
10859 + echo="$dir/echo"
10860 + break
10861 + fi
10862 + done
10863 + IFS="$lt_save_ifs"
10864 +
10865 + if test "X$echo" = Xecho; then
10866 + # We didn't find a better echo, so look for alternatives.
10867 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10868 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
10869 + test "X$echo_testing_string" = "X$echo_test_string"; then
10870 + # This shell has a builtin print -r that does the trick.
10871 + echo='print -r'
10872 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
10873 + test "X$CONFIG_SHELL" != X/bin/ksh; then
10874 + # If we have ksh, try running configure again with it.
10875 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10876 + export ORIGINAL_CONFIG_SHELL
10877 + CONFIG_SHELL=/bin/ksh
10878 + export CONFIG_SHELL
10879 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
10880 + else
10881 + # Try using printf.
10882 + echo='printf %s\n'
10883 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10884 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10885 + test "X$echo_testing_string" = "X$echo_test_string"; then
10886 + # Cool, printf works
10887 + :
10888 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10889 + test "X$echo_testing_string" = 'X\t' &&
10890 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10891 + test "X$echo_testing_string" = "X$echo_test_string"; then
10892 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
10893 + export CONFIG_SHELL
10894 + SHELL="$CONFIG_SHELL"
10895 + export SHELL
10896 + echo="$CONFIG_SHELL $0 --fallback-echo"
10897 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10898 + test "X$echo_testing_string" = 'X\t' &&
10899 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10900 + test "X$echo_testing_string" = "X$echo_test_string"; then
10901 + echo="$CONFIG_SHELL $0 --fallback-echo"
10902 + else
10903 + # maybe with a smaller string...
10904 + prev=:
10905 +
10906 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
10907 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
10908 + then
10909 + break
10910 + fi
10911 + prev="$cmd"
10912 + done
10913 +
10914 + if test "$prev" != 'sed 50q "$0"'; then
10915 + echo_test_string=`eval $prev`
10916 + export echo_test_string
10917 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
10918 + else
10919 + # Oops. We lost completely, so just stick with echo.
10920 + echo=echo
10921 + fi
10922 + fi
10923 + fi
10924 + fi
10925 +fi
10926 +fi
10927 +
10928 +# Copy echo and quote the copy suitably for passing to libtool from
10929 +# the Makefile, instead of quoting the original, which is used later.
10930 +ECHO=$echo
10931 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
10932 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
10933 +fi
10934 +
10935 +
10936 +
10937 +
10938 +tagnames=${tagnames+${tagnames},}CXX
10939 +
10940 +tagnames=${tagnames+${tagnames},}F77
10941 +
10942 +# Name of the host.
10943 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10944 +# so uname gets run too.
10945 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
10946 +
10947 +exec 6>&1
10948 +
10949 +#
10950 +# Initializations.
10951 +#
10952 +ac_default_prefix=/usr/local
10953 +ac_config_libobj_dir=.
10954 +cross_compiling=no
10955 +subdirs=
10956 +MFLAGS=
10957 +MAKEFLAGS=
10958 +SHELL=${CONFIG_SHELL-/bin/sh}
10959 +
10960 +# Maximum number of lines to put in a shell here document.
10961 +# This variable seems obsolete. It should probably be removed, and
10962 +# only ac_max_sed_lines should be used.
10963 +: ${ac_max_here_lines=38}
10964 +
10965 +# Identity of this package.
10966 +PACKAGE_NAME='Autotoolized Lua'
10967 +PACKAGE_TARNAME='lua-at'
10968 +PACKAGE_VERSION='5.1.3'
10969 +PACKAGE_STRING='Autotoolized Lua 5.1.3'
10970 +PACKAGE_BUGREPORT=''
10971 +
10972 +ac_unique_file="src/lapi.c"
10973 +# Factoring default headers for most tests.
10974 +ac_includes_default="\
10975 +#include <stdio.h>
10976 +#if HAVE_SYS_TYPES_H
10977 +# include <sys/types.h>
10978 +#endif
10979 +#if HAVE_SYS_STAT_H
10980 +# include <sys/stat.h>
10981 +#endif
10982 +#if STDC_HEADERS
10983 +# include <stdlib.h>
10984 +# include <stddef.h>
10985 +#else
10986 +# if HAVE_STDLIB_H
10987 +# include <stdlib.h>
10988 +# endif
10989 +#endif
10990 +#if HAVE_STRING_H
10991 +# if !STDC_HEADERS && HAVE_MEMORY_H
10992 +# include <memory.h>
10993 +# endif
10994 +# include <string.h>
10995 +#endif
10996 +#if HAVE_STRINGS_H
10997 +# include <strings.h>
10998 +#endif
10999 +#if HAVE_INTTYPES_H
11000 +# include <inttypes.h>
11001 +#else
11002 +# if HAVE_STDINT_H
11003 +# include <stdint.h>
11004 +# endif
11005 +#endif
11006 +#if HAVE_UNISTD_H
11007 +# include <unistd.h>
11008 +#endif"
11009 +
11010 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL READLINE_DEFS POSIX_DEFS LUA_DL_DEFS LUA_BUILD_AS_DLL_DEFS LUA_LIBS LIBOBJS LTLIBOBJS'
11011 +ac_subst_files=''
11012 +
11013 +# Initialize some variables set by options.
11014 +ac_init_help=
11015 +ac_init_version=false
11016 +# The variables have the same names as the options, with
11017 +# dashes changed to underlines.
11018 +cache_file=/dev/null
11019 +exec_prefix=NONE
11020 +no_create=
11021 +no_recursion=
11022 +prefix=NONE
11023 +program_prefix=NONE
11024 +program_suffix=NONE
11025 +program_transform_name=s,x,x,
11026 +silent=
11027 +site=
11028 +srcdir=
11029 +verbose=
11030 +x_includes=NONE
11031 +x_libraries=NONE
11032 +
11033 +# Installation directory options.
11034 +# These are left unexpanded so users can "make install exec_prefix=/foo"
11035 +# and all the variables that are supposed to be based on exec_prefix
11036 +# by default will actually change.
11037 +# Use braces instead of parens because sh, perl, etc. also accept them.
11038 +bindir='${exec_prefix}/bin'
11039 +sbindir='${exec_prefix}/sbin'
11040 +libexecdir='${exec_prefix}/libexec'
11041 +datadir='${prefix}/share'
11042 +sysconfdir='${prefix}/etc'
11043 +sharedstatedir='${prefix}/com'
11044 +localstatedir='${prefix}/var'
11045 +libdir='${exec_prefix}/lib'
11046 +includedir='${prefix}/include'
11047 +oldincludedir='/usr/include'
11048 +infodir='${prefix}/info'
11049 +mandir='${prefix}/man'
11050 +
11051 +ac_prev=
11052 +for ac_option
11053 +do
11054 + # If the previous option needs an argument, assign it.
11055 + if test -n "$ac_prev"; then
11056 + eval "$ac_prev=\$ac_option"
11057 + ac_prev=
11058 + continue
11059 + fi
11060 +
11061 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
11062 +
11063 + # Accept the important Cygnus configure options, so we can diagnose typos.
11064 +
11065 + case $ac_option in
11066 +
11067 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
11068 + ac_prev=bindir ;;
11069 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
11070 + bindir=$ac_optarg ;;
11071 +
11072 + -build | --build | --buil | --bui | --bu)
11073 + ac_prev=build_alias ;;
11074 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
11075 + build_alias=$ac_optarg ;;
11076 +
11077 + -cache-file | --cache-file | --cache-fil | --cache-fi \
11078 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11079 + ac_prev=cache_file ;;
11080 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11081 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11082 + cache_file=$ac_optarg ;;
11083 +
11084 + --config-cache | -C)
11085 + cache_file=config.cache ;;
11086 +
11087 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
11088 + ac_prev=datadir ;;
11089 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
11090 + | --da=*)
11091 + datadir=$ac_optarg ;;
11092 +
11093 + -disable-* | --disable-*)
11094 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
11095 + # Reject names that are not valid shell variable names.
11096 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11097 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
11098 + { (exit 1); exit 1; }; }
11099 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
11100 + eval "enable_$ac_feature=no" ;;
11101 +
11102 + -enable-* | --enable-*)
11103 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
11104 + # Reject names that are not valid shell variable names.
11105 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11106 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
11107 + { (exit 1); exit 1; }; }
11108 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
11109 + case $ac_option in
11110 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
11111 + *) ac_optarg=yes ;;
11112 + esac
11113 + eval "enable_$ac_feature='$ac_optarg'" ;;
11114 +
11115 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
11116 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
11117 + | --exec | --exe | --ex)
11118 + ac_prev=exec_prefix ;;
11119 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
11120 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
11121 + | --exec=* | --exe=* | --ex=*)
11122 + exec_prefix=$ac_optarg ;;
11123 +
11124 + -gas | --gas | --ga | --g)
11125 + # Obsolete; use --with-gas.
11126 + with_gas=yes ;;
11127 +
11128 + -help | --help | --hel | --he | -h)
11129 + ac_init_help=long ;;
11130 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
11131 + ac_init_help=recursive ;;
11132 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
11133 + ac_init_help=short ;;
11134 +
11135 + -host | --host | --hos | --ho)
11136 + ac_prev=host_alias ;;
11137 + -host=* | --host=* | --hos=* | --ho=*)
11138 + host_alias=$ac_optarg ;;
11139 +
11140 + -includedir | --includedir | --includedi | --included | --include \
11141 + | --includ | --inclu | --incl | --inc)
11142 + ac_prev=includedir ;;
11143 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
11144 + | --includ=* | --inclu=* | --incl=* | --inc=*)
11145 + includedir=$ac_optarg ;;
11146 +
11147 + -infodir | --infodir | --infodi | --infod | --info | --inf)
11148 + ac_prev=infodir ;;
11149 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
11150 + infodir=$ac_optarg ;;
11151 +
11152 + -libdir | --libdir | --libdi | --libd)
11153 + ac_prev=libdir ;;
11154 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
11155 + libdir=$ac_optarg ;;
11156 +
11157 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
11158 + | --libexe | --libex | --libe)
11159 + ac_prev=libexecdir ;;
11160 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
11161 + | --libexe=* | --libex=* | --libe=*)
11162 + libexecdir=$ac_optarg ;;
11163 +
11164 + -localstatedir | --localstatedir | --localstatedi | --localstated \
11165 + | --localstate | --localstat | --localsta | --localst \
11166 + | --locals | --local | --loca | --loc | --lo)
11167 + ac_prev=localstatedir ;;
11168 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
11169 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
11170 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
11171 + localstatedir=$ac_optarg ;;
11172 +
11173 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
11174 + ac_prev=mandir ;;
11175 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
11176 + mandir=$ac_optarg ;;
11177 +
11178 + -nfp | --nfp | --nf)
11179 + # Obsolete; use --without-fp.
11180 + with_fp=no ;;
11181 +
11182 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
11183 + | --no-cr | --no-c | -n)
11184 + no_create=yes ;;
11185 +
11186 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
11187 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
11188 + no_recursion=yes ;;
11189 +
11190 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
11191 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
11192 + | --oldin | --oldi | --old | --ol | --o)
11193 + ac_prev=oldincludedir ;;
11194 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
11195 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
11196 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
11197 + oldincludedir=$ac_optarg ;;
11198 +
11199 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11200 + ac_prev=prefix ;;
11201 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11202 + prefix=$ac_optarg ;;
11203 +
11204 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
11205 + | --program-pre | --program-pr | --program-p)
11206 + ac_prev=program_prefix ;;
11207 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
11208 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
11209 + program_prefix=$ac_optarg ;;
11210 +
11211 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
11212 + | --program-suf | --program-su | --program-s)
11213 + ac_prev=program_suffix ;;
11214 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
11215 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
11216 + program_suffix=$ac_optarg ;;
11217 +
11218 + -program-transform-name | --program-transform-name \
11219 + | --program-transform-nam | --program-transform-na \
11220 + | --program-transform-n | --program-transform- \
11221 + | --program-transform | --program-transfor \
11222 + | --program-transfo | --program-transf \
11223 + | --program-trans | --program-tran \
11224 + | --progr-tra | --program-tr | --program-t)
11225 + ac_prev=program_transform_name ;;
11226 + -program-transform-name=* | --program-transform-name=* \
11227 + | --program-transform-nam=* | --program-transform-na=* \
11228 + | --program-transform-n=* | --program-transform-=* \
11229 + | --program-transform=* | --program-transfor=* \
11230 + | --program-transfo=* | --program-transf=* \
11231 + | --program-trans=* | --program-tran=* \
11232 + | --progr-tra=* | --program-tr=* | --program-t=*)
11233 + program_transform_name=$ac_optarg ;;
11234 +
11235 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11236 + | -silent | --silent | --silen | --sile | --sil)
11237 + silent=yes ;;
11238 +
11239 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11240 + ac_prev=sbindir ;;
11241 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11242 + | --sbi=* | --sb=*)
11243 + sbindir=$ac_optarg ;;
11244 +
11245 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
11246 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11247 + | --sharedst | --shareds | --shared | --share | --shar \
11248 + | --sha | --sh)
11249 + ac_prev=sharedstatedir ;;
11250 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11251 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11252 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11253 + | --sha=* | --sh=*)
11254 + sharedstatedir=$ac_optarg ;;
11255 +
11256 + -site | --site | --sit)
11257 + ac_prev=site ;;
11258 + -site=* | --site=* | --sit=*)
11259 + site=$ac_optarg ;;
11260 +
11261 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11262 + ac_prev=srcdir ;;
11263 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11264 + srcdir=$ac_optarg ;;
11265 +
11266 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11267 + | --syscon | --sysco | --sysc | --sys | --sy)
11268 + ac_prev=sysconfdir ;;
11269 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11270 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11271 + sysconfdir=$ac_optarg ;;
11272 +
11273 + -target | --target | --targe | --targ | --tar | --ta | --t)
11274 + ac_prev=target_alias ;;
11275 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11276 + target_alias=$ac_optarg ;;
11277 +
11278 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
11279 + verbose=yes ;;
11280 +
11281 + -version | --version | --versio | --versi | --vers | -V)
11282 + ac_init_version=: ;;
11283 +
11284 + -with-* | --with-*)
11285 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11286 + # Reject names that are not valid shell variable names.
11287 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11288 + { echo "$as_me: error: invalid package name: $ac_package" >&2
11289 + { (exit 1); exit 1; }; }
11290 + ac_package=`echo $ac_package| sed 's/-/_/g'`
11291 + case $ac_option in
11292 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
11293 + *) ac_optarg=yes ;;
11294 + esac
11295 + eval "with_$ac_package='$ac_optarg'" ;;
11296 +
11297 + -without-* | --without-*)
11298 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11299 + # Reject names that are not valid shell variable names.
11300 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11301 + { echo "$as_me: error: invalid package name: $ac_package" >&2
11302 + { (exit 1); exit 1; }; }
11303 + ac_package=`echo $ac_package | sed 's/-/_/g'`
11304 + eval "with_$ac_package=no" ;;
11305 +
11306 + --x)
11307 + # Obsolete; use --with-x.
11308 + with_x=yes ;;
11309 +
11310 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11311 + | --x-incl | --x-inc | --x-in | --x-i)
11312 + ac_prev=x_includes ;;
11313 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11314 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11315 + x_includes=$ac_optarg ;;
11316 +
11317 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
11318 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11319 + ac_prev=x_libraries ;;
11320 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11321 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11322 + x_libraries=$ac_optarg ;;
11323 +
11324 + -*) { echo "$as_me: error: unrecognized option: $ac_option
11325 +Try \`$0 --help' for more information." >&2
11326 + { (exit 1); exit 1; }; }
11327 + ;;
11328 +
11329 + *=*)
11330 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11331 + # Reject names that are not valid shell variable names.
11332 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
11333 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11334 + { (exit 1); exit 1; }; }
11335 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
11336 + eval "$ac_envvar='$ac_optarg'"
11337 + export $ac_envvar ;;
11338 +
11339 + *)
11340 + # FIXME: should be removed in autoconf 3.0.
11341 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11342 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11343 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11344 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11345 + ;;
11346 +
11347 + esac
11348 +done
11349 +
11350 +if test -n "$ac_prev"; then
11351 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11352 + { echo "$as_me: error: missing argument to $ac_option" >&2
11353 + { (exit 1); exit 1; }; }
11354 +fi
11355 +
11356 +# Be sure to have absolute paths.
11357 +for ac_var in exec_prefix prefix
11358 +do
11359 + eval ac_val=$`echo $ac_var`
11360 + case $ac_val in
11361 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
11362 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
11363 + { (exit 1); exit 1; }; };;
11364 + esac
11365 +done
11366 +
11367 +# Be sure to have absolute paths.
11368 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
11369 + localstatedir libdir includedir oldincludedir infodir mandir
11370 +do
11371 + eval ac_val=$`echo $ac_var`
11372 + case $ac_val in
11373 + [\\/$]* | ?:[\\/]* ) ;;
11374 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
11375 + { (exit 1); exit 1; }; };;
11376 + esac
11377 +done
11378 +
11379 +# There might be people who depend on the old broken behavior: `$host'
11380 +# used to hold the argument of --host etc.
11381 +# FIXME: To remove some day.
11382 +build=$build_alias
11383 +host=$host_alias
11384 +target=$target_alias
11385 +
11386 +# FIXME: To remove some day.
11387 +if test "x$host_alias" != x; then
11388 + if test "x$build_alias" = x; then
11389 + cross_compiling=maybe
11390 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
11391 + If a cross compiler is detected then cross compile mode will be used." >&2
11392 + elif test "x$build_alias" != "x$host_alias"; then
11393 + cross_compiling=yes
11394 + fi
11395 +fi
11396 +
11397 +ac_tool_prefix=
11398 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
11399 +
11400 +test "$silent" = yes && exec 6>/dev/null
11401 +
11402 +
11403 +# Find the source files, if location was not specified.
11404 +if test -z "$srcdir"; then
11405 + ac_srcdir_defaulted=yes
11406 + # Try the directory containing this script, then its parent.
11407 + ac_confdir=`(dirname "$0") 2>/dev/null ||
11408 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11409 + X"$0" : 'X\(//\)[^/]' \| \
11410 + X"$0" : 'X\(//\)$' \| \
11411 + X"$0" : 'X\(/\)' \| \
11412 + . : '\(.\)' 2>/dev/null ||
11413 +echo X"$0" |
11414 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11415 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11416 + /^X\(\/\/\)$/{ s//\1/; q; }
11417 + /^X\(\/\).*/{ s//\1/; q; }
11418 + s/.*/./; q'`
11419 + srcdir=$ac_confdir
11420 + if test ! -r "$srcdir/$ac_unique_file"; then
11421 + srcdir=..
11422 + fi
11423 +else
11424 + ac_srcdir_defaulted=no
11425 +fi
11426 +if test ! -r "$srcdir/$ac_unique_file"; then
11427 + if test "$ac_srcdir_defaulted" = yes; then
11428 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
11429 + { (exit 1); exit 1; }; }
11430 + else
11431 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
11432 + { (exit 1); exit 1; }; }
11433 + fi
11434 +fi
11435 +(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
11436 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
11437 + { (exit 1); exit 1; }; }
11438 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
11439 +ac_env_build_alias_set=${build_alias+set}
11440 +ac_env_build_alias_value=$build_alias
11441 +ac_cv_env_build_alias_set=${build_alias+set}
11442 +ac_cv_env_build_alias_value=$build_alias
11443 +ac_env_host_alias_set=${host_alias+set}
11444 +ac_env_host_alias_value=$host_alias
11445 +ac_cv_env_host_alias_set=${host_alias+set}
11446 +ac_cv_env_host_alias_value=$host_alias
11447 +ac_env_target_alias_set=${target_alias+set}
11448 +ac_env_target_alias_value=$target_alias
11449 +ac_cv_env_target_alias_set=${target_alias+set}
11450 +ac_cv_env_target_alias_value=$target_alias
11451 +ac_env_CC_set=${CC+set}
11452 +ac_env_CC_value=$CC
11453 +ac_cv_env_CC_set=${CC+set}
11454 +ac_cv_env_CC_value=$CC
11455 +ac_env_CFLAGS_set=${CFLAGS+set}
11456 +ac_env_CFLAGS_value=$CFLAGS
11457 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
11458 +ac_cv_env_CFLAGS_value=$CFLAGS
11459 +ac_env_LDFLAGS_set=${LDFLAGS+set}
11460 +ac_env_LDFLAGS_value=$LDFLAGS
11461 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
11462 +ac_cv_env_LDFLAGS_value=$LDFLAGS
11463 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
11464 +ac_env_CPPFLAGS_value=$CPPFLAGS
11465 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
11466 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
11467 +ac_env_CPP_set=${CPP+set}
11468 +ac_env_CPP_value=$CPP
11469 +ac_cv_env_CPP_set=${CPP+set}
11470 +ac_cv_env_CPP_value=$CPP
11471 +ac_env_CXX_set=${CXX+set}
11472 +ac_env_CXX_value=$CXX
11473 +ac_cv_env_CXX_set=${CXX+set}
11474 +ac_cv_env_CXX_value=$CXX
11475 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
11476 +ac_env_CXXFLAGS_value=$CXXFLAGS
11477 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
11478 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
11479 +ac_env_CXXCPP_set=${CXXCPP+set}
11480 +ac_env_CXXCPP_value=$CXXCPP
11481 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
11482 +ac_cv_env_CXXCPP_value=$CXXCPP
11483 +ac_env_F77_set=${F77+set}
11484 +ac_env_F77_value=$F77
11485 +ac_cv_env_F77_set=${F77+set}
11486 +ac_cv_env_F77_value=$F77
11487 +ac_env_FFLAGS_set=${FFLAGS+set}
11488 +ac_env_FFLAGS_value=$FFLAGS
11489 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
11490 +ac_cv_env_FFLAGS_value=$FFLAGS
11491 +
11492 +#
11493 +# Report the --help message.
11494 +#
11495 +if test "$ac_init_help" = "long"; then
11496 + # Omit some internal or obsolete options to make the list less imposing.
11497 + # This message is too long to be a string in the A/UX 3.1 sh.
11498 + cat <<_ACEOF
11499 +\`configure' configures Autotoolized Lua 5.1.3 to adapt to many kinds of systems.
11500 +
11501 +Usage: $0 [OPTION]... [VAR=VALUE]...
11502 +
11503 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
11504 +VAR=VALUE. See below for descriptions of some of the useful variables.
11505 +
11506 +Defaults for the options are specified in brackets.
11507 +
11508 +Configuration:
11509 + -h, --help display this help and exit
11510 + --help=short display options specific to this package
11511 + --help=recursive display the short help of all the included packages
11512 + -V, --version display version information and exit
11513 + -q, --quiet, --silent do not print \`checking...' messages
11514 + --cache-file=FILE cache test results in FILE [disabled]
11515 + -C, --config-cache alias for \`--cache-file=config.cache'
11516 + -n, --no-create do not create output files
11517 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
11518 +
11519 +_ACEOF
11520 +
11521 + cat <<_ACEOF
11522 +Installation directories:
11523 + --prefix=PREFIX install architecture-independent files in PREFIX
11524 + [$ac_default_prefix]
11525 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
11526 + [PREFIX]
11527 +
11528 +By default, \`make install' will install all the files in
11529 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
11530 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
11531 +for instance \`--prefix=\$HOME'.
11532 +
11533 +For better control, use the options below.
11534 +
11535 +Fine tuning of the installation directories:
11536 + --bindir=DIR user executables [EPREFIX/bin]
11537 + --sbindir=DIR system admin executables [EPREFIX/sbin]
11538 + --libexecdir=DIR program executables [EPREFIX/libexec]
11539 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
11540 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
11541 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
11542 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
11543 + --libdir=DIR object code libraries [EPREFIX/lib]
11544 + --includedir=DIR C header files [PREFIX/include]
11545 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
11546 + --infodir=DIR info documentation [PREFIX/info]
11547 + --mandir=DIR man documentation [PREFIX/man]
11548 +_ACEOF
11549 +
11550 + cat <<\_ACEOF
11551 +
11552 +Program names:
11553 + --program-prefix=PREFIX prepend PREFIX to installed program names
11554 + --program-suffix=SUFFIX append SUFFIX to installed program names
11555 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
11556 +
11557 +System types:
11558 + --build=BUILD configure for building on BUILD [guessed]
11559 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
11560 +_ACEOF
11561 +fi
11562 +
11563 +if test -n "$ac_init_help"; then
11564 + case $ac_init_help in
11565 + short | recursive ) echo "Configuration of Autotoolized Lua 5.1.3:";;
11566 + esac
11567 + cat <<\_ACEOF
11568 +
11569 +Optional Features:
11570 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
11571 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
11572 + --disable-dependency-tracking speeds up one-time build
11573 + --enable-dependency-tracking do not reject slow dependency extractors
11574 + --enable-shared[=PKGS]
11575 + build shared libraries [default=yes]
11576 + --enable-static[=PKGS]
11577 + build static libraries [default=yes]
11578 + --enable-fast-install[=PKGS]
11579 + optimize for fast installation [default=yes]
11580 + --disable-libtool-lock avoid locking (might break parallel builds)
11581 +
11582 +Optional Packages:
11583 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
11584 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
11585 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
11586 + --with-pic try to use only PIC/non-PIC objects [default=use
11587 + both]
11588 + --with-tags[=TAGS]
11589 + include additional configurations [automatic]
11590 + --with-readline Use readline for interpreter input [default=yes]
11591 +
11592 +Some influential environment variables:
11593 + CC C compiler command
11594 + CFLAGS C compiler flags
11595 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
11596 + nonstandard directory <lib dir>
11597 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
11598 + headers in a nonstandard directory <include dir>
11599 + CPP C preprocessor
11600 + CXX C++ compiler command
11601 + CXXFLAGS C++ compiler flags
11602 + CXXCPP C++ preprocessor
11603 + F77 Fortran 77 compiler command
11604 + FFLAGS Fortran 77 compiler flags
11605 +
11606 +Use these variables to override the choices made by `configure' or to help
11607 +it to find libraries and programs with nonstandard names/locations.
11608 +
11609 +_ACEOF
11610 +fi
11611 +
11612 +if test "$ac_init_help" = "recursive"; then
11613 + # If there are subdirs, report their specific --help.
11614 + ac_popdir=`pwd`
11615 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
11616 + test -d $ac_dir || continue
11617 + ac_builddir=.
11618 +
11619 +if test "$ac_dir" != .; then
11620 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11621 + # A "../" for each directory in $ac_dir_suffix.
11622 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11623 +else
11624 + ac_dir_suffix= ac_top_builddir=
11625 +fi
11626 +
11627 +case $srcdir in
11628 + .) # No --srcdir option. We are building in place.
11629 + ac_srcdir=.
11630 + if test -z "$ac_top_builddir"; then
11631 + ac_top_srcdir=.
11632 + else
11633 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11634 + fi ;;
11635 + [\\/]* | ?:[\\/]* ) # Absolute path.
11636 + ac_srcdir=$srcdir$ac_dir_suffix;
11637 + ac_top_srcdir=$srcdir ;;
11638 + *) # Relative path.
11639 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11640 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
11641 +esac
11642 +
11643 +# Do not use `cd foo && pwd` to compute absolute paths, because
11644 +# the directories may not exist.
11645 +case `pwd` in
11646 +.) ac_abs_builddir="$ac_dir";;
11647 +*)
11648 + case "$ac_dir" in
11649 + .) ac_abs_builddir=`pwd`;;
11650 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11651 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11652 + esac;;
11653 +esac
11654 +case $ac_abs_builddir in
11655 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11656 +*)
11657 + case ${ac_top_builddir}. in
11658 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11659 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11660 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11661 + esac;;
11662 +esac
11663 +case $ac_abs_builddir in
11664 +.) ac_abs_srcdir=$ac_srcdir;;
11665 +*)
11666 + case $ac_srcdir in
11667 + .) ac_abs_srcdir=$ac_abs_builddir;;
11668 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11669 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11670 + esac;;
11671 +esac
11672 +case $ac_abs_builddir in
11673 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11674 +*)
11675 + case $ac_top_srcdir in
11676 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11677 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11678 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11679 + esac;;
11680 +esac
11681 +
11682 + cd $ac_dir
11683 + # Check for guested configure; otherwise get Cygnus style configure.
11684 + if test -f $ac_srcdir/configure.gnu; then
11685 + echo
11686 + $SHELL $ac_srcdir/configure.gnu --help=recursive
11687 + elif test -f $ac_srcdir/configure; then
11688 + echo
11689 + $SHELL $ac_srcdir/configure --help=recursive
11690 + elif test -f $ac_srcdir/configure.ac ||
11691 + test -f $ac_srcdir/configure.in; then
11692 + echo
11693 + $ac_configure --help
11694 + else
11695 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11696 + fi
11697 + cd $ac_popdir
11698 + done
11699 +fi
11700 +
11701 +test -n "$ac_init_help" && exit 0
11702 +if $ac_init_version; then
11703 + cat <<\_ACEOF
11704 +Autotoolized Lua configure 5.1.3
11705 +generated by GNU Autoconf 2.59
11706 +
11707 +Copyright (C) 2003 Free Software Foundation, Inc.
11708 +This configure script is free software; the Free Software Foundation
11709 +gives unlimited permission to copy, distribute and modify it.
11710 +_ACEOF
11711 + exit 0
11712 +fi
11713 +exec 5>config.log
11714 +cat >&5 <<_ACEOF
11715 +This file contains any messages produced by compilers while
11716 +running configure, to aid debugging if configure makes a mistake.
11717 +
11718 +It was created by Autotoolized Lua $as_me 5.1.3, which was
11719 +generated by GNU Autoconf 2.59. Invocation command line was
11720 +
11721 + $ $0 $@
11722 +
11723 +_ACEOF
11724 +{
11725 +cat <<_ASUNAME
11726 +## --------- ##
11727 +## Platform. ##
11728 +## --------- ##
11729 +
11730 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
11731 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
11732 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
11733 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
11734 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
11735 +
11736 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
11737 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
11738 +
11739 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
11740 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
11741 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11742 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
11743 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
11744 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
11745 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
11746 +
11747 +_ASUNAME
11748 +
11749 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 +for as_dir in $PATH
11751 +do
11752 + IFS=$as_save_IFS
11753 + test -z "$as_dir" && as_dir=.
11754 + echo "PATH: $as_dir"
11755 +done
11756 +
11757 +} >&5
11758 +
11759 +cat >&5 <<_ACEOF
11760 +
11761 +
11762 +## ----------- ##
11763 +## Core tests. ##
11764 +## ----------- ##
11765 +
11766 +_ACEOF
11767 +
11768 +
11769 +# Keep a trace of the command line.
11770 +# Strip out --no-create and --no-recursion so they do not pile up.
11771 +# Strip out --silent because we don't want to record it for future runs.
11772 +# Also quote any args containing shell meta-characters.
11773 +# Make two passes to allow for proper duplicate-argument suppression.
11774 +ac_configure_args=
11775 +ac_configure_args0=
11776 +ac_configure_args1=
11777 +ac_sep=
11778 +ac_must_keep_next=false
11779 +for ac_pass in 1 2
11780 +do
11781 + for ac_arg
11782 + do
11783 + case $ac_arg in
11784 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
11785 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11786 + | -silent | --silent | --silen | --sile | --sil)
11787 + continue ;;
11788 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11789 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11790 + esac
11791 + case $ac_pass in
11792 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
11793 + 2)
11794 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
11795 + if test $ac_must_keep_next = true; then
11796 + ac_must_keep_next=false # Got value, back to normal.
11797 + else
11798 + case $ac_arg in
11799 + *=* | --config-cache | -C | -disable-* | --disable-* \
11800 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11801 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11802 + | -with-* | --with-* | -without-* | --without-* | --x)
11803 + case "$ac_configure_args0 " in
11804 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
11805 + esac
11806 + ;;
11807 + -* ) ac_must_keep_next=true ;;
11808 + esac
11809 + fi
11810 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
11811 + # Get rid of the leading space.
11812 + ac_sep=" "
11813 + ;;
11814 + esac
11815 + done
11816 +done
11817 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
11818 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
11819 +
11820 +# When interrupted or exit'd, cleanup temporary files, and complete
11821 +# config.log. We remove comments because anyway the quotes in there
11822 +# would cause problems or look ugly.
11823 +# WARNING: Be sure not to use single quotes in there, as some shells,
11824 +# such as our DU 5.0 friend, will then `close' the trap.
11825 +trap 'exit_status=$?
11826 + # Save into config.log some information that might help in debugging.
11827 + {
11828 + echo
11829 +
11830 + cat <<\_ASBOX
11831 +## ---------------- ##
11832 +## Cache variables. ##
11833 +## ---------------- ##
11834 +_ASBOX
11835 + echo
11836 + # The following way of writing the cache mishandles newlines in values,
11837 +{
11838 + (set) 2>&1 |
11839 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
11840 + *ac_space=\ *)
11841 + sed -n \
11842 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
11843 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
11844 + ;;
11845 + *)
11846 + sed -n \
11847 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11848 + ;;
11849 + esac;
11850 +}
11851 + echo
11852 +
11853 + cat <<\_ASBOX
11854 +## ----------------- ##
11855 +## Output variables. ##
11856 +## ----------------- ##
11857 +_ASBOX
11858 + echo
11859 + for ac_var in $ac_subst_vars
11860 + do
11861 + eval ac_val=$`echo $ac_var`
11862 + echo "$ac_var='"'"'$ac_val'"'"'"
11863 + done | sort
11864 + echo
11865 +
11866 + if test -n "$ac_subst_files"; then
11867 + cat <<\_ASBOX
11868 +## ------------- ##
11869 +## Output files. ##
11870 +## ------------- ##
11871 +_ASBOX
11872 + echo
11873 + for ac_var in $ac_subst_files
11874 + do
11875 + eval ac_val=$`echo $ac_var`
11876 + echo "$ac_var='"'"'$ac_val'"'"'"
11877 + done | sort
11878 + echo
11879 + fi
11880 +
11881 + if test -s confdefs.h; then
11882 + cat <<\_ASBOX
11883 +## ----------- ##
11884 +## confdefs.h. ##
11885 +## ----------- ##
11886 +_ASBOX
11887 + echo
11888 + sed "/^$/d" confdefs.h | sort
11889 + echo
11890 + fi
11891 + test "$ac_signal" != 0 &&
11892 + echo "$as_me: caught signal $ac_signal"
11893 + echo "$as_me: exit $exit_status"
11894 + } >&5
11895 + rm -f core *.core &&
11896 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
11897 + exit $exit_status
11898 + ' 0
11899 +for ac_signal in 1 2 13 15; do
11900 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11901 +done
11902 +ac_signal=0
11903 +
11904 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
11905 +rm -rf conftest* confdefs.h
11906 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
11907 +echo >confdefs.h
11908 +
11909 +# Predefined preprocessor variables.
11910 +
11911 +cat >>confdefs.h <<_ACEOF
11912 +#define PACKAGE_NAME "$PACKAGE_NAME"
11913 +_ACEOF
11914 +
11915 +
11916 +cat >>confdefs.h <<_ACEOF
11917 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
11918 +_ACEOF
11919 +
11920 +
11921 +cat >>confdefs.h <<_ACEOF
11922 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
11923 +_ACEOF
11924 +
11925 +
11926 +cat >>confdefs.h <<_ACEOF
11927 +#define PACKAGE_STRING "$PACKAGE_STRING"
11928 +_ACEOF
11929 +
11930 +
11931 +cat >>confdefs.h <<_ACEOF
11932 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
11933 +_ACEOF
11934 +
11935 +
11936 +# Let the site file select an alternate cache file if it wants to.
11937 +# Prefer explicitly selected file to automatically selected ones.
11938 +if test -z "$CONFIG_SITE"; then
11939 + if test "x$prefix" != xNONE; then
11940 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
11941 + else
11942 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
11943 + fi
11944 +fi
11945 +for ac_site_file in $CONFIG_SITE; do
11946 + if test -r "$ac_site_file"; then
11947 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11948 +echo "$as_me: loading site script $ac_site_file" >&6;}
11949 + sed 's/^/| /' "$ac_site_file" >&5
11950 + . "$ac_site_file"
11951 + fi
11952 +done
11953 +
11954 +if test -r "$cache_file"; then
11955 + # Some versions of bash will fail to source /dev/null (special
11956 + # files actually), so we avoid doing that.
11957 + if test -f "$cache_file"; then
11958 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11959 +echo "$as_me: loading cache $cache_file" >&6;}
11960 + case $cache_file in
11961 + [\\/]* | ?:[\\/]* ) . $cache_file;;
11962 + *) . ./$cache_file;;
11963 + esac
11964 + fi
11965 +else
11966 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
11967 +echo "$as_me: creating cache $cache_file" >&6;}
11968 + >$cache_file
11969 +fi
11970 +
11971 +# Check that the precious variables saved in the cache have kept the same
11972 +# value.
11973 +ac_cache_corrupted=false
11974 +for ac_var in `(set) 2>&1 |
11975 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11976 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
11977 + eval ac_new_set=\$ac_env_${ac_var}_set
11978 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
11979 + eval ac_new_val="\$ac_env_${ac_var}_value"
11980 + case $ac_old_set,$ac_new_set in
11981 + set,)
11982 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11983 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11984 + ac_cache_corrupted=: ;;
11985 + ,set)
11986 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11987 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11988 + ac_cache_corrupted=: ;;
11989 + ,);;
11990 + *)
11991 + if test "x$ac_old_val" != "x$ac_new_val"; then
11992 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11993 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11994 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
11995 +echo "$as_me: former value: $ac_old_val" >&2;}
11996 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
11997 +echo "$as_me: current value: $ac_new_val" >&2;}
11998 + ac_cache_corrupted=:
11999 + fi;;
12000 + esac
12001 + # Pass precious variables to config.status.
12002 + if test "$ac_new_set" = set; then
12003 + case $ac_new_val in
12004 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
12005 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
12006 + *) ac_arg=$ac_var=$ac_new_val ;;
12007 + esac
12008 + case " $ac_configure_args " in
12009 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
12010 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
12011 + esac
12012 + fi
12013 +done
12014 +if $ac_cache_corrupted; then
12015 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
12016 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12017 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
12018 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
12019 + { (exit 1); exit 1; }; }
12020 +fi
12021 +
12022 +ac_ext=c
12023 +ac_cpp='$CPP $CPPFLAGS'
12024 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12025 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12026 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12027 +
12028 +
12029 +
12030 +
12031 +
12032 +
12033 +
12034 +
12035 +
12036 +
12037 +
12038 +
12039 +
12040 +
12041 +
12042 +
12043 +
12044 +
12045 +
12046 +
12047 +
12048 +
12049 +
12050 +
12051 +
12052 +
12053 +
12054 +
12055 + ac_config_headers="$ac_config_headers config.h"
12056 +
12057 +
12058 +
12059 +am__api_version="1.9"
12060 +ac_aux_dir=
12061 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
12062 + if test -f $ac_dir/install-sh; then
12063 + ac_aux_dir=$ac_dir
12064 + ac_install_sh="$ac_aux_dir/install-sh -c"
12065 + break
12066 + elif test -f $ac_dir/install.sh; then
12067 + ac_aux_dir=$ac_dir
12068 + ac_install_sh="$ac_aux_dir/install.sh -c"
12069 + break
12070 + elif test -f $ac_dir/shtool; then
12071 + ac_aux_dir=$ac_dir
12072 + ac_install_sh="$ac_aux_dir/shtool install -c"
12073 + break
12074 + fi
12075 +done
12076 +if test -z "$ac_aux_dir"; then
12077 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
12078 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
12079 + { (exit 1); exit 1; }; }
12080 +fi
12081 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
12082 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
12083 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
12084 +
12085 +# Find a good install program. We prefer a C program (faster),
12086 +# so one script is as good as another. But avoid the broken or
12087 +# incompatible versions:
12088 +# SysV /etc/install, /usr/sbin/install
12089 +# SunOS /usr/etc/install
12090 +# IRIX /sbin/install
12091 +# AIX /bin/install
12092 +# AmigaOS /C/install, which installs bootblocks on floppy discs
12093 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12094 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12095 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12096 +# OS/2's system install, which has a completely different semantic
12097 +# ./install, which can be erroneously created by make from ./install.sh.
12098 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12099 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12100 +if test -z "$INSTALL"; then
12101 +if test "${ac_cv_path_install+set}" = set; then
12102 + echo $ECHO_N "(cached) $ECHO_C" >&6
12103 +else
12104 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 +for as_dir in $PATH
12106 +do
12107 + IFS=$as_save_IFS
12108 + test -z "$as_dir" && as_dir=.
12109 + # Account for people who put trailing slashes in PATH elements.
12110 +case $as_dir/ in
12111 + ./ | .// | /cC/* | \
12112 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12113 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12114 + /usr/ucb/* ) ;;
12115 + *)
12116 + # OSF1 and SCO ODT 3.0 have their own names for install.
12117 + # Don't use installbsd from OSF since it installs stuff as root
12118 + # by default.
12119 + for ac_prog in ginstall scoinst install; do
12120 + for ac_exec_ext in '' $ac_executable_extensions; do
12121 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12122 + if test $ac_prog = install &&
12123 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12124 + # AIX install. It has an incompatible calling convention.
12125 + :
12126 + elif test $ac_prog = install &&
12127 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12128 + # program-specific install script used by HP pwplus--don't use.
12129 + :
12130 + else
12131 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12132 + break 3
12133 + fi
12134 + fi
12135 + done
12136 + done
12137 + ;;
12138 +esac
12139 +done
12140 +
12141 +
12142 +fi
12143 + if test "${ac_cv_path_install+set}" = set; then
12144 + INSTALL=$ac_cv_path_install
12145 + else
12146 + # As a last resort, use the slow shell script. We don't cache a
12147 + # path for INSTALL within a source directory, because that will
12148 + # break other packages using the cache if that directory is
12149 + # removed, or if the path is relative.
12150 + INSTALL=$ac_install_sh
12151 + fi
12152 +fi
12153 +echo "$as_me:$LINENO: result: $INSTALL" >&5
12154 +echo "${ECHO_T}$INSTALL" >&6
12155 +
12156 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12157 +# It thinks the first close brace ends the variable substitution.
12158 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12159 +
12160 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12161 +
12162 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12163 +
12164 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
12165 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12166 +# Just in case
12167 +sleep 1
12168 +echo timestamp > conftest.file
12169 +# Do `set' in a subshell so we don't clobber the current shell's
12170 +# arguments. Must try -L first in case configure is actually a
12171 +# symlink; some systems play weird games with the mod time of symlinks
12172 +# (eg FreeBSD returns the mod time of the symlink's containing
12173 +# directory).
12174 +if (
12175 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12176 + if test "$*" = "X"; then
12177 + # -L didn't work.
12178 + set X `ls -t $srcdir/configure conftest.file`
12179 + fi
12180 + rm -f conftest.file
12181 + if test "$*" != "X $srcdir/configure conftest.file" \
12182 + && test "$*" != "X conftest.file $srcdir/configure"; then
12183 +
12184 + # If neither matched, then we have a broken ls. This can happen
12185 + # if, for instance, CONFIG_SHELL is bash and it inherits a
12186 + # broken ls alias from the environment. This has actually
12187 + # happened. Such a system could not be considered "sane".
12188 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
12189 +alias in your environment" >&5
12190 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
12191 +alias in your environment" >&2;}
12192 + { (exit 1); exit 1; }; }
12193 + fi
12194 +
12195 + test "$2" = conftest.file
12196 + )
12197 +then
12198 + # Ok.
12199 + :
12200 +else
12201 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
12202 +Check your system clock" >&5
12203 +echo "$as_me: error: newly created file is older than distributed files!
12204 +Check your system clock" >&2;}
12205 + { (exit 1); exit 1; }; }
12206 +fi
12207 +echo "$as_me:$LINENO: result: yes" >&5
12208 +echo "${ECHO_T}yes" >&6
12209 +test "$program_prefix" != NONE &&
12210 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
12211 +# Use a double $ so make ignores it.
12212 +test "$program_suffix" != NONE &&
12213 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12214 +# Double any \ or $. echo might interpret backslashes.
12215 +# By default was `s,x,x', remove it if useless.
12216 +cat <<\_ACEOF >conftest.sed
12217 +s/[\\$]/&&/g;s/;s,x,x,$//
12218 +_ACEOF
12219 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12220 +rm conftest.sed
12221 +
12222 +# expand $ac_aux_dir to an absolute path
12223 +am_aux_dir=`cd $ac_aux_dir && pwd`
12224 +
12225 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
12226 +# Use eval to expand $SHELL
12227 +if eval "$MISSING --run true"; then
12228 + am_missing_run="$MISSING --run "
12229 +else
12230 + am_missing_run=
12231 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
12232 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
12233 +fi
12234 +
12235 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
12236 + # We used to keeping the `.' as first argument, in order to
12237 + # allow $(mkdir_p) to be used without argument. As in
12238 + # $(mkdir_p) $(somedir)
12239 + # where $(somedir) is conditionally defined. However this is wrong
12240 + # for two reasons:
12241 + # 1. if the package is installed by a user who cannot write `.'
12242 + # make install will fail,
12243 + # 2. the above comment should most certainly read
12244 + # $(mkdir_p) $(DESTDIR)$(somedir)
12245 + # so it does not work when $(somedir) is undefined and
12246 + # $(DESTDIR) is not.
12247 + # To support the latter case, we have to write
12248 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
12249 + # so the `.' trick is pointless.
12250 + mkdir_p='mkdir -p --'
12251 +else
12252 + # On NextStep and OpenStep, the `mkdir' command does not
12253 + # recognize any option. It will interpret all options as
12254 + # directories to create, and then abort because `.' already
12255 + # exists.
12256 + for d in ./-p ./--version;
12257 + do
12258 + test -d $d && rmdir $d
12259 + done
12260 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
12261 + if test -f "$ac_aux_dir/mkinstalldirs"; then
12262 + mkdir_p='$(mkinstalldirs)'
12263 + else
12264 + mkdir_p='$(install_sh) -d'
12265 + fi
12266 +fi
12267 +
12268 +for ac_prog in gawk mawk nawk awk
12269 +do
12270 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12271 +set dummy $ac_prog; ac_word=$2
12272 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12273 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12274 +if test "${ac_cv_prog_AWK+set}" = set; then
12275 + echo $ECHO_N "(cached) $ECHO_C" >&6
12276 +else
12277 + if test -n "$AWK"; then
12278 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
12279 +else
12280 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 +for as_dir in $PATH
12282 +do
12283 + IFS=$as_save_IFS
12284 + test -z "$as_dir" && as_dir=.
12285 + for ac_exec_ext in '' $ac_executable_extensions; do
12286 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 + ac_cv_prog_AWK="$ac_prog"
12288 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 + break 2
12290 + fi
12291 +done
12292 +done
12293 +
12294 +fi
12295 +fi
12296 +AWK=$ac_cv_prog_AWK
12297 +if test -n "$AWK"; then
12298 + echo "$as_me:$LINENO: result: $AWK" >&5
12299 +echo "${ECHO_T}$AWK" >&6
12300 +else
12301 + echo "$as_me:$LINENO: result: no" >&5
12302 +echo "${ECHO_T}no" >&6
12303 +fi
12304 +
12305 + test -n "$AWK" && break
12306 +done
12307 +
12308 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12309 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
12310 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
12311 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12312 + echo $ECHO_N "(cached) $ECHO_C" >&6
12313 +else
12314 + cat >conftest.make <<\_ACEOF
12315 +all:
12316 + @echo 'ac_maketemp="$(MAKE)"'
12317 +_ACEOF
12318 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12319 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12320 +if test -n "$ac_maketemp"; then
12321 + eval ac_cv_prog_make_${ac_make}_set=yes
12322 +else
12323 + eval ac_cv_prog_make_${ac_make}_set=no
12324 +fi
12325 +rm -f conftest.make
12326 +fi
12327 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12328 + echo "$as_me:$LINENO: result: yes" >&5
12329 +echo "${ECHO_T}yes" >&6
12330 + SET_MAKE=
12331 +else
12332 + echo "$as_me:$LINENO: result: no" >&5
12333 +echo "${ECHO_T}no" >&6
12334 + SET_MAKE="MAKE=${MAKE-make}"
12335 +fi
12336 +
12337 +rm -rf .tst 2>/dev/null
12338 +mkdir .tst 2>/dev/null
12339 +if test -d .tst; then
12340 + am__leading_dot=.
12341 +else
12342 + am__leading_dot=_
12343 +fi
12344 +rmdir .tst 2>/dev/null
12345 +
12346 +# test to see if srcdir already configured
12347 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
12348 + test -f $srcdir/config.status; then
12349 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
12350 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12351 + { (exit 1); exit 1; }; }
12352 +fi
12353 +
12354 +# test whether we have cygpath
12355 +if test -z "$CYGPATH_W"; then
12356 + if (cygpath --version) >/dev/null 2>/dev/null; then
12357 + CYGPATH_W='cygpath -w'
12358 + else
12359 + CYGPATH_W=echo
12360 + fi
12361 +fi
12362 +
12363 +
12364 +# Define the identity of the package.
12365 + PACKAGE='lua-at'
12366 + VERSION='5.1.3'
12367 +
12368 +
12369 +cat >>confdefs.h <<_ACEOF
12370 +#define PACKAGE "$PACKAGE"
12371 +_ACEOF
12372 +
12373 +
12374 +cat >>confdefs.h <<_ACEOF
12375 +#define VERSION "$VERSION"
12376 +_ACEOF
12377 +
12378 +# Some tools Automake needs.
12379 +
12380 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12381 +
12382 +
12383 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12384 +
12385 +
12386 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12387 +
12388 +
12389 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12390 +
12391 +
12392 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12393 +
12394 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
12395 +
12396 +# Installed binaries are usually stripped using `strip' when the user
12397 +# run `make install-strip'. However `strip' might not be the right
12398 +# tool to use in cross-compilation environments, therefore Automake
12399 +# will honor the `STRIP' environment variable to overrule this program.
12400 +if test "$cross_compiling" != no; then
12401 + if test -n "$ac_tool_prefix"; then
12402 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12403 +set dummy ${ac_tool_prefix}strip; ac_word=$2
12404 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12405 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12406 +if test "${ac_cv_prog_STRIP+set}" = set; then
12407 + echo $ECHO_N "(cached) $ECHO_C" >&6
12408 +else
12409 + if test -n "$STRIP"; then
12410 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12411 +else
12412 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 +for as_dir in $PATH
12414 +do
12415 + IFS=$as_save_IFS
12416 + test -z "$as_dir" && as_dir=.
12417 + for ac_exec_ext in '' $ac_executable_extensions; do
12418 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12420 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 + break 2
12422 + fi
12423 +done
12424 +done
12425 +
12426 +fi
12427 +fi
12428 +STRIP=$ac_cv_prog_STRIP
12429 +if test -n "$STRIP"; then
12430 + echo "$as_me:$LINENO: result: $STRIP" >&5
12431 +echo "${ECHO_T}$STRIP" >&6
12432 +else
12433 + echo "$as_me:$LINENO: result: no" >&5
12434 +echo "${ECHO_T}no" >&6
12435 +fi
12436 +
12437 +fi
12438 +if test -z "$ac_cv_prog_STRIP"; then
12439 + ac_ct_STRIP=$STRIP
12440 + # Extract the first word of "strip", so it can be a program name with args.
12441 +set dummy strip; ac_word=$2
12442 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12443 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12444 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12445 + echo $ECHO_N "(cached) $ECHO_C" >&6
12446 +else
12447 + if test -n "$ac_ct_STRIP"; then
12448 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12449 +else
12450 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 +for as_dir in $PATH
12452 +do
12453 + IFS=$as_save_IFS
12454 + test -z "$as_dir" && as_dir=.
12455 + for ac_exec_ext in '' $ac_executable_extensions; do
12456 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 + ac_cv_prog_ac_ct_STRIP="strip"
12458 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12459 + break 2
12460 + fi
12461 +done
12462 +done
12463 +
12464 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12465 +fi
12466 +fi
12467 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12468 +if test -n "$ac_ct_STRIP"; then
12469 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12470 +echo "${ECHO_T}$ac_ct_STRIP" >&6
12471 +else
12472 + echo "$as_me:$LINENO: result: no" >&5
12473 +echo "${ECHO_T}no" >&6
12474 +fi
12475 +
12476 + STRIP=$ac_ct_STRIP
12477 +else
12478 + STRIP="$ac_cv_prog_STRIP"
12479 +fi
12480 +
12481 +fi
12482 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
12483 +
12484 +# We need awk for the "check" target. The system "awk" is bad on
12485 +# some platforms.
12486 +# Always define AMTAR for backward compatibility.
12487 +
12488 +AMTAR=${AMTAR-"${am_missing_run}tar"}
12489 +
12490 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
12491 +
12492 +
12493 +
12494 +
12495 +
12496 +
12497 +ac_ext=c
12498 +ac_cpp='$CPP $CPPFLAGS'
12499 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502 +if test -n "$ac_tool_prefix"; then
12503 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12504 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
12505 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12507 +if test "${ac_cv_prog_CC+set}" = set; then
12508 + echo $ECHO_N "(cached) $ECHO_C" >&6
12509 +else
12510 + if test -n "$CC"; then
12511 + ac_cv_prog_CC="$CC" # Let the user override the test.
12512 +else
12513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 +for as_dir in $PATH
12515 +do
12516 + IFS=$as_save_IFS
12517 + test -z "$as_dir" && as_dir=.
12518 + for ac_exec_ext in '' $ac_executable_extensions; do
12519 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12520 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
12521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 + break 2
12523 + fi
12524 +done
12525 +done
12526 +
12527 +fi
12528 +fi
12529 +CC=$ac_cv_prog_CC
12530 +if test -n "$CC"; then
12531 + echo "$as_me:$LINENO: result: $CC" >&5
12532 +echo "${ECHO_T}$CC" >&6
12533 +else
12534 + echo "$as_me:$LINENO: result: no" >&5
12535 +echo "${ECHO_T}no" >&6
12536 +fi
12537 +
12538 +fi
12539 +if test -z "$ac_cv_prog_CC"; then
12540 + ac_ct_CC=$CC
12541 + # Extract the first word of "gcc", so it can be a program name with args.
12542 +set dummy gcc; ac_word=$2
12543 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12544 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12545 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12546 + echo $ECHO_N "(cached) $ECHO_C" >&6
12547 +else
12548 + if test -n "$ac_ct_CC"; then
12549 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12550 +else
12551 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 +for as_dir in $PATH
12553 +do
12554 + IFS=$as_save_IFS
12555 + test -z "$as_dir" && as_dir=.
12556 + for ac_exec_ext in '' $ac_executable_extensions; do
12557 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558 + ac_cv_prog_ac_ct_CC="gcc"
12559 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 + break 2
12561 + fi
12562 +done
12563 +done
12564 +
12565 +fi
12566 +fi
12567 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12568 +if test -n "$ac_ct_CC"; then
12569 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12570 +echo "${ECHO_T}$ac_ct_CC" >&6
12571 +else
12572 + echo "$as_me:$LINENO: result: no" >&5
12573 +echo "${ECHO_T}no" >&6
12574 +fi
12575 +
12576 + CC=$ac_ct_CC
12577 +else
12578 + CC="$ac_cv_prog_CC"
12579 +fi
12580 +
12581 +if test -z "$CC"; then
12582 + if test -n "$ac_tool_prefix"; then
12583 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12584 +set dummy ${ac_tool_prefix}cc; ac_word=$2
12585 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12586 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12587 +if test "${ac_cv_prog_CC+set}" = set; then
12588 + echo $ECHO_N "(cached) $ECHO_C" >&6
12589 +else
12590 + if test -n "$CC"; then
12591 + ac_cv_prog_CC="$CC" # Let the user override the test.
12592 +else
12593 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 +for as_dir in $PATH
12595 +do
12596 + IFS=$as_save_IFS
12597 + test -z "$as_dir" && as_dir=.
12598 + for ac_exec_ext in '' $ac_executable_extensions; do
12599 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 + ac_cv_prog_CC="${ac_tool_prefix}cc"
12601 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 + break 2
12603 + fi
12604 +done
12605 +done
12606 +
12607 +fi
12608 +fi
12609 +CC=$ac_cv_prog_CC
12610 +if test -n "$CC"; then
12611 + echo "$as_me:$LINENO: result: $CC" >&5
12612 +echo "${ECHO_T}$CC" >&6
12613 +else
12614 + echo "$as_me:$LINENO: result: no" >&5
12615 +echo "${ECHO_T}no" >&6
12616 +fi
12617 +
12618 +fi
12619 +if test -z "$ac_cv_prog_CC"; then
12620 + ac_ct_CC=$CC
12621 + # Extract the first word of "cc", so it can be a program name with args.
12622 +set dummy cc; ac_word=$2
12623 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12624 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12625 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12626 + echo $ECHO_N "(cached) $ECHO_C" >&6
12627 +else
12628 + if test -n "$ac_ct_CC"; then
12629 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12630 +else
12631 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 +for as_dir in $PATH
12633 +do
12634 + IFS=$as_save_IFS
12635 + test -z "$as_dir" && as_dir=.
12636 + for ac_exec_ext in '' $ac_executable_extensions; do
12637 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12638 + ac_cv_prog_ac_ct_CC="cc"
12639 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 + break 2
12641 + fi
12642 +done
12643 +done
12644 +
12645 +fi
12646 +fi
12647 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12648 +if test -n "$ac_ct_CC"; then
12649 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12650 +echo "${ECHO_T}$ac_ct_CC" >&6
12651 +else
12652 + echo "$as_me:$LINENO: result: no" >&5
12653 +echo "${ECHO_T}no" >&6
12654 +fi
12655 +
12656 + CC=$ac_ct_CC
12657 +else
12658 + CC="$ac_cv_prog_CC"
12659 +fi
12660 +
12661 +fi
12662 +if test -z "$CC"; then
12663 + # Extract the first word of "cc", so it can be a program name with args.
12664 +set dummy cc; ac_word=$2
12665 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12666 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12667 +if test "${ac_cv_prog_CC+set}" = set; then
12668 + echo $ECHO_N "(cached) $ECHO_C" >&6
12669 +else
12670 + if test -n "$CC"; then
12671 + ac_cv_prog_CC="$CC" # Let the user override the test.
12672 +else
12673 + ac_prog_rejected=no
12674 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 +for as_dir in $PATH
12676 +do
12677 + IFS=$as_save_IFS
12678 + test -z "$as_dir" && as_dir=.
12679 + for ac_exec_ext in '' $ac_executable_extensions; do
12680 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12682 + ac_prog_rejected=yes
12683 + continue
12684 + fi
12685 + ac_cv_prog_CC="cc"
12686 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 + break 2
12688 + fi
12689 +done
12690 +done
12691 +
12692 +if test $ac_prog_rejected = yes; then
12693 + # We found a bogon in the path, so make sure we never use it.
12694 + set dummy $ac_cv_prog_CC
12695 + shift
12696 + if test $# != 0; then
12697 + # We chose a different compiler from the bogus one.
12698 + # However, it has the same basename, so the bogon will be chosen
12699 + # first if we set CC to just the basename; use the full file name.
12700 + shift
12701 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12702 + fi
12703 +fi
12704 +fi
12705 +fi
12706 +CC=$ac_cv_prog_CC
12707 +if test -n "$CC"; then
12708 + echo "$as_me:$LINENO: result: $CC" >&5
12709 +echo "${ECHO_T}$CC" >&6
12710 +else
12711 + echo "$as_me:$LINENO: result: no" >&5
12712 +echo "${ECHO_T}no" >&6
12713 +fi
12714 +
12715 +fi
12716 +if test -z "$CC"; then
12717 + if test -n "$ac_tool_prefix"; then
12718 + for ac_prog in cl
12719 + do
12720 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12721 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12722 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12723 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12724 +if test "${ac_cv_prog_CC+set}" = set; then
12725 + echo $ECHO_N "(cached) $ECHO_C" >&6
12726 +else
12727 + if test -n "$CC"; then
12728 + ac_cv_prog_CC="$CC" # Let the user override the test.
12729 +else
12730 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731 +for as_dir in $PATH
12732 +do
12733 + IFS=$as_save_IFS
12734 + test -z "$as_dir" && as_dir=.
12735 + for ac_exec_ext in '' $ac_executable_extensions; do
12736 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12737 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12738 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12739 + break 2
12740 + fi
12741 +done
12742 +done
12743 +
12744 +fi
12745 +fi
12746 +CC=$ac_cv_prog_CC
12747 +if test -n "$CC"; then
12748 + echo "$as_me:$LINENO: result: $CC" >&5
12749 +echo "${ECHO_T}$CC" >&6
12750 +else
12751 + echo "$as_me:$LINENO: result: no" >&5
12752 +echo "${ECHO_T}no" >&6
12753 +fi
12754 +
12755 + test -n "$CC" && break
12756 + done
12757 +fi
12758 +if test -z "$CC"; then
12759 + ac_ct_CC=$CC
12760 + for ac_prog in cl
12761 +do
12762 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12763 +set dummy $ac_prog; ac_word=$2
12764 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12765 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12766 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12767 + echo $ECHO_N "(cached) $ECHO_C" >&6
12768 +else
12769 + if test -n "$ac_ct_CC"; then
12770 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12771 +else
12772 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 +for as_dir in $PATH
12774 +do
12775 + IFS=$as_save_IFS
12776 + test -z "$as_dir" && as_dir=.
12777 + for ac_exec_ext in '' $ac_executable_extensions; do
12778 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779 + ac_cv_prog_ac_ct_CC="$ac_prog"
12780 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 + break 2
12782 + fi
12783 +done
12784 +done
12785 +
12786 +fi
12787 +fi
12788 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12789 +if test -n "$ac_ct_CC"; then
12790 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12791 +echo "${ECHO_T}$ac_ct_CC" >&6
12792 +else
12793 + echo "$as_me:$LINENO: result: no" >&5
12794 +echo "${ECHO_T}no" >&6
12795 +fi
12796 +
12797 + test -n "$ac_ct_CC" && break
12798 +done
12799 +
12800 + CC=$ac_ct_CC
12801 +fi
12802 +
12803 +fi
12804 +
12805 +
12806 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12807 +See \`config.log' for more details." >&5
12808 +echo "$as_me: error: no acceptable C compiler found in \$PATH
12809 +See \`config.log' for more details." >&2;}
12810 + { (exit 1); exit 1; }; }
12811 +
12812 +# Provide some information about the compiler.
12813 +echo "$as_me:$LINENO:" \
12814 + "checking for C compiler version" >&5
12815 +ac_compiler=`set X $ac_compile; echo $2`
12816 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12817 + (eval $ac_compiler --version </dev/null >&5) 2>&5
12818 + ac_status=$?
12819 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 + (exit $ac_status); }
12821 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12822 + (eval $ac_compiler -v </dev/null >&5) 2>&5
12823 + ac_status=$?
12824 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 + (exit $ac_status); }
12826 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12827 + (eval $ac_compiler -V </dev/null >&5) 2>&5
12828 + ac_status=$?
12829 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 + (exit $ac_status); }
12831 +
12832 +cat >conftest.$ac_ext <<_ACEOF
12833 +/* confdefs.h. */
12834 +_ACEOF
12835 +cat confdefs.h >>conftest.$ac_ext
12836 +cat >>conftest.$ac_ext <<_ACEOF
12837 +/* end confdefs.h. */
12838 +
12839 +int
12840 +main ()
12841 +{
12842 +
12843 + ;
12844 + return 0;
12845 +}
12846 +_ACEOF
12847 +ac_clean_files_save=$ac_clean_files
12848 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
12849 +# Try to create an executable without -o first, disregard a.out.
12850 +# It will help us diagnose broken compilers, and finding out an intuition
12851 +# of exeext.
12852 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12853 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12854 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12855 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12856 + (eval $ac_link_default) 2>&5
12857 + ac_status=$?
12858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 + (exit $ac_status); }; then
12860 + # Find the output, starting from the most likely. This scheme is
12861 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12862 +# resort.
12863 +
12864 +# Be careful to initialize this variable, since it used to be cached.
12865 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12866 +ac_cv_exeext=
12867 +# b.out is created by i960 compilers.
12868 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12869 +do
12870 + test -f "$ac_file" || continue
12871 + case $ac_file in
12872 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12873 + ;;
12874 + conftest.$ac_ext )
12875 + # This is the source file.
12876 + ;;
12877 + [ab].out )
12878 + # We found the default executable, but exeext='' is most
12879 + # certainly right.
12880 + break;;
12881 + *.* )
12882 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12883 + # FIXME: I believe we export ac_cv_exeext for Libtool,
12884 + # but it would be cool to find out if it's true. Does anybody
12885 + # maintain Libtool? --akim.
12886 + export ac_cv_exeext
12887 + break;;
12888 + * )
12889 + break;;
12890 + esac
12891 +done
12892 +else
12893 + echo "$as_me: failed program was:" >&5
12894 +sed 's/^/| /' conftest.$ac_ext >&5
12895 +
12896 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12897 +See \`config.log' for more details." >&5
12898 +echo "$as_me: error: C compiler cannot create executables
12899 +See \`config.log' for more details." >&2;}
12900 + { (exit 77); exit 77; }; }
12901 +fi
12902 +
12903 +ac_exeext=$ac_cv_exeext
12904 +echo "$as_me:$LINENO: result: $ac_file" >&5
12905 +echo "${ECHO_T}$ac_file" >&6
12906 +
12907 +# Check the compiler produces executables we can run. If not, either
12908 +# the compiler is broken, or we cross compile.
12909 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12910 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12911 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12912 +# If not cross compiling, check that we can run a simple program.
12913 +if test "$cross_compiling" != yes; then
12914 + if { ac_try='./$ac_file'
12915 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 + (eval $ac_try) 2>&5
12917 + ac_status=$?
12918 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 + (exit $ac_status); }; }; then
12920 + cross_compiling=no
12921 + else
12922 + if test "$cross_compiling" = maybe; then
12923 + cross_compiling=yes
12924 + else
12925 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12926 +If you meant to cross compile, use \`--host'.
12927 +See \`config.log' for more details." >&5
12928 +echo "$as_me: error: cannot run C compiled programs.
12929 +If you meant to cross compile, use \`--host'.
12930 +See \`config.log' for more details." >&2;}
12931 + { (exit 1); exit 1; }; }
12932 + fi
12933 + fi
12934 +fi
12935 +echo "$as_me:$LINENO: result: yes" >&5
12936 +echo "${ECHO_T}yes" >&6
12937 +
12938 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
12939 +ac_clean_files=$ac_clean_files_save
12940 +# Check the compiler produces executables we can run. If not, either
12941 +# the compiler is broken, or we cross compile.
12942 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12943 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12944 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
12945 +echo "${ECHO_T}$cross_compiling" >&6
12946 +
12947 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
12948 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12949 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 + (eval $ac_link) 2>&5
12951 + ac_status=$?
12952 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 + (exit $ac_status); }; then
12954 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
12955 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12956 +# work properly (i.e., refer to `conftest.exe'), while it won't with
12957 +# `rm'.
12958 +for ac_file in conftest.exe conftest conftest.*; do
12959 + test -f "$ac_file" || continue
12960 + case $ac_file in
12961 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12962 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12963 + export ac_cv_exeext
12964 + break;;
12965 + * ) break;;
12966 + esac
12967 +done
12968 +else
12969 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12970 +See \`config.log' for more details." >&5
12971 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12972 +See \`config.log' for more details." >&2;}
12973 + { (exit 1); exit 1; }; }
12974 +fi
12975 +
12976 +rm -f conftest$ac_cv_exeext
12977 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12978 +echo "${ECHO_T}$ac_cv_exeext" >&6
12979 +
12980 +rm -f conftest.$ac_ext
12981 +EXEEXT=$ac_cv_exeext
12982 +ac_exeext=$EXEEXT
12983 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
12984 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12985 +if test "${ac_cv_objext+set}" = set; then
12986 + echo $ECHO_N "(cached) $ECHO_C" >&6
12987 +else
12988 + cat >conftest.$ac_ext <<_ACEOF
12989 +/* confdefs.h. */
12990 +_ACEOF
12991 +cat confdefs.h >>conftest.$ac_ext
12992 +cat >>conftest.$ac_ext <<_ACEOF
12993 +/* end confdefs.h. */
12994 +
12995 +int
12996 +main ()
12997 +{
12998 +
12999 + ;
13000 + return 0;
13001 +}
13002 +_ACEOF
13003 +rm -f conftest.o conftest.obj
13004 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 + (eval $ac_compile) 2>&5
13006 + ac_status=$?
13007 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 + (exit $ac_status); }; then
13009 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
13010 + case $ac_file in
13011 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
13012 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13013 + break;;
13014 + esac
13015 +done
13016 +else
13017 + echo "$as_me: failed program was:" >&5
13018 +sed 's/^/| /' conftest.$ac_ext >&5
13019 +
13020 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
13021 +See \`config.log' for more details." >&5
13022 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
13023 +See \`config.log' for more details." >&2;}
13024 + { (exit 1); exit 1; }; }
13025 +fi
13026 +
13027 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
13028 +fi
13029 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
13030 +echo "${ECHO_T}$ac_cv_objext" >&6
13031 +OBJEXT=$ac_cv_objext
13032 +ac_objext=$OBJEXT
13033 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13034 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
13035 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
13036 + echo $ECHO_N "(cached) $ECHO_C" >&6
13037 +else
13038 + cat >conftest.$ac_ext <<_ACEOF
13039 +/* confdefs.h. */
13040 +_ACEOF
13041 +cat confdefs.h >>conftest.$ac_ext
13042 +cat >>conftest.$ac_ext <<_ACEOF
13043 +/* end confdefs.h. */
13044 +
13045 +int
13046 +main ()
13047 +{
13048 +#ifndef __GNUC__
13049 + choke me
13050 +#endif
13051 +
13052 + ;
13053 + return 0;
13054 +}
13055 +_ACEOF
13056 +rm -f conftest.$ac_objext
13057 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 + (eval $ac_compile) 2>conftest.er1
13059 + ac_status=$?
13060 + grep -v '^ *+' conftest.er1 >conftest.err
13061 + rm -f conftest.er1
13062 + cat conftest.err >&5
13063 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 + (exit $ac_status); } &&
13065 + { ac_try='test -z "$ac_c_werror_flag"
13066 + || test ! -s conftest.err'
13067 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 + (eval $ac_try) 2>&5
13069 + ac_status=$?
13070 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 + (exit $ac_status); }; } &&
13072 + { ac_try='test -s conftest.$ac_objext'
13073 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 + (eval $ac_try) 2>&5
13075 + ac_status=$?
13076 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 + (exit $ac_status); }; }; then
13078 + ac_compiler_gnu=yes
13079 +else
13080 + echo "$as_me: failed program was:" >&5
13081 +sed 's/^/| /' conftest.$ac_ext >&5
13082 +
13083 +ac_compiler_gnu=no
13084 +fi
13085 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
13087 +
13088 +fi
13089 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13090 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
13091 +GCC=`test $ac_compiler_gnu = yes && echo yes`
13092 +ac_test_CFLAGS=${CFLAGS+set}
13093 +ac_save_CFLAGS=$CFLAGS
13094 +CFLAGS="-g"
13095 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13096 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13097 +if test "${ac_cv_prog_cc_g+set}" = set; then
13098 + echo $ECHO_N "(cached) $ECHO_C" >&6
13099 +else
13100 + cat >conftest.$ac_ext <<_ACEOF
13101 +/* confdefs.h. */
13102 +_ACEOF
13103 +cat confdefs.h >>conftest.$ac_ext
13104 +cat >>conftest.$ac_ext <<_ACEOF
13105 +/* end confdefs.h. */
13106 +
13107 +int
13108 +main ()
13109 +{
13110 +
13111 + ;
13112 + return 0;
13113 +}
13114 +_ACEOF
13115 +rm -f conftest.$ac_objext
13116 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13117 + (eval $ac_compile) 2>conftest.er1
13118 + ac_status=$?
13119 + grep -v '^ *+' conftest.er1 >conftest.err
13120 + rm -f conftest.er1
13121 + cat conftest.err >&5
13122 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 + (exit $ac_status); } &&
13124 + { ac_try='test -z "$ac_c_werror_flag"
13125 + || test ! -s conftest.err'
13126 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 + (eval $ac_try) 2>&5
13128 + ac_status=$?
13129 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 + (exit $ac_status); }; } &&
13131 + { ac_try='test -s conftest.$ac_objext'
13132 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 + (eval $ac_try) 2>&5
13134 + ac_status=$?
13135 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 + (exit $ac_status); }; }; then
13137 + ac_cv_prog_cc_g=yes
13138 +else
13139 + echo "$as_me: failed program was:" >&5
13140 +sed 's/^/| /' conftest.$ac_ext >&5
13141 +
13142 +ac_cv_prog_cc_g=no
13143 +fi
13144 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13145 +fi
13146 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13147 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13148 +if test "$ac_test_CFLAGS" = set; then
13149 + CFLAGS=$ac_save_CFLAGS
13150 +elif test $ac_cv_prog_cc_g = yes; then
13151 + if test "$GCC" = yes; then
13152 + CFLAGS="-g -O2"
13153 + else
13154 + CFLAGS="-g"
13155 + fi
13156 +else
13157 + if test "$GCC" = yes; then
13158 + CFLAGS="-O2"
13159 + else
13160 + CFLAGS=
13161 + fi
13162 +fi
13163 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13164 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13165 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
13166 + echo $ECHO_N "(cached) $ECHO_C" >&6
13167 +else
13168 + ac_cv_prog_cc_stdc=no
13169 +ac_save_CC=$CC
13170 +cat >conftest.$ac_ext <<_ACEOF
13171 +/* confdefs.h. */
13172 +_ACEOF
13173 +cat confdefs.h >>conftest.$ac_ext
13174 +cat >>conftest.$ac_ext <<_ACEOF
13175 +/* end confdefs.h. */
13176 +#include <stdarg.h>
13177 +#include <stdio.h>
13178 +#include <sys/types.h>
13179 +#include <sys/stat.h>
13180 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13181 +struct buf { int x; };
13182 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
13183 +static char *e (p, i)
13184 + char **p;
13185 + int i;
13186 +{
13187 + return p[i];
13188 +}
13189 +static char *f (char * (*g) (char **, int), char **p, ...)
13190 +{
13191 + char *s;
13192 + va_list v;
13193 + va_start (v,p);
13194 + s = g (p, va_arg (v,int));
13195 + va_end (v);
13196 + return s;
13197 +}
13198 +
13199 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13200 + function prototypes and stuff, but not '\xHH' hex character constants.
13201 + These don't provoke an error unfortunately, instead are silently treated
13202 + as 'x'. The following induces an error, until -std1 is added to get
13203 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13204 + array size at least. It's necessary to write '\x00'==0 to get something
13205 + that's true only with -std1. */
13206 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13207 +
13208 +int test (int i, double x);
13209 +struct s1 {int (*f) (int a);};
13210 +struct s2 {int (*f) (double a);};
13211 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13212 +int argc;
13213 +char **argv;
13214 +int
13215 +main ()
13216 +{
13217 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13218 + ;
13219 + return 0;
13220 +}
13221 +_ACEOF
13222 +# Don't try gcc -ansi; that turns off useful extensions and
13223 +# breaks some systems' header files.
13224 +# AIX -qlanglvl=ansi
13225 +# Ultrix and OSF/1 -std1
13226 +# HP-UX 10.20 and later -Ae
13227 +# HP-UX older versions -Aa -D_HPUX_SOURCE
13228 +# SVR4 -Xc -D__EXTENSIONS__
13229 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13230 +do
13231 + CC="$ac_save_CC $ac_arg"
13232 + rm -f conftest.$ac_objext
13233 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 + (eval $ac_compile) 2>conftest.er1
13235 + ac_status=$?
13236 + grep -v '^ *+' conftest.er1 >conftest.err
13237 + rm -f conftest.er1
13238 + cat conftest.err >&5
13239 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 + (exit $ac_status); } &&
13241 + { ac_try='test -z "$ac_c_werror_flag"
13242 + || test ! -s conftest.err'
13243 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 + (eval $ac_try) 2>&5
13245 + ac_status=$?
13246 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 + (exit $ac_status); }; } &&
13248 + { ac_try='test -s conftest.$ac_objext'
13249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 + (eval $ac_try) 2>&5
13251 + ac_status=$?
13252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 + (exit $ac_status); }; }; then
13254 + ac_cv_prog_cc_stdc=$ac_arg
13255 +break
13256 +else
13257 + echo "$as_me: failed program was:" >&5
13258 +sed 's/^/| /' conftest.$ac_ext >&5
13259 +
13260 +fi
13261 +rm -f conftest.err conftest.$ac_objext
13262 +done
13263 +rm -f conftest.$ac_ext conftest.$ac_objext
13264 +CC=$ac_save_CC
13265 +
13266 +fi
13267 +
13268 +case "x$ac_cv_prog_cc_stdc" in
13269 + x|xno)
13270 + echo "$as_me:$LINENO: result: none needed" >&5
13271 +echo "${ECHO_T}none needed" >&6 ;;
13272 + *)
13273 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13274 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13275 + CC="$CC $ac_cv_prog_cc_stdc" ;;
13276 +esac
13277 +
13278 +# Some people use a C++ compiler to compile C. Since we use `exit',
13279 +# in C++ we need to declare it. In case someone uses the same compiler
13280 +# for both compiling C and C++ we need to have the C++ compiler decide
13281 +# the declaration of exit, since it's the most demanding environment.
13282 +cat >conftest.$ac_ext <<_ACEOF
13283 +#ifndef __cplusplus
13284 + choke me
13285 +#endif
13286 +_ACEOF
13287 +rm -f conftest.$ac_objext
13288 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 + (eval $ac_compile) 2>conftest.er1
13290 + ac_status=$?
13291 + grep -v '^ *+' conftest.er1 >conftest.err
13292 + rm -f conftest.er1
13293 + cat conftest.err >&5
13294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 + (exit $ac_status); } &&
13296 + { ac_try='test -z "$ac_c_werror_flag"
13297 + || test ! -s conftest.err'
13298 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 + (eval $ac_try) 2>&5
13300 + ac_status=$?
13301 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 + (exit $ac_status); }; } &&
13303 + { ac_try='test -s conftest.$ac_objext'
13304 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 + (eval $ac_try) 2>&5
13306 + ac_status=$?
13307 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 + (exit $ac_status); }; }; then
13309 + for ac_declaration in \
13310 + '' \
13311 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
13312 + 'extern "C" void std::exit (int); using std::exit;' \
13313 + 'extern "C" void exit (int) throw ();' \
13314 + 'extern "C" void exit (int);' \
13315 + 'void exit (int);'
13316 +do
13317 + cat >conftest.$ac_ext <<_ACEOF
13318 +/* confdefs.h. */
13319 +_ACEOF
13320 +cat confdefs.h >>conftest.$ac_ext
13321 +cat >>conftest.$ac_ext <<_ACEOF
13322 +/* end confdefs.h. */
13323 +$ac_declaration
13324 +#include <stdlib.h>
13325 +int
13326 +main ()
13327 +{
13328 +exit (42);
13329 + ;
13330 + return 0;
13331 +}
13332 +_ACEOF
13333 +rm -f conftest.$ac_objext
13334 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 + (eval $ac_compile) 2>conftest.er1
13336 + ac_status=$?
13337 + grep -v '^ *+' conftest.er1 >conftest.err
13338 + rm -f conftest.er1
13339 + cat conftest.err >&5
13340 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 + (exit $ac_status); } &&
13342 + { ac_try='test -z "$ac_c_werror_flag"
13343 + || test ! -s conftest.err'
13344 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 + (eval $ac_try) 2>&5
13346 + ac_status=$?
13347 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 + (exit $ac_status); }; } &&
13349 + { ac_try='test -s conftest.$ac_objext'
13350 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 + (eval $ac_try) 2>&5
13352 + ac_status=$?
13353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 + (exit $ac_status); }; }; then
13355 + :
13356 +else
13357 + echo "$as_me: failed program was:" >&5
13358 +sed 's/^/| /' conftest.$ac_ext >&5
13359 +
13360 +continue
13361 +fi
13362 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13363 + cat >conftest.$ac_ext <<_ACEOF
13364 +/* confdefs.h. */
13365 +_ACEOF
13366 +cat confdefs.h >>conftest.$ac_ext
13367 +cat >>conftest.$ac_ext <<_ACEOF
13368 +/* end confdefs.h. */
13369 +$ac_declaration
13370 +int
13371 +main ()
13372 +{
13373 +exit (42);
13374 + ;
13375 + return 0;
13376 +}
13377 +_ACEOF
13378 +rm -f conftest.$ac_objext
13379 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380 + (eval $ac_compile) 2>conftest.er1
13381 + ac_status=$?
13382 + grep -v '^ *+' conftest.er1 >conftest.err
13383 + rm -f conftest.er1
13384 + cat conftest.err >&5
13385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 + (exit $ac_status); } &&
13387 + { ac_try='test -z "$ac_c_werror_flag"
13388 + || test ! -s conftest.err'
13389 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 + (eval $ac_try) 2>&5
13391 + ac_status=$?
13392 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 + (exit $ac_status); }; } &&
13394 + { ac_try='test -s conftest.$ac_objext'
13395 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 + (eval $ac_try) 2>&5
13397 + ac_status=$?
13398 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 + (exit $ac_status); }; }; then
13400 + break
13401 +else
13402 + echo "$as_me: failed program was:" >&5
13403 +sed 's/^/| /' conftest.$ac_ext >&5
13404 +
13405 +fi
13406 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13407 +done
13408 +rm -f conftest*
13409 +if test -n "$ac_declaration"; then
13410 + echo '#ifdef __cplusplus' >>confdefs.h
13411 + echo $ac_declaration >>confdefs.h
13412 + echo '#endif' >>confdefs.h
13413 +fi
13414 +
13415 +else
13416 + echo "$as_me: failed program was:" >&5
13417 +sed 's/^/| /' conftest.$ac_ext >&5
13418 +
13419 +fi
13420 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13421 +ac_ext=c
13422 +ac_cpp='$CPP $CPPFLAGS'
13423 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 +DEPDIR="${am__leading_dot}deps"
13427 +
13428 + ac_config_commands="$ac_config_commands depfiles"
13429 +
13430 +
13431 +am_make=${MAKE-make}
13432 +cat > confinc << 'END'
13433 +am__doit:
13434 + @echo done
13435 +.PHONY: am__doit
13436 +END
13437 +# If we don't find an include directive, just comment out the code.
13438 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13439 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13440 +am__include="#"
13441 +am__quote=
13442 +_am_result=none
13443 +# First try GNU make style include.
13444 +echo "include confinc" > confmf
13445 +# We grep out `Entering directory' and `Leaving directory'
13446 +# messages which can occur if `w' ends up in MAKEFLAGS.
13447 +# In particular we don't look at `^make:' because GNU make might
13448 +# be invoked under some other name (usually "gmake"), in which
13449 +# case it prints its new name instead of `make'.
13450 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
13451 + am__include=include
13452 + am__quote=
13453 + _am_result=GNU
13454 +fi
13455 +# Now try BSD make style include.
13456 +if test "$am__include" = "#"; then
13457 + echo '.include "confinc"' > confmf
13458 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
13459 + am__include=.include
13460 + am__quote="\""
13461 + _am_result=BSD
13462 + fi
13463 +fi
13464 +
13465 +
13466 +echo "$as_me:$LINENO: result: $_am_result" >&5
13467 +echo "${ECHO_T}$_am_result" >&6
13468 +rm -f confinc confmf
13469 +
13470 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
13471 +if test "${enable_dependency_tracking+set}" = set; then
13472 + enableval="$enable_dependency_tracking"
13473 +
13474 +fi;
13475 +if test "x$enable_dependency_tracking" != xno; then
13476 + am_depcomp="$ac_aux_dir/depcomp"
13477 + AMDEPBACKSLASH='\'
13478 +fi
13479 +
13480 +
13481 +if test "x$enable_dependency_tracking" != xno; then
13482 + AMDEP_TRUE=
13483 + AMDEP_FALSE='#'
13484 +else
13485 + AMDEP_TRUE='#'
13486 + AMDEP_FALSE=
13487 +fi
13488 +
13489 +
13490 +
13491 +
13492 +depcc="$CC" am_compiler_list=
13493 +
13494 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13495 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13496 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13497 + echo $ECHO_N "(cached) $ECHO_C" >&6
13498 +else
13499 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13500 + # We make a subdir and do the tests there. Otherwise we can end up
13501 + # making bogus files that we don't know about and never remove. For
13502 + # instance it was reported that on HP-UX the gcc test will end up
13503 + # making a dummy file named `D' -- because `-MD' means `put the output
13504 + # in D'.
13505 + mkdir conftest.dir
13506 + # Copy depcomp to subdir because otherwise we won't find it if we're
13507 + # using a relative directory.
13508 + cp "$am_depcomp" conftest.dir
13509 + cd conftest.dir
13510 + # We will build objects and dependencies in a subdirectory because
13511 + # it helps to detect inapplicable dependency modes. For instance
13512 + # both Tru64's cc and ICC support -MD to output dependencies as a
13513 + # side effect of compilation, but ICC will put the dependencies in
13514 + # the current directory while Tru64 will put them in the object
13515 + # directory.
13516 + mkdir sub
13517 +
13518 + am_cv_CC_dependencies_compiler_type=none
13519 + if test "$am_compiler_list" = ""; then
13520 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13521 + fi
13522 + for depmode in $am_compiler_list; do
13523 + # Setup a source with many dependencies, because some compilers
13524 + # like to wrap large dependency lists on column 80 (with \), and
13525 + # we should not choose a depcomp mode which is confused by this.
13526 + #
13527 + # We need to recreate these files for each test, as the compiler may
13528 + # overwrite some of them when testing with obscure command lines.
13529 + # This happens at least with the AIX C compiler.
13530 + : > sub/conftest.c
13531 + for i in 1 2 3 4 5 6; do
13532 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
13533 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13534 + # Solaris 8's {/usr,}/bin/sh.
13535 + touch sub/conftst$i.h
13536 + done
13537 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13538 +
13539 + case $depmode in
13540 + nosideeffect)
13541 + # after this tag, mechanisms are not by side-effect, so they'll
13542 + # only be used when explicitly requested
13543 + if test "x$enable_dependency_tracking" = xyes; then
13544 + continue
13545 + else
13546 + break
13547 + fi
13548 + ;;
13549 + none) break ;;
13550 + esac
13551 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
13552 + # mode. It turns out that the SunPro C++ compiler does not properly
13553 + # handle `-M -o', and we need to detect this.
13554 + if depmode=$depmode \
13555 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13556 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13557 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13558 + >/dev/null 2>conftest.err &&
13559 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13560 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13561 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13562 + # icc doesn't choke on unknown options, it will just issue warnings
13563 + # or remarks (even with -Werror). So we grep stderr for any message
13564 + # that says an option was ignored or not supported.
13565 + # When given -MP, icc 7.0 and 7.1 complain thusly:
13566 + # icc: Command line warning: ignoring option '-M'; no argument required
13567 + # The diagnosis changed in icc 8.0:
13568 + # icc: Command line remark: option '-MP' not supported
13569 + if (grep 'ignoring option' conftest.err ||
13570 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13571 + am_cv_CC_dependencies_compiler_type=$depmode
13572 + break
13573 + fi
13574 + fi
13575 + done
13576 +
13577 + cd ..
13578 + rm -rf conftest.dir
13579 +else
13580 + am_cv_CC_dependencies_compiler_type=none
13581 +fi
13582 +
13583 +fi
13584 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13585 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13586 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13587 +
13588 +
13589 +
13590 +if
13591 + test "x$enable_dependency_tracking" != xno \
13592 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13593 + am__fastdepCC_TRUE=
13594 + am__fastdepCC_FALSE='#'
13595 +else
13596 + am__fastdepCC_TRUE='#'
13597 + am__fastdepCC_FALSE=
13598 +fi
13599 +
13600 +
13601 +# Check whether --enable-shared or --disable-shared was given.
13602 +if test "${enable_shared+set}" = set; then
13603 + enableval="$enable_shared"
13604 + p=${PACKAGE-default}
13605 + case $enableval in
13606 + yes) enable_shared=yes ;;
13607 + no) enable_shared=no ;;
13608 + *)
13609 + enable_shared=no
13610 + # Look at the argument we got. We use all the common list separators.
13611 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13612 + for pkg in $enableval; do
13613 + IFS="$lt_save_ifs"
13614 + if test "X$pkg" = "X$p"; then
13615 + enable_shared=yes
13616 + fi
13617 + done
13618 + IFS="$lt_save_ifs"
13619 + ;;
13620 + esac
13621 +else
13622 + enable_shared=yes
13623 +fi;
13624 +
13625 +# Check whether --enable-static or --disable-static was given.
13626 +if test "${enable_static+set}" = set; then
13627 + enableval="$enable_static"
13628 + p=${PACKAGE-default}
13629 + case $enableval in
13630 + yes) enable_static=yes ;;
13631 + no) enable_static=no ;;
13632 + *)
13633 + enable_static=no
13634 + # Look at the argument we got. We use all the common list separators.
13635 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13636 + for pkg in $enableval; do
13637 + IFS="$lt_save_ifs"
13638 + if test "X$pkg" = "X$p"; then
13639 + enable_static=yes
13640 + fi
13641 + done
13642 + IFS="$lt_save_ifs"
13643 + ;;
13644 + esac
13645 +else
13646 + enable_static=yes
13647 +fi;
13648 +
13649 +# Check whether --enable-fast-install or --disable-fast-install was given.
13650 +if test "${enable_fast_install+set}" = set; then
13651 + enableval="$enable_fast_install"
13652 + p=${PACKAGE-default}
13653 + case $enableval in
13654 + yes) enable_fast_install=yes ;;
13655 + no) enable_fast_install=no ;;
13656 + *)
13657 + enable_fast_install=no
13658 + # Look at the argument we got. We use all the common list separators.
13659 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13660 + for pkg in $enableval; do
13661 + IFS="$lt_save_ifs"
13662 + if test "X$pkg" = "X$p"; then
13663 + enable_fast_install=yes
13664 + fi
13665 + done
13666 + IFS="$lt_save_ifs"
13667 + ;;
13668 + esac
13669 +else
13670 + enable_fast_install=yes
13671 +fi;
13672 +
13673 +# Make sure we can run config.sub.
13674 +$ac_config_sub sun4 >/dev/null 2>&1 ||
13675 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
13676 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
13677 + { (exit 1); exit 1; }; }
13678 +
13679 +echo "$as_me:$LINENO: checking build system type" >&5
13680 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
13681 +if test "${ac_cv_build+set}" = set; then
13682 + echo $ECHO_N "(cached) $ECHO_C" >&6
13683 +else
13684 + ac_cv_build_alias=$build_alias
13685 +test -z "$ac_cv_build_alias" &&
13686 + ac_cv_build_alias=`$ac_config_guess`
13687 +test -z "$ac_cv_build_alias" &&
13688 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
13689 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
13690 + { (exit 1); exit 1; }; }
13691 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
13692 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
13693 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
13694 + { (exit 1); exit 1; }; }
13695 +
13696 +fi
13697 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
13698 +echo "${ECHO_T}$ac_cv_build" >&6
13699 +build=$ac_cv_build
13700 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13701 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13702 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13703 +
13704 +
13705 +echo "$as_me:$LINENO: checking host system type" >&5
13706 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
13707 +if test "${ac_cv_host+set}" = set; then
13708 + echo $ECHO_N "(cached) $ECHO_C" >&6
13709 +else
13710 + ac_cv_host_alias=$host_alias
13711 +test -z "$ac_cv_host_alias" &&
13712 + ac_cv_host_alias=$ac_cv_build_alias
13713 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
13714 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
13715 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
13716 + { (exit 1); exit 1; }; }
13717 +
13718 +fi
13719 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13720 +echo "${ECHO_T}$ac_cv_host" >&6
13721 +host=$ac_cv_host
13722 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13723 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13724 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13725 +
13726 +
13727 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13728 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13729 +if test "${lt_cv_path_SED+set}" = set; then
13730 + echo $ECHO_N "(cached) $ECHO_C" >&6
13731 +else
13732 + # Loop through the user's path and test for sed and gsed.
13733 +# Then use that list of sed's as ones to test for truncation.
13734 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 +for as_dir in $PATH
13736 +do
13737 + IFS=$as_save_IFS
13738 + test -z "$as_dir" && as_dir=.
13739 + for lt_ac_prog in sed gsed; do
13740 + for ac_exec_ext in '' $ac_executable_extensions; do
13741 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13742 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13743 + fi
13744 + done
13745 + done
13746 +done
13747 +lt_ac_max=0
13748 +lt_ac_count=0
13749 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
13750 +# along with /bin/sed that truncates output.
13751 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13752 + test ! -f $lt_ac_sed && continue
13753 + cat /dev/null > conftest.in
13754 + lt_ac_count=0
13755 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13756 + # Check for GNU sed and select it if it is found.
13757 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13758 + lt_cv_path_SED=$lt_ac_sed
13759 + break
13760 + fi
13761 + while true; do
13762 + cat conftest.in conftest.in >conftest.tmp
13763 + mv conftest.tmp conftest.in
13764 + cp conftest.in conftest.nl
13765 + echo >>conftest.nl
13766 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13767 + cmp -s conftest.out conftest.nl || break
13768 + # 10000 chars as input seems more than enough
13769 + test $lt_ac_count -gt 10 && break
13770 + lt_ac_count=`expr $lt_ac_count + 1`
13771 + if test $lt_ac_count -gt $lt_ac_max; then
13772 + lt_ac_max=$lt_ac_count
13773 + lt_cv_path_SED=$lt_ac_sed
13774 + fi
13775 + done
13776 +done
13777 +
13778 +fi
13779 +
13780 +SED=$lt_cv_path_SED
13781 +echo "$as_me:$LINENO: result: $SED" >&5
13782 +echo "${ECHO_T}$SED" >&6
13783 +
13784 +echo "$as_me:$LINENO: checking for egrep" >&5
13785 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13786 +if test "${ac_cv_prog_egrep+set}" = set; then
13787 + echo $ECHO_N "(cached) $ECHO_C" >&6
13788 +else
13789 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13790 + then ac_cv_prog_egrep='grep -E'
13791 + else ac_cv_prog_egrep='egrep'
13792 + fi
13793 +fi
13794 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13795 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13796 + EGREP=$ac_cv_prog_egrep
13797 +
13798 +
13799 +
13800 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
13801 +if test "${with_gnu_ld+set}" = set; then
13802 + withval="$with_gnu_ld"
13803 + test "$withval" = no || with_gnu_ld=yes
13804 +else
13805 + with_gnu_ld=no
13806 +fi;
13807 +ac_prog=ld
13808 +if test "$GCC" = yes; then
13809 + # Check if gcc -print-prog-name=ld gives a path.
13810 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13811 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13812 + case $host in
13813 + *-*-mingw*)
13814 + # gcc leaves a trailing carriage return which upsets mingw
13815 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13816 + *)
13817 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13818 + esac
13819 + case $ac_prog in
13820 + # Accept absolute paths.
13821 + [\\/]* | ?:[\\/]*)
13822 + re_direlt='/[^/][^/]*/\.\./'
13823 + # Canonicalize the pathname of ld
13824 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13825 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13826 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13827 + done
13828 + test -z "$LD" && LD="$ac_prog"
13829 + ;;
13830 + "")
13831 + # If it fails, then pretend we aren't using GCC.
13832 + ac_prog=ld
13833 + ;;
13834 + *)
13835 + # If it is relative, then search for the first ld in PATH.
13836 + with_gnu_ld=unknown
13837 + ;;
13838 + esac
13839 +elif test "$with_gnu_ld" = yes; then
13840 + echo "$as_me:$LINENO: checking for GNU ld" >&5
13841 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13842 +else
13843 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13844 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13845 +fi
13846 +if test "${lt_cv_path_LD+set}" = set; then
13847 + echo $ECHO_N "(cached) $ECHO_C" >&6
13848 +else
13849 + if test -z "$LD"; then
13850 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13851 + for ac_dir in $PATH; do
13852 + IFS="$lt_save_ifs"
13853 + test -z "$ac_dir" && ac_dir=.
13854 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13855 + lt_cv_path_LD="$ac_dir/$ac_prog"
13856 + # Check to see if the program is GNU ld. I'd rather use --version,
13857 + # but apparently some variants of GNU ld only accept -v.
13858 + # Break only if it was the GNU/non-GNU ld that we prefer.
13859 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13860 + *GNU* | *'with BFD'*)
13861 + test "$with_gnu_ld" != no && break
13862 + ;;
13863 + *)
13864 + test "$with_gnu_ld" != yes && break
13865 + ;;
13866 + esac
13867 + fi
13868 + done
13869 + IFS="$lt_save_ifs"
13870 +else
13871 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
13872 +fi
13873 +fi
13874 +
13875 +LD="$lt_cv_path_LD"
13876 +if test -n "$LD"; then
13877 + echo "$as_me:$LINENO: result: $LD" >&5
13878 +echo "${ECHO_T}$LD" >&6
13879 +else
13880 + echo "$as_me:$LINENO: result: no" >&5
13881 +echo "${ECHO_T}no" >&6
13882 +fi
13883 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13884 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13885 + { (exit 1); exit 1; }; }
13886 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13887 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13888 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
13889 + echo $ECHO_N "(cached) $ECHO_C" >&6
13890 +else
13891 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
13892 +case `$LD -v 2>&1 </dev/null` in
13893 +*GNU* | *'with BFD'*)
13894 + lt_cv_prog_gnu_ld=yes
13895 + ;;
13896 +*)
13897 + lt_cv_prog_gnu_ld=no
13898 + ;;
13899 +esac
13900 +fi
13901 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13902 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13903 +with_gnu_ld=$lt_cv_prog_gnu_ld
13904 +
13905 +
13906 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13907 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
13908 +if test "${lt_cv_ld_reload_flag+set}" = set; then
13909 + echo $ECHO_N "(cached) $ECHO_C" >&6
13910 +else
13911 + lt_cv_ld_reload_flag='-r'
13912 +fi
13913 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13914 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
13915 +reload_flag=$lt_cv_ld_reload_flag
13916 +case $reload_flag in
13917 +"" | " "*) ;;
13918 +*) reload_flag=" $reload_flag" ;;
13919 +esac
13920 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
13921 +case $host_os in
13922 + darwin*)
13923 + if test "$GCC" = yes; then
13924 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13925 + else
13926 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
13927 + fi
13928 + ;;
13929 +esac
13930 +
13931 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13932 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
13933 +if test "${lt_cv_path_NM+set}" = set; then
13934 + echo $ECHO_N "(cached) $ECHO_C" >&6
13935 +else
13936 + if test -n "$NM"; then
13937 + # Let the user override the test.
13938 + lt_cv_path_NM="$NM"
13939 +else
13940 + lt_nm_to_check="${ac_tool_prefix}nm"
13941 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13942 + lt_nm_to_check="$lt_nm_to_check nm"
13943 + fi
13944 + for lt_tmp_nm in $lt_nm_to_check; do
13945 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13946 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13947 + IFS="$lt_save_ifs"
13948 + test -z "$ac_dir" && ac_dir=.
13949 + tmp_nm="$ac_dir/$lt_tmp_nm"
13950 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13951 + # Check to see if the nm accepts a BSD-compat flag.
13952 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13953 + # nm: unknown option "B" ignored
13954 + # Tru64's nm complains that /dev/null is an invalid object file
13955 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13956 + */dev/null* | *'Invalid file or object type'*)
13957 + lt_cv_path_NM="$tmp_nm -B"
13958 + break
13959 + ;;
13960 + *)
13961 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13962 + */dev/null*)
13963 + lt_cv_path_NM="$tmp_nm -p"
13964 + break
13965 + ;;
13966 + *)
13967 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13968 + continue # so that we can try to find one that supports BSD flags
13969 + ;;
13970 + esac
13971 + ;;
13972 + esac
13973 + fi
13974 + done
13975 + IFS="$lt_save_ifs"
13976 + done
13977 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13978 +fi
13979 +fi
13980 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13981 +echo "${ECHO_T}$lt_cv_path_NM" >&6
13982 +NM="$lt_cv_path_NM"
13983 +
13984 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
13985 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13986 +LN_S=$as_ln_s
13987 +if test "$LN_S" = "ln -s"; then
13988 + echo "$as_me:$LINENO: result: yes" >&5
13989 +echo "${ECHO_T}yes" >&6
13990 +else
13991 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13992 +echo "${ECHO_T}no, using $LN_S" >&6
13993 +fi
13994 +
13995 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13996 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
13997 +if test "${lt_cv_deplibs_check_method+set}" = set; then
13998 + echo $ECHO_N "(cached) $ECHO_C" >&6
13999 +else
14000 + lt_cv_file_magic_cmd='$MAGIC_CMD'
14001 +lt_cv_file_magic_test_file=
14002 +lt_cv_deplibs_check_method='unknown'
14003 +# Need to set the preceding variable on all platforms that support
14004 +# interlibrary dependencies.
14005 +# 'none' -- dependencies not supported.
14006 +# `unknown' -- same as none, but documents that we really don't know.
14007 +# 'pass_all' -- all dependencies passed with no checks.
14008 +# 'test_compile' -- check by making test program.
14009 +# 'file_magic [[regex]]' -- check by looking for files in library path
14010 +# which responds to the $file_magic_cmd with a given extended regex.
14011 +# If you have `file' or equivalent on your system and you're not sure
14012 +# whether `pass_all' will *always* work, you probably want this one.
14013 +
14014 +case $host_os in
14015 +aix4* | aix5*)
14016 + lt_cv_deplibs_check_method=pass_all
14017 + ;;
14018 +
14019 +beos*)
14020 + lt_cv_deplibs_check_method=pass_all
14021 + ;;
14022 +
14023 +bsdi[45]*)
14024 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14025 + lt_cv_file_magic_cmd='/usr/bin/file -L'
14026 + lt_cv_file_magic_test_file=/shlib/libc.so
14027 + ;;
14028 +
14029 +cygwin*)
14030 + # func_win32_libid is a shell function defined in ltmain.sh
14031 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14032 + lt_cv_file_magic_cmd='func_win32_libid'
14033 + ;;
14034 +
14035 +mingw* | pw32*)
14036 + # Base MSYS/MinGW do not provide the 'file' command needed by
14037 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14038 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14039 + lt_cv_file_magic_cmd='$OBJDUMP -f'
14040 + ;;
14041 +
14042 +darwin* | rhapsody*)
14043 + lt_cv_deplibs_check_method=pass_all
14044 + ;;
14045 +
14046 +freebsd* | kfreebsd*-gnu | dragonfly*)
14047 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14048 + case $host_cpu in
14049 + i*86 )
14050 + # Not sure whether the presence of OpenBSD here was a mistake.
14051 + # Let's accept both of them until this is cleared up.
14052 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14053 + lt_cv_file_magic_cmd=/usr/bin/file
14054 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14055 + ;;
14056 + esac
14057 + else
14058 + lt_cv_deplibs_check_method=pass_all
14059 + fi
14060 + ;;
14061 +
14062 +gnu*)
14063 + lt_cv_deplibs_check_method=pass_all
14064 + ;;
14065 +
14066 +hpux10.20* | hpux11*)
14067 + lt_cv_file_magic_cmd=/usr/bin/file
14068 + case $host_cpu in
14069 + ia64*)
14070 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14071 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14072 + ;;
14073 + hppa*64*)
14074 + 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]'
14075 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14076 + ;;
14077 + *)
14078 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14079 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
14080 + ;;
14081 + esac
14082 + ;;
14083 +
14084 +interix3*)
14085 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14086 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14087 + ;;
14088 +
14089 +irix5* | irix6* | nonstopux*)
14090 + case $LD in
14091 + *-32|*"-32 ") libmagic=32-bit;;
14092 + *-n32|*"-n32 ") libmagic=N32;;
14093 + *-64|*"-64 ") libmagic=64-bit;;
14094 + *) libmagic=never-match;;
14095 + esac
14096 + lt_cv_deplibs_check_method=pass_all
14097 + ;;
14098 +
14099 +# This must be Linux ELF.
14100 +linux*)
14101 + lt_cv_deplibs_check_method=pass_all
14102 + ;;
14103 +
14104 +netbsd*)
14105 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14106 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14107 + else
14108 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14109 + fi
14110 + ;;
14111 +
14112 +newos6*)
14113 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14114 + lt_cv_file_magic_cmd=/usr/bin/file
14115 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
14116 + ;;
14117 +
14118 +nto-qnx*)
14119 + lt_cv_deplibs_check_method=unknown
14120 + ;;
14121 +
14122 +openbsd*)
14123 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14124 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14125 + else
14126 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14127 + fi
14128 + ;;
14129 +
14130 +osf3* | osf4* | osf5*)
14131 + lt_cv_deplibs_check_method=pass_all
14132 + ;;
14133 +
14134 +solaris*)
14135 + lt_cv_deplibs_check_method=pass_all
14136 + ;;
14137 +
14138 +sysv4 | sysv4.3*)
14139 + case $host_vendor in
14140 + motorola)
14141 + 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]'
14142 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14143 + ;;
14144 + ncr)
14145 + lt_cv_deplibs_check_method=pass_all
14146 + ;;
14147 + sequent)
14148 + lt_cv_file_magic_cmd='/bin/file'
14149 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14150 + ;;
14151 + sni)
14152 + lt_cv_file_magic_cmd='/bin/file'
14153 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14154 + lt_cv_file_magic_test_file=/lib/libc.so
14155 + ;;
14156 + siemens)
14157 + lt_cv_deplibs_check_method=pass_all
14158 + ;;
14159 + pc)
14160 + lt_cv_deplibs_check_method=pass_all
14161 + ;;
14162 + esac
14163 + ;;
14164 +
14165 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14166 + lt_cv_deplibs_check_method=pass_all
14167 + ;;
14168 +esac
14169 +
14170 +fi
14171 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14172 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14173 +file_magic_cmd=$lt_cv_file_magic_cmd
14174 +deplibs_check_method=$lt_cv_deplibs_check_method
14175 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
14176 +
14177 +
14178 +
14179 +
14180 +# If no C compiler was specified, use CC.
14181 +LTCC=${LTCC-"$CC"}
14182 +
14183 +# If no C compiler flags were specified, use CFLAGS.
14184 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14185 +
14186 +# Allow CC to be a program name with arguments.
14187 +compiler=$CC
14188 +
14189 +
14190 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14191 +if test "${enable_libtool_lock+set}" = set; then
14192 + enableval="$enable_libtool_lock"
14193 +
14194 +fi;
14195 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14196 +
14197 +# Some flags need to be propagated to the compiler or linker for good
14198 +# libtool support.
14199 +case $host in
14200 +ia64-*-hpux*)
14201 + # Find out which ABI we are using.
14202 + echo 'int i;' > conftest.$ac_ext
14203 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 + (eval $ac_compile) 2>&5
14205 + ac_status=$?
14206 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 + (exit $ac_status); }; then
14208 + case `/usr/bin/file conftest.$ac_objext` in
14209 + *ELF-32*)
14210 + HPUX_IA64_MODE="32"
14211 + ;;
14212 + *ELF-64*)
14213 + HPUX_IA64_MODE="64"
14214 + ;;
14215 + esac
14216 + fi
14217 + rm -rf conftest*
14218 + ;;
14219 +*-*-irix6*)
14220 + # Find out which ABI we are using.
14221 + echo '#line 3677 "configure"' > conftest.$ac_ext
14222 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 + (eval $ac_compile) 2>&5
14224 + ac_status=$?
14225 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 + (exit $ac_status); }; then
14227 + if test "$lt_cv_prog_gnu_ld" = yes; then
14228 + case `/usr/bin/file conftest.$ac_objext` in
14229 + *32-bit*)
14230 + LD="${LD-ld} -melf32bsmip"
14231 + ;;
14232 + *N32*)
14233 + LD="${LD-ld} -melf32bmipn32"
14234 + ;;
14235 + *64-bit*)
14236 + LD="${LD-ld} -melf64bmip"
14237 + ;;
14238 + esac
14239 + else
14240 + case `/usr/bin/file conftest.$ac_objext` in
14241 + *32-bit*)
14242 + LD="${LD-ld} -32"
14243 + ;;
14244 + *N32*)
14245 + LD="${LD-ld} -n32"
14246 + ;;
14247 + *64-bit*)
14248 + LD="${LD-ld} -64"
14249 + ;;
14250 + esac
14251 + fi
14252 + fi
14253 + rm -rf conftest*
14254 + ;;
14255 +
14256 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14257 + # Find out which ABI we are using.
14258 + echo 'int i;' > conftest.$ac_ext
14259 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 + (eval $ac_compile) 2>&5
14261 + ac_status=$?
14262 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 + (exit $ac_status); }; then
14264 + case `/usr/bin/file conftest.o` in
14265 + *32-bit*)
14266 + case $host in
14267 + x86_64-*linux*)
14268 + LD="${LD-ld} -m elf_i386"
14269 + ;;
14270 + ppc64-*linux*|powerpc64-*linux*)
14271 + LD="${LD-ld} -m elf32ppclinux"
14272 + ;;
14273 + s390x-*linux*)
14274 + LD="${LD-ld} -m elf_s390"
14275 + ;;
14276 + sparc64-*linux*)
14277 + LD="${LD-ld} -m elf32_sparc"
14278 + ;;
14279 + esac
14280 + ;;
14281 + *64-bit*)
14282 + case $host in
14283 + x86_64-*linux*)
14284 + LD="${LD-ld} -m elf_x86_64"
14285 + ;;
14286 + ppc*-*linux*|powerpc*-*linux*)
14287 + LD="${LD-ld} -m elf64ppc"
14288 + ;;
14289 + s390*-*linux*)
14290 + LD="${LD-ld} -m elf64_s390"
14291 + ;;
14292 + sparc*-*linux*)
14293 + LD="${LD-ld} -m elf64_sparc"
14294 + ;;
14295 + esac
14296 + ;;
14297 + esac
14298 + fi
14299 + rm -rf conftest*
14300 + ;;
14301 +
14302 +*-*-sco3.2v5*)
14303 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14304 + SAVE_CFLAGS="$CFLAGS"
14305 + CFLAGS="$CFLAGS -belf"
14306 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14307 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14308 +if test "${lt_cv_cc_needs_belf+set}" = set; then
14309 + echo $ECHO_N "(cached) $ECHO_C" >&6
14310 +else
14311 + ac_ext=c
14312 +ac_cpp='$CPP $CPPFLAGS'
14313 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14316 +
14317 + cat >conftest.$ac_ext <<_ACEOF
14318 +/* confdefs.h. */
14319 +_ACEOF
14320 +cat confdefs.h >>conftest.$ac_ext
14321 +cat >>conftest.$ac_ext <<_ACEOF
14322 +/* end confdefs.h. */
14323 +
14324 +int
14325 +main ()
14326 +{
14327 +
14328 + ;
14329 + return 0;
14330 +}
14331 +_ACEOF
14332 +rm -f conftest.$ac_objext conftest$ac_exeext
14333 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 + (eval $ac_link) 2>conftest.er1
14335 + ac_status=$?
14336 + grep -v '^ *+' conftest.er1 >conftest.err
14337 + rm -f conftest.er1
14338 + cat conftest.err >&5
14339 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 + (exit $ac_status); } &&
14341 + { ac_try='test -z "$ac_c_werror_flag"
14342 + || test ! -s conftest.err'
14343 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 + (eval $ac_try) 2>&5
14345 + ac_status=$?
14346 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 + (exit $ac_status); }; } &&
14348 + { ac_try='test -s conftest$ac_exeext'
14349 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 + (eval $ac_try) 2>&5
14351 + ac_status=$?
14352 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 + (exit $ac_status); }; }; then
14354 + lt_cv_cc_needs_belf=yes
14355 +else
14356 + echo "$as_me: failed program was:" >&5
14357 +sed 's/^/| /' conftest.$ac_ext >&5
14358 +
14359 +lt_cv_cc_needs_belf=no
14360 +fi
14361 +rm -f conftest.err conftest.$ac_objext \
14362 + conftest$ac_exeext conftest.$ac_ext
14363 + ac_ext=c
14364 +ac_cpp='$CPP $CPPFLAGS'
14365 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14366 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14367 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14368 +
14369 +fi
14370 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14371 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14372 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14373 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14374 + CFLAGS="$SAVE_CFLAGS"
14375 + fi
14376 + ;;
14377 +sparc*-*solaris*)
14378 + # Find out which ABI we are using.
14379 + echo 'int i;' > conftest.$ac_ext
14380 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 + (eval $ac_compile) 2>&5
14382 + ac_status=$?
14383 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 + (exit $ac_status); }; then
14385 + case `/usr/bin/file conftest.o` in
14386 + *64-bit*)
14387 + case $lt_cv_prog_gnu_ld in
14388 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
14389 + *) LD="${LD-ld} -64" ;;
14390 + esac
14391 + ;;
14392 + esac
14393 + fi
14394 + rm -rf conftest*
14395 + ;;
14396 +
14397 +
14398 +esac
14399 +
14400 +need_locks="$enable_libtool_lock"
14401 +
14402 +
14403 +ac_ext=c
14404 +ac_cpp='$CPP $CPPFLAGS'
14405 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14406 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14407 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14408 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14409 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14410 +# On Suns, sometimes $CPP names a directory.
14411 +if test -n "$CPP" && test -d "$CPP"; then
14412 + CPP=
14413 +fi
14414 +if test -z "$CPP"; then
14415 + if test "${ac_cv_prog_CPP+set}" = set; then
14416 + echo $ECHO_N "(cached) $ECHO_C" >&6
14417 +else
14418 + # Double quotes because CPP needs to be expanded
14419 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14420 + do
14421 + ac_preproc_ok=false
14422 +for ac_c_preproc_warn_flag in '' yes
14423 +do
14424 + # Use a header file that comes with gcc, so configuring glibc
14425 + # with a fresh cross-compiler works.
14426 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14427 + # <limits.h> exists even on freestanding compilers.
14428 + # On the NeXT, cc -E runs the code through the compiler's parser,
14429 + # not just through cpp. "Syntax error" is here to catch this case.
14430 + cat >conftest.$ac_ext <<_ACEOF
14431 +/* confdefs.h. */
14432 +_ACEOF
14433 +cat confdefs.h >>conftest.$ac_ext
14434 +cat >>conftest.$ac_ext <<_ACEOF
14435 +/* end confdefs.h. */
14436 +#ifdef __STDC__
14437 +# include <limits.h>
14438 +#else
14439 +# include <assert.h>
14440 +#endif
14441 + Syntax error
14442 +_ACEOF
14443 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445 + ac_status=$?
14446 + grep -v '^ *+' conftest.er1 >conftest.err
14447 + rm -f conftest.er1
14448 + cat conftest.err >&5
14449 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 + (exit $ac_status); } >/dev/null; then
14451 + if test -s conftest.err; then
14452 + ac_cpp_err=$ac_c_preproc_warn_flag
14453 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14454 + else
14455 + ac_cpp_err=
14456 + fi
14457 +else
14458 + ac_cpp_err=yes
14459 +fi
14460 +if test -z "$ac_cpp_err"; then
14461 + :
14462 +else
14463 + echo "$as_me: failed program was:" >&5
14464 +sed 's/^/| /' conftest.$ac_ext >&5
14465 +
14466 + # Broken: fails on valid input.
14467 +continue
14468 +fi
14469 +rm -f conftest.err conftest.$ac_ext
14470 +
14471 + # OK, works on sane cases. Now check whether non-existent headers
14472 + # can be detected and how.
14473 + cat >conftest.$ac_ext <<_ACEOF
14474 +/* confdefs.h. */
14475 +_ACEOF
14476 +cat confdefs.h >>conftest.$ac_ext
14477 +cat >>conftest.$ac_ext <<_ACEOF
14478 +/* end confdefs.h. */
14479 +#include <ac_nonexistent.h>
14480 +_ACEOF
14481 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14482 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14483 + ac_status=$?
14484 + grep -v '^ *+' conftest.er1 >conftest.err
14485 + rm -f conftest.er1
14486 + cat conftest.err >&5
14487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 + (exit $ac_status); } >/dev/null; then
14489 + if test -s conftest.err; then
14490 + ac_cpp_err=$ac_c_preproc_warn_flag
14491 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14492 + else
14493 + ac_cpp_err=
14494 + fi
14495 +else
14496 + ac_cpp_err=yes
14497 +fi
14498 +if test -z "$ac_cpp_err"; then
14499 + # Broken: success on invalid input.
14500 +continue
14501 +else
14502 + echo "$as_me: failed program was:" >&5
14503 +sed 's/^/| /' conftest.$ac_ext >&5
14504 +
14505 + # Passes both tests.
14506 +ac_preproc_ok=:
14507 +break
14508 +fi
14509 +rm -f conftest.err conftest.$ac_ext
14510 +
14511 +done
14512 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14513 +rm -f conftest.err conftest.$ac_ext
14514 +if $ac_preproc_ok; then
14515 + break
14516 +fi
14517 +
14518 + done
14519 + ac_cv_prog_CPP=$CPP
14520 +
14521 +fi
14522 + CPP=$ac_cv_prog_CPP
14523 +else
14524 + ac_cv_prog_CPP=$CPP
14525 +fi
14526 +echo "$as_me:$LINENO: result: $CPP" >&5
14527 +echo "${ECHO_T}$CPP" >&6
14528 +ac_preproc_ok=false
14529 +for ac_c_preproc_warn_flag in '' yes
14530 +do
14531 + # Use a header file that comes with gcc, so configuring glibc
14532 + # with a fresh cross-compiler works.
14533 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 + # <limits.h> exists even on freestanding compilers.
14535 + # On the NeXT, cc -E runs the code through the compiler's parser,
14536 + # not just through cpp. "Syntax error" is here to catch this case.
14537 + cat >conftest.$ac_ext <<_ACEOF
14538 +/* confdefs.h. */
14539 +_ACEOF
14540 +cat confdefs.h >>conftest.$ac_ext
14541 +cat >>conftest.$ac_ext <<_ACEOF
14542 +/* end confdefs.h. */
14543 +#ifdef __STDC__
14544 +# include <limits.h>
14545 +#else
14546 +# include <assert.h>
14547 +#endif
14548 + Syntax error
14549 +_ACEOF
14550 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14552 + ac_status=$?
14553 + grep -v '^ *+' conftest.er1 >conftest.err
14554 + rm -f conftest.er1
14555 + cat conftest.err >&5
14556 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 + (exit $ac_status); } >/dev/null; then
14558 + if test -s conftest.err; then
14559 + ac_cpp_err=$ac_c_preproc_warn_flag
14560 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14561 + else
14562 + ac_cpp_err=
14563 + fi
14564 +else
14565 + ac_cpp_err=yes
14566 +fi
14567 +if test -z "$ac_cpp_err"; then
14568 + :
14569 +else
14570 + echo "$as_me: failed program was:" >&5
14571 +sed 's/^/| /' conftest.$ac_ext >&5
14572 +
14573 + # Broken: fails on valid input.
14574 +continue
14575 +fi
14576 +rm -f conftest.err conftest.$ac_ext
14577 +
14578 + # OK, works on sane cases. Now check whether non-existent headers
14579 + # can be detected and how.
14580 + cat >conftest.$ac_ext <<_ACEOF
14581 +/* confdefs.h. */
14582 +_ACEOF
14583 +cat confdefs.h >>conftest.$ac_ext
14584 +cat >>conftest.$ac_ext <<_ACEOF
14585 +/* end confdefs.h. */
14586 +#include <ac_nonexistent.h>
14587 +_ACEOF
14588 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14590 + ac_status=$?
14591 + grep -v '^ *+' conftest.er1 >conftest.err
14592 + rm -f conftest.er1
14593 + cat conftest.err >&5
14594 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 + (exit $ac_status); } >/dev/null; then
14596 + if test -s conftest.err; then
14597 + ac_cpp_err=$ac_c_preproc_warn_flag
14598 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14599 + else
14600 + ac_cpp_err=
14601 + fi
14602 +else
14603 + ac_cpp_err=yes
14604 +fi
14605 +if test -z "$ac_cpp_err"; then
14606 + # Broken: success on invalid input.
14607 +continue
14608 +else
14609 + echo "$as_me: failed program was:" >&5
14610 +sed 's/^/| /' conftest.$ac_ext >&5
14611 +
14612 + # Passes both tests.
14613 +ac_preproc_ok=:
14614 +break
14615 +fi
14616 +rm -f conftest.err conftest.$ac_ext
14617 +
14618 +done
14619 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14620 +rm -f conftest.err conftest.$ac_ext
14621 +if $ac_preproc_ok; then
14622 + :
14623 +else
14624 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14625 +See \`config.log' for more details." >&5
14626 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14627 +See \`config.log' for more details." >&2;}
14628 + { (exit 1); exit 1; }; }
14629 +fi
14630 +
14631 +ac_ext=c
14632 +ac_cpp='$CPP $CPPFLAGS'
14633 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14634 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14635 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14636 +
14637 +
14638 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14639 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14640 +if test "${ac_cv_header_stdc+set}" = set; then
14641 + echo $ECHO_N "(cached) $ECHO_C" >&6
14642 +else
14643 + cat >conftest.$ac_ext <<_ACEOF
14644 +/* confdefs.h. */
14645 +_ACEOF
14646 +cat confdefs.h >>conftest.$ac_ext
14647 +cat >>conftest.$ac_ext <<_ACEOF
14648 +/* end confdefs.h. */
14649 +#include <stdlib.h>
14650 +#include <stdarg.h>
14651 +#include <string.h>
14652 +#include <float.h>
14653 +
14654 +int
14655 +main ()
14656 +{
14657 +
14658 + ;
14659 + return 0;
14660 +}
14661 +_ACEOF
14662 +rm -f conftest.$ac_objext
14663 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 + (eval $ac_compile) 2>conftest.er1
14665 + ac_status=$?
14666 + grep -v '^ *+' conftest.er1 >conftest.err
14667 + rm -f conftest.er1
14668 + cat conftest.err >&5
14669 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 + (exit $ac_status); } &&
14671 + { ac_try='test -z "$ac_c_werror_flag"
14672 + || test ! -s conftest.err'
14673 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 + (eval $ac_try) 2>&5
14675 + ac_status=$?
14676 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 + (exit $ac_status); }; } &&
14678 + { ac_try='test -s conftest.$ac_objext'
14679 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 + (eval $ac_try) 2>&5
14681 + ac_status=$?
14682 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 + (exit $ac_status); }; }; then
14684 + ac_cv_header_stdc=yes
14685 +else
14686 + echo "$as_me: failed program was:" >&5
14687 +sed 's/^/| /' conftest.$ac_ext >&5
14688 +
14689 +ac_cv_header_stdc=no
14690 +fi
14691 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 +
14693 +if test $ac_cv_header_stdc = yes; then
14694 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14695 + cat >conftest.$ac_ext <<_ACEOF
14696 +/* confdefs.h. */
14697 +_ACEOF
14698 +cat confdefs.h >>conftest.$ac_ext
14699 +cat >>conftest.$ac_ext <<_ACEOF
14700 +/* end confdefs.h. */
14701 +#include <string.h>
14702 +
14703 +_ACEOF
14704 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14705 + $EGREP "memchr" >/dev/null 2>&1; then
14706 + :
14707 +else
14708 + ac_cv_header_stdc=no
14709 +fi
14710 +rm -f conftest*
14711 +
14712 +fi
14713 +
14714 +if test $ac_cv_header_stdc = yes; then
14715 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14716 + cat >conftest.$ac_ext <<_ACEOF
14717 +/* confdefs.h. */
14718 +_ACEOF
14719 +cat confdefs.h >>conftest.$ac_ext
14720 +cat >>conftest.$ac_ext <<_ACEOF
14721 +/* end confdefs.h. */
14722 +#include <stdlib.h>
14723 +
14724 +_ACEOF
14725 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14726 + $EGREP "free" >/dev/null 2>&1; then
14727 + :
14728 +else
14729 + ac_cv_header_stdc=no
14730 +fi
14731 +rm -f conftest*
14732 +
14733 +fi
14734 +
14735 +if test $ac_cv_header_stdc = yes; then
14736 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14737 + if test "$cross_compiling" = yes; then
14738 + :
14739 +else
14740 + cat >conftest.$ac_ext <<_ACEOF
14741 +/* confdefs.h. */
14742 +_ACEOF
14743 +cat confdefs.h >>conftest.$ac_ext
14744 +cat >>conftest.$ac_ext <<_ACEOF
14745 +/* end confdefs.h. */
14746 +#include <ctype.h>
14747 +#if ((' ' & 0x0FF) == 0x020)
14748 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14749 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14750 +#else
14751 +# define ISLOWER(c) \
14752 + (('a' <= (c) && (c) <= 'i') \
14753 + || ('j' <= (c) && (c) <= 'r') \
14754 + || ('s' <= (c) && (c) <= 'z'))
14755 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14756 +#endif
14757 +
14758 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14759 +int
14760 +main ()
14761 +{
14762 + int i;
14763 + for (i = 0; i < 256; i++)
14764 + if (XOR (islower (i), ISLOWER (i))
14765 + || toupper (i) != TOUPPER (i))
14766 + exit(2);
14767 + exit (0);
14768 +}
14769 +_ACEOF
14770 +rm -f conftest$ac_exeext
14771 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 + (eval $ac_link) 2>&5
14773 + ac_status=$?
14774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14776 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 + (eval $ac_try) 2>&5
14778 + ac_status=$?
14779 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 + (exit $ac_status); }; }; then
14781 + :
14782 +else
14783 + echo "$as_me: program exited with status $ac_status" >&5
14784 +echo "$as_me: failed program was:" >&5
14785 +sed 's/^/| /' conftest.$ac_ext >&5
14786 +
14787 +( exit $ac_status )
14788 +ac_cv_header_stdc=no
14789 +fi
14790 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14791 +fi
14792 +fi
14793 +fi
14794 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14795 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
14796 +if test $ac_cv_header_stdc = yes; then
14797 +
14798 +cat >>confdefs.h <<\_ACEOF
14799 +#define STDC_HEADERS 1
14800 +_ACEOF
14801 +
14802 +fi
14803 +
14804 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14805 +
14806 +
14807 +
14808 +
14809 +
14810 +
14811 +
14812 +
14813 +
14814 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14815 + inttypes.h stdint.h unistd.h
14816 +do
14817 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14819 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14820 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14821 + echo $ECHO_N "(cached) $ECHO_C" >&6
14822 +else
14823 + cat >conftest.$ac_ext <<_ACEOF
14824 +/* confdefs.h. */
14825 +_ACEOF
14826 +cat confdefs.h >>conftest.$ac_ext
14827 +cat >>conftest.$ac_ext <<_ACEOF
14828 +/* end confdefs.h. */
14829 +$ac_includes_default
14830 +
14831 +#include <$ac_header>
14832 +_ACEOF
14833 +rm -f conftest.$ac_objext
14834 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 + (eval $ac_compile) 2>conftest.er1
14836 + ac_status=$?
14837 + grep -v '^ *+' conftest.er1 >conftest.err
14838 + rm -f conftest.er1
14839 + cat conftest.err >&5
14840 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 + (exit $ac_status); } &&
14842 + { ac_try='test -z "$ac_c_werror_flag"
14843 + || test ! -s conftest.err'
14844 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 + (eval $ac_try) 2>&5
14846 + ac_status=$?
14847 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 + (exit $ac_status); }; } &&
14849 + { ac_try='test -s conftest.$ac_objext'
14850 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 + (eval $ac_try) 2>&5
14852 + ac_status=$?
14853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 + (exit $ac_status); }; }; then
14855 + eval "$as_ac_Header=yes"
14856 +else
14857 + echo "$as_me: failed program was:" >&5
14858 +sed 's/^/| /' conftest.$ac_ext >&5
14859 +
14860 +eval "$as_ac_Header=no"
14861 +fi
14862 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14863 +fi
14864 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14865 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14866 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14867 + cat >>confdefs.h <<_ACEOF
14868 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14869 +_ACEOF
14870 +
14871 +fi
14872 +
14873 +done
14874 +
14875 +
14876 +
14877 +for ac_header in dlfcn.h
14878 +do
14879 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14880 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14881 + echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14883 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14884 + echo $ECHO_N "(cached) $ECHO_C" >&6
14885 +fi
14886 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14887 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14888 +else
14889 + # Is the header compilable?
14890 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14892 +cat >conftest.$ac_ext <<_ACEOF
14893 +/* confdefs.h. */
14894 +_ACEOF
14895 +cat confdefs.h >>conftest.$ac_ext
14896 +cat >>conftest.$ac_ext <<_ACEOF
14897 +/* end confdefs.h. */
14898 +$ac_includes_default
14899 +#include <$ac_header>
14900 +_ACEOF
14901 +rm -f conftest.$ac_objext
14902 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 + (eval $ac_compile) 2>conftest.er1
14904 + ac_status=$?
14905 + grep -v '^ *+' conftest.er1 >conftest.err
14906 + rm -f conftest.er1
14907 + cat conftest.err >&5
14908 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 + (exit $ac_status); } &&
14910 + { ac_try='test -z "$ac_c_werror_flag"
14911 + || test ! -s conftest.err'
14912 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 + (eval $ac_try) 2>&5
14914 + ac_status=$?
14915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 + (exit $ac_status); }; } &&
14917 + { ac_try='test -s conftest.$ac_objext'
14918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 + (eval $ac_try) 2>&5
14920 + ac_status=$?
14921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 + (exit $ac_status); }; }; then
14923 + ac_header_compiler=yes
14924 +else
14925 + echo "$as_me: failed program was:" >&5
14926 +sed 's/^/| /' conftest.$ac_ext >&5
14927 +
14928 +ac_header_compiler=no
14929 +fi
14930 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 +echo "${ECHO_T}$ac_header_compiler" >&6
14933 +
14934 +# Is the header present?
14935 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14937 +cat >conftest.$ac_ext <<_ACEOF
14938 +/* confdefs.h. */
14939 +_ACEOF
14940 +cat confdefs.h >>conftest.$ac_ext
14941 +cat >>conftest.$ac_ext <<_ACEOF
14942 +/* end confdefs.h. */
14943 +#include <$ac_header>
14944 +_ACEOF
14945 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14947 + ac_status=$?
14948 + grep -v '^ *+' conftest.er1 >conftest.err
14949 + rm -f conftest.er1
14950 + cat conftest.err >&5
14951 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 + (exit $ac_status); } >/dev/null; then
14953 + if test -s conftest.err; then
14954 + ac_cpp_err=$ac_c_preproc_warn_flag
14955 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14956 + else
14957 + ac_cpp_err=
14958 + fi
14959 +else
14960 + ac_cpp_err=yes
14961 +fi
14962 +if test -z "$ac_cpp_err"; then
14963 + ac_header_preproc=yes
14964 +else
14965 + echo "$as_me: failed program was:" >&5
14966 +sed 's/^/| /' conftest.$ac_ext >&5
14967 +
14968 + ac_header_preproc=no
14969 +fi
14970 +rm -f conftest.err conftest.$ac_ext
14971 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 +echo "${ECHO_T}$ac_header_preproc" >&6
14973 +
14974 +# So? What about this header?
14975 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976 + yes:no: )
14977 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981 + ac_header_preproc=yes
14982 + ;;
14983 + no:yes:* )
14984 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14987 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14988 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14991 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14992 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14996 + (
14997 + cat <<\_ASBOX
14998 +## ------------------------------------------- ##
14999 +## Report this to the Autotoolized Lua lists. ##
15000 +## ------------------------------------------- ##
15001 +_ASBOX
15002 + ) |
15003 + sed "s/^/$as_me: WARNING: /" >&2
15004 + ;;
15005 +esac
15006 +echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 + echo $ECHO_N "(cached) $ECHO_C" >&6
15010 +else
15011 + eval "$as_ac_Header=\$ac_header_preproc"
15012 +fi
15013 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15014 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15015 +
15016 +fi
15017 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018 + cat >>confdefs.h <<_ACEOF
15019 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15020 +_ACEOF
15021 +
15022 +fi
15023 +
15024 +done
15025 +
15026 +ac_ext=cc
15027 +ac_cpp='$CXXCPP $CPPFLAGS'
15028 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15031 +if test -n "$ac_tool_prefix"; then
15032 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15033 + do
15034 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15035 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15036 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15037 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15038 +if test "${ac_cv_prog_CXX+set}" = set; then
15039 + echo $ECHO_N "(cached) $ECHO_C" >&6
15040 +else
15041 + if test -n "$CXX"; then
15042 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
15043 +else
15044 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 +for as_dir in $PATH
15046 +do
15047 + IFS=$as_save_IFS
15048 + test -z "$as_dir" && as_dir=.
15049 + for ac_exec_ext in '' $ac_executable_extensions; do
15050 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15051 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15052 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15053 + break 2
15054 + fi
15055 +done
15056 +done
15057 +
15058 +fi
15059 +fi
15060 +CXX=$ac_cv_prog_CXX
15061 +if test -n "$CXX"; then
15062 + echo "$as_me:$LINENO: result: $CXX" >&5
15063 +echo "${ECHO_T}$CXX" >&6
15064 +else
15065 + echo "$as_me:$LINENO: result: no" >&5
15066 +echo "${ECHO_T}no" >&6
15067 +fi
15068 +
15069 + test -n "$CXX" && break
15070 + done
15071 +fi
15072 +if test -z "$CXX"; then
15073 + ac_ct_CXX=$CXX
15074 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15075 +do
15076 + # Extract the first word of "$ac_prog", so it can be a program name with args.
15077 +set dummy $ac_prog; ac_word=$2
15078 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15079 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15080 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15081 + echo $ECHO_N "(cached) $ECHO_C" >&6
15082 +else
15083 + if test -n "$ac_ct_CXX"; then
15084 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15085 +else
15086 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 +for as_dir in $PATH
15088 +do
15089 + IFS=$as_save_IFS
15090 + test -z "$as_dir" && as_dir=.
15091 + for ac_exec_ext in '' $ac_executable_extensions; do
15092 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 + ac_cv_prog_ac_ct_CXX="$ac_prog"
15094 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 + break 2
15096 + fi
15097 +done
15098 +done
15099 +
15100 +fi
15101 +fi
15102 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15103 +if test -n "$ac_ct_CXX"; then
15104 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15105 +echo "${ECHO_T}$ac_ct_CXX" >&6
15106 +else
15107 + echo "$as_me:$LINENO: result: no" >&5
15108 +echo "${ECHO_T}no" >&6
15109 +fi
15110 +
15111 + test -n "$ac_ct_CXX" && break
15112 +done
15113 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15114 +
15115 + CXX=$ac_ct_CXX
15116 +fi
15117 +
15118 +
15119 +# Provide some information about the compiler.
15120 +echo "$as_me:$LINENO:" \
15121 + "checking for C++ compiler version" >&5
15122 +ac_compiler=`set X $ac_compile; echo $2`
15123 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15124 + (eval $ac_compiler --version </dev/null >&5) 2>&5
15125 + ac_status=$?
15126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 + (exit $ac_status); }
15128 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15129 + (eval $ac_compiler -v </dev/null >&5) 2>&5
15130 + ac_status=$?
15131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 + (exit $ac_status); }
15133 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15134 + (eval $ac_compiler -V </dev/null >&5) 2>&5
15135 + ac_status=$?
15136 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 + (exit $ac_status); }
15138 +
15139 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15140 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15141 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15142 + echo $ECHO_N "(cached) $ECHO_C" >&6
15143 +else
15144 + cat >conftest.$ac_ext <<_ACEOF
15145 +/* confdefs.h. */
15146 +_ACEOF
15147 +cat confdefs.h >>conftest.$ac_ext
15148 +cat >>conftest.$ac_ext <<_ACEOF
15149 +/* end confdefs.h. */
15150 +
15151 +int
15152 +main ()
15153 +{
15154 +#ifndef __GNUC__
15155 + choke me
15156 +#endif
15157 +
15158 + ;
15159 + return 0;
15160 +}
15161 +_ACEOF
15162 +rm -f conftest.$ac_objext
15163 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 + (eval $ac_compile) 2>conftest.er1
15165 + ac_status=$?
15166 + grep -v '^ *+' conftest.er1 >conftest.err
15167 + rm -f conftest.er1
15168 + cat conftest.err >&5
15169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 + (exit $ac_status); } &&
15171 + { ac_try='test -z "$ac_cxx_werror_flag"
15172 + || test ! -s conftest.err'
15173 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 + (eval $ac_try) 2>&5
15175 + ac_status=$?
15176 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 + (exit $ac_status); }; } &&
15178 + { ac_try='test -s conftest.$ac_objext'
15179 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 + (eval $ac_try) 2>&5
15181 + ac_status=$?
15182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 + (exit $ac_status); }; }; then
15184 + ac_compiler_gnu=yes
15185 +else
15186 + echo "$as_me: failed program was:" >&5
15187 +sed 's/^/| /' conftest.$ac_ext >&5
15188 +
15189 +ac_compiler_gnu=no
15190 +fi
15191 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15193 +
15194 +fi
15195 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15196 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15197 +GXX=`test $ac_compiler_gnu = yes && echo yes`
15198 +ac_test_CXXFLAGS=${CXXFLAGS+set}
15199 +ac_save_CXXFLAGS=$CXXFLAGS
15200 +CXXFLAGS="-g"
15201 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15202 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15203 +if test "${ac_cv_prog_cxx_g+set}" = set; then
15204 + echo $ECHO_N "(cached) $ECHO_C" >&6
15205 +else
15206 + cat >conftest.$ac_ext <<_ACEOF
15207 +/* confdefs.h. */
15208 +_ACEOF
15209 +cat confdefs.h >>conftest.$ac_ext
15210 +cat >>conftest.$ac_ext <<_ACEOF
15211 +/* end confdefs.h. */
15212 +
15213 +int
15214 +main ()
15215 +{
15216 +
15217 + ;
15218 + return 0;
15219 +}
15220 +_ACEOF
15221 +rm -f conftest.$ac_objext
15222 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 + (eval $ac_compile) 2>conftest.er1
15224 + ac_status=$?
15225 + grep -v '^ *+' conftest.er1 >conftest.err
15226 + rm -f conftest.er1
15227 + cat conftest.err >&5
15228 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 + (exit $ac_status); } &&
15230 + { ac_try='test -z "$ac_cxx_werror_flag"
15231 + || test ! -s conftest.err'
15232 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 + (eval $ac_try) 2>&5
15234 + ac_status=$?
15235 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 + (exit $ac_status); }; } &&
15237 + { ac_try='test -s conftest.$ac_objext'
15238 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 + (eval $ac_try) 2>&5
15240 + ac_status=$?
15241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 + (exit $ac_status); }; }; then
15243 + ac_cv_prog_cxx_g=yes
15244 +else
15245 + echo "$as_me: failed program was:" >&5
15246 +sed 's/^/| /' conftest.$ac_ext >&5
15247 +
15248 +ac_cv_prog_cxx_g=no
15249 +fi
15250 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15251 +fi
15252 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15253 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15254 +if test "$ac_test_CXXFLAGS" = set; then
15255 + CXXFLAGS=$ac_save_CXXFLAGS
15256 +elif test $ac_cv_prog_cxx_g = yes; then
15257 + if test "$GXX" = yes; then
15258 + CXXFLAGS="-g -O2"
15259 + else
15260 + CXXFLAGS="-g"
15261 + fi
15262 +else
15263 + if test "$GXX" = yes; then
15264 + CXXFLAGS="-O2"
15265 + else
15266 + CXXFLAGS=
15267 + fi
15268 +fi
15269 +for ac_declaration in \
15270 + '' \
15271 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
15272 + 'extern "C" void std::exit (int); using std::exit;' \
15273 + 'extern "C" void exit (int) throw ();' \
15274 + 'extern "C" void exit (int);' \
15275 + 'void exit (int);'
15276 +do
15277 + cat >conftest.$ac_ext <<_ACEOF
15278 +/* confdefs.h. */
15279 +_ACEOF
15280 +cat confdefs.h >>conftest.$ac_ext
15281 +cat >>conftest.$ac_ext <<_ACEOF
15282 +/* end confdefs.h. */
15283 +$ac_declaration
15284 +#include <stdlib.h>
15285 +int
15286 +main ()
15287 +{
15288 +exit (42);
15289 + ;
15290 + return 0;
15291 +}
15292 +_ACEOF
15293 +rm -f conftest.$ac_objext
15294 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15295 + (eval $ac_compile) 2>conftest.er1
15296 + ac_status=$?
15297 + grep -v '^ *+' conftest.er1 >conftest.err
15298 + rm -f conftest.er1
15299 + cat conftest.err >&5
15300 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 + (exit $ac_status); } &&
15302 + { ac_try='test -z "$ac_cxx_werror_flag"
15303 + || test ! -s conftest.err'
15304 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 + (eval $ac_try) 2>&5
15306 + ac_status=$?
15307 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 + (exit $ac_status); }; } &&
15309 + { ac_try='test -s conftest.$ac_objext'
15310 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 + (eval $ac_try) 2>&5
15312 + ac_status=$?
15313 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 + (exit $ac_status); }; }; then
15315 + :
15316 +else
15317 + echo "$as_me: failed program was:" >&5
15318 +sed 's/^/| /' conftest.$ac_ext >&5
15319 +
15320 +continue
15321 +fi
15322 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15323 + cat >conftest.$ac_ext <<_ACEOF
15324 +/* confdefs.h. */
15325 +_ACEOF
15326 +cat confdefs.h >>conftest.$ac_ext
15327 +cat >>conftest.$ac_ext <<_ACEOF
15328 +/* end confdefs.h. */
15329 +$ac_declaration
15330 +int
15331 +main ()
15332 +{
15333 +exit (42);
15334 + ;
15335 + return 0;
15336 +}
15337 +_ACEOF
15338 +rm -f conftest.$ac_objext
15339 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 + (eval $ac_compile) 2>conftest.er1
15341 + ac_status=$?
15342 + grep -v '^ *+' conftest.er1 >conftest.err
15343 + rm -f conftest.er1
15344 + cat conftest.err >&5
15345 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 + (exit $ac_status); } &&
15347 + { ac_try='test -z "$ac_cxx_werror_flag"
15348 + || test ! -s conftest.err'
15349 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 + (eval $ac_try) 2>&5
15351 + ac_status=$?
15352 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 + (exit $ac_status); }; } &&
15354 + { ac_try='test -s conftest.$ac_objext'
15355 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 + (eval $ac_try) 2>&5
15357 + ac_status=$?
15358 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 + (exit $ac_status); }; }; then
15360 + break
15361 +else
15362 + echo "$as_me: failed program was:" >&5
15363 +sed 's/^/| /' conftest.$ac_ext >&5
15364 +
15365 +fi
15366 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15367 +done
15368 +rm -f conftest*
15369 +if test -n "$ac_declaration"; then
15370 + echo '#ifdef __cplusplus' >>confdefs.h
15371 + echo $ac_declaration >>confdefs.h
15372 + echo '#endif' >>confdefs.h
15373 +fi
15374 +
15375 +ac_ext=cc
15376 +ac_cpp='$CXXCPP $CPPFLAGS'
15377 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15380 +
15381 +depcc="$CXX" am_compiler_list=
15382 +
15383 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15384 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15385 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15386 + echo $ECHO_N "(cached) $ECHO_C" >&6
15387 +else
15388 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15389 + # We make a subdir and do the tests there. Otherwise we can end up
15390 + # making bogus files that we don't know about and never remove. For
15391 + # instance it was reported that on HP-UX the gcc test will end up
15392 + # making a dummy file named `D' -- because `-MD' means `put the output
15393 + # in D'.
15394 + mkdir conftest.dir
15395 + # Copy depcomp to subdir because otherwise we won't find it if we're
15396 + # using a relative directory.
15397 + cp "$am_depcomp" conftest.dir
15398 + cd conftest.dir
15399 + # We will build objects and dependencies in a subdirectory because
15400 + # it helps to detect inapplicable dependency modes. For instance
15401 + # both Tru64's cc and ICC support -MD to output dependencies as a
15402 + # side effect of compilation, but ICC will put the dependencies in
15403 + # the current directory while Tru64 will put them in the object
15404 + # directory.
15405 + mkdir sub
15406 +
15407 + am_cv_CXX_dependencies_compiler_type=none
15408 + if test "$am_compiler_list" = ""; then
15409 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15410 + fi
15411 + for depmode in $am_compiler_list; do
15412 + # Setup a source with many dependencies, because some compilers
15413 + # like to wrap large dependency lists on column 80 (with \), and
15414 + # we should not choose a depcomp mode which is confused by this.
15415 + #
15416 + # We need to recreate these files for each test, as the compiler may
15417 + # overwrite some of them when testing with obscure command lines.
15418 + # This happens at least with the AIX C compiler.
15419 + : > sub/conftest.c
15420 + for i in 1 2 3 4 5 6; do
15421 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
15422 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15423 + # Solaris 8's {/usr,}/bin/sh.
15424 + touch sub/conftst$i.h
15425 + done
15426 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15427 +
15428 + case $depmode in
15429 + nosideeffect)
15430 + # after this tag, mechanisms are not by side-effect, so they'll
15431 + # only be used when explicitly requested
15432 + if test "x$enable_dependency_tracking" = xyes; then
15433 + continue
15434 + else
15435 + break
15436 + fi
15437 + ;;
15438 + none) break ;;
15439 + esac
15440 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
15441 + # mode. It turns out that the SunPro C++ compiler does not properly
15442 + # handle `-M -o', and we need to detect this.
15443 + if depmode=$depmode \
15444 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15445 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15446 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15447 + >/dev/null 2>conftest.err &&
15448 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15449 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15450 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15451 + # icc doesn't choke on unknown options, it will just issue warnings
15452 + # or remarks (even with -Werror). So we grep stderr for any message
15453 + # that says an option was ignored or not supported.
15454 + # When given -MP, icc 7.0 and 7.1 complain thusly:
15455 + # icc: Command line warning: ignoring option '-M'; no argument required
15456 + # The diagnosis changed in icc 8.0:
15457 + # icc: Command line remark: option '-MP' not supported
15458 + if (grep 'ignoring option' conftest.err ||
15459 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15460 + am_cv_CXX_dependencies_compiler_type=$depmode
15461 + break
15462 + fi
15463 + fi
15464 + done
15465 +
15466 + cd ..
15467 + rm -rf conftest.dir
15468 +else
15469 + am_cv_CXX_dependencies_compiler_type=none
15470 +fi
15471 +
15472 +fi
15473 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15474 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15475 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15476 +
15477 +
15478 +
15479 +if
15480 + test "x$enable_dependency_tracking" != xno \
15481 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15482 + am__fastdepCXX_TRUE=
15483 + am__fastdepCXX_FALSE='#'
15484 +else
15485 + am__fastdepCXX_TRUE='#'
15486 + am__fastdepCXX_FALSE=
15487 +fi
15488 +
15489 +
15490 +
15491 +
15492 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15493 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15494 + (test "X$CXX" != "Xg++"))) ; then
15495 + ac_ext=cc
15496 +ac_cpp='$CXXCPP $CPPFLAGS'
15497 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15500 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15501 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15502 +if test -z "$CXXCPP"; then
15503 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
15504 + echo $ECHO_N "(cached) $ECHO_C" >&6
15505 +else
15506 + # Double quotes because CXXCPP needs to be expanded
15507 + for CXXCPP in "$CXX -E" "/lib/cpp"
15508 + do
15509 + ac_preproc_ok=false
15510 +for ac_cxx_preproc_warn_flag in '' yes
15511 +do
15512 + # Use a header file that comes with gcc, so configuring glibc
15513 + # with a fresh cross-compiler works.
15514 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515 + # <limits.h> exists even on freestanding compilers.
15516 + # On the NeXT, cc -E runs the code through the compiler's parser,
15517 + # not just through cpp. "Syntax error" is here to catch this case.
15518 + cat >conftest.$ac_ext <<_ACEOF
15519 +/* confdefs.h. */
15520 +_ACEOF
15521 +cat confdefs.h >>conftest.$ac_ext
15522 +cat >>conftest.$ac_ext <<_ACEOF
15523 +/* end confdefs.h. */
15524 +#ifdef __STDC__
15525 +# include <limits.h>
15526 +#else
15527 +# include <assert.h>
15528 +#endif
15529 + Syntax error
15530 +_ACEOF
15531 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15533 + ac_status=$?
15534 + grep -v '^ *+' conftest.er1 >conftest.err
15535 + rm -f conftest.er1
15536 + cat conftest.err >&5
15537 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 + (exit $ac_status); } >/dev/null; then
15539 + if test -s conftest.err; then
15540 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15541 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15542 + else
15543 + ac_cpp_err=
15544 + fi
15545 +else
15546 + ac_cpp_err=yes
15547 +fi
15548 +if test -z "$ac_cpp_err"; then
15549 + :
15550 +else
15551 + echo "$as_me: failed program was:" >&5
15552 +sed 's/^/| /' conftest.$ac_ext >&5
15553 +
15554 + # Broken: fails on valid input.
15555 +continue
15556 +fi
15557 +rm -f conftest.err conftest.$ac_ext
15558 +
15559 + # OK, works on sane cases. Now check whether non-existent headers
15560 + # can be detected and how.
15561 + cat >conftest.$ac_ext <<_ACEOF
15562 +/* confdefs.h. */
15563 +_ACEOF
15564 +cat confdefs.h >>conftest.$ac_ext
15565 +cat >>conftest.$ac_ext <<_ACEOF
15566 +/* end confdefs.h. */
15567 +#include <ac_nonexistent.h>
15568 +_ACEOF
15569 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15570 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15571 + ac_status=$?
15572 + grep -v '^ *+' conftest.er1 >conftest.err
15573 + rm -f conftest.er1
15574 + cat conftest.err >&5
15575 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 + (exit $ac_status); } >/dev/null; then
15577 + if test -s conftest.err; then
15578 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15579 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15580 + else
15581 + ac_cpp_err=
15582 + fi
15583 +else
15584 + ac_cpp_err=yes
15585 +fi
15586 +if test -z "$ac_cpp_err"; then
15587 + # Broken: success on invalid input.
15588 +continue
15589 +else
15590 + echo "$as_me: failed program was:" >&5
15591 +sed 's/^/| /' conftest.$ac_ext >&5
15592 +
15593 + # Passes both tests.
15594 +ac_preproc_ok=:
15595 +break
15596 +fi
15597 +rm -f conftest.err conftest.$ac_ext
15598 +
15599 +done
15600 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15601 +rm -f conftest.err conftest.$ac_ext
15602 +if $ac_preproc_ok; then
15603 + break
15604 +fi
15605 +
15606 + done
15607 + ac_cv_prog_CXXCPP=$CXXCPP
15608 +
15609 +fi
15610 + CXXCPP=$ac_cv_prog_CXXCPP
15611 +else
15612 + ac_cv_prog_CXXCPP=$CXXCPP
15613 +fi
15614 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
15615 +echo "${ECHO_T}$CXXCPP" >&6
15616 +ac_preproc_ok=false
15617 +for ac_cxx_preproc_warn_flag in '' yes
15618 +do
15619 + # Use a header file that comes with gcc, so configuring glibc
15620 + # with a fresh cross-compiler works.
15621 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622 + # <limits.h> exists even on freestanding compilers.
15623 + # On the NeXT, cc -E runs the code through the compiler's parser,
15624 + # not just through cpp. "Syntax error" is here to catch this case.
15625 + cat >conftest.$ac_ext <<_ACEOF
15626 +/* confdefs.h. */
15627 +_ACEOF
15628 +cat confdefs.h >>conftest.$ac_ext
15629 +cat >>conftest.$ac_ext <<_ACEOF
15630 +/* end confdefs.h. */
15631 +#ifdef __STDC__
15632 +# include <limits.h>
15633 +#else
15634 +# include <assert.h>
15635 +#endif
15636 + Syntax error
15637 +_ACEOF
15638 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 + ac_status=$?
15641 + grep -v '^ *+' conftest.er1 >conftest.err
15642 + rm -f conftest.er1
15643 + cat conftest.err >&5
15644 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 + (exit $ac_status); } >/dev/null; then
15646 + if test -s conftest.err; then
15647 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15648 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15649 + else
15650 + ac_cpp_err=
15651 + fi
15652 +else
15653 + ac_cpp_err=yes
15654 +fi
15655 +if test -z "$ac_cpp_err"; then
15656 + :
15657 +else
15658 + echo "$as_me: failed program was:" >&5
15659 +sed 's/^/| /' conftest.$ac_ext >&5
15660 +
15661 + # Broken: fails on valid input.
15662 +continue
15663 +fi
15664 +rm -f conftest.err conftest.$ac_ext
15665 +
15666 + # OK, works on sane cases. Now check whether non-existent headers
15667 + # can be detected and how.
15668 + cat >conftest.$ac_ext <<_ACEOF
15669 +/* confdefs.h. */
15670 +_ACEOF
15671 +cat confdefs.h >>conftest.$ac_ext
15672 +cat >>conftest.$ac_ext <<_ACEOF
15673 +/* end confdefs.h. */
15674 +#include <ac_nonexistent.h>
15675 +_ACEOF
15676 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15677 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15678 + ac_status=$?
15679 + grep -v '^ *+' conftest.er1 >conftest.err
15680 + rm -f conftest.er1
15681 + cat conftest.err >&5
15682 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 + (exit $ac_status); } >/dev/null; then
15684 + if test -s conftest.err; then
15685 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15686 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15687 + else
15688 + ac_cpp_err=
15689 + fi
15690 +else
15691 + ac_cpp_err=yes
15692 +fi
15693 +if test -z "$ac_cpp_err"; then
15694 + # Broken: success on invalid input.
15695 +continue
15696 +else
15697 + echo "$as_me: failed program was:" >&5
15698 +sed 's/^/| /' conftest.$ac_ext >&5
15699 +
15700 + # Passes both tests.
15701 +ac_preproc_ok=:
15702 +break
15703 +fi
15704 +rm -f conftest.err conftest.$ac_ext
15705 +
15706 +done
15707 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15708 +rm -f conftest.err conftest.$ac_ext
15709 +if $ac_preproc_ok; then
15710 + :
15711 +else
15712 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15713 +See \`config.log' for more details." >&5
15714 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15715 +See \`config.log' for more details." >&2;}
15716 + { (exit 1); exit 1; }; }
15717 +fi
15718 +
15719 +ac_ext=cc
15720 +ac_cpp='$CXXCPP $CPPFLAGS'
15721 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15724 +
15725 +fi
15726 +
15727 +
15728 +ac_ext=f
15729 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15730 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15732 +if test -n "$ac_tool_prefix"; then
15733 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15734 + do
15735 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15736 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15737 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15738 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15739 +if test "${ac_cv_prog_F77+set}" = set; then
15740 + echo $ECHO_N "(cached) $ECHO_C" >&6
15741 +else
15742 + if test -n "$F77"; then
15743 + ac_cv_prog_F77="$F77" # Let the user override the test.
15744 +else
15745 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15746 +for as_dir in $PATH
15747 +do
15748 + IFS=$as_save_IFS
15749 + test -z "$as_dir" && as_dir=.
15750 + for ac_exec_ext in '' $ac_executable_extensions; do
15751 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15752 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15753 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15754 + break 2
15755 + fi
15756 +done
15757 +done
15758 +
15759 +fi
15760 +fi
15761 +F77=$ac_cv_prog_F77
15762 +if test -n "$F77"; then
15763 + echo "$as_me:$LINENO: result: $F77" >&5
15764 +echo "${ECHO_T}$F77" >&6
15765 +else
15766 + echo "$as_me:$LINENO: result: no" >&5
15767 +echo "${ECHO_T}no" >&6
15768 +fi
15769 +
15770 + test -n "$F77" && break
15771 + done
15772 +fi
15773 +if test -z "$F77"; then
15774 + ac_ct_F77=$F77
15775 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15776 +do
15777 + # Extract the first word of "$ac_prog", so it can be a program name with args.
15778 +set dummy $ac_prog; ac_word=$2
15779 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15780 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15781 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
15782 + echo $ECHO_N "(cached) $ECHO_C" >&6
15783 +else
15784 + if test -n "$ac_ct_F77"; then
15785 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15786 +else
15787 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 +for as_dir in $PATH
15789 +do
15790 + IFS=$as_save_IFS
15791 + test -z "$as_dir" && as_dir=.
15792 + for ac_exec_ext in '' $ac_executable_extensions; do
15793 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15794 + ac_cv_prog_ac_ct_F77="$ac_prog"
15795 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15796 + break 2
15797 + fi
15798 +done
15799 +done
15800 +
15801 +fi
15802 +fi
15803 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
15804 +if test -n "$ac_ct_F77"; then
15805 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15806 +echo "${ECHO_T}$ac_ct_F77" >&6
15807 +else
15808 + echo "$as_me:$LINENO: result: no" >&5
15809 +echo "${ECHO_T}no" >&6
15810 +fi
15811 +
15812 + test -n "$ac_ct_F77" && break
15813 +done
15814 +
15815 + F77=$ac_ct_F77
15816 +fi
15817 +
15818 +
15819 +# Provide some information about the compiler.
15820 +echo "$as_me:5276:" \
15821 + "checking for Fortran 77 compiler version" >&5
15822 +ac_compiler=`set X $ac_compile; echo $2`
15823 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15824 + (eval $ac_compiler --version </dev/null >&5) 2>&5
15825 + ac_status=$?
15826 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 + (exit $ac_status); }
15828 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15829 + (eval $ac_compiler -v </dev/null >&5) 2>&5
15830 + ac_status=$?
15831 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 + (exit $ac_status); }
15833 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15834 + (eval $ac_compiler -V </dev/null >&5) 2>&5
15835 + ac_status=$?
15836 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 + (exit $ac_status); }
15838 +rm -f a.out
15839 +
15840 +# If we don't use `.F' as extension, the preprocessor is not run on the
15841 +# input file. (Note that this only needs to work for GNU compilers.)
15842 +ac_save_ext=$ac_ext
15843 +ac_ext=F
15844 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15845 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
15846 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
15847 + echo $ECHO_N "(cached) $ECHO_C" >&6
15848 +else
15849 + cat >conftest.$ac_ext <<_ACEOF
15850 + program main
15851 +#ifndef __GNUC__
15852 + choke me
15853 +#endif
15854 +
15855 + end
15856 +_ACEOF
15857 +rm -f conftest.$ac_objext
15858 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 + (eval $ac_compile) 2>conftest.er1
15860 + ac_status=$?
15861 + grep -v '^ *+' conftest.er1 >conftest.err
15862 + rm -f conftest.er1
15863 + cat conftest.err >&5
15864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 + (exit $ac_status); } &&
15866 + { ac_try='test -z "$ac_f77_werror_flag"
15867 + || test ! -s conftest.err'
15868 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 + (eval $ac_try) 2>&5
15870 + ac_status=$?
15871 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 + (exit $ac_status); }; } &&
15873 + { ac_try='test -s conftest.$ac_objext'
15874 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 + (eval $ac_try) 2>&5
15876 + ac_status=$?
15877 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 + (exit $ac_status); }; }; then
15879 + ac_compiler_gnu=yes
15880 +else
15881 + echo "$as_me: failed program was:" >&5
15882 +sed 's/^/| /' conftest.$ac_ext >&5
15883 +
15884 +ac_compiler_gnu=no
15885 +fi
15886 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15887 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15888 +
15889 +fi
15890 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15891 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
15892 +ac_ext=$ac_save_ext
15893 +ac_test_FFLAGS=${FFLAGS+set}
15894 +ac_save_FFLAGS=$FFLAGS
15895 +FFLAGS=
15896 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15897 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
15898 +if test "${ac_cv_prog_f77_g+set}" = set; then
15899 + echo $ECHO_N "(cached) $ECHO_C" >&6
15900 +else
15901 + FFLAGS=-g
15902 +cat >conftest.$ac_ext <<_ACEOF
15903 + program main
15904 +
15905 + end
15906 +_ACEOF
15907 +rm -f conftest.$ac_objext
15908 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 + (eval $ac_compile) 2>conftest.er1
15910 + ac_status=$?
15911 + grep -v '^ *+' conftest.er1 >conftest.err
15912 + rm -f conftest.er1
15913 + cat conftest.err >&5
15914 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 + (exit $ac_status); } &&
15916 + { ac_try='test -z "$ac_f77_werror_flag"
15917 + || test ! -s conftest.err'
15918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 + (eval $ac_try) 2>&5
15920 + ac_status=$?
15921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 + (exit $ac_status); }; } &&
15923 + { ac_try='test -s conftest.$ac_objext'
15924 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 + (eval $ac_try) 2>&5
15926 + ac_status=$?
15927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 + (exit $ac_status); }; }; then
15929 + ac_cv_prog_f77_g=yes
15930 +else
15931 + echo "$as_me: failed program was:" >&5
15932 +sed 's/^/| /' conftest.$ac_ext >&5
15933 +
15934 +ac_cv_prog_f77_g=no
15935 +fi
15936 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937 +
15938 +fi
15939 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
15940 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
15941 +if test "$ac_test_FFLAGS" = set; then
15942 + FFLAGS=$ac_save_FFLAGS
15943 +elif test $ac_cv_prog_f77_g = yes; then
15944 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15945 + FFLAGS="-g -O2"
15946 + else
15947 + FFLAGS="-g"
15948 + fi
15949 +else
15950 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15951 + FFLAGS="-O2"
15952 + else
15953 + FFLAGS=
15954 + fi
15955 +fi
15956 +
15957 +G77=`test $ac_compiler_gnu = yes && echo yes`
15958 +ac_ext=c
15959 +ac_cpp='$CPP $CPPFLAGS'
15960 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963 +
15964 +
15965 +
15966 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
15967 +
15968 +# find the maximum length of command line arguments
15969 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
15970 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
15971 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
15972 + echo $ECHO_N "(cached) $ECHO_C" >&6
15973 +else
15974 + i=0
15975 + teststring="ABCD"
15976 +
15977 + case $build_os in
15978 + msdosdjgpp*)
15979 + # On DJGPP, this test can blow up pretty badly due to problems in libc
15980 + # (any single argument exceeding 2000 bytes causes a buffer overrun
15981 + # during glob expansion). Even if it were fixed, the result of this
15982 + # check would be larger than it should be.
15983 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
15984 + ;;
15985 +
15986 + gnu*)
15987 + # Under GNU Hurd, this test is not required because there is
15988 + # no limit to the length of command line arguments.
15989 + # Libtool will interpret -1 as no limit whatsoever
15990 + lt_cv_sys_max_cmd_len=-1;
15991 + ;;
15992 +
15993 + cygwin* | mingw*)
15994 + # On Win9x/ME, this test blows up -- it succeeds, but takes
15995 + # about 5 minutes as the teststring grows exponentially.
15996 + # Worse, since 9x/ME are not pre-emptively multitasking,
15997 + # you end up with a "frozen" computer, even though with patience
15998 + # the test eventually succeeds (with a max line length of 256k).
15999 + # Instead, let's just punt: use the minimum linelength reported by
16000 + # all of the supported platforms: 8192 (on NT/2K/XP).
16001 + lt_cv_sys_max_cmd_len=8192;
16002 + ;;
16003 +
16004 + amigaos*)
16005 + # On AmigaOS with pdksh, this test takes hours, literally.
16006 + # So we just punt and use a minimum line length of 8192.
16007 + lt_cv_sys_max_cmd_len=8192;
16008 + ;;
16009 +
16010 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16011 + # This has been around since 386BSD, at least. Likely further.
16012 + if test -x /sbin/sysctl; then
16013 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16014 + elif test -x /usr/sbin/sysctl; then
16015 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16016 + else
16017 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16018 + fi
16019 + # And add a safety zone
16020 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16021 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16022 + ;;
16023 +
16024 + interix*)
16025 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
16026 + lt_cv_sys_max_cmd_len=196608
16027 + ;;
16028 +
16029 + osf*)
16030 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16031 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16032 + # nice to cause kernel panics so lets avoid the loop below.
16033 + # First set a reasonable default.
16034 + lt_cv_sys_max_cmd_len=16384
16035 + #
16036 + if test -x /sbin/sysconfig; then
16037 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16038 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
16039 + esac
16040 + fi
16041 + ;;
16042 + sco3.2v5*)
16043 + lt_cv_sys_max_cmd_len=102400
16044 + ;;
16045 + sysv5* | sco5v6* | sysv4.2uw2*)
16046 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16047 + if test -n "$kargmax"; then
16048 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16049 + else
16050 + lt_cv_sys_max_cmd_len=32768
16051 + fi
16052 + ;;
16053 + *)
16054 + # If test is not a shell built-in, we'll probably end up computing a
16055 + # maximum length that is only half of the actual maximum length, but
16056 + # we can't tell.
16057 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16058 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16059 + = "XX$teststring") >/dev/null 2>&1 &&
16060 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
16061 + lt_cv_sys_max_cmd_len=$new_result &&
16062 + test $i != 17 # 1/2 MB should be enough
16063 + do
16064 + i=`expr $i + 1`
16065 + teststring=$teststring$teststring
16066 + done
16067 + teststring=
16068 + # Add a significant safety factor because C++ compilers can tack on massive
16069 + # amounts of additional arguments before passing them to the linker.
16070 + # It appears as though 1/2 is a usable value.
16071 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16072 + ;;
16073 + esac
16074 +
16075 +fi
16076 +
16077 +if test -n $lt_cv_sys_max_cmd_len ; then
16078 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16079 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16080 +else
16081 + echo "$as_me:$LINENO: result: none" >&5
16082 +echo "${ECHO_T}none" >&6
16083 +fi
16084 +
16085 +
16086 +
16087 +
16088 +# Check for command to grab the raw symbol name followed by C symbol from nm.
16089 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16090 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16091 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16092 + echo $ECHO_N "(cached) $ECHO_C" >&6
16093 +else
16094 +
16095 +# These are sane defaults that work on at least a few old systems.
16096 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
16097 +
16098 +# Character class describing NM global symbol codes.
16099 +symcode='[BCDEGRST]'
16100 +
16101 +# Regexp to match symbols that can be accessed directly from C.
16102 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16103 +
16104 +# Transform an extracted symbol line into a proper C declaration
16105 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16106 +
16107 +# Transform an extracted symbol line into symbol name and symbol address
16108 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16109 +
16110 +# Define system-specific variables.
16111 +case $host_os in
16112 +aix*)
16113 + symcode='[BCDT]'
16114 + ;;
16115 +cygwin* | mingw* | pw32*)
16116 + symcode='[ABCDGISTW]'
16117 + ;;
16118 +hpux*) # Its linker distinguishes data from code symbols
16119 + if test "$host_cpu" = ia64; then
16120 + symcode='[ABCDEGRST]'
16121 + fi
16122 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16123 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16124 + ;;
16125 +linux*)
16126 + if test "$host_cpu" = ia64; then
16127 + symcode='[ABCDGIRSTW]'
16128 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16129 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16130 + fi
16131 + ;;
16132 +irix* | nonstopux*)
16133 + symcode='[BCDEGRST]'
16134 + ;;
16135 +osf*)
16136 + symcode='[BCDEGQRST]'
16137 + ;;
16138 +solaris*)
16139 + symcode='[BDRT]'
16140 + ;;
16141 +sco3.2v5*)
16142 + symcode='[DT]'
16143 + ;;
16144 +sysv4.2uw2*)
16145 + symcode='[DT]'
16146 + ;;
16147 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
16148 + symcode='[ABDT]'
16149 + ;;
16150 +sysv4)
16151 + symcode='[DFNSTU]'
16152 + ;;
16153 +esac
16154 +
16155 +# Handle CRLF in mingw tool chain
16156 +opt_cr=
16157 +case $build_os in
16158 +mingw*)
16159 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16160 + ;;
16161 +esac
16162 +
16163 +# If we're using GNU nm, then use its standard symbol codes.
16164 +case `$NM -V 2>&1` in
16165 +*GNU* | *'with BFD'*)
16166 + symcode='[ABCDGIRSTW]' ;;
16167 +esac
16168 +
16169 +# Try without a prefix undercore, then with it.
16170 +for ac_symprfx in "" "_"; do
16171 +
16172 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16173 + symxfrm="\\1 $ac_symprfx\\2 \\2"
16174 +
16175 + # Write the raw and C identifiers.
16176 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16177 +
16178 + # Check to see that the pipe works correctly.
16179 + pipe_works=no
16180 +
16181 + rm -f conftest*
16182 + cat > conftest.$ac_ext <<EOF
16183 +#ifdef __cplusplus
16184 +extern "C" {
16185 +#endif
16186 +char nm_test_var;
16187 +void nm_test_func(){}
16188 +#ifdef __cplusplus
16189 +}
16190 +#endif
16191 +int main(){nm_test_var='a';nm_test_func();return(0);}
16192 +EOF
16193 +
16194 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 + (eval $ac_compile) 2>&5
16196 + ac_status=$?
16197 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 + (exit $ac_status); }; then
16199 + # Now try to grab the symbols.
16200 + nlist=conftest.nm
16201 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16202 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16203 + ac_status=$?
16204 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 + (exit $ac_status); } && test -s "$nlist"; then
16206 + # Try sorting and uniquifying the output.
16207 + if sort "$nlist" | uniq > "$nlist"T; then
16208 + mv -f "$nlist"T "$nlist"
16209 + else
16210 + rm -f "$nlist"T
16211 + fi
16212 +
16213 + # Make sure that we snagged all the symbols we need.
16214 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
16215 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
16216 + cat <<EOF > conftest.$ac_ext
16217 +#ifdef __cplusplus
16218 +extern "C" {
16219 +#endif
16220 +
16221 +EOF
16222 + # Now generate the symbol file.
16223 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16224 +
16225 + cat <<EOF >> conftest.$ac_ext
16226 +#if defined (__STDC__) && __STDC__
16227 +# define lt_ptr_t void *
16228 +#else
16229 +# define lt_ptr_t char *
16230 +# define const
16231 +#endif
16232 +
16233 +/* The mapping between symbol names and symbols. */
16234 +const struct {
16235 + const char *name;
16236 + lt_ptr_t address;
16237 +}
16238 +lt_preloaded_symbols[] =
16239 +{
16240 +EOF
16241 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16242 + cat <<\EOF >> conftest.$ac_ext
16243 + {0, (lt_ptr_t) 0}
16244 +};
16245 +
16246 +#ifdef __cplusplus
16247 +}
16248 +#endif
16249 +EOF
16250 + # Now try linking the two files.
16251 + mv conftest.$ac_objext conftstm.$ac_objext
16252 + lt_save_LIBS="$LIBS"
16253 + lt_save_CFLAGS="$CFLAGS"
16254 + LIBS="conftstm.$ac_objext"
16255 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16256 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 + (eval $ac_link) 2>&5
16258 + ac_status=$?
16259 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
16261 + pipe_works=yes
16262 + fi
16263 + LIBS="$lt_save_LIBS"
16264 + CFLAGS="$lt_save_CFLAGS"
16265 + else
16266 + echo "cannot find nm_test_func in $nlist" >&5
16267 + fi
16268 + else
16269 + echo "cannot find nm_test_var in $nlist" >&5
16270 + fi
16271 + else
16272 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16273 + fi
16274 + else
16275 + echo "$progname: failed program was:" >&5
16276 + cat conftest.$ac_ext >&5
16277 + fi
16278 + rm -f conftest* conftst*
16279 +
16280 + # Do not use the global_symbol_pipe unless it works.
16281 + if test "$pipe_works" = yes; then
16282 + break
16283 + else
16284 + lt_cv_sys_global_symbol_pipe=
16285 + fi
16286 +done
16287 +
16288 +fi
16289 +
16290 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
16291 + lt_cv_sys_global_symbol_to_cdecl=
16292 +fi
16293 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16294 + echo "$as_me:$LINENO: result: failed" >&5
16295 +echo "${ECHO_T}failed" >&6
16296 +else
16297 + echo "$as_me:$LINENO: result: ok" >&5
16298 +echo "${ECHO_T}ok" >&6
16299 +fi
16300 +
16301 +echo "$as_me:$LINENO: checking for objdir" >&5
16302 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16303 +if test "${lt_cv_objdir+set}" = set; then
16304 + echo $ECHO_N "(cached) $ECHO_C" >&6
16305 +else
16306 + rm -f .libs 2>/dev/null
16307 +mkdir .libs 2>/dev/null
16308 +if test -d .libs; then
16309 + lt_cv_objdir=.libs
16310 +else
16311 + # MS-DOS does not allow filenames that begin with a dot.
16312 + lt_cv_objdir=_libs
16313 +fi
16314 +rmdir .libs 2>/dev/null
16315 +fi
16316 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16317 +echo "${ECHO_T}$lt_cv_objdir" >&6
16318 +objdir=$lt_cv_objdir
16319 +
16320 +
16321 +
16322 +
16323 +
16324 +case $host_os in
16325 +aix3*)
16326 + # AIX sometimes has problems with the GCC collect2 program. For some
16327 + # reason, if we set the COLLECT_NAMES environment variable, the problems
16328 + # vanish in a puff of smoke.
16329 + if test "X${COLLECT_NAMES+set}" != Xset; then
16330 + COLLECT_NAMES=
16331 + export COLLECT_NAMES
16332 + fi
16333 + ;;
16334 +esac
16335 +
16336 +# Sed substitution that helps us do robust quoting. It backslashifies
16337 +# metacharacters that are still active within double-quoted strings.
16338 +Xsed='sed -e 1s/^X//'
16339 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16340 +
16341 +# Same as above, but do not quote variable references.
16342 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16343 +
16344 +# Sed substitution to delay expansion of an escaped shell variable in a
16345 +# double_quote_subst'ed string.
16346 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16347 +
16348 +# Sed substitution to avoid accidental globbing in evaled expressions
16349 +no_glob_subst='s/\*/\\\*/g'
16350 +
16351 +# Constants:
16352 +rm="rm -f"
16353 +
16354 +# Global variables:
16355 +default_ofile=libtool
16356 +can_build_shared=yes
16357 +
16358 +# All known linkers require a `.a' archive for static linking (except MSVC,
16359 +# which needs '.lib').
16360 +libext=a
16361 +ltmain="$ac_aux_dir/ltmain.sh"
16362 +ofile="$default_ofile"
16363 +with_gnu_ld="$lt_cv_prog_gnu_ld"
16364 +
16365 +if test -n "$ac_tool_prefix"; then
16366 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16367 +set dummy ${ac_tool_prefix}ar; ac_word=$2
16368 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16369 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16370 +if test "${ac_cv_prog_AR+set}" = set; then
16371 + echo $ECHO_N "(cached) $ECHO_C" >&6
16372 +else
16373 + if test -n "$AR"; then
16374 + ac_cv_prog_AR="$AR" # Let the user override the test.
16375 +else
16376 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16377 +for as_dir in $PATH
16378 +do
16379 + IFS=$as_save_IFS
16380 + test -z "$as_dir" && as_dir=.
16381 + for ac_exec_ext in '' $ac_executable_extensions; do
16382 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16383 + ac_cv_prog_AR="${ac_tool_prefix}ar"
16384 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16385 + break 2
16386 + fi
16387 +done
16388 +done
16389 +
16390 +fi
16391 +fi
16392 +AR=$ac_cv_prog_AR
16393 +if test -n "$AR"; then
16394 + echo "$as_me:$LINENO: result: $AR" >&5
16395 +echo "${ECHO_T}$AR" >&6
16396 +else
16397 + echo "$as_me:$LINENO: result: no" >&5
16398 +echo "${ECHO_T}no" >&6
16399 +fi
16400 +
16401 +fi
16402 +if test -z "$ac_cv_prog_AR"; then
16403 + ac_ct_AR=$AR
16404 + # Extract the first word of "ar", so it can be a program name with args.
16405 +set dummy ar; ac_word=$2
16406 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16407 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16408 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16409 + echo $ECHO_N "(cached) $ECHO_C" >&6
16410 +else
16411 + if test -n "$ac_ct_AR"; then
16412 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16413 +else
16414 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 +for as_dir in $PATH
16416 +do
16417 + IFS=$as_save_IFS
16418 + test -z "$as_dir" && as_dir=.
16419 + for ac_exec_ext in '' $ac_executable_extensions; do
16420 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421 + ac_cv_prog_ac_ct_AR="ar"
16422 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16423 + break 2
16424 + fi
16425 +done
16426 +done
16427 +
16428 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16429 +fi
16430 +fi
16431 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
16432 +if test -n "$ac_ct_AR"; then
16433 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16434 +echo "${ECHO_T}$ac_ct_AR" >&6
16435 +else
16436 + echo "$as_me:$LINENO: result: no" >&5
16437 +echo "${ECHO_T}no" >&6
16438 +fi
16439 +
16440 + AR=$ac_ct_AR
16441 +else
16442 + AR="$ac_cv_prog_AR"
16443 +fi
16444 +
16445 +if test -n "$ac_tool_prefix"; then
16446 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16447 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16448 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16449 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16450 +if test "${ac_cv_prog_RANLIB+set}" = set; then
16451 + echo $ECHO_N "(cached) $ECHO_C" >&6
16452 +else
16453 + if test -n "$RANLIB"; then
16454 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16455 +else
16456 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16457 +for as_dir in $PATH
16458 +do
16459 + IFS=$as_save_IFS
16460 + test -z "$as_dir" && as_dir=.
16461 + for ac_exec_ext in '' $ac_executable_extensions; do
16462 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16463 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16464 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16465 + break 2
16466 + fi
16467 +done
16468 +done
16469 +
16470 +fi
16471 +fi
16472 +RANLIB=$ac_cv_prog_RANLIB
16473 +if test -n "$RANLIB"; then
16474 + echo "$as_me:$LINENO: result: $RANLIB" >&5
16475 +echo "${ECHO_T}$RANLIB" >&6
16476 +else
16477 + echo "$as_me:$LINENO: result: no" >&5
16478 +echo "${ECHO_T}no" >&6
16479 +fi
16480 +
16481 +fi
16482 +if test -z "$ac_cv_prog_RANLIB"; then
16483 + ac_ct_RANLIB=$RANLIB
16484 + # Extract the first word of "ranlib", so it can be a program name with args.
16485 +set dummy ranlib; ac_word=$2
16486 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16487 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16488 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16489 + echo $ECHO_N "(cached) $ECHO_C" >&6
16490 +else
16491 + if test -n "$ac_ct_RANLIB"; then
16492 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16493 +else
16494 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16495 +for as_dir in $PATH
16496 +do
16497 + IFS=$as_save_IFS
16498 + test -z "$as_dir" && as_dir=.
16499 + for ac_exec_ext in '' $ac_executable_extensions; do
16500 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16501 + ac_cv_prog_ac_ct_RANLIB="ranlib"
16502 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16503 + break 2
16504 + fi
16505 +done
16506 +done
16507 +
16508 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16509 +fi
16510 +fi
16511 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16512 +if test -n "$ac_ct_RANLIB"; then
16513 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16514 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
16515 +else
16516 + echo "$as_me:$LINENO: result: no" >&5
16517 +echo "${ECHO_T}no" >&6
16518 +fi
16519 +
16520 + RANLIB=$ac_ct_RANLIB
16521 +else
16522 + RANLIB="$ac_cv_prog_RANLIB"
16523 +fi
16524 +
16525 +if test -n "$ac_tool_prefix"; then
16526 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16527 +set dummy ${ac_tool_prefix}strip; ac_word=$2
16528 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16529 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16530 +if test "${ac_cv_prog_STRIP+set}" = set; then
16531 + echo $ECHO_N "(cached) $ECHO_C" >&6
16532 +else
16533 + if test -n "$STRIP"; then
16534 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16535 +else
16536 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 +for as_dir in $PATH
16538 +do
16539 + IFS=$as_save_IFS
16540 + test -z "$as_dir" && as_dir=.
16541 + for ac_exec_ext in '' $ac_executable_extensions; do
16542 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16544 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 + break 2
16546 + fi
16547 +done
16548 +done
16549 +
16550 +fi
16551 +fi
16552 +STRIP=$ac_cv_prog_STRIP
16553 +if test -n "$STRIP"; then
16554 + echo "$as_me:$LINENO: result: $STRIP" >&5
16555 +echo "${ECHO_T}$STRIP" >&6
16556 +else
16557 + echo "$as_me:$LINENO: result: no" >&5
16558 +echo "${ECHO_T}no" >&6
16559 +fi
16560 +
16561 +fi
16562 +if test -z "$ac_cv_prog_STRIP"; then
16563 + ac_ct_STRIP=$STRIP
16564 + # Extract the first word of "strip", so it can be a program name with args.
16565 +set dummy strip; ac_word=$2
16566 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16567 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16568 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16569 + echo $ECHO_N "(cached) $ECHO_C" >&6
16570 +else
16571 + if test -n "$ac_ct_STRIP"; then
16572 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16573 +else
16574 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 +for as_dir in $PATH
16576 +do
16577 + IFS=$as_save_IFS
16578 + test -z "$as_dir" && as_dir=.
16579 + for ac_exec_ext in '' $ac_executable_extensions; do
16580 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16581 + ac_cv_prog_ac_ct_STRIP="strip"
16582 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16583 + break 2
16584 + fi
16585 +done
16586 +done
16587 +
16588 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16589 +fi
16590 +fi
16591 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16592 +if test -n "$ac_ct_STRIP"; then
16593 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16594 +echo "${ECHO_T}$ac_ct_STRIP" >&6
16595 +else
16596 + echo "$as_me:$LINENO: result: no" >&5
16597 +echo "${ECHO_T}no" >&6
16598 +fi
16599 +
16600 + STRIP=$ac_ct_STRIP
16601 +else
16602 + STRIP="$ac_cv_prog_STRIP"
16603 +fi
16604 +
16605 +
16606 +old_CC="$CC"
16607 +old_CFLAGS="$CFLAGS"
16608 +
16609 +# Set sane defaults for various variables
16610 +test -z "$AR" && AR=ar
16611 +test -z "$AR_FLAGS" && AR_FLAGS=cru
16612 +test -z "$AS" && AS=as
16613 +test -z "$CC" && CC=cc
16614 +test -z "$LTCC" && LTCC=$CC
16615 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16616 +test -z "$DLLTOOL" && DLLTOOL=dlltool
16617 +test -z "$LD" && LD=ld
16618 +test -z "$LN_S" && LN_S="ln -s"
16619 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
16620 +test -z "$NM" && NM=nm
16621 +test -z "$SED" && SED=sed
16622 +test -z "$OBJDUMP" && OBJDUMP=objdump
16623 +test -z "$RANLIB" && RANLIB=:
16624 +test -z "$STRIP" && STRIP=:
16625 +test -z "$ac_objext" && ac_objext=o
16626 +
16627 +# Determine commands to create old-style static archives.
16628 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16629 +old_postinstall_cmds='chmod 644 $oldlib'
16630 +old_postuninstall_cmds=
16631 +
16632 +if test -n "$RANLIB"; then
16633 + case $host_os in
16634 + openbsd*)
16635 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16636 + ;;
16637 + *)
16638 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16639 + ;;
16640 + esac
16641 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16642 +fi
16643 +
16644 +for cc_temp in $compiler""; do
16645 + case $cc_temp in
16646 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16647 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16648 + \-*) ;;
16649 + *) break;;
16650 + esac
16651 +done
16652 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16653 +
16654 +
16655 +# Only perform the check for file, if the check method requires it
16656 +case $deplibs_check_method in
16657 +file_magic*)
16658 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16659 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16660 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16661 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16662 + echo $ECHO_N "(cached) $ECHO_C" >&6
16663 +else
16664 + case $MAGIC_CMD in
16665 +[\\/*] | ?:[\\/]*)
16666 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16667 + ;;
16668 +*)
16669 + lt_save_MAGIC_CMD="$MAGIC_CMD"
16670 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16671 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16672 + for ac_dir in $ac_dummy; do
16673 + IFS="$lt_save_ifs"
16674 + test -z "$ac_dir" && ac_dir=.
16675 + if test -f $ac_dir/${ac_tool_prefix}file; then
16676 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16677 + if test -n "$file_magic_test_file"; then
16678 + case $deplibs_check_method in
16679 + "file_magic "*)
16680 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16681 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16682 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16683 + $EGREP "$file_magic_regex" > /dev/null; then
16684 + :
16685 + else
16686 + cat <<EOF 1>&2
16687 +
16688 +*** Warning: the command libtool uses to detect shared libraries,
16689 +*** $file_magic_cmd, produces output that libtool cannot recognize.
16690 +*** The result is that libtool may fail to recognize shared libraries
16691 +*** as such. This will affect the creation of libtool libraries that
16692 +*** depend on shared libraries, but programs linked with such libtool
16693 +*** libraries will work regardless of this problem. Nevertheless, you
16694 +*** may want to report the problem to your system manager and/or to
16695 +*** bug-libtool@gnu.org
16696 +
16697 +EOF
16698 + fi ;;
16699 + esac
16700 + fi
16701 + break
16702 + fi
16703 + done
16704 + IFS="$lt_save_ifs"
16705 + MAGIC_CMD="$lt_save_MAGIC_CMD"
16706 + ;;
16707 +esac
16708 +fi
16709 +
16710 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16711 +if test -n "$MAGIC_CMD"; then
16712 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16713 +echo "${ECHO_T}$MAGIC_CMD" >&6
16714 +else
16715 + echo "$as_me:$LINENO: result: no" >&5
16716 +echo "${ECHO_T}no" >&6
16717 +fi
16718 +
16719 +if test -z "$lt_cv_path_MAGIC_CMD"; then
16720 + if test -n "$ac_tool_prefix"; then
16721 + echo "$as_me:$LINENO: checking for file" >&5
16722 +echo $ECHO_N "checking for file... $ECHO_C" >&6
16723 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16724 + echo $ECHO_N "(cached) $ECHO_C" >&6
16725 +else
16726 + case $MAGIC_CMD in
16727 +[\\/*] | ?:[\\/]*)
16728 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16729 + ;;
16730 +*)
16731 + lt_save_MAGIC_CMD="$MAGIC_CMD"
16732 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16733 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16734 + for ac_dir in $ac_dummy; do
16735 + IFS="$lt_save_ifs"
16736 + test -z "$ac_dir" && ac_dir=.
16737 + if test -f $ac_dir/file; then
16738 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
16739 + if test -n "$file_magic_test_file"; then
16740 + case $deplibs_check_method in
16741 + "file_magic "*)
16742 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16743 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16744 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16745 + $EGREP "$file_magic_regex" > /dev/null; then
16746 + :
16747 + else
16748 + cat <<EOF 1>&2
16749 +
16750 +*** Warning: the command libtool uses to detect shared libraries,
16751 +*** $file_magic_cmd, produces output that libtool cannot recognize.
16752 +*** The result is that libtool may fail to recognize shared libraries
16753 +*** as such. This will affect the creation of libtool libraries that
16754 +*** depend on shared libraries, but programs linked with such libtool
16755 +*** libraries will work regardless of this problem. Nevertheless, you
16756 +*** may want to report the problem to your system manager and/or to
16757 +*** bug-libtool@gnu.org
16758 +
16759 +EOF
16760 + fi ;;
16761 + esac
16762 + fi
16763 + break
16764 + fi
16765 + done
16766 + IFS="$lt_save_ifs"
16767 + MAGIC_CMD="$lt_save_MAGIC_CMD"
16768 + ;;
16769 +esac
16770 +fi
16771 +
16772 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16773 +if test -n "$MAGIC_CMD"; then
16774 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16775 +echo "${ECHO_T}$MAGIC_CMD" >&6
16776 +else
16777 + echo "$as_me:$LINENO: result: no" >&5
16778 +echo "${ECHO_T}no" >&6
16779 +fi
16780 +
16781 + else
16782 + MAGIC_CMD=:
16783 + fi
16784 +fi
16785 +
16786 + fi
16787 + ;;
16788 +esac
16789 +
16790 +enable_dlopen=no
16791 +enable_win32_dll=no
16792 +
16793 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
16794 +if test "${enable_libtool_lock+set}" = set; then
16795 + enableval="$enable_libtool_lock"
16796 +
16797 +fi;
16798 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16799 +
16800 +
16801 +# Check whether --with-pic or --without-pic was given.
16802 +if test "${with_pic+set}" = set; then
16803 + withval="$with_pic"
16804 + pic_mode="$withval"
16805 +else
16806 + pic_mode=default
16807 +fi;
16808 +test -z "$pic_mode" && pic_mode=default
16809 +
16810 +# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
16811 +#
16812 +# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
16813 +# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
16814 +# calls AC_LIBTOOL_CONFIG and creates libtool.
16815 +#
16816 +echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
16817 +echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
16818 +if test "x$ltmain" = "x" ; then
16819 + echo "$as_me:$LINENO: result: no" >&5
16820 +echo "${ECHO_T}no" >&6
16821 + { { echo "$as_me:$LINENO: error:
16822 +
16823 +*** [Gentoo] sanity check failed! ***
16824 +*** \$ltmain is not defined, please check the patch for consistency! ***
16825 +" >&5
16826 +echo "$as_me: error:
16827 +
16828 +*** [Gentoo] sanity check failed! ***
16829 +*** \$ltmain is not defined, please check the patch for consistency! ***
16830 +" >&2;}
16831 + { (exit 1); exit 1; }; }
16832 +fi
16833 +gentoo_lt_version="1.5.22"
16834 +gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
16835 +if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
16836 + echo "$as_me:$LINENO: result: no" >&5
16837 +echo "${ECHO_T}no" >&6
16838 + { { echo "$as_me:$LINENO: error:
16839 +
16840 +*** [Gentoo] sanity check failed! ***
16841 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
16842 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
16843 +
16844 +Please run:
16845 +
16846 + libtoolize --copy --force
16847 +
16848 +if appropriate, please contact the maintainer of this
16849 +package (or your distribution) for help.
16850 +" >&5
16851 +echo "$as_me: error:
16852 +
16853 +*** [Gentoo] sanity check failed! ***
16854 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
16855 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
16856 +
16857 +Please run:
16858 +
16859 + libtoolize --copy --force
16860 +
16861 +if appropriate, please contact the maintainer of this
16862 +package (or your distribution) for help.
16863 +" >&2;}
16864 + { (exit 1); exit 1; }; }
16865 +else
16866 + echo "$as_me:$LINENO: result: yes" >&5
16867 +echo "${ECHO_T}yes" >&6
16868 +fi
16869 +
16870 +
16871 +# Use C for the default configuration in the libtool script
16872 +tagname=
16873 +lt_save_CC="$CC"
16874 +ac_ext=c
16875 +ac_cpp='$CPP $CPPFLAGS'
16876 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16877 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16878 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16879 +
16880 +
16881 +# Source file extension for C test sources.
16882 +ac_ext=c
16883 +
16884 +# Object file extension for compiled C test sources.
16885 +objext=o
16886 +objext=$objext
16887 +
16888 +# Code to be used in simple compile tests
16889 +lt_simple_compile_test_code="int some_variable = 0;\n"
16890 +
16891 +# Code to be used in simple link tests
16892 +lt_simple_link_test_code='int main(){return(0);}\n'
16893 +
16894 +
16895 +# If no C compiler was specified, use CC.
16896 +LTCC=${LTCC-"$CC"}
16897 +
16898 +# If no C compiler flags were specified, use CFLAGS.
16899 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16900 +
16901 +# Allow CC to be a program name with arguments.
16902 +compiler=$CC
16903 +
16904 +
16905 +# save warnings/boilerplate of simple test code
16906 +ac_outfile=conftest.$ac_objext
16907 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16908 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16909 +_lt_compiler_boilerplate=`cat conftest.err`
16910 +$rm conftest*
16911 +
16912 +ac_outfile=conftest.$ac_objext
16913 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
16914 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16915 +_lt_linker_boilerplate=`cat conftest.err`
16916 +$rm conftest*
16917 +
16918 +
16919 +
16920 +lt_prog_compiler_no_builtin_flag=
16921 +
16922 +if test "$GCC" = yes; then
16923 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16924 +
16925 +
16926 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16927 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16928 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16929 + echo $ECHO_N "(cached) $ECHO_C" >&6
16930 +else
16931 + lt_cv_prog_compiler_rtti_exceptions=no
16932 + ac_outfile=conftest.$ac_objext
16933 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16934 + lt_compiler_flag="-fno-rtti -fno-exceptions"
16935 + # Insert the option either (1) after the last *FLAGS variable, or
16936 + # (2) before a word containing "conftest.", or (3) at the end.
16937 + # Note that $ac_compile itself does not contain backslashes and begins
16938 + # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 + # The option is referenced via a variable to avoid confusing sed.
16940 + lt_compile=`echo "$ac_compile" | $SED \
16941 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16942 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16943 + -e 's:$: $lt_compiler_flag:'`
16944 + (eval echo "\"\$as_me:6400: $lt_compile\"" >&5)
16945 + (eval "$lt_compile" 2>conftest.err)
16946 + ac_status=$?
16947 + cat conftest.err >&5
16948 + echo "$as_me:6404: \$? = $ac_status" >&5
16949 + if (exit $ac_status) && test -s "$ac_outfile"; then
16950 + # The compiler can only warn and ignore the option if not recognized
16951 + # So say no if there are warnings other than the usual output.
16952 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16953 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16954 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16955 + lt_cv_prog_compiler_rtti_exceptions=yes
16956 + fi
16957 + fi
16958 + $rm conftest*
16959 +
16960 +fi
16961 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16962 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16963 +
16964 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16965 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16966 +else
16967 + :
16968 +fi
16969 +
16970 +fi
16971 +
16972 +lt_prog_compiler_wl=
16973 +lt_prog_compiler_pic=
16974 +lt_prog_compiler_static=
16975 +
16976 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16977 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16978 +
16979 + if test "$GCC" = yes; then
16980 + lt_prog_compiler_wl='-Wl,'
16981 + lt_prog_compiler_static='-static'
16982 +
16983 + case $host_os in
16984 + aix*)
16985 + # All AIX code is PIC.
16986 + if test "$host_cpu" = ia64; then
16987 + # AIX 5 now supports IA64 processor
16988 + lt_prog_compiler_static='-Bstatic'
16989 + fi
16990 + ;;
16991 +
16992 + amigaos*)
16993 + # FIXME: we need at least 68020 code to build shared libraries, but
16994 + # adding the `-m68020' flag to GCC prevents building anything better,
16995 + # like `-m68040'.
16996 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16997 + ;;
16998 +
16999 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17000 + # PIC is the default for these OSes.
17001 + ;;
17002 +
17003 + mingw* | pw32* | os2*)
17004 + # This hack is so that the source file can tell whether it is being
17005 + # built for inclusion in a dll (and should export symbols for example).
17006 + lt_prog_compiler_pic='-DDLL_EXPORT'
17007 + ;;
17008 +
17009 + darwin* | rhapsody*)
17010 + # PIC is the default on this platform
17011 + # Common symbols not allowed in MH_DYLIB files
17012 + lt_prog_compiler_pic='-fno-common'
17013 + ;;
17014 +
17015 + interix3*)
17016 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17017 + # Instead, we relocate shared libraries at runtime.
17018 + ;;
17019 +
17020 + msdosdjgpp*)
17021 + # Just because we use GCC doesn't mean we suddenly get shared libraries
17022 + # on systems that don't support them.
17023 + lt_prog_compiler_can_build_shared=no
17024 + enable_shared=no
17025 + ;;
17026 +
17027 + sysv4*MP*)
17028 + if test -d /usr/nec; then
17029 + lt_prog_compiler_pic=-Kconform_pic
17030 + fi
17031 + ;;
17032 +
17033 + hpux*)
17034 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17035 + # not for PA HP-UX.
17036 + case $host_cpu in
17037 + hppa*64*|ia64*)
17038 + # +Z the default
17039 + ;;
17040 + *)
17041 + lt_prog_compiler_pic='-fPIC'
17042 + ;;
17043 + esac
17044 + ;;
17045 +
17046 + *)
17047 + lt_prog_compiler_pic='-fPIC'
17048 + ;;
17049 + esac
17050 + else
17051 + # PORTME Check for flag to pass linker flags through the system compiler.
17052 + case $host_os in
17053 + aix*)
17054 + lt_prog_compiler_wl='-Wl,'
17055 + if test "$host_cpu" = ia64; then
17056 + # AIX 5 now supports IA64 processor
17057 + lt_prog_compiler_static='-Bstatic'
17058 + else
17059 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17060 + fi
17061 + ;;
17062 + darwin*)
17063 + # PIC is the default on this platform
17064 + # Common symbols not allowed in MH_DYLIB files
17065 + case $cc_basename in
17066 + xlc*)
17067 + lt_prog_compiler_pic='-qnocommon'
17068 + lt_prog_compiler_wl='-Wl,'
17069 + ;;
17070 + esac
17071 + ;;
17072 +
17073 + mingw* | pw32* | os2*)
17074 + # This hack is so that the source file can tell whether it is being
17075 + # built for inclusion in a dll (and should export symbols for example).
17076 + lt_prog_compiler_pic='-DDLL_EXPORT'
17077 + ;;
17078 +
17079 + hpux9* | hpux10* | hpux11*)
17080 + lt_prog_compiler_wl='-Wl,'
17081 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17082 + # not for PA HP-UX.
17083 + case $host_cpu in
17084 + hppa*64*|ia64*)
17085 + # +Z the default
17086 + ;;
17087 + *)
17088 + lt_prog_compiler_pic='+Z'
17089 + ;;
17090 + esac
17091 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
17092 + lt_prog_compiler_static='${wl}-a ${wl}archive'
17093 + ;;
17094 +
17095 + irix5* | irix6* | nonstopux*)
17096 + lt_prog_compiler_wl='-Wl,'
17097 + # PIC (with -KPIC) is the default.
17098 + lt_prog_compiler_static='-non_shared'
17099 + ;;
17100 +
17101 + newsos6)
17102 + lt_prog_compiler_pic='-KPIC'
17103 + lt_prog_compiler_static='-Bstatic'
17104 + ;;
17105 +
17106 + linux*)
17107 + case $cc_basename in
17108 + icc* | ecc*)
17109 + lt_prog_compiler_wl='-Wl,'
17110 + lt_prog_compiler_pic='-KPIC'
17111 + lt_prog_compiler_static='-static'
17112 + ;;
17113 + pgcc* | pgf77* | pgf90* | pgf95*)
17114 + # Portland Group compilers (*not* the Pentium gcc compiler,
17115 + # which looks to be a dead project)
17116 + lt_prog_compiler_wl='-Wl,'
17117 + lt_prog_compiler_pic='-fpic'
17118 + lt_prog_compiler_static='-Bstatic'
17119 + ;;
17120 + ccc*)
17121 + lt_prog_compiler_wl='-Wl,'
17122 + # All Alpha code is PIC.
17123 + lt_prog_compiler_static='-non_shared'
17124 + ;;
17125 + esac
17126 + ;;
17127 +
17128 + osf3* | osf4* | osf5*)
17129 + lt_prog_compiler_wl='-Wl,'
17130 + # All OSF/1 code is PIC.
17131 + lt_prog_compiler_static='-non_shared'
17132 + ;;
17133 +
17134 + solaris*)
17135 + lt_prog_compiler_pic='-KPIC'
17136 + lt_prog_compiler_static='-Bstatic'
17137 + case $cc_basename in
17138 + f77* | f90* | f95*)
17139 + lt_prog_compiler_wl='-Qoption ld ';;
17140 + *)
17141 + lt_prog_compiler_wl='-Wl,';;
17142 + esac
17143 + ;;
17144 +
17145 + sunos4*)
17146 + lt_prog_compiler_wl='-Qoption ld '
17147 + lt_prog_compiler_pic='-PIC'
17148 + lt_prog_compiler_static='-Bstatic'
17149 + ;;
17150 +
17151 + sysv4 | sysv4.2uw2* | sysv4.3*)
17152 + lt_prog_compiler_wl='-Wl,'
17153 + lt_prog_compiler_pic='-KPIC'
17154 + lt_prog_compiler_static='-Bstatic'
17155 + ;;
17156 +
17157 + sysv4*MP*)
17158 + if test -d /usr/nec ;then
17159 + lt_prog_compiler_pic='-Kconform_pic'
17160 + lt_prog_compiler_static='-Bstatic'
17161 + fi
17162 + ;;
17163 +
17164 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17165 + lt_prog_compiler_wl='-Wl,'
17166 + lt_prog_compiler_pic='-KPIC'
17167 + lt_prog_compiler_static='-Bstatic'
17168 + ;;
17169 +
17170 + unicos*)
17171 + lt_prog_compiler_wl='-Wl,'
17172 + lt_prog_compiler_can_build_shared=no
17173 + ;;
17174 +
17175 + uts4*)
17176 + lt_prog_compiler_pic='-pic'
17177 + lt_prog_compiler_static='-Bstatic'
17178 + ;;
17179 +
17180 + *)
17181 + lt_prog_compiler_can_build_shared=no
17182 + ;;
17183 + esac
17184 + fi
17185 +
17186 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17187 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17188 +
17189 +#
17190 +# Check to make sure the PIC flag actually works.
17191 +#
17192 +if test -n "$lt_prog_compiler_pic"; then
17193 +
17194 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17195 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17196 +if test "${lt_prog_compiler_pic_works+set}" = set; then
17197 + echo $ECHO_N "(cached) $ECHO_C" >&6
17198 +else
17199 + lt_prog_compiler_pic_works=no
17200 + ac_outfile=conftest.$ac_objext
17201 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17202 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17203 + # Insert the option either (1) after the last *FLAGS variable, or
17204 + # (2) before a word containing "conftest.", or (3) at the end.
17205 + # Note that $ac_compile itself does not contain backslashes and begins
17206 + # with a dollar sign (not a hyphen), so the echo should work correctly.
17207 + # The option is referenced via a variable to avoid confusing sed.
17208 + lt_compile=`echo "$ac_compile" | $SED \
17209 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17210 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17211 + -e 's:$: $lt_compiler_flag:'`
17212 + (eval echo "\"\$as_me:6668: $lt_compile\"" >&5)
17213 + (eval "$lt_compile" 2>conftest.err)
17214 + ac_status=$?
17215 + cat conftest.err >&5
17216 + echo "$as_me:6672: \$? = $ac_status" >&5
17217 + if (exit $ac_status) && test -s "$ac_outfile"; then
17218 + # The compiler can only warn and ignore the option if not recognized
17219 + # So say no if there are warnings other than the usual output.
17220 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17221 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17222 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17223 + lt_prog_compiler_pic_works=yes
17224 + fi
17225 + fi
17226 + $rm conftest*
17227 +
17228 +fi
17229 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17230 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17231 +
17232 +if test x"$lt_prog_compiler_pic_works" = xyes; then
17233 + case $lt_prog_compiler_pic in
17234 + "" | " "*) ;;
17235 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17236 + esac
17237 +else
17238 + lt_prog_compiler_pic=
17239 + lt_prog_compiler_can_build_shared=no
17240 +fi
17241 +
17242 +fi
17243 +case $host_os in
17244 + # For platforms which do not support PIC, -DPIC is meaningless:
17245 + *djgpp*)
17246 + lt_prog_compiler_pic=
17247 + ;;
17248 + *)
17249 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17250 + ;;
17251 +esac
17252 +
17253 +#
17254 +# Check to make sure the static flag actually works.
17255 +#
17256 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17257 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17258 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17259 +if test "${lt_prog_compiler_static_works+set}" = set; then
17260 + echo $ECHO_N "(cached) $ECHO_C" >&6
17261 +else
17262 + lt_prog_compiler_static_works=no
17263 + save_LDFLAGS="$LDFLAGS"
17264 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17265 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
17266 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17267 + # The linker can only warn and ignore the option if not recognized
17268 + # So say no if there are warnings
17269 + if test -s conftest.err; then
17270 + # Append any errors to the config.log.
17271 + cat conftest.err 1>&5
17272 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17273 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17274 + if diff conftest.exp conftest.er2 >/dev/null; then
17275 + lt_prog_compiler_static_works=yes
17276 + fi
17277 + else
17278 + lt_prog_compiler_static_works=yes
17279 + fi
17280 + fi
17281 + $rm conftest*
17282 + LDFLAGS="$save_LDFLAGS"
17283 +
17284 +fi
17285 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17286 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17287 +
17288 +if test x"$lt_prog_compiler_static_works" = xyes; then
17289 + :
17290 +else
17291 + lt_prog_compiler_static=
17292 +fi
17293 +
17294 +
17295 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17296 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17297 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17298 + echo $ECHO_N "(cached) $ECHO_C" >&6
17299 +else
17300 + lt_cv_prog_compiler_c_o=no
17301 + $rm -r conftest 2>/dev/null
17302 + mkdir conftest
17303 + cd conftest
17304 + mkdir out
17305 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17306 +
17307 + lt_compiler_flag="-o out/conftest2.$ac_objext"
17308 + # Insert the option either (1) after the last *FLAGS variable, or
17309 + # (2) before a word containing "conftest.", or (3) at the end.
17310 + # Note that $ac_compile itself does not contain backslashes and begins
17311 + # with a dollar sign (not a hyphen), so the echo should work correctly.
17312 + lt_compile=`echo "$ac_compile" | $SED \
17313 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315 + -e 's:$: $lt_compiler_flag:'`
17316 + (eval echo "\"\$as_me:6772: $lt_compile\"" >&5)
17317 + (eval "$lt_compile" 2>out/conftest.err)
17318 + ac_status=$?
17319 + cat out/conftest.err >&5
17320 + echo "$as_me:6776: \$? = $ac_status" >&5
17321 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
17322 + then
17323 + # The compiler can only warn and ignore the option if not recognized
17324 + # So say no if there are warnings
17325 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17326 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17327 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17328 + lt_cv_prog_compiler_c_o=yes
17329 + fi
17330 + fi
17331 + chmod u+w . 2>&5
17332 + $rm conftest*
17333 + # SGI C++ compiler will create directory out/ii_files/ for
17334 + # template instantiation
17335 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17336 + $rm out/* && rmdir out
17337 + cd ..
17338 + rmdir conftest
17339 + $rm conftest*
17340 +
17341 +fi
17342 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17343 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17344 +
17345 +
17346 +hard_links="nottested"
17347 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17348 + # do not overwrite the value of need_locks provided by the user
17349 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17350 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17351 + hard_links=yes
17352 + $rm conftest*
17353 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
17354 + touch conftest.a
17355 + ln conftest.a conftest.b 2>&5 || hard_links=no
17356 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
17357 + echo "$as_me:$LINENO: result: $hard_links" >&5
17358 +echo "${ECHO_T}$hard_links" >&6
17359 + if test "$hard_links" = no; then
17360 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17361 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17362 + need_locks=warn
17363 + fi
17364 +else
17365 + need_locks=no
17366 +fi
17367 +
17368 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17369 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17370 +
17371 + runpath_var=
17372 + allow_undefined_flag=
17373 + enable_shared_with_static_runtimes=no
17374 + archive_cmds=
17375 + archive_expsym_cmds=
17376 + old_archive_From_new_cmds=
17377 + old_archive_from_expsyms_cmds=
17378 + export_dynamic_flag_spec=
17379 + whole_archive_flag_spec=
17380 + thread_safe_flag_spec=
17381 + hardcode_libdir_flag_spec=
17382 + hardcode_libdir_flag_spec_ld=
17383 + hardcode_libdir_separator=
17384 + hardcode_direct=no
17385 + hardcode_minus_L=no
17386 + hardcode_shlibpath_var=unsupported
17387 + link_all_deplibs=unknown
17388 + hardcode_automatic=no
17389 + module_cmds=
17390 + module_expsym_cmds=
17391 + always_export_symbols=no
17392 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17393 + # include_expsyms should be a list of space-separated symbols to be *always*
17394 + # included in the symbol list
17395 + include_expsyms=
17396 + # exclude_expsyms can be an extended regexp of symbols to exclude
17397 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
17398 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17399 + # as well as any symbol that contains `d'.
17400 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17401 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17402 + # platforms (ab)use it in PIC code, but their linkers get confused if
17403 + # the symbol is explicitly referenced. Since portable code cannot
17404 + # rely on this symbol name, it's probably fine to never include it in
17405 + # preloaded symbol tables.
17406 + extract_expsyms_cmds=
17407 + # Just being paranoid about ensuring that cc_basename is set.
17408 + for cc_temp in $compiler""; do
17409 + case $cc_temp in
17410 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17411 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17412 + \-*) ;;
17413 + *) break;;
17414 + esac
17415 +done
17416 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17417 +
17418 + case $host_os in
17419 + cygwin* | mingw* | pw32*)
17420 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
17421 + # When not using gcc, we currently assume that we are using
17422 + # Microsoft Visual C++.
17423 + if test "$GCC" != yes; then
17424 + with_gnu_ld=no
17425 + fi
17426 + ;;
17427 + interix*)
17428 + # we just hope/assume this is gcc and not c89 (= MSVC++)
17429 + with_gnu_ld=yes
17430 + ;;
17431 + openbsd*)
17432 + with_gnu_ld=no
17433 + ;;
17434 + esac
17435 +
17436 + ld_shlibs=yes
17437 + if test "$with_gnu_ld" = yes; then
17438 + # If archive_cmds runs LD, not CC, wlarc should be empty
17439 + wlarc='${wl}'
17440 +
17441 + # Set some defaults for GNU ld with shared library support. These
17442 + # are reset later if shared libraries are not supported. Putting them
17443 + # here allows them to be overridden if necessary.
17444 + runpath_var=LD_RUN_PATH
17445 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17446 + export_dynamic_flag_spec='${wl}--export-dynamic'
17447 + # ancient GNU ld didn't support --whole-archive et. al.
17448 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17449 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17450 + else
17451 + whole_archive_flag_spec=
17452 + fi
17453 + supports_anon_versioning=no
17454 + case `$LD -v 2>/dev/null` in
17455 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17456 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17457 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17458 + *\ 2.11.*) ;; # other 2.11 versions
17459 + *) supports_anon_versioning=yes ;;
17460 + esac
17461 +
17462 + # See if GNU ld supports shared libraries.
17463 + case $host_os in
17464 + aix3* | aix4* | aix5*)
17465 + # On AIX/PPC, the GNU linker is very broken
17466 + if test "$host_cpu" != ia64; then
17467 + ld_shlibs=no
17468 + cat <<EOF 1>&2
17469 +
17470 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17471 +*** to be unable to reliably create shared libraries on AIX.
17472 +*** Therefore, libtool is disabling shared libraries support. If you
17473 +*** really care for shared libraries, you may want to modify your PATH
17474 +*** so that a non-GNU linker is found, and then restart.
17475 +
17476 +EOF
17477 + fi
17478 + ;;
17479 +
17480 + amigaos*)
17481 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17482 + hardcode_libdir_flag_spec='-L$libdir'
17483 + hardcode_minus_L=yes
17484 +
17485 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17486 + # that the semantics of dynamic libraries on AmigaOS, at least up
17487 + # to version 4, is to share data among multiple programs linked
17488 + # with the same dynamic library. Since this doesn't match the
17489 + # behavior of shared libraries on other platforms, we can't use
17490 + # them.
17491 + ld_shlibs=no
17492 + ;;
17493 +
17494 + beos*)
17495 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17496 + allow_undefined_flag=unsupported
17497 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17498 + # support --undefined. This deserves some investigation. FIXME
17499 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17500 + else
17501 + ld_shlibs=no
17502 + fi
17503 + ;;
17504 +
17505 + cygwin* | mingw* | pw32*)
17506 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17507 + # as there is no search path for DLLs.
17508 + hardcode_libdir_flag_spec='-L$libdir'
17509 + allow_undefined_flag=unsupported
17510 + always_export_symbols=no
17511 + enable_shared_with_static_runtimes=yes
17512 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17513 +
17514 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17515 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17516 + # If the export-symbols file already is a .def file (1st line
17517 + # is EXPORTS), use it as is; otherwise, prepend...
17518 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17519 + cp $export_symbols $output_objdir/$soname.def;
17520 + else
17521 + echo EXPORTS > $output_objdir/$soname.def;
17522 + cat $export_symbols >> $output_objdir/$soname.def;
17523 + fi~
17524 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17525 + else
17526 + ld_shlibs=no
17527 + fi
17528 + ;;
17529 +
17530 + interix3*)
17531 + hardcode_direct=no
17532 + hardcode_shlibpath_var=no
17533 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17534 + export_dynamic_flag_spec='${wl}-E'
17535 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17536 + # Instead, shared libraries are loaded at an image base (0x10000000 by
17537 + # default) and relocated if they conflict, which is a slow very memory
17538 + # consuming and fragmenting process. To avoid this, we pick a random,
17539 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17540 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17541 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17542 + archive_expsym_cmds='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'
17543 + ;;
17544 +
17545 + linux*)
17546 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17547 + tmp_addflag=
17548 + case $cc_basename,$host_cpu in
17549 + pgcc*) # Portland Group C compiler
17550 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17551 + tmp_addflag=' $pic_flag'
17552 + ;;
17553 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17554 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17555 + tmp_addflag=' $pic_flag -Mnomain' ;;
17556 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17557 + tmp_addflag=' -i_dynamic' ;;
17558 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17559 + tmp_addflag=' -i_dynamic -nofor_main' ;;
17560 + ifc* | ifort*) # Intel Fortran compiler
17561 + tmp_addflag=' -nofor_main' ;;
17562 + esac
17563 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 +
17565 + if test $supports_anon_versioning = yes; then
17566 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17567 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17568 + $echo "local: *; };" >> $output_objdir/$libname.ver~
17569 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17570 + fi
17571 + else
17572 + ld_shlibs=no
17573 + fi
17574 + ;;
17575 +
17576 + netbsd*)
17577 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17578 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17579 + wlarc=
17580 + else
17581 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17583 + fi
17584 + ;;
17585 +
17586 + solaris*)
17587 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17588 + ld_shlibs=no
17589 + cat <<EOF 1>&2
17590 +
17591 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17592 +*** create shared libraries on Solaris systems. Therefore, libtool
17593 +*** is disabling shared libraries support. We urge you to upgrade GNU
17594 +*** binutils to release 2.9.1 or newer. Another option is to modify
17595 +*** your PATH or compiler configuration so that the native linker is
17596 +*** used, and then restart.
17597 +
17598 +EOF
17599 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17600 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17602 + else
17603 + ld_shlibs=no
17604 + fi
17605 + ;;
17606 +
17607 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17608 + case `$LD -v 2>&1` in
17609 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17610 + ld_shlibs=no
17611 + cat <<_LT_EOF 1>&2
17612 +
17613 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17614 +*** reliably create shared libraries on SCO systems. Therefore, libtool
17615 +*** is disabling shared libraries support. We urge you to upgrade GNU
17616 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17617 +*** your PATH or compiler configuration so that the native linker is
17618 +*** used, and then restart.
17619 +
17620 +_LT_EOF
17621 + ;;
17622 + *)
17623 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17625 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17626 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17627 + else
17628 + ld_shlibs=no
17629 + fi
17630 + ;;
17631 + esac
17632 + ;;
17633 +
17634 + sunos4*)
17635 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17636 + wlarc=
17637 + hardcode_direct=yes
17638 + hardcode_shlibpath_var=no
17639 + ;;
17640 +
17641 + *)
17642 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17643 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17644 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17645 + else
17646 + ld_shlibs=no
17647 + fi
17648 + ;;
17649 + esac
17650 +
17651 + if test "$ld_shlibs" = no; then
17652 + runpath_var=
17653 + hardcode_libdir_flag_spec=
17654 + export_dynamic_flag_spec=
17655 + whole_archive_flag_spec=
17656 + fi
17657 + else
17658 + # PORTME fill in a description of your system's linker (not GNU ld)
17659 + case $host_os in
17660 + aix3*)
17661 + allow_undefined_flag=unsupported
17662 + always_export_symbols=yes
17663 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17664 + # Note: this linker hardcodes the directories in LIBPATH if there
17665 + # are no directories specified by -L.
17666 + hardcode_minus_L=yes
17667 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17668 + # Neither direct hardcoding nor static linking is supported with a
17669 + # broken collect2.
17670 + hardcode_direct=unsupported
17671 + fi
17672 + ;;
17673 +
17674 + aix4* | aix5*)
17675 + if test "$host_cpu" = ia64; then
17676 + # On IA64, the linker does run time linking by default, so we don't
17677 + # have to do anything special.
17678 + aix_use_runtimelinking=no
17679 + exp_sym_flag='-Bexport'
17680 + no_entry_flag=""
17681 + else
17682 + # If we're using GNU nm, then we don't want the "-C" option.
17683 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
17684 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17685 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17686 + else
17687 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17688 + fi
17689 + aix_use_runtimelinking=no
17690 +
17691 + # Test if we are trying to use run time linking or normal
17692 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17693 + # need to do runtime linking.
17694 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17695 + for ld_flag in $LDFLAGS; do
17696 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17697 + aix_use_runtimelinking=yes
17698 + break
17699 + fi
17700 + done
17701 + ;;
17702 + esac
17703 +
17704 + exp_sym_flag='-bexport'
17705 + no_entry_flag='-bnoentry'
17706 + fi
17707 +
17708 + # When large executables or shared objects are built, AIX ld can
17709 + # have problems creating the table of contents. If linking a library
17710 + # or program results in "error TOC overflow" add -mminimal-toc to
17711 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17712 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17713 +
17714 + archive_cmds=''
17715 + hardcode_direct=yes
17716 + hardcode_libdir_separator=':'
17717 + link_all_deplibs=yes
17718 +
17719 + if test "$GCC" = yes; then
17720 + case $host_os in aix4.[012]|aix4.[012].*)
17721 + # We only want to do this on AIX 4.2 and lower, the check
17722 + # below for broken collect2 doesn't work under 4.3+
17723 + collect2name=`${CC} -print-prog-name=collect2`
17724 + if test -f "$collect2name" && \
17725 + strings "$collect2name" | grep resolve_lib_name >/dev/null
17726 + then
17727 + # We have reworked collect2
17728 + hardcode_direct=yes
17729 + else
17730 + # We have old collect2
17731 + hardcode_direct=unsupported
17732 + # It fails to find uninstalled libraries when the uninstalled
17733 + # path is not listed in the libpath. Setting hardcode_minus_L
17734 + # to unsupported forces relinking
17735 + hardcode_minus_L=yes
17736 + hardcode_libdir_flag_spec='-L$libdir'
17737 + hardcode_libdir_separator=
17738 + fi
17739 + ;;
17740 + esac
17741 + shared_flag='-shared'
17742 + if test "$aix_use_runtimelinking" = yes; then
17743 + shared_flag="$shared_flag "'${wl}-G'
17744 + fi
17745 + else
17746 + # not using gcc
17747 + if test "$host_cpu" = ia64; then
17748 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17749 + # chokes on -Wl,-G. The following line is correct:
17750 + shared_flag='-G'
17751 + else
17752 + if test "$aix_use_runtimelinking" = yes; then
17753 + shared_flag='${wl}-G'
17754 + else
17755 + shared_flag='${wl}-bM:SRE'
17756 + fi
17757 + fi
17758 + fi
17759 +
17760 + # It seems that -bexpall does not export symbols beginning with
17761 + # underscore (_), so it is better to generate a list of symbols to export.
17762 + always_export_symbols=yes
17763 + if test "$aix_use_runtimelinking" = yes; then
17764 + # Warning - without using the other runtime loading flags (-brtl),
17765 + # -berok will link without error, but may produce a broken library.
17766 + allow_undefined_flag='-berok'
17767 + # Determine the default libpath from the value encoded in an empty executable.
17768 + cat >conftest.$ac_ext <<_ACEOF
17769 +/* confdefs.h. */
17770 +_ACEOF
17771 +cat confdefs.h >>conftest.$ac_ext
17772 +cat >>conftest.$ac_ext <<_ACEOF
17773 +/* end confdefs.h. */
17774 +
17775 +int
17776 +main ()
17777 +{
17778 +
17779 + ;
17780 + return 0;
17781 +}
17782 +_ACEOF
17783 +rm -f conftest.$ac_objext conftest$ac_exeext
17784 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17785 + (eval $ac_link) 2>conftest.er1
17786 + ac_status=$?
17787 + grep -v '^ *+' conftest.er1 >conftest.err
17788 + rm -f conftest.er1
17789 + cat conftest.err >&5
17790 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 + (exit $ac_status); } &&
17792 + { ac_try='test -z "$ac_c_werror_flag"
17793 + || test ! -s conftest.err'
17794 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 + (eval $ac_try) 2>&5
17796 + ac_status=$?
17797 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 + (exit $ac_status); }; } &&
17799 + { ac_try='test -s conftest$ac_exeext'
17800 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 + (eval $ac_try) 2>&5
17802 + ac_status=$?
17803 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 + (exit $ac_status); }; }; then
17805 +
17806 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17807 +}'`
17808 +# Check for a 64-bit object if we didn't find anything.
17809 +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; }
17810 +}'`; fi
17811 +else
17812 + echo "$as_me: failed program was:" >&5
17813 +sed 's/^/| /' conftest.$ac_ext >&5
17814 +
17815 +fi
17816 +rm -f conftest.err conftest.$ac_objext \
17817 + conftest$ac_exeext conftest.$ac_ext
17818 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17819 +
17820 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17821 + archive_expsym_cmds="\$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"
17822 + else
17823 + if test "$host_cpu" = ia64; then
17824 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17825 + allow_undefined_flag="-z nodefs"
17826 + archive_expsym_cmds="\$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"
17827 + else
17828 + # Determine the default libpath from the value encoded in an empty executable.
17829 + cat >conftest.$ac_ext <<_ACEOF
17830 +/* confdefs.h. */
17831 +_ACEOF
17832 +cat confdefs.h >>conftest.$ac_ext
17833 +cat >>conftest.$ac_ext <<_ACEOF
17834 +/* end confdefs.h. */
17835 +
17836 +int
17837 +main ()
17838 +{
17839 +
17840 + ;
17841 + return 0;
17842 +}
17843 +_ACEOF
17844 +rm -f conftest.$ac_objext conftest$ac_exeext
17845 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846 + (eval $ac_link) 2>conftest.er1
17847 + ac_status=$?
17848 + grep -v '^ *+' conftest.er1 >conftest.err
17849 + rm -f conftest.er1
17850 + cat conftest.err >&5
17851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 + (exit $ac_status); } &&
17853 + { ac_try='test -z "$ac_c_werror_flag"
17854 + || test ! -s conftest.err'
17855 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 + (eval $ac_try) 2>&5
17857 + ac_status=$?
17858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 + (exit $ac_status); }; } &&
17860 + { ac_try='test -s conftest$ac_exeext'
17861 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 + (eval $ac_try) 2>&5
17863 + ac_status=$?
17864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 + (exit $ac_status); }; }; then
17866 +
17867 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17868 +}'`
17869 +# Check for a 64-bit object if we didn't find anything.
17870 +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; }
17871 +}'`; fi
17872 +else
17873 + echo "$as_me: failed program was:" >&5
17874 +sed 's/^/| /' conftest.$ac_ext >&5
17875 +
17876 +fi
17877 +rm -f conftest.err conftest.$ac_objext \
17878 + conftest$ac_exeext conftest.$ac_ext
17879 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17880 +
17881 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17882 + # Warning - without using the other run time loading flags,
17883 + # -berok will link without error, but may produce a broken library.
17884 + no_undefined_flag=' ${wl}-bernotok'
17885 + allow_undefined_flag=' ${wl}-berok'
17886 + # Exported symbols can be pulled into shared objects from archives
17887 + whole_archive_flag_spec='$convenience'
17888 + archive_cmds_need_lc=yes
17889 + # This is similar to how AIX traditionally builds its shared libraries.
17890 + archive_expsym_cmds="\$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'
17891 + fi
17892 + fi
17893 + ;;
17894 +
17895 + amigaos*)
17896 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17897 + hardcode_libdir_flag_spec='-L$libdir'
17898 + hardcode_minus_L=yes
17899 + # see comment about different semantics on the GNU ld section
17900 + ld_shlibs=no
17901 + ;;
17902 +
17903 + bsdi[45]*)
17904 + export_dynamic_flag_spec=-rdynamic
17905 + ;;
17906 +
17907 + cygwin* | mingw* | pw32*)
17908 + # When not using gcc, we currently assume that we are using
17909 + # Microsoft Visual C++.
17910 + # hardcode_libdir_flag_spec is actually meaningless, as there is
17911 + # no search path for DLLs.
17912 + hardcode_libdir_flag_spec=' '
17913 + allow_undefined_flag=unsupported
17914 + # Tell ltmain to make .lib files, not .a files.
17915 + libext=lib
17916 + # Tell ltmain to make .dll files, not .so files.
17917 + shrext_cmds=".dll"
17918 + # FIXME: Setting linknames here is a bad hack.
17919 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17920 + # The linker will automatically build a .lib file if we build a DLL.
17921 + old_archive_From_new_cmds='true'
17922 + # FIXME: Should let the user specify the lib program.
17923 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
17924 + fix_srcfile_path='`cygpath -w "$srcfile"`'
17925 + enable_shared_with_static_runtimes=yes
17926 + ;;
17927 +
17928 + darwin* | rhapsody*)
17929 + case $host_os in
17930 + rhapsody* | darwin1.[012])
17931 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
17932 + ;;
17933 + *) # Darwin 1.3 on
17934 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17935 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17936 + else
17937 + case ${MACOSX_DEPLOYMENT_TARGET} in
17938 + 10.[012])
17939 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17940 + ;;
17941 + 10.*)
17942 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17943 + ;;
17944 + esac
17945 + fi
17946 + ;;
17947 + esac
17948 + archive_cmds_need_lc=no
17949 + hardcode_direct=no
17950 + hardcode_automatic=yes
17951 + hardcode_shlibpath_var=unsupported
17952 + whole_archive_flag_spec=''
17953 + link_all_deplibs=yes
17954 + if test "$GCC" = yes ; then
17955 + output_verbose_link_cmd='echo'
17956 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17957 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17958 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17959 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17960 + module_expsym_cmds='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}'
17961 + else
17962 + case $cc_basename in
17963 + xlc*)
17964 + output_verbose_link_cmd='echo'
17965 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17966 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17967 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17968 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17969 + module_expsym_cmds='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}'
17970 + ;;
17971 + *)
17972 + ld_shlibs=no
17973 + ;;
17974 + esac
17975 + fi
17976 + ;;
17977 +
17978 + dgux*)
17979 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980 + hardcode_libdir_flag_spec='-L$libdir'
17981 + hardcode_shlibpath_var=no
17982 + ;;
17983 +
17984 + freebsd1*)
17985 + ld_shlibs=no
17986 + ;;
17987 +
17988 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17989 + # support. Future versions do this automatically, but an explicit c++rt0.o
17990 + # does not break anything, and helps significantly (at the cost of a little
17991 + # extra space).
17992 + freebsd2.2*)
17993 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17994 + hardcode_libdir_flag_spec='-R$libdir'
17995 + hardcode_direct=yes
17996 + hardcode_shlibpath_var=no
17997 + ;;
17998 +
17999 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18000 + freebsd2*)
18001 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18002 + hardcode_direct=yes
18003 + hardcode_minus_L=yes
18004 + hardcode_shlibpath_var=no
18005 + ;;
18006 +
18007 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18008 + freebsd* | kfreebsd*-gnu | dragonfly*)
18009 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18010 + hardcode_libdir_flag_spec='-R$libdir'
18011 + hardcode_direct=yes
18012 + hardcode_shlibpath_var=no
18013 + ;;
18014 +
18015 + hpux9*)
18016 + if test "$GCC" = yes; then
18017 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18018 + else
18019 + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18020 + fi
18021 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18022 + hardcode_libdir_separator=:
18023 + hardcode_direct=yes
18024 +
18025 + # hardcode_minus_L: Not really in the search PATH,
18026 + # but as the default location of the library.
18027 + hardcode_minus_L=yes
18028 + export_dynamic_flag_spec='${wl}-E'
18029 + ;;
18030 +
18031 + hpux10*)
18032 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18033 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18034 + else
18035 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18036 + fi
18037 + if test "$with_gnu_ld" = no; then
18038 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18039 + hardcode_libdir_separator=:
18040 +
18041 + hardcode_direct=yes
18042 + export_dynamic_flag_spec='${wl}-E'
18043 +
18044 + # hardcode_minus_L: Not really in the search PATH,
18045 + # but as the default location of the library.
18046 + hardcode_minus_L=yes
18047 + fi
18048 + ;;
18049 +
18050 + hpux11*)
18051 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18052 + case $host_cpu in
18053 + hppa*64*)
18054 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 + ;;
18056 + ia64*)
18057 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18058 + ;;
18059 + *)
18060 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18061 + ;;
18062 + esac
18063 + else
18064 + case $host_cpu in
18065 + hppa*64*)
18066 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067 + ;;
18068 + ia64*)
18069 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18070 + ;;
18071 + *)
18072 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18073 + ;;
18074 + esac
18075 + fi
18076 + if test "$with_gnu_ld" = no; then
18077 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18078 + hardcode_libdir_separator=:
18079 +
18080 + case $host_cpu in
18081 + hppa*64*|ia64*)
18082 + hardcode_libdir_flag_spec_ld='+b $libdir'
18083 + hardcode_direct=no
18084 + hardcode_shlibpath_var=no
18085 + ;;
18086 + *)
18087 + hardcode_direct=yes
18088 + export_dynamic_flag_spec='${wl}-E'
18089 +
18090 + # hardcode_minus_L: Not really in the search PATH,
18091 + # but as the default location of the library.
18092 + hardcode_minus_L=yes
18093 + ;;
18094 + esac
18095 + fi
18096 + ;;
18097 +
18098 + irix5* | irix6* | nonstopux*)
18099 + if test "$GCC" = yes; then
18100 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18101 + else
18102 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18103 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
18104 + fi
18105 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18106 + hardcode_libdir_separator=:
18107 + link_all_deplibs=yes
18108 + ;;
18109 +
18110 + netbsd*)
18111 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18112 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18113 + else
18114 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18115 + fi
18116 + hardcode_libdir_flag_spec='-R$libdir'
18117 + hardcode_direct=yes
18118 + hardcode_shlibpath_var=no
18119 + ;;
18120 +
18121 + newsos6)
18122 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18123 + hardcode_direct=yes
18124 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18125 + hardcode_libdir_separator=:
18126 + hardcode_shlibpath_var=no
18127 + ;;
18128 +
18129 + openbsd*)
18130 + hardcode_direct=yes
18131 + hardcode_shlibpath_var=no
18132 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18133 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18134 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18135 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18136 + export_dynamic_flag_spec='${wl}-E'
18137 + else
18138 + case $host_os in
18139 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18140 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18141 + hardcode_libdir_flag_spec='-R$libdir'
18142 + ;;
18143 + *)
18144 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18145 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18146 + ;;
18147 + esac
18148 + fi
18149 + ;;
18150 +
18151 + os2*)
18152 + hardcode_libdir_flag_spec='-L$libdir'
18153 + hardcode_minus_L=yes
18154 + allow_undefined_flag=unsupported
18155 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18156 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18157 + ;;
18158 +
18159 + osf3*)
18160 + if test "$GCC" = yes; then
18161 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18162 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18163 + else
18164 + allow_undefined_flag=' -expect_unresolved \*'
18165 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18166 + fi
18167 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18168 + hardcode_libdir_separator=:
18169 + ;;
18170 +
18171 + osf4* | osf5*) # as osf3* with the addition of -msym flag
18172 + if test "$GCC" = yes; then
18173 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18174 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18175 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18176 + else
18177 + allow_undefined_flag=' -expect_unresolved \*'
18178 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18179 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18180 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18181 +
18182 + # Both c and cxx compiler support -rpath directly
18183 + hardcode_libdir_flag_spec='-rpath $libdir'
18184 + fi
18185 + hardcode_libdir_separator=:
18186 + ;;
18187 +
18188 + solaris*)
18189 + no_undefined_flag=' -z text'
18190 + if test "$GCC" = yes; then
18191 + wlarc='${wl}'
18192 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18193 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18194 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18195 + else
18196 + wlarc=''
18197 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18199 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18200 + fi
18201 + hardcode_libdir_flag_spec='-R$libdir'
18202 + hardcode_shlibpath_var=no
18203 + case $host_os in
18204 + solaris2.[0-5] | solaris2.[0-5].*) ;;
18205 + *)
18206 + # The compiler driver will combine linker options so we
18207 + # cannot just pass the convience library names through
18208 + # without $wl, iff we do not link with $LD.
18209 + # Luckily, gcc supports the same syntax we need for Sun Studio.
18210 + # Supported since Solaris 2.6 (maybe 2.5.1?)
18211 + case $wlarc in
18212 + '')
18213 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18214 + *)
18215 + whole_archive_flag_spec='${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' ;;
18216 + esac ;;
18217 + esac
18218 + link_all_deplibs=yes
18219 + ;;
18220 +
18221 + sunos4*)
18222 + if test "x$host_vendor" = xsequent; then
18223 + # Use $CC to link under sequent, because it throws in some extra .o
18224 + # files that make .init and .fini sections work.
18225 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18226 + else
18227 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18228 + fi
18229 + hardcode_libdir_flag_spec='-L$libdir'
18230 + hardcode_direct=yes
18231 + hardcode_minus_L=yes
18232 + hardcode_shlibpath_var=no
18233 + ;;
18234 +
18235 + sysv4)
18236 + case $host_vendor in
18237 + sni)
18238 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18239 + hardcode_direct=yes # is this really true???
18240 + ;;
18241 + siemens)
18242 + ## LD is ld it makes a PLAMLIB
18243 + ## CC just makes a GrossModule.
18244 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18245 + reload_cmds='$CC -r -o $output$reload_objs'
18246 + hardcode_direct=no
18247 + ;;
18248 + motorola)
18249 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18250 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18251 + ;;
18252 + esac
18253 + runpath_var='LD_RUN_PATH'
18254 + hardcode_shlibpath_var=no
18255 + ;;
18256 +
18257 + sysv4.3*)
18258 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259 + hardcode_shlibpath_var=no
18260 + export_dynamic_flag_spec='-Bexport'
18261 + ;;
18262 +
18263 + sysv4*MP*)
18264 + if test -d /usr/nec; then
18265 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18266 + hardcode_shlibpath_var=no
18267 + runpath_var=LD_RUN_PATH
18268 + hardcode_runpath_var=yes
18269 + ld_shlibs=yes
18270 + fi
18271 + ;;
18272 +
18273 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18274 + no_undefined_flag='${wl}-z,text'
18275 + archive_cmds_need_lc=no
18276 + hardcode_shlibpath_var=no
18277 + runpath_var='LD_RUN_PATH'
18278 +
18279 + if test "$GCC" = yes; then
18280 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18281 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18282 + else
18283 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18284 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18285 + fi
18286 + ;;
18287 +
18288 + sysv5* | sco3.2v5* | sco5v6*)
18289 + # Note: We can NOT use -z defs as we might desire, because we do not
18290 + # link with -lc, and that would cause any symbols used from libc to
18291 + # always be unresolved, which means just about no library would
18292 + # ever link correctly. If we're not using GNU ld we use -z text
18293 + # though, which does catch some bad symbols but isn't as heavy-handed
18294 + # as -z defs.
18295 + no_undefined_flag='${wl}-z,text'
18296 + allow_undefined_flag='${wl}-z,nodefs'
18297 + archive_cmds_need_lc=no
18298 + hardcode_shlibpath_var=no
18299 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18300 + hardcode_libdir_separator=':'
18301 + link_all_deplibs=yes
18302 + export_dynamic_flag_spec='${wl}-Bexport'
18303 + runpath_var='LD_RUN_PATH'
18304 +
18305 + if test "$GCC" = yes; then
18306 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18308 + else
18309 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18310 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 + fi
18312 + ;;
18313 +
18314 + uts4*)
18315 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 + hardcode_libdir_flag_spec='-L$libdir'
18317 + hardcode_shlibpath_var=no
18318 + ;;
18319 +
18320 + *)
18321 + ld_shlibs=no
18322 + ;;
18323 + esac
18324 + fi
18325 +
18326 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18327 +echo "${ECHO_T}$ld_shlibs" >&6
18328 +test "$ld_shlibs" = no && can_build_shared=no
18329 +
18330 +#
18331 +# Do we need to explicitly link libc?
18332 +#
18333 +case "x$archive_cmds_need_lc" in
18334 +x|xyes)
18335 + # Assume -lc should be added
18336 + archive_cmds_need_lc=yes
18337 +
18338 + if test "$enable_shared" = yes && test "$GCC" = yes; then
18339 + case $archive_cmds in
18340 + *'~'*)
18341 + # FIXME: we may have to deal with multi-command sequences.
18342 + ;;
18343 + '$CC '*)
18344 + # Test whether the compiler implicitly links with -lc since on some
18345 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
18346 + # to ld, don't add -lc before -lgcc.
18347 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18348 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18349 + $rm conftest*
18350 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18351 +
18352 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 + (eval $ac_compile) 2>&5
18354 + ac_status=$?
18355 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 + (exit $ac_status); } 2>conftest.err; then
18357 + soname=conftest
18358 + lib=conftest
18359 + libobjs=conftest.$ac_objext
18360 + deplibs=
18361 + wl=$lt_prog_compiler_wl
18362 + pic_flag=$lt_prog_compiler_pic
18363 + compiler_flags=-v
18364 + linker_flags=-v
18365 + verstring=
18366 + output_objdir=.
18367 + libname=conftest
18368 + lt_save_allow_undefined_flag=$allow_undefined_flag
18369 + allow_undefined_flag=
18370 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18371 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18372 + ac_status=$?
18373 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 + (exit $ac_status); }
18375 + then
18376 + archive_cmds_need_lc=no
18377 + else
18378 + archive_cmds_need_lc=yes
18379 + fi
18380 + allow_undefined_flag=$lt_save_allow_undefined_flag
18381 + else
18382 + cat conftest.err 1>&5
18383 + fi
18384 + $rm conftest*
18385 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18386 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
18387 + ;;
18388 + esac
18389 + fi
18390 + ;;
18391 +esac
18392 +
18393 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18394 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18395 +library_names_spec=
18396 +libname_spec='lib$name'
18397 +soname_spec=
18398 +shrext_cmds=".so"
18399 +postinstall_cmds=
18400 +postuninstall_cmds=
18401 +finish_cmds=
18402 +finish_eval=
18403 +shlibpath_var=
18404 +shlibpath_overrides_runpath=unknown
18405 +version_type=none
18406 +dynamic_linker="$host_os ld.so"
18407 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
18408 +if test "$GCC" = yes; then
18409 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18410 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18411 + # if the path contains ";" then we assume it to be the separator
18412 + # otherwise default to the standard path separator (i.e. ":") - it is
18413 + # assumed that no part of a normal pathname contains ";" but that should
18414 + # okay in the real world where ";" in dirpaths is itself problematic.
18415 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18416 + else
18417 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18418 + fi
18419 +else
18420 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18421 +fi
18422 +need_lib_prefix=unknown
18423 +hardcode_into_libs=no
18424 +
18425 +# when you set need_version to no, make sure it does not cause -set_version
18426 +# flags to be left without arguments
18427 +need_version=unknown
18428 +
18429 +case $host_os in
18430 +aix3*)
18431 + version_type=linux
18432 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18433 + shlibpath_var=LIBPATH
18434 +
18435 + # AIX 3 has no versioning support, so we append a major version to the name.
18436 + soname_spec='${libname}${release}${shared_ext}$major'
18437 + ;;
18438 +
18439 +aix4* | aix5*)
18440 + version_type=linux
18441 + need_lib_prefix=no
18442 + need_version=no
18443 + hardcode_into_libs=yes
18444 + if test "$host_cpu" = ia64; then
18445 + # AIX 5 supports IA64
18446 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18447 + shlibpath_var=LD_LIBRARY_PATH
18448 + else
18449 + # With GCC up to 2.95.x, collect2 would create an import file
18450 + # for dependence libraries. The import file would start with
18451 + # the line `#! .'. This would cause the generated library to
18452 + # depend on `.', always an invalid library. This was fixed in
18453 + # development snapshots of GCC prior to 3.0.
18454 + case $host_os in
18455 + aix4 | aix4.[01] | aix4.[01].*)
18456 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18457 + echo ' yes '
18458 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18459 + :
18460 + else
18461 + can_build_shared=no
18462 + fi
18463 + ;;
18464 + esac
18465 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18466 + # soname into executable. Probably we can add versioning support to
18467 + # collect2, so additional links can be useful in future.
18468 + if test "$aix_use_runtimelinking" = yes; then
18469 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18470 + # instead of lib<name>.a to let people know that these are not
18471 + # typical AIX shared libraries.
18472 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 + else
18474 + # We preserve .a as extension for shared libraries through AIX4.2
18475 + # and later when we are not doing run time linking.
18476 + library_names_spec='${libname}${release}.a $libname.a'
18477 + soname_spec='${libname}${release}${shared_ext}$major'
18478 + fi
18479 + shlibpath_var=LIBPATH
18480 + fi
18481 + ;;
18482 +
18483 +amigaos*)
18484 + library_names_spec='$libname.ixlibrary $libname.a'
18485 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
18486 + 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'
18487 + ;;
18488 +
18489 +beos*)
18490 + library_names_spec='${libname}${shared_ext}'
18491 + dynamic_linker="$host_os ld.so"
18492 + shlibpath_var=LIBRARY_PATH
18493 + ;;
18494 +
18495 +bsdi[45]*)
18496 + version_type=linux
18497 + need_version=no
18498 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499 + soname_spec='${libname}${release}${shared_ext}$major'
18500 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18501 + shlibpath_var=LD_LIBRARY_PATH
18502 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18503 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18504 + # the default ld.so.conf also contains /usr/contrib/lib and
18505 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18506 + # libtool to hard-code these into programs
18507 + ;;
18508 +
18509 +cygwin* | mingw* | pw32*)
18510 + version_type=windows
18511 + shrext_cmds=".dll"
18512 + need_version=no
18513 + need_lib_prefix=no
18514 +
18515 + case $GCC,$host_os in
18516 + yes,cygwin* | yes,mingw* | yes,pw32*)
18517 + library_names_spec='$libname.dll.a'
18518 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
18519 + postinstall_cmds='base_file=`basename \${file}`~
18520 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18521 + dldir=$destdir/`dirname \$dlpath`~
18522 + test -d \$dldir || mkdir -p \$dldir~
18523 + $install_prog $dir/$dlname \$dldir/$dlname~
18524 + chmod a+x \$dldir/$dlname'
18525 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18526 + dlpath=$dir/\$dldll~
18527 + $rm \$dlpath'
18528 + shlibpath_overrides_runpath=yes
18529 +
18530 + case $host_os in
18531 + cygwin*)
18532 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18533 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18534 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18535 + ;;
18536 + mingw*)
18537 + # MinGW DLLs use traditional 'lib' prefix
18538 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18540 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18541 + # It is most probably a Windows format PATH printed by
18542 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
18543 + # path with ; separators, and with drive letters. We can handle the
18544 + # drive letters (cygwin fileutils understands them), so leave them,
18545 + # especially as we might pass files found there to a mingw objdump,
18546 + # which wouldn't understand a cygwinified path. Ahh.
18547 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18548 + else
18549 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18550 + fi
18551 + ;;
18552 + pw32*)
18553 + # pw32 DLLs use 'pw' prefix rather than 'lib'
18554 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18555 + ;;
18556 + esac
18557 + ;;
18558 +
18559 + linux*)
18560 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18561 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18562 + supports_anon_versioning=no
18563 + case `$LD -v 2>/dev/null` in
18564 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18565 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18566 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18567 + *\ 2.11.*) ;; # other 2.11 versions
18568 + *) supports_anon_versioning=yes ;;
18569 + esac
18570 + if test $supports_anon_versioning = yes; then
18571 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18572 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18573 +$echo "local: *; };" >> $output_objdir/$libname.ver~
18574 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18575 + else
18576 + $archive_expsym_cmds="$archive_cmds"
18577 + fi
18578 + else
18579 + ld_shlibs=no
18580 + fi
18581 + ;;
18582 +
18583 + *)
18584 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18585 + ;;
18586 + esac
18587 + dynamic_linker='Win32 ld.exe'
18588 + # FIXME: first we should search . and the directory the executable is in
18589 + shlibpath_var=PATH
18590 + ;;
18591 +
18592 +darwin* | rhapsody*)
18593 + dynamic_linker="$host_os dyld"
18594 + version_type=darwin
18595 + need_lib_prefix=no
18596 + need_version=no
18597 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18598 + soname_spec='${libname}${release}${major}$shared_ext'
18599 + shlibpath_overrides_runpath=yes
18600 + shlibpath_var=DYLD_LIBRARY_PATH
18601 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18602 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18603 + if test "$GCC" = yes; then
18604 + 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"`
18605 + else
18606 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18607 + fi
18608 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18609 + ;;
18610 +
18611 +dgux*)
18612 + version_type=linux
18613 + need_lib_prefix=no
18614 + need_version=no
18615 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18616 + soname_spec='${libname}${release}${shared_ext}$major'
18617 + shlibpath_var=LD_LIBRARY_PATH
18618 + ;;
18619 +
18620 +freebsd1*)
18621 + dynamic_linker=no
18622 + ;;
18623 +
18624 +kfreebsd*-gnu)
18625 + version_type=linux
18626 + need_lib_prefix=no
18627 + need_version=no
18628 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18629 + soname_spec='${libname}${release}${shared_ext}$major'
18630 + shlibpath_var=LD_LIBRARY_PATH
18631 + shlibpath_overrides_runpath=no
18632 + hardcode_into_libs=yes
18633 + dynamic_linker='GNU ld.so'
18634 + ;;
18635 +
18636 +freebsd* | dragonfly*)
18637 + # DragonFly does not have aout. When/if they implement a new
18638 + # versioning mechanism, adjust this.
18639 + if test -x /usr/bin/objformat; then
18640 + objformat=`/usr/bin/objformat`
18641 + else
18642 + case $host_os in
18643 + freebsd[123]*) objformat=aout ;;
18644 + *) objformat=elf ;;
18645 + esac
18646 + fi
18647 + # Handle Gentoo/FreeBSD as it was Linux
18648 + case $host_vendor in
18649 + gentoo)
18650 + version_type=linux ;;
18651 + *)
18652 + version_type=freebsd-$objformat ;;
18653 + esac
18654 +
18655 + case $version_type in
18656 + freebsd-elf*)
18657 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18658 + need_version=no
18659 + need_lib_prefix=no
18660 + ;;
18661 + freebsd-*)
18662 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18663 + need_version=yes
18664 + ;;
18665 + linux)
18666 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18667 + soname_spec='${libname}${release}${shared_ext}$major'
18668 + need_lib_prefix=no
18669 + need_version=no
18670 + ;;
18671 + esac
18672 + shlibpath_var=LD_LIBRARY_PATH
18673 + case $host_os in
18674 + freebsd2*)
18675 + shlibpath_overrides_runpath=yes
18676 + ;;
18677 + freebsd3.[01]* | freebsdelf3.[01]*)
18678 + shlibpath_overrides_runpath=yes
18679 + hardcode_into_libs=yes
18680 + ;;
18681 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18682 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18683 + shlibpath_overrides_runpath=no
18684 + hardcode_into_libs=yes
18685 + ;;
18686 + freebsd*) # from 4.6 on
18687 + shlibpath_overrides_runpath=yes
18688 + hardcode_into_libs=yes
18689 + ;;
18690 + esac
18691 + ;;
18692 +
18693 +gnu*)
18694 + version_type=linux
18695 + need_lib_prefix=no
18696 + need_version=no
18697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18698 + soname_spec='${libname}${release}${shared_ext}$major'
18699 + shlibpath_var=LD_LIBRARY_PATH
18700 + hardcode_into_libs=yes
18701 + ;;
18702 +
18703 +hpux9* | hpux10* | hpux11*)
18704 + # Give a soname corresponding to the major version so that dld.sl refuses to
18705 + # link against other versions.
18706 + version_type=sunos
18707 + need_lib_prefix=no
18708 + need_version=no
18709 + case $host_cpu in
18710 + ia64*)
18711 + shrext_cmds='.so'
18712 + hardcode_into_libs=yes
18713 + dynamic_linker="$host_os dld.so"
18714 + shlibpath_var=LD_LIBRARY_PATH
18715 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18716 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 + soname_spec='${libname}${release}${shared_ext}$major'
18718 + if test "X$HPUX_IA64_MODE" = X32; then
18719 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18720 + else
18721 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18722 + fi
18723 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18724 + ;;
18725 + hppa*64*)
18726 + shrext_cmds='.sl'
18727 + hardcode_into_libs=yes
18728 + dynamic_linker="$host_os dld.sl"
18729 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18730 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18731 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 + soname_spec='${libname}${release}${shared_ext}$major'
18733 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18734 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18735 + ;;
18736 + *)
18737 + shrext_cmds='.sl'
18738 + dynamic_linker="$host_os dld.sl"
18739 + shlibpath_var=SHLIB_PATH
18740 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18741 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 + soname_spec='${libname}${release}${shared_ext}$major'
18743 + ;;
18744 + esac
18745 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
18746 + postinstall_cmds='chmod 555 $lib'
18747 + ;;
18748 +
18749 +interix3*)
18750 + version_type=linux
18751 + need_lib_prefix=no
18752 + need_version=no
18753 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754 + soname_spec='${libname}${release}${shared_ext}$major'
18755 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18756 + shlibpath_var=LD_LIBRARY_PATH
18757 + shlibpath_overrides_runpath=no
18758 + hardcode_into_libs=yes
18759 + ;;
18760 +
18761 +irix5* | irix6* | nonstopux*)
18762 + case $host_os in
18763 + nonstopux*) version_type=nonstopux ;;
18764 + *)
18765 + if test "$lt_cv_prog_gnu_ld" = yes; then
18766 + version_type=linux
18767 + else
18768 + version_type=irix
18769 + fi ;;
18770 + esac
18771 + need_lib_prefix=no
18772 + need_version=no
18773 + soname_spec='${libname}${release}${shared_ext}$major'
18774 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18775 + case $host_os in
18776 + irix5* | nonstopux*)
18777 + libsuff= shlibsuff=
18778 + ;;
18779 + *)
18780 + case $LD in # libtool.m4 will add one of these switches to LD
18781 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18782 + libsuff= shlibsuff= libmagic=32-bit;;
18783 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18784 + libsuff=32 shlibsuff=N32 libmagic=N32;;
18785 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18786 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
18787 + *) libsuff= shlibsuff= libmagic=never-match;;
18788 + esac
18789 + ;;
18790 + esac
18791 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18792 + shlibpath_overrides_runpath=no
18793 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18794 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18795 + hardcode_into_libs=yes
18796 + ;;
18797 +
18798 +# No shared lib support for Linux oldld, aout, or coff.
18799 +linux*oldld* | linux*aout* | linux*coff*)
18800 + dynamic_linker=no
18801 + ;;
18802 +
18803 +# This must be Linux ELF.
18804 +linux*)
18805 + version_type=linux
18806 + need_lib_prefix=no
18807 + need_version=no
18808 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18809 + soname_spec='${libname}${release}${shared_ext}$major'
18810 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18811 + shlibpath_var=LD_LIBRARY_PATH
18812 + shlibpath_overrides_runpath=no
18813 + # This implies no fast_install, which is unacceptable.
18814 + # Some rework will be needed to allow for fast_install
18815 + # before this can be enabled.
18816 + hardcode_into_libs=yes
18817 +
18818 + # Append ld.so.conf contents to the search path
18819 + if test -f /etc/ld.so.conf; then
18820 + 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' ' '`
18821 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18822 + fi
18823 +
18824 + # We used to test for /lib/ld.so.1 and disable shared libraries on
18825 + # powerpc, because MkLinux only supported shared libraries with the
18826 + # GNU dynamic linker. Since this was broken with cross compilers,
18827 + # most powerpc-linux boxes support dynamic linking these days and
18828 + # people can always --disable-shared, the test was removed, and we
18829 + # assume the GNU/Linux dynamic linker is in use.
18830 + dynamic_linker='GNU/Linux ld.so'
18831 + ;;
18832 +
18833 +knetbsd*-gnu)
18834 + version_type=linux
18835 + need_lib_prefix=no
18836 + need_version=no
18837 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18838 + soname_spec='${libname}${release}${shared_ext}$major'
18839 + shlibpath_var=LD_LIBRARY_PATH
18840 + shlibpath_overrides_runpath=no
18841 + hardcode_into_libs=yes
18842 + dynamic_linker='GNU ld.so'
18843 + ;;
18844 +
18845 +netbsd*)
18846 + version_type=sunos
18847 + need_lib_prefix=no
18848 + need_version=no
18849 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18850 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18851 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18852 + dynamic_linker='NetBSD (a.out) ld.so'
18853 + else
18854 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18855 + soname_spec='${libname}${release}${shared_ext}$major'
18856 + dynamic_linker='NetBSD ld.elf_so'
18857 + fi
18858 + shlibpath_var=LD_LIBRARY_PATH
18859 + shlibpath_overrides_runpath=yes
18860 + hardcode_into_libs=yes
18861 + ;;
18862 +
18863 +newsos6)
18864 + version_type=linux
18865 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 + shlibpath_var=LD_LIBRARY_PATH
18867 + shlibpath_overrides_runpath=yes
18868 + ;;
18869 +
18870 +nto-qnx*)
18871 + version_type=linux
18872 + need_lib_prefix=no
18873 + need_version=no
18874 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 + soname_spec='${libname}${release}${shared_ext}$major'
18876 + shlibpath_var=LD_LIBRARY_PATH
18877 + shlibpath_overrides_runpath=yes
18878 + ;;
18879 +
18880 +openbsd*)
18881 + version_type=sunos
18882 + sys_lib_dlsearch_path_spec="/usr/lib"
18883 + need_lib_prefix=no
18884 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18885 + case $host_os in
18886 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18887 + *) need_version=no ;;
18888 + esac
18889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18890 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18891 + shlibpath_var=LD_LIBRARY_PATH
18892 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18893 + case $host_os in
18894 + openbsd2.[89] | openbsd2.[89].*)
18895 + shlibpath_overrides_runpath=no
18896 + ;;
18897 + *)
18898 + shlibpath_overrides_runpath=yes
18899 + ;;
18900 + esac
18901 + else
18902 + shlibpath_overrides_runpath=yes
18903 + fi
18904 + ;;
18905 +
18906 +os2*)
18907 + libname_spec='$name'
18908 + shrext_cmds=".dll"
18909 + need_lib_prefix=no
18910 + library_names_spec='$libname${shared_ext} $libname.a'
18911 + dynamic_linker='OS/2 ld.exe'
18912 + shlibpath_var=LIBPATH
18913 + ;;
18914 +
18915 +osf3* | osf4* | osf5*)
18916 + version_type=osf
18917 + need_lib_prefix=no
18918 + need_version=no
18919 + soname_spec='${libname}${release}${shared_ext}$major'
18920 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18921 + shlibpath_var=LD_LIBRARY_PATH
18922 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18923 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18924 + ;;
18925 +
18926 +solaris*)
18927 + version_type=linux
18928 + need_lib_prefix=no
18929 + need_version=no
18930 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 + soname_spec='${libname}${release}${shared_ext}$major'
18932 + shlibpath_var=LD_LIBRARY_PATH
18933 + shlibpath_overrides_runpath=yes
18934 + hardcode_into_libs=yes
18935 + # ldd complains unless libraries are executable
18936 + postinstall_cmds='chmod +x $lib'
18937 + ;;
18938 +
18939 +sunos4*)
18940 + version_type=sunos
18941 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18942 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18943 + shlibpath_var=LD_LIBRARY_PATH
18944 + shlibpath_overrides_runpath=yes
18945 + if test "$with_gnu_ld" = yes; then
18946 + need_lib_prefix=no
18947 + fi
18948 + need_version=yes
18949 + ;;
18950 +
18951 +sysv4 | sysv4.3*)
18952 + version_type=linux
18953 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954 + soname_spec='${libname}${release}${shared_ext}$major'
18955 + shlibpath_var=LD_LIBRARY_PATH
18956 + case $host_vendor in
18957 + sni)
18958 + shlibpath_overrides_runpath=no
18959 + need_lib_prefix=no
18960 + export_dynamic_flag_spec='${wl}-Blargedynsym'
18961 + runpath_var=LD_RUN_PATH
18962 + ;;
18963 + siemens)
18964 + need_lib_prefix=no
18965 + ;;
18966 + motorola)
18967 + need_lib_prefix=no
18968 + need_version=no
18969 + shlibpath_overrides_runpath=no
18970 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18971 + ;;
18972 + esac
18973 + ;;
18974 +
18975 +sysv4*MP*)
18976 + if test -d /usr/nec ;then
18977 + version_type=linux
18978 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18979 + soname_spec='$libname${shared_ext}.$major'
18980 + shlibpath_var=LD_LIBRARY_PATH
18981 + fi
18982 + ;;
18983 +
18984 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18985 + version_type=freebsd-elf
18986 + need_lib_prefix=no
18987 + need_version=no
18988 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18989 + soname_spec='${libname}${release}${shared_ext}$major'
18990 + shlibpath_var=LD_LIBRARY_PATH
18991 + hardcode_into_libs=yes
18992 + if test "$with_gnu_ld" = yes; then
18993 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18994 + shlibpath_overrides_runpath=no
18995 + else
18996 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18997 + shlibpath_overrides_runpath=yes
18998 + case $host_os in
18999 + sco3.2v5*)
19000 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19001 + ;;
19002 + esac
19003 + fi
19004 + sys_lib_dlsearch_path_spec='/usr/lib'
19005 + ;;
19006 +
19007 +uts4*)
19008 + version_type=linux
19009 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010 + soname_spec='${libname}${release}${shared_ext}$major'
19011 + shlibpath_var=LD_LIBRARY_PATH
19012 + ;;
19013 +
19014 +*)
19015 + dynamic_linker=no
19016 + ;;
19017 +esac
19018 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19019 +echo "${ECHO_T}$dynamic_linker" >&6
19020 +test "$dynamic_linker" = no && can_build_shared=no
19021 +
19022 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19023 +if test "$GCC" = yes; then
19024 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19025 +fi
19026 +
19027 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19028 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19029 +hardcode_action=
19030 +if test -n "$hardcode_libdir_flag_spec" || \
19031 + test -n "$runpath_var" || \
19032 + test "X$hardcode_automatic" = "Xyes" ; then
19033 +
19034 + # We can hardcode non-existant directories.
19035 + if test "$hardcode_direct" != no &&
19036 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
19037 + # have to relink, otherwise we might link with an installed library
19038 + # when we should be linking with a yet-to-be-installed one
19039 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19040 + test "$hardcode_minus_L" != no; then
19041 + # Linking always hardcodes the temporary library directory.
19042 + hardcode_action=relink
19043 + else
19044 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
19045 + hardcode_action=immediate
19046 + fi
19047 +else
19048 + # We cannot hardcode anything, or else we can only hardcode existing
19049 + # directories.
19050 + hardcode_action=unsupported
19051 +fi
19052 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
19053 +echo "${ECHO_T}$hardcode_action" >&6
19054 +
19055 +if test "$hardcode_action" = relink; then
19056 + # Fast installation is not supported
19057 + enable_fast_install=no
19058 +elif test "$shlibpath_overrides_runpath" = yes ||
19059 + test "$enable_shared" = no; then
19060 + # Fast installation is not necessary
19061 + enable_fast_install=needless
19062 +fi
19063 +
19064 +striplib=
19065 +old_striplib=
19066 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19067 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19068 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19069 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19070 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19071 + echo "$as_me:$LINENO: result: yes" >&5
19072 +echo "${ECHO_T}yes" >&6
19073 +else
19074 +# FIXME - insert some real tests, host_os isn't really good enough
19075 + case $host_os in
19076 + darwin*)
19077 + if test -n "$STRIP" ; then
19078 + striplib="$STRIP -x"
19079 + echo "$as_me:$LINENO: result: yes" >&5
19080 +echo "${ECHO_T}yes" >&6
19081 + else
19082 + echo "$as_me:$LINENO: result: no" >&5
19083 +echo "${ECHO_T}no" >&6
19084 +fi
19085 + ;;
19086 + *)
19087 + echo "$as_me:$LINENO: result: no" >&5
19088 +echo "${ECHO_T}no" >&6
19089 + ;;
19090 + esac
19091 +fi
19092 +
19093 +if test "x$enable_dlopen" != xyes; then
19094 + enable_dlopen=unknown
19095 + enable_dlopen_self=unknown
19096 + enable_dlopen_self_static=unknown
19097 +else
19098 + lt_cv_dlopen=no
19099 + lt_cv_dlopen_libs=
19100 +
19101 + case $host_os in
19102 + beos*)
19103 + lt_cv_dlopen="load_add_on"
19104 + lt_cv_dlopen_libs=
19105 + lt_cv_dlopen_self=yes
19106 + ;;
19107 +
19108 + mingw* | pw32*)
19109 + lt_cv_dlopen="LoadLibrary"
19110 + lt_cv_dlopen_libs=
19111 + ;;
19112 +
19113 + cygwin*)
19114 + lt_cv_dlopen="dlopen"
19115 + lt_cv_dlopen_libs=
19116 + ;;
19117 +
19118 + darwin*)
19119 + # if libdl is installed we need to link against it
19120 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19121 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19122 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19123 + echo $ECHO_N "(cached) $ECHO_C" >&6
19124 +else
19125 + ac_check_lib_save_LIBS=$LIBS
19126 +LIBS="-ldl $LIBS"
19127 +cat >conftest.$ac_ext <<_ACEOF
19128 +/* confdefs.h. */
19129 +_ACEOF
19130 +cat confdefs.h >>conftest.$ac_ext
19131 +cat >>conftest.$ac_ext <<_ACEOF
19132 +/* end confdefs.h. */
19133 +
19134 +/* Override any gcc2 internal prototype to avoid an error. */
19135 +#ifdef __cplusplus
19136 +extern "C"
19137 +#endif
19138 +/* We use char because int might match the return type of a gcc2
19139 + builtin and then its argument prototype would still apply. */
19140 +char dlopen ();
19141 +int
19142 +main ()
19143 +{
19144 +dlopen ();
19145 + ;
19146 + return 0;
19147 +}
19148 +_ACEOF
19149 +rm -f conftest.$ac_objext conftest$ac_exeext
19150 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 + (eval $ac_link) 2>conftest.er1
19152 + ac_status=$?
19153 + grep -v '^ *+' conftest.er1 >conftest.err
19154 + rm -f conftest.er1
19155 + cat conftest.err >&5
19156 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 + (exit $ac_status); } &&
19158 + { ac_try='test -z "$ac_c_werror_flag"
19159 + || test ! -s conftest.err'
19160 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 + (eval $ac_try) 2>&5
19162 + ac_status=$?
19163 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 + (exit $ac_status); }; } &&
19165 + { ac_try='test -s conftest$ac_exeext'
19166 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 + (eval $ac_try) 2>&5
19168 + ac_status=$?
19169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 + (exit $ac_status); }; }; then
19171 + ac_cv_lib_dl_dlopen=yes
19172 +else
19173 + echo "$as_me: failed program was:" >&5
19174 +sed 's/^/| /' conftest.$ac_ext >&5
19175 +
19176 +ac_cv_lib_dl_dlopen=no
19177 +fi
19178 +rm -f conftest.err conftest.$ac_objext \
19179 + conftest$ac_exeext conftest.$ac_ext
19180 +LIBS=$ac_check_lib_save_LIBS
19181 +fi
19182 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19183 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19184 +if test $ac_cv_lib_dl_dlopen = yes; then
19185 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19186 +else
19187 +
19188 + lt_cv_dlopen="dyld"
19189 + lt_cv_dlopen_libs=
19190 + lt_cv_dlopen_self=yes
19191 +
19192 +fi
19193 +
19194 + ;;
19195 +
19196 + *)
19197 + echo "$as_me:$LINENO: checking for shl_load" >&5
19198 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19199 +if test "${ac_cv_func_shl_load+set}" = set; then
19200 + echo $ECHO_N "(cached) $ECHO_C" >&6
19201 +else
19202 + cat >conftest.$ac_ext <<_ACEOF
19203 +/* confdefs.h. */
19204 +_ACEOF
19205 +cat confdefs.h >>conftest.$ac_ext
19206 +cat >>conftest.$ac_ext <<_ACEOF
19207 +/* end confdefs.h. */
19208 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19209 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
19210 +#define shl_load innocuous_shl_load
19211 +
19212 +/* System header to define __stub macros and hopefully few prototypes,
19213 + which can conflict with char shl_load (); below.
19214 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19215 + <limits.h> exists even on freestanding compilers. */
19216 +
19217 +#ifdef __STDC__
19218 +# include <limits.h>
19219 +#else
19220 +# include <assert.h>
19221 +#endif
19222 +
19223 +#undef shl_load
19224 +
19225 +/* Override any gcc2 internal prototype to avoid an error. */
19226 +#ifdef __cplusplus
19227 +extern "C"
19228 +{
19229 +#endif
19230 +/* We use char because int might match the return type of a gcc2
19231 + builtin and then its argument prototype would still apply. */
19232 +char shl_load ();
19233 +/* The GNU C library defines this for functions which it implements
19234 + to always fail with ENOSYS. Some functions are actually named
19235 + something starting with __ and the normal name is an alias. */
19236 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
19237 +choke me
19238 +#else
19239 +char (*f) () = shl_load;
19240 +#endif
19241 +#ifdef __cplusplus
19242 +}
19243 +#endif
19244 +
19245 +int
19246 +main ()
19247 +{
19248 +return f != shl_load;
19249 + ;
19250 + return 0;
19251 +}
19252 +_ACEOF
19253 +rm -f conftest.$ac_objext conftest$ac_exeext
19254 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19255 + (eval $ac_link) 2>conftest.er1
19256 + ac_status=$?
19257 + grep -v '^ *+' conftest.er1 >conftest.err
19258 + rm -f conftest.er1
19259 + cat conftest.err >&5
19260 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 + (exit $ac_status); } &&
19262 + { ac_try='test -z "$ac_c_werror_flag"
19263 + || test ! -s conftest.err'
19264 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 + (eval $ac_try) 2>&5
19266 + ac_status=$?
19267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 + (exit $ac_status); }; } &&
19269 + { ac_try='test -s conftest$ac_exeext'
19270 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 + (eval $ac_try) 2>&5
19272 + ac_status=$?
19273 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 + (exit $ac_status); }; }; then
19275 + ac_cv_func_shl_load=yes
19276 +else
19277 + echo "$as_me: failed program was:" >&5
19278 +sed 's/^/| /' conftest.$ac_ext >&5
19279 +
19280 +ac_cv_func_shl_load=no
19281 +fi
19282 +rm -f conftest.err conftest.$ac_objext \
19283 + conftest$ac_exeext conftest.$ac_ext
19284 +fi
19285 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19286 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19287 +if test $ac_cv_func_shl_load = yes; then
19288 + lt_cv_dlopen="shl_load"
19289 +else
19290 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19291 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19292 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19293 + echo $ECHO_N "(cached) $ECHO_C" >&6
19294 +else
19295 + ac_check_lib_save_LIBS=$LIBS
19296 +LIBS="-ldld $LIBS"
19297 +cat >conftest.$ac_ext <<_ACEOF
19298 +/* confdefs.h. */
19299 +_ACEOF
19300 +cat confdefs.h >>conftest.$ac_ext
19301 +cat >>conftest.$ac_ext <<_ACEOF
19302 +/* end confdefs.h. */
19303 +
19304 +/* Override any gcc2 internal prototype to avoid an error. */
19305 +#ifdef __cplusplus
19306 +extern "C"
19307 +#endif
19308 +/* We use char because int might match the return type of a gcc2
19309 + builtin and then its argument prototype would still apply. */
19310 +char shl_load ();
19311 +int
19312 +main ()
19313 +{
19314 +shl_load ();
19315 + ;
19316 + return 0;
19317 +}
19318 +_ACEOF
19319 +rm -f conftest.$ac_objext conftest$ac_exeext
19320 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19321 + (eval $ac_link) 2>conftest.er1
19322 + ac_status=$?
19323 + grep -v '^ *+' conftest.er1 >conftest.err
19324 + rm -f conftest.er1
19325 + cat conftest.err >&5
19326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 + (exit $ac_status); } &&
19328 + { ac_try='test -z "$ac_c_werror_flag"
19329 + || test ! -s conftest.err'
19330 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 + (eval $ac_try) 2>&5
19332 + ac_status=$?
19333 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 + (exit $ac_status); }; } &&
19335 + { ac_try='test -s conftest$ac_exeext'
19336 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 + (eval $ac_try) 2>&5
19338 + ac_status=$?
19339 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 + (exit $ac_status); }; }; then
19341 + ac_cv_lib_dld_shl_load=yes
19342 +else
19343 + echo "$as_me: failed program was:" >&5
19344 +sed 's/^/| /' conftest.$ac_ext >&5
19345 +
19346 +ac_cv_lib_dld_shl_load=no
19347 +fi
19348 +rm -f conftest.err conftest.$ac_objext \
19349 + conftest$ac_exeext conftest.$ac_ext
19350 +LIBS=$ac_check_lib_save_LIBS
19351 +fi
19352 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19353 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19354 +if test $ac_cv_lib_dld_shl_load = yes; then
19355 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19356 +else
19357 + echo "$as_me:$LINENO: checking for dlopen" >&5
19358 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19359 +if test "${ac_cv_func_dlopen+set}" = set; then
19360 + echo $ECHO_N "(cached) $ECHO_C" >&6
19361 +else
19362 + cat >conftest.$ac_ext <<_ACEOF
19363 +/* confdefs.h. */
19364 +_ACEOF
19365 +cat confdefs.h >>conftest.$ac_ext
19366 +cat >>conftest.$ac_ext <<_ACEOF
19367 +/* end confdefs.h. */
19368 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19369 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370 +#define dlopen innocuous_dlopen
19371 +
19372 +/* System header to define __stub macros and hopefully few prototypes,
19373 + which can conflict with char dlopen (); below.
19374 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375 + <limits.h> exists even on freestanding compilers. */
19376 +
19377 +#ifdef __STDC__
19378 +# include <limits.h>
19379 +#else
19380 +# include <assert.h>
19381 +#endif
19382 +
19383 +#undef dlopen
19384 +
19385 +/* Override any gcc2 internal prototype to avoid an error. */
19386 +#ifdef __cplusplus
19387 +extern "C"
19388 +{
19389 +#endif
19390 +/* We use char because int might match the return type of a gcc2
19391 + builtin and then its argument prototype would still apply. */
19392 +char dlopen ();
19393 +/* The GNU C library defines this for functions which it implements
19394 + to always fail with ENOSYS. Some functions are actually named
19395 + something starting with __ and the normal name is an alias. */
19396 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
19397 +choke me
19398 +#else
19399 +char (*f) () = dlopen;
19400 +#endif
19401 +#ifdef __cplusplus
19402 +}
19403 +#endif
19404 +
19405 +int
19406 +main ()
19407 +{
19408 +return f != dlopen;
19409 + ;
19410 + return 0;
19411 +}
19412 +_ACEOF
19413 +rm -f conftest.$ac_objext conftest$ac_exeext
19414 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 + (eval $ac_link) 2>conftest.er1
19416 + ac_status=$?
19417 + grep -v '^ *+' conftest.er1 >conftest.err
19418 + rm -f conftest.er1
19419 + cat conftest.err >&5
19420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 + (exit $ac_status); } &&
19422 + { ac_try='test -z "$ac_c_werror_flag"
19423 + || test ! -s conftest.err'
19424 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 + (eval $ac_try) 2>&5
19426 + ac_status=$?
19427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 + (exit $ac_status); }; } &&
19429 + { ac_try='test -s conftest$ac_exeext'
19430 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 + (eval $ac_try) 2>&5
19432 + ac_status=$?
19433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 + (exit $ac_status); }; }; then
19435 + ac_cv_func_dlopen=yes
19436 +else
19437 + echo "$as_me: failed program was:" >&5
19438 +sed 's/^/| /' conftest.$ac_ext >&5
19439 +
19440 +ac_cv_func_dlopen=no
19441 +fi
19442 +rm -f conftest.err conftest.$ac_objext \
19443 + conftest$ac_exeext conftest.$ac_ext
19444 +fi
19445 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19446 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19447 +if test $ac_cv_func_dlopen = yes; then
19448 + lt_cv_dlopen="dlopen"
19449 +else
19450 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19451 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19452 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19453 + echo $ECHO_N "(cached) $ECHO_C" >&6
19454 +else
19455 + ac_check_lib_save_LIBS=$LIBS
19456 +LIBS="-ldl $LIBS"
19457 +cat >conftest.$ac_ext <<_ACEOF
19458 +/* confdefs.h. */
19459 +_ACEOF
19460 +cat confdefs.h >>conftest.$ac_ext
19461 +cat >>conftest.$ac_ext <<_ACEOF
19462 +/* end confdefs.h. */
19463 +
19464 +/* Override any gcc2 internal prototype to avoid an error. */
19465 +#ifdef __cplusplus
19466 +extern "C"
19467 +#endif
19468 +/* We use char because int might match the return type of a gcc2
19469 + builtin and then its argument prototype would still apply. */
19470 +char dlopen ();
19471 +int
19472 +main ()
19473 +{
19474 +dlopen ();
19475 + ;
19476 + return 0;
19477 +}
19478 +_ACEOF
19479 +rm -f conftest.$ac_objext conftest$ac_exeext
19480 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481 + (eval $ac_link) 2>conftest.er1
19482 + ac_status=$?
19483 + grep -v '^ *+' conftest.er1 >conftest.err
19484 + rm -f conftest.er1
19485 + cat conftest.err >&5
19486 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 + (exit $ac_status); } &&
19488 + { ac_try='test -z "$ac_c_werror_flag"
19489 + || test ! -s conftest.err'
19490 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 + (eval $ac_try) 2>&5
19492 + ac_status=$?
19493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 + (exit $ac_status); }; } &&
19495 + { ac_try='test -s conftest$ac_exeext'
19496 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 + (eval $ac_try) 2>&5
19498 + ac_status=$?
19499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 + (exit $ac_status); }; }; then
19501 + ac_cv_lib_dl_dlopen=yes
19502 +else
19503 + echo "$as_me: failed program was:" >&5
19504 +sed 's/^/| /' conftest.$ac_ext >&5
19505 +
19506 +ac_cv_lib_dl_dlopen=no
19507 +fi
19508 +rm -f conftest.err conftest.$ac_objext \
19509 + conftest$ac_exeext conftest.$ac_ext
19510 +LIBS=$ac_check_lib_save_LIBS
19511 +fi
19512 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19513 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19514 +if test $ac_cv_lib_dl_dlopen = yes; then
19515 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19516 +else
19517 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19518 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19519 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19520 + echo $ECHO_N "(cached) $ECHO_C" >&6
19521 +else
19522 + ac_check_lib_save_LIBS=$LIBS
19523 +LIBS="-lsvld $LIBS"
19524 +cat >conftest.$ac_ext <<_ACEOF
19525 +/* confdefs.h. */
19526 +_ACEOF
19527 +cat confdefs.h >>conftest.$ac_ext
19528 +cat >>conftest.$ac_ext <<_ACEOF
19529 +/* end confdefs.h. */
19530 +
19531 +/* Override any gcc2 internal prototype to avoid an error. */
19532 +#ifdef __cplusplus
19533 +extern "C"
19534 +#endif
19535 +/* We use char because int might match the return type of a gcc2
19536 + builtin and then its argument prototype would still apply. */
19537 +char dlopen ();
19538 +int
19539 +main ()
19540 +{
19541 +dlopen ();
19542 + ;
19543 + return 0;
19544 +}
19545 +_ACEOF
19546 +rm -f conftest.$ac_objext conftest$ac_exeext
19547 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19548 + (eval $ac_link) 2>conftest.er1
19549 + ac_status=$?
19550 + grep -v '^ *+' conftest.er1 >conftest.err
19551 + rm -f conftest.er1
19552 + cat conftest.err >&5
19553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 + (exit $ac_status); } &&
19555 + { ac_try='test -z "$ac_c_werror_flag"
19556 + || test ! -s conftest.err'
19557 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 + (eval $ac_try) 2>&5
19559 + ac_status=$?
19560 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 + (exit $ac_status); }; } &&
19562 + { ac_try='test -s conftest$ac_exeext'
19563 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 + (eval $ac_try) 2>&5
19565 + ac_status=$?
19566 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 + (exit $ac_status); }; }; then
19568 + ac_cv_lib_svld_dlopen=yes
19569 +else
19570 + echo "$as_me: failed program was:" >&5
19571 +sed 's/^/| /' conftest.$ac_ext >&5
19572 +
19573 +ac_cv_lib_svld_dlopen=no
19574 +fi
19575 +rm -f conftest.err conftest.$ac_objext \
19576 + conftest$ac_exeext conftest.$ac_ext
19577 +LIBS=$ac_check_lib_save_LIBS
19578 +fi
19579 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19580 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19581 +if test $ac_cv_lib_svld_dlopen = yes; then
19582 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19583 +else
19584 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19585 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19586 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19587 + echo $ECHO_N "(cached) $ECHO_C" >&6
19588 +else
19589 + ac_check_lib_save_LIBS=$LIBS
19590 +LIBS="-ldld $LIBS"
19591 +cat >conftest.$ac_ext <<_ACEOF
19592 +/* confdefs.h. */
19593 +_ACEOF
19594 +cat confdefs.h >>conftest.$ac_ext
19595 +cat >>conftest.$ac_ext <<_ACEOF
19596 +/* end confdefs.h. */
19597 +
19598 +/* Override any gcc2 internal prototype to avoid an error. */
19599 +#ifdef __cplusplus
19600 +extern "C"
19601 +#endif
19602 +/* We use char because int might match the return type of a gcc2
19603 + builtin and then its argument prototype would still apply. */
19604 +char dld_link ();
19605 +int
19606 +main ()
19607 +{
19608 +dld_link ();
19609 + ;
19610 + return 0;
19611 +}
19612 +_ACEOF
19613 +rm -f conftest.$ac_objext conftest$ac_exeext
19614 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 + (eval $ac_link) 2>conftest.er1
19616 + ac_status=$?
19617 + grep -v '^ *+' conftest.er1 >conftest.err
19618 + rm -f conftest.er1
19619 + cat conftest.err >&5
19620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 + (exit $ac_status); } &&
19622 + { ac_try='test -z "$ac_c_werror_flag"
19623 + || test ! -s conftest.err'
19624 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 + (eval $ac_try) 2>&5
19626 + ac_status=$?
19627 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 + (exit $ac_status); }; } &&
19629 + { ac_try='test -s conftest$ac_exeext'
19630 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 + (eval $ac_try) 2>&5
19632 + ac_status=$?
19633 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 + (exit $ac_status); }; }; then
19635 + ac_cv_lib_dld_dld_link=yes
19636 +else
19637 + echo "$as_me: failed program was:" >&5
19638 +sed 's/^/| /' conftest.$ac_ext >&5
19639 +
19640 +ac_cv_lib_dld_dld_link=no
19641 +fi
19642 +rm -f conftest.err conftest.$ac_objext \
19643 + conftest$ac_exeext conftest.$ac_ext
19644 +LIBS=$ac_check_lib_save_LIBS
19645 +fi
19646 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19647 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19648 +if test $ac_cv_lib_dld_dld_link = yes; then
19649 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19650 +fi
19651 +
19652 +
19653 +fi
19654 +
19655 +
19656 +fi
19657 +
19658 +
19659 +fi
19660 +
19661 +
19662 +fi
19663 +
19664 +
19665 +fi
19666 +
19667 + ;;
19668 + esac
19669 +
19670 + if test "x$lt_cv_dlopen" != xno; then
19671 + enable_dlopen=yes
19672 + else
19673 + enable_dlopen=no
19674 + fi
19675 +
19676 + case $lt_cv_dlopen in
19677 + dlopen)
19678 + save_CPPFLAGS="$CPPFLAGS"
19679 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19680 +
19681 + save_LDFLAGS="$LDFLAGS"
19682 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19683 +
19684 + save_LIBS="$LIBS"
19685 + LIBS="$lt_cv_dlopen_libs $LIBS"
19686 +
19687 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19688 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19689 +if test "${lt_cv_dlopen_self+set}" = set; then
19690 + echo $ECHO_N "(cached) $ECHO_C" >&6
19691 +else
19692 + if test "$cross_compiling" = yes; then :
19693 + lt_cv_dlopen_self=cross
19694 +else
19695 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19696 + lt_status=$lt_dlunknown
19697 + cat > conftest.$ac_ext <<EOF
19698 +#line 9154 "configure"
19699 +#include "confdefs.h"
19700 +
19701 +#if HAVE_DLFCN_H
19702 +#include <dlfcn.h>
19703 +#endif
19704 +
19705 +#include <stdio.h>
19706 +
19707 +#ifdef RTLD_GLOBAL
19708 +# define LT_DLGLOBAL RTLD_GLOBAL
19709 +#else
19710 +# ifdef DL_GLOBAL
19711 +# define LT_DLGLOBAL DL_GLOBAL
19712 +# else
19713 +# define LT_DLGLOBAL 0
19714 +# endif
19715 +#endif
19716 +
19717 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19718 + find out it does not work in some platform. */
19719 +#ifndef LT_DLLAZY_OR_NOW
19720 +# ifdef RTLD_LAZY
19721 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
19722 +# else
19723 +# ifdef DL_LAZY
19724 +# define LT_DLLAZY_OR_NOW DL_LAZY
19725 +# else
19726 +# ifdef RTLD_NOW
19727 +# define LT_DLLAZY_OR_NOW RTLD_NOW
19728 +# else
19729 +# ifdef DL_NOW
19730 +# define LT_DLLAZY_OR_NOW DL_NOW
19731 +# else
19732 +# define LT_DLLAZY_OR_NOW 0
19733 +# endif
19734 +# endif
19735 +# endif
19736 +# endif
19737 +#endif
19738 +
19739 +#ifdef __cplusplus
19740 +extern "C" void exit (int);
19741 +#endif
19742 +
19743 +void fnord() { int i=42;}
19744 +int main ()
19745 +{
19746 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19747 + int status = $lt_dlunknown;
19748 +
19749 + if (self)
19750 + {
19751 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19752 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19753 + /* dlclose (self); */
19754 + }
19755 + else
19756 + puts (dlerror ());
19757 +
19758 + exit (status);
19759 +}
19760 +EOF
19761 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 + (eval $ac_link) 2>&5
19763 + ac_status=$?
19764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19766 + (./conftest; exit; ) >&5 2>/dev/null
19767 + lt_status=$?
19768 + case x$lt_status in
19769 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19770 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19771 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19772 + esac
19773 + else :
19774 + # compilation failed
19775 + lt_cv_dlopen_self=no
19776 + fi
19777 +fi
19778 +rm -fr conftest*
19779 +
19780 +
19781 +fi
19782 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19783 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19784 +
19785 + if test "x$lt_cv_dlopen_self" = xyes; then
19786 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19787 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19788 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19789 +if test "${lt_cv_dlopen_self_static+set}" = set; then
19790 + echo $ECHO_N "(cached) $ECHO_C" >&6
19791 +else
19792 + if test "$cross_compiling" = yes; then :
19793 + lt_cv_dlopen_self_static=cross
19794 +else
19795 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19796 + lt_status=$lt_dlunknown
19797 + cat > conftest.$ac_ext <<EOF
19798 +#line 9254 "configure"
19799 +#include "confdefs.h"
19800 +
19801 +#if HAVE_DLFCN_H
19802 +#include <dlfcn.h>
19803 +#endif
19804 +
19805 +#include <stdio.h>
19806 +
19807 +#ifdef RTLD_GLOBAL
19808 +# define LT_DLGLOBAL RTLD_GLOBAL
19809 +#else
19810 +# ifdef DL_GLOBAL
19811 +# define LT_DLGLOBAL DL_GLOBAL
19812 +# else
19813 +# define LT_DLGLOBAL 0
19814 +# endif
19815 +#endif
19816 +
19817 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19818 + find out it does not work in some platform. */
19819 +#ifndef LT_DLLAZY_OR_NOW
19820 +# ifdef RTLD_LAZY
19821 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
19822 +# else
19823 +# ifdef DL_LAZY
19824 +# define LT_DLLAZY_OR_NOW DL_LAZY
19825 +# else
19826 +# ifdef RTLD_NOW
19827 +# define LT_DLLAZY_OR_NOW RTLD_NOW
19828 +# else
19829 +# ifdef DL_NOW
19830 +# define LT_DLLAZY_OR_NOW DL_NOW
19831 +# else
19832 +# define LT_DLLAZY_OR_NOW 0
19833 +# endif
19834 +# endif
19835 +# endif
19836 +# endif
19837 +#endif
19838 +
19839 +#ifdef __cplusplus
19840 +extern "C" void exit (int);
19841 +#endif
19842 +
19843 +void fnord() { int i=42;}
19844 +int main ()
19845 +{
19846 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19847 + int status = $lt_dlunknown;
19848 +
19849 + if (self)
19850 + {
19851 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19852 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19853 + /* dlclose (self); */
19854 + }
19855 + else
19856 + puts (dlerror ());
19857 +
19858 + exit (status);
19859 +}
19860 +EOF
19861 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 + (eval $ac_link) 2>&5
19863 + ac_status=$?
19864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19866 + (./conftest; exit; ) >&5 2>/dev/null
19867 + lt_status=$?
19868 + case x$lt_status in
19869 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19870 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19871 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19872 + esac
19873 + else :
19874 + # compilation failed
19875 + lt_cv_dlopen_self_static=no
19876 + fi
19877 +fi
19878 +rm -fr conftest*
19879 +
19880 +
19881 +fi
19882 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19883 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19884 + fi
19885 +
19886 + CPPFLAGS="$save_CPPFLAGS"
19887 + LDFLAGS="$save_LDFLAGS"
19888 + LIBS="$save_LIBS"
19889 + ;;
19890 + esac
19891 +
19892 + case $lt_cv_dlopen_self in
19893 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19894 + *) enable_dlopen_self=unknown ;;
19895 + esac
19896 +
19897 + case $lt_cv_dlopen_self_static in
19898 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19899 + *) enable_dlopen_self_static=unknown ;;
19900 + esac
19901 +fi
19902 +
19903 +
19904 +# Report which library types will actually be built
19905 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19906 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19907 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
19908 +echo "${ECHO_T}$can_build_shared" >&6
19909 +
19910 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19911 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19912 +test "$can_build_shared" = "no" && enable_shared=no
19913 +
19914 +# On AIX, shared libraries and static libraries use the same namespace, and
19915 +# are all built from PIC.
19916 +case $host_os in
19917 +aix3*)
19918 + test "$enable_shared" = yes && enable_static=no
19919 + if test -n "$RANLIB"; then
19920 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
19921 + postinstall_cmds='$RANLIB $lib'
19922 + fi
19923 + ;;
19924 +
19925 +aix4* | aix5*)
19926 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19927 + test "$enable_shared" = yes && enable_static=no
19928 + fi
19929 + ;;
19930 +esac
19931 +echo "$as_me:$LINENO: result: $enable_shared" >&5
19932 +echo "${ECHO_T}$enable_shared" >&6
19933 +
19934 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19935 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19936 +# Make sure either enable_shared or enable_static is yes.
19937 +test "$enable_shared" = yes || enable_static=yes
19938 +echo "$as_me:$LINENO: result: $enable_static" >&5
19939 +echo "${ECHO_T}$enable_static" >&6
19940 +
19941 +# The else clause should only fire when bootstrapping the
19942 +# libtool distribution, otherwise you forgot to ship ltmain.sh
19943 +# with your package, and you will get complaints that there are
19944 +# no rules to generate ltmain.sh.
19945 +if test -f "$ltmain"; then
19946 + # See if we are running on zsh, and set the options which allow our commands through
19947 + # without removal of \ escapes.
19948 + if test -n "${ZSH_VERSION+set}" ; then
19949 + setopt NO_GLOB_SUBST
19950 + fi
19951 + # Now quote all the things that may contain metacharacters while being
19952 + # careful not to overquote the AC_SUBSTed values. We take copies of the
19953 + # variables and quote the copies for generation of the libtool script.
19954 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19955 + SED SHELL STRIP \
19956 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19957 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19958 + deplibs_check_method reload_flag reload_cmds need_locks \
19959 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19960 + lt_cv_sys_global_symbol_to_c_name_address \
19961 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19962 + old_postinstall_cmds old_postuninstall_cmds \
19963 + compiler \
19964 + CC \
19965 + LD \
19966 + lt_prog_compiler_wl \
19967 + lt_prog_compiler_pic \
19968 + lt_prog_compiler_static \
19969 + lt_prog_compiler_no_builtin_flag \
19970 + export_dynamic_flag_spec \
19971 + thread_safe_flag_spec \
19972 + whole_archive_flag_spec \
19973 + enable_shared_with_static_runtimes \
19974 + old_archive_cmds \
19975 + old_archive_from_new_cmds \
19976 + predep_objects \
19977 + postdep_objects \
19978 + predeps \
19979 + postdeps \
19980 + compiler_lib_search_path \
19981 + archive_cmds \
19982 + archive_expsym_cmds \
19983 + postinstall_cmds \
19984 + postuninstall_cmds \
19985 + old_archive_from_expsyms_cmds \
19986 + allow_undefined_flag \
19987 + no_undefined_flag \
19988 + export_symbols_cmds \
19989 + hardcode_libdir_flag_spec \
19990 + hardcode_libdir_flag_spec_ld \
19991 + hardcode_libdir_separator \
19992 + hardcode_automatic \
19993 + module_cmds \
19994 + module_expsym_cmds \
19995 + lt_cv_prog_compiler_c_o \
19996 + exclude_expsyms \
19997 + include_expsyms; do
19998 +
19999 + case $var in
20000 + old_archive_cmds | \
20001 + old_archive_from_new_cmds | \
20002 + archive_cmds | \
20003 + archive_expsym_cmds | \
20004 + module_cmds | \
20005 + module_expsym_cmds | \
20006 + old_archive_from_expsyms_cmds | \
20007 + export_symbols_cmds | \
20008 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
20009 + postinstall_cmds | postuninstall_cmds | \
20010 + old_postinstall_cmds | old_postuninstall_cmds | \
20011 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20012 + # Double-quote double-evaled strings.
20013 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20014 + ;;
20015 + *)
20016 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20017 + ;;
20018 + esac
20019 + done
20020 +
20021 + case $lt_echo in
20022 + *'\$0 --fallback-echo"')
20023 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20024 + ;;
20025 + esac
20026 +
20027 +cfgfile="${ofile}T"
20028 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20029 + $rm -f "$cfgfile"
20030 + { echo "$as_me:$LINENO: creating $ofile" >&5
20031 +echo "$as_me: creating $ofile" >&6;}
20032 +
20033 + cat <<__EOF__ >> "$cfgfile"
20034 +#! $SHELL
20035 +
20036 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20037 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20038 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20039 +#
20040 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20041 +# Free Software Foundation, Inc.
20042 +#
20043 +# This file is part of GNU Libtool:
20044 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20045 +#
20046 +# This program is free software; you can redistribute it and/or modify
20047 +# it under the terms of the GNU General Public License as published by
20048 +# the Free Software Foundation; either version 2 of the License, or
20049 +# (at your option) any later version.
20050 +#
20051 +# This program is distributed in the hope that it will be useful, but
20052 +# WITHOUT ANY WARRANTY; without even the implied warranty of
20053 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20054 +# General Public License for more details.
20055 +#
20056 +# You should have received a copy of the GNU General Public License
20057 +# along with this program; if not, write to the Free Software
20058 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20059 +#
20060 +# As a special exception to the GNU General Public License, if you
20061 +# distribute this file as part of a program that contains a
20062 +# configuration script generated by Autoconf, you may include it under
20063 +# the same distribution terms that you use for the rest of that program.
20064 +
20065 +# A sed program that does not truncate output.
20066 +SED=$lt_SED
20067 +
20068 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20069 +Xsed="$SED -e 1s/^X//"
20070 +
20071 +# The HP-UX ksh and POSIX shell print the target directory to stdout
20072 +# if CDPATH is set.
20073 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20074 +
20075 +# The names of the tagged configurations supported by this script.
20076 +available_tags=
20077 +
20078 +# ### BEGIN LIBTOOL CONFIG
20079 +
20080 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20081 +
20082 +# Shell to use when invoking shell scripts.
20083 +SHELL=$lt_SHELL
20084 +
20085 +# Whether or not to build shared libraries.
20086 +build_libtool_libs=$enable_shared
20087 +
20088 +# Whether or not to build static libraries.
20089 +build_old_libs=$enable_static
20090 +
20091 +# Whether or not to add -lc for building shared libraries.
20092 +build_libtool_need_lc=$archive_cmds_need_lc
20093 +
20094 +# Whether or not to disallow shared libs when runtime libs are static
20095 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20096 +
20097 +# Whether or not to optimize for fast installation.
20098 +fast_install=$enable_fast_install
20099 +
20100 +# The host system.
20101 +host_alias=$host_alias
20102 +host=$host
20103 +host_os=$host_os
20104 +
20105 +# The build system.
20106 +build_alias=$build_alias
20107 +build=$build
20108 +build_os=$build_os
20109 +
20110 +# An echo program that does not interpret backslashes.
20111 +echo=$lt_echo
20112 +
20113 +# The archiver.
20114 +AR=$lt_AR
20115 +AR_FLAGS=$lt_AR_FLAGS
20116 +
20117 +# A C compiler.
20118 +LTCC=$lt_LTCC
20119 +
20120 +# LTCC compiler flags.
20121 +LTCFLAGS=$lt_LTCFLAGS
20122 +
20123 +# A language-specific compiler.
20124 +CC=$lt_compiler
20125 +
20126 +# Is the compiler the GNU C compiler?
20127 +with_gcc=$GCC
20128 +
20129 +# An ERE matcher.
20130 +EGREP=$lt_EGREP
20131 +
20132 +# The linker used to build libraries.
20133 +LD=$lt_LD
20134 +
20135 +# Whether we need hard or soft links.
20136 +LN_S=$lt_LN_S
20137 +
20138 +# A BSD-compatible nm program.
20139 +NM=$lt_NM
20140 +
20141 +# A symbol stripping program
20142 +STRIP=$lt_STRIP
20143 +
20144 +# Used to examine libraries when file_magic_cmd begins "file"
20145 +MAGIC_CMD=$MAGIC_CMD
20146 +
20147 +# Used on cygwin: DLL creation program.
20148 +DLLTOOL="$DLLTOOL"
20149 +
20150 +# Used on cygwin: object dumper.
20151 +OBJDUMP="$OBJDUMP"
20152 +
20153 +# Used on cygwin: assembler.
20154 +AS="$AS"
20155 +
20156 +# The name of the directory that contains temporary libtool files.
20157 +objdir=$objdir
20158 +
20159 +# How to create reloadable object files.
20160 +reload_flag=$lt_reload_flag
20161 +reload_cmds=$lt_reload_cmds
20162 +
20163 +# How to pass a linker flag through the compiler.
20164 +wl=$lt_lt_prog_compiler_wl
20165 +
20166 +# Object file suffix (normally "o").
20167 +objext="$ac_objext"
20168 +
20169 +# Old archive suffix (normally "a").
20170 +libext="$libext"
20171 +
20172 +# Shared library suffix (normally ".so").
20173 +shrext_cmds='$shrext_cmds'
20174 +
20175 +# Executable file suffix (normally "").
20176 +exeext="$exeext"
20177 +
20178 +# Additional compiler flags for building library objects.
20179 +pic_flag=$lt_lt_prog_compiler_pic
20180 +pic_mode=$pic_mode
20181 +
20182 +# What is the maximum length of a command?
20183 +max_cmd_len=$lt_cv_sys_max_cmd_len
20184 +
20185 +# Does compiler simultaneously support -c and -o options?
20186 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20187 +
20188 +# Must we lock files when doing compilation?
20189 +need_locks=$lt_need_locks
20190 +
20191 +# Do we need the lib prefix for modules?
20192 +need_lib_prefix=$need_lib_prefix
20193 +
20194 +# Do we need a version for libraries?
20195 +need_version=$need_version
20196 +
20197 +# Whether dlopen is supported.
20198 +dlopen_support=$enable_dlopen
20199 +
20200 +# Whether dlopen of programs is supported.
20201 +dlopen_self=$enable_dlopen_self
20202 +
20203 +# Whether dlopen of statically linked programs is supported.
20204 +dlopen_self_static=$enable_dlopen_self_static
20205 +
20206 +# Compiler flag to prevent dynamic linking.
20207 +link_static_flag=$lt_lt_prog_compiler_static
20208 +
20209 +# Compiler flag to turn off builtin functions.
20210 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20211 +
20212 +# Compiler flag to allow reflexive dlopens.
20213 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20214 +
20215 +# Compiler flag to generate shared objects directly from archives.
20216 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
20217 +
20218 +# Compiler flag to generate thread-safe objects.
20219 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
20220 +
20221 +# Library versioning type.
20222 +version_type=$version_type
20223 +
20224 +# Format of library name prefix.
20225 +libname_spec=$lt_libname_spec
20226 +
20227 +# List of archive names. First name is the real one, the rest are links.
20228 +# The last name is the one that the linker finds with -lNAME.
20229 +library_names_spec=$lt_library_names_spec
20230 +
20231 +# The coded name of the library, if different from the real name.
20232 +soname_spec=$lt_soname_spec
20233 +
20234 +# Commands used to build and install an old-style archive.
20235 +RANLIB=$lt_RANLIB
20236 +old_archive_cmds=$lt_old_archive_cmds
20237 +old_postinstall_cmds=$lt_old_postinstall_cmds
20238 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
20239 +
20240 +# Create an old-style archive from a shared archive.
20241 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20242 +
20243 +# Create a temporary old-style archive to link instead of a shared archive.
20244 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20245 +
20246 +# Commands used to build and install a shared archive.
20247 +archive_cmds=$lt_archive_cmds
20248 +archive_expsym_cmds=$lt_archive_expsym_cmds
20249 +postinstall_cmds=$lt_postinstall_cmds
20250 +postuninstall_cmds=$lt_postuninstall_cmds
20251 +
20252 +# Commands used to build a loadable module (assumed same as above if empty)
20253 +module_cmds=$lt_module_cmds
20254 +module_expsym_cmds=$lt_module_expsym_cmds
20255 +
20256 +# Commands to strip libraries.
20257 +old_striplib=$lt_old_striplib
20258 +striplib=$lt_striplib
20259 +
20260 +# Dependencies to place before the objects being linked to create a
20261 +# shared library.
20262 +predep_objects=$lt_predep_objects
20263 +
20264 +# Dependencies to place after the objects being linked to create a
20265 +# shared library.
20266 +postdep_objects=$lt_postdep_objects
20267 +
20268 +# Dependencies to place before the objects being linked to create a
20269 +# shared library.
20270 +predeps=$lt_predeps
20271 +
20272 +# Dependencies to place after the objects being linked to create a
20273 +# shared library.
20274 +postdeps=$lt_postdeps
20275 +
20276 +# The library search path used internally by the compiler when linking
20277 +# a shared library.
20278 +compiler_lib_search_path=$lt_compiler_lib_search_path
20279 +
20280 +# Method to check whether dependent libraries are shared objects.
20281 +deplibs_check_method=$lt_deplibs_check_method
20282 +
20283 +# Command to use when deplibs_check_method == file_magic.
20284 +file_magic_cmd=$lt_file_magic_cmd
20285 +
20286 +# Flag that allows shared libraries with undefined symbols to be built.
20287 +allow_undefined_flag=$lt_allow_undefined_flag
20288 +
20289 +# Flag that forces no undefined symbols.
20290 +no_undefined_flag=$lt_no_undefined_flag
20291 +
20292 +# Commands used to finish a libtool library installation in a directory.
20293 +finish_cmds=$lt_finish_cmds
20294 +
20295 +# Same as above, but a single script fragment to be evaled but not shown.
20296 +finish_eval=$lt_finish_eval
20297 +
20298 +# Take the output of nm and produce a listing of raw symbols and C names.
20299 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20300 +
20301 +# Transform the output of nm in a proper C declaration
20302 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20303 +
20304 +# Transform the output of nm in a C name address pair
20305 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20306 +
20307 +# This is the shared library runtime path variable.
20308 +runpath_var=$runpath_var
20309 +
20310 +# This is the shared library path variable.
20311 +shlibpath_var=$shlibpath_var
20312 +
20313 +# Is shlibpath searched before the hard-coded library search path?
20314 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20315 +
20316 +# How to hardcode a shared library path into an executable.
20317 +hardcode_action=$hardcode_action
20318 +
20319 +# Whether we should hardcode library paths into libraries.
20320 +hardcode_into_libs=$hardcode_into_libs
20321 +
20322 +# Flag to hardcode \$libdir into a binary during linking.
20323 +# This must work even if \$libdir does not exist.
20324 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20325 +
20326 +# If ld is used when linking, flag to hardcode \$libdir into
20327 +# a binary during linking. This must work even if \$libdir does
20328 +# not exist.
20329 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20330 +
20331 +# Whether we need a single -rpath flag with a separated argument.
20332 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
20333 +
20334 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20335 +# resulting binary.
20336 +hardcode_direct=$hardcode_direct
20337 +
20338 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20339 +# resulting binary.
20340 +hardcode_minus_L=$hardcode_minus_L
20341 +
20342 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20343 +# the resulting binary.
20344 +hardcode_shlibpath_var=$hardcode_shlibpath_var
20345 +
20346 +# Set to yes if building a shared library automatically hardcodes DIR into the library
20347 +# and all subsequent libraries and executables linked against it.
20348 +hardcode_automatic=$hardcode_automatic
20349 +
20350 +# Variables whose values should be saved in libtool wrapper scripts and
20351 +# restored at relink time.
20352 +variables_saved_for_relink="$variables_saved_for_relink"
20353 +
20354 +# Whether libtool must link a program against all its dependency libraries.
20355 +link_all_deplibs=$link_all_deplibs
20356 +
20357 +# Compile-time system search path for libraries
20358 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20359 +
20360 +# Run-time system search path for libraries
20361 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20362 +
20363 +# Fix the shell variable \$srcfile for the compiler.
20364 +fix_srcfile_path="$fix_srcfile_path"
20365 +
20366 +# Set to yes if exported symbols are required.
20367 +always_export_symbols=$always_export_symbols
20368 +
20369 +# The commands to list exported symbols.
20370 +export_symbols_cmds=$lt_export_symbols_cmds
20371 +
20372 +# The commands to extract the exported symbol list from a shared archive.
20373 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
20374 +
20375 +# Symbols that should not be listed in the preloaded symbols.
20376 +exclude_expsyms=$lt_exclude_expsyms
20377 +
20378 +# Symbols that must always be exported.
20379 +include_expsyms=$lt_include_expsyms
20380 +
20381 +# ### END LIBTOOL CONFIG
20382 +
20383 +__EOF__
20384 +
20385 +
20386 + case $host_os in
20387 + aix3*)
20388 + cat <<\EOF >> "$cfgfile"
20389 +
20390 +# AIX sometimes has problems with the GCC collect2 program. For some
20391 +# reason, if we set the COLLECT_NAMES environment variable, the problems
20392 +# vanish in a puff of smoke.
20393 +if test "X${COLLECT_NAMES+set}" != Xset; then
20394 + COLLECT_NAMES=
20395 + export COLLECT_NAMES
20396 +fi
20397 +EOF
20398 + ;;
20399 + esac
20400 +
20401 + # We use sed instead of cat because bash on DJGPP gets confused if
20402 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
20403 + # text mode, it properly converts lines to CR/LF. This bash problem
20404 + # is reportedly fixed, but why not run on old versions too?
20405 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20406 +
20407 + mv -f "$cfgfile" "$ofile" || \
20408 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20409 + chmod +x "$ofile"
20410 +
20411 +else
20412 + # If there is no Makefile yet, we rely on a make rule to execute
20413 + # `config.status --recheck' to rerun these tests and create the
20414 + # libtool script then.
20415 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20416 + if test -f "$ltmain_in"; then
20417 + test -f Makefile && make "$ltmain"
20418 + fi
20419 +fi
20420 +
20421 +
20422 +ac_ext=c
20423 +ac_cpp='$CPP $CPPFLAGS'
20424 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427 +
20428 +CC="$lt_save_CC"
20429 +
20430 +
20431 +# Check whether --with-tags or --without-tags was given.
20432 +if test "${with_tags+set}" = set; then
20433 + withval="$with_tags"
20434 + tagnames="$withval"
20435 +fi;
20436 +
20437 +if test -f "$ltmain" && test -n "$tagnames"; then
20438 + if test ! -f "${ofile}"; then
20439 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20440 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20441 + fi
20442 +
20443 + if test -z "$LTCC"; then
20444 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20445 + if test -z "$LTCC"; then
20446 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20447 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20448 + else
20449 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20450 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20451 + fi
20452 + fi
20453 + if test -z "$LTCFLAGS"; then
20454 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
20455 + fi
20456 +
20457 + # Extract list of available tagged configurations in $ofile.
20458 + # Note that this assumes the entire list is on one line.
20459 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20460 +
20461 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20462 + for tagname in $tagnames; do
20463 + IFS="$lt_save_ifs"
20464 + # Check whether tagname contains only valid characters
20465 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20466 + "") ;;
20467 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20468 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
20469 + { (exit 1); exit 1; }; }
20470 + ;;
20471 + esac
20472 +
20473 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20474 + then
20475 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20476 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20477 + { (exit 1); exit 1; }; }
20478 + fi
20479 +
20480 + # Update the list of available tags.
20481 + if test -n "$tagname"; then
20482 + echo appending configuration tag \"$tagname\" to $ofile
20483 +
20484 + case $tagname in
20485 + CXX)
20486 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20487 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20488 + (test "X$CXX" != "Xg++"))) ; then
20489 + ac_ext=cc
20490 +ac_cpp='$CXXCPP $CPPFLAGS'
20491 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20494 +
20495 +
20496 +
20497 +
20498 +archive_cmds_need_lc_CXX=no
20499 +allow_undefined_flag_CXX=
20500 +always_export_symbols_CXX=no
20501 +archive_expsym_cmds_CXX=
20502 +export_dynamic_flag_spec_CXX=
20503 +hardcode_direct_CXX=no
20504 +hardcode_libdir_flag_spec_CXX=
20505 +hardcode_libdir_flag_spec_ld_CXX=
20506 +hardcode_libdir_separator_CXX=
20507 +hardcode_minus_L_CXX=no
20508 +hardcode_shlibpath_var_CXX=unsupported
20509 +hardcode_automatic_CXX=no
20510 +module_cmds_CXX=
20511 +module_expsym_cmds_CXX=
20512 +link_all_deplibs_CXX=unknown
20513 +old_archive_cmds_CXX=$old_archive_cmds
20514 +no_undefined_flag_CXX=
20515 +whole_archive_flag_spec_CXX=
20516 +enable_shared_with_static_runtimes_CXX=no
20517 +
20518 +# Dependencies to place before and after the object being linked:
20519 +predep_objects_CXX=
20520 +postdep_objects_CXX=
20521 +predeps_CXX=
20522 +postdeps_CXX=
20523 +compiler_lib_search_path_CXX=
20524 +
20525 +# Source file extension for C++ test sources.
20526 +ac_ext=cpp
20527 +
20528 +# Object file extension for compiled C++ test sources.
20529 +objext=o
20530 +objext_CXX=$objext
20531 +
20532 +# Code to be used in simple compile tests
20533 +lt_simple_compile_test_code="int some_variable = 0;\n"
20534 +
20535 +# Code to be used in simple link tests
20536 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
20537 +
20538 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20539 +
20540 +# If no C compiler was specified, use CC.
20541 +LTCC=${LTCC-"$CC"}
20542 +
20543 +# If no C compiler flags were specified, use CFLAGS.
20544 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20545 +
20546 +# Allow CC to be a program name with arguments.
20547 +compiler=$CC
20548 +
20549 +
20550 +# save warnings/boilerplate of simple test code
20551 +ac_outfile=conftest.$ac_objext
20552 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20553 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20554 +_lt_compiler_boilerplate=`cat conftest.err`
20555 +$rm conftest*
20556 +
20557 +ac_outfile=conftest.$ac_objext
20558 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
20559 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20560 +_lt_linker_boilerplate=`cat conftest.err`
20561 +$rm conftest*
20562 +
20563 +
20564 +# Allow CC to be a program name with arguments.
20565 +lt_save_CC=$CC
20566 +lt_save_LD=$LD
20567 +lt_save_GCC=$GCC
20568 +GCC=$GXX
20569 +lt_save_with_gnu_ld=$with_gnu_ld
20570 +lt_save_path_LD=$lt_cv_path_LD
20571 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20572 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20573 +else
20574 + $as_unset lt_cv_prog_gnu_ld
20575 +fi
20576 +if test -n "${lt_cv_path_LDCXX+set}"; then
20577 + lt_cv_path_LD=$lt_cv_path_LDCXX
20578 +else
20579 + $as_unset lt_cv_path_LD
20580 +fi
20581 +test -z "${LDCXX+set}" || LD=$LDCXX
20582 +CC=${CXX-"c++"}
20583 +compiler=$CC
20584 +compiler_CXX=$CC
20585 +for cc_temp in $compiler""; do
20586 + case $cc_temp in
20587 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20588 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20589 + \-*) ;;
20590 + *) break;;
20591 + esac
20592 +done
20593 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20594 +
20595 +
20596 +# We don't want -fno-exception wen compiling C++ code, so set the
20597 +# no_builtin_flag separately
20598 +if test "$GXX" = yes; then
20599 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20600 +else
20601 + lt_prog_compiler_no_builtin_flag_CXX=
20602 +fi
20603 +
20604 +if test "$GXX" = yes; then
20605 + # Set up default GNU C++ configuration
20606 +
20607 +
20608 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
20609 +if test "${with_gnu_ld+set}" = set; then
20610 + withval="$with_gnu_ld"
20611 + test "$withval" = no || with_gnu_ld=yes
20612 +else
20613 + with_gnu_ld=no
20614 +fi;
20615 +ac_prog=ld
20616 +if test "$GCC" = yes; then
20617 + # Check if gcc -print-prog-name=ld gives a path.
20618 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20619 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20620 + case $host in
20621 + *-*-mingw*)
20622 + # gcc leaves a trailing carriage return which upsets mingw
20623 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20624 + *)
20625 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20626 + esac
20627 + case $ac_prog in
20628 + # Accept absolute paths.
20629 + [\\/]* | ?:[\\/]*)
20630 + re_direlt='/[^/][^/]*/\.\./'
20631 + # Canonicalize the pathname of ld
20632 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20633 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20634 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20635 + done
20636 + test -z "$LD" && LD="$ac_prog"
20637 + ;;
20638 + "")
20639 + # If it fails, then pretend we aren't using GCC.
20640 + ac_prog=ld
20641 + ;;
20642 + *)
20643 + # If it is relative, then search for the first ld in PATH.
20644 + with_gnu_ld=unknown
20645 + ;;
20646 + esac
20647 +elif test "$with_gnu_ld" = yes; then
20648 + echo "$as_me:$LINENO: checking for GNU ld" >&5
20649 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20650 +else
20651 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20652 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20653 +fi
20654 +if test "${lt_cv_path_LD+set}" = set; then
20655 + echo $ECHO_N "(cached) $ECHO_C" >&6
20656 +else
20657 + if test -z "$LD"; then
20658 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20659 + for ac_dir in $PATH; do
20660 + IFS="$lt_save_ifs"
20661 + test -z "$ac_dir" && ac_dir=.
20662 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20663 + lt_cv_path_LD="$ac_dir/$ac_prog"
20664 + # Check to see if the program is GNU ld. I'd rather use --version,
20665 + # but apparently some variants of GNU ld only accept -v.
20666 + # Break only if it was the GNU/non-GNU ld that we prefer.
20667 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20668 + *GNU* | *'with BFD'*)
20669 + test "$with_gnu_ld" != no && break
20670 + ;;
20671 + *)
20672 + test "$with_gnu_ld" != yes && break
20673 + ;;
20674 + esac
20675 + fi
20676 + done
20677 + IFS="$lt_save_ifs"
20678 +else
20679 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
20680 +fi
20681 +fi
20682 +
20683 +LD="$lt_cv_path_LD"
20684 +if test -n "$LD"; then
20685 + echo "$as_me:$LINENO: result: $LD" >&5
20686 +echo "${ECHO_T}$LD" >&6
20687 +else
20688 + echo "$as_me:$LINENO: result: no" >&5
20689 +echo "${ECHO_T}no" >&6
20690 +fi
20691 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20692 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20693 + { (exit 1); exit 1; }; }
20694 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20695 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20696 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
20697 + echo $ECHO_N "(cached) $ECHO_C" >&6
20698 +else
20699 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
20700 +case `$LD -v 2>&1 </dev/null` in
20701 +*GNU* | *'with BFD'*)
20702 + lt_cv_prog_gnu_ld=yes
20703 + ;;
20704 +*)
20705 + lt_cv_prog_gnu_ld=no
20706 + ;;
20707 +esac
20708 +fi
20709 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20710 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20711 +with_gnu_ld=$lt_cv_prog_gnu_ld
20712 +
20713 +
20714 +
20715 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
20716 + # archiving commands below assume that GNU ld is being used.
20717 + if test "$with_gnu_ld" = yes; then
20718 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20719 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20720 +
20721 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20722 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20723 +
20724 + # If archive_cmds runs LD, not CC, wlarc should be empty
20725 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20726 + # investigate it a little bit more. (MM)
20727 + wlarc='${wl}'
20728 +
20729 + # ancient GNU ld didn't support --whole-archive et. al.
20730 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20731 + grep 'no-whole-archive' > /dev/null; then
20732 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20733 + else
20734 + whole_archive_flag_spec_CXX=
20735 + fi
20736 + else
20737 + with_gnu_ld=no
20738 + wlarc=
20739 +
20740 + # A generic and very simple default shared library creation
20741 + # command for GNU C++ for the case where it uses the native
20742 + # linker, instead of GNU ld. If possible, this setting should
20743 + # overridden to take advantage of the native linker features on
20744 + # the platform it is being used on.
20745 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20746 + fi
20747 +
20748 + # Commands to make compiler produce verbose output that lists
20749 + # what "hidden" libraries, object files and flags are used when
20750 + # linking a shared library.
20751 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20752 +
20753 +else
20754 + GXX=no
20755 + with_gnu_ld=no
20756 + wlarc=
20757 +fi
20758 +
20759 +# PORTME: fill in a description of your system's C++ link characteristics
20760 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20761 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20762 +ld_shlibs_CXX=yes
20763 +case $host_os in
20764 + aix3*)
20765 + # FIXME: insert proper C++ library support
20766 + ld_shlibs_CXX=no
20767 + ;;
20768 + aix4* | aix5*)
20769 + if test "$host_cpu" = ia64; then
20770 + # On IA64, the linker does run time linking by default, so we don't
20771 + # have to do anything special.
20772 + aix_use_runtimelinking=no
20773 + exp_sym_flag='-Bexport'
20774 + no_entry_flag=""
20775 + else
20776 + aix_use_runtimelinking=no
20777 +
20778 + # Test if we are trying to use run time linking or normal
20779 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20780 + # need to do runtime linking.
20781 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20782 + for ld_flag in $LDFLAGS; do
20783 + case $ld_flag in
20784 + *-brtl*)
20785 + aix_use_runtimelinking=yes
20786 + break
20787 + ;;
20788 + esac
20789 + done
20790 + ;;
20791 + esac
20792 +
20793 + exp_sym_flag='-bexport'
20794 + no_entry_flag='-bnoentry'
20795 + fi
20796 +
20797 + # When large executables or shared objects are built, AIX ld can
20798 + # have problems creating the table of contents. If linking a library
20799 + # or program results in "error TOC overflow" add -mminimal-toc to
20800 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20801 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20802 +
20803 + archive_cmds_CXX=''
20804 + hardcode_direct_CXX=yes
20805 + hardcode_libdir_separator_CXX=':'
20806 + link_all_deplibs_CXX=yes
20807 +
20808 + if test "$GXX" = yes; then
20809 + case $host_os in aix4.[012]|aix4.[012].*)
20810 + # We only want to do this on AIX 4.2 and lower, the check
20811 + # below for broken collect2 doesn't work under 4.3+
20812 + collect2name=`${CC} -print-prog-name=collect2`
20813 + if test -f "$collect2name" && \
20814 + strings "$collect2name" | grep resolve_lib_name >/dev/null
20815 + then
20816 + # We have reworked collect2
20817 + hardcode_direct_CXX=yes
20818 + else
20819 + # We have old collect2
20820 + hardcode_direct_CXX=unsupported
20821 + # It fails to find uninstalled libraries when the uninstalled
20822 + # path is not listed in the libpath. Setting hardcode_minus_L
20823 + # to unsupported forces relinking
20824 + hardcode_minus_L_CXX=yes
20825 + hardcode_libdir_flag_spec_CXX='-L$libdir'
20826 + hardcode_libdir_separator_CXX=
20827 + fi
20828 + ;;
20829 + esac
20830 + shared_flag='-shared'
20831 + if test "$aix_use_runtimelinking" = yes; then
20832 + shared_flag="$shared_flag "'${wl}-G'
20833 + fi
20834 + else
20835 + # not using gcc
20836 + if test "$host_cpu" = ia64; then
20837 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20838 + # chokes on -Wl,-G. The following line is correct:
20839 + shared_flag='-G'
20840 + else
20841 + if test "$aix_use_runtimelinking" = yes; then
20842 + shared_flag='${wl}-G'
20843 + else
20844 + shared_flag='${wl}-bM:SRE'
20845 + fi
20846 + fi
20847 + fi
20848 +
20849 + # It seems that -bexpall does not export symbols beginning with
20850 + # underscore (_), so it is better to generate a list of symbols to export.
20851 + always_export_symbols_CXX=yes
20852 + if test "$aix_use_runtimelinking" = yes; then
20853 + # Warning - without using the other runtime loading flags (-brtl),
20854 + # -berok will link without error, but may produce a broken library.
20855 + allow_undefined_flag_CXX='-berok'
20856 + # Determine the default libpath from the value encoded in an empty executable.
20857 + cat >conftest.$ac_ext <<_ACEOF
20858 +/* confdefs.h. */
20859 +_ACEOF
20860 +cat confdefs.h >>conftest.$ac_ext
20861 +cat >>conftest.$ac_ext <<_ACEOF
20862 +/* end confdefs.h. */
20863 +
20864 +int
20865 +main ()
20866 +{
20867 +
20868 + ;
20869 + return 0;
20870 +}
20871 +_ACEOF
20872 +rm -f conftest.$ac_objext conftest$ac_exeext
20873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874 + (eval $ac_link) 2>conftest.er1
20875 + ac_status=$?
20876 + grep -v '^ *+' conftest.er1 >conftest.err
20877 + rm -f conftest.er1
20878 + cat conftest.err >&5
20879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 + (exit $ac_status); } &&
20881 + { ac_try='test -z "$ac_cxx_werror_flag"
20882 + || test ! -s conftest.err'
20883 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 + (eval $ac_try) 2>&5
20885 + ac_status=$?
20886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 + (exit $ac_status); }; } &&
20888 + { ac_try='test -s conftest$ac_exeext'
20889 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 + (eval $ac_try) 2>&5
20891 + ac_status=$?
20892 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 + (exit $ac_status); }; }; then
20894 +
20895 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20896 +}'`
20897 +# Check for a 64-bit object if we didn't find anything.
20898 +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; }
20899 +}'`; fi
20900 +else
20901 + echo "$as_me: failed program was:" >&5
20902 +sed 's/^/| /' conftest.$ac_ext >&5
20903 +
20904 +fi
20905 +rm -f conftest.err conftest.$ac_objext \
20906 + conftest$ac_exeext conftest.$ac_ext
20907 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20908 +
20909 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20910 +
20911 + archive_expsym_cmds_CXX="\$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"
20912 + else
20913 + if test "$host_cpu" = ia64; then
20914 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20915 + allow_undefined_flag_CXX="-z nodefs"
20916 + archive_expsym_cmds_CXX="\$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"
20917 + else
20918 + # Determine the default libpath from the value encoded in an empty executable.
20919 + cat >conftest.$ac_ext <<_ACEOF
20920 +/* confdefs.h. */
20921 +_ACEOF
20922 +cat confdefs.h >>conftest.$ac_ext
20923 +cat >>conftest.$ac_ext <<_ACEOF
20924 +/* end confdefs.h. */
20925 +
20926 +int
20927 +main ()
20928 +{
20929 +
20930 + ;
20931 + return 0;
20932 +}
20933 +_ACEOF
20934 +rm -f conftest.$ac_objext conftest$ac_exeext
20935 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20936 + (eval $ac_link) 2>conftest.er1
20937 + ac_status=$?
20938 + grep -v '^ *+' conftest.er1 >conftest.err
20939 + rm -f conftest.er1
20940 + cat conftest.err >&5
20941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 + (exit $ac_status); } &&
20943 + { ac_try='test -z "$ac_cxx_werror_flag"
20944 + || test ! -s conftest.err'
20945 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 + (eval $ac_try) 2>&5
20947 + ac_status=$?
20948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 + (exit $ac_status); }; } &&
20950 + { ac_try='test -s conftest$ac_exeext'
20951 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 + (eval $ac_try) 2>&5
20953 + ac_status=$?
20954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 + (exit $ac_status); }; }; then
20956 +
20957 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20958 +}'`
20959 +# Check for a 64-bit object if we didn't find anything.
20960 +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; }
20961 +}'`; fi
20962 +else
20963 + echo "$as_me: failed program was:" >&5
20964 +sed 's/^/| /' conftest.$ac_ext >&5
20965 +
20966 +fi
20967 +rm -f conftest.err conftest.$ac_objext \
20968 + conftest$ac_exeext conftest.$ac_ext
20969 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20970 +
20971 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20972 + # Warning - without using the other run time loading flags,
20973 + # -berok will link without error, but may produce a broken library.
20974 + no_undefined_flag_CXX=' ${wl}-bernotok'
20975 + allow_undefined_flag_CXX=' ${wl}-berok'
20976 + # Exported symbols can be pulled into shared objects from archives
20977 + whole_archive_flag_spec_CXX='$convenience'
20978 + archive_cmds_need_lc_CXX=yes
20979 + # This is similar to how AIX traditionally builds its shared libraries.
20980 + archive_expsym_cmds_CXX="\$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'
20981 + fi
20982 + fi
20983 + ;;
20984 +
20985 + beos*)
20986 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20987 + allow_undefined_flag_CXX=unsupported
20988 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20989 + # support --undefined. This deserves some investigation. FIXME
20990 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20991 + else
20992 + ld_shlibs_CXX=no
20993 + fi
20994 + ;;
20995 +
20996 + chorus*)
20997 + case $cc_basename in
20998 + *)
20999 + # FIXME: insert proper C++ library support
21000 + ld_shlibs_CXX=no
21001 + ;;
21002 + esac
21003 + ;;
21004 +
21005 + cygwin* | mingw* | pw32*)
21006 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21007 + # as there is no search path for DLLs.
21008 + hardcode_libdir_flag_spec_CXX='-L$libdir'
21009 + allow_undefined_flag_CXX=unsupported
21010 + always_export_symbols_CXX=no
21011 + enable_shared_with_static_runtimes_CXX=yes
21012 +
21013 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21014 + archive_cmds_CXX='$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'
21015 + # If the export-symbols file already is a .def file (1st line
21016 + # is EXPORTS), use it as is; otherwise, prepend...
21017 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21018 + cp $export_symbols $output_objdir/$soname.def;
21019 + else
21020 + echo EXPORTS > $output_objdir/$soname.def;
21021 + cat $export_symbols >> $output_objdir/$soname.def;
21022 + fi~
21023 + $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'
21024 + else
21025 + ld_shlibs_CXX=no
21026 + fi
21027 + ;;
21028 + darwin* | rhapsody*)
21029 + case $host_os in
21030 + rhapsody* | darwin1.[012])
21031 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21032 + ;;
21033 + *) # Darwin 1.3 on
21034 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21035 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21036 + else
21037 + case ${MACOSX_DEPLOYMENT_TARGET} in
21038 + 10.[012])
21039 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21040 + ;;
21041 + 10.*)
21042 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21043 + ;;
21044 + esac
21045 + fi
21046 + ;;
21047 + esac
21048 + archive_cmds_need_lc_CXX=no
21049 + hardcode_direct_CXX=no
21050 + hardcode_automatic_CXX=yes
21051 + hardcode_shlibpath_var_CXX=unsupported
21052 + whole_archive_flag_spec_CXX=''
21053 + link_all_deplibs_CXX=yes
21054 +
21055 + if test "$GXX" = yes ; then
21056 + lt_int_apple_cc_single_mod=no
21057 + output_verbose_link_cmd='echo'
21058 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21059 + lt_int_apple_cc_single_mod=yes
21060 + fi
21061 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21062 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21063 + else
21064 + archive_cmds_CXX='$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'
21065 + fi
21066 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21067 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21068 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21069 + archive_expsym_cmds_CXX='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}'
21070 + else
21071 + archive_expsym_cmds_CXX='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}'
21072 + fi
21073 + module_expsym_cmds_CXX='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}'
21074 + else
21075 + case $cc_basename in
21076 + xlc*)
21077 + output_verbose_link_cmd='echo'
21078 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21079 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21080 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21081 + archive_expsym_cmds_CXX='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}'
21082 + module_expsym_cmds_CXX='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}'
21083 + ;;
21084 + *)
21085 + ld_shlibs_CXX=no
21086 + ;;
21087 + esac
21088 + fi
21089 + ;;
21090 +
21091 + dgux*)
21092 + case $cc_basename in
21093 + ec++*)
21094 + # FIXME: insert proper C++ library support
21095 + ld_shlibs_CXX=no
21096 + ;;
21097 + ghcx*)
21098 + # Green Hills C++ Compiler
21099 + # FIXME: insert proper C++ library support
21100 + ld_shlibs_CXX=no
21101 + ;;
21102 + *)
21103 + # FIXME: insert proper C++ library support
21104 + ld_shlibs_CXX=no
21105 + ;;
21106 + esac
21107 + ;;
21108 + freebsd[12]*)
21109 + # C++ shared libraries reported to be fairly broken before switch to ELF
21110 + ld_shlibs_CXX=no
21111 + ;;
21112 + freebsd-elf*)
21113 + archive_cmds_need_lc_CXX=no
21114 + ;;
21115 + freebsd* | kfreebsd*-gnu | dragonfly*)
21116 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21117 + # conventions
21118 + ld_shlibs_CXX=yes
21119 + ;;
21120 + gnu*)
21121 + ;;
21122 + hpux9*)
21123 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21124 + hardcode_libdir_separator_CXX=:
21125 + export_dynamic_flag_spec_CXX='${wl}-E'
21126 + hardcode_direct_CXX=yes
21127 + hardcode_minus_L_CXX=yes # Not in the search PATH,
21128 + # but as the default
21129 + # location of the library.
21130 +
21131 + case $cc_basename in
21132 + CC*)
21133 + # FIXME: insert proper C++ library support
21134 + ld_shlibs_CXX=no
21135 + ;;
21136 + aCC*)
21137 + archive_cmds_CXX='$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'
21138 + # Commands to make compiler produce verbose output that lists
21139 + # what "hidden" libraries, object files and flags are used when
21140 + # linking a shared library.
21141 + #
21142 + # There doesn't appear to be a way to prevent this compiler from
21143 + # explicitly linking system object files so we need to strip them
21144 + # from the output so that they don't get included in the library
21145 + # dependencies.
21146 + 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'
21147 + ;;
21148 + *)
21149 + if test "$GXX" = yes; then
21150 + archive_cmds_CXX='$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'
21151 + else
21152 + # FIXME: insert proper C++ library support
21153 + ld_shlibs_CXX=no
21154 + fi
21155 + ;;
21156 + esac
21157 + ;;
21158 + hpux10*|hpux11*)
21159 + if test $with_gnu_ld = no; then
21160 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21161 + hardcode_libdir_separator_CXX=:
21162 +
21163 + case $host_cpu in
21164 + hppa*64*|ia64*)
21165 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21166 + ;;
21167 + *)
21168 + export_dynamic_flag_spec_CXX='${wl}-E'
21169 + ;;
21170 + esac
21171 + fi
21172 + case $host_cpu in
21173 + hppa*64*|ia64*)
21174 + hardcode_direct_CXX=no
21175 + hardcode_shlibpath_var_CXX=no
21176 + ;;
21177 + *)
21178 + hardcode_direct_CXX=yes
21179 + hardcode_minus_L_CXX=yes # Not in the search PATH,
21180 + # but as the default
21181 + # location of the library.
21182 + ;;
21183 + esac
21184 +
21185 + case $cc_basename in
21186 + CC*)
21187 + # FIXME: insert proper C++ library support
21188 + ld_shlibs_CXX=no
21189 + ;;
21190 + aCC*)
21191 + case $host_cpu in
21192 + hppa*64*)
21193 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21194 + ;;
21195 + ia64*)
21196 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21197 + ;;
21198 + *)
21199 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21200 + ;;
21201 + esac
21202 + # Commands to make compiler produce verbose output that lists
21203 + # what "hidden" libraries, object files and flags are used when
21204 + # linking a shared library.
21205 + #
21206 + # There doesn't appear to be a way to prevent this compiler from
21207 + # explicitly linking system object files so we need to strip them
21208 + # from the output so that they don't get included in the library
21209 + # dependencies.
21210 + 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'
21211 + ;;
21212 + *)
21213 + if test "$GXX" = yes; then
21214 + if test $with_gnu_ld = no; then
21215 + case $host_cpu in
21216 + hppa*64*)
21217 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21218 + ;;
21219 + ia64*)
21220 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21221 + ;;
21222 + *)
21223 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21224 + ;;
21225 + esac
21226 + fi
21227 + else
21228 + # FIXME: insert proper C++ library support
21229 + ld_shlibs_CXX=no
21230 + fi
21231 + ;;
21232 + esac
21233 + ;;
21234 + interix3*)
21235 + hardcode_direct_CXX=no
21236 + hardcode_shlibpath_var_CXX=no
21237 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21238 + export_dynamic_flag_spec_CXX='${wl}-E'
21239 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21240 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21241 + # default) and relocated if they conflict, which is a slow very memory
21242 + # consuming and fragmenting process. To avoid this, we pick a random,
21243 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21244 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21245 + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21246 + archive_expsym_cmds_CXX='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'
21247 + ;;
21248 + irix5* | irix6*)
21249 + case $cc_basename in
21250 + CC*)
21251 + # SGI C++
21252 + archive_cmds_CXX='$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'
21253 +
21254 + # Archives containing C++ object files must be created using
21255 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21256 + # necessary to make sure instantiated templates are included
21257 + # in the archive.
21258 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21259 + ;;
21260 + *)
21261 + if test "$GXX" = yes; then
21262 + if test "$with_gnu_ld" = no; then
21263 + archive_cmds_CXX='$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'
21264 + else
21265 + archive_cmds_CXX='$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'
21266 + fi
21267 + fi
21268 + link_all_deplibs_CXX=yes
21269 + ;;
21270 + esac
21271 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21272 + hardcode_libdir_separator_CXX=:
21273 + ;;
21274 + linux*)
21275 + case $cc_basename in
21276 + KCC*)
21277 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21278 +
21279 + # KCC will only create a shared library if the output file
21280 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21281 + # to its proper name (with version) after linking.
21282 + archive_cmds_CXX='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'
21283 + archive_expsym_cmds_CXX='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'
21284 + # Commands to make compiler produce verbose output that lists
21285 + # what "hidden" libraries, object files and flags are used when
21286 + # linking a shared library.
21287 + #
21288 + # There doesn't appear to be a way to prevent this compiler from
21289 + # explicitly linking system object files so we need to strip them
21290 + # from the output so that they don't get included in the library
21291 + # dependencies.
21292 + 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'
21293 +
21294 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21295 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21296 +
21297 + # Archives containing C++ object files must be created using
21298 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21299 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21300 + ;;
21301 + icpc*)
21302 + # Intel C++
21303 + with_gnu_ld=yes
21304 + # version 8.0 and above of icpc choke on multiply defined symbols
21305 + # if we add $predep_objects and $postdep_objects, however 7.1 and
21306 + # earlier do not add the objects themselves.
21307 + case `$CC -V 2>&1` in
21308 + *"Version 7."*)
21309 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21310 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21311 + ;;
21312 + *) # Version 8.0 or newer
21313 + tmp_idyn=
21314 + case $host_cpu in
21315 + ia64*) tmp_idyn=' -i_dynamic';;
21316 + esac
21317 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21318 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21319 + ;;
21320 + esac
21321 + archive_cmds_need_lc_CXX=no
21322 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21323 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21324 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21325 + ;;
21326 + pgCC*)
21327 + # Portland Group C++ compiler
21328 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21329 + archive_expsym_cmds_CXX='$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'
21330 +
21331 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21332 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21333 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21334 + ;;
21335 + cxx*)
21336 + # Compaq C++
21337 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21338 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
21339 +
21340 + runpath_var=LD_RUN_PATH
21341 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21342 + hardcode_libdir_separator_CXX=:
21343 +
21344 + # Commands to make compiler produce verbose output that lists
21345 + # what "hidden" libraries, object files and flags are used when
21346 + # linking a shared library.
21347 + #
21348 + # There doesn't appear to be a way to prevent this compiler from
21349 + # explicitly linking system object files so we need to strip them
21350 + # from the output so that they don't get included in the library
21351 + # dependencies.
21352 + 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'
21353 + ;;
21354 + esac
21355 + ;;
21356 + lynxos*)
21357 + # FIXME: insert proper C++ library support
21358 + ld_shlibs_CXX=no
21359 + ;;
21360 + m88k*)
21361 + # FIXME: insert proper C++ library support
21362 + ld_shlibs_CXX=no
21363 + ;;
21364 + mvs*)
21365 + case $cc_basename in
21366 + cxx*)
21367 + # FIXME: insert proper C++ library support
21368 + ld_shlibs_CXX=no
21369 + ;;
21370 + *)
21371 + # FIXME: insert proper C++ library support
21372 + ld_shlibs_CXX=no
21373 + ;;
21374 + esac
21375 + ;;
21376 + netbsd*)
21377 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21378 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21379 + wlarc=
21380 + hardcode_libdir_flag_spec_CXX='-R$libdir'
21381 + hardcode_direct_CXX=yes
21382 + hardcode_shlibpath_var_CXX=no
21383 + fi
21384 + # Workaround some broken pre-1.5 toolchains
21385 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21386 + ;;
21387 + openbsd2*)
21388 + # C++ shared libraries are fairly broken
21389 + ld_shlibs_CXX=no
21390 + ;;
21391 + openbsd*)
21392 + hardcode_direct_CXX=yes
21393 + hardcode_shlibpath_var_CXX=no
21394 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21395 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21396 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21397 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21398 + export_dynamic_flag_spec_CXX='${wl}-E'
21399 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21400 + fi
21401 + output_verbose_link_cmd='echo'
21402 + ;;
21403 + osf3*)
21404 + case $cc_basename in
21405 + KCC*)
21406 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21407 +
21408 + # KCC will only create a shared library if the output file
21409 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21410 + # to its proper name (with version) after linking.
21411 + archive_cmds_CXX='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'
21412 +
21413 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21414 + hardcode_libdir_separator_CXX=:
21415 +
21416 + # Archives containing C++ object files must be created using
21417 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21418 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21419 +
21420 + ;;
21421 + RCC*)
21422 + # Rational C++ 2.4.1
21423 + # FIXME: insert proper C++ library support
21424 + ld_shlibs_CXX=no
21425 + ;;
21426 + cxx*)
21427 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21428 + archive_cmds_CXX='$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'
21429 +
21430 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21431 + hardcode_libdir_separator_CXX=:
21432 +
21433 + # Commands to make compiler produce verbose output that lists
21434 + # what "hidden" libraries, object files and flags are used when
21435 + # linking a shared library.
21436 + #
21437 + # There doesn't appear to be a way to prevent this compiler from
21438 + # explicitly linking system object files so we need to strip them
21439 + # from the output so that they don't get included in the library
21440 + # dependencies.
21441 + 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'
21442 + ;;
21443 + *)
21444 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21445 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21446 + archive_cmds_CXX='$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'
21447 +
21448 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21449 + hardcode_libdir_separator_CXX=:
21450 +
21451 + # Commands to make compiler produce verbose output that lists
21452 + # what "hidden" libraries, object files and flags are used when
21453 + # linking a shared library.
21454 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21455 +
21456 + else
21457 + # FIXME: insert proper C++ library support
21458 + ld_shlibs_CXX=no
21459 + fi
21460 + ;;
21461 + esac
21462 + ;;
21463 + osf4* | osf5*)
21464 + case $cc_basename in
21465 + KCC*)
21466 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21467 +
21468 + # KCC will only create a shared library if the output file
21469 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21470 + # to its proper name (with version) after linking.
21471 + archive_cmds_CXX='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'
21472 +
21473 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21474 + hardcode_libdir_separator_CXX=:
21475 +
21476 + # Archives containing C++ object files must be created using
21477 + # the KAI C++ compiler.
21478 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21479 + ;;
21480 + RCC*)
21481 + # Rational C++ 2.4.1
21482 + # FIXME: insert proper C++ library support
21483 + ld_shlibs_CXX=no
21484 + ;;
21485 + cxx*)
21486 + allow_undefined_flag_CXX=' -expect_unresolved \*'
21487 + archive_cmds_CXX='$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'
21488 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21489 + echo "-hidden">> $lib.exp~
21490 + $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~
21491 + $rm $lib.exp'
21492 +
21493 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21494 + hardcode_libdir_separator_CXX=:
21495 +
21496 + # Commands to make compiler produce verbose output that lists
21497 + # what "hidden" libraries, object files and flags are used when
21498 + # linking a shared library.
21499 + #
21500 + # There doesn't appear to be a way to prevent this compiler from
21501 + # explicitly linking system object files so we need to strip them
21502 + # from the output so that they don't get included in the library
21503 + # dependencies.
21504 + 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'
21505 + ;;
21506 + *)
21507 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21508 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21509 + archive_cmds_CXX='$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'
21510 +
21511 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21512 + hardcode_libdir_separator_CXX=:
21513 +
21514 + # Commands to make compiler produce verbose output that lists
21515 + # what "hidden" libraries, object files and flags are used when
21516 + # linking a shared library.
21517 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21518 +
21519 + else
21520 + # FIXME: insert proper C++ library support
21521 + ld_shlibs_CXX=no
21522 + fi
21523 + ;;
21524 + esac
21525 + ;;
21526 + psos*)
21527 + # FIXME: insert proper C++ library support
21528 + ld_shlibs_CXX=no
21529 + ;;
21530 + sunos4*)
21531 + case $cc_basename in
21532 + CC*)
21533 + # Sun C++ 4.x
21534 + # FIXME: insert proper C++ library support
21535 + ld_shlibs_CXX=no
21536 + ;;
21537 + lcc*)
21538 + # Lucid
21539 + # FIXME: insert proper C++ library support
21540 + ld_shlibs_CXX=no
21541 + ;;
21542 + *)
21543 + # FIXME: insert proper C++ library support
21544 + ld_shlibs_CXX=no
21545 + ;;
21546 + esac
21547 + ;;
21548 + solaris*)
21549 + case $cc_basename in
21550 + CC*)
21551 + # Sun C++ 4.2, 5.x and Centerline C++
21552 + archive_cmds_need_lc_CXX=yes
21553 + no_undefined_flag_CXX=' -zdefs'
21554 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21555 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21556 + $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'
21557 +
21558 + hardcode_libdir_flag_spec_CXX='-R$libdir'
21559 + hardcode_shlibpath_var_CXX=no
21560 + case $host_os in
21561 + solaris2.[0-5] | solaris2.[0-5].*) ;;
21562 + *)
21563 + # The C++ compiler is used as linker so we must use $wl
21564 + # flag to pass the commands to the underlying system
21565 + # linker. We must also pass each convience library through
21566 + # to the system linker between allextract/defaultextract.
21567 + # The C++ compiler will combine linker options so we
21568 + # cannot just pass the convience library names through
21569 + # without $wl.
21570 + # Supported since Solaris 2.6 (maybe 2.5.1?)
21571 + whole_archive_flag_spec_CXX='${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'
21572 + ;;
21573 + esac
21574 + link_all_deplibs_CXX=yes
21575 +
21576 + output_verbose_link_cmd='echo'
21577 +
21578 + # Archives containing C++ object files must be created using
21579 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
21580 + # necessary to make sure instantiated templates are included
21581 + # in the archive.
21582 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21583 + ;;
21584 + gcx*)
21585 + # Green Hills C++ Compiler
21586 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21587 +
21588 + # The C++ compiler must be used to create the archive.
21589 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21590 + ;;
21591 + *)
21592 + # GNU C++ compiler with Solaris linker
21593 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21594 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21595 + if $CC --version | grep -v '^2\.7' > /dev/null; then
21596 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21597 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21598 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21599 +
21600 + # Commands to make compiler produce verbose output that lists
21601 + # what "hidden" libraries, object files and flags are used when
21602 + # linking a shared library.
21603 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21604 + else
21605 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
21606 + # platform.
21607 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21608 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21609 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21610 +
21611 + # Commands to make compiler produce verbose output that lists
21612 + # what "hidden" libraries, object files and flags are used when
21613 + # linking a shared library.
21614 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21615 + fi
21616 +
21617 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21618 + fi
21619 + ;;
21620 + esac
21621 + ;;
21622 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21623 + no_undefined_flag_CXX='${wl}-z,text'
21624 + archive_cmds_need_lc_CXX=no
21625 + hardcode_shlibpath_var_CXX=no
21626 + runpath_var='LD_RUN_PATH'
21627 +
21628 + case $cc_basename in
21629 + CC*)
21630 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21631 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21632 + ;;
21633 + *)
21634 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21635 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21636 + ;;
21637 + esac
21638 + ;;
21639 + sysv5* | sco3.2v5* | sco5v6*)
21640 + # Note: We can NOT use -z defs as we might desire, because we do not
21641 + # link with -lc, and that would cause any symbols used from libc to
21642 + # always be unresolved, which means just about no library would
21643 + # ever link correctly. If we're not using GNU ld we use -z text
21644 + # though, which does catch some bad symbols but isn't as heavy-handed
21645 + # as -z defs.
21646 + # For security reasons, it is highly recommended that you always
21647 + # use absolute paths for naming shared libraries, and exclude the
21648 + # DT_RUNPATH tag from executables and libraries. But doing so
21649 + # requires that you compile everything twice, which is a pain.
21650 + # So that behaviour is only enabled if SCOABSPATH is set to a
21651 + # non-empty value in the environment. Most likely only useful for
21652 + # creating official distributions of packages.
21653 + # This is a hack until libtool officially supports absolute path
21654 + # names for shared libraries.
21655 + no_undefined_flag_CXX='${wl}-z,text'
21656 + allow_undefined_flag_CXX='${wl}-z,nodefs'
21657 + archive_cmds_need_lc_CXX=no
21658 + hardcode_shlibpath_var_CXX=no
21659 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21660 + hardcode_libdir_separator_CXX=':'
21661 + link_all_deplibs_CXX=yes
21662 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
21663 + runpath_var='LD_RUN_PATH'
21664 +
21665 + case $cc_basename in
21666 + CC*)
21667 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21668 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21669 + ;;
21670 + *)
21671 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21672 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21673 + ;;
21674 + esac
21675 + ;;
21676 + tandem*)
21677 + case $cc_basename in
21678 + NCC*)
21679 + # NonStop-UX NCC 3.20
21680 + # FIXME: insert proper C++ library support
21681 + ld_shlibs_CXX=no
21682 + ;;
21683 + *)
21684 + # FIXME: insert proper C++ library support
21685 + ld_shlibs_CXX=no
21686 + ;;
21687 + esac
21688 + ;;
21689 + vxworks*)
21690 + # FIXME: insert proper C++ library support
21691 + ld_shlibs_CXX=no
21692 + ;;
21693 + *)
21694 + # FIXME: insert proper C++ library support
21695 + ld_shlibs_CXX=no
21696 + ;;
21697 +esac
21698 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21699 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
21700 +test "$ld_shlibs_CXX" = no && can_build_shared=no
21701 +
21702 +GCC_CXX="$GXX"
21703 +LD_CXX="$LD"
21704 +
21705 +
21706 +cat > conftest.$ac_ext <<EOF
21707 +class Foo
21708 +{
21709 +public:
21710 + Foo (void) { a = 0; }
21711 +private:
21712 + int a;
21713 +};
21714 +EOF
21715 +
21716 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 + (eval $ac_compile) 2>&5
21718 + ac_status=$?
21719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 + (exit $ac_status); }; then
21721 + # Parse the compiler output and extract the necessary
21722 + # objects, libraries and library flags.
21723 +
21724 + # Sentinel used to keep track of whether or not we are before
21725 + # the conftest object file.
21726 + pre_test_object_deps_done=no
21727 +
21728 + # The `*' in the case matches for architectures that use `case' in
21729 + # $output_verbose_cmd can trigger glob expansion during the loop
21730 + # eval without this substitution.
21731 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21732 +
21733 + for p in `eval $output_verbose_link_cmd`; do
21734 + case $p in
21735 +
21736 + -L* | -R* | -l*)
21737 + # Some compilers place space between "-{L,R}" and the path.
21738 + # Remove the space.
21739 + if test $p = "-L" \
21740 + || test $p = "-R"; then
21741 + prev=$p
21742 + continue
21743 + else
21744 + prev=
21745 + fi
21746 +
21747 + if test "$pre_test_object_deps_done" = no; then
21748 + case $p in
21749 + -L* | -R*)
21750 + # Internal compiler library paths should come after those
21751 + # provided the user. The postdeps already come after the
21752 + # user supplied libs so there is no need to process them.
21753 + if test -z "$compiler_lib_search_path_CXX"; then
21754 + compiler_lib_search_path_CXX="${prev}${p}"
21755 + else
21756 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21757 + fi
21758 + ;;
21759 + # The "-l" case would never come before the object being
21760 + # linked, so don't bother handling this case.
21761 + esac
21762 + else
21763 + if test -z "$postdeps_CXX"; then
21764 + postdeps_CXX="${prev}${p}"
21765 + else
21766 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21767 + fi
21768 + fi
21769 + ;;
21770 +
21771 + *.$objext)
21772 + # This assumes that the test object file only shows up
21773 + # once in the compiler output.
21774 + if test "$p" = "conftest.$objext"; then
21775 + pre_test_object_deps_done=yes
21776 + continue
21777 + fi
21778 +
21779 + if test "$pre_test_object_deps_done" = no; then
21780 + if test -z "$predep_objects_CXX"; then
21781 + predep_objects_CXX="$p"
21782 + else
21783 + predep_objects_CXX="$predep_objects_CXX $p"
21784 + fi
21785 + else
21786 + if test -z "$postdep_objects_CXX"; then
21787 + postdep_objects_CXX="$p"
21788 + else
21789 + postdep_objects_CXX="$postdep_objects_CXX $p"
21790 + fi
21791 + fi
21792 + ;;
21793 +
21794 + *) ;; # Ignore the rest.
21795 +
21796 + esac
21797 + done
21798 +
21799 + # Clean up.
21800 + rm -f a.out a.exe
21801 +else
21802 + echo "libtool.m4: error: problem compiling CXX test program"
21803 +fi
21804 +
21805 +$rm -f confest.$objext
21806 +
21807 +# PORTME: override above test on systems where it is broken
21808 +case $host_os in
21809 +interix3*)
21810 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
21811 + # hack all around it, let's just trust "g++" to DTRT.
21812 + predep_objects_CXX=
21813 + postdep_objects_CXX=
21814 + postdeps_CXX=
21815 + ;;
21816 +
21817 +solaris*)
21818 + case $cc_basename in
21819 + CC*)
21820 + # Adding this requires a known-good setup of shared libraries for
21821 + # Sun compiler versions before 5.6, else PIC objects from an old
21822 + # archive will be linked into the output, leading to subtle bugs.
21823 + postdeps_CXX='-lCstd -lCrun'
21824 + ;;
21825 + esac
21826 + ;;
21827 +esac
21828 +
21829 +
21830 +case " $postdeps_CXX " in
21831 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21832 +esac
21833 +
21834 +lt_prog_compiler_wl_CXX=
21835 +lt_prog_compiler_pic_CXX=
21836 +lt_prog_compiler_static_CXX=
21837 +
21838 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21839 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21840 +
21841 + # C++ specific cases for pic, static, wl, etc.
21842 + if test "$GXX" = yes; then
21843 + lt_prog_compiler_wl_CXX='-Wl,'
21844 + lt_prog_compiler_static_CXX='-static'
21845 +
21846 + case $host_os in
21847 + aix*)
21848 + # All AIX code is PIC.
21849 + if test "$host_cpu" = ia64; then
21850 + # AIX 5 now supports IA64 processor
21851 + lt_prog_compiler_static_CXX='-Bstatic'
21852 + fi
21853 + ;;
21854 + amigaos*)
21855 + # FIXME: we need at least 68020 code to build shared libraries, but
21856 + # adding the `-m68020' flag to GCC prevents building anything better,
21857 + # like `-m68040'.
21858 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21859 + ;;
21860 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21861 + # PIC is the default for these OSes.
21862 + ;;
21863 + mingw* | os2* | pw32*)
21864 + # This hack is so that the source file can tell whether it is being
21865 + # built for inclusion in a dll (and should export symbols for example).
21866 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21867 + ;;
21868 + darwin* | rhapsody*)
21869 + # PIC is the default on this platform
21870 + # Common symbols not allowed in MH_DYLIB files
21871 + lt_prog_compiler_pic_CXX='-fno-common'
21872 + ;;
21873 + *djgpp*)
21874 + # DJGPP does not support shared libraries at all
21875 + lt_prog_compiler_pic_CXX=
21876 + ;;
21877 + interix3*)
21878 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21879 + # Instead, we relocate shared libraries at runtime.
21880 + ;;
21881 + sysv4*MP*)
21882 + if test -d /usr/nec; then
21883 + lt_prog_compiler_pic_CXX=-Kconform_pic
21884 + fi
21885 + ;;
21886 + hpux*)
21887 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21888 + # not for PA HP-UX.
21889 + case $host_cpu in
21890 + hppa*64*|ia64*)
21891 + ;;
21892 + *)
21893 + lt_prog_compiler_pic_CXX='-fPIC'
21894 + ;;
21895 + esac
21896 + ;;
21897 + *)
21898 + lt_prog_compiler_pic_CXX='-fPIC'
21899 + ;;
21900 + esac
21901 + else
21902 + case $host_os in
21903 + aix4* | aix5*)
21904 + # All AIX code is PIC.
21905 + if test "$host_cpu" = ia64; then
21906 + # AIX 5 now supports IA64 processor
21907 + lt_prog_compiler_static_CXX='-Bstatic'
21908 + else
21909 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21910 + fi
21911 + ;;
21912 + chorus*)
21913 + case $cc_basename in
21914 + cxch68*)
21915 + # Green Hills C++ Compiler
21916 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
21917 + ;;
21918 + esac
21919 + ;;
21920 + darwin*)
21921 + # PIC is the default on this platform
21922 + # Common symbols not allowed in MH_DYLIB files
21923 + case $cc_basename in
21924 + xlc*)
21925 + lt_prog_compiler_pic_CXX='-qnocommon'
21926 + lt_prog_compiler_wl_CXX='-Wl,'
21927 + ;;
21928 + esac
21929 + ;;
21930 + dgux*)
21931 + case $cc_basename in
21932 + ec++*)
21933 + lt_prog_compiler_pic_CXX='-KPIC'
21934 + ;;
21935 + ghcx*)
21936 + # Green Hills C++ Compiler
21937 + lt_prog_compiler_pic_CXX='-pic'
21938 + ;;
21939 + *)
21940 + ;;
21941 + esac
21942 + ;;
21943 + freebsd* | kfreebsd*-gnu | dragonfly*)
21944 + # FreeBSD uses GNU C++
21945 + ;;
21946 + hpux9* | hpux10* | hpux11*)
21947 + case $cc_basename in
21948 + CC*)
21949 + lt_prog_compiler_wl_CXX='-Wl,'
21950 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21951 + if test "$host_cpu" != ia64; then
21952 + lt_prog_compiler_pic_CXX='+Z'
21953 + fi
21954 + ;;
21955 + aCC*)
21956 + lt_prog_compiler_wl_CXX='-Wl,'
21957 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21958 + case $host_cpu in
21959 + hppa*64*|ia64*)
21960 + # +Z the default
21961 + ;;
21962 + *)
21963 + lt_prog_compiler_pic_CXX='+Z'
21964 + ;;
21965 + esac
21966 + ;;
21967 + *)
21968 + ;;
21969 + esac
21970 + ;;
21971 + interix*)
21972 + # This is c89, which is MS Visual C++ (no shared libs)
21973 + # Anyone wants to do a port?
21974 + ;;
21975 + irix5* | irix6* | nonstopux*)
21976 + case $cc_basename in
21977 + CC*)
21978 + lt_prog_compiler_wl_CXX='-Wl,'
21979 + lt_prog_compiler_static_CXX='-non_shared'
21980 + # CC pic flag -KPIC is the default.
21981 + ;;
21982 + *)
21983 + ;;
21984 + esac
21985 + ;;
21986 + linux*)
21987 + case $cc_basename in
21988 + KCC*)
21989 + # KAI C++ Compiler
21990 + lt_prog_compiler_wl_CXX='--backend -Wl,'
21991 + lt_prog_compiler_pic_CXX='-fPIC'
21992 + ;;
21993 + icpc* | ecpc*)
21994 + # Intel C++
21995 + lt_prog_compiler_wl_CXX='-Wl,'
21996 + lt_prog_compiler_pic_CXX='-KPIC'
21997 + lt_prog_compiler_static_CXX='-static'
21998 + ;;
21999 + pgCC*)
22000 + # Portland Group C++ compiler.
22001 + lt_prog_compiler_wl_CXX='-Wl,'
22002 + lt_prog_compiler_pic_CXX='-fpic'
22003 + lt_prog_compiler_static_CXX='-Bstatic'
22004 + ;;
22005 + cxx*)
22006 + # Compaq C++
22007 + # Make sure the PIC flag is empty. It appears that all Alpha
22008 + # Linux and Compaq Tru64 Unix objects are PIC.
22009 + lt_prog_compiler_pic_CXX=
22010 + lt_prog_compiler_static_CXX='-non_shared'
22011 + ;;
22012 + *)
22013 + ;;
22014 + esac
22015 + ;;
22016 + lynxos*)
22017 + ;;
22018 + m88k*)
22019 + ;;
22020 + mvs*)
22021 + case $cc_basename in
22022 + cxx*)
22023 + lt_prog_compiler_pic_CXX='-W c,exportall'
22024 + ;;
22025 + *)
22026 + ;;
22027 + esac
22028 + ;;
22029 + netbsd*)
22030 + ;;
22031 + osf3* | osf4* | osf5*)
22032 + case $cc_basename in
22033 + KCC*)
22034 + lt_prog_compiler_wl_CXX='--backend -Wl,'
22035 + ;;
22036 + RCC*)
22037 + # Rational C++ 2.4.1
22038 + lt_prog_compiler_pic_CXX='-pic'
22039 + ;;
22040 + cxx*)
22041 + # Digital/Compaq C++
22042 + lt_prog_compiler_wl_CXX='-Wl,'
22043 + # Make sure the PIC flag is empty. It appears that all Alpha
22044 + # Linux and Compaq Tru64 Unix objects are PIC.
22045 + lt_prog_compiler_pic_CXX=
22046 + lt_prog_compiler_static_CXX='-non_shared'
22047 + ;;
22048 + *)
22049 + ;;
22050 + esac
22051 + ;;
22052 + psos*)
22053 + ;;
22054 + solaris*)
22055 + case $cc_basename in
22056 + CC*)
22057 + # Sun C++ 4.2, 5.x and Centerline C++
22058 + lt_prog_compiler_pic_CXX='-KPIC'
22059 + lt_prog_compiler_static_CXX='-Bstatic'
22060 + lt_prog_compiler_wl_CXX='-Qoption ld '
22061 + ;;
22062 + gcx*)
22063 + # Green Hills C++ Compiler
22064 + lt_prog_compiler_pic_CXX='-PIC'
22065 + ;;
22066 + *)
22067 + ;;
22068 + esac
22069 + ;;
22070 + sunos4*)
22071 + case $cc_basename in
22072 + CC*)
22073 + # Sun C++ 4.x
22074 + lt_prog_compiler_pic_CXX='-pic'
22075 + lt_prog_compiler_static_CXX='-Bstatic'
22076 + ;;
22077 + lcc*)
22078 + # Lucid
22079 + lt_prog_compiler_pic_CXX='-pic'
22080 + ;;
22081 + *)
22082 + ;;
22083 + esac
22084 + ;;
22085 + tandem*)
22086 + case $cc_basename in
22087 + NCC*)
22088 + # NonStop-UX NCC 3.20
22089 + lt_prog_compiler_pic_CXX='-KPIC'
22090 + ;;
22091 + *)
22092 + ;;
22093 + esac
22094 + ;;
22095 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22096 + case $cc_basename in
22097 + CC*)
22098 + lt_prog_compiler_wl_CXX='-Wl,'
22099 + lt_prog_compiler_pic_CXX='-KPIC'
22100 + lt_prog_compiler_static_CXX='-Bstatic'
22101 + ;;
22102 + esac
22103 + ;;
22104 + vxworks*)
22105 + ;;
22106 + *)
22107 + lt_prog_compiler_can_build_shared_CXX=no
22108 + ;;
22109 + esac
22110 + fi
22111 +
22112 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22113 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22114 +
22115 +#
22116 +# Check to make sure the PIC flag actually works.
22117 +#
22118 +if test -n "$lt_prog_compiler_pic_CXX"; then
22119 +
22120 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22121 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22122 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22123 + echo $ECHO_N "(cached) $ECHO_C" >&6
22124 +else
22125 + lt_prog_compiler_pic_works_CXX=no
22126 + ac_outfile=conftest.$ac_objext
22127 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22128 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22129 + # Insert the option either (1) after the last *FLAGS variable, or
22130 + # (2) before a word containing "conftest.", or (3) at the end.
22131 + # Note that $ac_compile itself does not contain backslashes and begins
22132 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22133 + # The option is referenced via a variable to avoid confusing sed.
22134 + lt_compile=`echo "$ac_compile" | $SED \
22135 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22136 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22137 + -e 's:$: $lt_compiler_flag:'`
22138 + (eval echo "\"\$as_me:11594: $lt_compile\"" >&5)
22139 + (eval "$lt_compile" 2>conftest.err)
22140 + ac_status=$?
22141 + cat conftest.err >&5
22142 + echo "$as_me:11598: \$? = $ac_status" >&5
22143 + if (exit $ac_status) && test -s "$ac_outfile"; then
22144 + # The compiler can only warn and ignore the option if not recognized
22145 + # So say no if there are warnings other than the usual output.
22146 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22147 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22148 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22149 + lt_prog_compiler_pic_works_CXX=yes
22150 + fi
22151 + fi
22152 + $rm conftest*
22153 +
22154 +fi
22155 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22156 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22157 +
22158 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22159 + case $lt_prog_compiler_pic_CXX in
22160 + "" | " "*) ;;
22161 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22162 + esac
22163 +else
22164 + lt_prog_compiler_pic_CXX=
22165 + lt_prog_compiler_can_build_shared_CXX=no
22166 +fi
22167 +
22168 +fi
22169 +case $host_os in
22170 + # For platforms which do not support PIC, -DPIC is meaningless:
22171 + *djgpp*)
22172 + lt_prog_compiler_pic_CXX=
22173 + ;;
22174 + *)
22175 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22176 + ;;
22177 +esac
22178 +
22179 +#
22180 +# Check to make sure the static flag actually works.
22181 +#
22182 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22183 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22184 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
22185 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
22186 + echo $ECHO_N "(cached) $ECHO_C" >&6
22187 +else
22188 + lt_prog_compiler_static_works_CXX=no
22189 + save_LDFLAGS="$LDFLAGS"
22190 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22191 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
22192 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22193 + # The linker can only warn and ignore the option if not recognized
22194 + # So say no if there are warnings
22195 + if test -s conftest.err; then
22196 + # Append any errors to the config.log.
22197 + cat conftest.err 1>&5
22198 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22199 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22200 + if diff conftest.exp conftest.er2 >/dev/null; then
22201 + lt_prog_compiler_static_works_CXX=yes
22202 + fi
22203 + else
22204 + lt_prog_compiler_static_works_CXX=yes
22205 + fi
22206 + fi
22207 + $rm conftest*
22208 + LDFLAGS="$save_LDFLAGS"
22209 +
22210 +fi
22211 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
22212 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
22213 +
22214 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
22215 + :
22216 +else
22217 + lt_prog_compiler_static_CXX=
22218 +fi
22219 +
22220 +
22221 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22222 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22223 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22224 + echo $ECHO_N "(cached) $ECHO_C" >&6
22225 +else
22226 + lt_cv_prog_compiler_c_o_CXX=no
22227 + $rm -r conftest 2>/dev/null
22228 + mkdir conftest
22229 + cd conftest
22230 + mkdir out
22231 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22232 +
22233 + lt_compiler_flag="-o out/conftest2.$ac_objext"
22234 + # Insert the option either (1) after the last *FLAGS variable, or
22235 + # (2) before a word containing "conftest.", or (3) at the end.
22236 + # Note that $ac_compile itself does not contain backslashes and begins
22237 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22238 + lt_compile=`echo "$ac_compile" | $SED \
22239 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22240 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22241 + -e 's:$: $lt_compiler_flag:'`
22242 + (eval echo "\"\$as_me:11698: $lt_compile\"" >&5)
22243 + (eval "$lt_compile" 2>out/conftest.err)
22244 + ac_status=$?
22245 + cat out/conftest.err >&5
22246 + echo "$as_me:11702: \$? = $ac_status" >&5
22247 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
22248 + then
22249 + # The compiler can only warn and ignore the option if not recognized
22250 + # So say no if there are warnings
22251 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22252 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22253 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22254 + lt_cv_prog_compiler_c_o_CXX=yes
22255 + fi
22256 + fi
22257 + chmod u+w . 2>&5
22258 + $rm conftest*
22259 + # SGI C++ compiler will create directory out/ii_files/ for
22260 + # template instantiation
22261 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22262 + $rm out/* && rmdir out
22263 + cd ..
22264 + rmdir conftest
22265 + $rm conftest*
22266 +
22267 +fi
22268 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22269 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22270 +
22271 +
22272 +hard_links="nottested"
22273 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22274 + # do not overwrite the value of need_locks provided by the user
22275 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22276 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22277 + hard_links=yes
22278 + $rm conftest*
22279 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22280 + touch conftest.a
22281 + ln conftest.a conftest.b 2>&5 || hard_links=no
22282 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22283 + echo "$as_me:$LINENO: result: $hard_links" >&5
22284 +echo "${ECHO_T}$hard_links" >&6
22285 + if test "$hard_links" = no; then
22286 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22287 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22288 + need_locks=warn
22289 + fi
22290 +else
22291 + need_locks=no
22292 +fi
22293 +
22294 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22295 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22296 +
22297 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22298 + case $host_os in
22299 + aix4* | aix5*)
22300 + # If we're using GNU nm, then we don't want the "-C" option.
22301 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
22302 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22303 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22304 + else
22305 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22306 + fi
22307 + ;;
22308 + pw32*)
22309 + export_symbols_cmds_CXX="$ltdll_cmds"
22310 + ;;
22311 + cygwin* | mingw*)
22312 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22313 + ;;
22314 + *)
22315 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22316 + ;;
22317 + esac
22318 +
22319 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22320 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
22321 +test "$ld_shlibs_CXX" = no && can_build_shared=no
22322 +
22323 +#
22324 +# Do we need to explicitly link libc?
22325 +#
22326 +case "x$archive_cmds_need_lc_CXX" in
22327 +x|xyes)
22328 + # Assume -lc should be added
22329 + archive_cmds_need_lc_CXX=yes
22330 +
22331 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22332 + case $archive_cmds_CXX in
22333 + *'~'*)
22334 + # FIXME: we may have to deal with multi-command sequences.
22335 + ;;
22336 + '$CC '*)
22337 + # Test whether the compiler implicitly links with -lc since on some
22338 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22339 + # to ld, don't add -lc before -lgcc.
22340 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22341 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22342 + $rm conftest*
22343 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22344 +
22345 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 + (eval $ac_compile) 2>&5
22347 + ac_status=$?
22348 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 + (exit $ac_status); } 2>conftest.err; then
22350 + soname=conftest
22351 + lib=conftest
22352 + libobjs=conftest.$ac_objext
22353 + deplibs=
22354 + wl=$lt_prog_compiler_wl_CXX
22355 + pic_flag=$lt_prog_compiler_pic_CXX
22356 + compiler_flags=-v
22357 + linker_flags=-v
22358 + verstring=
22359 + output_objdir=.
22360 + libname=conftest
22361 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22362 + allow_undefined_flag_CXX=
22363 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22364 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22365 + ac_status=$?
22366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 + (exit $ac_status); }
22368 + then
22369 + archive_cmds_need_lc_CXX=no
22370 + else
22371 + archive_cmds_need_lc_CXX=yes
22372 + fi
22373 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22374 + else
22375 + cat conftest.err 1>&5
22376 + fi
22377 + $rm conftest*
22378 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22379 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22380 + ;;
22381 + esac
22382 + fi
22383 + ;;
22384 +esac
22385 +
22386 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22387 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22388 +library_names_spec=
22389 +libname_spec='lib$name'
22390 +soname_spec=
22391 +shrext_cmds=".so"
22392 +postinstall_cmds=
22393 +postuninstall_cmds=
22394 +finish_cmds=
22395 +finish_eval=
22396 +shlibpath_var=
22397 +shlibpath_overrides_runpath=unknown
22398 +version_type=none
22399 +dynamic_linker="$host_os ld.so"
22400 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
22401 +if test "$GCC" = yes; then
22402 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22403 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22404 + # if the path contains ";" then we assume it to be the separator
22405 + # otherwise default to the standard path separator (i.e. ":") - it is
22406 + # assumed that no part of a normal pathname contains ";" but that should
22407 + # okay in the real world where ";" in dirpaths is itself problematic.
22408 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22409 + else
22410 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22411 + fi
22412 +else
22413 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22414 +fi
22415 +need_lib_prefix=unknown
22416 +hardcode_into_libs=no
22417 +
22418 +# when you set need_version to no, make sure it does not cause -set_version
22419 +# flags to be left without arguments
22420 +need_version=unknown
22421 +
22422 +case $host_os in
22423 +aix3*)
22424 + version_type=linux
22425 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22426 + shlibpath_var=LIBPATH
22427 +
22428 + # AIX 3 has no versioning support, so we append a major version to the name.
22429 + soname_spec='${libname}${release}${shared_ext}$major'
22430 + ;;
22431 +
22432 +aix4* | aix5*)
22433 + version_type=linux
22434 + need_lib_prefix=no
22435 + need_version=no
22436 + hardcode_into_libs=yes
22437 + if test "$host_cpu" = ia64; then
22438 + # AIX 5 supports IA64
22439 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22440 + shlibpath_var=LD_LIBRARY_PATH
22441 + else
22442 + # With GCC up to 2.95.x, collect2 would create an import file
22443 + # for dependence libraries. The import file would start with
22444 + # the line `#! .'. This would cause the generated library to
22445 + # depend on `.', always an invalid library. This was fixed in
22446 + # development snapshots of GCC prior to 3.0.
22447 + case $host_os in
22448 + aix4 | aix4.[01] | aix4.[01].*)
22449 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22450 + echo ' yes '
22451 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22452 + :
22453 + else
22454 + can_build_shared=no
22455 + fi
22456 + ;;
22457 + esac
22458 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22459 + # soname into executable. Probably we can add versioning support to
22460 + # collect2, so additional links can be useful in future.
22461 + if test "$aix_use_runtimelinking" = yes; then
22462 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22463 + # instead of lib<name>.a to let people know that these are not
22464 + # typical AIX shared libraries.
22465 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 + else
22467 + # We preserve .a as extension for shared libraries through AIX4.2
22468 + # and later when we are not doing run time linking.
22469 + library_names_spec='${libname}${release}.a $libname.a'
22470 + soname_spec='${libname}${release}${shared_ext}$major'
22471 + fi
22472 + shlibpath_var=LIBPATH
22473 + fi
22474 + ;;
22475 +
22476 +amigaos*)
22477 + library_names_spec='$libname.ixlibrary $libname.a'
22478 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
22479 + 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'
22480 + ;;
22481 +
22482 +beos*)
22483 + library_names_spec='${libname}${shared_ext}'
22484 + dynamic_linker="$host_os ld.so"
22485 + shlibpath_var=LIBRARY_PATH
22486 + ;;
22487 +
22488 +bsdi[45]*)
22489 + version_type=linux
22490 + need_version=no
22491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22492 + soname_spec='${libname}${release}${shared_ext}$major'
22493 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22494 + shlibpath_var=LD_LIBRARY_PATH
22495 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22496 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22497 + # the default ld.so.conf also contains /usr/contrib/lib and
22498 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22499 + # libtool to hard-code these into programs
22500 + ;;
22501 +
22502 +cygwin* | mingw* | pw32*)
22503 + version_type=windows
22504 + shrext_cmds=".dll"
22505 + need_version=no
22506 + need_lib_prefix=no
22507 +
22508 + case $GCC,$host_os in
22509 + yes,cygwin* | yes,mingw* | yes,pw32*)
22510 + library_names_spec='$libname.dll.a'
22511 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
22512 + postinstall_cmds='base_file=`basename \${file}`~
22513 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22514 + dldir=$destdir/`dirname \$dlpath`~
22515 + test -d \$dldir || mkdir -p \$dldir~
22516 + $install_prog $dir/$dlname \$dldir/$dlname~
22517 + chmod a+x \$dldir/$dlname'
22518 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22519 + dlpath=$dir/\$dldll~
22520 + $rm \$dlpath'
22521 + shlibpath_overrides_runpath=yes
22522 +
22523 + case $host_os in
22524 + cygwin*)
22525 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22526 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22527 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22528 + ;;
22529 + mingw*)
22530 + # MinGW DLLs use traditional 'lib' prefix
22531 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22532 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22533 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22534 + # It is most probably a Windows format PATH printed by
22535 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
22536 + # path with ; separators, and with drive letters. We can handle the
22537 + # drive letters (cygwin fileutils understands them), so leave them,
22538 + # especially as we might pass files found there to a mingw objdump,
22539 + # which wouldn't understand a cygwinified path. Ahh.
22540 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22541 + else
22542 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22543 + fi
22544 + ;;
22545 + pw32*)
22546 + # pw32 DLLs use 'pw' prefix rather than 'lib'
22547 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22548 + ;;
22549 + esac
22550 + ;;
22551 +
22552 + linux*)
22553 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22554 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22555 + supports_anon_versioning=no
22556 + case `$LD -v 2>/dev/null` in
22557 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22558 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22559 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22560 + *\ 2.11.*) ;; # other 2.11 versions
22561 + *) supports_anon_versioning=yes ;;
22562 + esac
22563 + if test $supports_anon_versioning = yes; then
22564 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
22565 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22566 +$echo "local: *; };" >> $output_objdir/$libname.ver~
22567 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22568 + else
22569 + $archive_expsym_cmds="$archive_cmds"
22570 + fi
22571 + else
22572 + ld_shlibs=no
22573 + fi
22574 + ;;
22575 +
22576 + *)
22577 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22578 + ;;
22579 + esac
22580 + dynamic_linker='Win32 ld.exe'
22581 + # FIXME: first we should search . and the directory the executable is in
22582 + shlibpath_var=PATH
22583 + ;;
22584 +
22585 +darwin* | rhapsody*)
22586 + dynamic_linker="$host_os dyld"
22587 + version_type=darwin
22588 + need_lib_prefix=no
22589 + need_version=no
22590 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22591 + soname_spec='${libname}${release}${major}$shared_ext'
22592 + shlibpath_overrides_runpath=yes
22593 + shlibpath_var=DYLD_LIBRARY_PATH
22594 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22595 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22596 + if test "$GCC" = yes; then
22597 + 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"`
22598 + else
22599 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22600 + fi
22601 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22602 + ;;
22603 +
22604 +dgux*)
22605 + version_type=linux
22606 + need_lib_prefix=no
22607 + need_version=no
22608 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22609 + soname_spec='${libname}${release}${shared_ext}$major'
22610 + shlibpath_var=LD_LIBRARY_PATH
22611 + ;;
22612 +
22613 +freebsd1*)
22614 + dynamic_linker=no
22615 + ;;
22616 +
22617 +kfreebsd*-gnu)
22618 + version_type=linux
22619 + need_lib_prefix=no
22620 + need_version=no
22621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22622 + soname_spec='${libname}${release}${shared_ext}$major'
22623 + shlibpath_var=LD_LIBRARY_PATH
22624 + shlibpath_overrides_runpath=no
22625 + hardcode_into_libs=yes
22626 + dynamic_linker='GNU ld.so'
22627 + ;;
22628 +
22629 +freebsd* | dragonfly*)
22630 + # DragonFly does not have aout. When/if they implement a new
22631 + # versioning mechanism, adjust this.
22632 + if test -x /usr/bin/objformat; then
22633 + objformat=`/usr/bin/objformat`
22634 + else
22635 + case $host_os in
22636 + freebsd[123]*) objformat=aout ;;
22637 + *) objformat=elf ;;
22638 + esac
22639 + fi
22640 + # Handle Gentoo/FreeBSD as it was Linux
22641 + case $host_vendor in
22642 + gentoo)
22643 + version_type=linux ;;
22644 + *)
22645 + version_type=freebsd-$objformat ;;
22646 + esac
22647 +
22648 + case $version_type in
22649 + freebsd-elf*)
22650 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22651 + need_version=no
22652 + need_lib_prefix=no
22653 + ;;
22654 + freebsd-*)
22655 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22656 + need_version=yes
22657 + ;;
22658 + linux)
22659 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22660 + soname_spec='${libname}${release}${shared_ext}$major'
22661 + need_lib_prefix=no
22662 + need_version=no
22663 + ;;
22664 + esac
22665 + shlibpath_var=LD_LIBRARY_PATH
22666 + case $host_os in
22667 + freebsd2*)
22668 + shlibpath_overrides_runpath=yes
22669 + ;;
22670 + freebsd3.[01]* | freebsdelf3.[01]*)
22671 + shlibpath_overrides_runpath=yes
22672 + hardcode_into_libs=yes
22673 + ;;
22674 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22675 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22676 + shlibpath_overrides_runpath=no
22677 + hardcode_into_libs=yes
22678 + ;;
22679 + freebsd*) # from 4.6 on
22680 + shlibpath_overrides_runpath=yes
22681 + hardcode_into_libs=yes
22682 + ;;
22683 + esac
22684 + ;;
22685 +
22686 +gnu*)
22687 + version_type=linux
22688 + need_lib_prefix=no
22689 + need_version=no
22690 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22691 + soname_spec='${libname}${release}${shared_ext}$major'
22692 + shlibpath_var=LD_LIBRARY_PATH
22693 + hardcode_into_libs=yes
22694 + ;;
22695 +
22696 +hpux9* | hpux10* | hpux11*)
22697 + # Give a soname corresponding to the major version so that dld.sl refuses to
22698 + # link against other versions.
22699 + version_type=sunos
22700 + need_lib_prefix=no
22701 + need_version=no
22702 + case $host_cpu in
22703 + ia64*)
22704 + shrext_cmds='.so'
22705 + hardcode_into_libs=yes
22706 + dynamic_linker="$host_os dld.so"
22707 + shlibpath_var=LD_LIBRARY_PATH
22708 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22709 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710 + soname_spec='${libname}${release}${shared_ext}$major'
22711 + if test "X$HPUX_IA64_MODE" = X32; then
22712 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22713 + else
22714 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22715 + fi
22716 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22717 + ;;
22718 + hppa*64*)
22719 + shrext_cmds='.sl'
22720 + hardcode_into_libs=yes
22721 + dynamic_linker="$host_os dld.sl"
22722 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22723 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22724 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 + soname_spec='${libname}${release}${shared_ext}$major'
22726 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22727 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22728 + ;;
22729 + *)
22730 + shrext_cmds='.sl'
22731 + dynamic_linker="$host_os dld.sl"
22732 + shlibpath_var=SHLIB_PATH
22733 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 + soname_spec='${libname}${release}${shared_ext}$major'
22736 + ;;
22737 + esac
22738 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
22739 + postinstall_cmds='chmod 555 $lib'
22740 + ;;
22741 +
22742 +interix3*)
22743 + version_type=linux
22744 + need_lib_prefix=no
22745 + need_version=no
22746 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22747 + soname_spec='${libname}${release}${shared_ext}$major'
22748 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22749 + shlibpath_var=LD_LIBRARY_PATH
22750 + shlibpath_overrides_runpath=no
22751 + hardcode_into_libs=yes
22752 + ;;
22753 +
22754 +irix5* | irix6* | nonstopux*)
22755 + case $host_os in
22756 + nonstopux*) version_type=nonstopux ;;
22757 + *)
22758 + if test "$lt_cv_prog_gnu_ld" = yes; then
22759 + version_type=linux
22760 + else
22761 + version_type=irix
22762 + fi ;;
22763 + esac
22764 + need_lib_prefix=no
22765 + need_version=no
22766 + soname_spec='${libname}${release}${shared_ext}$major'
22767 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22768 + case $host_os in
22769 + irix5* | nonstopux*)
22770 + libsuff= shlibsuff=
22771 + ;;
22772 + *)
22773 + case $LD in # libtool.m4 will add one of these switches to LD
22774 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22775 + libsuff= shlibsuff= libmagic=32-bit;;
22776 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22777 + libsuff=32 shlibsuff=N32 libmagic=N32;;
22778 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22779 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
22780 + *) libsuff= shlibsuff= libmagic=never-match;;
22781 + esac
22782 + ;;
22783 + esac
22784 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22785 + shlibpath_overrides_runpath=no
22786 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22787 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22788 + hardcode_into_libs=yes
22789 + ;;
22790 +
22791 +# No shared lib support for Linux oldld, aout, or coff.
22792 +linux*oldld* | linux*aout* | linux*coff*)
22793 + dynamic_linker=no
22794 + ;;
22795 +
22796 +# This must be Linux ELF.
22797 +linux*)
22798 + version_type=linux
22799 + need_lib_prefix=no
22800 + need_version=no
22801 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 + soname_spec='${libname}${release}${shared_ext}$major'
22803 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22804 + shlibpath_var=LD_LIBRARY_PATH
22805 + shlibpath_overrides_runpath=no
22806 + # This implies no fast_install, which is unacceptable.
22807 + # Some rework will be needed to allow for fast_install
22808 + # before this can be enabled.
22809 + hardcode_into_libs=yes
22810 +
22811 + # Append ld.so.conf contents to the search path
22812 + if test -f /etc/ld.so.conf; then
22813 + 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' ' '`
22814 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22815 + fi
22816 +
22817 + # We used to test for /lib/ld.so.1 and disable shared libraries on
22818 + # powerpc, because MkLinux only supported shared libraries with the
22819 + # GNU dynamic linker. Since this was broken with cross compilers,
22820 + # most powerpc-linux boxes support dynamic linking these days and
22821 + # people can always --disable-shared, the test was removed, and we
22822 + # assume the GNU/Linux dynamic linker is in use.
22823 + dynamic_linker='GNU/Linux ld.so'
22824 + ;;
22825 +
22826 +knetbsd*-gnu)
22827 + version_type=linux
22828 + need_lib_prefix=no
22829 + need_version=no
22830 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22831 + soname_spec='${libname}${release}${shared_ext}$major'
22832 + shlibpath_var=LD_LIBRARY_PATH
22833 + shlibpath_overrides_runpath=no
22834 + hardcode_into_libs=yes
22835 + dynamic_linker='GNU ld.so'
22836 + ;;
22837 +
22838 +netbsd*)
22839 + version_type=sunos
22840 + need_lib_prefix=no
22841 + need_version=no
22842 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22843 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22844 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22845 + dynamic_linker='NetBSD (a.out) ld.so'
22846 + else
22847 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22848 + soname_spec='${libname}${release}${shared_ext}$major'
22849 + dynamic_linker='NetBSD ld.elf_so'
22850 + fi
22851 + shlibpath_var=LD_LIBRARY_PATH
22852 + shlibpath_overrides_runpath=yes
22853 + hardcode_into_libs=yes
22854 + ;;
22855 +
22856 +newsos6)
22857 + version_type=linux
22858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22859 + shlibpath_var=LD_LIBRARY_PATH
22860 + shlibpath_overrides_runpath=yes
22861 + ;;
22862 +
22863 +nto-qnx*)
22864 + version_type=linux
22865 + need_lib_prefix=no
22866 + need_version=no
22867 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22868 + soname_spec='${libname}${release}${shared_ext}$major'
22869 + shlibpath_var=LD_LIBRARY_PATH
22870 + shlibpath_overrides_runpath=yes
22871 + ;;
22872 +
22873 +openbsd*)
22874 + version_type=sunos
22875 + sys_lib_dlsearch_path_spec="/usr/lib"
22876 + need_lib_prefix=no
22877 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22878 + case $host_os in
22879 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22880 + *) need_version=no ;;
22881 + esac
22882 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22883 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22884 + shlibpath_var=LD_LIBRARY_PATH
22885 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22886 + case $host_os in
22887 + openbsd2.[89] | openbsd2.[89].*)
22888 + shlibpath_overrides_runpath=no
22889 + ;;
22890 + *)
22891 + shlibpath_overrides_runpath=yes
22892 + ;;
22893 + esac
22894 + else
22895 + shlibpath_overrides_runpath=yes
22896 + fi
22897 + ;;
22898 +
22899 +os2*)
22900 + libname_spec='$name'
22901 + shrext_cmds=".dll"
22902 + need_lib_prefix=no
22903 + library_names_spec='$libname${shared_ext} $libname.a'
22904 + dynamic_linker='OS/2 ld.exe'
22905 + shlibpath_var=LIBPATH
22906 + ;;
22907 +
22908 +osf3* | osf4* | osf5*)
22909 + version_type=osf
22910 + need_lib_prefix=no
22911 + need_version=no
22912 + soname_spec='${libname}${release}${shared_ext}$major'
22913 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 + shlibpath_var=LD_LIBRARY_PATH
22915 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22916 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22917 + ;;
22918 +
22919 +solaris*)
22920 + version_type=linux
22921 + need_lib_prefix=no
22922 + need_version=no
22923 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22924 + soname_spec='${libname}${release}${shared_ext}$major'
22925 + shlibpath_var=LD_LIBRARY_PATH
22926 + shlibpath_overrides_runpath=yes
22927 + hardcode_into_libs=yes
22928 + # ldd complains unless libraries are executable
22929 + postinstall_cmds='chmod +x $lib'
22930 + ;;
22931 +
22932 +sunos4*)
22933 + version_type=sunos
22934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22935 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22936 + shlibpath_var=LD_LIBRARY_PATH
22937 + shlibpath_overrides_runpath=yes
22938 + if test "$with_gnu_ld" = yes; then
22939 + need_lib_prefix=no
22940 + fi
22941 + need_version=yes
22942 + ;;
22943 +
22944 +sysv4 | sysv4.3*)
22945 + version_type=linux
22946 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22947 + soname_spec='${libname}${release}${shared_ext}$major'
22948 + shlibpath_var=LD_LIBRARY_PATH
22949 + case $host_vendor in
22950 + sni)
22951 + shlibpath_overrides_runpath=no
22952 + need_lib_prefix=no
22953 + export_dynamic_flag_spec='${wl}-Blargedynsym'
22954 + runpath_var=LD_RUN_PATH
22955 + ;;
22956 + siemens)
22957 + need_lib_prefix=no
22958 + ;;
22959 + motorola)
22960 + need_lib_prefix=no
22961 + need_version=no
22962 + shlibpath_overrides_runpath=no
22963 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22964 + ;;
22965 + esac
22966 + ;;
22967 +
22968 +sysv4*MP*)
22969 + if test -d /usr/nec ;then
22970 + version_type=linux
22971 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22972 + soname_spec='$libname${shared_ext}.$major'
22973 + shlibpath_var=LD_LIBRARY_PATH
22974 + fi
22975 + ;;
22976 +
22977 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22978 + version_type=freebsd-elf
22979 + need_lib_prefix=no
22980 + need_version=no
22981 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22982 + soname_spec='${libname}${release}${shared_ext}$major'
22983 + shlibpath_var=LD_LIBRARY_PATH
22984 + hardcode_into_libs=yes
22985 + if test "$with_gnu_ld" = yes; then
22986 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22987 + shlibpath_overrides_runpath=no
22988 + else
22989 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22990 + shlibpath_overrides_runpath=yes
22991 + case $host_os in
22992 + sco3.2v5*)
22993 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22994 + ;;
22995 + esac
22996 + fi
22997 + sys_lib_dlsearch_path_spec='/usr/lib'
22998 + ;;
22999 +
23000 +uts4*)
23001 + version_type=linux
23002 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 + soname_spec='${libname}${release}${shared_ext}$major'
23004 + shlibpath_var=LD_LIBRARY_PATH
23005 + ;;
23006 +
23007 +*)
23008 + dynamic_linker=no
23009 + ;;
23010 +esac
23011 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23012 +echo "${ECHO_T}$dynamic_linker" >&6
23013 +test "$dynamic_linker" = no && can_build_shared=no
23014 +
23015 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23016 +if test "$GCC" = yes; then
23017 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23018 +fi
23019 +
23020 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23021 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23022 +hardcode_action_CXX=
23023 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
23024 + test -n "$runpath_var_CXX" || \
23025 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
23026 +
23027 + # We can hardcode non-existant directories.
23028 + if test "$hardcode_direct_CXX" != no &&
23029 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
23030 + # have to relink, otherwise we might link with an installed library
23031 + # when we should be linking with a yet-to-be-installed one
23032 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23033 + test "$hardcode_minus_L_CXX" != no; then
23034 + # Linking always hardcodes the temporary library directory.
23035 + hardcode_action_CXX=relink
23036 + else
23037 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
23038 + hardcode_action_CXX=immediate
23039 + fi
23040 +else
23041 + # We cannot hardcode anything, or else we can only hardcode existing
23042 + # directories.
23043 + hardcode_action_CXX=unsupported
23044 +fi
23045 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
23046 +echo "${ECHO_T}$hardcode_action_CXX" >&6
23047 +
23048 +if test "$hardcode_action_CXX" = relink; then
23049 + # Fast installation is not supported
23050 + enable_fast_install=no
23051 +elif test "$shlibpath_overrides_runpath" = yes ||
23052 + test "$enable_shared" = no; then
23053 + # Fast installation is not necessary
23054 + enable_fast_install=needless
23055 +fi
23056 +
23057 +
23058 +# The else clause should only fire when bootstrapping the
23059 +# libtool distribution, otherwise you forgot to ship ltmain.sh
23060 +# with your package, and you will get complaints that there are
23061 +# no rules to generate ltmain.sh.
23062 +if test -f "$ltmain"; then
23063 + # See if we are running on zsh, and set the options which allow our commands through
23064 + # without removal of \ escapes.
23065 + if test -n "${ZSH_VERSION+set}" ; then
23066 + setopt NO_GLOB_SUBST
23067 + fi
23068 + # Now quote all the things that may contain metacharacters while being
23069 + # careful not to overquote the AC_SUBSTed values. We take copies of the
23070 + # variables and quote the copies for generation of the libtool script.
23071 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23072 + SED SHELL STRIP \
23073 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23074 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23075 + deplibs_check_method reload_flag reload_cmds need_locks \
23076 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23077 + lt_cv_sys_global_symbol_to_c_name_address \
23078 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23079 + old_postinstall_cmds old_postuninstall_cmds \
23080 + compiler_CXX \
23081 + CC_CXX \
23082 + LD_CXX \
23083 + lt_prog_compiler_wl_CXX \
23084 + lt_prog_compiler_pic_CXX \
23085 + lt_prog_compiler_static_CXX \
23086 + lt_prog_compiler_no_builtin_flag_CXX \
23087 + export_dynamic_flag_spec_CXX \
23088 + thread_safe_flag_spec_CXX \
23089 + whole_archive_flag_spec_CXX \
23090 + enable_shared_with_static_runtimes_CXX \
23091 + old_archive_cmds_CXX \
23092 + old_archive_from_new_cmds_CXX \
23093 + predep_objects_CXX \
23094 + postdep_objects_CXX \
23095 + predeps_CXX \
23096 + postdeps_CXX \
23097 + compiler_lib_search_path_CXX \
23098 + archive_cmds_CXX \
23099 + archive_expsym_cmds_CXX \
23100 + postinstall_cmds_CXX \
23101 + postuninstall_cmds_CXX \
23102 + old_archive_from_expsyms_cmds_CXX \
23103 + allow_undefined_flag_CXX \
23104 + no_undefined_flag_CXX \
23105 + export_symbols_cmds_CXX \
23106 + hardcode_libdir_flag_spec_CXX \
23107 + hardcode_libdir_flag_spec_ld_CXX \
23108 + hardcode_libdir_separator_CXX \
23109 + hardcode_automatic_CXX \
23110 + module_cmds_CXX \
23111 + module_expsym_cmds_CXX \
23112 + lt_cv_prog_compiler_c_o_CXX \
23113 + exclude_expsyms_CXX \
23114 + include_expsyms_CXX; do
23115 +
23116 + case $var in
23117 + old_archive_cmds_CXX | \
23118 + old_archive_from_new_cmds_CXX | \
23119 + archive_cmds_CXX | \
23120 + archive_expsym_cmds_CXX | \
23121 + module_cmds_CXX | \
23122 + module_expsym_cmds_CXX | \
23123 + old_archive_from_expsyms_cmds_CXX | \
23124 + export_symbols_cmds_CXX | \
23125 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
23126 + postinstall_cmds | postuninstall_cmds | \
23127 + old_postinstall_cmds | old_postuninstall_cmds | \
23128 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23129 + # Double-quote double-evaled strings.
23130 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23131 + ;;
23132 + *)
23133 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23134 + ;;
23135 + esac
23136 + done
23137 +
23138 + case $lt_echo in
23139 + *'\$0 --fallback-echo"')
23140 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23141 + ;;
23142 + esac
23143 +
23144 +cfgfile="$ofile"
23145 +
23146 + cat <<__EOF__ >> "$cfgfile"
23147 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23148 +
23149 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23150 +
23151 +# Shell to use when invoking shell scripts.
23152 +SHELL=$lt_SHELL
23153 +
23154 +# Whether or not to build shared libraries.
23155 +build_libtool_libs=$enable_shared
23156 +
23157 +# Whether or not to build static libraries.
23158 +build_old_libs=$enable_static
23159 +
23160 +# Whether or not to add -lc for building shared libraries.
23161 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
23162 +
23163 +# Whether or not to disallow shared libs when runtime libs are static
23164 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23165 +
23166 +# Whether or not to optimize for fast installation.
23167 +fast_install=$enable_fast_install
23168 +
23169 +# The host system.
23170 +host_alias=$host_alias
23171 +host=$host
23172 +host_os=$host_os
23173 +
23174 +# The build system.
23175 +build_alias=$build_alias
23176 +build=$build
23177 +build_os=$build_os
23178 +
23179 +# An echo program that does not interpret backslashes.
23180 +echo=$lt_echo
23181 +
23182 +# The archiver.
23183 +AR=$lt_AR
23184 +AR_FLAGS=$lt_AR_FLAGS
23185 +
23186 +# A C compiler.
23187 +LTCC=$lt_LTCC
23188 +
23189 +# LTCC compiler flags.
23190 +LTCFLAGS=$lt_LTCFLAGS
23191 +
23192 +# A language-specific compiler.
23193 +CC=$lt_compiler_CXX
23194 +
23195 +# Is the compiler the GNU C compiler?
23196 +with_gcc=$GCC_CXX
23197 +
23198 +# An ERE matcher.
23199 +EGREP=$lt_EGREP
23200 +
23201 +# The linker used to build libraries.
23202 +LD=$lt_LD_CXX
23203 +
23204 +# Whether we need hard or soft links.
23205 +LN_S=$lt_LN_S
23206 +
23207 +# A BSD-compatible nm program.
23208 +NM=$lt_NM
23209 +
23210 +# A symbol stripping program
23211 +STRIP=$lt_STRIP
23212 +
23213 +# Used to examine libraries when file_magic_cmd begins "file"
23214 +MAGIC_CMD=$MAGIC_CMD
23215 +
23216 +# Used on cygwin: DLL creation program.
23217 +DLLTOOL="$DLLTOOL"
23218 +
23219 +# Used on cygwin: object dumper.
23220 +OBJDUMP="$OBJDUMP"
23221 +
23222 +# Used on cygwin: assembler.
23223 +AS="$AS"
23224 +
23225 +# The name of the directory that contains temporary libtool files.
23226 +objdir=$objdir
23227 +
23228 +# How to create reloadable object files.
23229 +reload_flag=$lt_reload_flag
23230 +reload_cmds=$lt_reload_cmds
23231 +
23232 +# How to pass a linker flag through the compiler.
23233 +wl=$lt_lt_prog_compiler_wl_CXX
23234 +
23235 +# Object file suffix (normally "o").
23236 +objext="$ac_objext"
23237 +
23238 +# Old archive suffix (normally "a").
23239 +libext="$libext"
23240 +
23241 +# Shared library suffix (normally ".so").
23242 +shrext_cmds='$shrext_cmds'
23243 +
23244 +# Executable file suffix (normally "").
23245 +exeext="$exeext"
23246 +
23247 +# Additional compiler flags for building library objects.
23248 +pic_flag=$lt_lt_prog_compiler_pic_CXX
23249 +pic_mode=$pic_mode
23250 +
23251 +# What is the maximum length of a command?
23252 +max_cmd_len=$lt_cv_sys_max_cmd_len
23253 +
23254 +# Does compiler simultaneously support -c and -o options?
23255 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23256 +
23257 +# Must we lock files when doing compilation?
23258 +need_locks=$lt_need_locks
23259 +
23260 +# Do we need the lib prefix for modules?
23261 +need_lib_prefix=$need_lib_prefix
23262 +
23263 +# Do we need a version for libraries?
23264 +need_version=$need_version
23265 +
23266 +# Whether dlopen is supported.
23267 +dlopen_support=$enable_dlopen
23268 +
23269 +# Whether dlopen of programs is supported.
23270 +dlopen_self=$enable_dlopen_self
23271 +
23272 +# Whether dlopen of statically linked programs is supported.
23273 +dlopen_self_static=$enable_dlopen_self_static
23274 +
23275 +# Compiler flag to prevent dynamic linking.
23276 +link_static_flag=$lt_lt_prog_compiler_static_CXX
23277 +
23278 +# Compiler flag to turn off builtin functions.
23279 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23280 +
23281 +# Compiler flag to allow reflexive dlopens.
23282 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23283 +
23284 +# Compiler flag to generate shared objects directly from archives.
23285 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23286 +
23287 +# Compiler flag to generate thread-safe objects.
23288 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
23289 +
23290 +# Library versioning type.
23291 +version_type=$version_type
23292 +
23293 +# Format of library name prefix.
23294 +libname_spec=$lt_libname_spec
23295 +
23296 +# List of archive names. First name is the real one, the rest are links.
23297 +# The last name is the one that the linker finds with -lNAME.
23298 +library_names_spec=$lt_library_names_spec
23299 +
23300 +# The coded name of the library, if different from the real name.
23301 +soname_spec=$lt_soname_spec
23302 +
23303 +# Commands used to build and install an old-style archive.
23304 +RANLIB=$lt_RANLIB
23305 +old_archive_cmds=$lt_old_archive_cmds_CXX
23306 +old_postinstall_cmds=$lt_old_postinstall_cmds
23307 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
23308 +
23309 +# Create an old-style archive from a shared archive.
23310 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23311 +
23312 +# Create a temporary old-style archive to link instead of a shared archive.
23313 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23314 +
23315 +# Commands used to build and install a shared archive.
23316 +archive_cmds=$lt_archive_cmds_CXX
23317 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23318 +postinstall_cmds=$lt_postinstall_cmds
23319 +postuninstall_cmds=$lt_postuninstall_cmds
23320 +
23321 +# Commands used to build a loadable module (assumed same as above if empty)
23322 +module_cmds=$lt_module_cmds_CXX
23323 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
23324 +
23325 +# Commands to strip libraries.
23326 +old_striplib=$lt_old_striplib
23327 +striplib=$lt_striplib
23328 +
23329 +# Dependencies to place before the objects being linked to create a
23330 +# shared library.
23331 +predep_objects=$lt_predep_objects_CXX
23332 +
23333 +# Dependencies to place after the objects being linked to create a
23334 +# shared library.
23335 +postdep_objects=$lt_postdep_objects_CXX
23336 +
23337 +# Dependencies to place before the objects being linked to create a
23338 +# shared library.
23339 +predeps=$lt_predeps_CXX
23340 +
23341 +# Dependencies to place after the objects being linked to create a
23342 +# shared library.
23343 +postdeps=$lt_postdeps_CXX
23344 +
23345 +# The library search path used internally by the compiler when linking
23346 +# a shared library.
23347 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23348 +
23349 +# Method to check whether dependent libraries are shared objects.
23350 +deplibs_check_method=$lt_deplibs_check_method
23351 +
23352 +# Command to use when deplibs_check_method == file_magic.
23353 +file_magic_cmd=$lt_file_magic_cmd
23354 +
23355 +# Flag that allows shared libraries with undefined symbols to be built.
23356 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
23357 +
23358 +# Flag that forces no undefined symbols.
23359 +no_undefined_flag=$lt_no_undefined_flag_CXX
23360 +
23361 +# Commands used to finish a libtool library installation in a directory.
23362 +finish_cmds=$lt_finish_cmds
23363 +
23364 +# Same as above, but a single script fragment to be evaled but not shown.
23365 +finish_eval=$lt_finish_eval
23366 +
23367 +# Take the output of nm and produce a listing of raw symbols and C names.
23368 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23369 +
23370 +# Transform the output of nm in a proper C declaration
23371 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23372 +
23373 +# Transform the output of nm in a C name address pair
23374 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23375 +
23376 +# This is the shared library runtime path variable.
23377 +runpath_var=$runpath_var
23378 +
23379 +# This is the shared library path variable.
23380 +shlibpath_var=$shlibpath_var
23381 +
23382 +# Is shlibpath searched before the hard-coded library search path?
23383 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23384 +
23385 +# How to hardcode a shared library path into an executable.
23386 +hardcode_action=$hardcode_action_CXX
23387 +
23388 +# Whether we should hardcode library paths into libraries.
23389 +hardcode_into_libs=$hardcode_into_libs
23390 +
23391 +# Flag to hardcode \$libdir into a binary during linking.
23392 +# This must work even if \$libdir does not exist.
23393 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23394 +
23395 +# If ld is used when linking, flag to hardcode \$libdir into
23396 +# a binary during linking. This must work even if \$libdir does
23397 +# not exist.
23398 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23399 +
23400 +# Whether we need a single -rpath flag with a separated argument.
23401 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23402 +
23403 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23404 +# resulting binary.
23405 +hardcode_direct=$hardcode_direct_CXX
23406 +
23407 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23408 +# resulting binary.
23409 +hardcode_minus_L=$hardcode_minus_L_CXX
23410 +
23411 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23412 +# the resulting binary.
23413 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23414 +
23415 +# Set to yes if building a shared library automatically hardcodes DIR into the library
23416 +# and all subsequent libraries and executables linked against it.
23417 +hardcode_automatic=$hardcode_automatic_CXX
23418 +
23419 +# Variables whose values should be saved in libtool wrapper scripts and
23420 +# restored at relink time.
23421 +variables_saved_for_relink="$variables_saved_for_relink"
23422 +
23423 +# Whether libtool must link a program against all its dependency libraries.
23424 +link_all_deplibs=$link_all_deplibs_CXX
23425 +
23426 +# Compile-time system search path for libraries
23427 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23428 +
23429 +# Run-time system search path for libraries
23430 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23431 +
23432 +# Fix the shell variable \$srcfile for the compiler.
23433 +fix_srcfile_path="$fix_srcfile_path_CXX"
23434 +
23435 +# Set to yes if exported symbols are required.
23436 +always_export_symbols=$always_export_symbols_CXX
23437 +
23438 +# The commands to list exported symbols.
23439 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
23440 +
23441 +# The commands to extract the exported symbol list from a shared archive.
23442 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
23443 +
23444 +# Symbols that should not be listed in the preloaded symbols.
23445 +exclude_expsyms=$lt_exclude_expsyms_CXX
23446 +
23447 +# Symbols that must always be exported.
23448 +include_expsyms=$lt_include_expsyms_CXX
23449 +
23450 +# ### END LIBTOOL TAG CONFIG: $tagname
23451 +
23452 +__EOF__
23453 +
23454 +
23455 +else
23456 + # If there is no Makefile yet, we rely on a make rule to execute
23457 + # `config.status --recheck' to rerun these tests and create the
23458 + # libtool script then.
23459 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23460 + if test -f "$ltmain_in"; then
23461 + test -f Makefile && make "$ltmain"
23462 + fi
23463 +fi
23464 +
23465 +
23466 +ac_ext=c
23467 +ac_cpp='$CPP $CPPFLAGS'
23468 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23469 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23470 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23471 +
23472 +CC=$lt_save_CC
23473 +LDCXX=$LD
23474 +LD=$lt_save_LD
23475 +GCC=$lt_save_GCC
23476 +with_gnu_ldcxx=$with_gnu_ld
23477 +with_gnu_ld=$lt_save_with_gnu_ld
23478 +lt_cv_path_LDCXX=$lt_cv_path_LD
23479 +lt_cv_path_LD=$lt_save_path_LD
23480 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23481 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23482 +
23483 + else
23484 + tagname=""
23485 + fi
23486 + ;;
23487 +
23488 + F77)
23489 + if test -n "$F77" && test "X$F77" != "Xno"; then
23490 +
23491 +ac_ext=f
23492 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23493 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23494 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23495 +
23496 +
23497 +archive_cmds_need_lc_F77=no
23498 +allow_undefined_flag_F77=
23499 +always_export_symbols_F77=no
23500 +archive_expsym_cmds_F77=
23501 +export_dynamic_flag_spec_F77=
23502 +hardcode_direct_F77=no
23503 +hardcode_libdir_flag_spec_F77=
23504 +hardcode_libdir_flag_spec_ld_F77=
23505 +hardcode_libdir_separator_F77=
23506 +hardcode_minus_L_F77=no
23507 +hardcode_automatic_F77=no
23508 +module_cmds_F77=
23509 +module_expsym_cmds_F77=
23510 +link_all_deplibs_F77=unknown
23511 +old_archive_cmds_F77=$old_archive_cmds
23512 +no_undefined_flag_F77=
23513 +whole_archive_flag_spec_F77=
23514 +enable_shared_with_static_runtimes_F77=no
23515 +
23516 +# Source file extension for f77 test sources.
23517 +ac_ext=f
23518 +
23519 +# Object file extension for compiled f77 test sources.
23520 +objext=o
23521 +objext_F77=$objext
23522 +
23523 +# Code to be used in simple compile tests
23524 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
23525 +
23526 +# Code to be used in simple link tests
23527 +lt_simple_link_test_code=" program t\n end\n"
23528 +
23529 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23530 +
23531 +# If no C compiler was specified, use CC.
23532 +LTCC=${LTCC-"$CC"}
23533 +
23534 +# If no C compiler flags were specified, use CFLAGS.
23535 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23536 +
23537 +# Allow CC to be a program name with arguments.
23538 +compiler=$CC
23539 +
23540 +
23541 +# save warnings/boilerplate of simple test code
23542 +ac_outfile=conftest.$ac_objext
23543 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23544 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23545 +_lt_compiler_boilerplate=`cat conftest.err`
23546 +$rm conftest*
23547 +
23548 +ac_outfile=conftest.$ac_objext
23549 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
23550 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23551 +_lt_linker_boilerplate=`cat conftest.err`
23552 +$rm conftest*
23553 +
23554 +
23555 +# Allow CC to be a program name with arguments.
23556 +lt_save_CC="$CC"
23557 +CC=${F77-"f77"}
23558 +compiler=$CC
23559 +compiler_F77=$CC
23560 +for cc_temp in $compiler""; do
23561 + case $cc_temp in
23562 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23563 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23564 + \-*) ;;
23565 + *) break;;
23566 + esac
23567 +done
23568 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23569 +
23570 +
23571 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23572 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23573 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
23574 +echo "${ECHO_T}$can_build_shared" >&6
23575 +
23576 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23577 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23578 +test "$can_build_shared" = "no" && enable_shared=no
23579 +
23580 +# On AIX, shared libraries and static libraries use the same namespace, and
23581 +# are all built from PIC.
23582 +case $host_os in
23583 +aix3*)
23584 + test "$enable_shared" = yes && enable_static=no
23585 + if test -n "$RANLIB"; then
23586 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
23587 + postinstall_cmds='$RANLIB $lib'
23588 + fi
23589 + ;;
23590 +aix4* | aix5*)
23591 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23592 + test "$enable_shared" = yes && enable_static=no
23593 + fi
23594 + ;;
23595 +esac
23596 +echo "$as_me:$LINENO: result: $enable_shared" >&5
23597 +echo "${ECHO_T}$enable_shared" >&6
23598 +
23599 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23600 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23601 +# Make sure either enable_shared or enable_static is yes.
23602 +test "$enable_shared" = yes || enable_static=yes
23603 +echo "$as_me:$LINENO: result: $enable_static" >&5
23604 +echo "${ECHO_T}$enable_static" >&6
23605 +
23606 +GCC_F77="$G77"
23607 +LD_F77="$LD"
23608 +
23609 +lt_prog_compiler_wl_F77=
23610 +lt_prog_compiler_pic_F77=
23611 +lt_prog_compiler_static_F77=
23612 +
23613 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23614 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23615 +
23616 + if test "$GCC" = yes; then
23617 + lt_prog_compiler_wl_F77='-Wl,'
23618 + lt_prog_compiler_static_F77='-static'
23619 +
23620 + case $host_os in
23621 + aix*)
23622 + # All AIX code is PIC.
23623 + if test "$host_cpu" = ia64; then
23624 + # AIX 5 now supports IA64 processor
23625 + lt_prog_compiler_static_F77='-Bstatic'
23626 + fi
23627 + ;;
23628 +
23629 + amigaos*)
23630 + # FIXME: we need at least 68020 code to build shared libraries, but
23631 + # adding the `-m68020' flag to GCC prevents building anything better,
23632 + # like `-m68040'.
23633 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23634 + ;;
23635 +
23636 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23637 + # PIC is the default for these OSes.
23638 + ;;
23639 +
23640 + mingw* | pw32* | os2*)
23641 + # This hack is so that the source file can tell whether it is being
23642 + # built for inclusion in a dll (and should export symbols for example).
23643 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23644 + ;;
23645 +
23646 + darwin* | rhapsody*)
23647 + # PIC is the default on this platform
23648 + # Common symbols not allowed in MH_DYLIB files
23649 + lt_prog_compiler_pic_F77='-fno-common'
23650 + ;;
23651 +
23652 + interix3*)
23653 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23654 + # Instead, we relocate shared libraries at runtime.
23655 + ;;
23656 +
23657 + msdosdjgpp*)
23658 + # Just because we use GCC doesn't mean we suddenly get shared libraries
23659 + # on systems that don't support them.
23660 + lt_prog_compiler_can_build_shared_F77=no
23661 + enable_shared=no
23662 + ;;
23663 +
23664 + sysv4*MP*)
23665 + if test -d /usr/nec; then
23666 + lt_prog_compiler_pic_F77=-Kconform_pic
23667 + fi
23668 + ;;
23669 +
23670 + hpux*)
23671 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23672 + # not for PA HP-UX.
23673 + case $host_cpu in
23674 + hppa*64*|ia64*)
23675 + # +Z the default
23676 + ;;
23677 + *)
23678 + lt_prog_compiler_pic_F77='-fPIC'
23679 + ;;
23680 + esac
23681 + ;;
23682 +
23683 + *)
23684 + lt_prog_compiler_pic_F77='-fPIC'
23685 + ;;
23686 + esac
23687 + else
23688 + # PORTME Check for flag to pass linker flags through the system compiler.
23689 + case $host_os in
23690 + aix*)
23691 + lt_prog_compiler_wl_F77='-Wl,'
23692 + if test "$host_cpu" = ia64; then
23693 + # AIX 5 now supports IA64 processor
23694 + lt_prog_compiler_static_F77='-Bstatic'
23695 + else
23696 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23697 + fi
23698 + ;;
23699 + darwin*)
23700 + # PIC is the default on this platform
23701 + # Common symbols not allowed in MH_DYLIB files
23702 + case $cc_basename in
23703 + xlc*)
23704 + lt_prog_compiler_pic_F77='-qnocommon'
23705 + lt_prog_compiler_wl_F77='-Wl,'
23706 + ;;
23707 + esac
23708 + ;;
23709 +
23710 + mingw* | pw32* | os2*)
23711 + # This hack is so that the source file can tell whether it is being
23712 + # built for inclusion in a dll (and should export symbols for example).
23713 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23714 + ;;
23715 +
23716 + hpux9* | hpux10* | hpux11*)
23717 + lt_prog_compiler_wl_F77='-Wl,'
23718 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23719 + # not for PA HP-UX.
23720 + case $host_cpu in
23721 + hppa*64*|ia64*)
23722 + # +Z the default
23723 + ;;
23724 + *)
23725 + lt_prog_compiler_pic_F77='+Z'
23726 + ;;
23727 + esac
23728 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
23729 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
23730 + ;;
23731 +
23732 + irix5* | irix6* | nonstopux*)
23733 + lt_prog_compiler_wl_F77='-Wl,'
23734 + # PIC (with -KPIC) is the default.
23735 + lt_prog_compiler_static_F77='-non_shared'
23736 + ;;
23737 +
23738 + newsos6)
23739 + lt_prog_compiler_pic_F77='-KPIC'
23740 + lt_prog_compiler_static_F77='-Bstatic'
23741 + ;;
23742 +
23743 + linux*)
23744 + case $cc_basename in
23745 + icc* | ecc*)
23746 + lt_prog_compiler_wl_F77='-Wl,'
23747 + lt_prog_compiler_pic_F77='-KPIC'
23748 + lt_prog_compiler_static_F77='-static'
23749 + ;;
23750 + pgcc* | pgf77* | pgf90* | pgf95*)
23751 + # Portland Group compilers (*not* the Pentium gcc compiler,
23752 + # which looks to be a dead project)
23753 + lt_prog_compiler_wl_F77='-Wl,'
23754 + lt_prog_compiler_pic_F77='-fpic'
23755 + lt_prog_compiler_static_F77='-Bstatic'
23756 + ;;
23757 + ccc*)
23758 + lt_prog_compiler_wl_F77='-Wl,'
23759 + # All Alpha code is PIC.
23760 + lt_prog_compiler_static_F77='-non_shared'
23761 + ;;
23762 + esac
23763 + ;;
23764 +
23765 + osf3* | osf4* | osf5*)
23766 + lt_prog_compiler_wl_F77='-Wl,'
23767 + # All OSF/1 code is PIC.
23768 + lt_prog_compiler_static_F77='-non_shared'
23769 + ;;
23770 +
23771 + solaris*)
23772 + lt_prog_compiler_pic_F77='-KPIC'
23773 + lt_prog_compiler_static_F77='-Bstatic'
23774 + case $cc_basename in
23775 + f77* | f90* | f95*)
23776 + lt_prog_compiler_wl_F77='-Qoption ld ';;
23777 + *)
23778 + lt_prog_compiler_wl_F77='-Wl,';;
23779 + esac
23780 + ;;
23781 +
23782 + sunos4*)
23783 + lt_prog_compiler_wl_F77='-Qoption ld '
23784 + lt_prog_compiler_pic_F77='-PIC'
23785 + lt_prog_compiler_static_F77='-Bstatic'
23786 + ;;
23787 +
23788 + sysv4 | sysv4.2uw2* | sysv4.3*)
23789 + lt_prog_compiler_wl_F77='-Wl,'
23790 + lt_prog_compiler_pic_F77='-KPIC'
23791 + lt_prog_compiler_static_F77='-Bstatic'
23792 + ;;
23793 +
23794 + sysv4*MP*)
23795 + if test -d /usr/nec ;then
23796 + lt_prog_compiler_pic_F77='-Kconform_pic'
23797 + lt_prog_compiler_static_F77='-Bstatic'
23798 + fi
23799 + ;;
23800 +
23801 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23802 + lt_prog_compiler_wl_F77='-Wl,'
23803 + lt_prog_compiler_pic_F77='-KPIC'
23804 + lt_prog_compiler_static_F77='-Bstatic'
23805 + ;;
23806 +
23807 + unicos*)
23808 + lt_prog_compiler_wl_F77='-Wl,'
23809 + lt_prog_compiler_can_build_shared_F77=no
23810 + ;;
23811 +
23812 + uts4*)
23813 + lt_prog_compiler_pic_F77='-pic'
23814 + lt_prog_compiler_static_F77='-Bstatic'
23815 + ;;
23816 +
23817 + *)
23818 + lt_prog_compiler_can_build_shared_F77=no
23819 + ;;
23820 + esac
23821 + fi
23822 +
23823 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23824 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
23825 +
23826 +#
23827 +# Check to make sure the PIC flag actually works.
23828 +#
23829 +if test -n "$lt_prog_compiler_pic_F77"; then
23830 +
23831 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23832 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
23833 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
23834 + echo $ECHO_N "(cached) $ECHO_C" >&6
23835 +else
23836 + lt_prog_compiler_pic_works_F77=no
23837 + ac_outfile=conftest.$ac_objext
23838 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23839 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
23840 + # Insert the option either (1) after the last *FLAGS variable, or
23841 + # (2) before a word containing "conftest.", or (3) at the end.
23842 + # Note that $ac_compile itself does not contain backslashes and begins
23843 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23844 + # The option is referenced via a variable to avoid confusing sed.
23845 + lt_compile=`echo "$ac_compile" | $SED \
23846 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23847 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23848 + -e 's:$: $lt_compiler_flag:'`
23849 + (eval echo "\"\$as_me:13305: $lt_compile\"" >&5)
23850 + (eval "$lt_compile" 2>conftest.err)
23851 + ac_status=$?
23852 + cat conftest.err >&5
23853 + echo "$as_me:13309: \$? = $ac_status" >&5
23854 + if (exit $ac_status) && test -s "$ac_outfile"; then
23855 + # The compiler can only warn and ignore the option if not recognized
23856 + # So say no if there are warnings other than the usual output.
23857 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23858 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23859 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23860 + lt_prog_compiler_pic_works_F77=yes
23861 + fi
23862 + fi
23863 + $rm conftest*
23864 +
23865 +fi
23866 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
23867 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
23868 +
23869 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
23870 + case $lt_prog_compiler_pic_F77 in
23871 + "" | " "*) ;;
23872 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23873 + esac
23874 +else
23875 + lt_prog_compiler_pic_F77=
23876 + lt_prog_compiler_can_build_shared_F77=no
23877 +fi
23878 +
23879 +fi
23880 +case $host_os in
23881 + # For platforms which do not support PIC, -DPIC is meaningless:
23882 + *djgpp*)
23883 + lt_prog_compiler_pic_F77=
23884 + ;;
23885 + *)
23886 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
23887 + ;;
23888 +esac
23889 +
23890 +#
23891 +# Check to make sure the static flag actually works.
23892 +#
23893 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23894 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23895 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23896 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
23897 + echo $ECHO_N "(cached) $ECHO_C" >&6
23898 +else
23899 + lt_prog_compiler_static_works_F77=no
23900 + save_LDFLAGS="$LDFLAGS"
23901 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23902 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
23903 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23904 + # The linker can only warn and ignore the option if not recognized
23905 + # So say no if there are warnings
23906 + if test -s conftest.err; then
23907 + # Append any errors to the config.log.
23908 + cat conftest.err 1>&5
23909 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23910 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23911 + if diff conftest.exp conftest.er2 >/dev/null; then
23912 + lt_prog_compiler_static_works_F77=yes
23913 + fi
23914 + else
23915 + lt_prog_compiler_static_works_F77=yes
23916 + fi
23917 + fi
23918 + $rm conftest*
23919 + LDFLAGS="$save_LDFLAGS"
23920 +
23921 +fi
23922 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
23923 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
23924 +
23925 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
23926 + :
23927 +else
23928 + lt_prog_compiler_static_F77=
23929 +fi
23930 +
23931 +
23932 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23933 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23934 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
23935 + echo $ECHO_N "(cached) $ECHO_C" >&6
23936 +else
23937 + lt_cv_prog_compiler_c_o_F77=no
23938 + $rm -r conftest 2>/dev/null
23939 + mkdir conftest
23940 + cd conftest
23941 + mkdir out
23942 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23943 +
23944 + lt_compiler_flag="-o out/conftest2.$ac_objext"
23945 + # Insert the option either (1) after the last *FLAGS variable, or
23946 + # (2) before a word containing "conftest.", or (3) at the end.
23947 + # Note that $ac_compile itself does not contain backslashes and begins
23948 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23949 + lt_compile=`echo "$ac_compile" | $SED \
23950 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23951 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23952 + -e 's:$: $lt_compiler_flag:'`
23953 + (eval echo "\"\$as_me:13409: $lt_compile\"" >&5)
23954 + (eval "$lt_compile" 2>out/conftest.err)
23955 + ac_status=$?
23956 + cat out/conftest.err >&5
23957 + echo "$as_me:13413: \$? = $ac_status" >&5
23958 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
23959 + then
23960 + # The compiler can only warn and ignore the option if not recognized
23961 + # So say no if there are warnings
23962 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23963 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23964 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23965 + lt_cv_prog_compiler_c_o_F77=yes
23966 + fi
23967 + fi
23968 + chmod u+w . 2>&5
23969 + $rm conftest*
23970 + # SGI C++ compiler will create directory out/ii_files/ for
23971 + # template instantiation
23972 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23973 + $rm out/* && rmdir out
23974 + cd ..
23975 + rmdir conftest
23976 + $rm conftest*
23977 +
23978 +fi
23979 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23980 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
23981 +
23982 +
23983 +hard_links="nottested"
23984 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
23985 + # do not overwrite the value of need_locks provided by the user
23986 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23987 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23988 + hard_links=yes
23989 + $rm conftest*
23990 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23991 + touch conftest.a
23992 + ln conftest.a conftest.b 2>&5 || hard_links=no
23993 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23994 + echo "$as_me:$LINENO: result: $hard_links" >&5
23995 +echo "${ECHO_T}$hard_links" >&6
23996 + if test "$hard_links" = no; then
23997 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23998 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23999 + need_locks=warn
24000 + fi
24001 +else
24002 + need_locks=no
24003 +fi
24004 +
24005 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24006 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24007 +
24008 + runpath_var=
24009 + allow_undefined_flag_F77=
24010 + enable_shared_with_static_runtimes_F77=no
24011 + archive_cmds_F77=
24012 + archive_expsym_cmds_F77=
24013 + old_archive_From_new_cmds_F77=
24014 + old_archive_from_expsyms_cmds_F77=
24015 + export_dynamic_flag_spec_F77=
24016 + whole_archive_flag_spec_F77=
24017 + thread_safe_flag_spec_F77=
24018 + hardcode_libdir_flag_spec_F77=
24019 + hardcode_libdir_flag_spec_ld_F77=
24020 + hardcode_libdir_separator_F77=
24021 + hardcode_direct_F77=no
24022 + hardcode_minus_L_F77=no
24023 + hardcode_shlibpath_var_F77=unsupported
24024 + link_all_deplibs_F77=unknown
24025 + hardcode_automatic_F77=no
24026 + module_cmds_F77=
24027 + module_expsym_cmds_F77=
24028 + always_export_symbols_F77=no
24029 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24030 + # include_expsyms should be a list of space-separated symbols to be *always*
24031 + # included in the symbol list
24032 + include_expsyms_F77=
24033 + # exclude_expsyms can be an extended regexp of symbols to exclude
24034 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
24035 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24036 + # as well as any symbol that contains `d'.
24037 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24038 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24039 + # platforms (ab)use it in PIC code, but their linkers get confused if
24040 + # the symbol is explicitly referenced. Since portable code cannot
24041 + # rely on this symbol name, it's probably fine to never include it in
24042 + # preloaded symbol tables.
24043 + extract_expsyms_cmds=
24044 + # Just being paranoid about ensuring that cc_basename is set.
24045 + for cc_temp in $compiler""; do
24046 + case $cc_temp in
24047 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24048 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24049 + \-*) ;;
24050 + *) break;;
24051 + esac
24052 +done
24053 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24054 +
24055 + case $host_os in
24056 + cygwin* | mingw* | pw32*)
24057 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
24058 + # When not using gcc, we currently assume that we are using
24059 + # Microsoft Visual C++.
24060 + if test "$GCC" != yes; then
24061 + with_gnu_ld=no
24062 + fi
24063 + ;;
24064 + interix*)
24065 + # we just hope/assume this is gcc and not c89 (= MSVC++)
24066 + with_gnu_ld=yes
24067 + ;;
24068 + openbsd*)
24069 + with_gnu_ld=no
24070 + ;;
24071 + esac
24072 +
24073 + ld_shlibs_F77=yes
24074 + if test "$with_gnu_ld" = yes; then
24075 + # If archive_cmds runs LD, not CC, wlarc should be empty
24076 + wlarc='${wl}'
24077 +
24078 + # Set some defaults for GNU ld with shared library support. These
24079 + # are reset later if shared libraries are not supported. Putting them
24080 + # here allows them to be overridden if necessary.
24081 + runpath_var=LD_RUN_PATH
24082 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24083 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24084 + # ancient GNU ld didn't support --whole-archive et. al.
24085 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24086 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24087 + else
24088 + whole_archive_flag_spec_F77=
24089 + fi
24090 + supports_anon_versioning=no
24091 + case `$LD -v 2>/dev/null` in
24092 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24093 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24094 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24095 + *\ 2.11.*) ;; # other 2.11 versions
24096 + *) supports_anon_versioning=yes ;;
24097 + esac
24098 +
24099 + # See if GNU ld supports shared libraries.
24100 + case $host_os in
24101 + aix3* | aix4* | aix5*)
24102 + # On AIX/PPC, the GNU linker is very broken
24103 + if test "$host_cpu" != ia64; then
24104 + ld_shlibs_F77=no
24105 + cat <<EOF 1>&2
24106 +
24107 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24108 +*** to be unable to reliably create shared libraries on AIX.
24109 +*** Therefore, libtool is disabling shared libraries support. If you
24110 +*** really care for shared libraries, you may want to modify your PATH
24111 +*** so that a non-GNU linker is found, and then restart.
24112 +
24113 +EOF
24114 + fi
24115 + ;;
24116 +
24117 + amigaos*)
24118 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24119 + hardcode_libdir_flag_spec_F77='-L$libdir'
24120 + hardcode_minus_L_F77=yes
24121 +
24122 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24123 + # that the semantics of dynamic libraries on AmigaOS, at least up
24124 + # to version 4, is to share data among multiple programs linked
24125 + # with the same dynamic library. Since this doesn't match the
24126 + # behavior of shared libraries on other platforms, we can't use
24127 + # them.
24128 + ld_shlibs_F77=no
24129 + ;;
24130 +
24131 + beos*)
24132 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24133 + allow_undefined_flag_F77=unsupported
24134 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24135 + # support --undefined. This deserves some investigation. FIXME
24136 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24137 + else
24138 + ld_shlibs_F77=no
24139 + fi
24140 + ;;
24141 +
24142 + cygwin* | mingw* | pw32*)
24143 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24144 + # as there is no search path for DLLs.
24145 + hardcode_libdir_flag_spec_F77='-L$libdir'
24146 + allow_undefined_flag_F77=unsupported
24147 + always_export_symbols_F77=no
24148 + enable_shared_with_static_runtimes_F77=yes
24149 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24150 +
24151 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24152 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24153 + # If the export-symbols file already is a .def file (1st line
24154 + # is EXPORTS), use it as is; otherwise, prepend...
24155 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24156 + cp $export_symbols $output_objdir/$soname.def;
24157 + else
24158 + echo EXPORTS > $output_objdir/$soname.def;
24159 + cat $export_symbols >> $output_objdir/$soname.def;
24160 + fi~
24161 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24162 + else
24163 + ld_shlibs_F77=no
24164 + fi
24165 + ;;
24166 +
24167 + interix3*)
24168 + hardcode_direct_F77=no
24169 + hardcode_shlibpath_var_F77=no
24170 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24171 + export_dynamic_flag_spec_F77='${wl}-E'
24172 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24173 + # Instead, shared libraries are loaded at an image base (0x10000000 by
24174 + # default) and relocated if they conflict, which is a slow very memory
24175 + # consuming and fragmenting process. To avoid this, we pick a random,
24176 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24177 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24178 + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24179 + archive_expsym_cmds_F77='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'
24180 + ;;
24181 +
24182 + linux*)
24183 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24184 + tmp_addflag=
24185 + case $cc_basename,$host_cpu in
24186 + pgcc*) # Portland Group C compiler
24187 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24188 + tmp_addflag=' $pic_flag'
24189 + ;;
24190 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24191 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24192 + tmp_addflag=' $pic_flag -Mnomain' ;;
24193 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24194 + tmp_addflag=' -i_dynamic' ;;
24195 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24196 + tmp_addflag=' -i_dynamic -nofor_main' ;;
24197 + ifc* | ifort*) # Intel Fortran compiler
24198 + tmp_addflag=' -nofor_main' ;;
24199 + esac
24200 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24201 +
24202 + if test $supports_anon_versioning = yes; then
24203 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24204 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24205 + $echo "local: *; };" >> $output_objdir/$libname.ver~
24206 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24207 + fi
24208 + else
24209 + ld_shlibs_F77=no
24210 + fi
24211 + ;;
24212 +
24213 + netbsd*)
24214 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24215 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24216 + wlarc=
24217 + else
24218 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24219 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24220 + fi
24221 + ;;
24222 +
24223 + solaris*)
24224 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24225 + ld_shlibs_F77=no
24226 + cat <<EOF 1>&2
24227 +
24228 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24229 +*** create shared libraries on Solaris systems. Therefore, libtool
24230 +*** is disabling shared libraries support. We urge you to upgrade GNU
24231 +*** binutils to release 2.9.1 or newer. Another option is to modify
24232 +*** your PATH or compiler configuration so that the native linker is
24233 +*** used, and then restart.
24234 +
24235 +EOF
24236 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24237 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24238 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24239 + else
24240 + ld_shlibs_F77=no
24241 + fi
24242 + ;;
24243 +
24244 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24245 + case `$LD -v 2>&1` in
24246 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24247 + ld_shlibs_F77=no
24248 + cat <<_LT_EOF 1>&2
24249 +
24250 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24251 +*** reliably create shared libraries on SCO systems. Therefore, libtool
24252 +*** is disabling shared libraries support. We urge you to upgrade GNU
24253 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24254 +*** your PATH or compiler configuration so that the native linker is
24255 +*** used, and then restart.
24256 +
24257 +_LT_EOF
24258 + ;;
24259 + *)
24260 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24261 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24262 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24263 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24264 + else
24265 + ld_shlibs_F77=no
24266 + fi
24267 + ;;
24268 + esac
24269 + ;;
24270 +
24271 + sunos4*)
24272 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24273 + wlarc=
24274 + hardcode_direct_F77=yes
24275 + hardcode_shlibpath_var_F77=no
24276 + ;;
24277 +
24278 + *)
24279 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24280 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24281 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24282 + else
24283 + ld_shlibs_F77=no
24284 + fi
24285 + ;;
24286 + esac
24287 +
24288 + if test "$ld_shlibs_F77" = no; then
24289 + runpath_var=
24290 + hardcode_libdir_flag_spec_F77=
24291 + export_dynamic_flag_spec_F77=
24292 + whole_archive_flag_spec_F77=
24293 + fi
24294 + else
24295 + # PORTME fill in a description of your system's linker (not GNU ld)
24296 + case $host_os in
24297 + aix3*)
24298 + allow_undefined_flag_F77=unsupported
24299 + always_export_symbols_F77=yes
24300 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24301 + # Note: this linker hardcodes the directories in LIBPATH if there
24302 + # are no directories specified by -L.
24303 + hardcode_minus_L_F77=yes
24304 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24305 + # Neither direct hardcoding nor static linking is supported with a
24306 + # broken collect2.
24307 + hardcode_direct_F77=unsupported
24308 + fi
24309 + ;;
24310 +
24311 + aix4* | aix5*)
24312 + if test "$host_cpu" = ia64; then
24313 + # On IA64, the linker does run time linking by default, so we don't
24314 + # have to do anything special.
24315 + aix_use_runtimelinking=no
24316 + exp_sym_flag='-Bexport'
24317 + no_entry_flag=""
24318 + else
24319 + # If we're using GNU nm, then we don't want the "-C" option.
24320 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
24321 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24322 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24323 + else
24324 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24325 + fi
24326 + aix_use_runtimelinking=no
24327 +
24328 + # Test if we are trying to use run time linking or normal
24329 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24330 + # need to do runtime linking.
24331 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24332 + for ld_flag in $LDFLAGS; do
24333 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24334 + aix_use_runtimelinking=yes
24335 + break
24336 + fi
24337 + done
24338 + ;;
24339 + esac
24340 +
24341 + exp_sym_flag='-bexport'
24342 + no_entry_flag='-bnoentry'
24343 + fi
24344 +
24345 + # When large executables or shared objects are built, AIX ld can
24346 + # have problems creating the table of contents. If linking a library
24347 + # or program results in "error TOC overflow" add -mminimal-toc to
24348 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24349 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24350 +
24351 + archive_cmds_F77=''
24352 + hardcode_direct_F77=yes
24353 + hardcode_libdir_separator_F77=':'
24354 + link_all_deplibs_F77=yes
24355 +
24356 + if test "$GCC" = yes; then
24357 + case $host_os in aix4.[012]|aix4.[012].*)
24358 + # We only want to do this on AIX 4.2 and lower, the check
24359 + # below for broken collect2 doesn't work under 4.3+
24360 + collect2name=`${CC} -print-prog-name=collect2`
24361 + if test -f "$collect2name" && \
24362 + strings "$collect2name" | grep resolve_lib_name >/dev/null
24363 + then
24364 + # We have reworked collect2
24365 + hardcode_direct_F77=yes
24366 + else
24367 + # We have old collect2
24368 + hardcode_direct_F77=unsupported
24369 + # It fails to find uninstalled libraries when the uninstalled
24370 + # path is not listed in the libpath. Setting hardcode_minus_L
24371 + # to unsupported forces relinking
24372 + hardcode_minus_L_F77=yes
24373 + hardcode_libdir_flag_spec_F77='-L$libdir'
24374 + hardcode_libdir_separator_F77=
24375 + fi
24376 + ;;
24377 + esac
24378 + shared_flag='-shared'
24379 + if test "$aix_use_runtimelinking" = yes; then
24380 + shared_flag="$shared_flag "'${wl}-G'
24381 + fi
24382 + else
24383 + # not using gcc
24384 + if test "$host_cpu" = ia64; then
24385 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24386 + # chokes on -Wl,-G. The following line is correct:
24387 + shared_flag='-G'
24388 + else
24389 + if test "$aix_use_runtimelinking" = yes; then
24390 + shared_flag='${wl}-G'
24391 + else
24392 + shared_flag='${wl}-bM:SRE'
24393 + fi
24394 + fi
24395 + fi
24396 +
24397 + # It seems that -bexpall does not export symbols beginning with
24398 + # underscore (_), so it is better to generate a list of symbols to export.
24399 + always_export_symbols_F77=yes
24400 + if test "$aix_use_runtimelinking" = yes; then
24401 + # Warning - without using the other runtime loading flags (-brtl),
24402 + # -berok will link without error, but may produce a broken library.
24403 + allow_undefined_flag_F77='-berok'
24404 + # Determine the default libpath from the value encoded in an empty executable.
24405 + cat >conftest.$ac_ext <<_ACEOF
24406 + program main
24407 +
24408 + end
24409 +_ACEOF
24410 +rm -f conftest.$ac_objext conftest$ac_exeext
24411 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24412 + (eval $ac_link) 2>conftest.er1
24413 + ac_status=$?
24414 + grep -v '^ *+' conftest.er1 >conftest.err
24415 + rm -f conftest.er1
24416 + cat conftest.err >&5
24417 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 + (exit $ac_status); } &&
24419 + { ac_try='test -z "$ac_f77_werror_flag"
24420 + || test ! -s conftest.err'
24421 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 + (eval $ac_try) 2>&5
24423 + ac_status=$?
24424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 + (exit $ac_status); }; } &&
24426 + { ac_try='test -s conftest$ac_exeext'
24427 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 + (eval $ac_try) 2>&5
24429 + ac_status=$?
24430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 + (exit $ac_status); }; }; then
24432 +
24433 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24434 +}'`
24435 +# Check for a 64-bit object if we didn't find anything.
24436 +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; }
24437 +}'`; fi
24438 +else
24439 + echo "$as_me: failed program was:" >&5
24440 +sed 's/^/| /' conftest.$ac_ext >&5
24441 +
24442 +fi
24443 +rm -f conftest.err conftest.$ac_objext \
24444 + conftest$ac_exeext conftest.$ac_ext
24445 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24446 +
24447 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24448 + archive_expsym_cmds_F77="\$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"
24449 + else
24450 + if test "$host_cpu" = ia64; then
24451 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24452 + allow_undefined_flag_F77="-z nodefs"
24453 + archive_expsym_cmds_F77="\$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"
24454 + else
24455 + # Determine the default libpath from the value encoded in an empty executable.
24456 + cat >conftest.$ac_ext <<_ACEOF
24457 + program main
24458 +
24459 + end
24460 +_ACEOF
24461 +rm -f conftest.$ac_objext conftest$ac_exeext
24462 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 + (eval $ac_link) 2>conftest.er1
24464 + ac_status=$?
24465 + grep -v '^ *+' conftest.er1 >conftest.err
24466 + rm -f conftest.er1
24467 + cat conftest.err >&5
24468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 + (exit $ac_status); } &&
24470 + { ac_try='test -z "$ac_f77_werror_flag"
24471 + || test ! -s conftest.err'
24472 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 + (eval $ac_try) 2>&5
24474 + ac_status=$?
24475 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 + (exit $ac_status); }; } &&
24477 + { ac_try='test -s conftest$ac_exeext'
24478 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 + (eval $ac_try) 2>&5
24480 + ac_status=$?
24481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 + (exit $ac_status); }; }; then
24483 +
24484 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24485 +}'`
24486 +# Check for a 64-bit object if we didn't find anything.
24487 +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; }
24488 +}'`; fi
24489 +else
24490 + echo "$as_me: failed program was:" >&5
24491 +sed 's/^/| /' conftest.$ac_ext >&5
24492 +
24493 +fi
24494 +rm -f conftest.err conftest.$ac_objext \
24495 + conftest$ac_exeext conftest.$ac_ext
24496 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24497 +
24498 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24499 + # Warning - without using the other run time loading flags,
24500 + # -berok will link without error, but may produce a broken library.
24501 + no_undefined_flag_F77=' ${wl}-bernotok'
24502 + allow_undefined_flag_F77=' ${wl}-berok'
24503 + # Exported symbols can be pulled into shared objects from archives
24504 + whole_archive_flag_spec_F77='$convenience'
24505 + archive_cmds_need_lc_F77=yes
24506 + # This is similar to how AIX traditionally builds its shared libraries.
24507 + archive_expsym_cmds_F77="\$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'
24508 + fi
24509 + fi
24510 + ;;
24511 +
24512 + amigaos*)
24513 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24514 + hardcode_libdir_flag_spec_F77='-L$libdir'
24515 + hardcode_minus_L_F77=yes
24516 + # see comment about different semantics on the GNU ld section
24517 + ld_shlibs_F77=no
24518 + ;;
24519 +
24520 + bsdi[45]*)
24521 + export_dynamic_flag_spec_F77=-rdynamic
24522 + ;;
24523 +
24524 + cygwin* | mingw* | pw32*)
24525 + # When not using gcc, we currently assume that we are using
24526 + # Microsoft Visual C++.
24527 + # hardcode_libdir_flag_spec is actually meaningless, as there is
24528 + # no search path for DLLs.
24529 + hardcode_libdir_flag_spec_F77=' '
24530 + allow_undefined_flag_F77=unsupported
24531 + # Tell ltmain to make .lib files, not .a files.
24532 + libext=lib
24533 + # Tell ltmain to make .dll files, not .so files.
24534 + shrext_cmds=".dll"
24535 + # FIXME: Setting linknames here is a bad hack.
24536 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24537 + # The linker will automatically build a .lib file if we build a DLL.
24538 + old_archive_From_new_cmds_F77='true'
24539 + # FIXME: Should let the user specify the lib program.
24540 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24541 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
24542 + enable_shared_with_static_runtimes_F77=yes
24543 + ;;
24544 +
24545 + darwin* | rhapsody*)
24546 + case $host_os in
24547 + rhapsody* | darwin1.[012])
24548 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
24549 + ;;
24550 + *) # Darwin 1.3 on
24551 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24552 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24553 + else
24554 + case ${MACOSX_DEPLOYMENT_TARGET} in
24555 + 10.[012])
24556 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24557 + ;;
24558 + 10.*)
24559 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
24560 + ;;
24561 + esac
24562 + fi
24563 + ;;
24564 + esac
24565 + archive_cmds_need_lc_F77=no
24566 + hardcode_direct_F77=no
24567 + hardcode_automatic_F77=yes
24568 + hardcode_shlibpath_var_F77=unsupported
24569 + whole_archive_flag_spec_F77=''
24570 + link_all_deplibs_F77=yes
24571 + if test "$GCC" = yes ; then
24572 + output_verbose_link_cmd='echo'
24573 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24574 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24575 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24576 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24577 + module_expsym_cmds_F77='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}'
24578 + else
24579 + case $cc_basename in
24580 + xlc*)
24581 + output_verbose_link_cmd='echo'
24582 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24583 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24584 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24585 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24586 + module_expsym_cmds_F77='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}'
24587 + ;;
24588 + *)
24589 + ld_shlibs_F77=no
24590 + ;;
24591 + esac
24592 + fi
24593 + ;;
24594 +
24595 + dgux*)
24596 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24597 + hardcode_libdir_flag_spec_F77='-L$libdir'
24598 + hardcode_shlibpath_var_F77=no
24599 + ;;
24600 +
24601 + freebsd1*)
24602 + ld_shlibs_F77=no
24603 + ;;
24604 +
24605 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24606 + # support. Future versions do this automatically, but an explicit c++rt0.o
24607 + # does not break anything, and helps significantly (at the cost of a little
24608 + # extra space).
24609 + freebsd2.2*)
24610 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24611 + hardcode_libdir_flag_spec_F77='-R$libdir'
24612 + hardcode_direct_F77=yes
24613 + hardcode_shlibpath_var_F77=no
24614 + ;;
24615 +
24616 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24617 + freebsd2*)
24618 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24619 + hardcode_direct_F77=yes
24620 + hardcode_minus_L_F77=yes
24621 + hardcode_shlibpath_var_F77=no
24622 + ;;
24623 +
24624 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24625 + freebsd* | kfreebsd*-gnu | dragonfly*)
24626 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24627 + hardcode_libdir_flag_spec_F77='-R$libdir'
24628 + hardcode_direct_F77=yes
24629 + hardcode_shlibpath_var_F77=no
24630 + ;;
24631 +
24632 + hpux9*)
24633 + if test "$GCC" = yes; then
24634 + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24635 + else
24636 + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24637 + fi
24638 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24639 + hardcode_libdir_separator_F77=:
24640 + hardcode_direct_F77=yes
24641 +
24642 + # hardcode_minus_L: Not really in the search PATH,
24643 + # but as the default location of the library.
24644 + hardcode_minus_L_F77=yes
24645 + export_dynamic_flag_spec_F77='${wl}-E'
24646 + ;;
24647 +
24648 + hpux10*)
24649 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24650 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24651 + else
24652 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24653 + fi
24654 + if test "$with_gnu_ld" = no; then
24655 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24656 + hardcode_libdir_separator_F77=:
24657 +
24658 + hardcode_direct_F77=yes
24659 + export_dynamic_flag_spec_F77='${wl}-E'
24660 +
24661 + # hardcode_minus_L: Not really in the search PATH,
24662 + # but as the default location of the library.
24663 + hardcode_minus_L_F77=yes
24664 + fi
24665 + ;;
24666 +
24667 + hpux11*)
24668 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24669 + case $host_cpu in
24670 + hppa*64*)
24671 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24672 + ;;
24673 + ia64*)
24674 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24675 + ;;
24676 + *)
24677 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24678 + ;;
24679 + esac
24680 + else
24681 + case $host_cpu in
24682 + hppa*64*)
24683 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24684 + ;;
24685 + ia64*)
24686 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24687 + ;;
24688 + *)
24689 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24690 + ;;
24691 + esac
24692 + fi
24693 + if test "$with_gnu_ld" = no; then
24694 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24695 + hardcode_libdir_separator_F77=:
24696 +
24697 + case $host_cpu in
24698 + hppa*64*|ia64*)
24699 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24700 + hardcode_direct_F77=no
24701 + hardcode_shlibpath_var_F77=no
24702 + ;;
24703 + *)
24704 + hardcode_direct_F77=yes
24705 + export_dynamic_flag_spec_F77='${wl}-E'
24706 +
24707 + # hardcode_minus_L: Not really in the search PATH,
24708 + # but as the default location of the library.
24709 + hardcode_minus_L_F77=yes
24710 + ;;
24711 + esac
24712 + fi
24713 + ;;
24714 +
24715 + irix5* | irix6* | nonstopux*)
24716 + if test "$GCC" = yes; then
24717 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24718 + else
24719 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24720 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
24721 + fi
24722 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24723 + hardcode_libdir_separator_F77=:
24724 + link_all_deplibs_F77=yes
24725 + ;;
24726 +
24727 + netbsd*)
24728 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24729 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24730 + else
24731 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24732 + fi
24733 + hardcode_libdir_flag_spec_F77='-R$libdir'
24734 + hardcode_direct_F77=yes
24735 + hardcode_shlibpath_var_F77=no
24736 + ;;
24737 +
24738 + newsos6)
24739 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24740 + hardcode_direct_F77=yes
24741 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24742 + hardcode_libdir_separator_F77=:
24743 + hardcode_shlibpath_var_F77=no
24744 + ;;
24745 +
24746 + openbsd*)
24747 + hardcode_direct_F77=yes
24748 + hardcode_shlibpath_var_F77=no
24749 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24750 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24751 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24752 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24753 + export_dynamic_flag_spec_F77='${wl}-E'
24754 + else
24755 + case $host_os in
24756 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24757 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24758 + hardcode_libdir_flag_spec_F77='-R$libdir'
24759 + ;;
24760 + *)
24761 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24762 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24763 + ;;
24764 + esac
24765 + fi
24766 + ;;
24767 +
24768 + os2*)
24769 + hardcode_libdir_flag_spec_F77='-L$libdir'
24770 + hardcode_minus_L_F77=yes
24771 + allow_undefined_flag_F77=unsupported
24772 + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
24773 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24774 + ;;
24775 +
24776 + osf3*)
24777 + if test "$GCC" = yes; then
24778 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
24779 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24780 + else
24781 + allow_undefined_flag_F77=' -expect_unresolved \*'
24782 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24783 + fi
24784 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24785 + hardcode_libdir_separator_F77=:
24786 + ;;
24787 +
24788 + osf4* | osf5*) # as osf3* with the addition of -msym flag
24789 + if test "$GCC" = yes; then
24790 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
24791 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24792 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24793 + else
24794 + allow_undefined_flag_F77=' -expect_unresolved \*'
24795 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24796 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24797 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24798 +
24799 + # Both c and cxx compiler support -rpath directly
24800 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
24801 + fi
24802 + hardcode_libdir_separator_F77=:
24803 + ;;
24804 +
24805 + solaris*)
24806 + no_undefined_flag_F77=' -z text'
24807 + if test "$GCC" = yes; then
24808 + wlarc='${wl}'
24809 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24810 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24811 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24812 + else
24813 + wlarc=''
24814 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24815 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24816 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24817 + fi
24818 + hardcode_libdir_flag_spec_F77='-R$libdir'
24819 + hardcode_shlibpath_var_F77=no
24820 + case $host_os in
24821 + solaris2.[0-5] | solaris2.[0-5].*) ;;
24822 + *)
24823 + # The compiler driver will combine linker options so we
24824 + # cannot just pass the convience library names through
24825 + # without $wl, iff we do not link with $LD.
24826 + # Luckily, gcc supports the same syntax we need for Sun Studio.
24827 + # Supported since Solaris 2.6 (maybe 2.5.1?)
24828 + case $wlarc in
24829 + '')
24830 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
24831 + *)
24832 + whole_archive_flag_spec_F77='${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' ;;
24833 + esac ;;
24834 + esac
24835 + link_all_deplibs_F77=yes
24836 + ;;
24837 +
24838 + sunos4*)
24839 + if test "x$host_vendor" = xsequent; then
24840 + # Use $CC to link under sequent, because it throws in some extra .o
24841 + # files that make .init and .fini sections work.
24842 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24843 + else
24844 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24845 + fi
24846 + hardcode_libdir_flag_spec_F77='-L$libdir'
24847 + hardcode_direct_F77=yes
24848 + hardcode_minus_L_F77=yes
24849 + hardcode_shlibpath_var_F77=no
24850 + ;;
24851 +
24852 + sysv4)
24853 + case $host_vendor in
24854 + sni)
24855 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24856 + hardcode_direct_F77=yes # is this really true???
24857 + ;;
24858 + siemens)
24859 + ## LD is ld it makes a PLAMLIB
24860 + ## CC just makes a GrossModule.
24861 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24862 + reload_cmds_F77='$CC -r -o $output$reload_objs'
24863 + hardcode_direct_F77=no
24864 + ;;
24865 + motorola)
24866 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
24868 + ;;
24869 + esac
24870 + runpath_var='LD_RUN_PATH'
24871 + hardcode_shlibpath_var_F77=no
24872 + ;;
24873 +
24874 + sysv4.3*)
24875 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24876 + hardcode_shlibpath_var_F77=no
24877 + export_dynamic_flag_spec_F77='-Bexport'
24878 + ;;
24879 +
24880 + sysv4*MP*)
24881 + if test -d /usr/nec; then
24882 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24883 + hardcode_shlibpath_var_F77=no
24884 + runpath_var=LD_RUN_PATH
24885 + hardcode_runpath_var=yes
24886 + ld_shlibs_F77=yes
24887 + fi
24888 + ;;
24889 +
24890 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24891 + no_undefined_flag_F77='${wl}-z,text'
24892 + archive_cmds_need_lc_F77=no
24893 + hardcode_shlibpath_var_F77=no
24894 + runpath_var='LD_RUN_PATH'
24895 +
24896 + if test "$GCC" = yes; then
24897 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24899 + else
24900 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24902 + fi
24903 + ;;
24904 +
24905 + sysv5* | sco3.2v5* | sco5v6*)
24906 + # Note: We can NOT use -z defs as we might desire, because we do not
24907 + # link with -lc, and that would cause any symbols used from libc to
24908 + # always be unresolved, which means just about no library would
24909 + # ever link correctly. If we're not using GNU ld we use -z text
24910 + # though, which does catch some bad symbols but isn't as heavy-handed
24911 + # as -z defs.
24912 + no_undefined_flag_F77='${wl}-z,text'
24913 + allow_undefined_flag_F77='${wl}-z,nodefs'
24914 + archive_cmds_need_lc_F77=no
24915 + hardcode_shlibpath_var_F77=no
24916 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24917 + hardcode_libdir_separator_F77=':'
24918 + link_all_deplibs_F77=yes
24919 + export_dynamic_flag_spec_F77='${wl}-Bexport'
24920 + runpath_var='LD_RUN_PATH'
24921 +
24922 + if test "$GCC" = yes; then
24923 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24924 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24925 + else
24926 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24927 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24928 + fi
24929 + ;;
24930 +
24931 + uts4*)
24932 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24933 + hardcode_libdir_flag_spec_F77='-L$libdir'
24934 + hardcode_shlibpath_var_F77=no
24935 + ;;
24936 +
24937 + *)
24938 + ld_shlibs_F77=no
24939 + ;;
24940 + esac
24941 + fi
24942 +
24943 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24944 +echo "${ECHO_T}$ld_shlibs_F77" >&6
24945 +test "$ld_shlibs_F77" = no && can_build_shared=no
24946 +
24947 +#
24948 +# Do we need to explicitly link libc?
24949 +#
24950 +case "x$archive_cmds_need_lc_F77" in
24951 +x|xyes)
24952 + # Assume -lc should be added
24953 + archive_cmds_need_lc_F77=yes
24954 +
24955 + if test "$enable_shared" = yes && test "$GCC" = yes; then
24956 + case $archive_cmds_F77 in
24957 + *'~'*)
24958 + # FIXME: we may have to deal with multi-command sequences.
24959 + ;;
24960 + '$CC '*)
24961 + # Test whether the compiler implicitly links with -lc since on some
24962 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
24963 + # to ld, don't add -lc before -lgcc.
24964 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24965 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24966 + $rm conftest*
24967 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24968 +
24969 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970 + (eval $ac_compile) 2>&5
24971 + ac_status=$?
24972 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 + (exit $ac_status); } 2>conftest.err; then
24974 + soname=conftest
24975 + lib=conftest
24976 + libobjs=conftest.$ac_objext
24977 + deplibs=
24978 + wl=$lt_prog_compiler_wl_F77
24979 + pic_flag=$lt_prog_compiler_pic_F77
24980 + compiler_flags=-v
24981 + linker_flags=-v
24982 + verstring=
24983 + output_objdir=.
24984 + libname=conftest
24985 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
24986 + allow_undefined_flag_F77=
24987 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24988 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24989 + ac_status=$?
24990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 + (exit $ac_status); }
24992 + then
24993 + archive_cmds_need_lc_F77=no
24994 + else
24995 + archive_cmds_need_lc_F77=yes
24996 + fi
24997 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
24998 + else
24999 + cat conftest.err 1>&5
25000 + fi
25001 + $rm conftest*
25002 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25003 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25004 + ;;
25005 + esac
25006 + fi
25007 + ;;
25008 +esac
25009 +
25010 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25011 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25012 +library_names_spec=
25013 +libname_spec='lib$name'
25014 +soname_spec=
25015 +shrext_cmds=".so"
25016 +postinstall_cmds=
25017 +postuninstall_cmds=
25018 +finish_cmds=
25019 +finish_eval=
25020 +shlibpath_var=
25021 +shlibpath_overrides_runpath=unknown
25022 +version_type=none
25023 +dynamic_linker="$host_os ld.so"
25024 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
25025 +if test "$GCC" = yes; then
25026 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25027 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25028 + # if the path contains ";" then we assume it to be the separator
25029 + # otherwise default to the standard path separator (i.e. ":") - it is
25030 + # assumed that no part of a normal pathname contains ";" but that should
25031 + # okay in the real world where ";" in dirpaths is itself problematic.
25032 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25033 + else
25034 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25035 + fi
25036 +else
25037 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25038 +fi
25039 +need_lib_prefix=unknown
25040 +hardcode_into_libs=no
25041 +
25042 +# when you set need_version to no, make sure it does not cause -set_version
25043 +# flags to be left without arguments
25044 +need_version=unknown
25045 +
25046 +case $host_os in
25047 +aix3*)
25048 + version_type=linux
25049 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25050 + shlibpath_var=LIBPATH
25051 +
25052 + # AIX 3 has no versioning support, so we append a major version to the name.
25053 + soname_spec='${libname}${release}${shared_ext}$major'
25054 + ;;
25055 +
25056 +aix4* | aix5*)
25057 + version_type=linux
25058 + need_lib_prefix=no
25059 + need_version=no
25060 + hardcode_into_libs=yes
25061 + if test "$host_cpu" = ia64; then
25062 + # AIX 5 supports IA64
25063 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25064 + shlibpath_var=LD_LIBRARY_PATH
25065 + else
25066 + # With GCC up to 2.95.x, collect2 would create an import file
25067 + # for dependence libraries. The import file would start with
25068 + # the line `#! .'. This would cause the generated library to
25069 + # depend on `.', always an invalid library. This was fixed in
25070 + # development snapshots of GCC prior to 3.0.
25071 + case $host_os in
25072 + aix4 | aix4.[01] | aix4.[01].*)
25073 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25074 + echo ' yes '
25075 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25076 + :
25077 + else
25078 + can_build_shared=no
25079 + fi
25080 + ;;
25081 + esac
25082 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25083 + # soname into executable. Probably we can add versioning support to
25084 + # collect2, so additional links can be useful in future.
25085 + if test "$aix_use_runtimelinking" = yes; then
25086 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25087 + # instead of lib<name>.a to let people know that these are not
25088 + # typical AIX shared libraries.
25089 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25090 + else
25091 + # We preserve .a as extension for shared libraries through AIX4.2
25092 + # and later when we are not doing run time linking.
25093 + library_names_spec='${libname}${release}.a $libname.a'
25094 + soname_spec='${libname}${release}${shared_ext}$major'
25095 + fi
25096 + shlibpath_var=LIBPATH
25097 + fi
25098 + ;;
25099 +
25100 +amigaos*)
25101 + library_names_spec='$libname.ixlibrary $libname.a'
25102 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
25103 + 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'
25104 + ;;
25105 +
25106 +beos*)
25107 + library_names_spec='${libname}${shared_ext}'
25108 + dynamic_linker="$host_os ld.so"
25109 + shlibpath_var=LIBRARY_PATH
25110 + ;;
25111 +
25112 +bsdi[45]*)
25113 + version_type=linux
25114 + need_version=no
25115 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25116 + soname_spec='${libname}${release}${shared_ext}$major'
25117 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25118 + shlibpath_var=LD_LIBRARY_PATH
25119 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25120 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25121 + # the default ld.so.conf also contains /usr/contrib/lib and
25122 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25123 + # libtool to hard-code these into programs
25124 + ;;
25125 +
25126 +cygwin* | mingw* | pw32*)
25127 + version_type=windows
25128 + shrext_cmds=".dll"
25129 + need_version=no
25130 + need_lib_prefix=no
25131 +
25132 + case $GCC,$host_os in
25133 + yes,cygwin* | yes,mingw* | yes,pw32*)
25134 + library_names_spec='$libname.dll.a'
25135 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
25136 + postinstall_cmds='base_file=`basename \${file}`~
25137 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25138 + dldir=$destdir/`dirname \$dlpath`~
25139 + test -d \$dldir || mkdir -p \$dldir~
25140 + $install_prog $dir/$dlname \$dldir/$dlname~
25141 + chmod a+x \$dldir/$dlname'
25142 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25143 + dlpath=$dir/\$dldll~
25144 + $rm \$dlpath'
25145 + shlibpath_overrides_runpath=yes
25146 +
25147 + case $host_os in
25148 + cygwin*)
25149 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25150 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25151 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25152 + ;;
25153 + mingw*)
25154 + # MinGW DLLs use traditional 'lib' prefix
25155 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25156 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25157 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25158 + # It is most probably a Windows format PATH printed by
25159 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
25160 + # path with ; separators, and with drive letters. We can handle the
25161 + # drive letters (cygwin fileutils understands them), so leave them,
25162 + # especially as we might pass files found there to a mingw objdump,
25163 + # which wouldn't understand a cygwinified path. Ahh.
25164 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25165 + else
25166 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25167 + fi
25168 + ;;
25169 + pw32*)
25170 + # pw32 DLLs use 'pw' prefix rather than 'lib'
25171 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25172 + ;;
25173 + esac
25174 + ;;
25175 +
25176 + linux*)
25177 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
25178 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25179 + supports_anon_versioning=no
25180 + case `$LD -v 2>/dev/null` in
25181 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25182 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25183 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25184 + *\ 2.11.*) ;; # other 2.11 versions
25185 + *) supports_anon_versioning=yes ;;
25186 + esac
25187 + if test $supports_anon_versioning = yes; then
25188 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
25189 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25190 +$echo "local: *; };" >> $output_objdir/$libname.ver~
25191 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25192 + else
25193 + $archive_expsym_cmds="$archive_cmds"
25194 + fi
25195 + else
25196 + ld_shlibs=no
25197 + fi
25198 + ;;
25199 +
25200 + *)
25201 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25202 + ;;
25203 + esac
25204 + dynamic_linker='Win32 ld.exe'
25205 + # FIXME: first we should search . and the directory the executable is in
25206 + shlibpath_var=PATH
25207 + ;;
25208 +
25209 +darwin* | rhapsody*)
25210 + dynamic_linker="$host_os dyld"
25211 + version_type=darwin
25212 + need_lib_prefix=no
25213 + need_version=no
25214 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25215 + soname_spec='${libname}${release}${major}$shared_ext'
25216 + shlibpath_overrides_runpath=yes
25217 + shlibpath_var=DYLD_LIBRARY_PATH
25218 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25219 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25220 + if test "$GCC" = yes; then
25221 + 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"`
25222 + else
25223 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25224 + fi
25225 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25226 + ;;
25227 +
25228 +dgux*)
25229 + version_type=linux
25230 + need_lib_prefix=no
25231 + need_version=no
25232 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25233 + soname_spec='${libname}${release}${shared_ext}$major'
25234 + shlibpath_var=LD_LIBRARY_PATH
25235 + ;;
25236 +
25237 +freebsd1*)
25238 + dynamic_linker=no
25239 + ;;
25240 +
25241 +kfreebsd*-gnu)
25242 + version_type=linux
25243 + need_lib_prefix=no
25244 + need_version=no
25245 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25246 + soname_spec='${libname}${release}${shared_ext}$major'
25247 + shlibpath_var=LD_LIBRARY_PATH
25248 + shlibpath_overrides_runpath=no
25249 + hardcode_into_libs=yes
25250 + dynamic_linker='GNU ld.so'
25251 + ;;
25252 +
25253 +freebsd* | dragonfly*)
25254 + # DragonFly does not have aout. When/if they implement a new
25255 + # versioning mechanism, adjust this.
25256 + if test -x /usr/bin/objformat; then
25257 + objformat=`/usr/bin/objformat`
25258 + else
25259 + case $host_os in
25260 + freebsd[123]*) objformat=aout ;;
25261 + *) objformat=elf ;;
25262 + esac
25263 + fi
25264 + # Handle Gentoo/FreeBSD as it was Linux
25265 + case $host_vendor in
25266 + gentoo)
25267 + version_type=linux ;;
25268 + *)
25269 + version_type=freebsd-$objformat ;;
25270 + esac
25271 +
25272 + case $version_type in
25273 + freebsd-elf*)
25274 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25275 + need_version=no
25276 + need_lib_prefix=no
25277 + ;;
25278 + freebsd-*)
25279 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25280 + need_version=yes
25281 + ;;
25282 + linux)
25283 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25284 + soname_spec='${libname}${release}${shared_ext}$major'
25285 + need_lib_prefix=no
25286 + need_version=no
25287 + ;;
25288 + esac
25289 + shlibpath_var=LD_LIBRARY_PATH
25290 + case $host_os in
25291 + freebsd2*)
25292 + shlibpath_overrides_runpath=yes
25293 + ;;
25294 + freebsd3.[01]* | freebsdelf3.[01]*)
25295 + shlibpath_overrides_runpath=yes
25296 + hardcode_into_libs=yes
25297 + ;;
25298 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25299 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25300 + shlibpath_overrides_runpath=no
25301 + hardcode_into_libs=yes
25302 + ;;
25303 + freebsd*) # from 4.6 on
25304 + shlibpath_overrides_runpath=yes
25305 + hardcode_into_libs=yes
25306 + ;;
25307 + esac
25308 + ;;
25309 +
25310 +gnu*)
25311 + version_type=linux
25312 + need_lib_prefix=no
25313 + need_version=no
25314 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25315 + soname_spec='${libname}${release}${shared_ext}$major'
25316 + shlibpath_var=LD_LIBRARY_PATH
25317 + hardcode_into_libs=yes
25318 + ;;
25319 +
25320 +hpux9* | hpux10* | hpux11*)
25321 + # Give a soname corresponding to the major version so that dld.sl refuses to
25322 + # link against other versions.
25323 + version_type=sunos
25324 + need_lib_prefix=no
25325 + need_version=no
25326 + case $host_cpu in
25327 + ia64*)
25328 + shrext_cmds='.so'
25329 + hardcode_into_libs=yes
25330 + dynamic_linker="$host_os dld.so"
25331 + shlibpath_var=LD_LIBRARY_PATH
25332 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25333 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25334 + soname_spec='${libname}${release}${shared_ext}$major'
25335 + if test "X$HPUX_IA64_MODE" = X32; then
25336 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25337 + else
25338 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25339 + fi
25340 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25341 + ;;
25342 + hppa*64*)
25343 + shrext_cmds='.sl'
25344 + hardcode_into_libs=yes
25345 + dynamic_linker="$host_os dld.sl"
25346 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25347 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25348 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25349 + soname_spec='${libname}${release}${shared_ext}$major'
25350 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25351 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25352 + ;;
25353 + *)
25354 + shrext_cmds='.sl'
25355 + dynamic_linker="$host_os dld.sl"
25356 + shlibpath_var=SHLIB_PATH
25357 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25358 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25359 + soname_spec='${libname}${release}${shared_ext}$major'
25360 + ;;
25361 + esac
25362 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
25363 + postinstall_cmds='chmod 555 $lib'
25364 + ;;
25365 +
25366 +interix3*)
25367 + version_type=linux
25368 + need_lib_prefix=no
25369 + need_version=no
25370 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25371 + soname_spec='${libname}${release}${shared_ext}$major'
25372 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25373 + shlibpath_var=LD_LIBRARY_PATH
25374 + shlibpath_overrides_runpath=no
25375 + hardcode_into_libs=yes
25376 + ;;
25377 +
25378 +irix5* | irix6* | nonstopux*)
25379 + case $host_os in
25380 + nonstopux*) version_type=nonstopux ;;
25381 + *)
25382 + if test "$lt_cv_prog_gnu_ld" = yes; then
25383 + version_type=linux
25384 + else
25385 + version_type=irix
25386 + fi ;;
25387 + esac
25388 + need_lib_prefix=no
25389 + need_version=no
25390 + soname_spec='${libname}${release}${shared_ext}$major'
25391 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25392 + case $host_os in
25393 + irix5* | nonstopux*)
25394 + libsuff= shlibsuff=
25395 + ;;
25396 + *)
25397 + case $LD in # libtool.m4 will add one of these switches to LD
25398 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25399 + libsuff= shlibsuff= libmagic=32-bit;;
25400 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25401 + libsuff=32 shlibsuff=N32 libmagic=N32;;
25402 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25403 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
25404 + *) libsuff= shlibsuff= libmagic=never-match;;
25405 + esac
25406 + ;;
25407 + esac
25408 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25409 + shlibpath_overrides_runpath=no
25410 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25411 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25412 + hardcode_into_libs=yes
25413 + ;;
25414 +
25415 +# No shared lib support for Linux oldld, aout, or coff.
25416 +linux*oldld* | linux*aout* | linux*coff*)
25417 + dynamic_linker=no
25418 + ;;
25419 +
25420 +# This must be Linux ELF.
25421 +linux*)
25422 + version_type=linux
25423 + need_lib_prefix=no
25424 + need_version=no
25425 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25426 + soname_spec='${libname}${release}${shared_ext}$major'
25427 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25428 + shlibpath_var=LD_LIBRARY_PATH
25429 + shlibpath_overrides_runpath=no
25430 + # This implies no fast_install, which is unacceptable.
25431 + # Some rework will be needed to allow for fast_install
25432 + # before this can be enabled.
25433 + hardcode_into_libs=yes
25434 +
25435 + # Append ld.so.conf contents to the search path
25436 + if test -f /etc/ld.so.conf; then
25437 + 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' ' '`
25438 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25439 + fi
25440 +
25441 + # We used to test for /lib/ld.so.1 and disable shared libraries on
25442 + # powerpc, because MkLinux only supported shared libraries with the
25443 + # GNU dynamic linker. Since this was broken with cross compilers,
25444 + # most powerpc-linux boxes support dynamic linking these days and
25445 + # people can always --disable-shared, the test was removed, and we
25446 + # assume the GNU/Linux dynamic linker is in use.
25447 + dynamic_linker='GNU/Linux ld.so'
25448 + ;;
25449 +
25450 +knetbsd*-gnu)
25451 + version_type=linux
25452 + need_lib_prefix=no
25453 + need_version=no
25454 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25455 + soname_spec='${libname}${release}${shared_ext}$major'
25456 + shlibpath_var=LD_LIBRARY_PATH
25457 + shlibpath_overrides_runpath=no
25458 + hardcode_into_libs=yes
25459 + dynamic_linker='GNU ld.so'
25460 + ;;
25461 +
25462 +netbsd*)
25463 + version_type=sunos
25464 + need_lib_prefix=no
25465 + need_version=no
25466 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25467 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25468 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25469 + dynamic_linker='NetBSD (a.out) ld.so'
25470 + else
25471 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25472 + soname_spec='${libname}${release}${shared_ext}$major'
25473 + dynamic_linker='NetBSD ld.elf_so'
25474 + fi
25475 + shlibpath_var=LD_LIBRARY_PATH
25476 + shlibpath_overrides_runpath=yes
25477 + hardcode_into_libs=yes
25478 + ;;
25479 +
25480 +newsos6)
25481 + version_type=linux
25482 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25483 + shlibpath_var=LD_LIBRARY_PATH
25484 + shlibpath_overrides_runpath=yes
25485 + ;;
25486 +
25487 +nto-qnx*)
25488 + version_type=linux
25489 + need_lib_prefix=no
25490 + need_version=no
25491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25492 + soname_spec='${libname}${release}${shared_ext}$major'
25493 + shlibpath_var=LD_LIBRARY_PATH
25494 + shlibpath_overrides_runpath=yes
25495 + ;;
25496 +
25497 +openbsd*)
25498 + version_type=sunos
25499 + sys_lib_dlsearch_path_spec="/usr/lib"
25500 + need_lib_prefix=no
25501 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25502 + case $host_os in
25503 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25504 + *) need_version=no ;;
25505 + esac
25506 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25507 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25508 + shlibpath_var=LD_LIBRARY_PATH
25509 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25510 + case $host_os in
25511 + openbsd2.[89] | openbsd2.[89].*)
25512 + shlibpath_overrides_runpath=no
25513 + ;;
25514 + *)
25515 + shlibpath_overrides_runpath=yes
25516 + ;;
25517 + esac
25518 + else
25519 + shlibpath_overrides_runpath=yes
25520 + fi
25521 + ;;
25522 +
25523 +os2*)
25524 + libname_spec='$name'
25525 + shrext_cmds=".dll"
25526 + need_lib_prefix=no
25527 + library_names_spec='$libname${shared_ext} $libname.a'
25528 + dynamic_linker='OS/2 ld.exe'
25529 + shlibpath_var=LIBPATH
25530 + ;;
25531 +
25532 +osf3* | osf4* | osf5*)
25533 + version_type=osf
25534 + need_lib_prefix=no
25535 + need_version=no
25536 + soname_spec='${libname}${release}${shared_ext}$major'
25537 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25538 + shlibpath_var=LD_LIBRARY_PATH
25539 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25540 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25541 + ;;
25542 +
25543 +solaris*)
25544 + version_type=linux
25545 + need_lib_prefix=no
25546 + need_version=no
25547 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25548 + soname_spec='${libname}${release}${shared_ext}$major'
25549 + shlibpath_var=LD_LIBRARY_PATH
25550 + shlibpath_overrides_runpath=yes
25551 + hardcode_into_libs=yes
25552 + # ldd complains unless libraries are executable
25553 + postinstall_cmds='chmod +x $lib'
25554 + ;;
25555 +
25556 +sunos4*)
25557 + version_type=sunos
25558 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25559 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25560 + shlibpath_var=LD_LIBRARY_PATH
25561 + shlibpath_overrides_runpath=yes
25562 + if test "$with_gnu_ld" = yes; then
25563 + need_lib_prefix=no
25564 + fi
25565 + need_version=yes
25566 + ;;
25567 +
25568 +sysv4 | sysv4.3*)
25569 + version_type=linux
25570 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25571 + soname_spec='${libname}${release}${shared_ext}$major'
25572 + shlibpath_var=LD_LIBRARY_PATH
25573 + case $host_vendor in
25574 + sni)
25575 + shlibpath_overrides_runpath=no
25576 + need_lib_prefix=no
25577 + export_dynamic_flag_spec='${wl}-Blargedynsym'
25578 + runpath_var=LD_RUN_PATH
25579 + ;;
25580 + siemens)
25581 + need_lib_prefix=no
25582 + ;;
25583 + motorola)
25584 + need_lib_prefix=no
25585 + need_version=no
25586 + shlibpath_overrides_runpath=no
25587 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25588 + ;;
25589 + esac
25590 + ;;
25591 +
25592 +sysv4*MP*)
25593 + if test -d /usr/nec ;then
25594 + version_type=linux
25595 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25596 + soname_spec='$libname${shared_ext}.$major'
25597 + shlibpath_var=LD_LIBRARY_PATH
25598 + fi
25599 + ;;
25600 +
25601 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25602 + version_type=freebsd-elf
25603 + need_lib_prefix=no
25604 + need_version=no
25605 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25606 + soname_spec='${libname}${release}${shared_ext}$major'
25607 + shlibpath_var=LD_LIBRARY_PATH
25608 + hardcode_into_libs=yes
25609 + if test "$with_gnu_ld" = yes; then
25610 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25611 + shlibpath_overrides_runpath=no
25612 + else
25613 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25614 + shlibpath_overrides_runpath=yes
25615 + case $host_os in
25616 + sco3.2v5*)
25617 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25618 + ;;
25619 + esac
25620 + fi
25621 + sys_lib_dlsearch_path_spec='/usr/lib'
25622 + ;;
25623 +
25624 +uts4*)
25625 + version_type=linux
25626 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627 + soname_spec='${libname}${release}${shared_ext}$major'
25628 + shlibpath_var=LD_LIBRARY_PATH
25629 + ;;
25630 +
25631 +*)
25632 + dynamic_linker=no
25633 + ;;
25634 +esac
25635 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25636 +echo "${ECHO_T}$dynamic_linker" >&6
25637 +test "$dynamic_linker" = no && can_build_shared=no
25638 +
25639 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25640 +if test "$GCC" = yes; then
25641 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25642 +fi
25643 +
25644 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25645 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
25646 +hardcode_action_F77=
25647 +if test -n "$hardcode_libdir_flag_spec_F77" || \
25648 + test -n "$runpath_var_F77" || \
25649 + test "X$hardcode_automatic_F77" = "Xyes" ; then
25650 +
25651 + # We can hardcode non-existant directories.
25652 + if test "$hardcode_direct_F77" != no &&
25653 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
25654 + # have to relink, otherwise we might link with an installed library
25655 + # when we should be linking with a yet-to-be-installed one
25656 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
25657 + test "$hardcode_minus_L_F77" != no; then
25658 + # Linking always hardcodes the temporary library directory.
25659 + hardcode_action_F77=relink
25660 + else
25661 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
25662 + hardcode_action_F77=immediate
25663 + fi
25664 +else
25665 + # We cannot hardcode anything, or else we can only hardcode existing
25666 + # directories.
25667 + hardcode_action_F77=unsupported
25668 +fi
25669 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
25670 +echo "${ECHO_T}$hardcode_action_F77" >&6
25671 +
25672 +if test "$hardcode_action_F77" = relink; then
25673 + # Fast installation is not supported
25674 + enable_fast_install=no
25675 +elif test "$shlibpath_overrides_runpath" = yes ||
25676 + test "$enable_shared" = no; then
25677 + # Fast installation is not necessary
25678 + enable_fast_install=needless
25679 +fi
25680 +
25681 +
25682 +# The else clause should only fire when bootstrapping the
25683 +# libtool distribution, otherwise you forgot to ship ltmain.sh
25684 +# with your package, and you will get complaints that there are
25685 +# no rules to generate ltmain.sh.
25686 +if test -f "$ltmain"; then
25687 + # See if we are running on zsh, and set the options which allow our commands through
25688 + # without removal of \ escapes.
25689 + if test -n "${ZSH_VERSION+set}" ; then
25690 + setopt NO_GLOB_SUBST
25691 + fi
25692 + # Now quote all the things that may contain metacharacters while being
25693 + # careful not to overquote the AC_SUBSTed values. We take copies of the
25694 + # variables and quote the copies for generation of the libtool script.
25695 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25696 + SED SHELL STRIP \
25697 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25698 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25699 + deplibs_check_method reload_flag reload_cmds need_locks \
25700 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25701 + lt_cv_sys_global_symbol_to_c_name_address \
25702 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25703 + old_postinstall_cmds old_postuninstall_cmds \
25704 + compiler_F77 \
25705 + CC_F77 \
25706 + LD_F77 \
25707 + lt_prog_compiler_wl_F77 \
25708 + lt_prog_compiler_pic_F77 \
25709 + lt_prog_compiler_static_F77 \
25710 + lt_prog_compiler_no_builtin_flag_F77 \
25711 + export_dynamic_flag_spec_F77 \
25712 + thread_safe_flag_spec_F77 \
25713 + whole_archive_flag_spec_F77 \
25714 + enable_shared_with_static_runtimes_F77 \
25715 + old_archive_cmds_F77 \
25716 + old_archive_from_new_cmds_F77 \
25717 + predep_objects_F77 \
25718 + postdep_objects_F77 \
25719 + predeps_F77 \
25720 + postdeps_F77 \
25721 + compiler_lib_search_path_F77 \
25722 + archive_cmds_F77 \
25723 + archive_expsym_cmds_F77 \
25724 + postinstall_cmds_F77 \
25725 + postuninstall_cmds_F77 \
25726 + old_archive_from_expsyms_cmds_F77 \
25727 + allow_undefined_flag_F77 \
25728 + no_undefined_flag_F77 \
25729 + export_symbols_cmds_F77 \
25730 + hardcode_libdir_flag_spec_F77 \
25731 + hardcode_libdir_flag_spec_ld_F77 \
25732 + hardcode_libdir_separator_F77 \
25733 + hardcode_automatic_F77 \
25734 + module_cmds_F77 \
25735 + module_expsym_cmds_F77 \
25736 + lt_cv_prog_compiler_c_o_F77 \
25737 + exclude_expsyms_F77 \
25738 + include_expsyms_F77; do
25739 +
25740 + case $var in
25741 + old_archive_cmds_F77 | \
25742 + old_archive_from_new_cmds_F77 | \
25743 + archive_cmds_F77 | \
25744 + archive_expsym_cmds_F77 | \
25745 + module_cmds_F77 | \
25746 + module_expsym_cmds_F77 | \
25747 + old_archive_from_expsyms_cmds_F77 | \
25748 + export_symbols_cmds_F77 | \
25749 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
25750 + postinstall_cmds | postuninstall_cmds | \
25751 + old_postinstall_cmds | old_postuninstall_cmds | \
25752 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25753 + # Double-quote double-evaled strings.
25754 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25755 + ;;
25756 + *)
25757 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25758 + ;;
25759 + esac
25760 + done
25761 +
25762 + case $lt_echo in
25763 + *'\$0 --fallback-echo"')
25764 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25765 + ;;
25766 + esac
25767 +
25768 +cfgfile="$ofile"
25769 +
25770 + cat <<__EOF__ >> "$cfgfile"
25771 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25772 +
25773 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25774 +
25775 +# Shell to use when invoking shell scripts.
25776 +SHELL=$lt_SHELL
25777 +
25778 +# Whether or not to build shared libraries.
25779 +build_libtool_libs=$enable_shared
25780 +
25781 +# Whether or not to build static libraries.
25782 +build_old_libs=$enable_static
25783 +
25784 +# Whether or not to add -lc for building shared libraries.
25785 +build_libtool_need_lc=$archive_cmds_need_lc_F77
25786 +
25787 +# Whether or not to disallow shared libs when runtime libs are static
25788 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
25789 +
25790 +# Whether or not to optimize for fast installation.
25791 +fast_install=$enable_fast_install
25792 +
25793 +# The host system.
25794 +host_alias=$host_alias
25795 +host=$host
25796 +host_os=$host_os
25797 +
25798 +# The build system.
25799 +build_alias=$build_alias
25800 +build=$build
25801 +build_os=$build_os
25802 +
25803 +# An echo program that does not interpret backslashes.
25804 +echo=$lt_echo
25805 +
25806 +# The archiver.
25807 +AR=$lt_AR
25808 +AR_FLAGS=$lt_AR_FLAGS
25809 +
25810 +# A C compiler.
25811 +LTCC=$lt_LTCC
25812 +
25813 +# LTCC compiler flags.
25814 +LTCFLAGS=$lt_LTCFLAGS
25815 +
25816 +# A language-specific compiler.
25817 +CC=$lt_compiler_F77
25818 +
25819 +# Is the compiler the GNU C compiler?
25820 +with_gcc=$GCC_F77
25821 +
25822 +# An ERE matcher.
25823 +EGREP=$lt_EGREP
25824 +
25825 +# The linker used to build libraries.
25826 +LD=$lt_LD_F77
25827 +
25828 +# Whether we need hard or soft links.
25829 +LN_S=$lt_LN_S
25830 +
25831 +# A BSD-compatible nm program.
25832 +NM=$lt_NM
25833 +
25834 +# A symbol stripping program
25835 +STRIP=$lt_STRIP
25836 +
25837 +# Used to examine libraries when file_magic_cmd begins "file"
25838 +MAGIC_CMD=$MAGIC_CMD
25839 +
25840 +# Used on cygwin: DLL creation program.
25841 +DLLTOOL="$DLLTOOL"
25842 +
25843 +# Used on cygwin: object dumper.
25844 +OBJDUMP="$OBJDUMP"
25845 +
25846 +# Used on cygwin: assembler.
25847 +AS="$AS"
25848 +
25849 +# The name of the directory that contains temporary libtool files.
25850 +objdir=$objdir
25851 +
25852 +# How to create reloadable object files.
25853 +reload_flag=$lt_reload_flag
25854 +reload_cmds=$lt_reload_cmds
25855 +
25856 +# How to pass a linker flag through the compiler.
25857 +wl=$lt_lt_prog_compiler_wl_F77
25858 +
25859 +# Object file suffix (normally "o").
25860 +objext="$ac_objext"
25861 +
25862 +# Old archive suffix (normally "a").
25863 +libext="$libext"
25864 +
25865 +# Shared library suffix (normally ".so").
25866 +shrext_cmds='$shrext_cmds'
25867 +
25868 +# Executable file suffix (normally "").
25869 +exeext="$exeext"
25870 +
25871 +# Additional compiler flags for building library objects.
25872 +pic_flag=$lt_lt_prog_compiler_pic_F77
25873 +pic_mode=$pic_mode
25874 +
25875 +# What is the maximum length of a command?
25876 +max_cmd_len=$lt_cv_sys_max_cmd_len
25877 +
25878 +# Does compiler simultaneously support -c and -o options?
25879 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25880 +
25881 +# Must we lock files when doing compilation?
25882 +need_locks=$lt_need_locks
25883 +
25884 +# Do we need the lib prefix for modules?
25885 +need_lib_prefix=$need_lib_prefix
25886 +
25887 +# Do we need a version for libraries?
25888 +need_version=$need_version
25889 +
25890 +# Whether dlopen is supported.
25891 +dlopen_support=$enable_dlopen
25892 +
25893 +# Whether dlopen of programs is supported.
25894 +dlopen_self=$enable_dlopen_self
25895 +
25896 +# Whether dlopen of statically linked programs is supported.
25897 +dlopen_self_static=$enable_dlopen_self_static
25898 +
25899 +# Compiler flag to prevent dynamic linking.
25900 +link_static_flag=$lt_lt_prog_compiler_static_F77
25901 +
25902 +# Compiler flag to turn off builtin functions.
25903 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
25904 +
25905 +# Compiler flag to allow reflexive dlopens.
25906 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
25907 +
25908 +# Compiler flag to generate shared objects directly from archives.
25909 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
25910 +
25911 +# Compiler flag to generate thread-safe objects.
25912 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
25913 +
25914 +# Library versioning type.
25915 +version_type=$version_type
25916 +
25917 +# Format of library name prefix.
25918 +libname_spec=$lt_libname_spec
25919 +
25920 +# List of archive names. First name is the real one, the rest are links.
25921 +# The last name is the one that the linker finds with -lNAME.
25922 +library_names_spec=$lt_library_names_spec
25923 +
25924 +# The coded name of the library, if different from the real name.
25925 +soname_spec=$lt_soname_spec
25926 +
25927 +# Commands used to build and install an old-style archive.
25928 +RANLIB=$lt_RANLIB
25929 +old_archive_cmds=$lt_old_archive_cmds_F77
25930 +old_postinstall_cmds=$lt_old_postinstall_cmds
25931 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
25932 +
25933 +# Create an old-style archive from a shared archive.
25934 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
25935 +
25936 +# Create a temporary old-style archive to link instead of a shared archive.
25937 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
25938 +
25939 +# Commands used to build and install a shared archive.
25940 +archive_cmds=$lt_archive_cmds_F77
25941 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
25942 +postinstall_cmds=$lt_postinstall_cmds
25943 +postuninstall_cmds=$lt_postuninstall_cmds
25944 +
25945 +# Commands used to build a loadable module (assumed same as above if empty)
25946 +module_cmds=$lt_module_cmds_F77
25947 +module_expsym_cmds=$lt_module_expsym_cmds_F77
25948 +
25949 +# Commands to strip libraries.
25950 +old_striplib=$lt_old_striplib
25951 +striplib=$lt_striplib
25952 +
25953 +# Dependencies to place before the objects being linked to create a
25954 +# shared library.
25955 +predep_objects=$lt_predep_objects_F77
25956 +
25957 +# Dependencies to place after the objects being linked to create a
25958 +# shared library.
25959 +postdep_objects=$lt_postdep_objects_F77
25960 +
25961 +# Dependencies to place before the objects being linked to create a
25962 +# shared library.
25963 +predeps=$lt_predeps_F77
25964 +
25965 +# Dependencies to place after the objects being linked to create a
25966 +# shared library.
25967 +postdeps=$lt_postdeps_F77
25968 +
25969 +# The library search path used internally by the compiler when linking
25970 +# a shared library.
25971 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
25972 +
25973 +# Method to check whether dependent libraries are shared objects.
25974 +deplibs_check_method=$lt_deplibs_check_method
25975 +
25976 +# Command to use when deplibs_check_method == file_magic.
25977 +file_magic_cmd=$lt_file_magic_cmd
25978 +
25979 +# Flag that allows shared libraries with undefined symbols to be built.
25980 +allow_undefined_flag=$lt_allow_undefined_flag_F77
25981 +
25982 +# Flag that forces no undefined symbols.
25983 +no_undefined_flag=$lt_no_undefined_flag_F77
25984 +
25985 +# Commands used to finish a libtool library installation in a directory.
25986 +finish_cmds=$lt_finish_cmds
25987 +
25988 +# Same as above, but a single script fragment to be evaled but not shown.
25989 +finish_eval=$lt_finish_eval
25990 +
25991 +# Take the output of nm and produce a listing of raw symbols and C names.
25992 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25993 +
25994 +# Transform the output of nm in a proper C declaration
25995 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25996 +
25997 +# Transform the output of nm in a C name address pair
25998 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25999 +
26000 +# This is the shared library runtime path variable.
26001 +runpath_var=$runpath_var
26002 +
26003 +# This is the shared library path variable.
26004 +shlibpath_var=$shlibpath_var
26005 +
26006 +# Is shlibpath searched before the hard-coded library search path?
26007 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26008 +
26009 +# How to hardcode a shared library path into an executable.
26010 +hardcode_action=$hardcode_action_F77
26011 +
26012 +# Whether we should hardcode library paths into libraries.
26013 +hardcode_into_libs=$hardcode_into_libs
26014 +
26015 +# Flag to hardcode \$libdir into a binary during linking.
26016 +# This must work even if \$libdir does not exist.
26017 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26018 +
26019 +# If ld is used when linking, flag to hardcode \$libdir into
26020 +# a binary during linking. This must work even if \$libdir does
26021 +# not exist.
26022 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26023 +
26024 +# Whether we need a single -rpath flag with a separated argument.
26025 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26026 +
26027 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26028 +# resulting binary.
26029 +hardcode_direct=$hardcode_direct_F77
26030 +
26031 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26032 +# resulting binary.
26033 +hardcode_minus_L=$hardcode_minus_L_F77
26034 +
26035 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26036 +# the resulting binary.
26037 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26038 +
26039 +# Set to yes if building a shared library automatically hardcodes DIR into the library
26040 +# and all subsequent libraries and executables linked against it.
26041 +hardcode_automatic=$hardcode_automatic_F77
26042 +
26043 +# Variables whose values should be saved in libtool wrapper scripts and
26044 +# restored at relink time.
26045 +variables_saved_for_relink="$variables_saved_for_relink"
26046 +
26047 +# Whether libtool must link a program against all its dependency libraries.
26048 +link_all_deplibs=$link_all_deplibs_F77
26049 +
26050 +# Compile-time system search path for libraries
26051 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26052 +
26053 +# Run-time system search path for libraries
26054 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26055 +
26056 +# Fix the shell variable \$srcfile for the compiler.
26057 +fix_srcfile_path="$fix_srcfile_path_F77"
26058 +
26059 +# Set to yes if exported symbols are required.
26060 +always_export_symbols=$always_export_symbols_F77
26061 +
26062 +# The commands to list exported symbols.
26063 +export_symbols_cmds=$lt_export_symbols_cmds_F77
26064 +
26065 +# The commands to extract the exported symbol list from a shared archive.
26066 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
26067 +
26068 +# Symbols that should not be listed in the preloaded symbols.
26069 +exclude_expsyms=$lt_exclude_expsyms_F77
26070 +
26071 +# Symbols that must always be exported.
26072 +include_expsyms=$lt_include_expsyms_F77
26073 +
26074 +# ### END LIBTOOL TAG CONFIG: $tagname
26075 +
26076 +__EOF__
26077 +
26078 +
26079 +else
26080 + # If there is no Makefile yet, we rely on a make rule to execute
26081 + # `config.status --recheck' to rerun these tests and create the
26082 + # libtool script then.
26083 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26084 + if test -f "$ltmain_in"; then
26085 + test -f Makefile && make "$ltmain"
26086 + fi
26087 +fi
26088 +
26089 +
26090 +ac_ext=c
26091 +ac_cpp='$CPP $CPPFLAGS'
26092 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
26095 +
26096 +CC="$lt_save_CC"
26097 +
26098 + else
26099 + tagname=""
26100 + fi
26101 + ;;
26102 +
26103 + GCJ)
26104 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26105 +
26106 +
26107 +
26108 +# Source file extension for Java test sources.
26109 +ac_ext=java
26110 +
26111 +# Object file extension for compiled Java test sources.
26112 +objext=o
26113 +objext_GCJ=$objext
26114 +
26115 +# Code to be used in simple compile tests
26116 +lt_simple_compile_test_code="class foo {}\n"
26117 +
26118 +# Code to be used in simple link tests
26119 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26120 +
26121 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26122 +
26123 +# If no C compiler was specified, use CC.
26124 +LTCC=${LTCC-"$CC"}
26125 +
26126 +# If no C compiler flags were specified, use CFLAGS.
26127 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26128 +
26129 +# Allow CC to be a program name with arguments.
26130 +compiler=$CC
26131 +
26132 +
26133 +# save warnings/boilerplate of simple test code
26134 +ac_outfile=conftest.$ac_objext
26135 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26136 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26137 +_lt_compiler_boilerplate=`cat conftest.err`
26138 +$rm conftest*
26139 +
26140 +ac_outfile=conftest.$ac_objext
26141 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
26142 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26143 +_lt_linker_boilerplate=`cat conftest.err`
26144 +$rm conftest*
26145 +
26146 +
26147 +# Allow CC to be a program name with arguments.
26148 +lt_save_CC="$CC"
26149 +CC=${GCJ-"gcj"}
26150 +compiler=$CC
26151 +compiler_GCJ=$CC
26152 +for cc_temp in $compiler""; do
26153 + case $cc_temp in
26154 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26155 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26156 + \-*) ;;
26157 + *) break;;
26158 + esac
26159 +done
26160 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26161 +
26162 +
26163 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
26164 +archive_cmds_need_lc_GCJ=no
26165 +
26166 +old_archive_cmds_GCJ=$old_archive_cmds
26167 +
26168 +
26169 +lt_prog_compiler_no_builtin_flag_GCJ=
26170 +
26171 +if test "$GCC" = yes; then
26172 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26173 +
26174 +
26175 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26176 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26177 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26178 + echo $ECHO_N "(cached) $ECHO_C" >&6
26179 +else
26180 + lt_cv_prog_compiler_rtti_exceptions=no
26181 + ac_outfile=conftest.$ac_objext
26182 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26183 + lt_compiler_flag="-fno-rtti -fno-exceptions"
26184 + # Insert the option either (1) after the last *FLAGS variable, or
26185 + # (2) before a word containing "conftest.", or (3) at the end.
26186 + # Note that $ac_compile itself does not contain backslashes and begins
26187 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26188 + # The option is referenced via a variable to avoid confusing sed.
26189 + lt_compile=`echo "$ac_compile" | $SED \
26190 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26191 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26192 + -e 's:$: $lt_compiler_flag:'`
26193 + (eval echo "\"\$as_me:15649: $lt_compile\"" >&5)
26194 + (eval "$lt_compile" 2>conftest.err)
26195 + ac_status=$?
26196 + cat conftest.err >&5
26197 + echo "$as_me:15653: \$? = $ac_status" >&5
26198 + if (exit $ac_status) && test -s "$ac_outfile"; then
26199 + # The compiler can only warn and ignore the option if not recognized
26200 + # So say no if there are warnings other than the usual output.
26201 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
26202 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26203 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
26204 + lt_cv_prog_compiler_rtti_exceptions=yes
26205 + fi
26206 + fi
26207 + $rm conftest*
26208 +
26209 +fi
26210 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26211 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26212 +
26213 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26214 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26215 +else
26216 + :
26217 +fi
26218 +
26219 +fi
26220 +
26221 +lt_prog_compiler_wl_GCJ=
26222 +lt_prog_compiler_pic_GCJ=
26223 +lt_prog_compiler_static_GCJ=
26224 +
26225 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26226 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26227 +
26228 + if test "$GCC" = yes; then
26229 + lt_prog_compiler_wl_GCJ='-Wl,'
26230 + lt_prog_compiler_static_GCJ='-static'
26231 +
26232 + case $host_os in
26233 + aix*)
26234 + # All AIX code is PIC.
26235 + if test "$host_cpu" = ia64; then
26236 + # AIX 5 now supports IA64 processor
26237 + lt_prog_compiler_static_GCJ='-Bstatic'
26238 + fi
26239 + ;;
26240 +
26241 + amigaos*)
26242 + # FIXME: we need at least 68020 code to build shared libraries, but
26243 + # adding the `-m68020' flag to GCC prevents building anything better,
26244 + # like `-m68040'.
26245 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26246 + ;;
26247 +
26248 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26249 + # PIC is the default for these OSes.
26250 + ;;
26251 +
26252 + mingw* | pw32* | os2*)
26253 + # This hack is so that the source file can tell whether it is being
26254 + # built for inclusion in a dll (and should export symbols for example).
26255 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26256 + ;;
26257 +
26258 + darwin* | rhapsody*)
26259 + # PIC is the default on this platform
26260 + # Common symbols not allowed in MH_DYLIB files
26261 + lt_prog_compiler_pic_GCJ='-fno-common'
26262 + ;;
26263 +
26264 + interix3*)
26265 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
26266 + # Instead, we relocate shared libraries at runtime.
26267 + ;;
26268 +
26269 + msdosdjgpp*)
26270 + # Just because we use GCC doesn't mean we suddenly get shared libraries
26271 + # on systems that don't support them.
26272 + lt_prog_compiler_can_build_shared_GCJ=no
26273 + enable_shared=no
26274 + ;;
26275 +
26276 + sysv4*MP*)
26277 + if test -d /usr/nec; then
26278 + lt_prog_compiler_pic_GCJ=-Kconform_pic
26279 + fi
26280 + ;;
26281 +
26282 + hpux*)
26283 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26284 + # not for PA HP-UX.
26285 + case $host_cpu in
26286 + hppa*64*|ia64*)
26287 + # +Z the default
26288 + ;;
26289 + *)
26290 + lt_prog_compiler_pic_GCJ='-fPIC'
26291 + ;;
26292 + esac
26293 + ;;
26294 +
26295 + *)
26296 + lt_prog_compiler_pic_GCJ='-fPIC'
26297 + ;;
26298 + esac
26299 + else
26300 + # PORTME Check for flag to pass linker flags through the system compiler.
26301 + case $host_os in
26302 + aix*)
26303 + lt_prog_compiler_wl_GCJ='-Wl,'
26304 + if test "$host_cpu" = ia64; then
26305 + # AIX 5 now supports IA64 processor
26306 + lt_prog_compiler_static_GCJ='-Bstatic'
26307 + else
26308 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26309 + fi
26310 + ;;
26311 + darwin*)
26312 + # PIC is the default on this platform
26313 + # Common symbols not allowed in MH_DYLIB files
26314 + case $cc_basename in
26315 + xlc*)
26316 + lt_prog_compiler_pic_GCJ='-qnocommon'
26317 + lt_prog_compiler_wl_GCJ='-Wl,'
26318 + ;;
26319 + esac
26320 + ;;
26321 +
26322 + mingw* | pw32* | os2*)
26323 + # This hack is so that the source file can tell whether it is being
26324 + # built for inclusion in a dll (and should export symbols for example).
26325 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26326 + ;;
26327 +
26328 + hpux9* | hpux10* | hpux11*)
26329 + lt_prog_compiler_wl_GCJ='-Wl,'
26330 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26331 + # not for PA HP-UX.
26332 + case $host_cpu in
26333 + hppa*64*|ia64*)
26334 + # +Z the default
26335 + ;;
26336 + *)
26337 + lt_prog_compiler_pic_GCJ='+Z'
26338 + ;;
26339 + esac
26340 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
26341 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26342 + ;;
26343 +
26344 + irix5* | irix6* | nonstopux*)
26345 + lt_prog_compiler_wl_GCJ='-Wl,'
26346 + # PIC (with -KPIC) is the default.
26347 + lt_prog_compiler_static_GCJ='-non_shared'
26348 + ;;
26349 +
26350 + newsos6)
26351 + lt_prog_compiler_pic_GCJ='-KPIC'
26352 + lt_prog_compiler_static_GCJ='-Bstatic'
26353 + ;;
26354 +
26355 + linux*)
26356 + case $cc_basename in
26357 + icc* | ecc*)
26358 + lt_prog_compiler_wl_GCJ='-Wl,'
26359 + lt_prog_compiler_pic_GCJ='-KPIC'
26360 + lt_prog_compiler_static_GCJ='-static'
26361 + ;;
26362 + pgcc* | pgf77* | pgf90* | pgf95*)
26363 + # Portland Group compilers (*not* the Pentium gcc compiler,
26364 + # which looks to be a dead project)
26365 + lt_prog_compiler_wl_GCJ='-Wl,'
26366 + lt_prog_compiler_pic_GCJ='-fpic'
26367 + lt_prog_compiler_static_GCJ='-Bstatic'
26368 + ;;
26369 + ccc*)
26370 + lt_prog_compiler_wl_GCJ='-Wl,'
26371 + # All Alpha code is PIC.
26372 + lt_prog_compiler_static_GCJ='-non_shared'
26373 + ;;
26374 + esac
26375 + ;;
26376 +
26377 + osf3* | osf4* | osf5*)
26378 + lt_prog_compiler_wl_GCJ='-Wl,'
26379 + # All OSF/1 code is PIC.
26380 + lt_prog_compiler_static_GCJ='-non_shared'
26381 + ;;
26382 +
26383 + solaris*)
26384 + lt_prog_compiler_pic_GCJ='-KPIC'
26385 + lt_prog_compiler_static_GCJ='-Bstatic'
26386 + case $cc_basename in
26387 + f77* | f90* | f95*)
26388 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
26389 + *)
26390 + lt_prog_compiler_wl_GCJ='-Wl,';;
26391 + esac
26392 + ;;
26393 +
26394 + sunos4*)
26395 + lt_prog_compiler_wl_GCJ='-Qoption ld '
26396 + lt_prog_compiler_pic_GCJ='-PIC'
26397 + lt_prog_compiler_static_GCJ='-Bstatic'
26398 + ;;
26399 +
26400 + sysv4 | sysv4.2uw2* | sysv4.3*)
26401 + lt_prog_compiler_wl_GCJ='-Wl,'
26402 + lt_prog_compiler_pic_GCJ='-KPIC'
26403 + lt_prog_compiler_static_GCJ='-Bstatic'
26404 + ;;
26405 +
26406 + sysv4*MP*)
26407 + if test -d /usr/nec ;then
26408 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
26409 + lt_prog_compiler_static_GCJ='-Bstatic'
26410 + fi
26411 + ;;
26412 +
26413 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
26414 + lt_prog_compiler_wl_GCJ='-Wl,'
26415 + lt_prog_compiler_pic_GCJ='-KPIC'
26416 + lt_prog_compiler_static_GCJ='-Bstatic'
26417 + ;;
26418 +
26419 + unicos*)
26420 + lt_prog_compiler_wl_GCJ='-Wl,'
26421 + lt_prog_compiler_can_build_shared_GCJ=no
26422 + ;;
26423 +
26424 + uts4*)
26425 + lt_prog_compiler_pic_GCJ='-pic'
26426 + lt_prog_compiler_static_GCJ='-Bstatic'
26427 + ;;
26428 +
26429 + *)
26430 + lt_prog_compiler_can_build_shared_GCJ=no
26431 + ;;
26432 + esac
26433 + fi
26434 +
26435 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
26436 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
26437 +
26438 +#
26439 +# Check to make sure the PIC flag actually works.
26440 +#
26441 +if test -n "$lt_prog_compiler_pic_GCJ"; then
26442 +
26443 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
26444 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
26445 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
26446 + echo $ECHO_N "(cached) $ECHO_C" >&6
26447 +else
26448 + lt_prog_compiler_pic_works_GCJ=no
26449 + ac_outfile=conftest.$ac_objext
26450 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26451 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
26452 + # Insert the option either (1) after the last *FLAGS variable, or
26453 + # (2) before a word containing "conftest.", or (3) at the end.
26454 + # Note that $ac_compile itself does not contain backslashes and begins
26455 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26456 + # The option is referenced via a variable to avoid confusing sed.
26457 + lt_compile=`echo "$ac_compile" | $SED \
26458 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26459 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26460 + -e 's:$: $lt_compiler_flag:'`
26461 + (eval echo "\"\$as_me:15917: $lt_compile\"" >&5)
26462 + (eval "$lt_compile" 2>conftest.err)
26463 + ac_status=$?
26464 + cat conftest.err >&5
26465 + echo "$as_me:15921: \$? = $ac_status" >&5
26466 + if (exit $ac_status) && test -s "$ac_outfile"; then
26467 + # The compiler can only warn and ignore the option if not recognized
26468 + # So say no if there are warnings other than the usual output.
26469 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
26470 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26471 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
26472 + lt_prog_compiler_pic_works_GCJ=yes
26473 + fi
26474 + fi
26475 + $rm conftest*
26476 +
26477 +fi
26478 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
26479 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
26480 +
26481 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
26482 + case $lt_prog_compiler_pic_GCJ in
26483 + "" | " "*) ;;
26484 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
26485 + esac
26486 +else
26487 + lt_prog_compiler_pic_GCJ=
26488 + lt_prog_compiler_can_build_shared_GCJ=no
26489 +fi
26490 +
26491 +fi
26492 +case $host_os in
26493 + # For platforms which do not support PIC, -DPIC is meaningless:
26494 + *djgpp*)
26495 + lt_prog_compiler_pic_GCJ=
26496 + ;;
26497 + *)
26498 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
26499 + ;;
26500 +esac
26501 +
26502 +#
26503 +# Check to make sure the static flag actually works.
26504 +#
26505 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
26506 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
26507 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
26508 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
26509 + echo $ECHO_N "(cached) $ECHO_C" >&6
26510 +else
26511 + lt_prog_compiler_static_works_GCJ=no
26512 + save_LDFLAGS="$LDFLAGS"
26513 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
26514 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
26515 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
26516 + # The linker can only warn and ignore the option if not recognized
26517 + # So say no if there are warnings
26518 + if test -s conftest.err; then
26519 + # Append any errors to the config.log.
26520 + cat conftest.err 1>&5
26521 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
26522 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26523 + if diff conftest.exp conftest.er2 >/dev/null; then
26524 + lt_prog_compiler_static_works_GCJ=yes
26525 + fi
26526 + else
26527 + lt_prog_compiler_static_works_GCJ=yes
26528 + fi
26529 + fi
26530 + $rm conftest*
26531 + LDFLAGS="$save_LDFLAGS"
26532 +
26533 +fi
26534 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
26535 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
26536 +
26537 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
26538 + :
26539 +else
26540 + lt_prog_compiler_static_GCJ=
26541 +fi
26542 +
26543 +
26544 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
26545 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
26546 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
26547 + echo $ECHO_N "(cached) $ECHO_C" >&6
26548 +else
26549 + lt_cv_prog_compiler_c_o_GCJ=no
26550 + $rm -r conftest 2>/dev/null
26551 + mkdir conftest
26552 + cd conftest
26553 + mkdir out
26554 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26555 +
26556 + lt_compiler_flag="-o out/conftest2.$ac_objext"
26557 + # Insert the option either (1) after the last *FLAGS variable, or
26558 + # (2) before a word containing "conftest.", or (3) at the end.
26559 + # Note that $ac_compile itself does not contain backslashes and begins
26560 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26561 + lt_compile=`echo "$ac_compile" | $SED \
26562 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26563 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26564 + -e 's:$: $lt_compiler_flag:'`
26565 + (eval echo "\"\$as_me:16021: $lt_compile\"" >&5)
26566 + (eval "$lt_compile" 2>out/conftest.err)
26567 + ac_status=$?
26568 + cat out/conftest.err >&5
26569 + echo "$as_me:16025: \$? = $ac_status" >&5
26570 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
26571 + then
26572 + # The compiler can only warn and ignore the option if not recognized
26573 + # So say no if there are warnings
26574 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
26575 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
26576 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
26577 + lt_cv_prog_compiler_c_o_GCJ=yes
26578 + fi
26579 + fi
26580 + chmod u+w . 2>&5
26581 + $rm conftest*
26582 + # SGI C++ compiler will create directory out/ii_files/ for
26583 + # template instantiation
26584 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
26585 + $rm out/* && rmdir out
26586 + cd ..
26587 + rmdir conftest
26588 + $rm conftest*
26589 +
26590 +fi
26591 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
26592 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
26593 +
26594 +
26595 +hard_links="nottested"
26596 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
26597 + # do not overwrite the value of need_locks provided by the user
26598 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
26599 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
26600 + hard_links=yes
26601 + $rm conftest*
26602 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26603 + touch conftest.a
26604 + ln conftest.a conftest.b 2>&5 || hard_links=no
26605 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26606 + echo "$as_me:$LINENO: result: $hard_links" >&5
26607 +echo "${ECHO_T}$hard_links" >&6
26608 + if test "$hard_links" = no; then
26609 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
26610 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
26611 + need_locks=warn
26612 + fi
26613 +else
26614 + need_locks=no
26615 +fi
26616 +
26617 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
26618 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
26619 +
26620 + runpath_var=
26621 + allow_undefined_flag_GCJ=
26622 + enable_shared_with_static_runtimes_GCJ=no
26623 + archive_cmds_GCJ=
26624 + archive_expsym_cmds_GCJ=
26625 + old_archive_From_new_cmds_GCJ=
26626 + old_archive_from_expsyms_cmds_GCJ=
26627 + export_dynamic_flag_spec_GCJ=
26628 + whole_archive_flag_spec_GCJ=
26629 + thread_safe_flag_spec_GCJ=
26630 + hardcode_libdir_flag_spec_GCJ=
26631 + hardcode_libdir_flag_spec_ld_GCJ=
26632 + hardcode_libdir_separator_GCJ=
26633 + hardcode_direct_GCJ=no
26634 + hardcode_minus_L_GCJ=no
26635 + hardcode_shlibpath_var_GCJ=unsupported
26636 + link_all_deplibs_GCJ=unknown
26637 + hardcode_automatic_GCJ=no
26638 + module_cmds_GCJ=
26639 + module_expsym_cmds_GCJ=
26640 + always_export_symbols_GCJ=no
26641 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26642 + # include_expsyms should be a list of space-separated symbols to be *always*
26643 + # included in the symbol list
26644 + include_expsyms_GCJ=
26645 + # exclude_expsyms can be an extended regexp of symbols to exclude
26646 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
26647 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
26648 + # as well as any symbol that contains `d'.
26649 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
26650 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
26651 + # platforms (ab)use it in PIC code, but their linkers get confused if
26652 + # the symbol is explicitly referenced. Since portable code cannot
26653 + # rely on this symbol name, it's probably fine to never include it in
26654 + # preloaded symbol tables.
26655 + extract_expsyms_cmds=
26656 + # Just being paranoid about ensuring that cc_basename is set.
26657 + for cc_temp in $compiler""; do
26658 + case $cc_temp in
26659 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26661 + \-*) ;;
26662 + *) break;;
26663 + esac
26664 +done
26665 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26666 +
26667 + case $host_os in
26668 + cygwin* | mingw* | pw32*)
26669 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
26670 + # When not using gcc, we currently assume that we are using
26671 + # Microsoft Visual C++.
26672 + if test "$GCC" != yes; then
26673 + with_gnu_ld=no
26674 + fi
26675 + ;;
26676 + interix*)
26677 + # we just hope/assume this is gcc and not c89 (= MSVC++)
26678 + with_gnu_ld=yes
26679 + ;;
26680 + openbsd*)
26681 + with_gnu_ld=no
26682 + ;;
26683 + esac
26684 +
26685 + ld_shlibs_GCJ=yes
26686 + if test "$with_gnu_ld" = yes; then
26687 + # If archive_cmds runs LD, not CC, wlarc should be empty
26688 + wlarc='${wl}'
26689 +
26690 + # Set some defaults for GNU ld with shared library support. These
26691 + # are reset later if shared libraries are not supported. Putting them
26692 + # here allows them to be overridden if necessary.
26693 + runpath_var=LD_RUN_PATH
26694 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
26695 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
26696 + # ancient GNU ld didn't support --whole-archive et. al.
26697 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
26698 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
26699 + else
26700 + whole_archive_flag_spec_GCJ=
26701 + fi
26702 + supports_anon_versioning=no
26703 + case `$LD -v 2>/dev/null` in
26704 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
26705 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
26706 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
26707 + *\ 2.11.*) ;; # other 2.11 versions
26708 + *) supports_anon_versioning=yes ;;
26709 + esac
26710 +
26711 + # See if GNU ld supports shared libraries.
26712 + case $host_os in
26713 + aix3* | aix4* | aix5*)
26714 + # On AIX/PPC, the GNU linker is very broken
26715 + if test "$host_cpu" != ia64; then
26716 + ld_shlibs_GCJ=no
26717 + cat <<EOF 1>&2
26718 +
26719 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
26720 +*** to be unable to reliably create shared libraries on AIX.
26721 +*** Therefore, libtool is disabling shared libraries support. If you
26722 +*** really care for shared libraries, you may want to modify your PATH
26723 +*** so that a non-GNU linker is found, and then restart.
26724 +
26725 +EOF
26726 + fi
26727 + ;;
26728 +
26729 + amigaos*)
26730 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
26731 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26732 + hardcode_minus_L_GCJ=yes
26733 +
26734 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
26735 + # that the semantics of dynamic libraries on AmigaOS, at least up
26736 + # to version 4, is to share data among multiple programs linked
26737 + # with the same dynamic library. Since this doesn't match the
26738 + # behavior of shared libraries on other platforms, we can't use
26739 + # them.
26740 + ld_shlibs_GCJ=no
26741 + ;;
26742 +
26743 + beos*)
26744 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26745 + allow_undefined_flag_GCJ=unsupported
26746 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
26747 + # support --undefined. This deserves some investigation. FIXME
26748 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26749 + else
26750 + ld_shlibs_GCJ=no
26751 + fi
26752 + ;;
26753 +
26754 + cygwin* | mingw* | pw32*)
26755 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
26756 + # as there is no search path for DLLs.
26757 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26758 + allow_undefined_flag_GCJ=unsupported
26759 + always_export_symbols_GCJ=no
26760 + enable_shared_with_static_runtimes_GCJ=yes
26761 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
26762 +
26763 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
26764 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
26765 + # If the export-symbols file already is a .def file (1st line
26766 + # is EXPORTS), use it as is; otherwise, prepend...
26767 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26768 + cp $export_symbols $output_objdir/$soname.def;
26769 + else
26770 + echo EXPORTS > $output_objdir/$soname.def;
26771 + cat $export_symbols >> $output_objdir/$soname.def;
26772 + fi~
26773 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
26774 + else
26775 + ld_shlibs_GCJ=no
26776 + fi
26777 + ;;
26778 +
26779 + interix3*)
26780 + hardcode_direct_GCJ=no
26781 + hardcode_shlibpath_var_GCJ=no
26782 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26783 + export_dynamic_flag_spec_GCJ='${wl}-E'
26784 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
26785 + # Instead, shared libraries are loaded at an image base (0x10000000 by
26786 + # default) and relocated if they conflict, which is a slow very memory
26787 + # consuming and fragmenting process. To avoid this, we pick a random,
26788 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
26789 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
26790 + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26791 + archive_expsym_cmds_GCJ='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'
26792 + ;;
26793 +
26794 + linux*)
26795 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26796 + tmp_addflag=
26797 + case $cc_basename,$host_cpu in
26798 + pgcc*) # Portland Group C compiler
26799 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
26800 + tmp_addflag=' $pic_flag'
26801 + ;;
26802 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
26803 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
26804 + tmp_addflag=' $pic_flag -Mnomain' ;;
26805 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
26806 + tmp_addflag=' -i_dynamic' ;;
26807 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
26808 + tmp_addflag=' -i_dynamic -nofor_main' ;;
26809 + ifc* | ifort*) # Intel Fortran compiler
26810 + tmp_addflag=' -nofor_main' ;;
26811 + esac
26812 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26813 +
26814 + if test $supports_anon_versioning = yes; then
26815 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
26816 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26817 + $echo "local: *; };" >> $output_objdir/$libname.ver~
26818 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26819 + fi
26820 + else
26821 + ld_shlibs_GCJ=no
26822 + fi
26823 + ;;
26824 +
26825 + netbsd*)
26826 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26827 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26828 + wlarc=
26829 + else
26830 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26831 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26832 + fi
26833 + ;;
26834 +
26835 + solaris*)
26836 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
26837 + ld_shlibs_GCJ=no
26838 + cat <<EOF 1>&2
26839 +
26840 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
26841 +*** create shared libraries on Solaris systems. Therefore, libtool
26842 +*** is disabling shared libraries support. We urge you to upgrade GNU
26843 +*** binutils to release 2.9.1 or newer. Another option is to modify
26844 +*** your PATH or compiler configuration so that the native linker is
26845 +*** used, and then restart.
26846 +
26847 +EOF
26848 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26849 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26850 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26851 + else
26852 + ld_shlibs_GCJ=no
26853 + fi
26854 + ;;
26855 +
26856 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
26857 + case `$LD -v 2>&1` in
26858 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
26859 + ld_shlibs_GCJ=no
26860 + cat <<_LT_EOF 1>&2
26861 +
26862 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
26863 +*** reliably create shared libraries on SCO systems. Therefore, libtool
26864 +*** is disabling shared libraries support. We urge you to upgrade GNU
26865 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
26866 +*** your PATH or compiler configuration so that the native linker is
26867 +*** used, and then restart.
26868 +
26869 +_LT_EOF
26870 + ;;
26871 + *)
26872 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26873 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
26874 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
26875 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
26876 + else
26877 + ld_shlibs_GCJ=no
26878 + fi
26879 + ;;
26880 + esac
26881 + ;;
26882 +
26883 + sunos4*)
26884 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26885 + wlarc=
26886 + hardcode_direct_GCJ=yes
26887 + hardcode_shlibpath_var_GCJ=no
26888 + ;;
26889 +
26890 + *)
26891 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26892 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26893 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26894 + else
26895 + ld_shlibs_GCJ=no
26896 + fi
26897 + ;;
26898 + esac
26899 +
26900 + if test "$ld_shlibs_GCJ" = no; then
26901 + runpath_var=
26902 + hardcode_libdir_flag_spec_GCJ=
26903 + export_dynamic_flag_spec_GCJ=
26904 + whole_archive_flag_spec_GCJ=
26905 + fi
26906 + else
26907 + # PORTME fill in a description of your system's linker (not GNU ld)
26908 + case $host_os in
26909 + aix3*)
26910 + allow_undefined_flag_GCJ=unsupported
26911 + always_export_symbols_GCJ=yes
26912 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
26913 + # Note: this linker hardcodes the directories in LIBPATH if there
26914 + # are no directories specified by -L.
26915 + hardcode_minus_L_GCJ=yes
26916 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
26917 + # Neither direct hardcoding nor static linking is supported with a
26918 + # broken collect2.
26919 + hardcode_direct_GCJ=unsupported
26920 + fi
26921 + ;;
26922 +
26923 + aix4* | aix5*)
26924 + if test "$host_cpu" = ia64; then
26925 + # On IA64, the linker does run time linking by default, so we don't
26926 + # have to do anything special.
26927 + aix_use_runtimelinking=no
26928 + exp_sym_flag='-Bexport'
26929 + no_entry_flag=""
26930 + else
26931 + # If we're using GNU nm, then we don't want the "-C" option.
26932 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
26933 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26934 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26935 + else
26936 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26937 + fi
26938 + aix_use_runtimelinking=no
26939 +
26940 + # Test if we are trying to use run time linking or normal
26941 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26942 + # need to do runtime linking.
26943 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26944 + for ld_flag in $LDFLAGS; do
26945 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26946 + aix_use_runtimelinking=yes
26947 + break
26948 + fi
26949 + done
26950 + ;;
26951 + esac
26952 +
26953 + exp_sym_flag='-bexport'
26954 + no_entry_flag='-bnoentry'
26955 + fi
26956 +
26957 + # When large executables or shared objects are built, AIX ld can
26958 + # have problems creating the table of contents. If linking a library
26959 + # or program results in "error TOC overflow" add -mminimal-toc to
26960 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
26961 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26962 +
26963 + archive_cmds_GCJ=''
26964 + hardcode_direct_GCJ=yes
26965 + hardcode_libdir_separator_GCJ=':'
26966 + link_all_deplibs_GCJ=yes
26967 +
26968 + if test "$GCC" = yes; then
26969 + case $host_os in aix4.[012]|aix4.[012].*)
26970 + # We only want to do this on AIX 4.2 and lower, the check
26971 + # below for broken collect2 doesn't work under 4.3+
26972 + collect2name=`${CC} -print-prog-name=collect2`
26973 + if test -f "$collect2name" && \
26974 + strings "$collect2name" | grep resolve_lib_name >/dev/null
26975 + then
26976 + # We have reworked collect2
26977 + hardcode_direct_GCJ=yes
26978 + else
26979 + # We have old collect2
26980 + hardcode_direct_GCJ=unsupported
26981 + # It fails to find uninstalled libraries when the uninstalled
26982 + # path is not listed in the libpath. Setting hardcode_minus_L
26983 + # to unsupported forces relinking
26984 + hardcode_minus_L_GCJ=yes
26985 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26986 + hardcode_libdir_separator_GCJ=
26987 + fi
26988 + ;;
26989 + esac
26990 + shared_flag='-shared'
26991 + if test "$aix_use_runtimelinking" = yes; then
26992 + shared_flag="$shared_flag "'${wl}-G'
26993 + fi
26994 + else
26995 + # not using gcc
26996 + if test "$host_cpu" = ia64; then
26997 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26998 + # chokes on -Wl,-G. The following line is correct:
26999 + shared_flag='-G'
27000 + else
27001 + if test "$aix_use_runtimelinking" = yes; then
27002 + shared_flag='${wl}-G'
27003 + else
27004 + shared_flag='${wl}-bM:SRE'
27005 + fi
27006 + fi
27007 + fi
27008 +
27009 + # It seems that -bexpall does not export symbols beginning with
27010 + # underscore (_), so it is better to generate a list of symbols to export.
27011 + always_export_symbols_GCJ=yes
27012 + if test "$aix_use_runtimelinking" = yes; then
27013 + # Warning - without using the other runtime loading flags (-brtl),
27014 + # -berok will link without error, but may produce a broken library.
27015 + allow_undefined_flag_GCJ='-berok'
27016 + # Determine the default libpath from the value encoded in an empty executable.
27017 + cat >conftest.$ac_ext <<_ACEOF
27018 +/* confdefs.h. */
27019 +_ACEOF
27020 +cat confdefs.h >>conftest.$ac_ext
27021 +cat >>conftest.$ac_ext <<_ACEOF
27022 +/* end confdefs.h. */
27023 +
27024 +int
27025 +main ()
27026 +{
27027 +
27028 + ;
27029 + return 0;
27030 +}
27031 +_ACEOF
27032 +rm -f conftest.$ac_objext conftest$ac_exeext
27033 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 + (eval $ac_link) 2>conftest.er1
27035 + ac_status=$?
27036 + grep -v '^ *+' conftest.er1 >conftest.err
27037 + rm -f conftest.er1
27038 + cat conftest.err >&5
27039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 + (exit $ac_status); } &&
27041 + { ac_try='test -z "$ac_c_werror_flag"
27042 + || test ! -s conftest.err'
27043 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 + (eval $ac_try) 2>&5
27045 + ac_status=$?
27046 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 + (exit $ac_status); }; } &&
27048 + { ac_try='test -s conftest$ac_exeext'
27049 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050 + (eval $ac_try) 2>&5
27051 + ac_status=$?
27052 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 + (exit $ac_status); }; }; then
27054 +
27055 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27056 +}'`
27057 +# Check for a 64-bit object if we didn't find anything.
27058 +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; }
27059 +}'`; fi
27060 +else
27061 + echo "$as_me: failed program was:" >&5
27062 +sed 's/^/| /' conftest.$ac_ext >&5
27063 +
27064 +fi
27065 +rm -f conftest.err conftest.$ac_objext \
27066 + conftest$ac_exeext conftest.$ac_ext
27067 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27068 +
27069 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27070 + archive_expsym_cmds_GCJ="\$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"
27071 + else
27072 + if test "$host_cpu" = ia64; then
27073 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27074 + allow_undefined_flag_GCJ="-z nodefs"
27075 + archive_expsym_cmds_GCJ="\$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"
27076 + else
27077 + # Determine the default libpath from the value encoded in an empty executable.
27078 + cat >conftest.$ac_ext <<_ACEOF
27079 +/* confdefs.h. */
27080 +_ACEOF
27081 +cat confdefs.h >>conftest.$ac_ext
27082 +cat >>conftest.$ac_ext <<_ACEOF
27083 +/* end confdefs.h. */
27084 +
27085 +int
27086 +main ()
27087 +{
27088 +
27089 + ;
27090 + return 0;
27091 +}
27092 +_ACEOF
27093 +rm -f conftest.$ac_objext conftest$ac_exeext
27094 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27095 + (eval $ac_link) 2>conftest.er1
27096 + ac_status=$?
27097 + grep -v '^ *+' conftest.er1 >conftest.err
27098 + rm -f conftest.er1
27099 + cat conftest.err >&5
27100 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 + (exit $ac_status); } &&
27102 + { ac_try='test -z "$ac_c_werror_flag"
27103 + || test ! -s conftest.err'
27104 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 + (eval $ac_try) 2>&5
27106 + ac_status=$?
27107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 + (exit $ac_status); }; } &&
27109 + { ac_try='test -s conftest$ac_exeext'
27110 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 + (eval $ac_try) 2>&5
27112 + ac_status=$?
27113 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 + (exit $ac_status); }; }; then
27115 +
27116 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27117 +}'`
27118 +# Check for a 64-bit object if we didn't find anything.
27119 +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; }
27120 +}'`; fi
27121 +else
27122 + echo "$as_me: failed program was:" >&5
27123 +sed 's/^/| /' conftest.$ac_ext >&5
27124 +
27125 +fi
27126 +rm -f conftest.err conftest.$ac_objext \
27127 + conftest$ac_exeext conftest.$ac_ext
27128 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27129 +
27130 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27131 + # Warning - without using the other run time loading flags,
27132 + # -berok will link without error, but may produce a broken library.
27133 + no_undefined_flag_GCJ=' ${wl}-bernotok'
27134 + allow_undefined_flag_GCJ=' ${wl}-berok'
27135 + # Exported symbols can be pulled into shared objects from archives
27136 + whole_archive_flag_spec_GCJ='$convenience'
27137 + archive_cmds_need_lc_GCJ=yes
27138 + # This is similar to how AIX traditionally builds its shared libraries.
27139 + archive_expsym_cmds_GCJ="\$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'
27140 + fi
27141 + fi
27142 + ;;
27143 +
27144 + amigaos*)
27145 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
27146 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27147 + hardcode_minus_L_GCJ=yes
27148 + # see comment about different semantics on the GNU ld section
27149 + ld_shlibs_GCJ=no
27150 + ;;
27151 +
27152 + bsdi[45]*)
27153 + export_dynamic_flag_spec_GCJ=-rdynamic
27154 + ;;
27155 +
27156 + cygwin* | mingw* | pw32*)
27157 + # When not using gcc, we currently assume that we are using
27158 + # Microsoft Visual C++.
27159 + # hardcode_libdir_flag_spec is actually meaningless, as there is
27160 + # no search path for DLLs.
27161 + hardcode_libdir_flag_spec_GCJ=' '
27162 + allow_undefined_flag_GCJ=unsupported
27163 + # Tell ltmain to make .lib files, not .a files.
27164 + libext=lib
27165 + # Tell ltmain to make .dll files, not .so files.
27166 + shrext_cmds=".dll"
27167 + # FIXME: Setting linknames here is a bad hack.
27168 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27169 + # The linker will automatically build a .lib file if we build a DLL.
27170 + old_archive_From_new_cmds_GCJ='true'
27171 + # FIXME: Should let the user specify the lib program.
27172 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27173 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27174 + enable_shared_with_static_runtimes_GCJ=yes
27175 + ;;
27176 +
27177 + darwin* | rhapsody*)
27178 + case $host_os in
27179 + rhapsody* | darwin1.[012])
27180 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27181 + ;;
27182 + *) # Darwin 1.3 on
27183 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27184 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27185 + else
27186 + case ${MACOSX_DEPLOYMENT_TARGET} in
27187 + 10.[012])
27188 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27189 + ;;
27190 + 10.*)
27191 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27192 + ;;
27193 + esac
27194 + fi
27195 + ;;
27196 + esac
27197 + archive_cmds_need_lc_GCJ=no
27198 + hardcode_direct_GCJ=no
27199 + hardcode_automatic_GCJ=yes
27200 + hardcode_shlibpath_var_GCJ=unsupported
27201 + whole_archive_flag_spec_GCJ=''
27202 + link_all_deplibs_GCJ=yes
27203 + if test "$GCC" = yes ; then
27204 + output_verbose_link_cmd='echo'
27205 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27206 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27207 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27208 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27209 + module_expsym_cmds_GCJ='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}'
27210 + else
27211 + case $cc_basename in
27212 + xlc*)
27213 + output_verbose_link_cmd='echo'
27214 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27215 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27216 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27217 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27218 + module_expsym_cmds_GCJ='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}'
27219 + ;;
27220 + *)
27221 + ld_shlibs_GCJ=no
27222 + ;;
27223 + esac
27224 + fi
27225 + ;;
27226 +
27227 + dgux*)
27228 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27229 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27230 + hardcode_shlibpath_var_GCJ=no
27231 + ;;
27232 +
27233 + freebsd1*)
27234 + ld_shlibs_GCJ=no
27235 + ;;
27236 +
27237 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27238 + # support. Future versions do this automatically, but an explicit c++rt0.o
27239 + # does not break anything, and helps significantly (at the cost of a little
27240 + # extra space).
27241 + freebsd2.2*)
27242 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27243 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27244 + hardcode_direct_GCJ=yes
27245 + hardcode_shlibpath_var_GCJ=no
27246 + ;;
27247 +
27248 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27249 + freebsd2*)
27250 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27251 + hardcode_direct_GCJ=yes
27252 + hardcode_minus_L_GCJ=yes
27253 + hardcode_shlibpath_var_GCJ=no
27254 + ;;
27255 +
27256 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27257 + freebsd* | kfreebsd*-gnu | dragonfly*)
27258 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27259 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27260 + hardcode_direct_GCJ=yes
27261 + hardcode_shlibpath_var_GCJ=no
27262 + ;;
27263 +
27264 + hpux9*)
27265 + if test "$GCC" = yes; then
27266 + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
27267 + else
27268 + archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
27269 + fi
27270 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27271 + hardcode_libdir_separator_GCJ=:
27272 + hardcode_direct_GCJ=yes
27273 +
27274 + # hardcode_minus_L: Not really in the search PATH,
27275 + # but as the default location of the library.
27276 + hardcode_minus_L_GCJ=yes
27277 + export_dynamic_flag_spec_GCJ='${wl}-E'
27278 + ;;
27279 +
27280 + hpux10*)
27281 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27282 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27283 + else
27284 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27285 + fi
27286 + if test "$with_gnu_ld" = no; then
27287 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27288 + hardcode_libdir_separator_GCJ=:
27289 +
27290 + hardcode_direct_GCJ=yes
27291 + export_dynamic_flag_spec_GCJ='${wl}-E'
27292 +
27293 + # hardcode_minus_L: Not really in the search PATH,
27294 + # but as the default location of the library.
27295 + hardcode_minus_L_GCJ=yes
27296 + fi
27297 + ;;
27298 +
27299 + hpux11*)
27300 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27301 + case $host_cpu in
27302 + hppa*64*)
27303 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27304 + ;;
27305 + ia64*)
27306 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
27307 + ;;
27308 + *)
27309 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27310 + ;;
27311 + esac
27312 + else
27313 + case $host_cpu in
27314 + hppa*64*)
27315 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27316 + ;;
27317 + ia64*)
27318 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
27319 + ;;
27320 + *)
27321 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27322 + ;;
27323 + esac
27324 + fi
27325 + if test "$with_gnu_ld" = no; then
27326 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27327 + hardcode_libdir_separator_GCJ=:
27328 +
27329 + case $host_cpu in
27330 + hppa*64*|ia64*)
27331 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27332 + hardcode_direct_GCJ=no
27333 + hardcode_shlibpath_var_GCJ=no
27334 + ;;
27335 + *)
27336 + hardcode_direct_GCJ=yes
27337 + export_dynamic_flag_spec_GCJ='${wl}-E'
27338 +
27339 + # hardcode_minus_L: Not really in the search PATH,
27340 + # but as the default location of the library.
27341 + hardcode_minus_L_GCJ=yes
27342 + ;;
27343 + esac
27344 + fi
27345 + ;;
27346 +
27347 + irix5* | irix6* | nonstopux*)
27348 + if test "$GCC" = yes; then
27349 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
27350 + else
27351 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
27352 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27353 + fi
27354 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27355 + hardcode_libdir_separator_GCJ=:
27356 + link_all_deplibs_GCJ=yes
27357 + ;;
27358 +
27359 + netbsd*)
27360 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27361 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
27362 + else
27363 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
27364 + fi
27365 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27366 + hardcode_direct_GCJ=yes
27367 + hardcode_shlibpath_var_GCJ=no
27368 + ;;
27369 +
27370 + newsos6)
27371 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27372 + hardcode_direct_GCJ=yes
27373 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27374 + hardcode_libdir_separator_GCJ=:
27375 + hardcode_shlibpath_var_GCJ=no
27376 + ;;
27377 +
27378 + openbsd*)
27379 + hardcode_direct_GCJ=yes
27380 + hardcode_shlibpath_var_GCJ=no
27381 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27382 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27383 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27384 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27385 + export_dynamic_flag_spec_GCJ='${wl}-E'
27386 + else
27387 + case $host_os in
27388 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27389 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27390 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27391 + ;;
27392 + *)
27393 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27394 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27395 + ;;
27396 + esac
27397 + fi
27398 + ;;
27399 +
27400 + os2*)
27401 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27402 + hardcode_minus_L_GCJ=yes
27403 + allow_undefined_flag_GCJ=unsupported
27404 + archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
27405 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27406 + ;;
27407 +
27408 + osf3*)
27409 + if test "$GCC" = yes; then
27410 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27411 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
27412 + else
27413 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
27414 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
27415 + fi
27416 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27417 + hardcode_libdir_separator_GCJ=:
27418 + ;;
27419 +
27420 + osf4* | osf5*) # as osf3* with the addition of -msym flag
27421 + if test "$GCC" = yes; then
27422 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27423 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
27424 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27425 + else
27426 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
27427 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
27428 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
27429 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
27430 +
27431 + # Both c and cxx compiler support -rpath directly
27432 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27433 + fi
27434 + hardcode_libdir_separator_GCJ=:
27435 + ;;
27436 +
27437 + solaris*)
27438 + no_undefined_flag_GCJ=' -z text'
27439 + if test "$GCC" = yes; then
27440 + wlarc='${wl}'
27441 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27442 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27443 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27444 + else
27445 + wlarc=''
27446 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27447 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27448 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27449 + fi
27450 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27451 + hardcode_shlibpath_var_GCJ=no
27452 + case $host_os in
27453 + solaris2.[0-5] | solaris2.[0-5].*) ;;
27454 + *)
27455 + # The compiler driver will combine linker options so we
27456 + # cannot just pass the convience library names through
27457 + # without $wl, iff we do not link with $LD.
27458 + # Luckily, gcc supports the same syntax we need for Sun Studio.
27459 + # Supported since Solaris 2.6 (maybe 2.5.1?)
27460 + case $wlarc in
27461 + '')
27462 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27463 + *)
27464 + whole_archive_flag_spec_GCJ='${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' ;;
27465 + esac ;;
27466 + esac
27467 + link_all_deplibs_GCJ=yes
27468 + ;;
27469 +
27470 + sunos4*)
27471 + if test "x$host_vendor" = xsequent; then
27472 + # Use $CC to link under sequent, because it throws in some extra .o
27473 + # files that make .init and .fini sections work.
27474 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
27475 + else
27476 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
27477 + fi
27478 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27479 + hardcode_direct_GCJ=yes
27480 + hardcode_minus_L_GCJ=yes
27481 + hardcode_shlibpath_var_GCJ=no
27482 + ;;
27483 +
27484 + sysv4)
27485 + case $host_vendor in
27486 + sni)
27487 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27488 + hardcode_direct_GCJ=yes # is this really true???
27489 + ;;
27490 + siemens)
27491 + ## LD is ld it makes a PLAMLIB
27492 + ## CC just makes a GrossModule.
27493 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
27494 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
27495 + hardcode_direct_GCJ=no
27496 + ;;
27497 + motorola)
27498 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27499 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
27500 + ;;
27501 + esac
27502 + runpath_var='LD_RUN_PATH'
27503 + hardcode_shlibpath_var_GCJ=no
27504 + ;;
27505 +
27506 + sysv4.3*)
27507 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27508 + hardcode_shlibpath_var_GCJ=no
27509 + export_dynamic_flag_spec_GCJ='-Bexport'
27510 + ;;
27511 +
27512 + sysv4*MP*)
27513 + if test -d /usr/nec; then
27514 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27515 + hardcode_shlibpath_var_GCJ=no
27516 + runpath_var=LD_RUN_PATH
27517 + hardcode_runpath_var=yes
27518 + ld_shlibs_GCJ=yes
27519 + fi
27520 + ;;
27521 +
27522 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
27523 + no_undefined_flag_GCJ='${wl}-z,text'
27524 + archive_cmds_need_lc_GCJ=no
27525 + hardcode_shlibpath_var_GCJ=no
27526 + runpath_var='LD_RUN_PATH'
27527 +
27528 + if test "$GCC" = yes; then
27529 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27530 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27531 + else
27532 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27533 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27534 + fi
27535 + ;;
27536 +
27537 + sysv5* | sco3.2v5* | sco5v6*)
27538 + # Note: We can NOT use -z defs as we might desire, because we do not
27539 + # link with -lc, and that would cause any symbols used from libc to
27540 + # always be unresolved, which means just about no library would
27541 + # ever link correctly. If we're not using GNU ld we use -z text
27542 + # though, which does catch some bad symbols but isn't as heavy-handed
27543 + # as -z defs.
27544 + no_undefined_flag_GCJ='${wl}-z,text'
27545 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
27546 + archive_cmds_need_lc_GCJ=no
27547 + hardcode_shlibpath_var_GCJ=no
27548 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
27549 + hardcode_libdir_separator_GCJ=':'
27550 + link_all_deplibs_GCJ=yes
27551 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27552 + runpath_var='LD_RUN_PATH'
27553 +
27554 + if test "$GCC" = yes; then
27555 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27556 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27557 + else
27558 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27559 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27560 + fi
27561 + ;;
27562 +
27563 + uts4*)
27564 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27565 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27566 + hardcode_shlibpath_var_GCJ=no
27567 + ;;
27568 +
27569 + *)
27570 + ld_shlibs_GCJ=no
27571 + ;;
27572 + esac
27573 + fi
27574 +
27575 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
27576 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
27577 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
27578 +
27579 +#
27580 +# Do we need to explicitly link libc?
27581 +#
27582 +case "x$archive_cmds_need_lc_GCJ" in
27583 +x|xyes)
27584 + # Assume -lc should be added
27585 + archive_cmds_need_lc_GCJ=yes
27586 +
27587 + if test "$enable_shared" = yes && test "$GCC" = yes; then
27588 + case $archive_cmds_GCJ in
27589 + *'~'*)
27590 + # FIXME: we may have to deal with multi-command sequences.
27591 + ;;
27592 + '$CC '*)
27593 + # Test whether the compiler implicitly links with -lc since on some
27594 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
27595 + # to ld, don't add -lc before -lgcc.
27596 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
27597 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
27598 + $rm conftest*
27599 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27600 +
27601 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27602 + (eval $ac_compile) 2>&5
27603 + ac_status=$?
27604 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 + (exit $ac_status); } 2>conftest.err; then
27606 + soname=conftest
27607 + lib=conftest
27608 + libobjs=conftest.$ac_objext
27609 + deplibs=
27610 + wl=$lt_prog_compiler_wl_GCJ
27611 + pic_flag=$lt_prog_compiler_pic_GCJ
27612 + compiler_flags=-v
27613 + linker_flags=-v
27614 + verstring=
27615 + output_objdir=.
27616 + libname=conftest
27617 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
27618 + allow_undefined_flag_GCJ=
27619 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
27620 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
27621 + ac_status=$?
27622 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 + (exit $ac_status); }
27624 + then
27625 + archive_cmds_need_lc_GCJ=no
27626 + else
27627 + archive_cmds_need_lc_GCJ=yes
27628 + fi
27629 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
27630 + else
27631 + cat conftest.err 1>&5
27632 + fi
27633 + $rm conftest*
27634 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
27635 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
27636 + ;;
27637 + esac
27638 + fi
27639 + ;;
27640 +esac
27641 +
27642 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
27643 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
27644 +library_names_spec=
27645 +libname_spec='lib$name'
27646 +soname_spec=
27647 +shrext_cmds=".so"
27648 +postinstall_cmds=
27649 +postuninstall_cmds=
27650 +finish_cmds=
27651 +finish_eval=
27652 +shlibpath_var=
27653 +shlibpath_overrides_runpath=unknown
27654 +version_type=none
27655 +dynamic_linker="$host_os ld.so"
27656 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
27657 +if test "$GCC" = yes; then
27658 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27659 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
27660 + # if the path contains ";" then we assume it to be the separator
27661 + # otherwise default to the standard path separator (i.e. ":") - it is
27662 + # assumed that no part of a normal pathname contains ";" but that should
27663 + # okay in the real world where ";" in dirpaths is itself problematic.
27664 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27665 + else
27666 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27667 + fi
27668 +else
27669 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
27670 +fi
27671 +need_lib_prefix=unknown
27672 +hardcode_into_libs=no
27673 +
27674 +# when you set need_version to no, make sure it does not cause -set_version
27675 +# flags to be left without arguments
27676 +need_version=unknown
27677 +
27678 +case $host_os in
27679 +aix3*)
27680 + version_type=linux
27681 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27682 + shlibpath_var=LIBPATH
27683 +
27684 + # AIX 3 has no versioning support, so we append a major version to the name.
27685 + soname_spec='${libname}${release}${shared_ext}$major'
27686 + ;;
27687 +
27688 +aix4* | aix5*)
27689 + version_type=linux
27690 + need_lib_prefix=no
27691 + need_version=no
27692 + hardcode_into_libs=yes
27693 + if test "$host_cpu" = ia64; then
27694 + # AIX 5 supports IA64
27695 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27696 + shlibpath_var=LD_LIBRARY_PATH
27697 + else
27698 + # With GCC up to 2.95.x, collect2 would create an import file
27699 + # for dependence libraries. The import file would start with
27700 + # the line `#! .'. This would cause the generated library to
27701 + # depend on `.', always an invalid library. This was fixed in
27702 + # development snapshots of GCC prior to 3.0.
27703 + case $host_os in
27704 + aix4 | aix4.[01] | aix4.[01].*)
27705 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27706 + echo ' yes '
27707 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
27708 + :
27709 + else
27710 + can_build_shared=no
27711 + fi
27712 + ;;
27713 + esac
27714 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27715 + # soname into executable. Probably we can add versioning support to
27716 + # collect2, so additional links can be useful in future.
27717 + if test "$aix_use_runtimelinking" = yes; then
27718 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27719 + # instead of lib<name>.a to let people know that these are not
27720 + # typical AIX shared libraries.
27721 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27722 + else
27723 + # We preserve .a as extension for shared libraries through AIX4.2
27724 + # and later when we are not doing run time linking.
27725 + library_names_spec='${libname}${release}.a $libname.a'
27726 + soname_spec='${libname}${release}${shared_ext}$major'
27727 + fi
27728 + shlibpath_var=LIBPATH
27729 + fi
27730 + ;;
27731 +
27732 +amigaos*)
27733 + library_names_spec='$libname.ixlibrary $libname.a'
27734 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
27735 + 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'
27736 + ;;
27737 +
27738 +beos*)
27739 + library_names_spec='${libname}${shared_ext}'
27740 + dynamic_linker="$host_os ld.so"
27741 + shlibpath_var=LIBRARY_PATH
27742 + ;;
27743 +
27744 +bsdi[45]*)
27745 + version_type=linux
27746 + need_version=no
27747 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27748 + soname_spec='${libname}${release}${shared_ext}$major'
27749 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27750 + shlibpath_var=LD_LIBRARY_PATH
27751 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27752 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27753 + # the default ld.so.conf also contains /usr/contrib/lib and
27754 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27755 + # libtool to hard-code these into programs
27756 + ;;
27757 +
27758 +cygwin* | mingw* | pw32*)
27759 + version_type=windows
27760 + shrext_cmds=".dll"
27761 + need_version=no
27762 + need_lib_prefix=no
27763 +
27764 + case $GCC,$host_os in
27765 + yes,cygwin* | yes,mingw* | yes,pw32*)
27766 + library_names_spec='$libname.dll.a'
27767 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
27768 + postinstall_cmds='base_file=`basename \${file}`~
27769 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
27770 + dldir=$destdir/`dirname \$dlpath`~
27771 + test -d \$dldir || mkdir -p \$dldir~
27772 + $install_prog $dir/$dlname \$dldir/$dlname~
27773 + chmod a+x \$dldir/$dlname'
27774 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27775 + dlpath=$dir/\$dldll~
27776 + $rm \$dlpath'
27777 + shlibpath_overrides_runpath=yes
27778 +
27779 + case $host_os in
27780 + cygwin*)
27781 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
27782 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27783 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
27784 + ;;
27785 + mingw*)
27786 + # MinGW DLLs use traditional 'lib' prefix
27787 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27788 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27789 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
27790 + # It is most probably a Windows format PATH printed by
27791 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
27792 + # path with ; separators, and with drive letters. We can handle the
27793 + # drive letters (cygwin fileutils understands them), so leave them,
27794 + # especially as we might pass files found there to a mingw objdump,
27795 + # which wouldn't understand a cygwinified path. Ahh.
27796 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27797 + else
27798 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27799 + fi
27800 + ;;
27801 + pw32*)
27802 + # pw32 DLLs use 'pw' prefix rather than 'lib'
27803 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27804 + ;;
27805 + esac
27806 + ;;
27807 +
27808 + linux*)
27809 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
27810 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27811 + supports_anon_versioning=no
27812 + case `$LD -v 2>/dev/null` in
27813 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27814 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27815 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27816 + *\ 2.11.*) ;; # other 2.11 versions
27817 + *) supports_anon_versioning=yes ;;
27818 + esac
27819 + if test $supports_anon_versioning = yes; then
27820 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
27821 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27822 +$echo "local: *; };" >> $output_objdir/$libname.ver~
27823 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27824 + else
27825 + $archive_expsym_cmds="$archive_cmds"
27826 + fi
27827 + else
27828 + ld_shlibs=no
27829 + fi
27830 + ;;
27831 +
27832 + *)
27833 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27834 + ;;
27835 + esac
27836 + dynamic_linker='Win32 ld.exe'
27837 + # FIXME: first we should search . and the directory the executable is in
27838 + shlibpath_var=PATH
27839 + ;;
27840 +
27841 +darwin* | rhapsody*)
27842 + dynamic_linker="$host_os dyld"
27843 + version_type=darwin
27844 + need_lib_prefix=no
27845 + need_version=no
27846 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27847 + soname_spec='${libname}${release}${major}$shared_ext'
27848 + shlibpath_overrides_runpath=yes
27849 + shlibpath_var=DYLD_LIBRARY_PATH
27850 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
27851 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
27852 + if test "$GCC" = yes; then
27853 + 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"`
27854 + else
27855 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
27856 + fi
27857 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27858 + ;;
27859 +
27860 +dgux*)
27861 + version_type=linux
27862 + need_lib_prefix=no
27863 + need_version=no
27864 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27865 + soname_spec='${libname}${release}${shared_ext}$major'
27866 + shlibpath_var=LD_LIBRARY_PATH
27867 + ;;
27868 +
27869 +freebsd1*)
27870 + dynamic_linker=no
27871 + ;;
27872 +
27873 +kfreebsd*-gnu)
27874 + version_type=linux
27875 + need_lib_prefix=no
27876 + need_version=no
27877 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27878 + soname_spec='${libname}${release}${shared_ext}$major'
27879 + shlibpath_var=LD_LIBRARY_PATH
27880 + shlibpath_overrides_runpath=no
27881 + hardcode_into_libs=yes
27882 + dynamic_linker='GNU ld.so'
27883 + ;;
27884 +
27885 +freebsd* | dragonfly*)
27886 + # DragonFly does not have aout. When/if they implement a new
27887 + # versioning mechanism, adjust this.
27888 + if test -x /usr/bin/objformat; then
27889 + objformat=`/usr/bin/objformat`
27890 + else
27891 + case $host_os in
27892 + freebsd[123]*) objformat=aout ;;
27893 + *) objformat=elf ;;
27894 + esac
27895 + fi
27896 + # Handle Gentoo/FreeBSD as it was Linux
27897 + case $host_vendor in
27898 + gentoo)
27899 + version_type=linux ;;
27900 + *)
27901 + version_type=freebsd-$objformat ;;
27902 + esac
27903 +
27904 + case $version_type in
27905 + freebsd-elf*)
27906 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27907 + need_version=no
27908 + need_lib_prefix=no
27909 + ;;
27910 + freebsd-*)
27911 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27912 + need_version=yes
27913 + ;;
27914 + linux)
27915 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27916 + soname_spec='${libname}${release}${shared_ext}$major'
27917 + need_lib_prefix=no
27918 + need_version=no
27919 + ;;
27920 + esac
27921 + shlibpath_var=LD_LIBRARY_PATH
27922 + case $host_os in
27923 + freebsd2*)
27924 + shlibpath_overrides_runpath=yes
27925 + ;;
27926 + freebsd3.[01]* | freebsdelf3.[01]*)
27927 + shlibpath_overrides_runpath=yes
27928 + hardcode_into_libs=yes
27929 + ;;
27930 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
27931 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
27932 + shlibpath_overrides_runpath=no
27933 + hardcode_into_libs=yes
27934 + ;;
27935 + freebsd*) # from 4.6 on
27936 + shlibpath_overrides_runpath=yes
27937 + hardcode_into_libs=yes
27938 + ;;
27939 + esac
27940 + ;;
27941 +
27942 +gnu*)
27943 + version_type=linux
27944 + need_lib_prefix=no
27945 + need_version=no
27946 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27947 + soname_spec='${libname}${release}${shared_ext}$major'
27948 + shlibpath_var=LD_LIBRARY_PATH
27949 + hardcode_into_libs=yes
27950 + ;;
27951 +
27952 +hpux9* | hpux10* | hpux11*)
27953 + # Give a soname corresponding to the major version so that dld.sl refuses to
27954 + # link against other versions.
27955 + version_type=sunos
27956 + need_lib_prefix=no
27957 + need_version=no
27958 + case $host_cpu in
27959 + ia64*)
27960 + shrext_cmds='.so'
27961 + hardcode_into_libs=yes
27962 + dynamic_linker="$host_os dld.so"
27963 + shlibpath_var=LD_LIBRARY_PATH
27964 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27965 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27966 + soname_spec='${libname}${release}${shared_ext}$major'
27967 + if test "X$HPUX_IA64_MODE" = X32; then
27968 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27969 + else
27970 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27971 + fi
27972 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27973 + ;;
27974 + hppa*64*)
27975 + shrext_cmds='.sl'
27976 + hardcode_into_libs=yes
27977 + dynamic_linker="$host_os dld.sl"
27978 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27979 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27980 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27981 + soname_spec='${libname}${release}${shared_ext}$major'
27982 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27983 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27984 + ;;
27985 + *)
27986 + shrext_cmds='.sl'
27987 + dynamic_linker="$host_os dld.sl"
27988 + shlibpath_var=SHLIB_PATH
27989 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27990 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27991 + soname_spec='${libname}${release}${shared_ext}$major'
27992 + ;;
27993 + esac
27994 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
27995 + postinstall_cmds='chmod 555 $lib'
27996 + ;;
27997 +
27998 +interix3*)
27999 + version_type=linux
28000 + need_lib_prefix=no
28001 + need_version=no
28002 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28003 + soname_spec='${libname}${release}${shared_ext}$major'
28004 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
28005 + shlibpath_var=LD_LIBRARY_PATH
28006 + shlibpath_overrides_runpath=no
28007 + hardcode_into_libs=yes
28008 + ;;
28009 +
28010 +irix5* | irix6* | nonstopux*)
28011 + case $host_os in
28012 + nonstopux*) version_type=nonstopux ;;
28013 + *)
28014 + if test "$lt_cv_prog_gnu_ld" = yes; then
28015 + version_type=linux
28016 + else
28017 + version_type=irix
28018 + fi ;;
28019 + esac
28020 + need_lib_prefix=no
28021 + need_version=no
28022 + soname_spec='${libname}${release}${shared_ext}$major'
28023 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28024 + case $host_os in
28025 + irix5* | nonstopux*)
28026 + libsuff= shlibsuff=
28027 + ;;
28028 + *)
28029 + case $LD in # libtool.m4 will add one of these switches to LD
28030 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28031 + libsuff= shlibsuff= libmagic=32-bit;;
28032 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28033 + libsuff=32 shlibsuff=N32 libmagic=N32;;
28034 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28035 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
28036 + *) libsuff= shlibsuff= libmagic=never-match;;
28037 + esac
28038 + ;;
28039 + esac
28040 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28041 + shlibpath_overrides_runpath=no
28042 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28043 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28044 + hardcode_into_libs=yes
28045 + ;;
28046 +
28047 +# No shared lib support for Linux oldld, aout, or coff.
28048 +linux*oldld* | linux*aout* | linux*coff*)
28049 + dynamic_linker=no
28050 + ;;
28051 +
28052 +# This must be Linux ELF.
28053 +linux*)
28054 + version_type=linux
28055 + need_lib_prefix=no
28056 + need_version=no
28057 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28058 + soname_spec='${libname}${release}${shared_ext}$major'
28059 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28060 + shlibpath_var=LD_LIBRARY_PATH
28061 + shlibpath_overrides_runpath=no
28062 + # This implies no fast_install, which is unacceptable.
28063 + # Some rework will be needed to allow for fast_install
28064 + # before this can be enabled.
28065 + hardcode_into_libs=yes
28066 +
28067 + # Append ld.so.conf contents to the search path
28068 + if test -f /etc/ld.so.conf; then
28069 + 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' ' '`
28070 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28071 + fi
28072 +
28073 + # We used to test for /lib/ld.so.1 and disable shared libraries on
28074 + # powerpc, because MkLinux only supported shared libraries with the
28075 + # GNU dynamic linker. Since this was broken with cross compilers,
28076 + # most powerpc-linux boxes support dynamic linking these days and
28077 + # people can always --disable-shared, the test was removed, and we
28078 + # assume the GNU/Linux dynamic linker is in use.
28079 + dynamic_linker='GNU/Linux ld.so'
28080 + ;;
28081 +
28082 +knetbsd*-gnu)
28083 + version_type=linux
28084 + need_lib_prefix=no
28085 + need_version=no
28086 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28087 + soname_spec='${libname}${release}${shared_ext}$major'
28088 + shlibpath_var=LD_LIBRARY_PATH
28089 + shlibpath_overrides_runpath=no
28090 + hardcode_into_libs=yes
28091 + dynamic_linker='GNU ld.so'
28092 + ;;
28093 +
28094 +netbsd*)
28095 + version_type=sunos
28096 + need_lib_prefix=no
28097 + need_version=no
28098 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28099 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28100 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28101 + dynamic_linker='NetBSD (a.out) ld.so'
28102 + else
28103 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28104 + soname_spec='${libname}${release}${shared_ext}$major'
28105 + dynamic_linker='NetBSD ld.elf_so'
28106 + fi
28107 + shlibpath_var=LD_LIBRARY_PATH
28108 + shlibpath_overrides_runpath=yes
28109 + hardcode_into_libs=yes
28110 + ;;
28111 +
28112 +newsos6)
28113 + version_type=linux
28114 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28115 + shlibpath_var=LD_LIBRARY_PATH
28116 + shlibpath_overrides_runpath=yes
28117 + ;;
28118 +
28119 +nto-qnx*)
28120 + version_type=linux
28121 + need_lib_prefix=no
28122 + need_version=no
28123 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28124 + soname_spec='${libname}${release}${shared_ext}$major'
28125 + shlibpath_var=LD_LIBRARY_PATH
28126 + shlibpath_overrides_runpath=yes
28127 + ;;
28128 +
28129 +openbsd*)
28130 + version_type=sunos
28131 + sys_lib_dlsearch_path_spec="/usr/lib"
28132 + need_lib_prefix=no
28133 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28134 + case $host_os in
28135 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28136 + *) need_version=no ;;
28137 + esac
28138 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28139 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28140 + shlibpath_var=LD_LIBRARY_PATH
28141 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28142 + case $host_os in
28143 + openbsd2.[89] | openbsd2.[89].*)
28144 + shlibpath_overrides_runpath=no
28145 + ;;
28146 + *)
28147 + shlibpath_overrides_runpath=yes
28148 + ;;
28149 + esac
28150 + else
28151 + shlibpath_overrides_runpath=yes
28152 + fi
28153 + ;;
28154 +
28155 +os2*)
28156 + libname_spec='$name'
28157 + shrext_cmds=".dll"
28158 + need_lib_prefix=no
28159 + library_names_spec='$libname${shared_ext} $libname.a'
28160 + dynamic_linker='OS/2 ld.exe'
28161 + shlibpath_var=LIBPATH
28162 + ;;
28163 +
28164 +osf3* | osf4* | osf5*)
28165 + version_type=osf
28166 + need_lib_prefix=no
28167 + need_version=no
28168 + soname_spec='${libname}${release}${shared_ext}$major'
28169 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28170 + shlibpath_var=LD_LIBRARY_PATH
28171 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28172 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28173 + ;;
28174 +
28175 +solaris*)
28176 + version_type=linux
28177 + need_lib_prefix=no
28178 + need_version=no
28179 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28180 + soname_spec='${libname}${release}${shared_ext}$major'
28181 + shlibpath_var=LD_LIBRARY_PATH
28182 + shlibpath_overrides_runpath=yes
28183 + hardcode_into_libs=yes
28184 + # ldd complains unless libraries are executable
28185 + postinstall_cmds='chmod +x $lib'
28186 + ;;
28187 +
28188 +sunos4*)
28189 + version_type=sunos
28190 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28191 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28192 + shlibpath_var=LD_LIBRARY_PATH
28193 + shlibpath_overrides_runpath=yes
28194 + if test "$with_gnu_ld" = yes; then
28195 + need_lib_prefix=no
28196 + fi
28197 + need_version=yes
28198 + ;;
28199 +
28200 +sysv4 | sysv4.3*)
28201 + version_type=linux
28202 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28203 + soname_spec='${libname}${release}${shared_ext}$major'
28204 + shlibpath_var=LD_LIBRARY_PATH
28205 + case $host_vendor in
28206 + sni)
28207 + shlibpath_overrides_runpath=no
28208 + need_lib_prefix=no
28209 + export_dynamic_flag_spec='${wl}-Blargedynsym'
28210 + runpath_var=LD_RUN_PATH
28211 + ;;
28212 + siemens)
28213 + need_lib_prefix=no
28214 + ;;
28215 + motorola)
28216 + need_lib_prefix=no
28217 + need_version=no
28218 + shlibpath_overrides_runpath=no
28219 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28220 + ;;
28221 + esac
28222 + ;;
28223 +
28224 +sysv4*MP*)
28225 + if test -d /usr/nec ;then
28226 + version_type=linux
28227 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28228 + soname_spec='$libname${shared_ext}.$major'
28229 + shlibpath_var=LD_LIBRARY_PATH
28230 + fi
28231 + ;;
28232 +
28233 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28234 + version_type=freebsd-elf
28235 + need_lib_prefix=no
28236 + need_version=no
28237 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28238 + soname_spec='${libname}${release}${shared_ext}$major'
28239 + shlibpath_var=LD_LIBRARY_PATH
28240 + hardcode_into_libs=yes
28241 + if test "$with_gnu_ld" = yes; then
28242 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28243 + shlibpath_overrides_runpath=no
28244 + else
28245 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28246 + shlibpath_overrides_runpath=yes
28247 + case $host_os in
28248 + sco3.2v5*)
28249 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
28250 + ;;
28251 + esac
28252 + fi
28253 + sys_lib_dlsearch_path_spec='/usr/lib'
28254 + ;;
28255 +
28256 +uts4*)
28257 + version_type=linux
28258 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28259 + soname_spec='${libname}${release}${shared_ext}$major'
28260 + shlibpath_var=LD_LIBRARY_PATH
28261 + ;;
28262 +
28263 +*)
28264 + dynamic_linker=no
28265 + ;;
28266 +esac
28267 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28268 +echo "${ECHO_T}$dynamic_linker" >&6
28269 +test "$dynamic_linker" = no && can_build_shared=no
28270 +
28271 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28272 +if test "$GCC" = yes; then
28273 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28274 +fi
28275 +
28276 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28277 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28278 +hardcode_action_GCJ=
28279 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28280 + test -n "$runpath_var_GCJ" || \
28281 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28282 +
28283 + # We can hardcode non-existant directories.
28284 + if test "$hardcode_direct_GCJ" != no &&
28285 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
28286 + # have to relink, otherwise we might link with an installed library
28287 + # when we should be linking with a yet-to-be-installed one
28288 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28289 + test "$hardcode_minus_L_GCJ" != no; then
28290 + # Linking always hardcodes the temporary library directory.
28291 + hardcode_action_GCJ=relink
28292 + else
28293 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
28294 + hardcode_action_GCJ=immediate
28295 + fi
28296 +else
28297 + # We cannot hardcode anything, or else we can only hardcode existing
28298 + # directories.
28299 + hardcode_action_GCJ=unsupported
28300 +fi
28301 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28302 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
28303 +
28304 +if test "$hardcode_action_GCJ" = relink; then
28305 + # Fast installation is not supported
28306 + enable_fast_install=no
28307 +elif test "$shlibpath_overrides_runpath" = yes ||
28308 + test "$enable_shared" = no; then
28309 + # Fast installation is not necessary
28310 + enable_fast_install=needless
28311 +fi
28312 +
28313 +
28314 +# The else clause should only fire when bootstrapping the
28315 +# libtool distribution, otherwise you forgot to ship ltmain.sh
28316 +# with your package, and you will get complaints that there are
28317 +# no rules to generate ltmain.sh.
28318 +if test -f "$ltmain"; then
28319 + # See if we are running on zsh, and set the options which allow our commands through
28320 + # without removal of \ escapes.
28321 + if test -n "${ZSH_VERSION+set}" ; then
28322 + setopt NO_GLOB_SUBST
28323 + fi
28324 + # Now quote all the things that may contain metacharacters while being
28325 + # careful not to overquote the AC_SUBSTed values. We take copies of the
28326 + # variables and quote the copies for generation of the libtool script.
28327 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
28328 + SED SHELL STRIP \
28329 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28330 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28331 + deplibs_check_method reload_flag reload_cmds need_locks \
28332 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28333 + lt_cv_sys_global_symbol_to_c_name_address \
28334 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28335 + old_postinstall_cmds old_postuninstall_cmds \
28336 + compiler_GCJ \
28337 + CC_GCJ \
28338 + LD_GCJ \
28339 + lt_prog_compiler_wl_GCJ \
28340 + lt_prog_compiler_pic_GCJ \
28341 + lt_prog_compiler_static_GCJ \
28342 + lt_prog_compiler_no_builtin_flag_GCJ \
28343 + export_dynamic_flag_spec_GCJ \
28344 + thread_safe_flag_spec_GCJ \
28345 + whole_archive_flag_spec_GCJ \
28346 + enable_shared_with_static_runtimes_GCJ \
28347 + old_archive_cmds_GCJ \
28348 + old_archive_from_new_cmds_GCJ \
28349 + predep_objects_GCJ \
28350 + postdep_objects_GCJ \
28351 + predeps_GCJ \
28352 + postdeps_GCJ \
28353 + compiler_lib_search_path_GCJ \
28354 + archive_cmds_GCJ \
28355 + archive_expsym_cmds_GCJ \
28356 + postinstall_cmds_GCJ \
28357 + postuninstall_cmds_GCJ \
28358 + old_archive_from_expsyms_cmds_GCJ \
28359 + allow_undefined_flag_GCJ \
28360 + no_undefined_flag_GCJ \
28361 + export_symbols_cmds_GCJ \
28362 + hardcode_libdir_flag_spec_GCJ \
28363 + hardcode_libdir_flag_spec_ld_GCJ \
28364 + hardcode_libdir_separator_GCJ \
28365 + hardcode_automatic_GCJ \
28366 + module_cmds_GCJ \
28367 + module_expsym_cmds_GCJ \
28368 + lt_cv_prog_compiler_c_o_GCJ \
28369 + exclude_expsyms_GCJ \
28370 + include_expsyms_GCJ; do
28371 +
28372 + case $var in
28373 + old_archive_cmds_GCJ | \
28374 + old_archive_from_new_cmds_GCJ | \
28375 + archive_cmds_GCJ | \
28376 + archive_expsym_cmds_GCJ | \
28377 + module_cmds_GCJ | \
28378 + module_expsym_cmds_GCJ | \
28379 + old_archive_from_expsyms_cmds_GCJ | \
28380 + export_symbols_cmds_GCJ | \
28381 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
28382 + postinstall_cmds | postuninstall_cmds | \
28383 + old_postinstall_cmds | old_postuninstall_cmds | \
28384 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28385 + # Double-quote double-evaled strings.
28386 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28387 + ;;
28388 + *)
28389 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28390 + ;;
28391 + esac
28392 + done
28393 +
28394 + case $lt_echo in
28395 + *'\$0 --fallback-echo"')
28396 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28397 + ;;
28398 + esac
28399 +
28400 +cfgfile="$ofile"
28401 +
28402 + cat <<__EOF__ >> "$cfgfile"
28403 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
28404 +
28405 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28406 +
28407 +# Shell to use when invoking shell scripts.
28408 +SHELL=$lt_SHELL
28409 +
28410 +# Whether or not to build shared libraries.
28411 +build_libtool_libs=$enable_shared
28412 +
28413 +# Whether or not to build static libraries.
28414 +build_old_libs=$enable_static
28415 +
28416 +# Whether or not to add -lc for building shared libraries.
28417 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
28418 +
28419 +# Whether or not to disallow shared libs when runtime libs are static
28420 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
28421 +
28422 +# Whether or not to optimize for fast installation.
28423 +fast_install=$enable_fast_install
28424 +
28425 +# The host system.
28426 +host_alias=$host_alias
28427 +host=$host
28428 +host_os=$host_os
28429 +
28430 +# The build system.
28431 +build_alias=$build_alias
28432 +build=$build
28433 +build_os=$build_os
28434 +
28435 +# An echo program that does not interpret backslashes.
28436 +echo=$lt_echo
28437 +
28438 +# The archiver.
28439 +AR=$lt_AR
28440 +AR_FLAGS=$lt_AR_FLAGS
28441 +
28442 +# A C compiler.
28443 +LTCC=$lt_LTCC
28444 +
28445 +# LTCC compiler flags.
28446 +LTCFLAGS=$lt_LTCFLAGS
28447 +
28448 +# A language-specific compiler.
28449 +CC=$lt_compiler_GCJ
28450 +
28451 +# Is the compiler the GNU C compiler?
28452 +with_gcc=$GCC_GCJ
28453 +
28454 +# An ERE matcher.
28455 +EGREP=$lt_EGREP
28456 +
28457 +# The linker used to build libraries.
28458 +LD=$lt_LD_GCJ
28459 +
28460 +# Whether we need hard or soft links.
28461 +LN_S=$lt_LN_S
28462 +
28463 +# A BSD-compatible nm program.
28464 +NM=$lt_NM
28465 +
28466 +# A symbol stripping program
28467 +STRIP=$lt_STRIP
28468 +
28469 +# Used to examine libraries when file_magic_cmd begins "file"
28470 +MAGIC_CMD=$MAGIC_CMD
28471 +
28472 +# Used on cygwin: DLL creation program.
28473 +DLLTOOL="$DLLTOOL"
28474 +
28475 +# Used on cygwin: object dumper.
28476 +OBJDUMP="$OBJDUMP"
28477 +
28478 +# Used on cygwin: assembler.
28479 +AS="$AS"
28480 +
28481 +# The name of the directory that contains temporary libtool files.
28482 +objdir=$objdir
28483 +
28484 +# How to create reloadable object files.
28485 +reload_flag=$lt_reload_flag
28486 +reload_cmds=$lt_reload_cmds
28487 +
28488 +# How to pass a linker flag through the compiler.
28489 +wl=$lt_lt_prog_compiler_wl_GCJ
28490 +
28491 +# Object file suffix (normally "o").
28492 +objext="$ac_objext"
28493 +
28494 +# Old archive suffix (normally "a").
28495 +libext="$libext"
28496 +
28497 +# Shared library suffix (normally ".so").
28498 +shrext_cmds='$shrext_cmds'
28499 +
28500 +# Executable file suffix (normally "").
28501 +exeext="$exeext"
28502 +
28503 +# Additional compiler flags for building library objects.
28504 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
28505 +pic_mode=$pic_mode
28506 +
28507 +# What is the maximum length of a command?
28508 +max_cmd_len=$lt_cv_sys_max_cmd_len
28509 +
28510 +# Does compiler simultaneously support -c and -o options?
28511 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
28512 +
28513 +# Must we lock files when doing compilation?
28514 +need_locks=$lt_need_locks
28515 +
28516 +# Do we need the lib prefix for modules?
28517 +need_lib_prefix=$need_lib_prefix
28518 +
28519 +# Do we need a version for libraries?
28520 +need_version=$need_version
28521 +
28522 +# Whether dlopen is supported.
28523 +dlopen_support=$enable_dlopen
28524 +
28525 +# Whether dlopen of programs is supported.
28526 +dlopen_self=$enable_dlopen_self
28527 +
28528 +# Whether dlopen of statically linked programs is supported.
28529 +dlopen_self_static=$enable_dlopen_self_static
28530 +
28531 +# Compiler flag to prevent dynamic linking.
28532 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
28533 +
28534 +# Compiler flag to turn off builtin functions.
28535 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
28536 +
28537 +# Compiler flag to allow reflexive dlopens.
28538 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
28539 +
28540 +# Compiler flag to generate shared objects directly from archives.
28541 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
28542 +
28543 +# Compiler flag to generate thread-safe objects.
28544 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
28545 +
28546 +# Library versioning type.
28547 +version_type=$version_type
28548 +
28549 +# Format of library name prefix.
28550 +libname_spec=$lt_libname_spec
28551 +
28552 +# List of archive names. First name is the real one, the rest are links.
28553 +# The last name is the one that the linker finds with -lNAME.
28554 +library_names_spec=$lt_library_names_spec
28555 +
28556 +# The coded name of the library, if different from the real name.
28557 +soname_spec=$lt_soname_spec
28558 +
28559 +# Commands used to build and install an old-style archive.
28560 +RANLIB=$lt_RANLIB
28561 +old_archive_cmds=$lt_old_archive_cmds_GCJ
28562 +old_postinstall_cmds=$lt_old_postinstall_cmds
28563 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
28564 +
28565 +# Create an old-style archive from a shared archive.
28566 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
28567 +
28568 +# Create a temporary old-style archive to link instead of a shared archive.
28569 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28570 +
28571 +# Commands used to build and install a shared archive.
28572 +archive_cmds=$lt_archive_cmds_GCJ
28573 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28574 +postinstall_cmds=$lt_postinstall_cmds
28575 +postuninstall_cmds=$lt_postuninstall_cmds
28576 +
28577 +# Commands used to build a loadable module (assumed same as above if empty)
28578 +module_cmds=$lt_module_cmds_GCJ
28579 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28580 +
28581 +# Commands to strip libraries.
28582 +old_striplib=$lt_old_striplib
28583 +striplib=$lt_striplib
28584 +
28585 +# Dependencies to place before the objects being linked to create a
28586 +# shared library.
28587 +predep_objects=$lt_predep_objects_GCJ
28588 +
28589 +# Dependencies to place after the objects being linked to create a
28590 +# shared library.
28591 +postdep_objects=$lt_postdep_objects_GCJ
28592 +
28593 +# Dependencies to place before the objects being linked to create a
28594 +# shared library.
28595 +predeps=$lt_predeps_GCJ
28596 +
28597 +# Dependencies to place after the objects being linked to create a
28598 +# shared library.
28599 +postdeps=$lt_postdeps_GCJ
28600 +
28601 +# The library search path used internally by the compiler when linking
28602 +# a shared library.
28603 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28604 +
28605 +# Method to check whether dependent libraries are shared objects.
28606 +deplibs_check_method=$lt_deplibs_check_method
28607 +
28608 +# Command to use when deplibs_check_method == file_magic.
28609 +file_magic_cmd=$lt_file_magic_cmd
28610 +
28611 +# Flag that allows shared libraries with undefined symbols to be built.
28612 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28613 +
28614 +# Flag that forces no undefined symbols.
28615 +no_undefined_flag=$lt_no_undefined_flag_GCJ
28616 +
28617 +# Commands used to finish a libtool library installation in a directory.
28618 +finish_cmds=$lt_finish_cmds
28619 +
28620 +# Same as above, but a single script fragment to be evaled but not shown.
28621 +finish_eval=$lt_finish_eval
28622 +
28623 +# Take the output of nm and produce a listing of raw symbols and C names.
28624 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28625 +
28626 +# Transform the output of nm in a proper C declaration
28627 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28628 +
28629 +# Transform the output of nm in a C name address pair
28630 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28631 +
28632 +# This is the shared library runtime path variable.
28633 +runpath_var=$runpath_var
28634 +
28635 +# This is the shared library path variable.
28636 +shlibpath_var=$shlibpath_var
28637 +
28638 +# Is shlibpath searched before the hard-coded library search path?
28639 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28640 +
28641 +# How to hardcode a shared library path into an executable.
28642 +hardcode_action=$hardcode_action_GCJ
28643 +
28644 +# Whether we should hardcode library paths into libraries.
28645 +hardcode_into_libs=$hardcode_into_libs
28646 +
28647 +# Flag to hardcode \$libdir into a binary during linking.
28648 +# This must work even if \$libdir does not exist.
28649 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28650 +
28651 +# If ld is used when linking, flag to hardcode \$libdir into
28652 +# a binary during linking. This must work even if \$libdir does
28653 +# not exist.
28654 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28655 +
28656 +# Whether we need a single -rpath flag with a separated argument.
28657 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
28658 +
28659 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28660 +# resulting binary.
28661 +hardcode_direct=$hardcode_direct_GCJ
28662 +
28663 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28664 +# resulting binary.
28665 +hardcode_minus_L=$hardcode_minus_L_GCJ
28666 +
28667 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28668 +# the resulting binary.
28669 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
28670 +
28671 +# Set to yes if building a shared library automatically hardcodes DIR into the library
28672 +# and all subsequent libraries and executables linked against it.
28673 +hardcode_automatic=$hardcode_automatic_GCJ
28674 +
28675 +# Variables whose values should be saved in libtool wrapper scripts and
28676 +# restored at relink time.
28677 +variables_saved_for_relink="$variables_saved_for_relink"
28678 +
28679 +# Whether libtool must link a program against all its dependency libraries.
28680 +link_all_deplibs=$link_all_deplibs_GCJ
28681 +
28682 +# Compile-time system search path for libraries
28683 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28684 +
28685 +# Run-time system search path for libraries
28686 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28687 +
28688 +# Fix the shell variable \$srcfile for the compiler.
28689 +fix_srcfile_path="$fix_srcfile_path_GCJ"
28690 +
28691 +# Set to yes if exported symbols are required.
28692 +always_export_symbols=$always_export_symbols_GCJ
28693 +
28694 +# The commands to list exported symbols.
28695 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
28696 +
28697 +# The commands to extract the exported symbol list from a shared archive.
28698 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
28699 +
28700 +# Symbols that should not be listed in the preloaded symbols.
28701 +exclude_expsyms=$lt_exclude_expsyms_GCJ
28702 +
28703 +# Symbols that must always be exported.
28704 +include_expsyms=$lt_include_expsyms_GCJ
28705 +
28706 +# ### END LIBTOOL TAG CONFIG: $tagname
28707 +
28708 +__EOF__
28709 +
28710 +
28711 +else
28712 + # If there is no Makefile yet, we rely on a make rule to execute
28713 + # `config.status --recheck' to rerun these tests and create the
28714 + # libtool script then.
28715 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28716 + if test -f "$ltmain_in"; then
28717 + test -f Makefile && make "$ltmain"
28718 + fi
28719 +fi
28720 +
28721 +
28722 +ac_ext=c
28723 +ac_cpp='$CPP $CPPFLAGS'
28724 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28725 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28726 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28727 +
28728 +CC="$lt_save_CC"
28729 +
28730 + else
28731 + tagname=""
28732 + fi
28733 + ;;
28734 +
28735 + RC)
28736 +
28737 +
28738 +
28739 +# Source file extension for RC test sources.
28740 +ac_ext=rc
28741 +
28742 +# Object file extension for compiled RC test sources.
28743 +objext=o
28744 +objext_RC=$objext
28745 +
28746 +# Code to be used in simple compile tests
28747 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
28748 +
28749 +# Code to be used in simple link tests
28750 +lt_simple_link_test_code="$lt_simple_compile_test_code"
28751 +
28752 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
28753 +
28754 +# If no C compiler was specified, use CC.
28755 +LTCC=${LTCC-"$CC"}
28756 +
28757 +# If no C compiler flags were specified, use CFLAGS.
28758 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
28759 +
28760 +# Allow CC to be a program name with arguments.
28761 +compiler=$CC
28762 +
28763 +
28764 +# save warnings/boilerplate of simple test code
28765 +ac_outfile=conftest.$ac_objext
28766 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
28767 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28768 +_lt_compiler_boilerplate=`cat conftest.err`
28769 +$rm conftest*
28770 +
28771 +ac_outfile=conftest.$ac_objext
28772 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
28773 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28774 +_lt_linker_boilerplate=`cat conftest.err`
28775 +$rm conftest*
28776 +
28777 +
28778 +# Allow CC to be a program name with arguments.
28779 +lt_save_CC="$CC"
28780 +CC=${RC-"windres"}
28781 +compiler=$CC
28782 +compiler_RC=$CC
28783 +for cc_temp in $compiler""; do
28784 + case $cc_temp in
28785 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28786 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28787 + \-*) ;;
28788 + *) break;;
28789 + esac
28790 +done
28791 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28792 +
28793 +lt_cv_prog_compiler_c_o_RC=yes
28794 +
28795 +# The else clause should only fire when bootstrapping the
28796 +# libtool distribution, otherwise you forgot to ship ltmain.sh
28797 +# with your package, and you will get complaints that there are
28798 +# no rules to generate ltmain.sh.
28799 +if test -f "$ltmain"; then
28800 + # See if we are running on zsh, and set the options which allow our commands through
28801 + # without removal of \ escapes.
28802 + if test -n "${ZSH_VERSION+set}" ; then
28803 + setopt NO_GLOB_SUBST
28804 + fi
28805 + # Now quote all the things that may contain metacharacters while being
28806 + # careful not to overquote the AC_SUBSTed values. We take copies of the
28807 + # variables and quote the copies for generation of the libtool script.
28808 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
28809 + SED SHELL STRIP \
28810 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28811 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28812 + deplibs_check_method reload_flag reload_cmds need_locks \
28813 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28814 + lt_cv_sys_global_symbol_to_c_name_address \
28815 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28816 + old_postinstall_cmds old_postuninstall_cmds \
28817 + compiler_RC \
28818 + CC_RC \
28819 + LD_RC \
28820 + lt_prog_compiler_wl_RC \
28821 + lt_prog_compiler_pic_RC \
28822 + lt_prog_compiler_static_RC \
28823 + lt_prog_compiler_no_builtin_flag_RC \
28824 + export_dynamic_flag_spec_RC \
28825 + thread_safe_flag_spec_RC \
28826 + whole_archive_flag_spec_RC \
28827 + enable_shared_with_static_runtimes_RC \
28828 + old_archive_cmds_RC \
28829 + old_archive_from_new_cmds_RC \
28830 + predep_objects_RC \
28831 + postdep_objects_RC \
28832 + predeps_RC \
28833 + postdeps_RC \
28834 + compiler_lib_search_path_RC \
28835 + archive_cmds_RC \
28836 + archive_expsym_cmds_RC \
28837 + postinstall_cmds_RC \
28838 + postuninstall_cmds_RC \
28839 + old_archive_from_expsyms_cmds_RC \
28840 + allow_undefined_flag_RC \
28841 + no_undefined_flag_RC \
28842 + export_symbols_cmds_RC \
28843 + hardcode_libdir_flag_spec_RC \
28844 + hardcode_libdir_flag_spec_ld_RC \
28845 + hardcode_libdir_separator_RC \
28846 + hardcode_automatic_RC \
28847 + module_cmds_RC \
28848 + module_expsym_cmds_RC \
28849 + lt_cv_prog_compiler_c_o_RC \
28850 + exclude_expsyms_RC \
28851 + include_expsyms_RC; do
28852 +
28853 + case $var in
28854 + old_archive_cmds_RC | \
28855 + old_archive_from_new_cmds_RC | \
28856 + archive_cmds_RC | \
28857 + archive_expsym_cmds_RC | \
28858 + module_cmds_RC | \
28859 + module_expsym_cmds_RC | \
28860 + old_archive_from_expsyms_cmds_RC | \
28861 + export_symbols_cmds_RC | \
28862 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
28863 + postinstall_cmds | postuninstall_cmds | \
28864 + old_postinstall_cmds | old_postuninstall_cmds | \
28865 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28866 + # Double-quote double-evaled strings.
28867 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28868 + ;;
28869 + *)
28870 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28871 + ;;
28872 + esac
28873 + done
28874 +
28875 + case $lt_echo in
28876 + *'\$0 --fallback-echo"')
28877 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28878 + ;;
28879 + esac
28880 +
28881 +cfgfile="$ofile"
28882 +
28883 + cat <<__EOF__ >> "$cfgfile"
28884 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
28885 +
28886 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28887 +
28888 +# Shell to use when invoking shell scripts.
28889 +SHELL=$lt_SHELL
28890 +
28891 +# Whether or not to build shared libraries.
28892 +build_libtool_libs=$enable_shared
28893 +
28894 +# Whether or not to build static libraries.
28895 +build_old_libs=$enable_static
28896 +
28897 +# Whether or not to add -lc for building shared libraries.
28898 +build_libtool_need_lc=$archive_cmds_need_lc_RC
28899 +
28900 +# Whether or not to disallow shared libs when runtime libs are static
28901 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28902 +
28903 +# Whether or not to optimize for fast installation.
28904 +fast_install=$enable_fast_install
28905 +
28906 +# The host system.
28907 +host_alias=$host_alias
28908 +host=$host
28909 +host_os=$host_os
28910 +
28911 +# The build system.
28912 +build_alias=$build_alias
28913 +build=$build
28914 +build_os=$build_os
28915 +
28916 +# An echo program that does not interpret backslashes.
28917 +echo=$lt_echo
28918 +
28919 +# The archiver.
28920 +AR=$lt_AR
28921 +AR_FLAGS=$lt_AR_FLAGS
28922 +
28923 +# A C compiler.
28924 +LTCC=$lt_LTCC
28925 +
28926 +# LTCC compiler flags.
28927 +LTCFLAGS=$lt_LTCFLAGS
28928 +
28929 +# A language-specific compiler.
28930 +CC=$lt_compiler_RC
28931 +
28932 +# Is the compiler the GNU C compiler?
28933 +with_gcc=$GCC_RC
28934 +
28935 +# An ERE matcher.
28936 +EGREP=$lt_EGREP
28937 +
28938 +# The linker used to build libraries.
28939 +LD=$lt_LD_RC
28940 +
28941 +# Whether we need hard or soft links.
28942 +LN_S=$lt_LN_S
28943 +
28944 +# A BSD-compatible nm program.
28945 +NM=$lt_NM
28946 +
28947 +# A symbol stripping program
28948 +STRIP=$lt_STRIP
28949 +
28950 +# Used to examine libraries when file_magic_cmd begins "file"
28951 +MAGIC_CMD=$MAGIC_CMD
28952 +
28953 +# Used on cygwin: DLL creation program.
28954 +DLLTOOL="$DLLTOOL"
28955 +
28956 +# Used on cygwin: object dumper.
28957 +OBJDUMP="$OBJDUMP"
28958 +
28959 +# Used on cygwin: assembler.
28960 +AS="$AS"
28961 +
28962 +# The name of the directory that contains temporary libtool files.
28963 +objdir=$objdir
28964 +
28965 +# How to create reloadable object files.
28966 +reload_flag=$lt_reload_flag
28967 +reload_cmds=$lt_reload_cmds
28968 +
28969 +# How to pass a linker flag through the compiler.
28970 +wl=$lt_lt_prog_compiler_wl_RC
28971 +
28972 +# Object file suffix (normally "o").
28973 +objext="$ac_objext"
28974 +
28975 +# Old archive suffix (normally "a").
28976 +libext="$libext"
28977 +
28978 +# Shared library suffix (normally ".so").
28979 +shrext_cmds='$shrext_cmds'
28980 +
28981 +# Executable file suffix (normally "").
28982 +exeext="$exeext"
28983 +
28984 +# Additional compiler flags for building library objects.
28985 +pic_flag=$lt_lt_prog_compiler_pic_RC
28986 +pic_mode=$pic_mode
28987 +
28988 +# What is the maximum length of a command?
28989 +max_cmd_len=$lt_cv_sys_max_cmd_len
28990 +
28991 +# Does compiler simultaneously support -c and -o options?
28992 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28993 +
28994 +# Must we lock files when doing compilation?
28995 +need_locks=$lt_need_locks
28996 +
28997 +# Do we need the lib prefix for modules?
28998 +need_lib_prefix=$need_lib_prefix
28999 +
29000 +# Do we need a version for libraries?
29001 +need_version=$need_version
29002 +
29003 +# Whether dlopen is supported.
29004 +dlopen_support=$enable_dlopen
29005 +
29006 +# Whether dlopen of programs is supported.
29007 +dlopen_self=$enable_dlopen_self
29008 +
29009 +# Whether dlopen of statically linked programs is supported.
29010 +dlopen_self_static=$enable_dlopen_self_static
29011 +
29012 +# Compiler flag to prevent dynamic linking.
29013 +link_static_flag=$lt_lt_prog_compiler_static_RC
29014 +
29015 +# Compiler flag to turn off builtin functions.
29016 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29017 +
29018 +# Compiler flag to allow reflexive dlopens.
29019 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29020 +
29021 +# Compiler flag to generate shared objects directly from archives.
29022 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29023 +
29024 +# Compiler flag to generate thread-safe objects.
29025 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
29026 +
29027 +# Library versioning type.
29028 +version_type=$version_type
29029 +
29030 +# Format of library name prefix.
29031 +libname_spec=$lt_libname_spec
29032 +
29033 +# List of archive names. First name is the real one, the rest are links.
29034 +# The last name is the one that the linker finds with -lNAME.
29035 +library_names_spec=$lt_library_names_spec
29036 +
29037 +# The coded name of the library, if different from the real name.
29038 +soname_spec=$lt_soname_spec
29039 +
29040 +# Commands used to build and install an old-style archive.
29041 +RANLIB=$lt_RANLIB
29042 +old_archive_cmds=$lt_old_archive_cmds_RC
29043 +old_postinstall_cmds=$lt_old_postinstall_cmds
29044 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
29045 +
29046 +# Create an old-style archive from a shared archive.
29047 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29048 +
29049 +# Create a temporary old-style archive to link instead of a shared archive.
29050 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29051 +
29052 +# Commands used to build and install a shared archive.
29053 +archive_cmds=$lt_archive_cmds_RC
29054 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29055 +postinstall_cmds=$lt_postinstall_cmds
29056 +postuninstall_cmds=$lt_postuninstall_cmds
29057 +
29058 +# Commands used to build a loadable module (assumed same as above if empty)
29059 +module_cmds=$lt_module_cmds_RC
29060 +module_expsym_cmds=$lt_module_expsym_cmds_RC
29061 +
29062 +# Commands to strip libraries.
29063 +old_striplib=$lt_old_striplib
29064 +striplib=$lt_striplib
29065 +
29066 +# Dependencies to place before the objects being linked to create a
29067 +# shared library.
29068 +predep_objects=$lt_predep_objects_RC
29069 +
29070 +# Dependencies to place after the objects being linked to create a
29071 +# shared library.
29072 +postdep_objects=$lt_postdep_objects_RC
29073 +
29074 +# Dependencies to place before the objects being linked to create a
29075 +# shared library.
29076 +predeps=$lt_predeps_RC
29077 +
29078 +# Dependencies to place after the objects being linked to create a
29079 +# shared library.
29080 +postdeps=$lt_postdeps_RC
29081 +
29082 +# The library search path used internally by the compiler when linking
29083 +# a shared library.
29084 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29085 +
29086 +# Method to check whether dependent libraries are shared objects.
29087 +deplibs_check_method=$lt_deplibs_check_method
29088 +
29089 +# Command to use when deplibs_check_method == file_magic.
29090 +file_magic_cmd=$lt_file_magic_cmd
29091 +
29092 +# Flag that allows shared libraries with undefined symbols to be built.
29093 +allow_undefined_flag=$lt_allow_undefined_flag_RC
29094 +
29095 +# Flag that forces no undefined symbols.
29096 +no_undefined_flag=$lt_no_undefined_flag_RC
29097 +
29098 +# Commands used to finish a libtool library installation in a directory.
29099 +finish_cmds=$lt_finish_cmds
29100 +
29101 +# Same as above, but a single script fragment to be evaled but not shown.
29102 +finish_eval=$lt_finish_eval
29103 +
29104 +# Take the output of nm and produce a listing of raw symbols and C names.
29105 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29106 +
29107 +# Transform the output of nm in a proper C declaration
29108 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29109 +
29110 +# Transform the output of nm in a C name address pair
29111 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29112 +
29113 +# This is the shared library runtime path variable.
29114 +runpath_var=$runpath_var
29115 +
29116 +# This is the shared library path variable.
29117 +shlibpath_var=$shlibpath_var
29118 +
29119 +# Is shlibpath searched before the hard-coded library search path?
29120 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29121 +
29122 +# How to hardcode a shared library path into an executable.
29123 +hardcode_action=$hardcode_action_RC
29124 +
29125 +# Whether we should hardcode library paths into libraries.
29126 +hardcode_into_libs=$hardcode_into_libs
29127 +
29128 +# Flag to hardcode \$libdir into a binary during linking.
29129 +# This must work even if \$libdir does not exist.
29130 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29131 +
29132 +# If ld is used when linking, flag to hardcode \$libdir into
29133 +# a binary during linking. This must work even if \$libdir does
29134 +# not exist.
29135 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
29136 +
29137 +# Whether we need a single -rpath flag with a separated argument.
29138 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29139 +
29140 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29141 +# resulting binary.
29142 +hardcode_direct=$hardcode_direct_RC
29143 +
29144 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29145 +# resulting binary.
29146 +hardcode_minus_L=$hardcode_minus_L_RC
29147 +
29148 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29149 +# the resulting binary.
29150 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29151 +
29152 +# Set to yes if building a shared library automatically hardcodes DIR into the library
29153 +# and all subsequent libraries and executables linked against it.
29154 +hardcode_automatic=$hardcode_automatic_RC
29155 +
29156 +# Variables whose values should be saved in libtool wrapper scripts and
29157 +# restored at relink time.
29158 +variables_saved_for_relink="$variables_saved_for_relink"
29159 +
29160 +# Whether libtool must link a program against all its dependency libraries.
29161 +link_all_deplibs=$link_all_deplibs_RC
29162 +
29163 +# Compile-time system search path for libraries
29164 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29165 +
29166 +# Run-time system search path for libraries
29167 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29168 +
29169 +# Fix the shell variable \$srcfile for the compiler.
29170 +fix_srcfile_path="$fix_srcfile_path_RC"
29171 +
29172 +# Set to yes if exported symbols are required.
29173 +always_export_symbols=$always_export_symbols_RC
29174 +
29175 +# The commands to list exported symbols.
29176 +export_symbols_cmds=$lt_export_symbols_cmds_RC
29177 +
29178 +# The commands to extract the exported symbol list from a shared archive.
29179 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
29180 +
29181 +# Symbols that should not be listed in the preloaded symbols.
29182 +exclude_expsyms=$lt_exclude_expsyms_RC
29183 +
29184 +# Symbols that must always be exported.
29185 +include_expsyms=$lt_include_expsyms_RC
29186 +
29187 +# ### END LIBTOOL TAG CONFIG: $tagname
29188 +
29189 +__EOF__
29190 +
29191 +
29192 +else
29193 + # If there is no Makefile yet, we rely on a make rule to execute
29194 + # `config.status --recheck' to rerun these tests and create the
29195 + # libtool script then.
29196 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29197 + if test -f "$ltmain_in"; then
29198 + test -f Makefile && make "$ltmain"
29199 + fi
29200 +fi
29201 +
29202 +
29203 +ac_ext=c
29204 +ac_cpp='$CPP $CPPFLAGS'
29205 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
29208 +
29209 +CC="$lt_save_CC"
29210 +
29211 + ;;
29212 +
29213 + *)
29214 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
29215 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
29216 + { (exit 1); exit 1; }; }
29217 + ;;
29218 + esac
29219 +
29220 + # Append the new tag name to the list of available tags.
29221 + if test -n "$tagname" ; then
29222 + available_tags="$available_tags $tagname"
29223 + fi
29224 + fi
29225 + done
29226 + IFS="$lt_save_ifs"
29227 +
29228 + # Now substitute the updated list of available tags.
29229 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
29230 + mv "${ofile}T" "$ofile"
29231 + chmod +x "$ofile"
29232 + else
29233 + rm -f "${ofile}T"
29234 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
29235 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
29236 + { (exit 1); exit 1; }; }
29237 + fi
29238 +fi
29239 +
29240 +
29241 +
29242 +# This can be used to rebuild libtool when needed
29243 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
29244 +
29245 +# Always use our own libtool.
29246 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
29247 +
29248 +# Prevent multiple expansion
29249 +
29250 +
29251 +
29252 +
29253 +
29254 +
29255 +
29256 +
29257 +
29258 +
29259 +
29260 +
29261 +
29262 +
29263 +
29264 +
29265 +
29266 +
29267 +
29268 +
29269 +
29270 +
29271 +# Check whether --with-readline or --without-readline was given.
29272 +if test "${with_readline+set}" = set; then
29273 + withval="$with_readline"
29274 + use_readline=$withval
29275 +else
29276 + use_readline=yes
29277 +
29278 +fi;
29279 +
29280 +LUA_LIBS="-lm"
29281 +
29282 +# Check for readline
29283 +READLINE_DEFS="#undef LUA_USE_READLINE"
29284 +if test "x$use_readline" == "xyes"; then
29285 +
29286 +echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29287 +echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29288 +if test "${ac_cv_lib_readline_readline+set}" = set; then
29289 + echo $ECHO_N "(cached) $ECHO_C" >&6
29290 +else
29291 + ac_check_lib_save_LIBS=$LIBS
29292 +LIBS="-lreadline -lncurses $LIBS"
29293 +cat >conftest.$ac_ext <<_ACEOF
29294 +/* confdefs.h. */
29295 +_ACEOF
29296 +cat confdefs.h >>conftest.$ac_ext
29297 +cat >>conftest.$ac_ext <<_ACEOF
29298 +/* end confdefs.h. */
29299 +
29300 +/* Override any gcc2 internal prototype to avoid an error. */
29301 +#ifdef __cplusplus
29302 +extern "C"
29303 +#endif
29304 +/* We use char because int might match the return type of a gcc2
29305 + builtin and then its argument prototype would still apply. */
29306 +char readline ();
29307 +int
29308 +main ()
29309 +{
29310 +readline ();
29311 + ;
29312 + return 0;
29313 +}
29314 +_ACEOF
29315 +rm -f conftest.$ac_objext conftest$ac_exeext
29316 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317 + (eval $ac_link) 2>conftest.er1
29318 + ac_status=$?
29319 + grep -v '^ *+' conftest.er1 >conftest.err
29320 + rm -f conftest.er1
29321 + cat conftest.err >&5
29322 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 + (exit $ac_status); } &&
29324 + { ac_try='test -z "$ac_c_werror_flag"
29325 + || test ! -s conftest.err'
29326 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 + (eval $ac_try) 2>&5
29328 + ac_status=$?
29329 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 + (exit $ac_status); }; } &&
29331 + { ac_try='test -s conftest$ac_exeext'
29332 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 + (eval $ac_try) 2>&5
29334 + ac_status=$?
29335 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 + (exit $ac_status); }; }; then
29337 + ac_cv_lib_readline_readline=yes
29338 +else
29339 + echo "$as_me: failed program was:" >&5
29340 +sed 's/^/| /' conftest.$ac_ext >&5
29341 +
29342 +ac_cv_lib_readline_readline=no
29343 +fi
29344 +rm -f conftest.err conftest.$ac_objext \
29345 + conftest$ac_exeext conftest.$ac_ext
29346 +LIBS=$ac_check_lib_save_LIBS
29347 +fi
29348 +echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29349 +echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29350 +if test $ac_cv_lib_readline_readline = yes; then
29351 + cat >>confdefs.h <<_ACEOF
29352 +#define HAVE_LIBREADLINE 1
29353 +_ACEOF
29354 +
29355 + LIBS="-lreadline -lncurses $LIBS"
29356 +
29357 +else
29358 + use_readline=no
29359 +fi
29360 +
29361 +
29362 +
29363 +for ac_header in readline/readline.h readline/history.h
29364 +do
29365 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29366 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29367 + echo "$as_me:$LINENO: checking for $ac_header" >&5
29368 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29369 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29370 + echo $ECHO_N "(cached) $ECHO_C" >&6
29371 +fi
29372 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29373 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29374 +else
29375 + # Is the header compilable?
29376 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
29377 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29378 +cat >conftest.$ac_ext <<_ACEOF
29379 +/* confdefs.h. */
29380 +_ACEOF
29381 +cat confdefs.h >>conftest.$ac_ext
29382 +cat >>conftest.$ac_ext <<_ACEOF
29383 +/* end confdefs.h. */
29384 +$ac_includes_default
29385 +#include <$ac_header>
29386 +_ACEOF
29387 +rm -f conftest.$ac_objext
29388 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29389 + (eval $ac_compile) 2>conftest.er1
29390 + ac_status=$?
29391 + grep -v '^ *+' conftest.er1 >conftest.err
29392 + rm -f conftest.er1
29393 + cat conftest.err >&5
29394 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 + (exit $ac_status); } &&
29396 + { ac_try='test -z "$ac_c_werror_flag"
29397 + || test ! -s conftest.err'
29398 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 + (eval $ac_try) 2>&5
29400 + ac_status=$?
29401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 + (exit $ac_status); }; } &&
29403 + { ac_try='test -s conftest.$ac_objext'
29404 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 + (eval $ac_try) 2>&5
29406 + ac_status=$?
29407 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 + (exit $ac_status); }; }; then
29409 + ac_header_compiler=yes
29410 +else
29411 + echo "$as_me: failed program was:" >&5
29412 +sed 's/^/| /' conftest.$ac_ext >&5
29413 +
29414 +ac_header_compiler=no
29415 +fi
29416 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29417 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29418 +echo "${ECHO_T}$ac_header_compiler" >&6
29419 +
29420 +# Is the header present?
29421 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
29422 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29423 +cat >conftest.$ac_ext <<_ACEOF
29424 +/* confdefs.h. */
29425 +_ACEOF
29426 +cat confdefs.h >>conftest.$ac_ext
29427 +cat >>conftest.$ac_ext <<_ACEOF
29428 +/* end confdefs.h. */
29429 +#include <$ac_header>
29430 +_ACEOF
29431 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29432 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29433 + ac_status=$?
29434 + grep -v '^ *+' conftest.er1 >conftest.err
29435 + rm -f conftest.er1
29436 + cat conftest.err >&5
29437 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 + (exit $ac_status); } >/dev/null; then
29439 + if test -s conftest.err; then
29440 + ac_cpp_err=$ac_c_preproc_warn_flag
29441 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29442 + else
29443 + ac_cpp_err=
29444 + fi
29445 +else
29446 + ac_cpp_err=yes
29447 +fi
29448 +if test -z "$ac_cpp_err"; then
29449 + ac_header_preproc=yes
29450 +else
29451 + echo "$as_me: failed program was:" >&5
29452 +sed 's/^/| /' conftest.$ac_ext >&5
29453 +
29454 + ac_header_preproc=no
29455 +fi
29456 +rm -f conftest.err conftest.$ac_ext
29457 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29458 +echo "${ECHO_T}$ac_header_preproc" >&6
29459 +
29460 +# So? What about this header?
29461 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29462 + yes:no: )
29463 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29464 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29465 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29466 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29467 + ac_header_preproc=yes
29468 + ;;
29469 + no:yes:* )
29470 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29471 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29472 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29473 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29474 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29475 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29476 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29477 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29478 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29479 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29480 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29481 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29482 + (
29483 + cat <<\_ASBOX
29484 +## ------------------------------------------- ##
29485 +## Report this to the Autotoolized Lua lists. ##
29486 +## ------------------------------------------- ##
29487 +_ASBOX
29488 + ) |
29489 + sed "s/^/$as_me: WARNING: /" >&2
29490 + ;;
29491 +esac
29492 +echo "$as_me:$LINENO: checking for $ac_header" >&5
29493 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29494 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29495 + echo $ECHO_N "(cached) $ECHO_C" >&6
29496 +else
29497 + eval "$as_ac_Header=\$ac_header_preproc"
29498 +fi
29499 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29500 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29501 +
29502 +fi
29503 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
29504 + cat >>confdefs.h <<_ACEOF
29505 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29506 +_ACEOF
29507 +
29508 +else
29509 + use_readline=no
29510 +fi
29511 +
29512 +done
29513 +
29514 + if test "x$use_readline" == "xno"; then
29515 + { echo "$as_me:$LINENO: WARNING: readline headers could not be found, disabling readline support" >&5
29516 +echo "$as_me: WARNING: readline headers could not be found, disabling readline support" >&2;}
29517 + else
29518 + READLINE_DEFS="#define LUA_USE_READLINE"
29519 + LUA_LIBS="$LUA_LIBS -lreadline -lncurses"
29520 + fi
29521 +fi
29522 +
29523 +
29524 +case "$host" in
29525 + *-mingw*) use_os=win32 ;;
29526 + *-darwin*) use_os=macosx ;;
29527 + *) use_os=posix ;;
29528 +esac
29529 +
29530 +POSIX_DEFS="#undef LUA_USE_POSIX"
29531 +LUA_DL_DEFS="#undef LUA_USE_DLOPEN"
29532 +LUA_BUILD_AS_DLL_DEFS="#undef LUA_BUILD_AS_DLL"
29533 +
29534 +if test "x$use_os" == "xwin32"; then
29535 + LUA_BUILD_AS_DLL_DEFS="#define LUA_BUILD_AS_DLL"
29536 +elif test "x$use_os" == "xmacosx"; then
29537 + POSIX_DEFS="#define LUA_USE_POSIX"
29538 + LUA_DL_DEFS="#define LUA_DL_DYLD"
29539 +elif test "x$use_os" == "xposix"; then
29540 + POSIX_DEFS="#define LUA_USE_POSIX"
29541 + LUA_DL_DEFS="#define LUA_DL_DLOPEN"
29542 + LUA_LIBS="$LUA_LIBS -ldl"
29543 +fi
29544 +
29545 +
29546 +
29547 +
29548 +
29549 +
29550 + ac_config_files="$ac_config_files Makefile src/Makefile src/luaconf.h.template etc/Makefile etc/lua.pc doc/Makefile test/Makefile"
29551 +
29552 +cat >confcache <<\_ACEOF
29553 +# This file is a shell script that caches the results of configure
29554 +# tests run on this system so they can be shared between configure
29555 +# scripts and configure runs, see configure's option --config-cache.
29556 +# It is not useful on other systems. If it contains results you don't
29557 +# want to keep, you may remove or edit it.
29558 +#
29559 +# config.status only pays attention to the cache file if you give it
29560 +# the --recheck option to rerun configure.
29561 +#
29562 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
29563 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
29564 +# following values.
29565 +
29566 +_ACEOF
29567 +
29568 +# The following way of writing the cache mishandles newlines in values,
29569 +# but we know of no workaround that is simple, portable, and efficient.
29570 +# So, don't put newlines in cache variables' values.
29571 +# Ultrix sh set writes to stderr and can't be redirected directly,
29572 +# and sets the high bit in the cache file unless we assign to the vars.
29573 +{
29574 + (set) 2>&1 |
29575 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
29576 + *ac_space=\ *)
29577 + # `set' does not quote correctly, so add quotes (double-quote
29578 + # substitution turns \\\\ into \\, and sed turns \\ into \).
29579 + sed -n \
29580 + "s/'/'\\\\''/g;
29581 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29582 + ;;
29583 + *)
29584 + # `set' quotes correctly as required by POSIX, so do not add quotes.
29585 + sed -n \
29586 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29587 + ;;
29588 + esac;
29589 +} |
29590 + sed '
29591 + t clear
29592 + : clear
29593 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29594 + t end
29595 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29596 + : end' >>confcache
29597 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
29598 + if test -w $cache_file; then
29599 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29600 + cat confcache >$cache_file
29601 + else
29602 + echo "not updating unwritable cache $cache_file"
29603 + fi
29604 +fi
29605 +rm -f confcache
29606 +
29607 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
29608 +# Let make expand exec_prefix.
29609 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29610 +
29611 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
29612 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29613 +# trailing colons and then remove the whole line if VPATH becomes empty
29614 +# (actually we leave an empty line to preserve line numbers).
29615 +if test "x$srcdir" = x.; then
29616 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
29617 +s/:*\$(srcdir):*/:/;
29618 +s/:*\${srcdir}:*/:/;
29619 +s/:*@srcdir@:*/:/;
29620 +s/^\([^=]*=[ ]*\):*/\1/;
29621 +s/:*$//;
29622 +s/^[^=]*=[ ]*$//;
29623 +}'
29624 +fi
29625 +
29626 +DEFS=-DHAVE_CONFIG_H
29627 +
29628 +ac_libobjs=
29629 +ac_ltlibobjs=
29630 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29631 + # 1. Remove the extension, and $U if already installed.
29632 + ac_i=`echo "$ac_i" |
29633 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29634 + # 2. Add them.
29635 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29636 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29637 +done
29638 +LIBOBJS=$ac_libobjs
29639 +
29640 +LTLIBOBJS=$ac_ltlibobjs
29641 +
29642 +
29643 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29644 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29645 +Usually this means the macro was only invoked conditionally." >&5
29646 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
29647 +Usually this means the macro was only invoked conditionally." >&2;}
29648 + { (exit 1); exit 1; }; }
29649 +fi
29650 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29651 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29652 +Usually this means the macro was only invoked conditionally." >&5
29653 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29654 +Usually this means the macro was only invoked conditionally." >&2;}
29655 + { (exit 1); exit 1; }; }
29656 +fi
29657 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29658 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29659 +Usually this means the macro was only invoked conditionally." >&5
29660 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29661 +Usually this means the macro was only invoked conditionally." >&2;}
29662 + { (exit 1); exit 1; }; }
29663 +fi
29664 +
29665 +: ${CONFIG_STATUS=./config.status}
29666 +ac_clean_files_save=$ac_clean_files
29667 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29668 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29669 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
29670 +cat >$CONFIG_STATUS <<_ACEOF
29671 +#! $SHELL
29672 +# Generated by $as_me.
29673 +# Run this file to recreate the current configuration.
29674 +# Compiler output produced by configure, useful for debugging
29675 +# configure, is in config.log if it exists.
29676 +
29677 +debug=false
29678 +ac_cs_recheck=false
29679 +ac_cs_silent=false
29680 +SHELL=\${CONFIG_SHELL-$SHELL}
29681 +_ACEOF
29682 +
29683 +cat >>$CONFIG_STATUS <<\_ACEOF
29684 +## --------------------- ##
29685 +## M4sh Initialization. ##
29686 +## --------------------- ##
29687 +
29688 +# Be Bourne compatible
29689 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29690 + emulate sh
29691 + NULLCMD=:
29692 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29693 + # is contrary to our usage. Disable this feature.
29694 + alias -g '${1+"$@"}'='"$@"'
29695 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29696 + set -o posix
29697 +fi
29698 +DUALCASE=1; export DUALCASE # for MKS sh
29699 +
29700 +# Support unset when possible.
29701 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29702 + as_unset=unset
29703 +else
29704 + as_unset=false
29705 +fi
29706 +
29707 +
29708 +# Work around bugs in pre-3.0 UWIN ksh.
29709 +$as_unset ENV MAIL MAILPATH
29710 +PS1='$ '
29711 +PS2='> '
29712 +PS4='+ '
29713 +
29714 +# NLS nuisances.
29715 +for as_var in \
29716 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29717 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29718 + LC_TELEPHONE LC_TIME
29719 +do
29720 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29721 + eval $as_var=C; export $as_var
29722 + else
29723 + $as_unset $as_var
29724 + fi
29725 +done
29726 +
29727 +# Required to use basename.
29728 +if expr a : '\(a\)' >/dev/null 2>&1; then
29729 + as_expr=expr
29730 +else
29731 + as_expr=false
29732 +fi
29733 +
29734 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29735 + as_basename=basename
29736 +else
29737 + as_basename=false
29738 +fi
29739 +
29740 +
29741 +# Name of the executable.
29742 +as_me=`$as_basename "$0" ||
29743 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29744 + X"$0" : 'X\(//\)$' \| \
29745 + X"$0" : 'X\(/\)$' \| \
29746 + . : '\(.\)' 2>/dev/null ||
29747 +echo X/"$0" |
29748 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29749 + /^X\/\(\/\/\)$/{ s//\1/; q; }
29750 + /^X\/\(\/\).*/{ s//\1/; q; }
29751 + s/.*/./; q'`
29752 +
29753 +
29754 +# PATH needs CR, and LINENO needs CR and PATH.
29755 +# Avoid depending upon Character Ranges.
29756 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29757 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29758 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29759 +as_cr_digits='0123456789'
29760 +as_cr_alnum=$as_cr_Letters$as_cr_digits
29761 +
29762 +# The user is always right.
29763 +if test "${PATH_SEPARATOR+set}" != set; then
29764 + echo "#! /bin/sh" >conf$$.sh
29765 + echo "exit 0" >>conf$$.sh
29766 + chmod +x conf$$.sh
29767 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29768 + PATH_SEPARATOR=';'
29769 + else
29770 + PATH_SEPARATOR=:
29771 + fi
29772 + rm -f conf$$.sh
29773 +fi
29774 +
29775 +
29776 + as_lineno_1=$LINENO
29777 + as_lineno_2=$LINENO
29778 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29779 + test "x$as_lineno_1" != "x$as_lineno_2" &&
29780 + test "x$as_lineno_3" = "x$as_lineno_2" || {
29781 + # Find who we are. Look in the path if we contain no path at all
29782 + # relative or not.
29783 + case $0 in
29784 + *[\\/]* ) as_myself=$0 ;;
29785 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29786 +for as_dir in $PATH
29787 +do
29788 + IFS=$as_save_IFS
29789 + test -z "$as_dir" && as_dir=.
29790 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29791 +done
29792 +
29793 + ;;
29794 + esac
29795 + # We did not find ourselves, most probably we were run as `sh COMMAND'
29796 + # in which case we are not to be found in the path.
29797 + if test "x$as_myself" = x; then
29798 + as_myself=$0
29799 + fi
29800 + if test ! -f "$as_myself"; then
29801 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29802 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29803 + { (exit 1); exit 1; }; }
29804 + fi
29805 + case $CONFIG_SHELL in
29806 + '')
29807 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29808 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29809 +do
29810 + IFS=$as_save_IFS
29811 + test -z "$as_dir" && as_dir=.
29812 + for as_base in sh bash ksh sh5; do
29813 + case $as_dir in
29814 + /*)
29815 + if ("$as_dir/$as_base" -c '
29816 + as_lineno_1=$LINENO
29817 + as_lineno_2=$LINENO
29818 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29819 + test "x$as_lineno_1" != "x$as_lineno_2" &&
29820 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29821 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29822 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29823 + CONFIG_SHELL=$as_dir/$as_base
29824 + export CONFIG_SHELL
29825 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29826 + fi;;
29827 + esac
29828 + done
29829 +done
29830 +;;
29831 + esac
29832 +
29833 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29834 + # uniformly replaced by the line number. The first 'sed' inserts a
29835 + # line-number line before each line; the second 'sed' does the real
29836 + # work. The second script uses 'N' to pair each line-number line
29837 + # with the numbered line, and appends trailing '-' during
29838 + # substitution so that $LINENO is not a special case at line end.
29839 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29840 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29841 + sed '=' <$as_myself |
29842 + sed '
29843 + N
29844 + s,$,-,
29845 + : loop
29846 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29847 + t loop
29848 + s,-$,,
29849 + s,^['$as_cr_digits']*\n,,
29850 + ' >$as_me.lineno &&
29851 + chmod +x $as_me.lineno ||
29852 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29853 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29854 + { (exit 1); exit 1; }; }
29855 +
29856 + # Don't try to exec as it changes $[0], causing all sort of problems
29857 + # (the dirname of $[0] is not the place where we might find the
29858 + # original and so on. Autoconf is especially sensible to this).
29859 + . ./$as_me.lineno
29860 + # Exit status is that of the last command.
29861 + exit
29862 +}
29863 +
29864 +
29865 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29866 + *c*,-n*) ECHO_N= ECHO_C='
29867 +' ECHO_T=' ' ;;
29868 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29869 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29870 +esac
29871 +
29872 +if expr a : '\(a\)' >/dev/null 2>&1; then
29873 + as_expr=expr
29874 +else
29875 + as_expr=false
29876 +fi
29877 +
29878 +rm -f conf$$ conf$$.exe conf$$.file
29879 +echo >conf$$.file
29880 +if ln -s conf$$.file conf$$ 2>/dev/null; then
29881 + # We could just check for DJGPP; but this test a) works b) is more generic
29882 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29883 + if test -f conf$$.exe; then
29884 + # Don't use ln at all; we don't have any links
29885 + as_ln_s='cp -p'
29886 + else
29887 + as_ln_s='ln -s'
29888 + fi
29889 +elif ln conf$$.file conf$$ 2>/dev/null; then
29890 + as_ln_s=ln
29891 +else
29892 + as_ln_s='cp -p'
29893 +fi
29894 +rm -f conf$$ conf$$.exe conf$$.file
29895 +
29896 +if mkdir -p . 2>/dev/null; then
29897 + as_mkdir_p=:
29898 +else
29899 + test -d ./-p && rmdir ./-p
29900 + as_mkdir_p=false
29901 +fi
29902 +
29903 +as_executable_p="test -f"
29904 +
29905 +# Sed expression to map a string onto a valid CPP name.
29906 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29907 +
29908 +# Sed expression to map a string onto a valid variable name.
29909 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29910 +
29911 +
29912 +# IFS
29913 +# We need space, tab and new line, in precisely that order.
29914 +as_nl='
29915 +'
29916 +IFS=" $as_nl"
29917 +
29918 +# CDPATH.
29919 +$as_unset CDPATH
29920 +
29921 +exec 6>&1
29922 +
29923 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
29924 +# report actual input values of CONFIG_FILES etc. instead of their
29925 +# values after options handling. Logging --version etc. is OK.
29926 +exec 5>>config.log
29927 +{
29928 + echo
29929 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29930 +## Running $as_me. ##
29931 +_ASBOX
29932 +} >&5
29933 +cat >&5 <<_CSEOF
29934 +
29935 +This file was extended by Autotoolized Lua $as_me 5.1.3, which was
29936 +generated by GNU Autoconf 2.59. Invocation command line was
29937 +
29938 + CONFIG_FILES = $CONFIG_FILES
29939 + CONFIG_HEADERS = $CONFIG_HEADERS
29940 + CONFIG_LINKS = $CONFIG_LINKS
29941 + CONFIG_COMMANDS = $CONFIG_COMMANDS
29942 + $ $0 $@
29943 +
29944 +_CSEOF
29945 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29946 +echo >&5
29947 +_ACEOF
29948 +
29949 +# Files that config.status was made for.
29950 +if test -n "$ac_config_files"; then
29951 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29952 +fi
29953 +
29954 +if test -n "$ac_config_headers"; then
29955 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29956 +fi
29957 +
29958 +if test -n "$ac_config_links"; then
29959 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29960 +fi
29961 +
29962 +if test -n "$ac_config_commands"; then
29963 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29964 +fi
29965 +
29966 +cat >>$CONFIG_STATUS <<\_ACEOF
29967 +
29968 +ac_cs_usage="\
29969 +\`$as_me' instantiates files from templates according to the
29970 +current configuration.
29971 +
29972 +Usage: $0 [OPTIONS] [FILE]...
29973 +
29974 + -h, --help print this help, then exit
29975 + -V, --version print version number, then exit
29976 + -q, --quiet do not print progress messages
29977 + -d, --debug don't remove temporary files
29978 + --recheck update $as_me by reconfiguring in the same conditions
29979 + --file=FILE[:TEMPLATE]
29980 + instantiate the configuration file FILE
29981 + --header=FILE[:TEMPLATE]
29982 + instantiate the configuration header FILE
29983 +
29984 +Configuration files:
29985 +$config_files
29986 +
29987 +Configuration headers:
29988 +$config_headers
29989 +
29990 +Configuration commands:
29991 +$config_commands
29992 +
29993 +Report bugs to <bug-autoconf@gnu.org>."
29994 +_ACEOF
29995 +
29996 +cat >>$CONFIG_STATUS <<_ACEOF
29997 +ac_cs_version="\\
29998 +Autotoolized Lua config.status 5.1.3
29999 +configured by $0, generated by GNU Autoconf 2.59,
30000 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30001 +
30002 +Copyright (C) 2003 Free Software Foundation, Inc.
30003 +This config.status script is free software; the Free Software Foundation
30004 +gives unlimited permission to copy, distribute and modify it."
30005 +srcdir=$srcdir
30006 +INSTALL="$INSTALL"
30007 +_ACEOF
30008 +
30009 +cat >>$CONFIG_STATUS <<\_ACEOF
30010 +# If no file are specified by the user, then we need to provide default
30011 +# value. By we need to know if files were specified by the user.
30012 +ac_need_defaults=:
30013 +while test $# != 0
30014 +do
30015 + case $1 in
30016 + --*=*)
30017 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
30018 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30019 + ac_shift=:
30020 + ;;
30021 + -*)
30022 + ac_option=$1
30023 + ac_optarg=$2
30024 + ac_shift=shift
30025 + ;;
30026 + *) # This is not an option, so the user has probably given explicit
30027 + # arguments.
30028 + ac_option=$1
30029 + ac_need_defaults=false;;
30030 + esac
30031 +
30032 + case $ac_option in
30033 + # Handling of the options.
30034 +_ACEOF
30035 +cat >>$CONFIG_STATUS <<\_ACEOF
30036 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30037 + ac_cs_recheck=: ;;
30038 + --version | --vers* | -V )
30039 + echo "$ac_cs_version"; exit 0 ;;
30040 + --he | --h)
30041 + # Conflict between --help and --header
30042 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
30043 +Try \`$0 --help' for more information." >&5
30044 +echo "$as_me: error: ambiguous option: $1
30045 +Try \`$0 --help' for more information." >&2;}
30046 + { (exit 1); exit 1; }; };;
30047 + --help | --hel | -h )
30048 + echo "$ac_cs_usage"; exit 0 ;;
30049 + --debug | --d* | -d )
30050 + debug=: ;;
30051 + --file | --fil | --fi | --f )
30052 + $ac_shift
30053 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30054 + ac_need_defaults=false;;
30055 + --header | --heade | --head | --hea )
30056 + $ac_shift
30057 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30058 + ac_need_defaults=false;;
30059 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30060 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
30061 + ac_cs_silent=: ;;
30062 +
30063 + # This is an error.
30064 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30065 +Try \`$0 --help' for more information." >&5
30066 +echo "$as_me: error: unrecognized option: $1
30067 +Try \`$0 --help' for more information." >&2;}
30068 + { (exit 1); exit 1; }; } ;;
30069 +
30070 + *) ac_config_targets="$ac_config_targets $1" ;;
30071 +
30072 + esac
30073 + shift
30074 +done
30075 +
30076 +ac_configure_extra_args=
30077 +
30078 +if $ac_cs_silent; then
30079 + exec 6>/dev/null
30080 + ac_configure_extra_args="$ac_configure_extra_args --silent"
30081 +fi
30082 +
30083 +_ACEOF
30084 +cat >>$CONFIG_STATUS <<_ACEOF
30085 +if \$ac_cs_recheck; then
30086 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30087 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30088 +fi
30089 +
30090 +_ACEOF
30091 +
30092 +cat >>$CONFIG_STATUS <<_ACEOF
30093 +#
30094 +# INIT-COMMANDS section.
30095 +#
30096 +
30097 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30098 +
30099 +_ACEOF
30100 +
30101 +
30102 +
30103 +cat >>$CONFIG_STATUS <<\_ACEOF
30104 +for ac_config_target in $ac_config_targets
30105 +do
30106 + case "$ac_config_target" in
30107 + # Handling of arguments.
30108 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30109 + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30110 + "src/luaconf.h.template" ) CONFIG_FILES="$CONFIG_FILES src/luaconf.h.template" ;;
30111 + "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
30112 + "etc/lua.pc" ) CONFIG_FILES="$CONFIG_FILES etc/lua.pc" ;;
30113 + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30114 + "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
30115 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30116 + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30117 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30118 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30119 + { (exit 1); exit 1; }; };;
30120 + esac
30121 +done
30122 +
30123 +# If the user did not use the arguments to specify the items to instantiate,
30124 +# then the envvar interface is used. Set only those that are not.
30125 +# We use the long form for the default assignment because of an extremely
30126 +# bizarre bug on SunOS 4.1.3.
30127 +if $ac_need_defaults; then
30128 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30129 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30130 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30131 +fi
30132 +
30133 +# Have a temporary directory for convenience. Make it in the build tree
30134 +# simply because there is no reason to put it here, and in addition,
30135 +# creating and moving files from /tmp can sometimes cause problems.
30136 +# Create a temporary directory, and hook for its removal unless debugging.
30137 +$debug ||
30138 +{
30139 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30140 + trap '{ (exit 1); exit 1; }' 1 2 13 15
30141 +}
30142 +
30143 +# Create a (secure) tmp directory for tmp files.
30144 +
30145 +{
30146 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30147 + test -n "$tmp" && test -d "$tmp"
30148 +} ||
30149 +{
30150 + tmp=./confstat$$-$RANDOM
30151 + (umask 077 && mkdir $tmp)
30152 +} ||
30153 +{
30154 + echo "$me: cannot create a temporary directory in ." >&2
30155 + { (exit 1); exit 1; }
30156 +}
30157 +
30158 +_ACEOF
30159 +
30160 +cat >>$CONFIG_STATUS <<_ACEOF
30161 +
30162 +#
30163 +# CONFIG_FILES section.
30164 +#
30165 +
30166 +# No need to generate the scripts if there are no CONFIG_FILES.
30167 +# This happens for instance when ./config.status config.h
30168 +if test -n "\$CONFIG_FILES"; then
30169 + # Protect against being on the right side of a sed subst in config.status.
30170 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30171 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30172 +s,@SHELL@,$SHELL,;t t
30173 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30174 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30175 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30176 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30177 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30178 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30179 +s,@exec_prefix@,$exec_prefix,;t t
30180 +s,@prefix@,$prefix,;t t
30181 +s,@program_transform_name@,$program_transform_name,;t t
30182 +s,@bindir@,$bindir,;t t
30183 +s,@sbindir@,$sbindir,;t t
30184 +s,@libexecdir@,$libexecdir,;t t
30185 +s,@datadir@,$datadir,;t t
30186 +s,@sysconfdir@,$sysconfdir,;t t
30187 +s,@sharedstatedir@,$sharedstatedir,;t t
30188 +s,@localstatedir@,$localstatedir,;t t
30189 +s,@libdir@,$libdir,;t t
30190 +s,@includedir@,$includedir,;t t
30191 +s,@oldincludedir@,$oldincludedir,;t t
30192 +s,@infodir@,$infodir,;t t
30193 +s,@mandir@,$mandir,;t t
30194 +s,@build_alias@,$build_alias,;t t
30195 +s,@host_alias@,$host_alias,;t t
30196 +s,@target_alias@,$target_alias,;t t
30197 +s,@DEFS@,$DEFS,;t t
30198 +s,@ECHO_C@,$ECHO_C,;t t
30199 +s,@ECHO_N@,$ECHO_N,;t t
30200 +s,@ECHO_T@,$ECHO_T,;t t
30201 +s,@LIBS@,$LIBS,;t t
30202 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30203 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30204 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30205 +s,@CYGPATH_W@,$CYGPATH_W,;t t
30206 +s,@PACKAGE@,$PACKAGE,;t t
30207 +s,@VERSION@,$VERSION,;t t
30208 +s,@ACLOCAL@,$ACLOCAL,;t t
30209 +s,@AUTOCONF@,$AUTOCONF,;t t
30210 +s,@AUTOMAKE@,$AUTOMAKE,;t t
30211 +s,@AUTOHEADER@,$AUTOHEADER,;t t
30212 +s,@MAKEINFO@,$MAKEINFO,;t t
30213 +s,@install_sh@,$install_sh,;t t
30214 +s,@STRIP@,$STRIP,;t t
30215 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30216 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30217 +s,@mkdir_p@,$mkdir_p,;t t
30218 +s,@AWK@,$AWK,;t t
30219 +s,@SET_MAKE@,$SET_MAKE,;t t
30220 +s,@am__leading_dot@,$am__leading_dot,;t t
30221 +s,@AMTAR@,$AMTAR,;t t
30222 +s,@am__tar@,$am__tar,;t t
30223 +s,@am__untar@,$am__untar,;t t
30224 +s,@CC@,$CC,;t t
30225 +s,@CFLAGS@,$CFLAGS,;t t
30226 +s,@LDFLAGS@,$LDFLAGS,;t t
30227 +s,@CPPFLAGS@,$CPPFLAGS,;t t
30228 +s,@ac_ct_CC@,$ac_ct_CC,;t t
30229 +s,@EXEEXT@,$EXEEXT,;t t
30230 +s,@OBJEXT@,$OBJEXT,;t t
30231 +s,@DEPDIR@,$DEPDIR,;t t
30232 +s,@am__include@,$am__include,;t t
30233 +s,@am__quote@,$am__quote,;t t
30234 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30235 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30236 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30237 +s,@CCDEPMODE@,$CCDEPMODE,;t t
30238 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30239 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30240 +s,@build@,$build,;t t
30241 +s,@build_cpu@,$build_cpu,;t t
30242 +s,@build_vendor@,$build_vendor,;t t
30243 +s,@build_os@,$build_os,;t t
30244 +s,@host@,$host,;t t
30245 +s,@host_cpu@,$host_cpu,;t t
30246 +s,@host_vendor@,$host_vendor,;t t
30247 +s,@host_os@,$host_os,;t t
30248 +s,@EGREP@,$EGREP,;t t
30249 +s,@LN_S@,$LN_S,;t t
30250 +s,@ECHO@,$ECHO,;t t
30251 +s,@AR@,$AR,;t t
30252 +s,@ac_ct_AR@,$ac_ct_AR,;t t
30253 +s,@RANLIB@,$RANLIB,;t t
30254 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30255 +s,@CPP@,$CPP,;t t
30256 +s,@CXX@,$CXX,;t t
30257 +s,@CXXFLAGS@,$CXXFLAGS,;t t
30258 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30259 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30260 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30261 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30262 +s,@CXXCPP@,$CXXCPP,;t t
30263 +s,@F77@,$F77,;t t
30264 +s,@FFLAGS@,$FFLAGS,;t t
30265 +s,@ac_ct_F77@,$ac_ct_F77,;t t
30266 +s,@LIBTOOL@,$LIBTOOL,;t t
30267 +s,@READLINE_DEFS@,$READLINE_DEFS,;t t
30268 +s,@POSIX_DEFS@,$POSIX_DEFS,;t t
30269 +s,@LUA_DL_DEFS@,$LUA_DL_DEFS,;t t
30270 +s,@LUA_BUILD_AS_DLL_DEFS@,$LUA_BUILD_AS_DLL_DEFS,;t t
30271 +s,@LUA_LIBS@,$LUA_LIBS,;t t
30272 +s,@LIBOBJS@,$LIBOBJS,;t t
30273 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30274 +CEOF
30275 +
30276 +_ACEOF
30277 +
30278 + cat >>$CONFIG_STATUS <<\_ACEOF
30279 + # Split the substitutions into bite-sized pieces for seds with
30280 + # small command number limits, like on Digital OSF/1 and HP-UX.
30281 + ac_max_sed_lines=48
30282 + ac_sed_frag=1 # Number of current file.
30283 + ac_beg=1 # First line for current file.
30284 + ac_end=$ac_max_sed_lines # Line after last line for current file.
30285 + ac_more_lines=:
30286 + ac_sed_cmds=
30287 + while $ac_more_lines; do
30288 + if test $ac_beg -gt 1; then
30289 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30290 + else
30291 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30292 + fi
30293 + if test ! -s $tmp/subs.frag; then
30294 + ac_more_lines=false
30295 + else
30296 + # The purpose of the label and of the branching condition is to
30297 + # speed up the sed processing (if there are no `@' at all, there
30298 + # is no need to browse any of the substitutions).
30299 + # These are the two extra sed commands mentioned above.
30300 + (echo ':t
30301 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30302 + if test -z "$ac_sed_cmds"; then
30303 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30304 + else
30305 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30306 + fi
30307 + ac_sed_frag=`expr $ac_sed_frag + 1`
30308 + ac_beg=$ac_end
30309 + ac_end=`expr $ac_end + $ac_max_sed_lines`
30310 + fi
30311 + done
30312 + if test -z "$ac_sed_cmds"; then
30313 + ac_sed_cmds=cat
30314 + fi
30315 +fi # test -n "$CONFIG_FILES"
30316 +
30317 +_ACEOF
30318 +cat >>$CONFIG_STATUS <<\_ACEOF
30319 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30320 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30321 + case $ac_file in
30322 + - | *:- | *:-:* ) # input from stdin
30323 + cat >$tmp/stdin
30324 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30325 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30326 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30327 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30328 + * ) ac_file_in=$ac_file.in ;;
30329 + esac
30330 +
30331 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30332 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30333 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30334 + X"$ac_file" : 'X\(//\)[^/]' \| \
30335 + X"$ac_file" : 'X\(//\)$' \| \
30336 + X"$ac_file" : 'X\(/\)' \| \
30337 + . : '\(.\)' 2>/dev/null ||
30338 +echo X"$ac_file" |
30339 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30340 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30341 + /^X\(\/\/\)$/{ s//\1/; q; }
30342 + /^X\(\/\).*/{ s//\1/; q; }
30343 + s/.*/./; q'`
30344 + { if $as_mkdir_p; then
30345 + mkdir -p "$ac_dir"
30346 + else
30347 + as_dir="$ac_dir"
30348 + as_dirs=
30349 + while test ! -d "$as_dir"; do
30350 + as_dirs="$as_dir $as_dirs"
30351 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30352 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30353 + X"$as_dir" : 'X\(//\)[^/]' \| \
30354 + X"$as_dir" : 'X\(//\)$' \| \
30355 + X"$as_dir" : 'X\(/\)' \| \
30356 + . : '\(.\)' 2>/dev/null ||
30357 +echo X"$as_dir" |
30358 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30359 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30360 + /^X\(\/\/\)$/{ s//\1/; q; }
30361 + /^X\(\/\).*/{ s//\1/; q; }
30362 + s/.*/./; q'`
30363 + done
30364 + test ! -n "$as_dirs" || mkdir $as_dirs
30365 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30366 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30367 + { (exit 1); exit 1; }; }; }
30368 +
30369 + ac_builddir=.
30370 +
30371 +if test "$ac_dir" != .; then
30372 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30373 + # A "../" for each directory in $ac_dir_suffix.
30374 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30375 +else
30376 + ac_dir_suffix= ac_top_builddir=
30377 +fi
30378 +
30379 +case $srcdir in
30380 + .) # No --srcdir option. We are building in place.
30381 + ac_srcdir=.
30382 + if test -z "$ac_top_builddir"; then
30383 + ac_top_srcdir=.
30384 + else
30385 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30386 + fi ;;
30387 + [\\/]* | ?:[\\/]* ) # Absolute path.
30388 + ac_srcdir=$srcdir$ac_dir_suffix;
30389 + ac_top_srcdir=$srcdir ;;
30390 + *) # Relative path.
30391 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30392 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
30393 +esac
30394 +
30395 +# Do not use `cd foo && pwd` to compute absolute paths, because
30396 +# the directories may not exist.
30397 +case `pwd` in
30398 +.) ac_abs_builddir="$ac_dir";;
30399 +*)
30400 + case "$ac_dir" in
30401 + .) ac_abs_builddir=`pwd`;;
30402 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30403 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
30404 + esac;;
30405 +esac
30406 +case $ac_abs_builddir in
30407 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
30408 +*)
30409 + case ${ac_top_builddir}. in
30410 + .) ac_abs_top_builddir=$ac_abs_builddir;;
30411 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30412 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30413 + esac;;
30414 +esac
30415 +case $ac_abs_builddir in
30416 +.) ac_abs_srcdir=$ac_srcdir;;
30417 +*)
30418 + case $ac_srcdir in
30419 + .) ac_abs_srcdir=$ac_abs_builddir;;
30420 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30421 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30422 + esac;;
30423 +esac
30424 +case $ac_abs_builddir in
30425 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
30426 +*)
30427 + case $ac_top_srcdir in
30428 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
30429 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30430 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30431 + esac;;
30432 +esac
30433 +
30434 +
30435 + case $INSTALL in
30436 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30437 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30438 + esac
30439 +
30440 + if test x"$ac_file" != x-; then
30441 + { echo "$as_me:$LINENO: creating $ac_file" >&5
30442 +echo "$as_me: creating $ac_file" >&6;}
30443 + rm -f "$ac_file"
30444 + fi
30445 + # Let's still pretend it is `configure' which instantiates (i.e., don't
30446 + # use $as_me), people would be surprised to read:
30447 + # /* config.h. Generated by config.status. */
30448 + if test x"$ac_file" = x-; then
30449 + configure_input=
30450 + else
30451 + configure_input="$ac_file. "
30452 + fi
30453 + configure_input=$configure_input"Generated from `echo $ac_file_in |
30454 + sed 's,.*/,,'` by configure."
30455 +
30456 + # First look for the input files in the build tree, otherwise in the
30457 + # src tree.
30458 + ac_file_inputs=`IFS=:
30459 + for f in $ac_file_in; do
30460 + case $f in
30461 + -) echo $tmp/stdin ;;
30462 + [\\/$]*)
30463 + # Absolute (can't be DOS-style, as IFS=:)
30464 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30465 +echo "$as_me: error: cannot find input file: $f" >&2;}
30466 + { (exit 1); exit 1; }; }
30467 + echo "$f";;
30468 + *) # Relative
30469 + if test -f "$f"; then
30470 + # Build tree
30471 + echo "$f"
30472 + elif test -f "$srcdir/$f"; then
30473 + # Source tree
30474 + echo "$srcdir/$f"
30475 + else
30476 + # /dev/null tree
30477 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30478 +echo "$as_me: error: cannot find input file: $f" >&2;}
30479 + { (exit 1); exit 1; }; }
30480 + fi;;
30481 + esac
30482 + done` || { (exit 1); exit 1; }
30483 +_ACEOF
30484 +cat >>$CONFIG_STATUS <<_ACEOF
30485 + sed "$ac_vpsub
30486 +$extrasub
30487 +_ACEOF
30488 +cat >>$CONFIG_STATUS <<\_ACEOF
30489 +:t
30490 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30491 +s,@configure_input@,$configure_input,;t t
30492 +s,@srcdir@,$ac_srcdir,;t t
30493 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
30494 +s,@top_srcdir@,$ac_top_srcdir,;t t
30495 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30496 +s,@builddir@,$ac_builddir,;t t
30497 +s,@abs_builddir@,$ac_abs_builddir,;t t
30498 +s,@top_builddir@,$ac_top_builddir,;t t
30499 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30500 +s,@INSTALL@,$ac_INSTALL,;t t
30501 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30502 + rm -f $tmp/stdin
30503 + if test x"$ac_file" != x-; then
30504 + mv $tmp/out $ac_file
30505 + else
30506 + cat $tmp/out
30507 + rm -f $tmp/out
30508 + fi
30509 +
30510 +done
30511 +_ACEOF
30512 +cat >>$CONFIG_STATUS <<\_ACEOF
30513 +
30514 +#
30515 +# CONFIG_HEADER section.
30516 +#
30517 +
30518 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30519 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
30520 +#
30521 +# ac_d sets the value in "#define NAME VALUE" lines.
30522 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30523 +ac_dB='[ ].*$,\1#\2'
30524 +ac_dC=' '
30525 +ac_dD=',;t'
30526 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30527 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30528 +ac_uB='$,\1#\2define\3'
30529 +ac_uC=' '
30530 +ac_uD=',;t'
30531 +
30532 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30533 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30534 + case $ac_file in
30535 + - | *:- | *:-:* ) # input from stdin
30536 + cat >$tmp/stdin
30537 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30538 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30539 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30540 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30541 + * ) ac_file_in=$ac_file.in ;;
30542 + esac
30543 +
30544 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30545 +echo "$as_me: creating $ac_file" >&6;}
30546 +
30547 + # First look for the input files in the build tree, otherwise in the
30548 + # src tree.
30549 + ac_file_inputs=`IFS=:
30550 + for f in $ac_file_in; do
30551 + case $f in
30552 + -) echo $tmp/stdin ;;
30553 + [\\/$]*)
30554 + # Absolute (can't be DOS-style, as IFS=:)
30555 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30556 +echo "$as_me: error: cannot find input file: $f" >&2;}
30557 + { (exit 1); exit 1; }; }
30558 + # Do quote $f, to prevent DOS paths from being IFS'd.
30559 + echo "$f";;
30560 + *) # Relative
30561 + if test -f "$f"; then
30562 + # Build tree
30563 + echo "$f"
30564 + elif test -f "$srcdir/$f"; then
30565 + # Source tree
30566 + echo "$srcdir/$f"
30567 + else
30568 + # /dev/null tree
30569 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30570 +echo "$as_me: error: cannot find input file: $f" >&2;}
30571 + { (exit 1); exit 1; }; }
30572 + fi;;
30573 + esac
30574 + done` || { (exit 1); exit 1; }
30575 + # Remove the trailing spaces.
30576 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30577 +
30578 +_ACEOF
30579 +
30580 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
30581 +# `conftest.undefs', that substitutes the proper values into
30582 +# config.h.in to produce config.h. The first handles `#define'
30583 +# templates, and the second `#undef' templates.
30584 +# And first: Protect against being on the right side of a sed subst in
30585 +# config.status. Protect against being in an unquoted here document
30586 +# in config.status.
30587 +rm -f conftest.defines conftest.undefs
30588 +# Using a here document instead of a string reduces the quoting nightmare.
30589 +# Putting comments in sed scripts is not portable.
30590 +#
30591 +# `end' is used to avoid that the second main sed command (meant for
30592 +# 0-ary CPP macros) applies to n-ary macro definitions.
30593 +# See the Autoconf documentation for `clear'.
30594 +cat >confdef2sed.sed <<\_ACEOF
30595 +s/[\\&,]/\\&/g
30596 +s,[\\$`],\\&,g
30597 +t clear
30598 +: clear
30599 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30600 +t end
30601 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30602 +: end
30603 +_ACEOF
30604 +# If some macros were called several times there might be several times
30605 +# the same #defines, which is useless. Nevertheless, we may not want to
30606 +# sort them, since we want the *last* AC-DEFINE to be honored.
30607 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30608 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30609 +rm -f confdef2sed.sed
30610 +
30611 +# This sed command replaces #undef with comments. This is necessary, for
30612 +# example, in the case of _POSIX_SOURCE, which is predefined and required
30613 +# on some systems where configure will not decide to define it.
30614 +cat >>conftest.undefs <<\_ACEOF
30615 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30616 +_ACEOF
30617 +
30618 +# Break up conftest.defines because some shells have a limit on the size
30619 +# of here documents, and old seds have small limits too (100 cmds).
30620 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30621 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30622 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30623 +echo ' :' >>$CONFIG_STATUS
30624 +rm -f conftest.tail
30625 +while grep . conftest.defines >/dev/null
30626 +do
30627 + # Write a limited-size here document to $tmp/defines.sed.
30628 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30629 + # Speed up: don't consider the non `#define' lines.
30630 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30631 + # Work around the forget-to-reset-the-flag bug.
30632 + echo 't clr' >>$CONFIG_STATUS
30633 + echo ': clr' >>$CONFIG_STATUS
30634 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30635 + echo 'CEOF
30636 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
30637 + rm -f $tmp/in
30638 + mv $tmp/out $tmp/in
30639 +' >>$CONFIG_STATUS
30640 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30641 + rm -f conftest.defines
30642 + mv conftest.tail conftest.defines
30643 +done
30644 +rm -f conftest.defines
30645 +echo ' fi # grep' >>$CONFIG_STATUS
30646 +echo >>$CONFIG_STATUS
30647 +
30648 +# Break up conftest.undefs because some shells have a limit on the size
30649 +# of here documents, and old seds have small limits too (100 cmds).
30650 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30651 +rm -f conftest.tail
30652 +while grep . conftest.undefs >/dev/null
30653 +do
30654 + # Write a limited-size here document to $tmp/undefs.sed.
30655 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30656 + # Speed up: don't consider the non `#undef'
30657 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30658 + # Work around the forget-to-reset-the-flag bug.
30659 + echo 't clr' >>$CONFIG_STATUS
30660 + echo ': clr' >>$CONFIG_STATUS
30661 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30662 + echo 'CEOF
30663 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30664 + rm -f $tmp/in
30665 + mv $tmp/out $tmp/in
30666 +' >>$CONFIG_STATUS
30667 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30668 + rm -f conftest.undefs
30669 + mv conftest.tail conftest.undefs
30670 +done
30671 +rm -f conftest.undefs
30672 +
30673 +cat >>$CONFIG_STATUS <<\_ACEOF
30674 + # Let's still pretend it is `configure' which instantiates (i.e., don't
30675 + # use $as_me), people would be surprised to read:
30676 + # /* config.h. Generated by config.status. */
30677 + if test x"$ac_file" = x-; then
30678 + echo "/* Generated by configure. */" >$tmp/config.h
30679 + else
30680 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30681 + fi
30682 + cat $tmp/in >>$tmp/config.h
30683 + rm -f $tmp/in
30684 + if test x"$ac_file" != x-; then
30685 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30686 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30687 +echo "$as_me: $ac_file is unchanged" >&6;}
30688 + else
30689 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30690 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30691 + X"$ac_file" : 'X\(//\)[^/]' \| \
30692 + X"$ac_file" : 'X\(//\)$' \| \
30693 + X"$ac_file" : 'X\(/\)' \| \
30694 + . : '\(.\)' 2>/dev/null ||
30695 +echo X"$ac_file" |
30696 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30697 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30698 + /^X\(\/\/\)$/{ s//\1/; q; }
30699 + /^X\(\/\).*/{ s//\1/; q; }
30700 + s/.*/./; q'`
30701 + { if $as_mkdir_p; then
30702 + mkdir -p "$ac_dir"
30703 + else
30704 + as_dir="$ac_dir"
30705 + as_dirs=
30706 + while test ! -d "$as_dir"; do
30707 + as_dirs="$as_dir $as_dirs"
30708 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30709 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30710 + X"$as_dir" : 'X\(//\)[^/]' \| \
30711 + X"$as_dir" : 'X\(//\)$' \| \
30712 + X"$as_dir" : 'X\(/\)' \| \
30713 + . : '\(.\)' 2>/dev/null ||
30714 +echo X"$as_dir" |
30715 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30716 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30717 + /^X\(\/\/\)$/{ s//\1/; q; }
30718 + /^X\(\/\).*/{ s//\1/; q; }
30719 + s/.*/./; q'`
30720 + done
30721 + test ! -n "$as_dirs" || mkdir $as_dirs
30722 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30723 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30724 + { (exit 1); exit 1; }; }; }
30725 +
30726 + rm -f $ac_file
30727 + mv $tmp/config.h $ac_file
30728 + fi
30729 + else
30730 + cat $tmp/config.h
30731 + rm -f $tmp/config.h
30732 + fi
30733 +# Compute $ac_file's index in $config_headers.
30734 +_am_stamp_count=1
30735 +for _am_header in $config_headers :; do
30736 + case $_am_header in
30737 + $ac_file | $ac_file:* )
30738 + break ;;
30739 + * )
30740 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30741 + esac
30742 +done
30743 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30744 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30745 + X$ac_file : 'X\(//\)[^/]' \| \
30746 + X$ac_file : 'X\(//\)$' \| \
30747 + X$ac_file : 'X\(/\)' \| \
30748 + . : '\(.\)' 2>/dev/null ||
30749 +echo X$ac_file |
30750 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30751 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30752 + /^X\(\/\/\)$/{ s//\1/; q; }
30753 + /^X\(\/\).*/{ s//\1/; q; }
30754 + s/.*/./; q'`/stamp-h$_am_stamp_count
30755 +done
30756 +_ACEOF
30757 +cat >>$CONFIG_STATUS <<\_ACEOF
30758 +
30759 +#
30760 +# CONFIG_COMMANDS section.
30761 +#
30762 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30763 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30764 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30765 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30766 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30767 + X"$ac_dest" : 'X\(//\)[^/]' \| \
30768 + X"$ac_dest" : 'X\(//\)$' \| \
30769 + X"$ac_dest" : 'X\(/\)' \| \
30770 + . : '\(.\)' 2>/dev/null ||
30771 +echo X"$ac_dest" |
30772 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30773 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30774 + /^X\(\/\/\)$/{ s//\1/; q; }
30775 + /^X\(\/\).*/{ s//\1/; q; }
30776 + s/.*/./; q'`
30777 + { if $as_mkdir_p; then
30778 + mkdir -p "$ac_dir"
30779 + else
30780 + as_dir="$ac_dir"
30781 + as_dirs=
30782 + while test ! -d "$as_dir"; do
30783 + as_dirs="$as_dir $as_dirs"
30784 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30785 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30786 + X"$as_dir" : 'X\(//\)[^/]' \| \
30787 + X"$as_dir" : 'X\(//\)$' \| \
30788 + X"$as_dir" : 'X\(/\)' \| \
30789 + . : '\(.\)' 2>/dev/null ||
30790 +echo X"$as_dir" |
30791 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30792 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30793 + /^X\(\/\/\)$/{ s//\1/; q; }
30794 + /^X\(\/\).*/{ s//\1/; q; }
30795 + s/.*/./; q'`
30796 + done
30797 + test ! -n "$as_dirs" || mkdir $as_dirs
30798 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30799 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30800 + { (exit 1); exit 1; }; }; }
30801 +
30802 + ac_builddir=.
30803 +
30804 +if test "$ac_dir" != .; then
30805 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30806 + # A "../" for each directory in $ac_dir_suffix.
30807 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30808 +else
30809 + ac_dir_suffix= ac_top_builddir=
30810 +fi
30811 +
30812 +case $srcdir in
30813 + .) # No --srcdir option. We are building in place.
30814 + ac_srcdir=.
30815 + if test -z "$ac_top_builddir"; then
30816 + ac_top_srcdir=.
30817 + else
30818 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30819 + fi ;;
30820 + [\\/]* | ?:[\\/]* ) # Absolute path.
30821 + ac_srcdir=$srcdir$ac_dir_suffix;
30822 + ac_top_srcdir=$srcdir ;;
30823 + *) # Relative path.
30824 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30825 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
30826 +esac
30827 +
30828 +# Do not use `cd foo && pwd` to compute absolute paths, because
30829 +# the directories may not exist.
30830 +case `pwd` in
30831 +.) ac_abs_builddir="$ac_dir";;
30832 +*)
30833 + case "$ac_dir" in
30834 + .) ac_abs_builddir=`pwd`;;
30835 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30836 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
30837 + esac;;
30838 +esac
30839 +case $ac_abs_builddir in
30840 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
30841 +*)
30842 + case ${ac_top_builddir}. in
30843 + .) ac_abs_top_builddir=$ac_abs_builddir;;
30844 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30845 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30846 + esac;;
30847 +esac
30848 +case $ac_abs_builddir in
30849 +.) ac_abs_srcdir=$ac_srcdir;;
30850 +*)
30851 + case $ac_srcdir in
30852 + .) ac_abs_srcdir=$ac_abs_builddir;;
30853 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30854 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30855 + esac;;
30856 +esac
30857 +case $ac_abs_builddir in
30858 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
30859 +*)
30860 + case $ac_top_srcdir in
30861 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
30862 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30863 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30864 + esac;;
30865 +esac
30866 +
30867 +
30868 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30869 +echo "$as_me: executing $ac_dest commands" >&6;}
30870 + case $ac_dest in
30871 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30872 + # Strip MF so we end up with the name of the file.
30873 + mf=`echo "$mf" | sed -e 's/:.*$//'`
30874 + # Check whether this is an Automake generated Makefile or not.
30875 + # We used to match only the files named `Makefile.in', but
30876 + # some people rename them; so instead we look at the file content.
30877 + # Grep'ing the first line is not enough: some people post-process
30878 + # each Makefile.in and add a new line on top of each file to say so.
30879 + # So let's grep whole file.
30880 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30881 + dirpart=`(dirname "$mf") 2>/dev/null ||
30882 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30883 + X"$mf" : 'X\(//\)[^/]' \| \
30884 + X"$mf" : 'X\(//\)$' \| \
30885 + X"$mf" : 'X\(/\)' \| \
30886 + . : '\(.\)' 2>/dev/null ||
30887 +echo X"$mf" |
30888 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30889 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30890 + /^X\(\/\/\)$/{ s//\1/; q; }
30891 + /^X\(\/\).*/{ s//\1/; q; }
30892 + s/.*/./; q'`
30893 + else
30894 + continue
30895 + fi
30896 + # Extract the definition of DEPDIR, am__include, and am__quote
30897 + # from the Makefile without running `make'.
30898 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30899 + test -z "$DEPDIR" && continue
30900 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
30901 + test -z "am__include" && continue
30902 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30903 + # When using ansi2knr, U may be empty or an underscore; expand it
30904 + U=`sed -n 's/^U = //p' < "$mf"`
30905 + # Find all dependency output files, they are included files with
30906 + # $(DEPDIR) in their names. We invoke sed twice because it is the
30907 + # simplest approach to changing $(DEPDIR) to its actual value in the
30908 + # expansion.
30909 + for file in `sed -n "
30910 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30911 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30912 + # Make sure the directory exists.
30913 + test -f "$dirpart/$file" && continue
30914 + fdir=`(dirname "$file") 2>/dev/null ||
30915 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30916 + X"$file" : 'X\(//\)[^/]' \| \
30917 + X"$file" : 'X\(//\)$' \| \
30918 + X"$file" : 'X\(/\)' \| \
30919 + . : '\(.\)' 2>/dev/null ||
30920 +echo X"$file" |
30921 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30922 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30923 + /^X\(\/\/\)$/{ s//\1/; q; }
30924 + /^X\(\/\).*/{ s//\1/; q; }
30925 + s/.*/./; q'`
30926 + { if $as_mkdir_p; then
30927 + mkdir -p $dirpart/$fdir
30928 + else
30929 + as_dir=$dirpart/$fdir
30930 + as_dirs=
30931 + while test ! -d "$as_dir"; do
30932 + as_dirs="$as_dir $as_dirs"
30933 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30934 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30935 + X"$as_dir" : 'X\(//\)[^/]' \| \
30936 + X"$as_dir" : 'X\(//\)$' \| \
30937 + X"$as_dir" : 'X\(/\)' \| \
30938 + . : '\(.\)' 2>/dev/null ||
30939 +echo X"$as_dir" |
30940 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30941 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30942 + /^X\(\/\/\)$/{ s//\1/; q; }
30943 + /^X\(\/\).*/{ s//\1/; q; }
30944 + s/.*/./; q'`
30945 + done
30946 + test ! -n "$as_dirs" || mkdir $as_dirs
30947 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30948 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30949 + { (exit 1); exit 1; }; }; }
30950 +
30951 + # echo "creating $dirpart/$file"
30952 + echo '# dummy' > "$dirpart/$file"
30953 + done
30954 +done
30955 + ;;
30956 + esac
30957 +done
30958 +_ACEOF
30959 +
30960 +cat >>$CONFIG_STATUS <<\_ACEOF
30961 +
30962 +{ (exit 0); exit 0; }
30963 +_ACEOF
30964 +chmod +x $CONFIG_STATUS
30965 +ac_clean_files=$ac_clean_files_save
30966 +
30967 +
30968 +# configure is writing to config.log, and then calls config.status.
30969 +# config.status does its own redirection, appending to config.log.
30970 +# Unfortunately, on DOS this fails, as config.log is still kept open
30971 +# by configure, so config.status won't be able to write to it; its
30972 +# output is simply discarded. So we exec the FD to /dev/null,
30973 +# effectively closing config.log, so it can be properly (re)opened and
30974 +# appended to by config.status. When coming back to configure, we
30975 +# need to make the FD available again.
30976 +if test "$no_create" != yes; then
30977 + ac_cs_success=:
30978 + ac_config_status_args=
30979 + test "$silent" = yes &&
30980 + ac_config_status_args="$ac_config_status_args --quiet"
30981 + exec 5>/dev/null
30982 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30983 + exec 5>>config.log
30984 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30985 + # would make configure fail if this is the last instruction.
30986 + $ac_cs_success || { (exit 1); exit 1; }
30987 +fi
30988 +
30989 diff -urN lua-5.1.4/configure.ac lua-5.1.4-autotoolize/configure.ac
30990 --- lua-5.1.4/configure.ac 1970-01-01 01:00:00.000000000 +0100
30991 +++ lua-5.1.4-autotoolize/configure.ac 2008-09-03 13:18:37.000000000 +0200
30992 @@ -0,0 +1,68 @@
30993 +AC_PREREQ(2.59)
30994 +AC_INIT([Autotoolized Lua], [5.1.3], [], [lua-at])
30995 +
30996 +AC_CONFIG_HEADERS([config.h])
30997 +AC_CONFIG_SRCDIR([src/lapi.c])
30998 +
30999 +AM_INIT_AUTOMAKE([1.9 foreign])
31000 +
31001 +AC_PROG_CC
31002 +AC_PROG_LIBTOOL
31003 +
31004 +AC_ARG_WITH(
31005 + [readline],
31006 + [AC_HELP_STRING([--with-readline], [Use readline for interpreter input [default=yes]])],
31007 + [use_readline=$withval],
31008 + [use_readline=yes]
31009 +)
31010 +
31011 +LUA_LIBS="-lm"
31012 +
31013 +# Check for readline
31014 +READLINE_DEFS="#undef LUA_USE_READLINE"
31015 +if test "x$use_readline" == "xyes"; then
31016 + AC_CHECK_LIB([readline], [readline], [], [use_readline=no], [-lncurses])
31017 + AC_CHECK_HEADERS([readline/readline.h readline/history.h], [], [use_readline=no])
31018 + if test "x$use_readline" == "xno"; then
31019 + AC_MSG_WARN([readline headers could not be found, disabling readline support])
31020 + else
31021 + READLINE_DEFS="#define LUA_USE_READLINE"
31022 + LUA_LIBS="$LUA_LIBS -lreadline -lncurses"
31023 + fi
31024 +fi
31025 +AC_SUBST(READLINE_DEFS)
31026 +
31027 +case "$host" in
31028 + *-mingw*) use_os=win32 ;;
31029 + *-darwin*) use_os=macosx ;;
31030 + *) use_os=posix ;;
31031 +esac
31032 +
31033 +POSIX_DEFS="#undef LUA_USE_POSIX"
31034 +LUA_DL_DEFS="#undef LUA_USE_DLOPEN"
31035 +LUA_BUILD_AS_DLL_DEFS="#undef LUA_BUILD_AS_DLL"
31036 +
31037 +if test "x$use_os" == "xwin32"; then
31038 + LUA_BUILD_AS_DLL_DEFS="#define LUA_BUILD_AS_DLL"
31039 +elif test "x$use_os" == "xmacosx"; then
31040 + POSIX_DEFS="#define LUA_USE_POSIX"
31041 + LUA_DL_DEFS="#define LUA_DL_DYLD"
31042 +elif test "x$use_os" == "xposix"; then
31043 + POSIX_DEFS="#define LUA_USE_POSIX"
31044 + LUA_DL_DEFS="#define LUA_DL_DLOPEN"
31045 + LUA_LIBS="$LUA_LIBS -ldl"
31046 +fi
31047 +AC_SUBST(POSIX_DEFS)
31048 +AC_SUBST(LUA_DL_DEFS)
31049 +AC_SUBST(LUA_BUILD_AS_DLL_DEFS)
31050 +
31051 +AC_SUBST(LUA_LIBS)
31052 +
31053 +AC_CONFIG_FILES([Makefile
31054 + src/Makefile
31055 + src/luaconf.h.template
31056 + etc/Makefile
31057 + etc/lua.pc
31058 + doc/Makefile
31059 + test/Makefile])
31060 +AC_OUTPUT
31061 diff -urN lua-5.1.4/depcomp lua-5.1.4-autotoolize/depcomp
31062 --- lua-5.1.4/depcomp 1970-01-01 01:00:00.000000000 +0100
31063 +++ lua-5.1.4-autotoolize/depcomp 2008-09-03 13:18:23.000000000 +0200
31064 @@ -0,0 +1,530 @@
31065 +#! /bin/sh
31066 +# depcomp - compile a program generating dependencies as side-effects
31067 +
31068 +scriptversion=2005-07-09.11
31069 +
31070 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
31071 +
31072 +# This program is free software; you can redistribute it and/or modify
31073 +# it under the terms of the GNU General Public License as published by
31074 +# the Free Software Foundation; either version 2, or (at your option)
31075 +# any later version.
31076 +
31077 +# This program is distributed in the hope that it will be useful,
31078 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
31079 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31080 +# GNU General Public License for more details.
31081 +
31082 +# You should have received a copy of the GNU General Public License
31083 +# along with this program; if not, write to the Free Software
31084 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31085 +# 02110-1301, USA.
31086 +
31087 +# As a special exception to the GNU General Public License, if you
31088 +# distribute this file as part of a program that contains a
31089 +# configuration script generated by Autoconf, you may include it under
31090 +# the same distribution terms that you use for the rest of that program.
31091 +
31092 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
31093 +
31094 +case $1 in
31095 + '')
31096 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31097 + exit 1;
31098 + ;;
31099 + -h | --h*)
31100 + cat <<\EOF
31101 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
31102 +
31103 +Run PROGRAMS ARGS to compile a file, generating dependencies
31104 +as side-effects.
31105 +
31106 +Environment variables:
31107 + depmode Dependency tracking mode.
31108 + source Source file read by `PROGRAMS ARGS'.
31109 + object Object file output by `PROGRAMS ARGS'.
31110 + DEPDIR directory where to store dependencies.
31111 + depfile Dependency file to output.
31112 + tmpdepfile Temporary file to use when outputing dependencies.
31113 + libtool Whether libtool is used (yes/no).
31114 +
31115 +Report bugs to <bug-automake@gnu.org>.
31116 +EOF
31117 + exit $?
31118 + ;;
31119 + -v | --v*)
31120 + echo "depcomp $scriptversion"
31121 + exit $?
31122 + ;;
31123 +esac
31124 +
31125 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
31126 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
31127 + exit 1
31128 +fi
31129 +
31130 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
31131 +depfile=${depfile-`echo "$object" |
31132 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
31133 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
31134 +
31135 +rm -f "$tmpdepfile"
31136 +
31137 +# Some modes work just like other modes, but use different flags. We
31138 +# parameterize here, but still list the modes in the big case below,
31139 +# to make depend.m4 easier to write. Note that we *cannot* use a case
31140 +# here, because this file can only contain one case statement.
31141 +if test "$depmode" = hp; then
31142 + # HP compiler uses -M and no extra arg.
31143 + gccflag=-M
31144 + depmode=gcc
31145 +fi
31146 +
31147 +if test "$depmode" = dashXmstdout; then
31148 + # This is just like dashmstdout with a different argument.
31149 + dashmflag=-xM
31150 + depmode=dashmstdout
31151 +fi
31152 +
31153 +case "$depmode" in
31154 +gcc3)
31155 +## gcc 3 implements dependency tracking that does exactly what
31156 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
31157 +## it if -MD -MP comes after the -MF stuff. Hmm.
31158 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
31159 + stat=$?
31160 + if test $stat -eq 0; then :
31161 + else
31162 + rm -f "$tmpdepfile"
31163 + exit $stat
31164 + fi
31165 + mv "$tmpdepfile" "$depfile"
31166 + ;;
31167 +
31168 +gcc)
31169 +## There are various ways to get dependency output from gcc. Here's
31170 +## why we pick this rather obscure method:
31171 +## - Don't want to use -MD because we'd like the dependencies to end
31172 +## up in a subdir. Having to rename by hand is ugly.
31173 +## (We might end up doing this anyway to support other compilers.)
31174 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
31175 +## -MM, not -M (despite what the docs say).
31176 +## - Using -M directly means running the compiler twice (even worse
31177 +## than renaming).
31178 + if test -z "$gccflag"; then
31179 + gccflag=-MD,
31180 + fi
31181 + "$@" -Wp,"$gccflag$tmpdepfile"
31182 + stat=$?
31183 + if test $stat -eq 0; then :
31184 + else
31185 + rm -f "$tmpdepfile"
31186 + exit $stat
31187 + fi
31188 + rm -f "$depfile"
31189 + echo "$object : \\" > "$depfile"
31190 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
31191 +## The second -e expression handles DOS-style file names with drive letters.
31192 + sed -e 's/^[^:]*: / /' \
31193 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
31194 +## This next piece of magic avoids the `deleted header file' problem.
31195 +## The problem is that when a header file which appears in a .P file
31196 +## is deleted, the dependency causes make to die (because there is
31197 +## typically no way to rebuild the header). We avoid this by adding
31198 +## dummy dependencies for each header file. Too bad gcc doesn't do
31199 +## this for us directly.
31200 + tr ' ' '
31201 +' < "$tmpdepfile" |
31202 +## Some versions of gcc put a space before the `:'. On the theory
31203 +## that the space means something, we add a space to the output as
31204 +## well.
31205 +## Some versions of the HPUX 10.20 sed can't process this invocation
31206 +## correctly. Breaking it into two sed invocations is a workaround.
31207 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31208 + rm -f "$tmpdepfile"
31209 + ;;
31210 +
31211 +hp)
31212 + # This case exists only to let depend.m4 do its work. It works by
31213 + # looking at the text of this script. This case will never be run,
31214 + # since it is checked for above.
31215 + exit 1
31216 + ;;
31217 +
31218 +sgi)
31219 + if test "$libtool" = yes; then
31220 + "$@" "-Wp,-MDupdate,$tmpdepfile"
31221 + else
31222 + "$@" -MDupdate "$tmpdepfile"
31223 + fi
31224 + stat=$?
31225 + if test $stat -eq 0; then :
31226 + else
31227 + rm -f "$tmpdepfile"
31228 + exit $stat
31229 + fi
31230 + rm -f "$depfile"
31231 +
31232 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
31233 + echo "$object : \\" > "$depfile"
31234 +
31235 + # Clip off the initial element (the dependent). Don't try to be
31236 + # clever and replace this with sed code, as IRIX sed won't handle
31237 + # lines with more than a fixed number of characters (4096 in
31238 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
31239 + # the IRIX cc adds comments like `#:fec' to the end of the
31240 + # dependency line.
31241 + tr ' ' '
31242 +' < "$tmpdepfile" \
31243 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
31244 + tr '
31245 +' ' ' >> $depfile
31246 + echo >> $depfile
31247 +
31248 + # The second pass generates a dummy entry for each header file.
31249 + tr ' ' '
31250 +' < "$tmpdepfile" \
31251 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
31252 + >> $depfile
31253 + else
31254 + # The sourcefile does not contain any dependencies, so just
31255 + # store a dummy comment line, to avoid errors with the Makefile
31256 + # "include basename.Plo" scheme.
31257 + echo "#dummy" > "$depfile"
31258 + fi
31259 + rm -f "$tmpdepfile"
31260 + ;;
31261 +
31262 +aix)
31263 + # The C for AIX Compiler uses -M and outputs the dependencies
31264 + # in a .u file. In older versions, this file always lives in the
31265 + # current directory. Also, the AIX compiler puts `$object:' at the
31266 + # start of each line; $object doesn't have directory information.
31267 + # Version 6 uses the directory in both cases.
31268 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
31269 + tmpdepfile="$stripped.u"
31270 + if test "$libtool" = yes; then
31271 + "$@" -Wc,-M
31272 + else
31273 + "$@" -M
31274 + fi
31275 + stat=$?
31276 +
31277 + if test -f "$tmpdepfile"; then :
31278 + else
31279 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
31280 + tmpdepfile="$stripped.u"
31281 + fi
31282 +
31283 + if test $stat -eq 0; then :
31284 + else
31285 + rm -f "$tmpdepfile"
31286 + exit $stat
31287 + fi
31288 +
31289 + if test -f "$tmpdepfile"; then
31290 + outname="$stripped.o"
31291 + # Each line is of the form `foo.o: dependent.h'.
31292 + # Do two passes, one to just change these to
31293 + # `$object: dependent.h' and one to simply `dependent.h:'.
31294 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
31295 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
31296 + else
31297 + # The sourcefile does not contain any dependencies, so just
31298 + # store a dummy comment line, to avoid errors with the Makefile
31299 + # "include basename.Plo" scheme.
31300 + echo "#dummy" > "$depfile"
31301 + fi
31302 + rm -f "$tmpdepfile"
31303 + ;;
31304 +
31305 +icc)
31306 + # Intel's C compiler understands `-MD -MF file'. However on
31307 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
31308 + # ICC 7.0 will fill foo.d with something like
31309 + # foo.o: sub/foo.c
31310 + # foo.o: sub/foo.h
31311 + # which is wrong. We want:
31312 + # sub/foo.o: sub/foo.c
31313 + # sub/foo.o: sub/foo.h
31314 + # sub/foo.c:
31315 + # sub/foo.h:
31316 + # ICC 7.1 will output
31317 + # foo.o: sub/foo.c sub/foo.h
31318 + # and will wrap long lines using \ :
31319 + # foo.o: sub/foo.c ... \
31320 + # sub/foo.h ... \
31321 + # ...
31322 +
31323 + "$@" -MD -MF "$tmpdepfile"
31324 + stat=$?
31325 + if test $stat -eq 0; then :
31326 + else
31327 + rm -f "$tmpdepfile"
31328 + exit $stat
31329 + fi
31330 + rm -f "$depfile"
31331 + # Each line is of the form `foo.o: dependent.h',
31332 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
31333 + # Do two passes, one to just change these to
31334 + # `$object: dependent.h' and one to simply `dependent.h:'.
31335 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
31336 + # Some versions of the HPUX 10.20 sed can't process this invocation
31337 + # correctly. Breaking it into two sed invocations is a workaround.
31338 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
31339 + sed -e 's/$/ :/' >> "$depfile"
31340 + rm -f "$tmpdepfile"
31341 + ;;
31342 +
31343 +tru64)
31344 + # The Tru64 compiler uses -MD to generate dependencies as a side
31345 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
31346 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
31347 + # dependencies in `foo.d' instead, so we check for that too.
31348 + # Subdirectories are respected.
31349 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
31350 + test "x$dir" = "x$object" && dir=
31351 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
31352 +
31353 + if test "$libtool" = yes; then
31354 + # With Tru64 cc, shared objects can also be used to make a
31355 + # static library. This mecanism is used in libtool 1.4 series to
31356 + # handle both shared and static libraries in a single compilation.
31357 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
31358 + #
31359 + # With libtool 1.5 this exception was removed, and libtool now
31360 + # generates 2 separate objects for the 2 libraries. These two
31361 + # compilations output dependencies in in $dir.libs/$base.o.d and
31362 + # in $dir$base.o.d. We have to check for both files, because
31363 + # one of the two compilations can be disabled. We should prefer
31364 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
31365 + # automatically cleaned when .libs/ is deleted, while ignoring
31366 + # the former would cause a distcleancheck panic.
31367 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
31368 + tmpdepfile2=$dir$base.o.d # libtool 1.5
31369 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
31370 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
31371 + "$@" -Wc,-MD
31372 + else
31373 + tmpdepfile1=$dir$base.o.d
31374 + tmpdepfile2=$dir$base.d
31375 + tmpdepfile3=$dir$base.d
31376 + tmpdepfile4=$dir$base.d
31377 + "$@" -MD
31378 + fi
31379 +
31380 + stat=$?
31381 + if test $stat -eq 0; then :
31382 + else
31383 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31384 + exit $stat
31385 + fi
31386 +
31387 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31388 + do
31389 + test -f "$tmpdepfile" && break
31390 + done
31391 + if test -f "$tmpdepfile"; then
31392 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
31393 + # That's a tab and a space in the [].
31394 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
31395 + else
31396 + echo "#dummy" > "$depfile"
31397 + fi
31398 + rm -f "$tmpdepfile"
31399 + ;;
31400 +
31401 +#nosideeffect)
31402 + # This comment above is used by automake to tell side-effect
31403 + # dependency tracking mechanisms from slower ones.
31404 +
31405 +dashmstdout)
31406 + # Important note: in order to support this mode, a compiler *must*
31407 + # always write the preprocessed file to stdout, regardless of -o.
31408 + "$@" || exit $?
31409 +
31410 + # Remove the call to Libtool.
31411 + if test "$libtool" = yes; then
31412 + while test $1 != '--mode=compile'; do
31413 + shift
31414 + done
31415 + shift
31416 + fi
31417 +
31418 + # Remove `-o $object'.
31419 + IFS=" "
31420 + for arg
31421 + do
31422 + case $arg in
31423 + -o)
31424 + shift
31425 + ;;
31426 + $object)
31427 + shift
31428 + ;;
31429 + *)
31430 + set fnord "$@" "$arg"
31431 + shift # fnord
31432 + shift # $arg
31433 + ;;
31434 + esac
31435 + done
31436 +
31437 + test -z "$dashmflag" && dashmflag=-M
31438 + # Require at least two characters before searching for `:'
31439 + # in the target name. This is to cope with DOS-style filenames:
31440 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
31441 + "$@" $dashmflag |
31442 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
31443 + rm -f "$depfile"
31444 + cat < "$tmpdepfile" > "$depfile"
31445 + tr ' ' '
31446 +' < "$tmpdepfile" | \
31447 +## Some versions of the HPUX 10.20 sed can't process this invocation
31448 +## correctly. Breaking it into two sed invocations is a workaround.
31449 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31450 + rm -f "$tmpdepfile"
31451 + ;;
31452 +
31453 +dashXmstdout)
31454 + # This case only exists to satisfy depend.m4. It is never actually
31455 + # run, as this mode is specially recognized in the preamble.
31456 + exit 1
31457 + ;;
31458 +
31459 +makedepend)
31460 + "$@" || exit $?
31461 + # Remove any Libtool call
31462 + if test "$libtool" = yes; then
31463 + while test $1 != '--mode=compile'; do
31464 + shift
31465 + done
31466 + shift
31467 + fi
31468 + # X makedepend
31469 + shift
31470 + cleared=no
31471 + for arg in "$@"; do
31472 + case $cleared in
31473 + no)
31474 + set ""; shift
31475 + cleared=yes ;;
31476 + esac
31477 + case "$arg" in
31478 + -D*|-I*)
31479 + set fnord "$@" "$arg"; shift ;;
31480 + # Strip any option that makedepend may not understand. Remove
31481 + # the object too, otherwise makedepend will parse it as a source file.
31482 + -*|$object)
31483 + ;;
31484 + *)
31485 + set fnord "$@" "$arg"; shift ;;
31486 + esac
31487 + done
31488 + obj_suffix="`echo $object | sed 's/^.*\././'`"
31489 + touch "$tmpdepfile"
31490 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
31491 + rm -f "$depfile"
31492 + cat < "$tmpdepfile" > "$depfile"
31493 + sed '1,2d' "$tmpdepfile" | tr ' ' '
31494 +' | \
31495 +## Some versions of the HPUX 10.20 sed can't process this invocation
31496 +## correctly. Breaking it into two sed invocations is a workaround.
31497 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31498 + rm -f "$tmpdepfile" "$tmpdepfile".bak
31499 + ;;
31500 +
31501 +cpp)
31502 + # Important note: in order to support this mode, a compiler *must*
31503 + # always write the preprocessed file to stdout.
31504 + "$@" || exit $?
31505 +
31506 + # Remove the call to Libtool.
31507 + if test "$libtool" = yes; then
31508 + while test $1 != '--mode=compile'; do
31509 + shift
31510 + done
31511 + shift
31512 + fi
31513 +
31514 + # Remove `-o $object'.
31515 + IFS=" "
31516 + for arg
31517 + do
31518 + case $arg in
31519 + -o)
31520 + shift
31521 + ;;
31522 + $object)
31523 + shift
31524 + ;;
31525 + *)
31526 + set fnord "$@" "$arg"
31527 + shift # fnord
31528 + shift # $arg
31529 + ;;
31530 + esac
31531 + done
31532 +
31533 + "$@" -E |
31534 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
31535 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
31536 + sed '$ s: \\$::' > "$tmpdepfile"
31537 + rm -f "$depfile"
31538 + echo "$object : \\" > "$depfile"
31539 + cat < "$tmpdepfile" >> "$depfile"
31540 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
31541 + rm -f "$tmpdepfile"
31542 + ;;
31543 +
31544 +msvisualcpp)
31545 + # Important note: in order to support this mode, a compiler *must*
31546 + # always write the preprocessed file to stdout, regardless of -o,
31547 + # because we must use -o when running libtool.
31548 + "$@" || exit $?
31549 + IFS=" "
31550 + for arg
31551 + do
31552 + case "$arg" in
31553 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
31554 + set fnord "$@"
31555 + shift
31556 + shift
31557 + ;;
31558 + *)
31559 + set fnord "$@" "$arg"
31560 + shift
31561 + shift
31562 + ;;
31563 + esac
31564 + done
31565 + "$@" -E |
31566 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
31567 + rm -f "$depfile"
31568 + echo "$object : \\" > "$depfile"
31569 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
31570 + echo " " >> "$depfile"
31571 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
31572 + rm -f "$tmpdepfile"
31573 + ;;
31574 +
31575 +none)
31576 + exec "$@"
31577 + ;;
31578 +
31579 +*)
31580 + echo "Unknown depmode $depmode" 1>&2
31581 + exit 1
31582 + ;;
31583 +esac
31584 +
31585 +exit 0
31586 +
31587 +# Local Variables:
31588 +# mode: shell-script
31589 +# sh-indentation: 2
31590 +# eval: (add-hook 'write-file-hooks 'time-stamp)
31591 +# time-stamp-start: "scriptversion="
31592 +# time-stamp-format: "%:y-%02m-%02d.%02H"
31593 +# time-stamp-end: "$"
31594 +# End:
31595 diff -urN lua-5.1.4/doc/Makefile.am lua-5.1.4-autotoolize/doc/Makefile.am
31596 --- lua-5.1.4/doc/Makefile.am 1970-01-01 01:00:00.000000000 +0100
31597 +++ lua-5.1.4-autotoolize/doc/Makefile.am 2008-09-03 13:18:23.000000000 +0200
31598 @@ -0,0 +1,5 @@
31599 +man1_MANS = lua.1 luac.1
31600 +
31601 +EXTRA_DIST = \
31602 + contents.html lua.1 luac.html lua.html manual.html \
31603 + logo.gif luac.1 lua.css readme.html
31604 \ Kein Zeilenumbruch am Dateiende.
31605 diff -urN lua-5.1.4/doc/Makefile.in lua-5.1.4-autotoolize/doc/Makefile.in
31606 --- lua-5.1.4/doc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
31607 +++ lua-5.1.4-autotoolize/doc/Makefile.in 2008-09-03 13:18:23.000000000 +0200
31608 @@ -0,0 +1,373 @@
31609 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
31610 +# @configure_input@
31611 +
31612 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
31613 +# 2003, 2004, 2005 Free Software Foundation, Inc.
31614 +# This Makefile.in is free software; the Free Software Foundation
31615 +# gives unlimited permission to copy and/or distribute it,
31616 +# with or without modifications, as long as this notice is preserved.
31617 +
31618 +# This program is distributed in the hope that it will be useful,
31619 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
31620 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
31621 +# PARTICULAR PURPOSE.
31622 +
31623 +@SET_MAKE@
31624 +srcdir = @srcdir@
31625 +top_srcdir = @top_srcdir@
31626 +VPATH = @srcdir@
31627 +pkgdatadir = $(datadir)/@PACKAGE@
31628 +pkglibdir = $(libdir)/@PACKAGE@
31629 +pkgincludedir = $(includedir)/@PACKAGE@
31630 +top_builddir = ..
31631 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
31632 +INSTALL = @INSTALL@
31633 +install_sh_DATA = $(install_sh) -c -m 644
31634 +install_sh_PROGRAM = $(install_sh) -c
31635 +install_sh_SCRIPT = $(install_sh) -c
31636 +INSTALL_HEADER = $(INSTALL_DATA)
31637 +transform = $(program_transform_name)
31638 +NORMAL_INSTALL = :
31639 +PRE_INSTALL = :
31640 +POST_INSTALL = :
31641 +NORMAL_UNINSTALL = :
31642 +PRE_UNINSTALL = :
31643 +POST_UNINSTALL = :
31644 +build_triplet = @build@
31645 +host_triplet = @host@
31646 +subdir = doc
31647 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
31648 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
31649 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
31650 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
31651 + $(ACLOCAL_M4)
31652 +mkinstalldirs = $(install_sh) -d
31653 +CONFIG_HEADER = $(top_builddir)/config.h
31654 +CONFIG_CLEAN_FILES =
31655 +SOURCES =
31656 +DIST_SOURCES =
31657 +man1dir = $(mandir)/man1
31658 +am__installdirs = "$(DESTDIR)$(man1dir)"
31659 +NROFF = nroff
31660 +MANS = $(man1_MANS)
31661 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
31662 +ACLOCAL = @ACLOCAL@
31663 +AMDEP_FALSE = @AMDEP_FALSE@
31664 +AMDEP_TRUE = @AMDEP_TRUE@
31665 +AMTAR = @AMTAR@
31666 +AR = @AR@
31667 +AUTOCONF = @AUTOCONF@
31668 +AUTOHEADER = @AUTOHEADER@
31669 +AUTOMAKE = @AUTOMAKE@
31670 +AWK = @AWK@
31671 +CC = @CC@
31672 +CCDEPMODE = @CCDEPMODE@
31673 +CFLAGS = @CFLAGS@
31674 +CPP = @CPP@
31675 +CPPFLAGS = @CPPFLAGS@
31676 +CXX = @CXX@
31677 +CXXCPP = @CXXCPP@
31678 +CXXDEPMODE = @CXXDEPMODE@
31679 +CXXFLAGS = @CXXFLAGS@
31680 +CYGPATH_W = @CYGPATH_W@
31681 +DEFS = @DEFS@
31682 +DEPDIR = @DEPDIR@
31683 +ECHO = @ECHO@
31684 +ECHO_C = @ECHO_C@
31685 +ECHO_N = @ECHO_N@
31686 +ECHO_T = @ECHO_T@
31687 +EGREP = @EGREP@
31688 +EXEEXT = @EXEEXT@
31689 +F77 = @F77@
31690 +FFLAGS = @FFLAGS@
31691 +INSTALL_DATA = @INSTALL_DATA@
31692 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
31693 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
31694 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
31695 +LDFLAGS = @LDFLAGS@
31696 +LIBOBJS = @LIBOBJS@
31697 +LIBS = @LIBS@
31698 +LIBTOOL = @LIBTOOL@
31699 +LN_S = @LN_S@
31700 +LTLIBOBJS = @LTLIBOBJS@
31701 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
31702 +LUA_DL_DEFS = @LUA_DL_DEFS@
31703 +LUA_LIBS = @LUA_LIBS@
31704 +MAKEINFO = @MAKEINFO@
31705 +OBJEXT = @OBJEXT@
31706 +PACKAGE = @PACKAGE@
31707 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
31708 +PACKAGE_NAME = @PACKAGE_NAME@
31709 +PACKAGE_STRING = @PACKAGE_STRING@
31710 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
31711 +PACKAGE_VERSION = @PACKAGE_VERSION@
31712 +PATH_SEPARATOR = @PATH_SEPARATOR@
31713 +POSIX_DEFS = @POSIX_DEFS@
31714 +RANLIB = @RANLIB@
31715 +READLINE_DEFS = @READLINE_DEFS@
31716 +SET_MAKE = @SET_MAKE@
31717 +SHELL = @SHELL@
31718 +STRIP = @STRIP@
31719 +VERSION = @VERSION@
31720 +ac_ct_AR = @ac_ct_AR@
31721 +ac_ct_CC = @ac_ct_CC@
31722 +ac_ct_CXX = @ac_ct_CXX@
31723 +ac_ct_F77 = @ac_ct_F77@
31724 +ac_ct_RANLIB = @ac_ct_RANLIB@
31725 +ac_ct_STRIP = @ac_ct_STRIP@
31726 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
31727 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
31728 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
31729 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
31730 +am__include = @am__include@
31731 +am__leading_dot = @am__leading_dot@
31732 +am__quote = @am__quote@
31733 +am__tar = @am__tar@
31734 +am__untar = @am__untar@
31735 +bindir = @bindir@
31736 +build = @build@
31737 +build_alias = @build_alias@
31738 +build_cpu = @build_cpu@
31739 +build_os = @build_os@
31740 +build_vendor = @build_vendor@
31741 +datadir = @datadir@
31742 +exec_prefix = @exec_prefix@
31743 +host = @host@
31744 +host_alias = @host_alias@
31745 +host_cpu = @host_cpu@
31746 +host_os = @host_os@
31747 +host_vendor = @host_vendor@
31748 +includedir = @includedir@
31749 +infodir = @infodir@
31750 +install_sh = @install_sh@
31751 +libdir = @libdir@
31752 +libexecdir = @libexecdir@
31753 +localstatedir = @localstatedir@
31754 +mandir = @mandir@
31755 +mkdir_p = @mkdir_p@
31756 +oldincludedir = @oldincludedir@
31757 +prefix = @prefix@
31758 +program_transform_name = @program_transform_name@
31759 +sbindir = @sbindir@
31760 +sharedstatedir = @sharedstatedir@
31761 +sysconfdir = @sysconfdir@
31762 +target_alias = @target_alias@
31763 +man1_MANS = lua.1 luac.1
31764 +EXTRA_DIST = \
31765 + contents.html lua.1 luac.html lua.html manual.html \
31766 + logo.gif luac.1 lua.css readme.html
31767 +
31768 +all: all-am
31769 +
31770 +.SUFFIXES:
31771 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
31772 + @for dep in $?; do \
31773 + case '$(am__configure_deps)' in \
31774 + *$$dep*) \
31775 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
31776 + && exit 0; \
31777 + exit 1;; \
31778 + esac; \
31779 + done; \
31780 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
31781 + cd $(top_srcdir) && \
31782 + $(AUTOMAKE) --foreign doc/Makefile
31783 +.PRECIOUS: Makefile
31784 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
31785 + @case '$?' in \
31786 + *config.status*) \
31787 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
31788 + *) \
31789 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
31790 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
31791 + esac;
31792 +
31793 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
31794 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31795 +
31796 +$(top_srcdir)/configure: $(am__configure_deps)
31797 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31798 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
31799 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31800 +
31801 +mostlyclean-libtool:
31802 + -rm -f *.lo
31803 +
31804 +clean-libtool:
31805 + -rm -rf .libs _libs
31806 +
31807 +distclean-libtool:
31808 + -rm -f libtool
31809 +uninstall-info-am:
31810 +install-man1: $(man1_MANS) $(man_MANS)
31811 + @$(NORMAL_INSTALL)
31812 + test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
31813 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
31814 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
31815 + for i in $$l2; do \
31816 + case "$$i" in \
31817 + *.1*) list="$$list $$i" ;; \
31818 + esac; \
31819 + done; \
31820 + for i in $$list; do \
31821 + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
31822 + else file=$$i; fi; \
31823 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
31824 + case "$$ext" in \
31825 + 1*) ;; \
31826 + *) ext='1' ;; \
31827 + esac; \
31828 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
31829 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
31830 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
31831 + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
31832 + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
31833 + done
31834 +uninstall-man1:
31835 + @$(NORMAL_UNINSTALL)
31836 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
31837 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
31838 + for i in $$l2; do \
31839 + case "$$i" in \
31840 + *.1*) list="$$list $$i" ;; \
31841 + esac; \
31842 + done; \
31843 + for i in $$list; do \
31844 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
31845 + case "$$ext" in \
31846 + 1*) ;; \
31847 + *) ext='1' ;; \
31848 + esac; \
31849 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
31850 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
31851 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
31852 + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
31853 + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
31854 + done
31855 +tags: TAGS
31856 +TAGS:
31857 +
31858 +ctags: CTAGS
31859 +CTAGS:
31860 +
31861 +
31862 +distdir: $(DISTFILES)
31863 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
31864 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
31865 + list='$(DISTFILES)'; for file in $$list; do \
31866 + case $$file in \
31867 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
31868 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
31869 + esac; \
31870 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
31871 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
31872 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
31873 + dir="/$$dir"; \
31874 + $(mkdir_p) "$(distdir)$$dir"; \
31875 + else \
31876 + dir=''; \
31877 + fi; \
31878 + if test -d $$d/$$file; then \
31879 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
31880 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
31881 + fi; \
31882 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
31883 + else \
31884 + test -f $(distdir)/$$file \
31885 + || cp -p $$d/$$file $(distdir)/$$file \
31886 + || exit 1; \
31887 + fi; \
31888 + done
31889 +check-am: all-am
31890 +check: check-am
31891 +all-am: Makefile $(MANS)
31892 +installdirs:
31893 + for dir in "$(DESTDIR)$(man1dir)"; do \
31894 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
31895 + done
31896 +install: install-am
31897 +install-exec: install-exec-am
31898 +install-data: install-data-am
31899 +uninstall: uninstall-am
31900 +
31901 +install-am: all-am
31902 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
31903 +
31904 +installcheck: installcheck-am
31905 +install-strip:
31906 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
31907 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
31908 + `test -z '$(STRIP)' || \
31909 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
31910 +mostlyclean-generic:
31911 +
31912 +clean-generic:
31913 +
31914 +distclean-generic:
31915 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
31916 +
31917 +maintainer-clean-generic:
31918 + @echo "This command is intended for maintainers to use"
31919 + @echo "it deletes files that may require special tools to rebuild."
31920 +clean: clean-am
31921 +
31922 +clean-am: clean-generic clean-libtool mostlyclean-am
31923 +
31924 +distclean: distclean-am
31925 + -rm -f Makefile
31926 +distclean-am: clean-am distclean-generic distclean-libtool
31927 +
31928 +dvi: dvi-am
31929 +
31930 +dvi-am:
31931 +
31932 +html: html-am
31933 +
31934 +info: info-am
31935 +
31936 +info-am:
31937 +
31938 +install-data-am: install-man
31939 +
31940 +install-exec-am:
31941 +
31942 +install-info: install-info-am
31943 +
31944 +install-man: install-man1
31945 +
31946 +installcheck-am:
31947 +
31948 +maintainer-clean: maintainer-clean-am
31949 + -rm -f Makefile
31950 +maintainer-clean-am: distclean-am maintainer-clean-generic
31951 +
31952 +mostlyclean: mostlyclean-am
31953 +
31954 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
31955 +
31956 +pdf: pdf-am
31957 +
31958 +pdf-am:
31959 +
31960 +ps: ps-am
31961 +
31962 +ps-am:
31963 +
31964 +uninstall-am: uninstall-info-am uninstall-man
31965 +
31966 +uninstall-man: uninstall-man1
31967 +
31968 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
31969 + distclean distclean-generic distclean-libtool distdir dvi \
31970 + dvi-am html html-am info info-am install install-am \
31971 + install-data install-data-am install-exec install-exec-am \
31972 + install-info install-info-am install-man install-man1 \
31973 + install-strip installcheck installcheck-am installdirs \
31974 + maintainer-clean maintainer-clean-generic mostlyclean \
31975 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
31976 + uninstall uninstall-am uninstall-info-am uninstall-man \
31977 + uninstall-man1
31978 +
31979 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
31980 +# Otherwise a system limit (for SysV at least) may be exceeded.
31981 +.NOEXPORT:
31982 diff -urN lua-5.1.4/etc/lua.pc lua-5.1.4-autotoolize/etc/lua.pc
31983 --- lua-5.1.4/etc/lua.pc 2008-08-08 14:46:11.000000000 +0200
31984 +++ lua-5.1.4-autotoolize/etc/lua.pc 2008-09-03 13:24:07.000000000 +0200
31985 @@ -1,31 +0,0 @@
31986 -# lua.pc -- pkg-config data for Lua
31987 -
31988 -# vars from install Makefile
31989 -
31990 -# grep '^V=' ../Makefile
31991 -V= 5.1
31992 -# grep '^R=' ../Makefile
31993 -R= 5.1.4
31994 -
31995 -# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
31996 -prefix= /usr/local
31997 -INSTALL_BIN= ${prefix}/bin
31998 -INSTALL_INC= ${prefix}/include
31999 -INSTALL_LIB= ${prefix}/lib
32000 -INSTALL_MAN= ${prefix}/man/man1
32001 -INSTALL_LMOD= ${prefix}/share/lua/${V}
32002 -INSTALL_CMOD= ${prefix}/lib/lua/${V}
32003 -
32004 -# canonical vars
32005 -exec_prefix=${prefix}
32006 -libdir=${exec_prefix}/lib
32007 -includedir=${prefix}/include
32008 -
32009 -Name: Lua
32010 -Description: An Extensible Extension Language
32011 -Version: ${R}
32012 -Requires:
32013 -Libs: -L${libdir} -llua -lm
32014 -Cflags: -I${includedir}
32015 -
32016 -# (end of lua.pc)
32017 diff -urN lua-5.1.4/etc/lua.pc.in lua-5.1.4-autotoolize/etc/lua.pc.in
32018 --- lua-5.1.4/etc/lua.pc.in 1970-01-01 01:00:00.000000000 +0100
32019 +++ lua-5.1.4-autotoolize/etc/lua.pc.in 2008-09-03 13:18:23.000000000 +0200
32020 @@ -0,0 +1,13 @@
32021 +V= 5.1
32022 +R= 5.1.3
32023 +prefix= @prefix@
32024 +exec_prefix=${prefix}
32025 +libdir= @libdir@
32026 +includedir=${prefix}/include
32027 +
32028 +Name: Lua
32029 +Description: An Extensible Extension Language
32030 +Version: ${R}
32031 +Requires:
32032 +Libs: -llua @LUA_LIBS@
32033 +Cflags: -I${includedir}
32034 diff -urN lua-5.1.4/etc/Makefile lua-5.1.4-autotoolize/etc/Makefile
32035 --- lua-5.1.4/etc/Makefile 2006-02-07 20:09:30.000000000 +0100
32036 +++ lua-5.1.4-autotoolize/etc/Makefile 2008-09-03 13:18:23.000000000 +0200
32037 @@ -1,44 +0,0 @@
32038 -# makefile for Lua etc
32039 -
32040 -TOP= ..
32041 -LIB= $(TOP)/src
32042 -INC= $(TOP)/src
32043 -BIN= $(TOP)/src
32044 -SRC= $(TOP)/src
32045 -TST= $(TOP)/test
32046 -
32047 -CC= gcc
32048 -CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS)
32049 -MYCFLAGS=
32050 -MYLDFLAGS= -Wl,-E
32051 -MYLIBS= -lm
32052 -#MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
32053 -RM= rm -f
32054 -
32055 -default:
32056 - @echo 'Please choose a target: min noparser one strict clean'
32057 -
32058 -min: min.c
32059 - $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS)
32060 - echo 'print"Hello there!"' | ./a.out
32061 -
32062 -noparser: noparser.o
32063 - $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS)
32064 - $(BIN)/luac $(TST)/hello.lua
32065 - -./a.out luac.out
32066 - -./a.out -e'a=1'
32067 -
32068 -one:
32069 - $(CC) $(CFLAGS) all.c $(MYLIBS)
32070 - ./a.out $(TST)/hello.lua
32071 -
32072 -strict:
32073 - -$(BIN)/lua -e 'print(a);b=2'
32074 - -$(BIN)/lua -lstrict -e 'print(a)'
32075 - -$(BIN)/lua -e 'function f() b=2 end f()'
32076 - -$(BIN)/lua -lstrict -e 'function f() b=2 end f()'
32077 -
32078 -clean:
32079 - $(RM) a.out core core.* *.o luac.out
32080 -
32081 -.PHONY: default min noparser one strict clean
32082 diff -urN lua-5.1.4/etc/Makefile.am lua-5.1.4-autotoolize/etc/Makefile.am
32083 --- lua-5.1.4/etc/Makefile.am 1970-01-01 01:00:00.000000000 +0100
32084 +++ lua-5.1.4-autotoolize/etc/Makefile.am 2008-09-03 13:18:23.000000000 +0200
32085 @@ -0,0 +1,8 @@
32086 +include_HEADERS = lua.hpp
32087 +
32088 +pkgconfigdir = $(libdir)/pkgconfig
32089 +pkgconfig_DATA = lua.pc
32090 +
32091 +EXTRA_DIST = \
32092 + all.c lua.ico lua.pc.in noparser.c strict.lua \
32093 + luavs.bat min.c README
32094 diff -urN lua-5.1.4/etc/Makefile.in lua-5.1.4-autotoolize/etc/Makefile.in
32095 --- lua-5.1.4/etc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
32096 +++ lua-5.1.4-autotoolize/etc/Makefile.in 2008-09-03 13:18:23.000000000 +0200
32097 @@ -0,0 +1,423 @@
32098 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
32099 +# @configure_input@
32100 +
32101 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
32102 +# 2003, 2004, 2005 Free Software Foundation, Inc.
32103 +# This Makefile.in is free software; the Free Software Foundation
32104 +# gives unlimited permission to copy and/or distribute it,
32105 +# with or without modifications, as long as this notice is preserved.
32106 +
32107 +# This program is distributed in the hope that it will be useful,
32108 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
32109 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
32110 +# PARTICULAR PURPOSE.
32111 +
32112 +@SET_MAKE@
32113 +
32114 +
32115 +srcdir = @srcdir@
32116 +top_srcdir = @top_srcdir@
32117 +VPATH = @srcdir@
32118 +pkgdatadir = $(datadir)/@PACKAGE@
32119 +pkglibdir = $(libdir)/@PACKAGE@
32120 +pkgincludedir = $(includedir)/@PACKAGE@
32121 +top_builddir = ..
32122 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
32123 +INSTALL = @INSTALL@
32124 +install_sh_DATA = $(install_sh) -c -m 644
32125 +install_sh_PROGRAM = $(install_sh) -c
32126 +install_sh_SCRIPT = $(install_sh) -c
32127 +INSTALL_HEADER = $(INSTALL_DATA)
32128 +transform = $(program_transform_name)
32129 +NORMAL_INSTALL = :
32130 +PRE_INSTALL = :
32131 +POST_INSTALL = :
32132 +NORMAL_UNINSTALL = :
32133 +PRE_UNINSTALL = :
32134 +POST_UNINSTALL = :
32135 +build_triplet = @build@
32136 +host_triplet = @host@
32137 +subdir = etc
32138 +DIST_COMMON = README $(include_HEADERS) $(srcdir)/Makefile.am \
32139 + $(srcdir)/Makefile.in $(srcdir)/lua.pc.in
32140 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
32141 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
32142 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
32143 + $(ACLOCAL_M4)
32144 +mkinstalldirs = $(install_sh) -d
32145 +CONFIG_HEADER = $(top_builddir)/config.h
32146 +CONFIG_CLEAN_FILES = lua.pc
32147 +SOURCES =
32148 +DIST_SOURCES =
32149 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
32150 +am__vpath_adj = case $$p in \
32151 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
32152 + *) f=$$p;; \
32153 + esac;
32154 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
32155 +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
32156 + "$(DESTDIR)$(includedir)"
32157 +pkgconfigDATA_INSTALL = $(INSTALL_DATA)
32158 +DATA = $(pkgconfig_DATA)
32159 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
32160 +HEADERS = $(include_HEADERS)
32161 +ETAGS = etags
32162 +CTAGS = ctags
32163 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
32164 +ACLOCAL = @ACLOCAL@
32165 +AMDEP_FALSE = @AMDEP_FALSE@
32166 +AMDEP_TRUE = @AMDEP_TRUE@
32167 +AMTAR = @AMTAR@
32168 +AR = @AR@
32169 +AUTOCONF = @AUTOCONF@
32170 +AUTOHEADER = @AUTOHEADER@
32171 +AUTOMAKE = @AUTOMAKE@
32172 +AWK = @AWK@
32173 +CC = @CC@
32174 +CCDEPMODE = @CCDEPMODE@
32175 +CFLAGS = @CFLAGS@
32176 +CPP = @CPP@
32177 +CPPFLAGS = @CPPFLAGS@
32178 +CXX = @CXX@
32179 +CXXCPP = @CXXCPP@
32180 +CXXDEPMODE = @CXXDEPMODE@
32181 +CXXFLAGS = @CXXFLAGS@
32182 +CYGPATH_W = @CYGPATH_W@
32183 +DEFS = @DEFS@
32184 +DEPDIR = @DEPDIR@
32185 +ECHO = @ECHO@
32186 +ECHO_C = @ECHO_C@
32187 +ECHO_N = @ECHO_N@
32188 +ECHO_T = @ECHO_T@
32189 +EGREP = @EGREP@
32190 +EXEEXT = @EXEEXT@
32191 +F77 = @F77@
32192 +FFLAGS = @FFLAGS@
32193 +INSTALL_DATA = @INSTALL_DATA@
32194 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
32195 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
32196 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
32197 +LDFLAGS = @LDFLAGS@
32198 +LIBOBJS = @LIBOBJS@
32199 +LIBS = @LIBS@
32200 +LIBTOOL = @LIBTOOL@
32201 +LN_S = @LN_S@
32202 +LTLIBOBJS = @LTLIBOBJS@
32203 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
32204 +LUA_DL_DEFS = @LUA_DL_DEFS@
32205 +LUA_LIBS = @LUA_LIBS@
32206 +MAKEINFO = @MAKEINFO@
32207 +OBJEXT = @OBJEXT@
32208 +PACKAGE = @PACKAGE@
32209 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
32210 +PACKAGE_NAME = @PACKAGE_NAME@
32211 +PACKAGE_STRING = @PACKAGE_STRING@
32212 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
32213 +PACKAGE_VERSION = @PACKAGE_VERSION@
32214 +PATH_SEPARATOR = @PATH_SEPARATOR@
32215 +POSIX_DEFS = @POSIX_DEFS@
32216 +RANLIB = @RANLIB@
32217 +READLINE_DEFS = @READLINE_DEFS@
32218 +SET_MAKE = @SET_MAKE@
32219 +SHELL = @SHELL@
32220 +STRIP = @STRIP@
32221 +VERSION = @VERSION@
32222 +ac_ct_AR = @ac_ct_AR@
32223 +ac_ct_CC = @ac_ct_CC@
32224 +ac_ct_CXX = @ac_ct_CXX@
32225 +ac_ct_F77 = @ac_ct_F77@
32226 +ac_ct_RANLIB = @ac_ct_RANLIB@
32227 +ac_ct_STRIP = @ac_ct_STRIP@
32228 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
32229 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
32230 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
32231 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
32232 +am__include = @am__include@
32233 +am__leading_dot = @am__leading_dot@
32234 +am__quote = @am__quote@
32235 +am__tar = @am__tar@
32236 +am__untar = @am__untar@
32237 +bindir = @bindir@
32238 +build = @build@
32239 +build_alias = @build_alias@
32240 +build_cpu = @build_cpu@
32241 +build_os = @build_os@
32242 +build_vendor = @build_vendor@
32243 +datadir = @datadir@
32244 +exec_prefix = @exec_prefix@
32245 +host = @host@
32246 +host_alias = @host_alias@
32247 +host_cpu = @host_cpu@
32248 +host_os = @host_os@
32249 +host_vendor = @host_vendor@
32250 +includedir = @includedir@
32251 +infodir = @infodir@
32252 +install_sh = @install_sh@
32253 +libdir = @libdir@
32254 +libexecdir = @libexecdir@
32255 +localstatedir = @localstatedir@
32256 +mandir = @mandir@
32257 +mkdir_p = @mkdir_p@
32258 +oldincludedir = @oldincludedir@
32259 +prefix = @prefix@
32260 +program_transform_name = @program_transform_name@
32261 +sbindir = @sbindir@
32262 +sharedstatedir = @sharedstatedir@
32263 +sysconfdir = @sysconfdir@
32264 +target_alias = @target_alias@
32265 +include_HEADERS = lua.hpp
32266 +pkgconfigdir = $(libdir)/pkgconfig
32267 +pkgconfig_DATA = lua.pc
32268 +EXTRA_DIST = \
32269 + all.c lua.ico lua.pc.in noparser.c strict.lua \
32270 + luavs.bat min.c README
32271 +
32272 +all: all-am
32273 +
32274 +.SUFFIXES:
32275 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
32276 + @for dep in $?; do \
32277 + case '$(am__configure_deps)' in \
32278 + *$$dep*) \
32279 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
32280 + && exit 0; \
32281 + exit 1;; \
32282 + esac; \
32283 + done; \
32284 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign etc/Makefile'; \
32285 + cd $(top_srcdir) && \
32286 + $(AUTOMAKE) --foreign etc/Makefile
32287 +.PRECIOUS: Makefile
32288 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
32289 + @case '$?' in \
32290 + *config.status*) \
32291 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
32292 + *) \
32293 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
32294 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
32295 + esac;
32296 +
32297 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
32298 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32299 +
32300 +$(top_srcdir)/configure: $(am__configure_deps)
32301 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32302 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
32303 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32304 +lua.pc: $(top_builddir)/config.status $(srcdir)/lua.pc.in
32305 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
32306 +
32307 +mostlyclean-libtool:
32308 + -rm -f *.lo
32309 +
32310 +clean-libtool:
32311 + -rm -rf .libs _libs
32312 +
32313 +distclean-libtool:
32314 + -rm -f libtool
32315 +uninstall-info-am:
32316 +install-pkgconfigDATA: $(pkgconfig_DATA)
32317 + @$(NORMAL_INSTALL)
32318 + test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
32319 + @list='$(pkgconfig_DATA)'; for p in $$list; do \
32320 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
32321 + f=$(am__strip_dir) \
32322 + echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
32323 + $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
32324 + done
32325 +
32326 +uninstall-pkgconfigDATA:
32327 + @$(NORMAL_UNINSTALL)
32328 + @list='$(pkgconfig_DATA)'; for p in $$list; do \
32329 + f=$(am__strip_dir) \
32330 + echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
32331 + rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
32332 + done
32333 +install-includeHEADERS: $(include_HEADERS)
32334 + @$(NORMAL_INSTALL)
32335 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
32336 + @list='$(include_HEADERS)'; for p in $$list; do \
32337 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
32338 + f=$(am__strip_dir) \
32339 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
32340 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
32341 + done
32342 +
32343 +uninstall-includeHEADERS:
32344 + @$(NORMAL_UNINSTALL)
32345 + @list='$(include_HEADERS)'; for p in $$list; do \
32346 + f=$(am__strip_dir) \
32347 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
32348 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
32349 + done
32350 +
32351 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
32352 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32353 + unique=`for i in $$list; do \
32354 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32355 + done | \
32356 + $(AWK) ' { files[$$0] = 1; } \
32357 + END { for (i in files) print i; }'`; \
32358 + mkid -fID $$unique
32359 +tags: TAGS
32360 +
32361 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
32362 + $(TAGS_FILES) $(LISP)
32363 + tags=; \
32364 + here=`pwd`; \
32365 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32366 + unique=`for i in $$list; do \
32367 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32368 + done | \
32369 + $(AWK) ' { files[$$0] = 1; } \
32370 + END { for (i in files) print i; }'`; \
32371 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
32372 + test -n "$$unique" || unique=$$empty_fix; \
32373 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
32374 + $$tags $$unique; \
32375 + fi
32376 +ctags: CTAGS
32377 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
32378 + $(TAGS_FILES) $(LISP)
32379 + tags=; \
32380 + here=`pwd`; \
32381 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32382 + unique=`for i in $$list; do \
32383 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32384 + done | \
32385 + $(AWK) ' { files[$$0] = 1; } \
32386 + END { for (i in files) print i; }'`; \
32387 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
32388 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
32389 + $$tags $$unique
32390 +
32391 +GTAGS:
32392 + here=`$(am__cd) $(top_builddir) && pwd` \
32393 + && cd $(top_srcdir) \
32394 + && gtags -i $(GTAGS_ARGS) $$here
32395 +
32396 +distclean-tags:
32397 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
32398 +
32399 +distdir: $(DISTFILES)
32400 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
32401 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
32402 + list='$(DISTFILES)'; for file in $$list; do \
32403 + case $$file in \
32404 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
32405 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
32406 + esac; \
32407 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
32408 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
32409 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
32410 + dir="/$$dir"; \
32411 + $(mkdir_p) "$(distdir)$$dir"; \
32412 + else \
32413 + dir=''; \
32414 + fi; \
32415 + if test -d $$d/$$file; then \
32416 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
32417 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
32418 + fi; \
32419 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
32420 + else \
32421 + test -f $(distdir)/$$file \
32422 + || cp -p $$d/$$file $(distdir)/$$file \
32423 + || exit 1; \
32424 + fi; \
32425 + done
32426 +check-am: all-am
32427 +check: check-am
32428 +all-am: Makefile $(DATA) $(HEADERS)
32429 +installdirs:
32430 + for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
32431 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
32432 + done
32433 +install: install-am
32434 +install-exec: install-exec-am
32435 +install-data: install-data-am
32436 +uninstall: uninstall-am
32437 +
32438 +install-am: all-am
32439 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
32440 +
32441 +installcheck: installcheck-am
32442 +install-strip:
32443 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
32444 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
32445 + `test -z '$(STRIP)' || \
32446 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
32447 +mostlyclean-generic:
32448 +
32449 +clean-generic:
32450 +
32451 +distclean-generic:
32452 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
32453 +
32454 +maintainer-clean-generic:
32455 + @echo "This command is intended for maintainers to use"
32456 + @echo "it deletes files that may require special tools to rebuild."
32457 +clean: clean-am
32458 +
32459 +clean-am: clean-generic clean-libtool mostlyclean-am
32460 +
32461 +distclean: distclean-am
32462 + -rm -f Makefile
32463 +distclean-am: clean-am distclean-generic distclean-libtool \
32464 + distclean-tags
32465 +
32466 +dvi: dvi-am
32467 +
32468 +dvi-am:
32469 +
32470 +html: html-am
32471 +
32472 +info: info-am
32473 +
32474 +info-am:
32475 +
32476 +install-data-am: install-includeHEADERS install-pkgconfigDATA
32477 +
32478 +install-exec-am:
32479 +
32480 +install-info: install-info-am
32481 +
32482 +install-man:
32483 +
32484 +installcheck-am:
32485 +
32486 +maintainer-clean: maintainer-clean-am
32487 + -rm -f Makefile
32488 +maintainer-clean-am: distclean-am maintainer-clean-generic
32489 +
32490 +mostlyclean: mostlyclean-am
32491 +
32492 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
32493 +
32494 +pdf: pdf-am
32495 +
32496 +pdf-am:
32497 +
32498 +ps: ps-am
32499 +
32500 +ps-am:
32501 +
32502 +uninstall-am: uninstall-includeHEADERS uninstall-info-am \
32503 + uninstall-pkgconfigDATA
32504 +
32505 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
32506 + clean-libtool ctags distclean distclean-generic \
32507 + distclean-libtool distclean-tags distdir dvi dvi-am html \
32508 + html-am info info-am install install-am install-data \
32509 + install-data-am install-exec install-exec-am \
32510 + install-includeHEADERS install-info install-info-am \
32511 + install-man install-pkgconfigDATA install-strip installcheck \
32512 + installcheck-am installdirs maintainer-clean \
32513 + maintainer-clean-generic mostlyclean mostlyclean-generic \
32514 + mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
32515 + uninstall-am uninstall-includeHEADERS uninstall-info-am \
32516 + uninstall-pkgconfigDATA
32517 +
32518 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
32519 +# Otherwise a system limit (for SysV at least) may be exceeded.
32520 +.NOEXPORT:
32521 diff -urN lua-5.1.4/install-sh lua-5.1.4-autotoolize/install-sh
32522 --- lua-5.1.4/install-sh 1970-01-01 01:00:00.000000000 +0100
32523 +++ lua-5.1.4-autotoolize/install-sh 2008-09-03 13:18:23.000000000 +0200
32524 @@ -0,0 +1,323 @@
32525 +#!/bin/sh
32526 +# install - install a program, script, or datafile
32527 +
32528 +scriptversion=2005-05-14.22
32529 +
32530 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
32531 +# later released in X11R6 (xc/config/util/install.sh) with the
32532 +# following copyright and license.
32533 +#
32534 +# Copyright (C) 1994 X Consortium
32535 +#
32536 +# Permission is hereby granted, free of charge, to any person obtaining a copy
32537 +# of this software and associated documentation files (the "Software"), to
32538 +# deal in the Software without restriction, including without limitation the
32539 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
32540 +# sell copies of the Software, and to permit persons to whom the Software is
32541 +# furnished to do so, subject to the following conditions:
32542 +#
32543 +# The above copyright notice and this permission notice shall be included in
32544 +# all copies or substantial portions of the Software.
32545 +#
32546 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32547 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32548 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32549 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
32550 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
32551 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32552 +#
32553 +# Except as contained in this notice, the name of the X Consortium shall not
32554 +# be used in advertising or otherwise to promote the sale, use or other deal-
32555 +# ings in this Software without prior written authorization from the X Consor-
32556 +# tium.
32557 +#
32558 +#
32559 +# FSF changes to this file are in the public domain.
32560 +#
32561 +# Calling this script install-sh is preferred over install.sh, to prevent
32562 +# `make' implicit rules from creating a file called install from it
32563 +# when there is no Makefile.
32564 +#
32565 +# This script is compatible with the BSD install script, but was written
32566 +# from scratch. It can only install one file at a time, a restriction
32567 +# shared with many OS's install programs.
32568 +
32569 +# set DOITPROG to echo to test this script
32570 +
32571 +# Don't use :- since 4.3BSD and earlier shells don't like it.
32572 +doit="${DOITPROG-}"
32573 +
32574 +# put in absolute paths if you don't have them in your path; or use env. vars.
32575 +
32576 +mvprog="${MVPROG-mv}"
32577 +cpprog="${CPPROG-cp}"
32578 +chmodprog="${CHMODPROG-chmod}"
32579 +chownprog="${CHOWNPROG-chown}"
32580 +chgrpprog="${CHGRPPROG-chgrp}"
32581 +stripprog="${STRIPPROG-strip}"
32582 +rmprog="${RMPROG-rm}"
32583 +mkdirprog="${MKDIRPROG-mkdir}"
32584 +
32585 +chmodcmd="$chmodprog 0755"
32586 +chowncmd=
32587 +chgrpcmd=
32588 +stripcmd=
32589 +rmcmd="$rmprog -f"
32590 +mvcmd="$mvprog"
32591 +src=
32592 +dst=
32593 +dir_arg=
32594 +dstarg=
32595 +no_target_directory=
32596 +
32597 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
32598 + or: $0 [OPTION]... SRCFILES... DIRECTORY
32599 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
32600 + or: $0 [OPTION]... -d DIRECTORIES...
32601 +
32602 +In the 1st form, copy SRCFILE to DSTFILE.
32603 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
32604 +In the 4th, create DIRECTORIES.
32605 +
32606 +Options:
32607 +-c (ignored)
32608 +-d create directories instead of installing files.
32609 +-g GROUP $chgrpprog installed files to GROUP.
32610 +-m MODE $chmodprog installed files to MODE.
32611 +-o USER $chownprog installed files to USER.
32612 +-s $stripprog installed files.
32613 +-t DIRECTORY install into DIRECTORY.
32614 +-T report an error if DSTFILE is a directory.
32615 +--help display this help and exit.
32616 +--version display version info and exit.
32617 +
32618 +Environment variables override the default commands:
32619 + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
32620 +"
32621 +
32622 +while test -n "$1"; do
32623 + case $1 in
32624 + -c) shift
32625 + continue;;
32626 +
32627 + -d) dir_arg=true
32628 + shift
32629 + continue;;
32630 +
32631 + -g) chgrpcmd="$chgrpprog $2"
32632 + shift
32633 + shift
32634 + continue;;
32635 +
32636 + --help) echo "$usage"; exit $?;;
32637 +
32638 + -m) chmodcmd="$chmodprog $2"
32639 + shift
32640 + shift
32641 + continue;;
32642 +
32643 + -o) chowncmd="$chownprog $2"
32644 + shift
32645 + shift
32646 + continue;;
32647 +
32648 + -s) stripcmd=$stripprog
32649 + shift
32650 + continue;;
32651 +
32652 + -t) dstarg=$2
32653 + shift
32654 + shift
32655 + continue;;
32656 +
32657 + -T) no_target_directory=true
32658 + shift
32659 + continue;;
32660 +
32661 + --version) echo "$0 $scriptversion"; exit $?;;
32662 +
32663 + *) # When -d is used, all remaining arguments are directories to create.
32664 + # When -t is used, the destination is already specified.
32665 + test -n "$dir_arg$dstarg" && break
32666 + # Otherwise, the last argument is the destination. Remove it from $@.
32667 + for arg
32668 + do
32669 + if test -n "$dstarg"; then
32670 + # $@ is not empty: it contains at least $arg.
32671 + set fnord "$@" "$dstarg"
32672 + shift # fnord
32673 + fi
32674 + shift # arg
32675 + dstarg=$arg
32676 + done
32677 + break;;
32678 + esac
32679 +done
32680 +
32681 +if test -z "$1"; then
32682 + if test -z "$dir_arg"; then
32683 + echo "$0: no input file specified." >&2
32684 + exit 1
32685 + fi
32686 + # It's OK to call `install-sh -d' without argument.
32687 + # This can happen when creating conditional directories.
32688 + exit 0
32689 +fi
32690 +
32691 +for src
32692 +do
32693 + # Protect names starting with `-'.
32694 + case $src in
32695 + -*) src=./$src ;;
32696 + esac
32697 +
32698 + if test -n "$dir_arg"; then
32699 + dst=$src
32700 + src=
32701 +
32702 + if test -d "$dst"; then
32703 + mkdircmd=:
32704 + chmodcmd=
32705 + else
32706 + mkdircmd=$mkdirprog
32707 + fi
32708 + else
32709 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
32710 + # might cause directories to be created, which would be especially bad
32711 + # if $src (and thus $dsttmp) contains '*'.
32712 + if test ! -f "$src" && test ! -d "$src"; then
32713 + echo "$0: $src does not exist." >&2
32714 + exit 1
32715 + fi
32716 +
32717 + if test -z "$dstarg"; then
32718 + echo "$0: no destination specified." >&2
32719 + exit 1
32720 + fi
32721 +
32722 + dst=$dstarg
32723 + # Protect names starting with `-'.
32724 + case $dst in
32725 + -*) dst=./$dst ;;
32726 + esac
32727 +
32728 + # If destination is a directory, append the input filename; won't work
32729 + # if double slashes aren't ignored.
32730 + if test -d "$dst"; then
32731 + if test -n "$no_target_directory"; then
32732 + echo "$0: $dstarg: Is a directory" >&2
32733 + exit 1
32734 + fi
32735 + dst=$dst/`basename "$src"`
32736 + fi
32737 + fi
32738 +
32739 + # This sed command emulates the dirname command.
32740 + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
32741 +
32742 + # Make sure that the destination directory exists.
32743 +
32744 + # Skip lots of stat calls in the usual case.
32745 + if test ! -d "$dstdir"; then
32746 + defaultIFS='
32747 + '
32748 + IFS="${IFS-$defaultIFS}"
32749 +
32750 + oIFS=$IFS
32751 + # Some sh's can't handle IFS=/ for some reason.
32752 + IFS='%'
32753 + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
32754 + shift
32755 + IFS=$oIFS
32756 +
32757 + pathcomp=
32758 +
32759 + while test $# -ne 0 ; do
32760 + pathcomp=$pathcomp$1
32761 + shift
32762 + if test ! -d "$pathcomp"; then
32763 + $mkdirprog "$pathcomp"
32764 + # mkdir can fail with a `File exist' error in case several
32765 + # install-sh are creating the directory concurrently. This
32766 + # is OK.
32767 + test -d "$pathcomp" || exit
32768 + fi
32769 + pathcomp=$pathcomp/
32770 + done
32771 + fi
32772 +
32773 + if test -n "$dir_arg"; then
32774 + $doit $mkdircmd "$dst" \
32775 + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
32776 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
32777 + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
32778 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
32779 +
32780 + else
32781 + dstfile=`basename "$dst"`
32782 +
32783 + # Make a couple of temp file names in the proper directory.
32784 + dsttmp=$dstdir/_inst.$$_
32785 + rmtmp=$dstdir/_rm.$$_
32786 +
32787 + # Trap to clean up those temp files at exit.
32788 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
32789 + trap '(exit $?); exit' 1 2 13 15
32790 +
32791 + # Copy the file name to the temp name.
32792 + $doit $cpprog "$src" "$dsttmp" &&
32793 +
32794 + # and set any options; do chmod last to preserve setuid bits.
32795 + #
32796 + # If any of these fail, we abort the whole thing. If we want to
32797 + # ignore errors from any of these, just make sure not to ignore
32798 + # errors from the above "$doit $cpprog $src $dsttmp" command.
32799 + #
32800 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
32801 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
32802 + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
32803 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
32804 +
32805 + # Now rename the file to the real destination.
32806 + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
32807 + || {
32808 + # The rename failed, perhaps because mv can't rename something else
32809 + # to itself, or perhaps because mv is so ancient that it does not
32810 + # support -f.
32811 +
32812 + # Now remove or move aside any old file at destination location.
32813 + # We try this two ways since rm can't unlink itself on some
32814 + # systems and the destination file might be busy for other
32815 + # reasons. In this case, the final cleanup might fail but the new
32816 + # file should still install successfully.
32817 + {
32818 + if test -f "$dstdir/$dstfile"; then
32819 + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
32820 + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
32821 + || {
32822 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
32823 + (exit 1); exit 1
32824 + }
32825 + else
32826 + :
32827 + fi
32828 + } &&
32829 +
32830 + # Now rename the file to the real destination.
32831 + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
32832 + }
32833 + }
32834 + fi || { (exit 1); exit 1; }
32835 +done
32836 +
32837 +# The final little trick to "correctly" pass the exit status to the exit trap.
32838 +{
32839 + (exit 0); exit 0
32840 +}
32841 +
32842 +# Local variables:
32843 +# eval: (add-hook 'write-file-hooks 'time-stamp)
32844 +# time-stamp-start: "scriptversion="
32845 +# time-stamp-format: "%:y-%02m-%02d.%02H"
32846 +# time-stamp-end: "$"
32847 +# End:
32848 diff -urN lua-5.1.4/ltmain.sh lua-5.1.4-autotoolize/ltmain.sh
32849 --- lua-5.1.4/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
32850 +++ lua-5.1.4-autotoolize/ltmain.sh 2008-09-03 13:18:23.000000000 +0200
32851 @@ -0,0 +1,6971 @@
32852 +# ltmain.sh - Provide generalized library-building support services.
32853 +# NOTE: Changing this file will not affect anything until you rerun configure.
32854 +#
32855 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
32856 +# Free Software Foundation, Inc.
32857 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
32858 +#
32859 +# This program is free software; you can redistribute it and/or modify
32860 +# it under the terms of the GNU General Public License as published by
32861 +# the Free Software Foundation; either version 2 of the License, or
32862 +# (at your option) any later version.
32863 +#
32864 +# This program is distributed in the hope that it will be useful, but
32865 +# WITHOUT ANY WARRANTY; without even the implied warranty of
32866 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32867 +# General Public License for more details.
32868 +#
32869 +# You should have received a copy of the GNU General Public License
32870 +# along with this program; if not, write to the Free Software
32871 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32872 +#
32873 +# As a special exception to the GNU General Public License, if you
32874 +# distribute this file as part of a program that contains a
32875 +# configuration script generated by Autoconf, you may include it under
32876 +# the same distribution terms that you use for the rest of that program.
32877 +
32878 +basename="s,^.*/,,g"
32879 +
32880 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
32881 +# is ksh but when the shell is invoked as "sh" and the current value of
32882 +# the _XPG environment variable is not equal to 1 (one), the special
32883 +# positional parameter $0, within a function call, is the name of the
32884 +# function.
32885 +progpath="$0"
32886 +
32887 +# define SED for historic ltconfig's generated by Libtool 1.3
32888 +test -z "$SED" && SED=sed
32889 +
32890 +# The name of this program:
32891 +progname=`echo "$progpath" | $SED $basename`
32892 +modename="$progname"
32893 +
32894 +# Global variables:
32895 +EXIT_SUCCESS=0
32896 +EXIT_FAILURE=1
32897 +
32898 +PROGRAM=ltmain.sh
32899 +PACKAGE=libtool
32900 +VERSION=1.5.22
32901 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
32902 +
32903 +# See if we are running on zsh, and set the options which allow our
32904 +# commands through without removal of \ escapes.
32905 +if test -n "${ZSH_VERSION+set}" ; then
32906 + setopt NO_GLOB_SUBST
32907 +fi
32908 +# Same for EGREP, and just to be sure, do LTCC as well
32909 +if test "X$EGREP" = X ; then
32910 + EGREP=egrep
32911 +fi
32912 +if test "X$LTCC" = X ; then
32913 + LTCC=${CC-gcc}
32914 +fi
32915 +
32916 +# Check that we have a working $echo.
32917 +if test "X$1" = X--no-reexec; then
32918 + # Discard the --no-reexec flag, and continue.
32919 + shift
32920 +elif test "X$1" = X--fallback-echo; then
32921 + # Avoid inline document here, it may be left over
32922 + :
32923 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
32924 + # Yippee, $echo works!
32925 + :
32926 +else
32927 + # Restart under the correct shell, and then maybe $echo will work.
32928 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
32929 +fi
32930 +
32931 +if test "X$1" = X--fallback-echo; then
32932 + # used as fallback echo
32933 + shift
32934 + cat <<EOF
32935 +$*
32936 +EOF
32937 + exit $EXIT_SUCCESS
32938 +fi
32939 +
32940 +default_mode=
32941 +help="Try \`$progname --help' for more information."
32942 +magic="%%%MAGIC variable%%%"
32943 +mkdir="mkdir"
32944 +mv="mv -f"
32945 +rm="rm -f"
32946 +
32947 +# Sed substitution that helps us do robust quoting. It backslashifies
32948 +# metacharacters that are still active within double-quoted strings.
32949 +Xsed="${SED}"' -e 1s/^X//'
32950 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
32951 +# test EBCDIC or ASCII
32952 +case `echo X|tr X '\101'` in
32953 + A) # ASCII based system
32954 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
32955 + SP2NL='tr \040 \012'
32956 + NL2SP='tr \015\012 \040\040'
32957 + ;;
32958 + *) # EBCDIC based system
32959 + SP2NL='tr \100 \n'
32960 + NL2SP='tr \r\n \100\100'
32961 + ;;
32962 +esac
32963 +
32964 +# NLS nuisances.
32965 +# Only set LANG and LC_ALL to C if already set.
32966 +# These must not be set unconditionally because not all systems understand
32967 +# e.g. LANG=C (notably SCO).
32968 +# We save the old values to restore during execute mode.
32969 +if test "${LC_ALL+set}" = set; then
32970 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
32971 +fi
32972 +if test "${LANG+set}" = set; then
32973 + save_LANG="$LANG"; LANG=C; export LANG
32974 +fi
32975 +
32976 +# Make sure IFS has a sensible default
32977 +lt_nl='
32978 +'
32979 +IFS=" $lt_nl"
32980 +
32981 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
32982 + $echo "$modename: not configured to build any kind of library" 1>&2
32983 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
32984 + exit $EXIT_FAILURE
32985 +fi
32986 +
32987 +# Global variables.
32988 +mode=$default_mode
32989 +nonopt=
32990 +prev=
32991 +prevopt=
32992 +run=
32993 +show="$echo"
32994 +show_help=
32995 +execute_dlfiles=
32996 +duplicate_deps=no
32997 +preserve_args=
32998 +lo2o="s/\\.lo\$/.${objext}/"
32999 +o2lo="s/\\.${objext}\$/.lo/"
33000 +
33001 +if test -z "$max_cmd_len"; then
33002 + i=0
33003 + testring="ABCD"
33004 + new_result=
33005 +
33006 + # If test is not a shell built-in, we'll probably end up computing a
33007 + # maximum length that is only half of the actual maximum length, but
33008 + # we can't tell.
33009 + while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
33010 + = "XX$testring") >/dev/null 2>&1 &&
33011 + new_result=`expr "X$testring" : ".*" 2>&1` &&
33012 + max_cmd_len="$new_result" &&
33013 + test "$i" != 17 # 1/2 MB should be enough
33014 + do
33015 + i=`expr $i + 1`
33016 + testring="$testring$testring"
33017 + done
33018 + testring=
33019 + # Add a significant safety factor because C++ compilers can tack on massive
33020 + # amounts of additional arguments before passing them to the linker.
33021 + # It appears as though 1/2 is a usable value.
33022 + max_cmd_len=`expr $max_cmd_len \/ 2`
33023 +fi
33024 +
33025 +#####################################
33026 +# Shell function definitions:
33027 +# This seems to be the best place for them
33028 +
33029 +# func_mktempdir [string]
33030 +# Make a temporary directory that won't clash with other running
33031 +# libtool processes, and avoids race conditions if possible. If
33032 +# given, STRING is the basename for that directory.
33033 +func_mktempdir ()
33034 +{
33035 + my_template="${TMPDIR-/tmp}/${1-$progname}"
33036 +
33037 + if test "$run" = ":"; then
33038 + # Return a directory name, but don't create it in dry-run mode
33039 + my_tmpdir="${my_template}-$$"
33040 + else
33041 +
33042 + # If mktemp works, use that first and foremost
33043 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
33044 +
33045 + if test ! -d "$my_tmpdir"; then
33046 + # Failing that, at least try and use $RANDOM to avoid a race
33047 + my_tmpdir="${my_template}-${RANDOM-0}$$"
33048 +
33049 + save_mktempdir_umask=`umask`
33050 + umask 0077
33051 + $mkdir "$my_tmpdir"
33052 + umask $save_mktempdir_umask
33053 + fi
33054 +
33055 + # If we're not in dry-run mode, bomb out on failure
33056 + test -d "$my_tmpdir" || {
33057 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
33058 + exit $EXIT_FAILURE
33059 + }
33060 + fi
33061 +
33062 + $echo "X$my_tmpdir" | $Xsed
33063 +}
33064 +
33065 +
33066 +# func_win32_libid arg
33067 +# return the library type of file 'arg'
33068 +#
33069 +# Need a lot of goo to handle *both* DLLs and import libs
33070 +# Has to be a shell function in order to 'eat' the argument
33071 +# that is supplied when $file_magic_command is called.
33072 +func_win32_libid ()
33073 +{
33074 + win32_libid_type="unknown"
33075 + win32_fileres=`file -L $1 2>/dev/null`
33076 + case $win32_fileres in
33077 + *ar\ archive\ import\ library*) # definitely import
33078 + win32_libid_type="x86 archive import"
33079 + ;;
33080 + *ar\ archive*) # could be an import, or static
33081 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
33082 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
33083 + win32_nmres=`eval $NM -f posix -A $1 | \
33084 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
33085 + case $win32_nmres in
33086 + import*) win32_libid_type="x86 archive import";;
33087 + *) win32_libid_type="x86 archive static";;
33088 + esac
33089 + fi
33090 + ;;
33091 + *DLL*)
33092 + win32_libid_type="x86 DLL"
33093 + ;;
33094 + *executable*) # but shell scripts are "executable" too...
33095 + case $win32_fileres in
33096 + *MS\ Windows\ PE\ Intel*)
33097 + win32_libid_type="x86 DLL"
33098 + ;;
33099 + esac
33100 + ;;
33101 + esac
33102 + $echo $win32_libid_type
33103 +}
33104 +
33105 +
33106 +# func_infer_tag arg
33107 +# Infer tagged configuration to use if any are available and
33108 +# if one wasn't chosen via the "--tag" command line option.
33109 +# Only attempt this if the compiler in the base compile
33110 +# command doesn't match the default compiler.
33111 +# arg is usually of the form 'gcc ...'
33112 +func_infer_tag ()
33113 +{
33114 + if test -n "$available_tags" && test -z "$tagname"; then
33115 + CC_quoted=
33116 + for arg in $CC; do
33117 + case $arg in
33118 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33119 + arg="\"$arg\""
33120 + ;;
33121 + esac
33122 + CC_quoted="$CC_quoted $arg"
33123 + done
33124 + case $@ in
33125 + # Blanks in the command may have been stripped by the calling shell,
33126 + # but not from the CC environment variable when configure was run.
33127 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
33128 + # Blanks at the start of $base_compile will cause this to fail
33129 + # if we don't check for them as well.
33130 + *)
33131 + for z in $available_tags; do
33132 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
33133 + # Evaluate the configuration.
33134 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
33135 + CC_quoted=
33136 + for arg in $CC; do
33137 + # Double-quote args containing other shell metacharacters.
33138 + case $arg in
33139 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33140 + arg="\"$arg\""
33141 + ;;
33142 + esac
33143 + CC_quoted="$CC_quoted $arg"
33144 + done
33145 + # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
33146 + trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
33147 + # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
33148 + extendcc=${host}-${CC}
33149 + # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc
33150 + # (Gentoo-specific hack because we always export $CHOST)
33151 + mungedcc=${CHOST-${host}}-${trimedcc}
33152 + case "$@ " in
33153 + "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
33154 + "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
33155 + tagname=CC
33156 + break ;;
33157 + "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
33158 + "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
33159 + "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
33160 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
33161 + # The compiler in the base compile command matches
33162 + # the one in the tagged configuration.
33163 + # Assume this is the tagged configuration we want.
33164 + tagname=$z
33165 + break
33166 + ;;
33167 + esac
33168 + fi
33169 + done
33170 + # If $tagname still isn't set, then no tagged configuration
33171 + # was found and let the user know that the "--tag" command
33172 + # line option must be used.
33173 + if test -z "$tagname"; then
33174 + $echo "$modename: unable to infer tagged configuration"
33175 + $echo "$modename: specify a tag with \`--tag'" 1>&2
33176 + exit $EXIT_FAILURE
33177 +# else
33178 +# $echo "$modename: using $tagname tagged configuration"
33179 + fi
33180 + ;;
33181 + esac
33182 + fi
33183 +}
33184 +
33185 +
33186 +# func_extract_an_archive dir oldlib
33187 +func_extract_an_archive ()
33188 +{
33189 + f_ex_an_ar_dir="$1"; shift
33190 + f_ex_an_ar_oldlib="$1"
33191 +
33192 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
33193 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
33194 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
33195 + :
33196 + else
33197 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
33198 + exit $EXIT_FAILURE
33199 + fi
33200 +}
33201 +
33202 +# func_extract_archives gentop oldlib ...
33203 +func_extract_archives ()
33204 +{
33205 + my_gentop="$1"; shift
33206 + my_oldlibs=${1+"$@"}
33207 + my_oldobjs=""
33208 + my_xlib=""
33209 + my_xabs=""
33210 + my_xdir=""
33211 + my_status=""
33212 +
33213 + $show "${rm}r $my_gentop"
33214 + $run ${rm}r "$my_gentop"
33215 + $show "$mkdir $my_gentop"
33216 + $run $mkdir "$my_gentop"
33217 + my_status=$?
33218 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
33219 + exit $my_status
33220 + fi
33221 +
33222 + for my_xlib in $my_oldlibs; do
33223 + # Extract the objects.
33224 + case $my_xlib in
33225 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
33226 + *) my_xabs=`pwd`"/$my_xlib" ;;
33227 + esac
33228 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
33229 + my_xdir="$my_gentop/$my_xlib"
33230 +
33231 + $show "${rm}r $my_xdir"
33232 + $run ${rm}r "$my_xdir"
33233 + $show "$mkdir $my_xdir"
33234 + $run $mkdir "$my_xdir"
33235 + exit_status=$?
33236 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
33237 + exit $exit_status
33238 + fi
33239 + case $host in
33240 + *-darwin*)
33241 + $show "Extracting $my_xabs"
33242 + # Do not bother doing anything if just a dry run
33243 + if test -z "$run"; then
33244 + darwin_orig_dir=`pwd`
33245 + cd $my_xdir || exit $?
33246 + darwin_archive=$my_xabs
33247 + darwin_curdir=`pwd`
33248 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
33249 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
33250 + if test -n "$darwin_arches"; then
33251 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
33252 + darwin_arch=
33253 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
33254 + for darwin_arch in $darwin_arches ; do
33255 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
33256 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
33257 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
33258 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
33259 + cd "$darwin_curdir"
33260 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
33261 + done # $darwin_arches
33262 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
33263 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
33264 + darwin_file=
33265 + darwin_files=
33266 + for darwin_file in $darwin_filelist; do
33267 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
33268 + lipo -create -output "$darwin_file" $darwin_files
33269 + done # $darwin_filelist
33270 + ${rm}r unfat-$$
33271 + cd "$darwin_orig_dir"
33272 + else
33273 + cd "$darwin_orig_dir"
33274 + func_extract_an_archive "$my_xdir" "$my_xabs"
33275 + fi # $darwin_arches
33276 + fi # $run
33277 + ;;
33278 + *)
33279 + func_extract_an_archive "$my_xdir" "$my_xabs"
33280 + ;;
33281 + esac
33282 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
33283 + done
33284 + func_extract_archives_result="$my_oldobjs"
33285 +}
33286 +# End of Shell function definitions
33287 +#####################################
33288 +
33289 +# Darwin sucks
33290 +eval std_shrext=\"$shrext_cmds\"
33291 +
33292 +disable_libs=no
33293 +
33294 +# Parse our command line options once, thoroughly.
33295 +while test "$#" -gt 0
33296 +do
33297 + arg="$1"
33298 + shift
33299 +
33300 + case $arg in
33301 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
33302 + *) optarg= ;;
33303 + esac
33304 +
33305 + # If the previous option needs an argument, assign it.
33306 + if test -n "$prev"; then
33307 + case $prev in
33308 + execute_dlfiles)
33309 + execute_dlfiles="$execute_dlfiles $arg"
33310 + ;;
33311 + tag)
33312 + tagname="$arg"
33313 + preserve_args="${preserve_args}=$arg"
33314 +
33315 + # Check whether tagname contains only valid characters
33316 + case $tagname in
33317 + *[!-_A-Za-z0-9,/]*)
33318 + $echo "$progname: invalid tag name: $tagname" 1>&2
33319 + exit $EXIT_FAILURE
33320 + ;;
33321 + esac
33322 +
33323 + case $tagname in
33324 + CC)
33325 + # Don't test for the "default" C tag, as we know, it's there, but
33326 + # not specially marked.
33327 + ;;
33328 + *)
33329 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
33330 + taglist="$taglist $tagname"
33331 + # Evaluate the configuration.
33332 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
33333 + else
33334 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
33335 + fi
33336 + ;;
33337 + esac
33338 + ;;
33339 + *)
33340 + eval "$prev=\$arg"
33341 + ;;
33342 + esac
33343 +
33344 + prev=
33345 + prevopt=
33346 + continue
33347 + fi
33348 +
33349 + # Have we seen a non-optional argument yet?
33350 + case $arg in
33351 + --help)
33352 + show_help=yes
33353 + ;;
33354 +
33355 + --version)
33356 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
33357 + $echo
33358 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
33359 + $echo "This is free software; see the source for copying conditions. There is NO"
33360 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
33361 + exit $?
33362 + ;;
33363 +
33364 + --config)
33365 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
33366 + # Now print the configurations for the tags.
33367 + for tagname in $taglist; do
33368 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
33369 + done
33370 + exit $?
33371 + ;;
33372 +
33373 + --debug)
33374 + $echo "$progname: enabling shell trace mode"
33375 + set -x
33376 + preserve_args="$preserve_args $arg"
33377 + ;;
33378 +
33379 + --dry-run | -n)
33380 + run=:
33381 + ;;
33382 +
33383 + --features)
33384 + $echo "host: $host"
33385 + if test "$build_libtool_libs" = yes; then
33386 + $echo "enable shared libraries"
33387 + else
33388 + $echo "disable shared libraries"
33389 + fi
33390 + if test "$build_old_libs" = yes; then
33391 + $echo "enable static libraries"
33392 + else
33393 + $echo "disable static libraries"
33394 + fi
33395 + exit $?
33396 + ;;
33397 +
33398 + --finish) mode="finish" ;;
33399 +
33400 + --mode) prevopt="--mode" prev=mode ;;
33401 + --mode=*) mode="$optarg" ;;
33402 +
33403 + --preserve-dup-deps) duplicate_deps="yes" ;;
33404 +
33405 + --quiet | --silent)
33406 + show=:
33407 + preserve_args="$preserve_args $arg"
33408 + ;;
33409 +
33410 + --tag)
33411 + prevopt="--tag"
33412 + prev=tag
33413 + preserve_args="$preserve_args --tag"
33414 + ;;
33415 + --tag=*)
33416 + set tag "$optarg" ${1+"$@"}
33417 + shift
33418 + prev=tag
33419 + preserve_args="$preserve_args --tag"
33420 + ;;
33421 +
33422 + -dlopen)
33423 + prevopt="-dlopen"
33424 + prev=execute_dlfiles
33425 + ;;
33426 +
33427 + -*)
33428 + $echo "$modename: unrecognized option \`$arg'" 1>&2
33429 + $echo "$help" 1>&2
33430 + exit $EXIT_FAILURE
33431 + ;;
33432 +
33433 + *)
33434 + nonopt="$arg"
33435 + break
33436 + ;;
33437 + esac
33438 +done
33439 +
33440 +if test -n "$prevopt"; then
33441 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
33442 + $echo "$help" 1>&2
33443 + exit $EXIT_FAILURE
33444 +fi
33445 +
33446 +case $disable_libs in
33447 +no)
33448 + ;;
33449 +shared)
33450 + build_libtool_libs=no
33451 + build_old_libs=yes
33452 + ;;
33453 +static)
33454 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
33455 + ;;
33456 +esac
33457 +
33458 +# If this variable is set in any of the actions, the command in it
33459 +# will be execed at the end. This prevents here-documents from being
33460 +# left over by shells.
33461 +exec_cmd=
33462 +
33463 +if test -z "$show_help"; then
33464 +
33465 + # Infer the operation mode.
33466 + if test -z "$mode"; then
33467 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
33468 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
33469 + case $nonopt in
33470 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
33471 + mode=link
33472 + for arg
33473 + do
33474 + case $arg in
33475 + -c)
33476 + mode=compile
33477 + break
33478 + ;;
33479 + esac
33480 + done
33481 + ;;
33482 + *db | *dbx | *strace | *truss)
33483 + mode=execute
33484 + ;;
33485 + *install*|cp|mv)
33486 + mode=install
33487 + ;;
33488 + *rm)
33489 + mode=uninstall
33490 + ;;
33491 + *)
33492 + # If we have no mode, but dlfiles were specified, then do execute mode.
33493 + test -n "$execute_dlfiles" && mode=execute
33494 +
33495 + # Just use the default operation mode.
33496 + if test -z "$mode"; then
33497 + if test -n "$nonopt"; then
33498 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
33499 + else
33500 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
33501 + fi
33502 + fi
33503 + ;;
33504 + esac
33505 + fi
33506 +
33507 + # Only execute mode is allowed to have -dlopen flags.
33508 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
33509 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
33510 + $echo "$help" 1>&2
33511 + exit $EXIT_FAILURE
33512 + fi
33513 +
33514 + # Change the help message to a mode-specific one.
33515 + generic_help="$help"
33516 + help="Try \`$modename --help --mode=$mode' for more information."
33517 +
33518 + # These modes are in order of execution frequency so that they run quickly.
33519 + case $mode in
33520 + # libtool compile mode
33521 + compile)
33522 + modename="$modename: compile"
33523 + # Get the compilation command and the source file.
33524 + base_compile=
33525 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
33526 + suppress_opt=yes
33527 + suppress_output=
33528 + arg_mode=normal
33529 + libobj=
33530 + later=
33531 +
33532 + for arg
33533 + do
33534 + case $arg_mode in
33535 + arg )
33536 + # do not "continue". Instead, add this to base_compile
33537 + lastarg="$arg"
33538 + arg_mode=normal
33539 + ;;
33540 +
33541 + target )
33542 + libobj="$arg"
33543 + arg_mode=normal
33544 + continue
33545 + ;;
33546 +
33547 + normal )
33548 + # Accept any command-line options.
33549 + case $arg in
33550 + -o)
33551 + if test -n "$libobj" ; then
33552 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
33553 + exit $EXIT_FAILURE
33554 + fi
33555 + arg_mode=target
33556 + continue
33557 + ;;
33558 +
33559 + -static | -prefer-pic | -prefer-non-pic)
33560 + later="$later $arg"
33561 + continue
33562 + ;;
33563 +
33564 + -no-suppress)
33565 + suppress_opt=no
33566 + continue
33567 + ;;
33568 +
33569 + -Xcompiler)
33570 + arg_mode=arg # the next one goes into the "base_compile" arg list
33571 + continue # The current "srcfile" will either be retained or
33572 + ;; # replaced later. I would guess that would be a bug.
33573 +
33574 + -Wc,*)
33575 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
33576 + lastarg=
33577 + save_ifs="$IFS"; IFS=','
33578 + for arg in $args; do
33579 + IFS="$save_ifs"
33580 +
33581 + # Double-quote args containing other shell metacharacters.
33582 + # Many Bourne shells cannot handle close brackets correctly
33583 + # in scan sets, so we specify it separately.
33584 + case $arg in
33585 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33586 + arg="\"$arg\""
33587 + ;;
33588 + esac
33589 + lastarg="$lastarg $arg"
33590 + done
33591 + IFS="$save_ifs"
33592 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
33593 +
33594 + # Add the arguments to base_compile.
33595 + base_compile="$base_compile $lastarg"
33596 + continue
33597 + ;;
33598 +
33599 + * )
33600 + # Accept the current argument as the source file.
33601 + # The previous "srcfile" becomes the current argument.
33602 + #
33603 + lastarg="$srcfile"
33604 + srcfile="$arg"
33605 + ;;
33606 + esac # case $arg
33607 + ;;
33608 + esac # case $arg_mode
33609 +
33610 + # Aesthetically quote the previous argument.
33611 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
33612 +
33613 + case $lastarg in
33614 + # Double-quote args containing other shell metacharacters.
33615 + # Many Bourne shells cannot handle close brackets correctly
33616 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
33617 + # in scan sets (worked around with variable expansion),
33618 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
33619 + # at all, so we specify them separately.
33620 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33621 + lastarg="\"$lastarg\""
33622 + ;;
33623 + esac
33624 +
33625 + base_compile="$base_compile $lastarg"
33626 + done # for arg
33627 +
33628 + case $arg_mode in
33629 + arg)
33630 + $echo "$modename: you must specify an argument for -Xcompile"
33631 + exit $EXIT_FAILURE
33632 + ;;
33633 + target)
33634 + $echo "$modename: you must specify a target with \`-o'" 1>&2
33635 + exit $EXIT_FAILURE
33636 + ;;
33637 + *)
33638 + # Get the name of the library object.
33639 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
33640 + ;;
33641 + esac
33642 +
33643 + # Recognize several different file suffixes.
33644 + # If the user specifies -o file.o, it is replaced with file.lo
33645 + xform='[cCFSifmso]'
33646 + case $libobj in
33647 + *.ada) xform=ada ;;
33648 + *.adb) xform=adb ;;
33649 + *.ads) xform=ads ;;
33650 + *.asm) xform=asm ;;
33651 + *.c++) xform=c++ ;;
33652 + *.cc) xform=cc ;;
33653 + *.ii) xform=ii ;;
33654 + *.class) xform=class ;;
33655 + *.cpp) xform=cpp ;;
33656 + *.cxx) xform=cxx ;;
33657 + *.f90) xform=f90 ;;
33658 + *.for) xform=for ;;
33659 + *.java) xform=java ;;
33660 + esac
33661 +
33662 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
33663 +
33664 + case $libobj in
33665 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
33666 + *)
33667 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
33668 + exit $EXIT_FAILURE
33669 + ;;
33670 + esac
33671 +
33672 + func_infer_tag $base_compile
33673 +
33674 + for arg in $later; do
33675 + case $arg in
33676 + -static)
33677 + build_old_libs=yes
33678 + continue
33679 + ;;
33680 +
33681 + -prefer-pic)
33682 + pic_mode=yes
33683 + continue
33684 + ;;
33685 +
33686 + -prefer-non-pic)
33687 + pic_mode=no
33688 + continue
33689 + ;;
33690 + esac
33691 + done
33692 +
33693 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
33694 + case $qlibobj in
33695 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33696 + qlibobj="\"$qlibobj\"" ;;
33697 + esac
33698 + test "X$libobj" != "X$qlibobj" \
33699 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
33700 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
33701 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
33702 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
33703 + if test "X$xdir" = "X$obj"; then
33704 + xdir=
33705 + else
33706 + xdir=$xdir/
33707 + fi
33708 + lobj=${xdir}$objdir/$objname
33709 +
33710 + if test -z "$base_compile"; then
33711 + $echo "$modename: you must specify a compilation command" 1>&2
33712 + $echo "$help" 1>&2
33713 + exit $EXIT_FAILURE
33714 + fi
33715 +
33716 + # Delete any leftover library objects.
33717 + if test "$build_old_libs" = yes; then
33718 + removelist="$obj $lobj $libobj ${libobj}T"
33719 + else
33720 + removelist="$lobj $libobj ${libobj}T"
33721 + fi
33722 +
33723 + $run $rm $removelist
33724 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
33725 +
33726 + # On Cygwin there's no "real" PIC flag so we must build both object types
33727 + case $host_os in
33728 + cygwin* | mingw* | pw32* | os2*)
33729 + pic_mode=default
33730 + ;;
33731 + esac
33732 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
33733 + # non-PIC code in shared libraries is not supported
33734 + pic_mode=default
33735 + fi
33736 +
33737 + # Calculate the filename of the output object if compiler does
33738 + # not support -o with -c
33739 + if test "$compiler_c_o" = no; then
33740 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
33741 + lockfile="$output_obj.lock"
33742 + removelist="$removelist $output_obj $lockfile"
33743 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
33744 + else
33745 + output_obj=
33746 + need_locks=no
33747 + lockfile=
33748 + fi
33749 +
33750 + # Lock this critical section if it is needed
33751 + # We use this script file to make the link, it avoids creating a new file
33752 + if test "$need_locks" = yes; then
33753 + until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
33754 + $show "Waiting for $lockfile to be removed"
33755 + sleep 2
33756 + done
33757 + elif test "$need_locks" = warn; then
33758 + if test -f "$lockfile"; then
33759 + $echo "\
33760 +*** ERROR, $lockfile exists and contains:
33761 +`cat $lockfile 2>/dev/null`
33762 +
33763 +This indicates that another process is trying to use the same
33764 +temporary object file, and libtool could not work around it because
33765 +your compiler does not support \`-c' and \`-o' together. If you
33766 +repeat this compilation, it may succeed, by chance, but you had better
33767 +avoid parallel builds (make -j) in this platform, or get a better
33768 +compiler."
33769 +
33770 + $run $rm $removelist
33771 + exit $EXIT_FAILURE
33772 + fi
33773 + $echo "$srcfile" > "$lockfile"
33774 + fi
33775 +
33776 + if test -n "$fix_srcfile_path"; then
33777 + eval srcfile=\"$fix_srcfile_path\"
33778 + fi
33779 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
33780 + case $qsrcfile in
33781 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33782 + qsrcfile="\"$qsrcfile\"" ;;
33783 + esac
33784 +
33785 + $run $rm "$libobj" "${libobj}T"
33786 +
33787 + # Create a libtool object file (analogous to a ".la" file),
33788 + # but don't create it if we're doing a dry run.
33789 + test -z "$run" && cat > ${libobj}T <<EOF
33790 +# $libobj - a libtool object file
33791 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
33792 +#
33793 +# Please DO NOT delete this file!
33794 +# It is necessary for linking the library.
33795 +
33796 +# Name of the PIC object.
33797 +EOF
33798 +
33799 + # Only build a PIC object if we are building libtool libraries.
33800 + if test "$build_libtool_libs" = yes; then
33801 + # Without this assignment, base_compile gets emptied.
33802 + fbsd_hideous_sh_bug=$base_compile
33803 +
33804 + if test "$pic_mode" != no; then
33805 + command="$base_compile $qsrcfile $pic_flag"
33806 + else
33807 + # Don't build PIC code
33808 + command="$base_compile $qsrcfile"
33809 + fi
33810 +
33811 + if test ! -d "${xdir}$objdir"; then
33812 + $show "$mkdir ${xdir}$objdir"
33813 + $run $mkdir ${xdir}$objdir
33814 + exit_status=$?
33815 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
33816 + exit $exit_status
33817 + fi
33818 + fi
33819 +
33820 + if test -z "$output_obj"; then
33821 + # Place PIC objects in $objdir
33822 + command="$command -o $lobj"
33823 + fi
33824 +
33825 + $run $rm "$lobj" "$output_obj"
33826 +
33827 + $show "$command"
33828 + if $run eval "$command"; then :
33829 + else
33830 + test -n "$output_obj" && $run $rm $removelist
33831 + exit $EXIT_FAILURE
33832 + fi
33833 +
33834 + if test "$need_locks" = warn &&
33835 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
33836 + $echo "\
33837 +*** ERROR, $lockfile contains:
33838 +`cat $lockfile 2>/dev/null`
33839 +
33840 +but it should contain:
33841 +$srcfile
33842 +
33843 +This indicates that another process is trying to use the same
33844 +temporary object file, and libtool could not work around it because
33845 +your compiler does not support \`-c' and \`-o' together. If you
33846 +repeat this compilation, it may succeed, by chance, but you had better
33847 +avoid parallel builds (make -j) in this platform, or get a better
33848 +compiler."
33849 +
33850 + $run $rm $removelist
33851 + exit $EXIT_FAILURE
33852 + fi
33853 +
33854 + # Just move the object if needed, then go on to compile the next one
33855 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
33856 + $show "$mv $output_obj $lobj"
33857 + if $run $mv $output_obj $lobj; then :
33858 + else
33859 + error=$?
33860 + $run $rm $removelist
33861 + exit $error
33862 + fi
33863 + fi
33864 +
33865 + # Append the name of the PIC object to the libtool object file.
33866 + test -z "$run" && cat >> ${libobj}T <<EOF
33867 +pic_object='$objdir/$objname'
33868 +
33869 +EOF
33870 +
33871 + # Allow error messages only from the first compilation.
33872 + if test "$suppress_opt" = yes; then
33873 + suppress_output=' >/dev/null 2>&1'
33874 + fi
33875 + else
33876 + # No PIC object so indicate it doesn't exist in the libtool
33877 + # object file.
33878 + test -z "$run" && cat >> ${libobj}T <<EOF
33879 +pic_object=none
33880 +
33881 +EOF
33882 + fi
33883 +
33884 + # Only build a position-dependent object if we build old libraries.
33885 + if test "$build_old_libs" = yes; then
33886 + if test "$pic_mode" != yes; then
33887 + # Don't build PIC code
33888 + command="$base_compile $qsrcfile"
33889 + else
33890 + command="$base_compile $qsrcfile $pic_flag"
33891 + fi
33892 + if test "$compiler_c_o" = yes; then
33893 + command="$command -o $obj"
33894 + fi
33895 +
33896 + # Suppress compiler output if we already did a PIC compilation.
33897 + command="$command$suppress_output"
33898 + $run $rm "$obj" "$output_obj"
33899 + $show "$command"
33900 + if $run eval "$command"; then :
33901 + else
33902 + $run $rm $removelist
33903 + exit $EXIT_FAILURE
33904 + fi
33905 +
33906 + if test "$need_locks" = warn &&
33907 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
33908 + $echo "\
33909 +*** ERROR, $lockfile contains:
33910 +`cat $lockfile 2>/dev/null`
33911 +
33912 +but it should contain:
33913 +$srcfile
33914 +
33915 +This indicates that another process is trying to use the same
33916 +temporary object file, and libtool could not work around it because
33917 +your compiler does not support \`-c' and \`-o' together. If you
33918 +repeat this compilation, it may succeed, by chance, but you had better
33919 +avoid parallel builds (make -j) in this platform, or get a better
33920 +compiler."
33921 +
33922 + $run $rm $removelist
33923 + exit $EXIT_FAILURE
33924 + fi
33925 +
33926 + # Just move the object if needed
33927 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
33928 + $show "$mv $output_obj $obj"
33929 + if $run $mv $output_obj $obj; then :
33930 + else
33931 + error=$?
33932 + $run $rm $removelist
33933 + exit $error
33934 + fi
33935 + fi
33936 +
33937 + # Append the name of the non-PIC object the libtool object file.
33938 + # Only append if the libtool object file exists.
33939 + test -z "$run" && cat >> ${libobj}T <<EOF
33940 +# Name of the non-PIC object.
33941 +non_pic_object='$objname'
33942 +
33943 +EOF
33944 + else
33945 + # Append the name of the non-PIC object the libtool object file.
33946 + # Only append if the libtool object file exists.
33947 + test -z "$run" && cat >> ${libobj}T <<EOF
33948 +# Name of the non-PIC object.
33949 +non_pic_object=none
33950 +
33951 +EOF
33952 + fi
33953 +
33954 + $run $mv "${libobj}T" "${libobj}"
33955 +
33956 + # Unlock the critical section if it was locked
33957 + if test "$need_locks" != no; then
33958 + $run $rm "$lockfile"
33959 + fi
33960 +
33961 + exit $EXIT_SUCCESS
33962 + ;;
33963 +
33964 + # libtool link mode
33965 + link | relink)
33966 + modename="$modename: link"
33967 + case $host in
33968 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
33969 + # It is impossible to link a dll without this setting, and
33970 + # we shouldn't force the makefile maintainer to figure out
33971 + # which system we are compiling for in order to pass an extra
33972 + # flag for every libtool invocation.
33973 + # allow_undefined=no
33974 +
33975 + # FIXME: Unfortunately, there are problems with the above when trying
33976 + # to make a dll which has undefined symbols, in which case not
33977 + # even a static library is built. For now, we need to specify
33978 + # -no-undefined on the libtool link line when we can be certain
33979 + # that all symbols are satisfied, otherwise we get a static library.
33980 + allow_undefined=yes
33981 + ;;
33982 + *)
33983 + allow_undefined=yes
33984 + ;;
33985 + esac
33986 + libtool_args="$nonopt"
33987 + base_compile="$nonopt $@"
33988 + compile_command="$nonopt"
33989 + finalize_command="$nonopt"
33990 +
33991 + compile_rpath=
33992 + finalize_rpath=
33993 + compile_shlibpath=
33994 + finalize_shlibpath=
33995 + convenience=
33996 + old_convenience=
33997 + deplibs=
33998 + old_deplibs=
33999 + compiler_flags=
34000 + linker_flags=
34001 + dllsearchpath=
34002 + lib_search_path=`pwd`
34003 + inst_prefix_dir=
34004 +
34005 + avoid_version=no
34006 + dlfiles=
34007 + dlprefiles=
34008 + dlself=no
34009 + export_dynamic=no
34010 + export_symbols=
34011 + export_symbols_regex=
34012 + generated=
34013 + libobjs=
34014 + ltlibs=
34015 + module=no
34016 + no_install=no
34017 + objs=
34018 + non_pic_objects=
34019 + notinst_path= # paths that contain not-installed libtool libraries
34020 + precious_files_regex=
34021 + prefer_static_libs=no
34022 + preload=no
34023 + prev=
34024 + prevarg=
34025 + release=
34026 + rpath=
34027 + xrpath=
34028 + perm_rpath=
34029 + temp_rpath=
34030 + thread_safe=no
34031 + vinfo=
34032 + vinfo_number=no
34033 +
34034 + func_infer_tag $base_compile
34035 +
34036 + # We need to know -static, to get the right output filenames.
34037 + for arg
34038 + do
34039 + case $arg in
34040 + -all-static | -static)
34041 + if test "X$arg" = "X-all-static"; then
34042 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
34043 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
34044 + fi
34045 + if test -n "$link_static_flag"; then
34046 + dlopen_self=$dlopen_self_static
34047 + fi
34048 + prefer_static_libs=yes
34049 + else
34050 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
34051 + dlopen_self=$dlopen_self_static
34052 + fi
34053 + prefer_static_libs=built
34054 + fi
34055 + build_libtool_libs=no
34056 + build_old_libs=yes
34057 + break
34058 + ;;
34059 + esac
34060 + done
34061 +
34062 + # See if our shared archives depend on static archives.
34063 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
34064 +
34065 + # Go through the arguments, transforming them on the way.
34066 + while test "$#" -gt 0; do
34067 + arg="$1"
34068 + shift
34069 + case $arg in
34070 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34071 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
34072 + ;;
34073 + *) qarg=$arg ;;
34074 + esac
34075 + libtool_args="$libtool_args $qarg"
34076 +
34077 + # If the previous option needs an argument, assign it.
34078 + if test -n "$prev"; then
34079 + case $prev in
34080 + output)
34081 + compile_command="$compile_command @OUTPUT@"
34082 + finalize_command="$finalize_command @OUTPUT@"
34083 + ;;
34084 + esac
34085 +
34086 + case $prev in
34087 + dlfiles|dlprefiles)
34088 + if test "$preload" = no; then
34089 + # Add the symbol object into the linking commands.
34090 + compile_command="$compile_command @SYMFILE@"
34091 + finalize_command="$finalize_command @SYMFILE@"
34092 + preload=yes
34093 + fi
34094 + case $arg in
34095 + *.la | *.lo) ;; # We handle these cases below.
34096 + force)
34097 + if test "$dlself" = no; then
34098 + dlself=needless
34099 + export_dynamic=yes
34100 + fi
34101 + prev=
34102 + continue
34103 + ;;
34104 + self)
34105 + if test "$prev" = dlprefiles; then
34106 + dlself=yes
34107 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
34108 + dlself=yes
34109 + else
34110 + dlself=needless
34111 + export_dynamic=yes
34112 + fi
34113 + prev=
34114 + continue
34115 + ;;
34116 + *)
34117 + if test "$prev" = dlfiles; then
34118 + dlfiles="$dlfiles $arg"
34119 + else
34120 + dlprefiles="$dlprefiles $arg"
34121 + fi
34122 + prev=
34123 + continue
34124 + ;;
34125 + esac
34126 + ;;
34127 + expsyms)
34128 + export_symbols="$arg"
34129 + if test ! -f "$arg"; then
34130 + $echo "$modename: symbol file \`$arg' does not exist"
34131 + exit $EXIT_FAILURE
34132 + fi
34133 + prev=
34134 + continue
34135 + ;;
34136 + expsyms_regex)
34137 + export_symbols_regex="$arg"
34138 + prev=
34139 + continue
34140 + ;;
34141 + inst_prefix)
34142 + inst_prefix_dir="$arg"
34143 + prev=
34144 + continue
34145 + ;;
34146 + precious_regex)
34147 + precious_files_regex="$arg"
34148 + prev=
34149 + continue
34150 + ;;
34151 + release)
34152 + release="-$arg"
34153 + prev=
34154 + continue
34155 + ;;
34156 + objectlist)
34157 + if test -f "$arg"; then
34158 + save_arg=$arg
34159 + moreargs=
34160 + for fil in `cat $save_arg`
34161 + do
34162 +# moreargs="$moreargs $fil"
34163 + arg=$fil
34164 + # A libtool-controlled object.
34165 +
34166 + # Check to see that this really is a libtool object.
34167 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
34168 + pic_object=
34169 + non_pic_object=
34170 +
34171 + # Read the .lo file
34172 + # If there is no directory component, then add one.
34173 + case $arg in
34174 + */* | *\\*) . $arg ;;
34175 + *) . ./$arg ;;
34176 + esac
34177 +
34178 + if test -z "$pic_object" || \
34179 + test -z "$non_pic_object" ||
34180 + test "$pic_object" = none && \
34181 + test "$non_pic_object" = none; then
34182 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
34183 + exit $EXIT_FAILURE
34184 + fi
34185 +
34186 + # Extract subdirectory from the argument.
34187 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34188 + if test "X$xdir" = "X$arg"; then
34189 + xdir=
34190 + else
34191 + xdir="$xdir/"
34192 + fi
34193 +
34194 + if test "$pic_object" != none; then
34195 + # Prepend the subdirectory the object is found in.
34196 + pic_object="$xdir$pic_object"
34197 +
34198 + if test "$prev" = dlfiles; then
34199 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
34200 + dlfiles="$dlfiles $pic_object"
34201 + prev=
34202 + continue
34203 + else
34204 + # If libtool objects are unsupported, then we need to preload.
34205 + prev=dlprefiles
34206 + fi
34207 + fi
34208 +
34209 + # CHECK ME: I think I busted this. -Ossama
34210 + if test "$prev" = dlprefiles; then
34211 + # Preload the old-style object.
34212 + dlprefiles="$dlprefiles $pic_object"
34213 + prev=
34214 + fi
34215 +
34216 + # A PIC object.
34217 + libobjs="$libobjs $pic_object"
34218 + arg="$pic_object"
34219 + fi
34220 +
34221 + # Non-PIC object.
34222 + if test "$non_pic_object" != none; then
34223 + # Prepend the subdirectory the object is found in.
34224 + non_pic_object="$xdir$non_pic_object"
34225 +
34226 + # A standard non-PIC object
34227 + non_pic_objects="$non_pic_objects $non_pic_object"
34228 + if test -z "$pic_object" || test "$pic_object" = none ; then
34229 + arg="$non_pic_object"
34230 + fi
34231 + else
34232 + # If the PIC object exists, use it instead.
34233 + # $xdir was prepended to $pic_object above.
34234 + non_pic_object="$pic_object"
34235 + non_pic_objects="$non_pic_objects $non_pic_object"
34236 + fi
34237 + else
34238 + # Only an error if not doing a dry-run.
34239 + if test -z "$run"; then
34240 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
34241 + exit $EXIT_FAILURE
34242 + else
34243 + # Dry-run case.
34244 +
34245 + # Extract subdirectory from the argument.
34246 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34247 + if test "X$xdir" = "X$arg"; then
34248 + xdir=
34249 + else
34250 + xdir="$xdir/"
34251 + fi
34252 +
34253 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
34254 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
34255 + libobjs="$libobjs $pic_object"
34256 + non_pic_objects="$non_pic_objects $non_pic_object"
34257 + fi
34258 + fi
34259 + done
34260 + else
34261 + $echo "$modename: link input file \`$save_arg' does not exist"
34262 + exit $EXIT_FAILURE
34263 + fi
34264 + arg=$save_arg
34265 + prev=
34266 + continue
34267 + ;;
34268 + rpath | xrpath)
34269 + # We need an absolute path.
34270 + case $arg in
34271 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34272 + *)
34273 + $echo "$modename: only absolute run-paths are allowed" 1>&2
34274 + exit $EXIT_FAILURE
34275 + ;;
34276 + esac
34277 + if test "$prev" = rpath; then
34278 + case "$rpath " in
34279 + *" $arg "*) ;;
34280 + *) rpath="$rpath $arg" ;;
34281 + esac
34282 + else
34283 + case "$xrpath " in
34284 + *" $arg "*) ;;
34285 + *) xrpath="$xrpath $arg" ;;
34286 + esac
34287 + fi
34288 + prev=
34289 + continue
34290 + ;;
34291 + xcompiler)
34292 + compiler_flags="$compiler_flags $qarg"
34293 + prev=
34294 + compile_command="$compile_command $qarg"
34295 + finalize_command="$finalize_command $qarg"
34296 + continue
34297 + ;;
34298 + xlinker)
34299 + linker_flags="$linker_flags $qarg"
34300 + compiler_flags="$compiler_flags $wl$qarg"
34301 + prev=
34302 + compile_command="$compile_command $wl$qarg"
34303 + finalize_command="$finalize_command $wl$qarg"
34304 + continue
34305 + ;;
34306 + xcclinker)
34307 + linker_flags="$linker_flags $qarg"
34308 + compiler_flags="$compiler_flags $qarg"
34309 + prev=
34310 + compile_command="$compile_command $qarg"
34311 + finalize_command="$finalize_command $qarg"
34312 + continue
34313 + ;;
34314 + shrext)
34315 + shrext_cmds="$arg"
34316 + prev=
34317 + continue
34318 + ;;
34319 + darwin_framework|darwin_framework_skip)
34320 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
34321 + compile_command="$compile_command $arg"
34322 + finalize_command="$finalize_command $arg"
34323 + prev=
34324 + continue
34325 + ;;
34326 + *)
34327 + eval "$prev=\"\$arg\""
34328 + prev=
34329 + continue
34330 + ;;
34331 + esac
34332 + fi # test -n "$prev"
34333 +
34334 + prevarg="$arg"
34335 +
34336 + case $arg in
34337 + -all-static)
34338 + if test -n "$link_static_flag"; then
34339 + compile_command="$compile_command $link_static_flag"
34340 + finalize_command="$finalize_command $link_static_flag"
34341 + fi
34342 + continue
34343 + ;;
34344 +
34345 + -allow-undefined)
34346 + # FIXME: remove this flag sometime in the future.
34347 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
34348 + continue
34349 + ;;
34350 +
34351 + -avoid-version)
34352 + avoid_version=yes
34353 + continue
34354 + ;;
34355 +
34356 + -dlopen)
34357 + prev=dlfiles
34358 + continue
34359 + ;;
34360 +
34361 + -dlpreopen)
34362 + prev=dlprefiles
34363 + continue
34364 + ;;
34365 +
34366 + -export-dynamic)
34367 + export_dynamic=yes
34368 + continue
34369 + ;;
34370 +
34371 + -export-symbols | -export-symbols-regex)
34372 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
34373 + $echo "$modename: more than one -exported-symbols argument is not allowed"
34374 + exit $EXIT_FAILURE
34375 + fi
34376 + if test "X$arg" = "X-export-symbols"; then
34377 + prev=expsyms
34378 + else
34379 + prev=expsyms_regex
34380 + fi
34381 + continue
34382 + ;;
34383 +
34384 + -framework|-arch|-isysroot)
34385 + case " $CC " in
34386 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
34387 + prev=darwin_framework_skip ;;
34388 + *) compiler_flags="$compiler_flags $arg"
34389 + prev=darwin_framework ;;
34390 + esac
34391 + compile_command="$compile_command $arg"
34392 + finalize_command="$finalize_command $arg"
34393 + continue
34394 + ;;
34395 +
34396 + -inst-prefix-dir)
34397 + prev=inst_prefix
34398 + continue
34399 + ;;
34400 +
34401 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
34402 + # so, if we see these flags be careful not to treat them like -L
34403 + -L[A-Z][A-Z]*:*)
34404 + case $with_gcc/$host in
34405 + no/*-*-irix* | /*-*-irix*)
34406 + compile_command="$compile_command $arg"
34407 + finalize_command="$finalize_command $arg"
34408 + ;;
34409 + esac
34410 + continue
34411 + ;;
34412 +
34413 + -L*)
34414 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
34415 + # We need an absolute path.
34416 + case $dir in
34417 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34418 + *)
34419 + absdir=`cd "$dir" && pwd`
34420 + if test -z "$absdir"; then
34421 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
34422 + absdir="$dir"
34423 + notinst_path="$notinst_path $dir"
34424 + fi
34425 + dir="$absdir"
34426 + ;;
34427 + esac
34428 + case "$deplibs " in
34429 + *" -L$dir "*) ;;
34430 + *)
34431 + deplibs="$deplibs -L$dir"
34432 + lib_search_path="$lib_search_path $dir"
34433 + ;;
34434 + esac
34435 + case $host in
34436 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
34437 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
34438 + case :$dllsearchpath: in
34439 + *":$dir:"*) ;;
34440 + *) dllsearchpath="$dllsearchpath:$dir";;
34441 + esac
34442 + case :$dllsearchpath: in
34443 + *":$testbindir:"*) ;;
34444 + *) dllsearchpath="$dllsearchpath:$testbindir";;
34445 + esac
34446 + ;;
34447 + esac
34448 + continue
34449 + ;;
34450 +
34451 + -l*)
34452 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
34453 + case $host in
34454 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
34455 + # These systems don't actually have a C or math library (as such)
34456 + continue
34457 + ;;
34458 + *-*-os2*)
34459 + # These systems don't actually have a C library (as such)
34460 + test "X$arg" = "X-lc" && continue
34461 + ;;
34462 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34463 + # Do not include libc due to us having libc/libc_r.
34464 + test "X$arg" = "X-lc" && continue
34465 + ;;
34466 + *-*-rhapsody* | *-*-darwin1.[012])
34467 + # Rhapsody C and math libraries are in the System framework
34468 + deplibs="$deplibs -framework System"
34469 + continue
34470 + ;;
34471 + *-*-sco3.2v5* | *-*-sco5v6*)
34472 + # Causes problems with __ctype
34473 + test "X$arg" = "X-lc" && continue
34474 + ;;
34475 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
34476 + # Compiler inserts libc in the correct place for threads to work
34477 + test "X$arg" = "X-lc" && continue
34478 + ;;
34479 + esac
34480 + elif test "X$arg" = "X-lc_r"; then
34481 + case $host in
34482 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34483 + # Do not include libc_r directly, use -pthread flag.
34484 + continue
34485 + ;;
34486 + esac
34487 + fi
34488 + deplibs="$deplibs $arg"
34489 + continue
34490 + ;;
34491 +
34492 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
34493 + # classes, name mangling, and exception handling.
34494 + -model)
34495 + compile_command="$compile_command $arg"
34496 + compiler_flags="$compiler_flags $arg"
34497 + finalize_command="$finalize_command $arg"
34498 + prev=xcompiler
34499 + continue
34500 + ;;
34501 +
34502 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
34503 + compiler_flags="$compiler_flags $arg"
34504 + compile_command="$compile_command $arg"
34505 + finalize_command="$finalize_command $arg"
34506 + continue
34507 + ;;
34508 +
34509 + -module)
34510 + module=yes
34511 + continue
34512 + ;;
34513 +
34514 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
34515 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
34516 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
34517 + # +DA*, +DD* enable 64-bit mode on the HP compiler
34518 + # -q* pass through compiler args for the IBM compiler
34519 + # -m* pass through architecture-specific compiler args for GCC
34520 + # -m*, -t[45]*, -txscale* pass through architecture-specific
34521 + # compiler args for GCC
34522 + # -pg pass through profiling flag for GCC
34523 + # @file GCC response files
34524 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
34525 + -t[45]*|-txscale*|@*)
34526 +
34527 + # Unknown arguments in both finalize_command and compile_command need
34528 + # to be aesthetically quoted because they are evaled later.
34529 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34530 + case $arg in
34531 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34532 + arg="\"$arg\""
34533 + ;;
34534 + esac
34535 + compile_command="$compile_command $arg"
34536 + finalize_command="$finalize_command $arg"
34537 + compiler_flags="$compiler_flags $arg"
34538 + continue
34539 + ;;
34540 +
34541 + -shrext)
34542 + prev=shrext
34543 + continue
34544 + ;;
34545 +
34546 + -no-fast-install)
34547 + fast_install=no
34548 + continue
34549 + ;;
34550 +
34551 + -no-install)
34552 + case $host in
34553 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
34554 + # The PATH hackery in wrapper scripts is required on Windows
34555 + # in order for the loader to find any dlls it needs.
34556 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
34557 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
34558 + fast_install=no
34559 + ;;
34560 + *) no_install=yes ;;
34561 + esac
34562 + continue
34563 + ;;
34564 +
34565 + -no-undefined)
34566 + allow_undefined=no
34567 + continue
34568 + ;;
34569 +
34570 + -objectlist)
34571 + prev=objectlist
34572 + continue
34573 + ;;
34574 +
34575 + -o) prev=output ;;
34576 +
34577 + -precious-files-regex)
34578 + prev=precious_regex
34579 + continue
34580 + ;;
34581 +
34582 + -release)
34583 + prev=release
34584 + continue
34585 + ;;
34586 +
34587 + -rpath)
34588 + prev=rpath
34589 + continue
34590 + ;;
34591 +
34592 + -R)
34593 + prev=xrpath
34594 + continue
34595 + ;;
34596 +
34597 + -R*)
34598 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
34599 + # We need an absolute path.
34600 + case $dir in
34601 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34602 + *)
34603 + $echo "$modename: only absolute run-paths are allowed" 1>&2
34604 + exit $EXIT_FAILURE
34605 + ;;
34606 + esac
34607 + case "$xrpath " in
34608 + *" $dir "*) ;;
34609 + *) xrpath="$xrpath $dir" ;;
34610 + esac
34611 + continue
34612 + ;;
34613 +
34614 + -static)
34615 + # The effects of -static are defined in a previous loop.
34616 + # We used to do the same as -all-static on platforms that
34617 + # didn't have a PIC flag, but the assumption that the effects
34618 + # would be equivalent was wrong. It would break on at least
34619 + # Digital Unix and AIX.
34620 + continue
34621 + ;;
34622 +
34623 + -thread-safe)
34624 + thread_safe=yes
34625 + continue
34626 + ;;
34627 +
34628 + -version-info)
34629 + prev=vinfo
34630 + continue
34631 + ;;
34632 + -version-number)
34633 + prev=vinfo
34634 + vinfo_number=yes
34635 + continue
34636 + ;;
34637 +
34638 + -Wc,*)
34639 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
34640 + arg=
34641 + save_ifs="$IFS"; IFS=','
34642 + for flag in $args; do
34643 + IFS="$save_ifs"
34644 + case $flag in
34645 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34646 + flag="\"$flag\""
34647 + ;;
34648 + esac
34649 + arg="$arg $wl$flag"
34650 + compiler_flags="$compiler_flags $flag"
34651 + done
34652 + IFS="$save_ifs"
34653 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
34654 + ;;
34655 +
34656 + -Wl,*)
34657 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
34658 + arg=
34659 + save_ifs="$IFS"; IFS=','
34660 + for flag in $args; do
34661 + IFS="$save_ifs"
34662 + case $flag in
34663 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34664 + flag="\"$flag\""
34665 + ;;
34666 + esac
34667 + arg="$arg $wl$flag"
34668 + compiler_flags="$compiler_flags $wl$flag"
34669 + linker_flags="$linker_flags $flag"
34670 + done
34671 + IFS="$save_ifs"
34672 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
34673 + ;;
34674 +
34675 + -Xcompiler)
34676 + prev=xcompiler
34677 + continue
34678 + ;;
34679 +
34680 + -Xlinker)
34681 + prev=xlinker
34682 + continue
34683 + ;;
34684 +
34685 + -XCClinker)
34686 + prev=xcclinker
34687 + continue
34688 + ;;
34689 +
34690 + # Some other compiler flag.
34691 + -* | +*)
34692 + # Unknown arguments in both finalize_command and compile_command need
34693 + # to be aesthetically quoted because they are evaled later.
34694 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34695 + case $arg in
34696 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34697 + arg="\"$arg\""
34698 + ;;
34699 + esac
34700 + ;;
34701 +
34702 + *.$objext)
34703 + # A standard object.
34704 + objs="$objs $arg"
34705 + ;;
34706 +
34707 + *.lo)
34708 + # A libtool-controlled object.
34709 +
34710 + # Check to see that this really is a libtool object.
34711 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
34712 + pic_object=
34713 + non_pic_object=
34714 +
34715 + # Read the .lo file
34716 + # If there is no directory component, then add one.
34717 + case $arg in
34718 + */* | *\\*) . $arg ;;
34719 + *) . ./$arg ;;
34720 + esac
34721 +
34722 + if test -z "$pic_object" || \
34723 + test -z "$non_pic_object" ||
34724 + test "$pic_object" = none && \
34725 + test "$non_pic_object" = none; then
34726 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
34727 + exit $EXIT_FAILURE
34728 + fi
34729 +
34730 + # Extract subdirectory from the argument.
34731 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34732 + if test "X$xdir" = "X$arg"; then
34733 + xdir=
34734 + else
34735 + xdir="$xdir/"
34736 + fi
34737 +
34738 + if test "$pic_object" != none; then
34739 + # Prepend the subdirectory the object is found in.
34740 + pic_object="$xdir$pic_object"
34741 +
34742 + if test "$prev" = dlfiles; then
34743 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
34744 + dlfiles="$dlfiles $pic_object"
34745 + prev=
34746 + continue
34747 + else
34748 + # If libtool objects are unsupported, then we need to preload.
34749 + prev=dlprefiles
34750 + fi
34751 + fi
34752 +
34753 + # CHECK ME: I think I busted this. -Ossama
34754 + if test "$prev" = dlprefiles; then
34755 + # Preload the old-style object.
34756 + dlprefiles="$dlprefiles $pic_object"
34757 + prev=
34758 + fi
34759 +
34760 + # A PIC object.
34761 + libobjs="$libobjs $pic_object"
34762 + arg="$pic_object"
34763 + fi
34764 +
34765 + # Non-PIC object.
34766 + if test "$non_pic_object" != none; then
34767 + # Prepend the subdirectory the object is found in.
34768 + non_pic_object="$xdir$non_pic_object"
34769 +
34770 + # A standard non-PIC object
34771 + non_pic_objects="$non_pic_objects $non_pic_object"
34772 + if test -z "$pic_object" || test "$pic_object" = none ; then
34773 + arg="$non_pic_object"
34774 + fi
34775 + else
34776 + # If the PIC object exists, use it instead.
34777 + # $xdir was prepended to $pic_object above.
34778 + non_pic_object="$pic_object"
34779 + non_pic_objects="$non_pic_objects $non_pic_object"
34780 + fi
34781 + else
34782 + # Only an error if not doing a dry-run.
34783 + if test -z "$run"; then
34784 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
34785 + exit $EXIT_FAILURE
34786 + else
34787 + # Dry-run case.
34788 +
34789 + # Extract subdirectory from the argument.
34790 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34791 + if test "X$xdir" = "X$arg"; then
34792 + xdir=
34793 + else
34794 + xdir="$xdir/"
34795 + fi
34796 +
34797 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
34798 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
34799 + libobjs="$libobjs $pic_object"
34800 + non_pic_objects="$non_pic_objects $non_pic_object"
34801 + fi
34802 + fi
34803 + ;;
34804 +
34805 + *.$libext)
34806 + # An archive.
34807 + deplibs="$deplibs $arg"
34808 + old_deplibs="$old_deplibs $arg"
34809 + continue
34810 + ;;
34811 +
34812 + *.la)
34813 + # A libtool-controlled library.
34814 +
34815 + if test "$prev" = dlfiles; then
34816 + # This library was specified with -dlopen.
34817 + dlfiles="$dlfiles $arg"
34818 + prev=
34819 + elif test "$prev" = dlprefiles; then
34820 + # The library was specified with -dlpreopen.
34821 + dlprefiles="$dlprefiles $arg"
34822 + prev=
34823 + else
34824 + deplibs="$deplibs $arg"
34825 + fi
34826 + continue
34827 + ;;
34828 +
34829 + # Some other compiler argument.
34830 + *)
34831 + # Unknown arguments in both finalize_command and compile_command need
34832 + # to be aesthetically quoted because they are evaled later.
34833 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34834 + case $arg in
34835 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34836 + arg="\"$arg\""
34837 + ;;
34838 + esac
34839 + ;;
34840 + esac # arg
34841 +
34842 + # Now actually substitute the argument into the commands.
34843 + if test -n "$arg"; then
34844 + compile_command="$compile_command $arg"
34845 + finalize_command="$finalize_command $arg"
34846 + fi
34847 + done # argument parsing loop
34848 +
34849 + if test -n "$prev"; then
34850 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
34851 + $echo "$help" 1>&2
34852 + exit $EXIT_FAILURE
34853 + fi
34854 +
34855 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
34856 + eval arg=\"$export_dynamic_flag_spec\"
34857 + compile_command="$compile_command $arg"
34858 + finalize_command="$finalize_command $arg"
34859 + fi
34860 +
34861 + oldlibs=
34862 + # calculate the name of the file, without its directory
34863 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
34864 + libobjs_save="$libobjs"
34865 +
34866 + if test -n "$shlibpath_var"; then
34867 + # get the directories listed in $shlibpath_var
34868 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
34869 + else
34870 + shlib_search_path=
34871 + fi
34872 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
34873 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
34874 +
34875 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
34876 + if test "X$output_objdir" = "X$output"; then
34877 + output_objdir="$objdir"
34878 + else
34879 + output_objdir="$output_objdir/$objdir"
34880 + fi
34881 + # Create the object directory.
34882 + if test ! -d "$output_objdir"; then
34883 + $show "$mkdir $output_objdir"
34884 + $run $mkdir $output_objdir
34885 + exit_status=$?
34886 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
34887 + exit $exit_status
34888 + fi
34889 + fi
34890 +
34891 + # Determine the type of output
34892 + case $output in
34893 + "")
34894 + $echo "$modename: you must specify an output file" 1>&2
34895 + $echo "$help" 1>&2
34896 + exit $EXIT_FAILURE
34897 + ;;
34898 + *.$libext) linkmode=oldlib ;;
34899 + *.lo | *.$objext) linkmode=obj ;;
34900 + *.la) linkmode=lib ;;
34901 + *) linkmode=prog ;; # Anything else should be a program.
34902 + esac
34903 +
34904 + case $host in
34905 + *cygwin* | *mingw* | *pw32*)
34906 + # don't eliminate duplications in $postdeps and $predeps
34907 + duplicate_compiler_generated_deps=yes
34908 + ;;
34909 + *)
34910 + duplicate_compiler_generated_deps=$duplicate_deps
34911 + ;;
34912 + esac
34913 + specialdeplibs=
34914 +
34915 + libs=
34916 + # Find all interdependent deplibs by searching for libraries
34917 + # that are linked more than once (e.g. -la -lb -la)
34918 + for deplib in $deplibs; do
34919 + if test "X$duplicate_deps" = "Xyes" ; then
34920 + case "$libs " in
34921 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
34922 + esac
34923 + fi
34924 + libs="$libs $deplib"
34925 + done
34926 +
34927 + if test "$linkmode" = lib; then
34928 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
34929 +
34930 + # Compute libraries that are listed more than once in $predeps
34931 + # $postdeps and mark them as special (i.e., whose duplicates are
34932 + # not to be eliminated).
34933 + pre_post_deps=
34934 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
34935 + for pre_post_dep in $predeps $postdeps; do
34936 + case "$pre_post_deps " in
34937 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
34938 + esac
34939 + pre_post_deps="$pre_post_deps $pre_post_dep"
34940 + done
34941 + fi
34942 + pre_post_deps=
34943 + fi
34944 +
34945 + deplibs=
34946 + newdependency_libs=
34947 + newlib_search_path=
34948 + need_relink=no # whether we're linking any uninstalled libtool libraries
34949 + notinst_deplibs= # not-installed libtool libraries
34950 + case $linkmode in
34951 + lib)
34952 + passes="conv link"
34953 + for file in $dlfiles $dlprefiles; do
34954 + case $file in
34955 + *.la) ;;
34956 + *)
34957 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
34958 + exit $EXIT_FAILURE
34959 + ;;
34960 + esac
34961 + done
34962 + ;;
34963 + prog)
34964 + compile_deplibs=
34965 + finalize_deplibs=
34966 + alldeplibs=no
34967 + newdlfiles=
34968 + newdlprefiles=
34969 + passes="conv scan dlopen dlpreopen link"
34970 + ;;
34971 + *) passes="conv"
34972 + ;;
34973 + esac
34974 + for pass in $passes; do
34975 + if test "$linkmode,$pass" = "lib,link" ||
34976 + test "$linkmode,$pass" = "prog,scan"; then
34977 + libs="$deplibs"
34978 + deplibs=
34979 + fi
34980 + if test "$linkmode" = prog; then
34981 + case $pass in
34982 + dlopen) libs="$dlfiles" ;;
34983 + dlpreopen) libs="$dlprefiles" ;;
34984 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
34985 + esac
34986 + fi
34987 + if test "$pass" = dlopen; then
34988 + # Collect dlpreopened libraries
34989 + save_deplibs="$deplibs"
34990 + deplibs=
34991 + fi
34992 + for deplib in $libs; do
34993 + lib=
34994 + found=no
34995 + case $deplib in
34996 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
34997 + if test "$linkmode,$pass" = "prog,link"; then
34998 + compile_deplibs="$deplib $compile_deplibs"
34999 + finalize_deplibs="$deplib $finalize_deplibs"
35000 + else
35001 + compiler_flags="$compiler_flags $deplib"
35002 + fi
35003 + continue
35004 + ;;
35005 + -l*)
35006 + if test "$linkmode" != lib && test "$linkmode" != prog; then
35007 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
35008 + continue
35009 + fi
35010 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
35011 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
35012 + for search_ext in .la $std_shrext .so .a; do
35013 + # Search the libtool library
35014 + lib="$searchdir/lib${name}${search_ext}"
35015 + if test -f "$lib"; then
35016 + if test "$search_ext" = ".la"; then
35017 + found=yes
35018 + else
35019 + found=no
35020 + fi
35021 + break 2
35022 + fi
35023 + done
35024 + done
35025 + if test "$found" != yes; then
35026 + # deplib doesn't seem to be a libtool library
35027 + if test "$linkmode,$pass" = "prog,link"; then
35028 + compile_deplibs="$deplib $compile_deplibs"
35029 + finalize_deplibs="$deplib $finalize_deplibs"
35030 + else
35031 + deplibs="$deplib $deplibs"
35032 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
35033 + fi
35034 + continue
35035 + else # deplib is a libtool library
35036 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
35037 + # We need to do some special things here, and not later.
35038 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35039 + case " $predeps $postdeps " in
35040 + *" $deplib "*)
35041 + if (${SED} -e '2q' $lib |
35042 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
35043 + library_names=
35044 + old_library=
35045 + case $lib in
35046 + */* | *\\*) . $lib ;;
35047 + *) . ./$lib ;;
35048 + esac
35049 + for l in $old_library $library_names; do
35050 + ll="$l"
35051 + done
35052 + if test "X$ll" = "X$old_library" ; then # only static version available
35053 + found=no
35054 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
35055 + test "X$ladir" = "X$lib" && ladir="."
35056 + lib=$ladir/$old_library
35057 + if test "$linkmode,$pass" = "prog,link"; then
35058 + compile_deplibs="$deplib $compile_deplibs"
35059 + finalize_deplibs="$deplib $finalize_deplibs"
35060 + else
35061 + deplibs="$deplib $deplibs"
35062 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
35063 + fi
35064 + continue
35065 + fi
35066 + fi
35067 + ;;
35068 + *) ;;
35069 + esac
35070 + fi
35071 + fi
35072 + ;; # -l
35073 + -L*)
35074 + case $linkmode in
35075 + lib)
35076 + deplibs="$deplib $deplibs"
35077 + test "$pass" = conv && continue
35078 + newdependency_libs="$deplib $newdependency_libs"
35079 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
35080 + ;;
35081 + prog)
35082 + if test "$pass" = conv; then
35083 + deplibs="$deplib $deplibs"
35084 + continue
35085 + fi
35086 + if test "$pass" = scan; then
35087 + deplibs="$deplib $deplibs"
35088 + else
35089 + compile_deplibs="$deplib $compile_deplibs"
35090 + finalize_deplibs="$deplib $finalize_deplibs"
35091 + fi
35092 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
35093 + ;;
35094 + *)
35095 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
35096 + ;;
35097 + esac # linkmode
35098 + continue
35099 + ;; # -L
35100 + -R*)
35101 + if test "$pass" = link; then
35102 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
35103 + # Make sure the xrpath contains only unique directories.
35104 + case "$xrpath " in
35105 + *" $dir "*) ;;
35106 + *) xrpath="$xrpath $dir" ;;
35107 + esac
35108 + fi
35109 + deplibs="$deplib $deplibs"
35110 + continue
35111 + ;;
35112 + *.la) lib="$deplib" ;;
35113 + *.$libext)
35114 + if test "$pass" = conv; then
35115 + deplibs="$deplib $deplibs"
35116 + continue
35117 + fi
35118 + case $linkmode in
35119 + lib)
35120 + valid_a_lib=no
35121 + case $deplibs_check_method in
35122 + match_pattern*)
35123 + set dummy $deplibs_check_method
35124 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35125 + if eval $echo \"$deplib\" 2>/dev/null \
35126 + | $SED 10q \
35127 + | $EGREP "$match_pattern_regex" > /dev/null; then
35128 + valid_a_lib=yes
35129 + fi
35130 + ;;
35131 + pass_all)
35132 + valid_a_lib=yes
35133 + ;;
35134 + esac
35135 + if test "$valid_a_lib" != yes; then
35136 + $echo
35137 + $echo "*** Warning: Trying to link with static lib archive $deplib."
35138 + $echo "*** I have the capability to make that library automatically link in when"
35139 + $echo "*** you link to this library. But I can only do this if you have a"
35140 + $echo "*** shared version of the library, which you do not appear to have"
35141 + $echo "*** because the file extensions .$libext of this argument makes me believe"
35142 + $echo "*** that it is just a static archive that I should not used here."
35143 + else
35144 + $echo
35145 + $echo "*** Warning: Linking the shared library $output against the"
35146 + $echo "*** static library $deplib is not portable!"
35147 + deplibs="$deplib $deplibs"
35148 + fi
35149 + continue
35150 + ;;
35151 + prog)
35152 + if test "$pass" != link; then
35153 + deplibs="$deplib $deplibs"
35154 + else
35155 + compile_deplibs="$deplib $compile_deplibs"
35156 + finalize_deplibs="$deplib $finalize_deplibs"
35157 + fi
35158 + continue
35159 + ;;
35160 + esac # linkmode
35161 + ;; # *.$libext
35162 + *.lo | *.$objext)
35163 + if test "$pass" = conv; then
35164 + deplibs="$deplib $deplibs"
35165 + elif test "$linkmode" = prog; then
35166 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
35167 + # If there is no dlopen support or we're linking statically,
35168 + # we need to preload.
35169 + newdlprefiles="$newdlprefiles $deplib"
35170 + compile_deplibs="$deplib $compile_deplibs"
35171 + finalize_deplibs="$deplib $finalize_deplibs"
35172 + else
35173 + newdlfiles="$newdlfiles $deplib"
35174 + fi
35175 + fi
35176 + continue
35177 + ;;
35178 + %DEPLIBS%)
35179 + alldeplibs=yes
35180 + continue
35181 + ;;
35182 + esac # case $deplib
35183 + if test "$found" = yes || test -f "$lib"; then :
35184 + else
35185 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
35186 + exit $EXIT_FAILURE
35187 + fi
35188 +
35189 + # Check to see that this really is a libtool archive.
35190 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
35191 + else
35192 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
35193 + exit $EXIT_FAILURE
35194 + fi
35195 +
35196 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
35197 + test "X$ladir" = "X$lib" && ladir="."
35198 +
35199 + dlname=
35200 + dlopen=
35201 + dlpreopen=
35202 + libdir=
35203 + library_names=
35204 + old_library=
35205 + # If the library was installed with an old release of libtool,
35206 + # it will not redefine variables installed, or shouldnotlink
35207 + installed=yes
35208 + shouldnotlink=no
35209 + avoidtemprpath=
35210 +
35211 +
35212 + # Read the .la file
35213 + case $lib in
35214 + */* | *\\*) . $lib ;;
35215 + *) . ./$lib ;;
35216 + esac
35217 +
35218 + if test "$linkmode,$pass" = "lib,link" ||
35219 + test "$linkmode,$pass" = "prog,scan" ||
35220 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
35221 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
35222 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
35223 + fi
35224 +
35225 + if test "$pass" = conv; then
35226 + # Only check for convenience libraries
35227 + deplibs="$lib $deplibs"
35228 + if test -z "$libdir"; then
35229 + if test -z "$old_library"; then
35230 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
35231 + exit $EXIT_FAILURE
35232 + fi
35233 + # It is a libtool convenience library, so add in its objects.
35234 + convenience="$convenience $ladir/$objdir/$old_library"
35235 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
35236 + tmp_libs=
35237 + for deplib in $dependency_libs; do
35238 + deplibs="$deplib $deplibs"
35239 + if test "X$duplicate_deps" = "Xyes" ; then
35240 + case "$tmp_libs " in
35241 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35242 + esac
35243 + fi
35244 + tmp_libs="$tmp_libs $deplib"
35245 + done
35246 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
35247 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
35248 + exit $EXIT_FAILURE
35249 + fi
35250 + continue
35251 + fi # $pass = conv
35252 +
35253 +
35254 + # Get the name of the library we link against.
35255 + linklib=
35256 + for l in $old_library $library_names; do
35257 + linklib="$l"
35258 + done
35259 + if test -z "$linklib"; then
35260 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
35261 + exit $EXIT_FAILURE
35262 + fi
35263 +
35264 + # This library was specified with -dlopen.
35265 + if test "$pass" = dlopen; then
35266 + if test -z "$libdir"; then
35267 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
35268 + exit $EXIT_FAILURE
35269 + fi
35270 + if test -z "$dlname" ||
35271 + test "$dlopen_support" != yes ||
35272 + test "$build_libtool_libs" = no; then
35273 + # If there is no dlname, no dlopen support or we're linking
35274 + # statically, we need to preload. We also need to preload any
35275 + # dependent libraries so libltdl's deplib preloader doesn't
35276 + # bomb out in the load deplibs phase.
35277 + dlprefiles="$dlprefiles $lib $dependency_libs"
35278 + else
35279 + newdlfiles="$newdlfiles $lib"
35280 + fi
35281 + continue
35282 + fi # $pass = dlopen
35283 +
35284 + # We need an absolute path.
35285 + case $ladir in
35286 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
35287 + *)
35288 + abs_ladir=`cd "$ladir" && pwd`
35289 + if test -z "$abs_ladir"; then
35290 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
35291 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
35292 + abs_ladir="$ladir"
35293 + fi
35294 + ;;
35295 + esac
35296 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
35297 +
35298 + # Find the relevant object directory and library name.
35299 + if test "X$installed" = Xyes; then
35300 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
35301 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
35302 + dir="$ladir"
35303 + absdir="$abs_ladir"
35304 + libdir="$abs_ladir"
35305 + else
35306 + dir="$libdir"
35307 + absdir="$libdir"
35308 + fi
35309 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
35310 + else
35311 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
35312 + dir="$ladir"
35313 + absdir="$abs_ladir"
35314 + # Remove this search path later
35315 + notinst_path="$notinst_path $abs_ladir"
35316 + else
35317 + dir="$ladir/$objdir"
35318 + absdir="$abs_ladir/$objdir"
35319 + # Remove this search path later
35320 + notinst_path="$notinst_path $abs_ladir"
35321 + fi
35322 + fi # $installed = yes
35323 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
35324 +
35325 + # This library was specified with -dlpreopen.
35326 + if test "$pass" = dlpreopen; then
35327 + if test -z "$libdir"; then
35328 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
35329 + exit $EXIT_FAILURE
35330 + fi
35331 + # Prefer using a static library (so that no silly _DYNAMIC symbols
35332 + # are required to link).
35333 + if test -n "$old_library"; then
35334 + newdlprefiles="$newdlprefiles $dir/$old_library"
35335 + # Otherwise, use the dlname, so that lt_dlopen finds it.
35336 + elif test -n "$dlname"; then
35337 + newdlprefiles="$newdlprefiles $dir/$dlname"
35338 + else
35339 + newdlprefiles="$newdlprefiles $dir/$linklib"
35340 + fi
35341 + fi # $pass = dlpreopen
35342 +
35343 + if test -z "$libdir"; then
35344 + # Link the convenience library
35345 + if test "$linkmode" = lib; then
35346 + deplibs="$dir/$old_library $deplibs"
35347 + elif test "$linkmode,$pass" = "prog,link"; then
35348 + compile_deplibs="$dir/$old_library $compile_deplibs"
35349 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
35350 + else
35351 + deplibs="$lib $deplibs" # used for prog,scan pass
35352 + fi
35353 + continue
35354 + fi
35355 +
35356 +
35357 + if test "$linkmode" = prog && test "$pass" != link; then
35358 + newlib_search_path="$newlib_search_path $ladir"
35359 + deplibs="$lib $deplibs"
35360 +
35361 + linkalldeplibs=no
35362 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
35363 + test "$build_libtool_libs" = no; then
35364 + linkalldeplibs=yes
35365 + fi
35366 +
35367 + tmp_libs=
35368 + for deplib in $dependency_libs; do
35369 + case $deplib in
35370 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
35371 + esac
35372 + # Need to link against all dependency_libs?
35373 + if test "$linkalldeplibs" = yes; then
35374 + deplibs="$deplib $deplibs"
35375 + else
35376 + # Need to hardcode shared library paths
35377 + # or/and link against static libraries
35378 + newdependency_libs="$deplib $newdependency_libs"
35379 + fi
35380 + if test "X$duplicate_deps" = "Xyes" ; then
35381 + case "$tmp_libs " in
35382 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35383 + esac
35384 + fi
35385 + tmp_libs="$tmp_libs $deplib"
35386 + done # for deplib
35387 + continue
35388 + fi # $linkmode = prog...
35389 +
35390 + if test "$linkmode,$pass" = "prog,link"; then
35391 + if test -n "$library_names" &&
35392 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
35393 + # We need to hardcode the library path
35394 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
35395 + # Make sure the rpath contains only unique directories.
35396 + case "$temp_rpath " in
35397 + *" $dir "*) ;;
35398 + *" $absdir "*) ;;
35399 + *) temp_rpath="$temp_rpath $absdir" ;;
35400 + esac
35401 + fi
35402 +
35403 + # Hardcode the library path.
35404 + # Skip directories that are in the system default run-time
35405 + # search path.
35406 + case " $sys_lib_dlsearch_path " in
35407 + *" $absdir "*) ;;
35408 + *)
35409 + case "$compile_rpath " in
35410 + *" $absdir "*) ;;
35411 + *) compile_rpath="$compile_rpath $absdir"
35412 + esac
35413 + ;;
35414 + esac
35415 + case " $sys_lib_dlsearch_path " in
35416 + *" $libdir "*) ;;
35417 + *)
35418 + case "$finalize_rpath " in
35419 + *" $libdir "*) ;;
35420 + *) finalize_rpath="$finalize_rpath $libdir"
35421 + esac
35422 + ;;
35423 + esac
35424 + fi # $linkmode,$pass = prog,link...
35425 +
35426 + if test "$alldeplibs" = yes &&
35427 + { test "$deplibs_check_method" = pass_all ||
35428 + { test "$build_libtool_libs" = yes &&
35429 + test -n "$library_names"; }; }; then
35430 + # We only need to search for static libraries
35431 + continue
35432 + fi
35433 + fi
35434 +
35435 + link_static=no # Whether the deplib will be linked statically
35436 + use_static_libs=$prefer_static_libs
35437 + if test "$use_static_libs" = built && test "$installed" = yes ; then
35438 + use_static_libs=no
35439 + fi
35440 + if test -n "$library_names" &&
35441 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
35442 + if test "$installed" = no; then
35443 + notinst_deplibs="$notinst_deplibs $lib"
35444 + need_relink=yes
35445 + fi
35446 + # This is a shared library
35447 +
35448 + # Warn about portability, can't link against -module's on
35449 + # some systems (darwin)
35450 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
35451 + $echo
35452 + if test "$linkmode" = prog; then
35453 + $echo "*** Warning: Linking the executable $output against the loadable module"
35454 + else
35455 + $echo "*** Warning: Linking the shared library $output against the loadable module"
35456 + fi
35457 + $echo "*** $linklib is not portable!"
35458 + fi
35459 + if test "$linkmode" = lib &&
35460 + test "$hardcode_into_libs" = yes; then
35461 + # Hardcode the library path.
35462 + # Skip directories that are in the system default run-time
35463 + # search path.
35464 + case " $sys_lib_dlsearch_path " in
35465 + *" $absdir "*) ;;
35466 + *)
35467 + case "$compile_rpath " in
35468 + *" $absdir "*) ;;
35469 + *) compile_rpath="$compile_rpath $absdir"
35470 + esac
35471 + ;;
35472 + esac
35473 + case " $sys_lib_dlsearch_path " in
35474 + *" $libdir "*) ;;
35475 + *)
35476 + case "$finalize_rpath " in
35477 + *" $libdir "*) ;;
35478 + *) finalize_rpath="$finalize_rpath $libdir"
35479 + esac
35480 + ;;
35481 + esac
35482 + fi
35483 +
35484 + if test -n "$old_archive_from_expsyms_cmds"; then
35485 + # figure out the soname
35486 + set dummy $library_names
35487 + realname="$2"
35488 + shift; shift
35489 + libname=`eval \\$echo \"$libname_spec\"`
35490 + # use dlname if we got it. it's perfectly good, no?
35491 + if test -n "$dlname"; then
35492 + soname="$dlname"
35493 + elif test -n "$soname_spec"; then
35494 + # bleh windows
35495 + case $host in
35496 + *cygwin* | mingw*)
35497 + major=`expr $current - $age`
35498 + versuffix="-$major"
35499 + ;;
35500 + esac
35501 + eval soname=\"$soname_spec\"
35502 + else
35503 + soname="$realname"
35504 + fi
35505 +
35506 + # Make a new name for the extract_expsyms_cmds to use
35507 + soroot="$soname"
35508 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
35509 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
35510 +
35511 + # If the library has no export list, then create one now
35512 + if test -f "$output_objdir/$soname-def"; then :
35513 + else
35514 + $show "extracting exported symbol list from \`$soname'"
35515 + save_ifs="$IFS"; IFS='~'
35516 + cmds=$extract_expsyms_cmds
35517 + for cmd in $cmds; do
35518 + IFS="$save_ifs"
35519 + eval cmd=\"$cmd\"
35520 + $show "$cmd"
35521 + $run eval "$cmd" || exit $?
35522 + done
35523 + IFS="$save_ifs"
35524 + fi
35525 +
35526 + # Create $newlib
35527 + if test -f "$output_objdir/$newlib"; then :; else
35528 + $show "generating import library for \`$soname'"
35529 + save_ifs="$IFS"; IFS='~'
35530 + cmds=$old_archive_from_expsyms_cmds
35531 + for cmd in $cmds; do
35532 + IFS="$save_ifs"
35533 + eval cmd=\"$cmd\"
35534 + $show "$cmd"
35535 + $run eval "$cmd" || exit $?
35536 + done
35537 + IFS="$save_ifs"
35538 + fi
35539 + # make sure the library variables are pointing to the new library
35540 + dir=$output_objdir
35541 + linklib=$newlib
35542 + fi # test -n "$old_archive_from_expsyms_cmds"
35543 +
35544 + if test "$linkmode" = prog || test "$mode" != relink; then
35545 + add_shlibpath=
35546 + add_dir=
35547 + add=
35548 + lib_linked=yes
35549 + case $hardcode_action in
35550 + immediate | unsupported)
35551 + if test "$hardcode_direct" = no; then
35552 + add="$dir/$linklib"
35553 + case $host in
35554 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
35555 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
35556 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
35557 + *-*-unixware7*) add_dir="-L$dir" ;;
35558 + *-*-darwin* )
35559 + # if the lib is a module then we can not link against
35560 + # it, someone is ignoring the new warnings I added
35561 + if /usr/bin/file -L $add 2> /dev/null |
35562 + $EGREP ": [^:]* bundle" >/dev/null ; then
35563 + $echo "** Warning, lib $linklib is a module, not a shared library"
35564 + if test -z "$old_library" ; then
35565 + $echo
35566 + $echo "** And there doesn't seem to be a static archive available"
35567 + $echo "** The link will probably fail, sorry"
35568 + else
35569 + add="$dir/$old_library"
35570 + fi
35571 + fi
35572 + esac
35573 + elif test "$hardcode_minus_L" = no; then
35574 + case $host in
35575 + *-*-sunos*) add_shlibpath="$dir" ;;
35576 + esac
35577 + add_dir="-L$dir"
35578 + add="-l$name"
35579 + elif test "$hardcode_shlibpath_var" = no; then
35580 + add_shlibpath="$dir"
35581 + add="-l$name"
35582 + else
35583 + lib_linked=no
35584 + fi
35585 + ;;
35586 + relink)
35587 + if test "$hardcode_direct" = yes; then
35588 + add="$dir/$linklib"
35589 + elif test "$hardcode_minus_L" = yes; then
35590 + add_dir="-L$dir"
35591 + # Try looking first in the location we're being installed to.
35592 + if test -n "$inst_prefix_dir"; then
35593 + case $libdir in
35594 + [\\/]*)
35595 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
35596 + ;;
35597 + esac
35598 + fi
35599 + add="-l$name"
35600 + elif test "$hardcode_shlibpath_var" = yes; then
35601 + add_shlibpath="$dir"
35602 + add="-l$name"
35603 + else
35604 + lib_linked=no
35605 + fi
35606 + ;;
35607 + *) lib_linked=no ;;
35608 + esac
35609 +
35610 + if test "$lib_linked" != yes; then
35611 + $echo "$modename: configuration error: unsupported hardcode properties"
35612 + exit $EXIT_FAILURE
35613 + fi
35614 +
35615 + if test -n "$add_shlibpath"; then
35616 + case :$compile_shlibpath: in
35617 + *":$add_shlibpath:"*) ;;
35618 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
35619 + esac
35620 + fi
35621 + if test "$linkmode" = prog; then
35622 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
35623 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
35624 + else
35625 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
35626 + test -n "$add" && deplibs="$add $deplibs"
35627 + if test "$hardcode_direct" != yes && \
35628 + test "$hardcode_minus_L" != yes && \
35629 + test "$hardcode_shlibpath_var" = yes; then
35630 + case :$finalize_shlibpath: in
35631 + *":$libdir:"*) ;;
35632 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
35633 + esac
35634 + fi
35635 + fi
35636 + fi
35637 +
35638 + if test "$linkmode" = prog || test "$mode" = relink; then
35639 + add_shlibpath=
35640 + add_dir=
35641 + add=
35642 + # Finalize command for both is simple: just hardcode it.
35643 + if test "$hardcode_direct" = yes; then
35644 + add="$libdir/$linklib"
35645 + elif test "$hardcode_minus_L" = yes; then
35646 + add_dir="-L$libdir"
35647 + add="-l$name"
35648 + elif test "$hardcode_shlibpath_var" = yes; then
35649 + case :$finalize_shlibpath: in
35650 + *":$libdir:"*) ;;
35651 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
35652 + esac
35653 + add="-l$name"
35654 + elif test "$hardcode_automatic" = yes; then
35655 + if test -n "$inst_prefix_dir" &&
35656 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
35657 + add="$inst_prefix_dir$libdir/$linklib"
35658 + else
35659 + add="$libdir/$linklib"
35660 + fi
35661 + else
35662 + # We cannot seem to hardcode it, guess we'll fake it.
35663 + add_dir="-L$libdir"
35664 + # Try looking first in the location we're being installed to.
35665 + if test -n "$inst_prefix_dir"; then
35666 + case $libdir in
35667 + [\\/]*)
35668 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
35669 + ;;
35670 + esac
35671 + fi
35672 + add="-l$name"
35673 + fi
35674 +
35675 + if test "$linkmode" = prog; then
35676 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
35677 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
35678 + else
35679 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
35680 + test -n "$add" && deplibs="$add $deplibs"
35681 + fi
35682 + fi
35683 + elif test "$linkmode" = prog; then
35684 + # Here we assume that one of hardcode_direct or hardcode_minus_L
35685 + # is not unsupported. This is valid on all known static and
35686 + # shared platforms.
35687 + if test "$hardcode_direct" != unsupported; then
35688 + test -n "$old_library" && linklib="$old_library"
35689 + compile_deplibs="$dir/$linklib $compile_deplibs"
35690 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
35691 + else
35692 + compile_deplibs="-l$name -L$dir $compile_deplibs"
35693 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
35694 + fi
35695 + elif test "$build_libtool_libs" = yes; then
35696 + # Not a shared library
35697 + if test "$deplibs_check_method" != pass_all; then
35698 + # We're trying link a shared library against a static one
35699 + # but the system doesn't support it.
35700 +
35701 + # Just print a warning and add the library to dependency_libs so
35702 + # that the program can be linked against the static library.
35703 + $echo
35704 + $echo "*** Warning: This system can not link to static lib archive $lib."
35705 + $echo "*** I have the capability to make that library automatically link in when"
35706 + $echo "*** you link to this library. But I can only do this if you have a"
35707 + $echo "*** shared version of the library, which you do not appear to have."
35708 + if test "$module" = yes; then
35709 + $echo "*** But as you try to build a module library, libtool will still create "
35710 + $echo "*** a static module, that should work as long as the dlopening application"
35711 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
35712 + if test -z "$global_symbol_pipe"; then
35713 + $echo
35714 + $echo "*** However, this would only work if libtool was able to extract symbol"
35715 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35716 + $echo "*** not find such a program. So, this module is probably useless."
35717 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
35718 + fi
35719 + if test "$build_old_libs" = no; then
35720 + build_libtool_libs=module
35721 + build_old_libs=yes
35722 + else
35723 + build_libtool_libs=no
35724 + fi
35725 + fi
35726 + else
35727 + deplibs="$dir/$old_library $deplibs"
35728 + link_static=yes
35729 + fi
35730 + fi # link shared/static library?
35731 +
35732 + if test "$linkmode" = lib; then
35733 + if test -n "$dependency_libs" &&
35734 + { test "$hardcode_into_libs" != yes ||
35735 + test "$build_old_libs" = yes ||
35736 + test "$link_static" = yes; }; then
35737 + # Extract -R from dependency_libs
35738 + temp_deplibs=
35739 + for libdir in $dependency_libs; do
35740 + case $libdir in
35741 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
35742 + case " $xrpath " in
35743 + *" $temp_xrpath "*) ;;
35744 + *) xrpath="$xrpath $temp_xrpath";;
35745 + esac;;
35746 + *) temp_deplibs="$temp_deplibs $libdir";;
35747 + esac
35748 + done
35749 + dependency_libs="$temp_deplibs"
35750 + fi
35751 +
35752 + newlib_search_path="$newlib_search_path $absdir"
35753 + # Link against this library
35754 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
35755 + # ... and its dependency_libs
35756 + tmp_libs=
35757 + for deplib in $dependency_libs; do
35758 + newdependency_libs="$deplib $newdependency_libs"
35759 + if test "X$duplicate_deps" = "Xyes" ; then
35760 + case "$tmp_libs " in
35761 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35762 + esac
35763 + fi
35764 + tmp_libs="$tmp_libs $deplib"
35765 + done
35766 +
35767 + if test "$link_all_deplibs" != no; then
35768 + # Add the search paths of all dependency libraries
35769 + for deplib in $dependency_libs; do
35770 + case $deplib in
35771 + -L*) path="$deplib" ;;
35772 + *.la)
35773 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
35774 + test "X$dir" = "X$deplib" && dir="."
35775 + # We need an absolute path.
35776 + case $dir in
35777 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
35778 + *)
35779 + absdir=`cd "$dir" && pwd`
35780 + if test -z "$absdir"; then
35781 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
35782 + absdir="$dir"
35783 + fi
35784 + ;;
35785 + esac
35786 + if grep "^installed=no" $deplib > /dev/null; then
35787 + path="$absdir/$objdir"
35788 + else
35789 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
35790 + if test -z "$libdir"; then
35791 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
35792 + exit $EXIT_FAILURE
35793 + fi
35794 + if test "$absdir" != "$libdir"; then
35795 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
35796 + fi
35797 + path="$absdir"
35798 + fi
35799 + depdepl=
35800 + case $host in
35801 + *-*-darwin*)
35802 + # we do not want to link against static libs,
35803 + # but need to link against shared
35804 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
35805 + if test -n "$deplibrary_names" ; then
35806 + for tmp in $deplibrary_names ; do
35807 + depdepl=$tmp
35808 + done
35809 + if test -f "$path/$depdepl" ; then
35810 + depdepl="$path/$depdepl"
35811 + fi
35812 + # do not add paths which are already there
35813 + case " $newlib_search_path " in
35814 + *" $path "*) ;;
35815 + *) newlib_search_path="$newlib_search_path $path";;
35816 + esac
35817 + fi
35818 + path=""
35819 + ;;
35820 + *)
35821 + path="-L$path"
35822 + ;;
35823 + esac
35824 + ;;
35825 + -l*)
35826 + case $host in
35827 + *-*-darwin*)
35828 + # Again, we only want to link against shared libraries
35829 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
35830 + for tmp in $newlib_search_path ; do
35831 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
35832 + eval depdepl="$tmp/lib$tmp_libs.dylib"
35833 + break
35834 + fi
35835 + done
35836 + path=""
35837 + ;;
35838 + *) continue ;;
35839 + esac
35840 + ;;
35841 + *) continue ;;
35842 + esac
35843 + case " $deplibs " in
35844 + *" $path "*) ;;
35845 + *) deplibs="$path $deplibs" ;;
35846 + esac
35847 + case " $deplibs " in
35848 + *" $depdepl "*) ;;
35849 + *) deplibs="$depdepl $deplibs" ;;
35850 + esac
35851 + done
35852 + fi # link_all_deplibs != no
35853 + fi # linkmode = lib
35854 + done # for deplib in $libs
35855 + dependency_libs="$newdependency_libs"
35856 + if test "$pass" = dlpreopen; then
35857 + # Link the dlpreopened libraries before other libraries
35858 + for deplib in $save_deplibs; do
35859 + deplibs="$deplib $deplibs"
35860 + done
35861 + fi
35862 + if test "$pass" != dlopen; then
35863 + if test "$pass" != conv; then
35864 + # Make sure lib_search_path contains only unique directories.
35865 + lib_search_path=
35866 + for dir in $newlib_search_path; do
35867 + case "$lib_search_path " in
35868 + *" $dir "*) ;;
35869 + *) lib_search_path="$lib_search_path $dir" ;;
35870 + esac
35871 + done
35872 + newlib_search_path=
35873 + fi
35874 +
35875 + if test "$linkmode,$pass" != "prog,link"; then
35876 + vars="deplibs"
35877 + else
35878 + vars="compile_deplibs finalize_deplibs"
35879 + fi
35880 + for var in $vars dependency_libs; do
35881 + # Add libraries to $var in reverse order
35882 + eval tmp_libs=\"\$$var\"
35883 + new_libs=
35884 + for deplib in $tmp_libs; do
35885 + # FIXME: Pedantically, this is the right thing to do, so
35886 + # that some nasty dependency loop isn't accidentally
35887 + # broken:
35888 + #new_libs="$deplib $new_libs"
35889 + # Pragmatically, this seems to cause very few problems in
35890 + # practice:
35891 + case $deplib in
35892 + -L*) new_libs="$deplib $new_libs" ;;
35893 + -R*) ;;
35894 + *)
35895 + # And here is the reason: when a library appears more
35896 + # than once as an explicit dependence of a library, or
35897 + # is implicitly linked in more than once by the
35898 + # compiler, it is considered special, and multiple
35899 + # occurrences thereof are not removed. Compare this
35900 + # with having the same library being listed as a
35901 + # dependency of multiple other libraries: in this case,
35902 + # we know (pedantically, we assume) the library does not
35903 + # need to be listed more than once, so we keep only the
35904 + # last copy. This is not always right, but it is rare
35905 + # enough that we require users that really mean to play
35906 + # such unportable linking tricks to link the library
35907 + # using -Wl,-lname, so that libtool does not consider it
35908 + # for duplicate removal.
35909 + case " $specialdeplibs " in
35910 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
35911 + *)
35912 + case " $new_libs " in
35913 + *" $deplib "*) ;;
35914 + *) new_libs="$deplib $new_libs" ;;
35915 + esac
35916 + ;;
35917 + esac
35918 + ;;
35919 + esac
35920 + done
35921 + tmp_libs=
35922 + for deplib in $new_libs; do
35923 + case $deplib in
35924 + -L*)
35925 + case " $tmp_libs " in
35926 + *" $deplib "*) ;;
35927 + *) tmp_libs="$tmp_libs $deplib" ;;
35928 + esac
35929 + ;;
35930 + *) tmp_libs="$tmp_libs $deplib" ;;
35931 + esac
35932 + done
35933 + eval $var=\"$tmp_libs\"
35934 + done # for var
35935 + fi
35936 + # Last step: remove runtime libs from dependency_libs
35937 + # (they stay in deplibs)
35938 + tmp_libs=
35939 + for i in $dependency_libs ; do
35940 + case " $predeps $postdeps $compiler_lib_search_path " in
35941 + *" $i "*)
35942 + i=""
35943 + ;;
35944 + esac
35945 + if test -n "$i" ; then
35946 + tmp_libs="$tmp_libs $i"
35947 + fi
35948 + done
35949 + dependency_libs=$tmp_libs
35950 + done # for pass
35951 + if test "$linkmode" = prog; then
35952 + dlfiles="$newdlfiles"
35953 + dlprefiles="$newdlprefiles"
35954 + fi
35955 +
35956 + case $linkmode in
35957 + oldlib)
35958 + if test -n "$deplibs"; then
35959 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
35960 + fi
35961 +
35962 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
35963 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
35964 + fi
35965 +
35966 + if test -n "$rpath"; then
35967 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
35968 + fi
35969 +
35970 + if test -n "$xrpath"; then
35971 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
35972 + fi
35973 +
35974 + if test -n "$vinfo"; then
35975 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
35976 + fi
35977 +
35978 + if test -n "$release"; then
35979 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
35980 + fi
35981 +
35982 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
35983 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
35984 + fi
35985 +
35986 + # Now set the variables for building old libraries.
35987 + build_libtool_libs=no
35988 + oldlibs="$output"
35989 + objs="$objs$old_deplibs"
35990 + ;;
35991 +
35992 + lib)
35993 + # Make sure we only generate libraries of the form `libNAME.la'.
35994 + case $outputname in
35995 + lib*)
35996 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
35997 + eval shared_ext=\"$shrext_cmds\"
35998 + eval libname=\"$libname_spec\"
35999 + ;;
36000 + *)
36001 + if test "$module" = no; then
36002 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
36003 + $echo "$help" 1>&2
36004 + exit $EXIT_FAILURE
36005 + fi
36006 + if test "$need_lib_prefix" != no; then
36007 + # Add the "lib" prefix for modules if required
36008 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
36009 + eval shared_ext=\"$shrext_cmds\"
36010 + eval libname=\"$libname_spec\"
36011 + else
36012 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
36013 + fi
36014 + ;;
36015 + esac
36016 +
36017 + if test -n "$objs"; then
36018 + if test "$deplibs_check_method" != pass_all; then
36019 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
36020 + exit $EXIT_FAILURE
36021 + else
36022 + $echo
36023 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
36024 + $echo "*** objects $objs is not portable!"
36025 + libobjs="$libobjs $objs"
36026 + fi
36027 + fi
36028 +
36029 + if test "$dlself" != no; then
36030 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
36031 + fi
36032 +
36033 + set dummy $rpath
36034 + if test "$#" -gt 2; then
36035 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
36036 + fi
36037 + install_libdir="$2"
36038 +
36039 + oldlibs=
36040 + if test -z "$rpath"; then
36041 + if test "$build_libtool_libs" = yes; then
36042 + # Building a libtool convenience library.
36043 + # Some compilers have problems with a `.al' extension so
36044 + # convenience libraries should have the same extension an
36045 + # archive normally would.
36046 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
36047 + build_libtool_libs=convenience
36048 + build_old_libs=yes
36049 + fi
36050 +
36051 + if test -n "$vinfo"; then
36052 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
36053 + fi
36054 +
36055 + if test -n "$release"; then
36056 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
36057 + fi
36058 + else
36059 +
36060 + # Parse the version information argument.
36061 + save_ifs="$IFS"; IFS=':'
36062 + set dummy $vinfo 0 0 0
36063 + IFS="$save_ifs"
36064 +
36065 + if test -n "$8"; then
36066 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
36067 + $echo "$help" 1>&2
36068 + exit $EXIT_FAILURE
36069 + fi
36070 +
36071 + # convert absolute version numbers to libtool ages
36072 + # this retains compatibility with .la files and attempts
36073 + # to make the code below a bit more comprehensible
36074 +
36075 + case $vinfo_number in
36076 + yes)
36077 + number_major="$2"
36078 + number_minor="$3"
36079 + number_revision="$4"
36080 + #
36081 + # There are really only two kinds -- those that
36082 + # use the current revision as the major version
36083 + # and those that subtract age and use age as
36084 + # a minor version. But, then there is irix
36085 + # which has an extra 1 added just for fun
36086 + #
36087 + case $version_type in
36088 + darwin|linux|osf|windows)
36089 + current=`expr $number_major + $number_minor`
36090 + age="$number_minor"
36091 + revision="$number_revision"
36092 + ;;
36093 + freebsd-aout|freebsd-elf|sunos)
36094 + current="$number_major"
36095 + revision="$number_minor"
36096 + age="0"
36097 + ;;
36098 + irix|nonstopux)
36099 + current=`expr $number_major + $number_minor - 1`
36100 + age="$number_minor"
36101 + revision="$number_minor"
36102 + ;;
36103 + esac
36104 + ;;
36105 + no)
36106 + current="$2"
36107 + revision="$3"
36108 + age="$4"
36109 + ;;
36110 + esac
36111 +
36112 + # Check that each of the things are valid numbers.
36113 + case $current in
36114 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36115 + *)
36116 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
36117 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36118 + exit $EXIT_FAILURE
36119 + ;;
36120 + esac
36121 +
36122 + case $revision in
36123 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36124 + *)
36125 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
36126 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36127 + exit $EXIT_FAILURE
36128 + ;;
36129 + esac
36130 +
36131 + case $age in
36132 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36133 + *)
36134 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
36135 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36136 + exit $EXIT_FAILURE
36137 + ;;
36138 + esac
36139 +
36140 + if test "$age" -gt "$current"; then
36141 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
36142 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36143 + exit $EXIT_FAILURE
36144 + fi
36145 +
36146 + # Calculate the version variables.
36147 + major=
36148 + versuffix=
36149 + verstring=
36150 + case $version_type in
36151 + none) ;;
36152 +
36153 + darwin)
36154 + # Like Linux, but with the current version available in
36155 + # verstring for coding it into the library header
36156 + major=.`expr $current - $age`
36157 + versuffix="$major.$age.$revision"
36158 + # Darwin ld doesn't like 0 for these options...
36159 + minor_current=`expr $current + 1`
36160 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
36161 + ;;
36162 +
36163 + freebsd-aout)
36164 + major=".$current"
36165 + versuffix=".$current.$revision";
36166 + ;;
36167 +
36168 + freebsd-elf)
36169 + major=".$current"
36170 + versuffix=".$current";
36171 + ;;
36172 +
36173 + irix | nonstopux)
36174 + major=`expr $current - $age + 1`
36175 +
36176 + case $version_type in
36177 + nonstopux) verstring_prefix=nonstopux ;;
36178 + *) verstring_prefix=sgi ;;
36179 + esac
36180 + verstring="$verstring_prefix$major.$revision"
36181 +
36182 + # Add in all the interfaces that we are compatible with.
36183 + loop=$revision
36184 + while test "$loop" -ne 0; do
36185 + iface=`expr $revision - $loop`
36186 + loop=`expr $loop - 1`
36187 + verstring="$verstring_prefix$major.$iface:$verstring"
36188 + done
36189 +
36190 + # Before this point, $major must not contain `.'.
36191 + major=.$major
36192 + versuffix="$major.$revision"
36193 + ;;
36194 +
36195 + linux)
36196 + major=.`expr $current - $age`
36197 + versuffix="$major.$age.$revision"
36198 + ;;
36199 +
36200 + osf)
36201 + major=.`expr $current - $age`
36202 + versuffix=".$current.$age.$revision"
36203 + verstring="$current.$age.$revision"
36204 +
36205 + # Add in all the interfaces that we are compatible with.
36206 + loop=$age
36207 + while test "$loop" -ne 0; do
36208 + iface=`expr $current - $loop`
36209 + loop=`expr $loop - 1`
36210 + verstring="$verstring:${iface}.0"
36211 + done
36212 +
36213 + # Make executables depend on our current version.
36214 + verstring="$verstring:${current}.0"
36215 + ;;
36216 +
36217 + sunos)
36218 + major=".$current"
36219 + versuffix=".$current.$revision"
36220 + ;;
36221 +
36222 + windows)
36223 + # Use '-' rather than '.', since we only want one
36224 + # extension on DOS 8.3 filesystems.
36225 + major=`expr $current - $age`
36226 + versuffix="-$major"
36227 + ;;
36228 +
36229 + *)
36230 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
36231 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
36232 + exit $EXIT_FAILURE
36233 + ;;
36234 + esac
36235 +
36236 + # Clear the version info if we defaulted, and they specified a release.
36237 + if test -z "$vinfo" && test -n "$release"; then
36238 + major=
36239 + case $version_type in
36240 + darwin)
36241 + # we can't check for "0.0" in archive_cmds due to quoting
36242 + # problems, so we reset it completely
36243 + verstring=
36244 + ;;
36245 + *)
36246 + verstring="0.0"
36247 + ;;
36248 + esac
36249 + if test "$need_version" = no; then
36250 + versuffix=
36251 + else
36252 + versuffix=".0.0"
36253 + fi
36254 + fi
36255 +
36256 + # Remove version info from name if versioning should be avoided
36257 + if test "$avoid_version" = yes && test "$need_version" = no; then
36258 + major=
36259 + versuffix=
36260 + verstring=""
36261 + fi
36262 +
36263 + # Check to see if the archive will have undefined symbols.
36264 + if test "$allow_undefined" = yes; then
36265 + if test "$allow_undefined_flag" = unsupported; then
36266 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
36267 + build_libtool_libs=no
36268 + build_old_libs=yes
36269 + fi
36270 + else
36271 + # Don't allow undefined symbols.
36272 + allow_undefined_flag="$no_undefined_flag"
36273 + fi
36274 + fi
36275 +
36276 + if test "$mode" != relink; then
36277 + # Remove our outputs, but don't remove object files since they
36278 + # may have been created when compiling PIC objects.
36279 + removelist=
36280 + tempremovelist=`$echo "$output_objdir/*"`
36281 + for p in $tempremovelist; do
36282 + case $p in
36283 + *.$objext)
36284 + ;;
36285 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
36286 + if test "X$precious_files_regex" != "X"; then
36287 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
36288 + then
36289 + continue
36290 + fi
36291 + fi
36292 + removelist="$removelist $p"
36293 + ;;
36294 + *) ;;
36295 + esac
36296 + done
36297 + if test -n "$removelist"; then
36298 + $show "${rm}r $removelist"
36299 + $run ${rm}r $removelist
36300 + fi
36301 + fi
36302 +
36303 + # Now set the variables for building old libraries.
36304 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
36305 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
36306 +
36307 + # Transform .lo files to .o files.
36308 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
36309 + fi
36310 +
36311 + # Eliminate all temporary directories.
36312 + for path in $notinst_path; do
36313 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
36314 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
36315 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
36316 + done
36317 +
36318 + if test -n "$xrpath"; then
36319 + # If the user specified any rpath flags, then add them.
36320 + temp_xrpath=
36321 + for libdir in $xrpath; do
36322 + temp_xrpath="$temp_xrpath -R$libdir"
36323 + case "$finalize_rpath " in
36324 + *" $libdir "*) ;;
36325 + *) finalize_rpath="$finalize_rpath $libdir" ;;
36326 + esac
36327 + done
36328 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
36329 + dependency_libs="$temp_xrpath $dependency_libs"
36330 + fi
36331 + fi
36332 +
36333 + # Make sure dlfiles contains only unique files that won't be dlpreopened
36334 + old_dlfiles="$dlfiles"
36335 + dlfiles=
36336 + for lib in $old_dlfiles; do
36337 + case " $dlprefiles $dlfiles " in
36338 + *" $lib "*) ;;
36339 + *) dlfiles="$dlfiles $lib" ;;
36340 + esac
36341 + done
36342 +
36343 + # Make sure dlprefiles contains only unique files
36344 + old_dlprefiles="$dlprefiles"
36345 + dlprefiles=
36346 + for lib in $old_dlprefiles; do
36347 + case "$dlprefiles " in
36348 + *" $lib "*) ;;
36349 + *) dlprefiles="$dlprefiles $lib" ;;
36350 + esac
36351 + done
36352 +
36353 + if test "$build_libtool_libs" = yes; then
36354 + if test -n "$rpath"; then
36355 + case $host in
36356 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
36357 + # these systems don't actually have a c library (as such)!
36358 + ;;
36359 + *-*-rhapsody* | *-*-darwin1.[012])
36360 + # Rhapsody C library is in the System framework
36361 + deplibs="$deplibs -framework System"
36362 + ;;
36363 + *-*-netbsd*)
36364 + # Don't link with libc until the a.out ld.so is fixed.
36365 + ;;
36366 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
36367 + # Do not include libc due to us having libc/libc_r.
36368 + ;;
36369 + *-*-sco3.2v5* | *-*-sco5v6*)
36370 + # Causes problems with __ctype
36371 + ;;
36372 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
36373 + # Compiler inserts libc in the correct place for threads to work
36374 + ;;
36375 + *)
36376 + # Add libc to deplibs on all other systems if necessary.
36377 + if test "$build_libtool_need_lc" = "yes"; then
36378 + deplibs="$deplibs -lc"
36379 + fi
36380 + ;;
36381 + esac
36382 + fi
36383 +
36384 + # Transform deplibs into only deplibs that can be linked in shared.
36385 + name_save=$name
36386 + libname_save=$libname
36387 + release_save=$release
36388 + versuffix_save=$versuffix
36389 + major_save=$major
36390 + # I'm not sure if I'm treating the release correctly. I think
36391 + # release should show up in the -l (ie -lgmp5) so we don't want to
36392 + # add it in twice. Is that correct?
36393 + release=""
36394 + versuffix=""
36395 + major=""
36396 + newdeplibs=
36397 + droppeddeps=no
36398 + case $deplibs_check_method in
36399 + pass_all)
36400 + # Don't check for shared/static. Everything works.
36401 + # This might be a little naive. We might want to check
36402 + # whether the library exists or not. But this is on
36403 + # osf3 & osf4 and I'm not really sure... Just
36404 + # implementing what was already the behavior.
36405 + newdeplibs=$deplibs
36406 + ;;
36407 + test_compile)
36408 + # This code stresses the "libraries are programs" paradigm to its
36409 + # limits. Maybe even breaks it. We compile a program, linking it
36410 + # against the deplibs as a proxy for the library. Then we can check
36411 + # whether they linked in statically or dynamically with ldd.
36412 + $rm conftest.c
36413 + cat > conftest.c <<EOF
36414 + int main() { return 0; }
36415 +EOF
36416 + $rm conftest
36417 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
36418 + if test "$?" -eq 0 ; then
36419 + ldd_output=`ldd conftest`
36420 + for i in $deplibs; do
36421 + name=`expr $i : '-l\(.*\)'`
36422 + # If $name is empty we are operating on a -L argument.
36423 + if test "$name" != "" && test "$name" -ne "0"; then
36424 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36425 + case " $predeps $postdeps " in
36426 + *" $i "*)
36427 + newdeplibs="$newdeplibs $i"
36428 + i=""
36429 + ;;
36430 + esac
36431 + fi
36432 + if test -n "$i" ; then
36433 + libname=`eval \\$echo \"$libname_spec\"`
36434 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
36435 + set dummy $deplib_matches
36436 + deplib_match=$2
36437 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36438 + newdeplibs="$newdeplibs $i"
36439 + else
36440 + droppeddeps=yes
36441 + $echo
36442 + $echo "*** Warning: dynamic linker does not accept needed library $i."
36443 + $echo "*** I have the capability to make that library automatically link in when"
36444 + $echo "*** you link to this library. But I can only do this if you have a"
36445 + $echo "*** shared version of the library, which I believe you do not have"
36446 + $echo "*** because a test_compile did reveal that the linker did not use it for"
36447 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
36448 + fi
36449 + fi
36450 + else
36451 + newdeplibs="$newdeplibs $i"
36452 + fi
36453 + done
36454 + else
36455 + # Error occurred in the first compile. Let's try to salvage
36456 + # the situation: Compile a separate program for each library.
36457 + for i in $deplibs; do
36458 + name=`expr $i : '-l\(.*\)'`
36459 + # If $name is empty we are operating on a -L argument.
36460 + if test "$name" != "" && test "$name" != "0"; then
36461 + $rm conftest
36462 + $LTCC $LTCFLAGS -o conftest conftest.c $i
36463 + # Did it work?
36464 + if test "$?" -eq 0 ; then
36465 + ldd_output=`ldd conftest`
36466 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36467 + case " $predeps $postdeps " in
36468 + *" $i "*)
36469 + newdeplibs="$newdeplibs $i"
36470 + i=""
36471 + ;;
36472 + esac
36473 + fi
36474 + if test -n "$i" ; then
36475 + libname=`eval \\$echo \"$libname_spec\"`
36476 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
36477 + set dummy $deplib_matches
36478 + deplib_match=$2
36479 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36480 + newdeplibs="$newdeplibs $i"
36481 + else
36482 + droppeddeps=yes
36483 + $echo
36484 + $echo "*** Warning: dynamic linker does not accept needed library $i."
36485 + $echo "*** I have the capability to make that library automatically link in when"
36486 + $echo "*** you link to this library. But I can only do this if you have a"
36487 + $echo "*** shared version of the library, which you do not appear to have"
36488 + $echo "*** because a test_compile did reveal that the linker did not use this one"
36489 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
36490 + fi
36491 + fi
36492 + else
36493 + droppeddeps=yes
36494 + $echo
36495 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
36496 + $echo "*** make it link in! You will probably need to install it or some"
36497 + $echo "*** library that it depends on before this library will be fully"
36498 + $echo "*** functional. Installing it before continuing would be even better."
36499 + fi
36500 + else
36501 + newdeplibs="$newdeplibs $i"
36502 + fi
36503 + done
36504 + fi
36505 + ;;
36506 + file_magic*)
36507 + set dummy $deplibs_check_method
36508 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
36509 + for a_deplib in $deplibs; do
36510 + name=`expr $a_deplib : '-l\(.*\)'`
36511 + # If $name is empty we are operating on a -L argument.
36512 + if test "$name" != "" && test "$name" != "0"; then
36513 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36514 + case " $predeps $postdeps " in
36515 + *" $a_deplib "*)
36516 + newdeplibs="$newdeplibs $a_deplib"
36517 + a_deplib=""
36518 + ;;
36519 + esac
36520 + fi
36521 + if test -n "$a_deplib" ; then
36522 + libname=`eval \\$echo \"$libname_spec\"`
36523 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36524 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36525 + for potent_lib in $potential_libs; do
36526 + # Follow soft links.
36527 + if ls -lLd "$potent_lib" 2>/dev/null \
36528 + | grep " -> " >/dev/null; then
36529 + continue
36530 + fi
36531 + # The statement above tries to avoid entering an
36532 + # endless loop below, in case of cyclic links.
36533 + # We might still enter an endless loop, since a link
36534 + # loop can be closed while we follow links,
36535 + # but so what?
36536 + potlib="$potent_lib"
36537 + while test -h "$potlib" 2>/dev/null; do
36538 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
36539 + case $potliblink in
36540 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
36541 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
36542 + esac
36543 + done
36544 + # It is ok to link against an archive when
36545 + # building a shared library.
36546 + if $AR -t $potlib > /dev/null 2>&1; then
36547 + newdeplibs="$newdeplibs $a_deplib"
36548 + a_deplib=""
36549 + break 2
36550 + fi
36551 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
36552 + | ${SED} 10q \
36553 + | $EGREP "$file_magic_regex" > /dev/null; then
36554 + newdeplibs="$newdeplibs $a_deplib"
36555 + a_deplib=""
36556 + break 2
36557 + fi
36558 + done
36559 + done
36560 + fi
36561 + if test -n "$a_deplib" ; then
36562 + droppeddeps=yes
36563 + $echo
36564 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
36565 + $echo "*** I have the capability to make that library automatically link in when"
36566 + $echo "*** you link to this library. But I can only do this if you have a"
36567 + $echo "*** shared version of the library, which you do not appear to have"
36568 + $echo "*** because I did check the linker path looking for a file starting"
36569 + if test -z "$potlib" ; then
36570 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
36571 + else
36572 + $echo "*** with $libname and none of the candidates passed a file format test"
36573 + $echo "*** using a file magic. Last file checked: $potlib"
36574 + fi
36575 + fi
36576 + else
36577 + # Add a -L argument.
36578 + newdeplibs="$newdeplibs $a_deplib"
36579 + fi
36580 + done # Gone through all deplibs.
36581 + ;;
36582 + match_pattern*)
36583 + set dummy $deplibs_check_method
36584 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
36585 + for a_deplib in $deplibs; do
36586 + name=`expr $a_deplib : '-l\(.*\)'`
36587 + # If $name is empty we are operating on a -L argument.
36588 + if test -n "$name" && test "$name" != "0"; then
36589 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36590 + case " $predeps $postdeps " in
36591 + *" $a_deplib "*)
36592 + newdeplibs="$newdeplibs $a_deplib"
36593 + a_deplib=""
36594 + ;;
36595 + esac
36596 + fi
36597 + if test -n "$a_deplib" ; then
36598 + libname=`eval \\$echo \"$libname_spec\"`
36599 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36600 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36601 + for potent_lib in $potential_libs; do
36602 + potlib="$potent_lib" # see symlink-check above in file_magic test
36603 + if eval $echo \"$potent_lib\" 2>/dev/null \
36604 + | ${SED} 10q \
36605 + | $EGREP "$match_pattern_regex" > /dev/null; then
36606 + newdeplibs="$newdeplibs $a_deplib"
36607 + a_deplib=""
36608 + break 2
36609 + fi
36610 + done
36611 + done
36612 + fi
36613 + if test -n "$a_deplib" ; then
36614 + droppeddeps=yes
36615 + $echo
36616 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
36617 + $echo "*** I have the capability to make that library automatically link in when"
36618 + $echo "*** you link to this library. But I can only do this if you have a"
36619 + $echo "*** shared version of the library, which you do not appear to have"
36620 + $echo "*** because I did check the linker path looking for a file starting"
36621 + if test -z "$potlib" ; then
36622 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
36623 + else
36624 + $echo "*** with $libname and none of the candidates passed a file format test"
36625 + $echo "*** using a regex pattern. Last file checked: $potlib"
36626 + fi
36627 + fi
36628 + else
36629 + # Add a -L argument.
36630 + newdeplibs="$newdeplibs $a_deplib"
36631 + fi
36632 + done # Gone through all deplibs.
36633 + ;;
36634 + none | unknown | *)
36635 + newdeplibs=""
36636 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
36637 + -e 's/ -[LR][^ ]*//g'`
36638 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36639 + for i in $predeps $postdeps ; do
36640 + # can't use Xsed below, because $i might contain '/'
36641 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
36642 + done
36643 + fi
36644 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
36645 + | grep . >/dev/null; then
36646 + $echo
36647 + if test "X$deplibs_check_method" = "Xnone"; then
36648 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
36649 + else
36650 + $echo "*** Warning: inter-library dependencies are not known to be supported."
36651 + fi
36652 + $echo "*** All declared inter-library dependencies are being dropped."
36653 + droppeddeps=yes
36654 + fi
36655 + ;;
36656 + esac
36657 + versuffix=$versuffix_save
36658 + major=$major_save
36659 + release=$release_save
36660 + libname=$libname_save
36661 + name=$name_save
36662 +
36663 + case $host in
36664 + *-*-rhapsody* | *-*-darwin1.[012])
36665 + # On Rhapsody replace the C library is the System framework
36666 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
36667 + ;;
36668 + esac
36669 +
36670 + if test "$droppeddeps" = yes; then
36671 + if test "$module" = yes; then
36672 + $echo
36673 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
36674 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
36675 + $echo "*** a static module, that should work as long as the dlopening"
36676 + $echo "*** application is linked with the -dlopen flag."
36677 + if test -z "$global_symbol_pipe"; then
36678 + $echo
36679 + $echo "*** However, this would only work if libtool was able to extract symbol"
36680 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
36681 + $echo "*** not find such a program. So, this module is probably useless."
36682 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
36683 + fi
36684 + if test "$build_old_libs" = no; then
36685 + oldlibs="$output_objdir/$libname.$libext"
36686 + build_libtool_libs=module
36687 + build_old_libs=yes
36688 + else
36689 + build_libtool_libs=no
36690 + fi
36691 + else
36692 + $echo "*** The inter-library dependencies that have been dropped here will be"
36693 + $echo "*** automatically added whenever a program is linked with this library"
36694 + $echo "*** or is declared to -dlopen it."
36695 +
36696 + if test "$allow_undefined" = no; then
36697 + $echo
36698 + $echo "*** Since this library must not contain undefined symbols,"
36699 + $echo "*** because either the platform does not support them or"
36700 + $echo "*** it was explicitly requested with -no-undefined,"
36701 + $echo "*** libtool will only create a static version of it."
36702 + if test "$build_old_libs" = no; then
36703 + oldlibs="$output_objdir/$libname.$libext"
36704 + build_libtool_libs=module
36705 + build_old_libs=yes
36706 + else
36707 + build_libtool_libs=no
36708 + fi
36709 + fi
36710 + fi
36711 + fi
36712 + # Done checking deplibs!
36713 + deplibs=$newdeplibs
36714 + fi
36715 +
36716 +
36717 + # move library search paths that coincide with paths to not yet
36718 + # installed libraries to the beginning of the library search list
36719 + new_libs=
36720 + for path in $notinst_path; do
36721 + case " $new_libs " in
36722 + *" -L$path/$objdir "*) ;;
36723 + *)
36724 + case " $deplibs " in
36725 + *" -L$path/$objdir "*)
36726 + new_libs="$new_libs -L$path/$objdir" ;;
36727 + esac
36728 + ;;
36729 + esac
36730 + done
36731 + for deplib in $deplibs; do
36732 + case $deplib in
36733 + -L*)
36734 + case " $new_libs " in
36735 + *" $deplib "*) ;;
36736 + *) new_libs="$new_libs $deplib" ;;
36737 + esac
36738 + ;;
36739 + *) new_libs="$new_libs $deplib" ;;
36740 + esac
36741 + done
36742 + deplibs="$new_libs"
36743 +
36744 +
36745 + # All the library-specific variables (install_libdir is set above).
36746 + library_names=
36747 + old_library=
36748 + dlname=
36749 +
36750 + # Test again, we may have decided not to build it any more
36751 + if test "$build_libtool_libs" = yes; then
36752 + if test "$hardcode_into_libs" = yes; then
36753 + # Hardcode the library paths
36754 + hardcode_libdirs=
36755 + dep_rpath=
36756 + rpath="$finalize_rpath"
36757 + test "$mode" != relink && rpath="$compile_rpath$rpath"
36758 + for libdir in $rpath; do
36759 + if test -n "$hardcode_libdir_flag_spec"; then
36760 + if test -n "$hardcode_libdir_separator"; then
36761 + if test -z "$hardcode_libdirs"; then
36762 + hardcode_libdirs="$libdir"
36763 + else
36764 + # Just accumulate the unique libdirs.
36765 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
36766 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
36767 + ;;
36768 + *)
36769 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
36770 + ;;
36771 + esac
36772 + fi
36773 + else
36774 + eval flag=\"$hardcode_libdir_flag_spec\"
36775 + dep_rpath="$dep_rpath $flag"
36776 + fi
36777 + elif test -n "$runpath_var"; then
36778 + case "$perm_rpath " in
36779 + *" $libdir "*) ;;
36780 + *) perm_rpath="$perm_rpath $libdir" ;;
36781 + esac
36782 + fi
36783 + done
36784 + # Substitute the hardcoded libdirs into the rpath.
36785 + if test -n "$hardcode_libdir_separator" &&
36786 + test -n "$hardcode_libdirs"; then
36787 + libdir="$hardcode_libdirs"
36788 + if test -n "$hardcode_libdir_flag_spec_ld"; then
36789 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
36790 + else
36791 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
36792 + fi
36793 + fi
36794 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
36795 + # We should set the runpath_var.
36796 + rpath=
36797 + for dir in $perm_rpath; do
36798 + rpath="$rpath$dir:"
36799 + done
36800 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
36801 + fi
36802 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
36803 + fi
36804 +
36805 + shlibpath="$finalize_shlibpath"
36806 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
36807 + if test -n "$shlibpath"; then
36808 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
36809 + fi
36810 +
36811 + # Get the real and link names of the library.
36812 + eval shared_ext=\"$shrext_cmds\"
36813 + eval library_names=\"$library_names_spec\"
36814 + set dummy $library_names
36815 + realname="$2"
36816 + shift; shift
36817 +
36818 + if test -n "$soname_spec"; then
36819 + eval soname=\"$soname_spec\"
36820 + else
36821 + soname="$realname"
36822 + fi
36823 + if test -z "$dlname"; then
36824 + dlname=$soname
36825 + fi
36826 +
36827 + lib="$output_objdir/$realname"
36828 + linknames=
36829 + for link
36830 + do
36831 + linknames="$linknames $link"
36832 + done
36833 +
36834 + # Use standard objects if they are pic
36835 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
36836 +
36837 + # Prepare the list of exported symbols
36838 + if test -z "$export_symbols"; then
36839 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
36840 + $show "generating symbol list for \`$libname.la'"
36841 + export_symbols="$output_objdir/$libname.exp"
36842 + $run $rm $export_symbols
36843 + cmds=$export_symbols_cmds
36844 + save_ifs="$IFS"; IFS='~'
36845 + for cmd in $cmds; do
36846 + IFS="$save_ifs"
36847 + eval cmd=\"$cmd\"
36848 + if len=`expr "X$cmd" : ".*"` &&
36849 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36850 + $show "$cmd"
36851 + $run eval "$cmd" || exit $?
36852 + skipped_export=false
36853 + else
36854 + # The command line is too long to execute in one step.
36855 + $show "using reloadable object file for export list..."
36856 + skipped_export=:
36857 + # Break out early, otherwise skipped_export may be
36858 + # set to false by a later but shorter cmd.
36859 + break
36860 + fi
36861 + done
36862 + IFS="$save_ifs"
36863 + if test -n "$export_symbols_regex"; then
36864 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
36865 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
36866 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
36867 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
36868 + fi
36869 + fi
36870 + fi
36871 +
36872 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
36873 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
36874 + fi
36875 +
36876 + tmp_deplibs=
36877 + for test_deplib in $deplibs; do
36878 + case " $convenience " in
36879 + *" $test_deplib "*) ;;
36880 + *)
36881 + tmp_deplibs="$tmp_deplibs $test_deplib"
36882 + ;;
36883 + esac
36884 + done
36885 + deplibs="$tmp_deplibs"
36886 +
36887 + if test -n "$convenience"; then
36888 + if test -n "$whole_archive_flag_spec"; then
36889 + save_libobjs=$libobjs
36890 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
36891 + else
36892 + gentop="$output_objdir/${outputname}x"
36893 + generated="$generated $gentop"
36894 +
36895 + func_extract_archives $gentop $convenience
36896 + libobjs="$libobjs $func_extract_archives_result"
36897 + fi
36898 + fi
36899 +
36900 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
36901 + eval flag=\"$thread_safe_flag_spec\"
36902 + linker_flags="$linker_flags $flag"
36903 + fi
36904 +
36905 + # Make a backup of the uninstalled library when relinking
36906 + if test "$mode" = relink; then
36907 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
36908 + fi
36909 +
36910 + # Do each of the archive commands.
36911 + if test "$module" = yes && test -n "$module_cmds" ; then
36912 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
36913 + eval test_cmds=\"$module_expsym_cmds\"
36914 + cmds=$module_expsym_cmds
36915 + else
36916 + eval test_cmds=\"$module_cmds\"
36917 + cmds=$module_cmds
36918 + fi
36919 + else
36920 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
36921 + eval test_cmds=\"$archive_expsym_cmds\"
36922 + cmds=$archive_expsym_cmds
36923 + else
36924 + eval test_cmds=\"$archive_cmds\"
36925 + cmds=$archive_cmds
36926 + fi
36927 + fi
36928 +
36929 + if test "X$skipped_export" != "X:" &&
36930 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36931 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36932 + :
36933 + else
36934 + # The command line is too long to link in one step, link piecewise.
36935 + $echo "creating reloadable object files..."
36936 +
36937 + # Save the value of $output and $libobjs because we want to
36938 + # use them later. If we have whole_archive_flag_spec, we
36939 + # want to use save_libobjs as it was before
36940 + # whole_archive_flag_spec was expanded, because we can't
36941 + # assume the linker understands whole_archive_flag_spec.
36942 + # This may have to be revisited, in case too many
36943 + # convenience libraries get linked in and end up exceeding
36944 + # the spec.
36945 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
36946 + save_libobjs=$libobjs
36947 + fi
36948 + save_output=$output
36949 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
36950 +
36951 + # Clear the reloadable object creation command queue and
36952 + # initialize k to one.
36953 + test_cmds=
36954 + concat_cmds=
36955 + objlist=
36956 + delfiles=
36957 + last_robj=
36958 + k=1
36959 + output=$output_objdir/$output_la-${k}.$objext
36960 + # Loop over the list of objects to be linked.
36961 + for obj in $save_libobjs
36962 + do
36963 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
36964 + if test "X$objlist" = X ||
36965 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36966 + test "$len" -le "$max_cmd_len"; }; then
36967 + objlist="$objlist $obj"
36968 + else
36969 + # The command $test_cmds is almost too long, add a
36970 + # command to the queue.
36971 + if test "$k" -eq 1 ; then
36972 + # The first file doesn't have a previous command to add.
36973 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
36974 + else
36975 + # All subsequent reloadable object files will link in
36976 + # the last one created.
36977 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
36978 + fi
36979 + last_robj=$output_objdir/$output_la-${k}.$objext
36980 + k=`expr $k + 1`
36981 + output=$output_objdir/$output_la-${k}.$objext
36982 + objlist=$obj
36983 + len=1
36984 + fi
36985 + done
36986 + # Handle the remaining objects by creating one last
36987 + # reloadable object file. All subsequent reloadable object
36988 + # files will link in the last one created.
36989 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
36990 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
36991 +
36992 + if ${skipped_export-false}; then
36993 + $show "generating symbol list for \`$libname.la'"
36994 + export_symbols="$output_objdir/$libname.exp"
36995 + $run $rm $export_symbols
36996 + libobjs=$output
36997 + # Append the command to create the export file.
36998 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
36999 + fi
37000 +
37001 + # Set up a command to remove the reloadable object files
37002 + # after they are used.
37003 + i=0
37004 + while test "$i" -lt "$k"
37005 + do
37006 + i=`expr $i + 1`
37007 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
37008 + done
37009 +
37010 + $echo "creating a temporary reloadable object file: $output"
37011 +
37012 + # Loop through the commands generated above and execute them.
37013 + save_ifs="$IFS"; IFS='~'
37014 + for cmd in $concat_cmds; do
37015 + IFS="$save_ifs"
37016 + $show "$cmd"
37017 + $run eval "$cmd" || exit $?
37018 + done
37019 + IFS="$save_ifs"
37020 +
37021 + libobjs=$output
37022 + # Restore the value of output.
37023 + output=$save_output
37024 +
37025 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
37026 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
37027 + fi
37028 + # Expand the library linking commands again to reset the
37029 + # value of $libobjs for piecewise linking.
37030 +
37031 + # Do each of the archive commands.
37032 + if test "$module" = yes && test -n "$module_cmds" ; then
37033 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
37034 + cmds=$module_expsym_cmds
37035 + else
37036 + cmds=$module_cmds
37037 + fi
37038 + else
37039 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
37040 + cmds=$archive_expsym_cmds
37041 + else
37042 + cmds=$archive_cmds
37043 + fi
37044 + fi
37045 +
37046 + # Append the command to remove the reloadable object files
37047 + # to the just-reset $cmds.
37048 + eval cmds=\"\$cmds~\$rm $delfiles\"
37049 + fi
37050 + save_ifs="$IFS"; IFS='~'
37051 + for cmd in $cmds; do
37052 + IFS="$save_ifs"
37053 + eval cmd=\"$cmd\"
37054 + $show "$cmd"
37055 + $run eval "$cmd" || {
37056 + lt_exit=$?
37057 +
37058 + # Restore the uninstalled library and exit
37059 + if test "$mode" = relink; then
37060 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
37061 + fi
37062 +
37063 + exit $lt_exit
37064 + }
37065 + done
37066 + IFS="$save_ifs"
37067 +
37068 + # Restore the uninstalled library and exit
37069 + if test "$mode" = relink; then
37070 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
37071 +
37072 + if test -n "$convenience"; then
37073 + if test -z "$whole_archive_flag_spec"; then
37074 + $show "${rm}r $gentop"
37075 + $run ${rm}r "$gentop"
37076 + fi
37077 + fi
37078 +
37079 + exit $EXIT_SUCCESS
37080 + fi
37081 +
37082 + # Create links to the real library.
37083 + for linkname in $linknames; do
37084 + if test "$realname" != "$linkname"; then
37085 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
37086 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
37087 + fi
37088 + done
37089 +
37090 + # If -module or -export-dynamic was specified, set the dlname.
37091 + if test "$module" = yes || test "$export_dynamic" = yes; then
37092 + # On all known operating systems, these are identical.
37093 + dlname="$soname"
37094 + fi
37095 + fi
37096 + ;;
37097 +
37098 + obj)
37099 + if test -n "$deplibs"; then
37100 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
37101 + fi
37102 +
37103 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
37104 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
37105 + fi
37106 +
37107 + if test -n "$rpath"; then
37108 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
37109 + fi
37110 +
37111 + if test -n "$xrpath"; then
37112 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
37113 + fi
37114 +
37115 + if test -n "$vinfo"; then
37116 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
37117 + fi
37118 +
37119 + if test -n "$release"; then
37120 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
37121 + fi
37122 +
37123 + case $output in
37124 + *.lo)
37125 + if test -n "$objs$old_deplibs"; then
37126 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
37127 + exit $EXIT_FAILURE
37128 + fi
37129 + libobj="$output"
37130 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
37131 + ;;
37132 + *)
37133 + libobj=
37134 + obj="$output"
37135 + ;;
37136 + esac
37137 +
37138 + # Delete the old objects.
37139 + $run $rm $obj $libobj
37140 +
37141 + # Objects from convenience libraries. This assumes
37142 + # single-version convenience libraries. Whenever we create
37143 + # different ones for PIC/non-PIC, this we'll have to duplicate
37144 + # the extraction.
37145 + reload_conv_objs=
37146 + gentop=
37147 + # reload_cmds runs $LD directly, so let us get rid of
37148 + # -Wl from whole_archive_flag_spec
37149 + wl=
37150 +
37151 + if test -n "$convenience"; then
37152 + if test -n "$whole_archive_flag_spec"; then
37153 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
37154 + else
37155 + gentop="$output_objdir/${obj}x"
37156 + generated="$generated $gentop"
37157 +
37158 + func_extract_archives $gentop $convenience
37159 + reload_conv_objs="$reload_objs $func_extract_archives_result"
37160 + fi
37161 + fi
37162 +
37163 + # Create the old-style object.
37164 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
37165 +
37166 + output="$obj"
37167 + cmds=$reload_cmds
37168 + save_ifs="$IFS"; IFS='~'
37169 + for cmd in $cmds; do
37170 + IFS="$save_ifs"
37171 + eval cmd=\"$cmd\"
37172 + $show "$cmd"
37173 + $run eval "$cmd" || exit $?
37174 + done
37175 + IFS="$save_ifs"
37176 +
37177 + # Exit if we aren't doing a library object file.
37178 + if test -z "$libobj"; then
37179 + if test -n "$gentop"; then
37180 + $show "${rm}r $gentop"
37181 + $run ${rm}r $gentop
37182 + fi
37183 +
37184 + exit $EXIT_SUCCESS
37185 + fi
37186 +
37187 + if test "$build_libtool_libs" != yes; then
37188 + if test -n "$gentop"; then
37189 + $show "${rm}r $gentop"
37190 + $run ${rm}r $gentop
37191 + fi
37192 +
37193 + # Create an invalid libtool object if no PIC, so that we don't
37194 + # accidentally link it into a program.
37195 + # $show "echo timestamp > $libobj"
37196 + # $run eval "echo timestamp > $libobj" || exit $?
37197 + exit $EXIT_SUCCESS
37198 + fi
37199 +
37200 + if test -n "$pic_flag" || test "$pic_mode" != default; then
37201 + # Only do commands if we really have different PIC objects.
37202 + reload_objs="$libobjs $reload_conv_objs"
37203 + output="$libobj"
37204 + cmds=$reload_cmds
37205 + save_ifs="$IFS"; IFS='~'
37206 + for cmd in $cmds; do
37207 + IFS="$save_ifs"
37208 + eval cmd=\"$cmd\"
37209 + $show "$cmd"
37210 + $run eval "$cmd" || exit $?
37211 + done
37212 + IFS="$save_ifs"
37213 + fi
37214 +
37215 + if test -n "$gentop"; then
37216 + $show "${rm}r $gentop"
37217 + $run ${rm}r $gentop
37218 + fi
37219 +
37220 + exit $EXIT_SUCCESS
37221 + ;;
37222 +
37223 + prog)
37224 + case $host in
37225 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
37226 + esac
37227 + if test -n "$vinfo"; then
37228 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
37229 + fi
37230 +
37231 + if test -n "$release"; then
37232 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
37233 + fi
37234 +
37235 + if test "$preload" = yes; then
37236 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
37237 + test "$dlopen_self_static" = unknown; then
37238 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
37239 + fi
37240 + fi
37241 +
37242 + case $host in
37243 + *-*-rhapsody* | *-*-darwin1.[012])
37244 + # On Rhapsody replace the C library is the System framework
37245 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
37246 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
37247 + ;;
37248 + esac
37249 +
37250 + case $host in
37251 + *darwin*)
37252 + # Don't allow lazy linking, it breaks C++ global constructors
37253 + if test "$tagname" = CXX ; then
37254 + compile_command="$compile_command ${wl}-bind_at_load"
37255 + finalize_command="$finalize_command ${wl}-bind_at_load"
37256 + fi
37257 + ;;
37258 + esac
37259 +
37260 +
37261 + # move library search paths that coincide with paths to not yet
37262 + # installed libraries to the beginning of the library search list
37263 + new_libs=
37264 + for path in $notinst_path; do
37265 + case " $new_libs " in
37266 + *" -L$path/$objdir "*) ;;
37267 + *)
37268 + case " $compile_deplibs " in
37269 + *" -L$path/$objdir "*)
37270 + new_libs="$new_libs -L$path/$objdir" ;;
37271 + esac
37272 + ;;
37273 + esac
37274 + done
37275 + for deplib in $compile_deplibs; do
37276 + case $deplib in
37277 + -L*)
37278 + case " $new_libs " in
37279 + *" $deplib "*) ;;
37280 + *) new_libs="$new_libs $deplib" ;;
37281 + esac
37282 + ;;
37283 + *) new_libs="$new_libs $deplib" ;;
37284 + esac
37285 + done
37286 + compile_deplibs="$new_libs"
37287 +
37288 +
37289 + compile_command="$compile_command $compile_deplibs"
37290 + finalize_command="$finalize_command $finalize_deplibs"
37291 +
37292 + if test -n "$rpath$xrpath"; then
37293 + # If the user specified any rpath flags, then add them.
37294 + for libdir in $rpath $xrpath; do
37295 + # This is the magic to use -rpath.
37296 + case "$finalize_rpath " in
37297 + *" $libdir "*) ;;
37298 + *) finalize_rpath="$finalize_rpath $libdir" ;;
37299 + esac
37300 + done
37301 + fi
37302 +
37303 + # Now hardcode the library paths
37304 + rpath=
37305 + hardcode_libdirs=
37306 + for libdir in $compile_rpath $finalize_rpath; do
37307 + if test -n "$hardcode_libdir_flag_spec"; then
37308 + if test -n "$hardcode_libdir_separator"; then
37309 + if test -z "$hardcode_libdirs"; then
37310 + hardcode_libdirs="$libdir"
37311 + else
37312 + # Just accumulate the unique libdirs.
37313 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
37314 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
37315 + ;;
37316 + *)
37317 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
37318 + ;;
37319 + esac
37320 + fi
37321 + else
37322 + eval flag=\"$hardcode_libdir_flag_spec\"
37323 + rpath="$rpath $flag"
37324 + fi
37325 + elif test -n "$runpath_var"; then
37326 + case "$perm_rpath " in
37327 + *" $libdir "*) ;;
37328 + *) perm_rpath="$perm_rpath $libdir" ;;
37329 + esac
37330 + fi
37331 + case $host in
37332 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
37333 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
37334 + case :$dllsearchpath: in
37335 + *":$libdir:"*) ;;
37336 + *) dllsearchpath="$dllsearchpath:$libdir";;
37337 + esac
37338 + case :$dllsearchpath: in
37339 + *":$testbindir:"*) ;;
37340 + *) dllsearchpath="$dllsearchpath:$testbindir";;
37341 + esac
37342 + ;;
37343 + esac
37344 + done
37345 + # Substitute the hardcoded libdirs into the rpath.
37346 + if test -n "$hardcode_libdir_separator" &&
37347 + test -n "$hardcode_libdirs"; then
37348 + libdir="$hardcode_libdirs"
37349 + eval rpath=\" $hardcode_libdir_flag_spec\"
37350 + fi
37351 + compile_rpath="$rpath"
37352 +
37353 + rpath=
37354 + hardcode_libdirs=
37355 + for libdir in $finalize_rpath; do
37356 + if test -n "$hardcode_libdir_flag_spec"; then
37357 + if test -n "$hardcode_libdir_separator"; then
37358 + if test -z "$hardcode_libdirs"; then
37359 + hardcode_libdirs="$libdir"
37360 + else
37361 + # Just accumulate the unique libdirs.
37362 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
37363 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
37364 + ;;
37365 + *)
37366 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
37367 + ;;
37368 + esac
37369 + fi
37370 + else
37371 + eval flag=\"$hardcode_libdir_flag_spec\"
37372 + rpath="$rpath $flag"
37373 + fi
37374 + elif test -n "$runpath_var"; then
37375 + case "$finalize_perm_rpath " in
37376 + *" $libdir "*) ;;
37377 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
37378 + esac
37379 + fi
37380 + done
37381 + # Substitute the hardcoded libdirs into the rpath.
37382 + if test -n "$hardcode_libdir_separator" &&
37383 + test -n "$hardcode_libdirs"; then
37384 + libdir="$hardcode_libdirs"
37385 + eval rpath=\" $hardcode_libdir_flag_spec\"
37386 + fi
37387 + finalize_rpath="$rpath"
37388 +
37389 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
37390 + # Transform all the library objects into standard objects.
37391 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37392 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37393 + fi
37394 +
37395 + dlsyms=
37396 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
37397 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
37398 + dlsyms="${outputname}S.c"
37399 + else
37400 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
37401 + fi
37402 + fi
37403 +
37404 + if test -n "$dlsyms"; then
37405 + case $dlsyms in
37406 + "") ;;
37407 + *.c)
37408 + # Discover the nlist of each of the dlfiles.
37409 + nlist="$output_objdir/${outputname}.nm"
37410 +
37411 + $show "$rm $nlist ${nlist}S ${nlist}T"
37412 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
37413 +
37414 + # Parse the name list into a source file.
37415 + $show "creating $output_objdir/$dlsyms"
37416 +
37417 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
37418 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
37419 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
37420 +
37421 +#ifdef __cplusplus
37422 +extern \"C\" {
37423 +#endif
37424 +
37425 +/* Prevent the only kind of declaration conflicts we can make. */
37426 +#define lt_preloaded_symbols some_other_symbol
37427 +
37428 +/* External symbol declarations for the compiler. */\
37429 +"
37430 +
37431 + if test "$dlself" = yes; then
37432 + $show "generating symbol list for \`$output'"
37433 +
37434 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
37435 +
37436 + # Add our own program objects to the symbol list.
37437 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37438 + for arg in $progfiles; do
37439 + $show "extracting global C symbols from \`$arg'"
37440 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
37441 + done
37442 +
37443 + if test -n "$exclude_expsyms"; then
37444 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
37445 + $run eval '$mv "$nlist"T "$nlist"'
37446 + fi
37447 +
37448 + if test -n "$export_symbols_regex"; then
37449 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
37450 + $run eval '$mv "$nlist"T "$nlist"'
37451 + fi
37452 +
37453 + # Prepare the list of exported symbols
37454 + if test -z "$export_symbols"; then
37455 + export_symbols="$output_objdir/$outputname.exp"
37456 + $run $rm $export_symbols
37457 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
37458 + case $host in
37459 + *cygwin* | *mingw* )
37460 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
37461 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
37462 + ;;
37463 + esac
37464 + else
37465 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
37466 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
37467 + $run eval 'mv "$nlist"T "$nlist"'
37468 + case $host in
37469 + *cygwin* | *mingw* )
37470 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
37471 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
37472 + ;;
37473 + esac
37474 + fi
37475 + fi
37476 +
37477 + for arg in $dlprefiles; do
37478 + $show "extracting global C symbols from \`$arg'"
37479 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
37480 + $run eval '$echo ": $name " >> "$nlist"'
37481 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
37482 + done
37483 +
37484 + if test -z "$run"; then
37485 + # Make sure we have at least an empty file.
37486 + test -f "$nlist" || : > "$nlist"
37487 +
37488 + if test -n "$exclude_expsyms"; then
37489 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
37490 + $mv "$nlist"T "$nlist"
37491 + fi
37492 +
37493 + # Try sorting and uniquifying the output.
37494 + if grep -v "^: " < "$nlist" |
37495 + if sort -k 3 </dev/null >/dev/null 2>&1; then
37496 + sort -k 3
37497 + else
37498 + sort +2
37499 + fi |
37500 + uniq > "$nlist"S; then
37501 + :
37502 + else
37503 + grep -v "^: " < "$nlist" > "$nlist"S
37504 + fi
37505 +
37506 + if test -f "$nlist"S; then
37507 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
37508 + else
37509 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
37510 + fi
37511 +
37512 + $echo >> "$output_objdir/$dlsyms" "\
37513 +
37514 +#undef lt_preloaded_symbols
37515 +
37516 +#if defined (__STDC__) && __STDC__
37517 +# define lt_ptr void *
37518 +#else
37519 +# define lt_ptr char *
37520 +# define const
37521 +#endif
37522 +
37523 +/* The mapping between symbol names and symbols. */
37524 +"
37525 +
37526 + case $host in
37527 + *cygwin* | *mingw* )
37528 + $echo >> "$output_objdir/$dlsyms" "\
37529 +/* DATA imports from DLLs on WIN32 can't be const, because
37530 + runtime relocations are performed -- see ld's documentation
37531 + on pseudo-relocs */
37532 +struct {
37533 +"
37534 + ;;
37535 + * )
37536 + $echo >> "$output_objdir/$dlsyms" "\
37537 +const struct {
37538 +"
37539 + ;;
37540 + esac
37541 +
37542 +
37543 + $echo >> "$output_objdir/$dlsyms" "\
37544 + const char *name;
37545 + lt_ptr address;
37546 +}
37547 +lt_preloaded_symbols[] =
37548 +{\
37549 +"
37550 +
37551 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
37552 +
37553 + $echo >> "$output_objdir/$dlsyms" "\
37554 + {0, (lt_ptr) 0}
37555 +};
37556 +
37557 +/* This works around a problem in FreeBSD linker */
37558 +#ifdef FREEBSD_WORKAROUND
37559 +static const void *lt_preloaded_setup() {
37560 + return lt_preloaded_symbols;
37561 +}
37562 +#endif
37563 +
37564 +#ifdef __cplusplus
37565 +}
37566 +#endif\
37567 +"
37568 + fi
37569 +
37570 + pic_flag_for_symtable=
37571 + case $host in
37572 + # compiling the symbol table file with pic_flag works around
37573 + # a FreeBSD bug that causes programs to crash when -lm is
37574 + # linked before any other PIC object. But we must not use
37575 + # pic_flag when linking with -static. The problem exists in
37576 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
37577 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
37578 + case "$compile_command " in
37579 + *" -static "*) ;;
37580 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
37581 + esac;;
37582 + *-*-hpux*)
37583 + case "$compile_command " in
37584 + *" -static "*) ;;
37585 + *) pic_flag_for_symtable=" $pic_flag";;
37586 + esac
37587 + esac
37588 +
37589 + # Now compile the dynamic symbol file.
37590 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
37591 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
37592 +
37593 + # Clean up the generated files.
37594 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
37595 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
37596 +
37597 + # Transform the symbol file into the correct name.
37598 + case $host in
37599 + *cygwin* | *mingw* )
37600 + if test -f "$output_objdir/${outputname}.def" ; then
37601 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
37602 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
37603 + else
37604 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37605 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37606 + fi
37607 + ;;
37608 + * )
37609 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37610 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37611 + ;;
37612 + esac
37613 + ;;
37614 + *)
37615 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
37616 + exit $EXIT_FAILURE
37617 + ;;
37618 + esac
37619 + else
37620 + # We keep going just in case the user didn't refer to
37621 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
37622 + # really was required.
37623 +
37624 + # Nullify the symbol file.
37625 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
37626 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
37627 + fi
37628 +
37629 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
37630 + # Replace the output file specification.
37631 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
37632 + link_command="$compile_command$compile_rpath"
37633 +
37634 + # We have no uninstalled library dependencies, so finalize right now.
37635 + $show "$link_command"
37636 + $run eval "$link_command"
37637 + exit_status=$?
37638 +
37639 + # Delete the generated files.
37640 + if test -n "$dlsyms"; then
37641 + $show "$rm $output_objdir/${outputname}S.${objext}"
37642 + $run $rm "$output_objdir/${outputname}S.${objext}"
37643 + fi
37644 +
37645 + exit $exit_status
37646 + fi
37647 +
37648 + if test -n "$shlibpath_var"; then
37649 + # We should set the shlibpath_var
37650 + rpath=
37651 + for dir in $temp_rpath; do
37652 + case $dir in
37653 + [\\/]* | [A-Za-z]:[\\/]*)
37654 + # Absolute path.
37655 + rpath="$rpath$dir:"
37656 + ;;
37657 + *)
37658 + # Relative path: add a thisdir entry.
37659 + rpath="$rpath\$thisdir/$dir:"
37660 + ;;
37661 + esac
37662 + done
37663 + temp_rpath="$rpath"
37664 + fi
37665 +
37666 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
37667 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
37668 + fi
37669 + if test -n "$finalize_shlibpath"; then
37670 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
37671 + fi
37672 +
37673 + compile_var=
37674 + finalize_var=
37675 + if test -n "$runpath_var"; then
37676 + if test -n "$perm_rpath"; then
37677 + # We should set the runpath_var.
37678 + rpath=
37679 + for dir in $perm_rpath; do
37680 + rpath="$rpath$dir:"
37681 + done
37682 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
37683 + fi
37684 + if test -n "$finalize_perm_rpath"; then
37685 + # We should set the runpath_var.
37686 + rpath=
37687 + for dir in $finalize_perm_rpath; do
37688 + rpath="$rpath$dir:"
37689 + done
37690 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
37691 + fi
37692 + fi
37693 +
37694 + if test "$no_install" = yes; then
37695 + # We don't need to create a wrapper script.
37696 + link_command="$compile_var$compile_command$compile_rpath"
37697 + # Replace the output file specification.
37698 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
37699 + # Delete the old output file.
37700 + $run $rm $output
37701 + # Link the executable and exit
37702 + $show "$link_command"
37703 + $run eval "$link_command" || exit $?
37704 + exit $EXIT_SUCCESS
37705 + fi
37706 +
37707 + if test "$hardcode_action" = relink; then
37708 + # Fast installation is not supported
37709 + link_command="$compile_var$compile_command$compile_rpath"
37710 + relink_command="$finalize_var$finalize_command$finalize_rpath"
37711 +
37712 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
37713 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
37714 + else
37715 + if test "$fast_install" != no; then
37716 + link_command="$finalize_var$compile_command$finalize_rpath"
37717 + if test "$fast_install" = yes; then
37718 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
37719 + else
37720 + # fast_install is set to needless
37721 + relink_command=
37722 + fi
37723 + else
37724 + link_command="$compile_var$compile_command$compile_rpath"
37725 + relink_command="$finalize_var$finalize_command$finalize_rpath"
37726 + fi
37727 + fi
37728 +
37729 + # Replace the output file specification.
37730 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
37731 +
37732 + # Delete the old output files.
37733 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
37734 +
37735 + $show "$link_command"
37736 + $run eval "$link_command" || exit $?
37737 +
37738 + # Now create the wrapper script.
37739 + $show "creating $output"
37740 +
37741 + # Quote the relink command for shipping.
37742 + if test -n "$relink_command"; then
37743 + # Preserve any variables that may affect compiler behavior
37744 + for var in $variables_saved_for_relink; do
37745 + if eval test -z \"\${$var+set}\"; then
37746 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
37747 + elif eval var_value=\$$var; test -z "$var_value"; then
37748 + relink_command="$var=; export $var; $relink_command"
37749 + else
37750 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
37751 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
37752 + fi
37753 + done
37754 + relink_command="(cd `pwd`; $relink_command)"
37755 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
37756 + fi
37757 +
37758 + # Quote $echo for shipping.
37759 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
37760 + case $progpath in
37761 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
37762 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
37763 + esac
37764 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
37765 + else
37766 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
37767 + fi
37768 +
37769 + # Only actually do things if our run command is non-null.
37770 + if test -z "$run"; then
37771 + # win32 will think the script is a binary if it has
37772 + # a .exe suffix, so we strip it off here.
37773 + case $output in
37774 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
37775 + esac
37776 + # test for cygwin because mv fails w/o .exe extensions
37777 + case $host in
37778 + *cygwin*)
37779 + exeext=.exe
37780 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
37781 + *) exeext= ;;
37782 + esac
37783 + case $host in
37784 + *cygwin* | *mingw* )
37785 + output_name=`basename $output`
37786 + output_path=`dirname $output`
37787 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
37788 + cwrapper="$output_path/$output_name.exe"
37789 + $rm $cwrappersource $cwrapper
37790 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
37791 +
37792 + cat > $cwrappersource <<EOF
37793 +
37794 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
37795 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
37796 +
37797 + The $output program cannot be directly executed until all the libtool
37798 + libraries that it depends on are installed.
37799 +
37800 + This wrapper executable should never be moved out of the build directory.
37801 + If it is, it will not operate correctly.
37802 +
37803 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
37804 + but could eventually absorb all of the scripts functionality and
37805 + exec $objdir/$outputname directly.
37806 +*/
37807 +EOF
37808 + cat >> $cwrappersource<<"EOF"
37809 +#include <stdio.h>
37810 +#include <stdlib.h>
37811 +#include <unistd.h>
37812 +#include <malloc.h>
37813 +#include <stdarg.h>
37814 +#include <assert.h>
37815 +#include <string.h>
37816 +#include <ctype.h>
37817 +#include <sys/stat.h>
37818 +
37819 +#if defined(PATH_MAX)
37820 +# define LT_PATHMAX PATH_MAX
37821 +#elif defined(MAXPATHLEN)
37822 +# define LT_PATHMAX MAXPATHLEN
37823 +#else
37824 +# define LT_PATHMAX 1024
37825 +#endif
37826 +
37827 +#ifndef DIR_SEPARATOR
37828 +# define DIR_SEPARATOR '/'
37829 +# define PATH_SEPARATOR ':'
37830 +#endif
37831 +
37832 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
37833 + defined (__OS2__)
37834 +# define HAVE_DOS_BASED_FILE_SYSTEM
37835 +# ifndef DIR_SEPARATOR_2
37836 +# define DIR_SEPARATOR_2 '\\'
37837 +# endif
37838 +# ifndef PATH_SEPARATOR_2
37839 +# define PATH_SEPARATOR_2 ';'
37840 +# endif
37841 +#endif
37842 +
37843 +#ifndef DIR_SEPARATOR_2
37844 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
37845 +#else /* DIR_SEPARATOR_2 */
37846 +# define IS_DIR_SEPARATOR(ch) \
37847 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
37848 +#endif /* DIR_SEPARATOR_2 */
37849 +
37850 +#ifndef PATH_SEPARATOR_2
37851 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
37852 +#else /* PATH_SEPARATOR_2 */
37853 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
37854 +#endif /* PATH_SEPARATOR_2 */
37855 +
37856 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
37857 +#define XFREE(stale) do { \
37858 + if (stale) { free ((void *) stale); stale = 0; } \
37859 +} while (0)
37860 +
37861 +/* -DDEBUG is fairly common in CFLAGS. */
37862 +#undef DEBUG
37863 +#if defined DEBUGWRAPPER
37864 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
37865 +#else
37866 +# define DEBUG(format, ...)
37867 +#endif
37868 +
37869 +const char *program_name = NULL;
37870 +
37871 +void * xmalloc (size_t num);
37872 +char * xstrdup (const char *string);
37873 +const char * base_name (const char *name);
37874 +char * find_executable(const char *wrapper);
37875 +int check_executable(const char *path);
37876 +char * strendzap(char *str, const char *pat);
37877 +void lt_fatal (const char *message, ...);
37878 +
37879 +int
37880 +main (int argc, char *argv[])
37881 +{
37882 + char **newargz;
37883 + int i;
37884 +
37885 + program_name = (char *) xstrdup (base_name (argv[0]));
37886 + DEBUG("(main) argv[0] : %s\n",argv[0]);
37887 + DEBUG("(main) program_name : %s\n",program_name);
37888 + newargz = XMALLOC(char *, argc+2);
37889 +EOF
37890 +
37891 + cat >> $cwrappersource <<EOF
37892 + newargz[0] = (char *) xstrdup("$SHELL");
37893 +EOF
37894 +
37895 + cat >> $cwrappersource <<"EOF"
37896 + newargz[1] = find_executable(argv[0]);
37897 + if (newargz[1] == NULL)
37898 + lt_fatal("Couldn't find %s", argv[0]);
37899 + DEBUG("(main) found exe at : %s\n",newargz[1]);
37900 + /* we know the script has the same name, without the .exe */
37901 + /* so make sure newargz[1] doesn't end in .exe */
37902 + strendzap(newargz[1],".exe");
37903 + for (i = 1; i < argc; i++)
37904 + newargz[i+1] = xstrdup(argv[i]);
37905 + newargz[argc+1] = NULL;
37906 +
37907 + for (i=0; i<argc+1; i++)
37908 + {
37909 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
37910 + ;
37911 + }
37912 +
37913 +EOF
37914 +
37915 + case $host_os in
37916 + mingw*)
37917 + cat >> $cwrappersource <<EOF
37918 + execv("$SHELL",(char const **)newargz);
37919 +EOF
37920 + ;;
37921 + *)
37922 + cat >> $cwrappersource <<EOF
37923 + execv("$SHELL",newargz);
37924 +EOF
37925 + ;;
37926 + esac
37927 +
37928 + cat >> $cwrappersource <<"EOF"
37929 + return 127;
37930 +}
37931 +
37932 +void *
37933 +xmalloc (size_t num)
37934 +{
37935 + void * p = (void *) malloc (num);
37936 + if (!p)
37937 + lt_fatal ("Memory exhausted");
37938 +
37939 + return p;
37940 +}
37941 +
37942 +char *
37943 +xstrdup (const char *string)
37944 +{
37945 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
37946 +;
37947 +}
37948 +
37949 +const char *
37950 +base_name (const char *name)
37951 +{
37952 + const char *base;
37953 +
37954 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
37955 + /* Skip over the disk name in MSDOS pathnames. */
37956 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
37957 + name += 2;
37958 +#endif
37959 +
37960 + for (base = name; *name; name++)
37961 + if (IS_DIR_SEPARATOR (*name))
37962 + base = name + 1;
37963 + return base;
37964 +}
37965 +
37966 +int
37967 +check_executable(const char * path)
37968 +{
37969 + struct stat st;
37970 +
37971 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
37972 + if ((!path) || (!*path))
37973 + return 0;
37974 +
37975 + if ((stat (path, &st) >= 0) &&
37976 + (
37977 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
37978 +#if defined (S_IXOTH)
37979 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
37980 +#endif
37981 +#if defined (S_IXGRP)
37982 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
37983 +#endif
37984 + ((st.st_mode & S_IXUSR) == S_IXUSR))
37985 + )
37986 + return 1;
37987 + else
37988 + return 0;
37989 +}
37990 +
37991 +/* Searches for the full path of the wrapper. Returns
37992 + newly allocated full path name if found, NULL otherwise */
37993 +char *
37994 +find_executable (const char* wrapper)
37995 +{
37996 + int has_slash = 0;
37997 + const char* p;
37998 + const char* p_next;
37999 + /* static buffer for getcwd */
38000 + char tmp[LT_PATHMAX + 1];
38001 + int tmp_len;
38002 + char* concat_name;
38003 +
38004 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
38005 +
38006 + if ((wrapper == NULL) || (*wrapper == '\0'))
38007 + return NULL;
38008 +
38009 + /* Absolute path? */
38010 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
38011 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
38012 + {
38013 + concat_name = xstrdup (wrapper);
38014 + if (check_executable(concat_name))
38015 + return concat_name;
38016 + XFREE(concat_name);
38017 + }
38018 + else
38019 + {
38020 +#endif
38021 + if (IS_DIR_SEPARATOR (wrapper[0]))
38022 + {
38023 + concat_name = xstrdup (wrapper);
38024 + if (check_executable(concat_name))
38025 + return concat_name;
38026 + XFREE(concat_name);
38027 + }
38028 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
38029 + }
38030 +#endif
38031 +
38032 + for (p = wrapper; *p; p++)
38033 + if (*p == '/')
38034 + {
38035 + has_slash = 1;
38036 + break;
38037 + }
38038 + if (!has_slash)
38039 + {
38040 + /* no slashes; search PATH */
38041 + const char* path = getenv ("PATH");
38042 + if (path != NULL)
38043 + {
38044 + for (p = path; *p; p = p_next)
38045 + {
38046 + const char* q;
38047 + size_t p_len;
38048 + for (q = p; *q; q++)
38049 + if (IS_PATH_SEPARATOR(*q))
38050 + break;
38051 + p_len = q - p;
38052 + p_next = (*q == '\0' ? q : q + 1);
38053 + if (p_len == 0)
38054 + {
38055 + /* empty path: current directory */
38056 + if (getcwd (tmp, LT_PATHMAX) == NULL)
38057 + lt_fatal ("getcwd failed");
38058 + tmp_len = strlen(tmp);
38059 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
38060 + memcpy (concat_name, tmp, tmp_len);
38061 + concat_name[tmp_len] = '/';
38062 + strcpy (concat_name + tmp_len + 1, wrapper);
38063 + }
38064 + else
38065 + {
38066 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
38067 + memcpy (concat_name, p, p_len);
38068 + concat_name[p_len] = '/';
38069 + strcpy (concat_name + p_len + 1, wrapper);
38070 + }
38071 + if (check_executable(concat_name))
38072 + return concat_name;
38073 + XFREE(concat_name);
38074 + }
38075 + }
38076 + /* not found in PATH; assume curdir */
38077 + }
38078 + /* Relative path | not found in path: prepend cwd */
38079 + if (getcwd (tmp, LT_PATHMAX) == NULL)
38080 + lt_fatal ("getcwd failed");
38081 + tmp_len = strlen(tmp);
38082 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
38083 + memcpy (concat_name, tmp, tmp_len);
38084 + concat_name[tmp_len] = '/';
38085 + strcpy (concat_name + tmp_len + 1, wrapper);
38086 +
38087 + if (check_executable(concat_name))
38088 + return concat_name;
38089 + XFREE(concat_name);
38090 + return NULL;
38091 +}
38092 +
38093 +char *
38094 +strendzap(char *str, const char *pat)
38095 +{
38096 + size_t len, patlen;
38097 +
38098 + assert(str != NULL);
38099 + assert(pat != NULL);
38100 +
38101 + len = strlen(str);
38102 + patlen = strlen(pat);
38103 +
38104 + if (patlen <= len)
38105 + {
38106 + str += len - patlen;
38107 + if (strcmp(str, pat) == 0)
38108 + *str = '\0';
38109 + }
38110 + return str;
38111 +}
38112 +
38113 +static void
38114 +lt_error_core (int exit_status, const char * mode,
38115 + const char * message, va_list ap)
38116 +{
38117 + fprintf (stderr, "%s: %s: ", program_name, mode);
38118 + vfprintf (stderr, message, ap);
38119 + fprintf (stderr, ".\n");
38120 +
38121 + if (exit_status >= 0)
38122 + exit (exit_status);
38123 +}
38124 +
38125 +void
38126 +lt_fatal (const char *message, ...)
38127 +{
38128 + va_list ap;
38129 + va_start (ap, message);
38130 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
38131 + va_end (ap);
38132 +}
38133 +EOF
38134 + # we should really use a build-platform specific compiler
38135 + # here, but OTOH, the wrappers (shell script and this C one)
38136 + # are only useful if you want to execute the "real" binary.
38137 + # Since the "real" binary is built for $host, then this
38138 + # wrapper might as well be built for $host, too.
38139 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
38140 + ;;
38141 + esac
38142 + $rm $output
38143 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
38144 +
38145 + $echo > $output "\
38146 +#! $SHELL
38147 +
38148 +# $output - temporary wrapper script for $objdir/$outputname
38149 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
38150 +#
38151 +# The $output program cannot be directly executed until all the libtool
38152 +# libraries that it depends on are installed.
38153 +#
38154 +# This wrapper script should never be moved out of the build directory.
38155 +# If it is, it will not operate correctly.
38156 +
38157 +# Sed substitution that helps us do robust quoting. It backslashifies
38158 +# metacharacters that are still active within double-quoted strings.
38159 +Xsed='${SED} -e 1s/^X//'
38160 +sed_quote_subst='$sed_quote_subst'
38161 +
38162 +# The HP-UX ksh and POSIX shell print the target directory to stdout
38163 +# if CDPATH is set.
38164 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38165 +
38166 +relink_command=\"$relink_command\"
38167 +
38168 +# This environment variable determines our operation mode.
38169 +if test \"\$libtool_install_magic\" = \"$magic\"; then
38170 + # install mode needs the following variable:
38171 + notinst_deplibs='$notinst_deplibs'
38172 +else
38173 + # When we are sourced in execute mode, \$file and \$echo are already set.
38174 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
38175 + echo=\"$qecho\"
38176 + file=\"\$0\"
38177 + # Make sure echo works.
38178 + if test \"X\$1\" = X--no-reexec; then
38179 + # Discard the --no-reexec flag, and continue.
38180 + shift
38181 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
38182 + # Yippee, \$echo works!
38183 + :
38184 + else
38185 + # Restart under the correct shell, and then maybe \$echo will work.
38186 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
38187 + fi
38188 + fi\
38189 +"
38190 + $echo >> $output "\
38191 +
38192 + # Find the directory that this script lives in.
38193 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
38194 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
38195 +
38196 + # Follow symbolic links until we get to the real thisdir.
38197 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
38198 + while test -n \"\$file\"; do
38199 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
38200 +
38201 + # If there was a directory component, then change thisdir.
38202 + if test \"x\$destdir\" != \"x\$file\"; then
38203 + case \"\$destdir\" in
38204 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
38205 + *) thisdir=\"\$thisdir/\$destdir\" ;;
38206 + esac
38207 + fi
38208 +
38209 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
38210 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
38211 + done
38212 +
38213 + # Try to get the absolute directory name.
38214 + absdir=\`cd \"\$thisdir\" && pwd\`
38215 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
38216 +"
38217 +
38218 + if test "$fast_install" = yes; then
38219 + $echo >> $output "\
38220 + program=lt-'$outputname'$exeext
38221 + progdir=\"\$thisdir/$objdir\"
38222 +
38223 + if test ! -f \"\$progdir/\$program\" || \\
38224 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
38225 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
38226 +
38227 + file=\"\$\$-\$program\"
38228 +
38229 + if test ! -d \"\$progdir\"; then
38230 + $mkdir \"\$progdir\"
38231 + else
38232 + $rm \"\$progdir/\$file\"
38233 + fi"
38234 +
38235 + $echo >> $output "\
38236 +
38237 + # relink executable if necessary
38238 + if test -n \"\$relink_command\"; then
38239 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
38240 + else
38241 + $echo \"\$relink_command_output\" >&2
38242 + $rm \"\$progdir/\$file\"
38243 + exit $EXIT_FAILURE
38244 + fi
38245 + fi
38246 +
38247 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
38248 + { $rm \"\$progdir/\$program\";
38249 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
38250 + $rm \"\$progdir/\$file\"
38251 + fi"
38252 + else
38253 + $echo >> $output "\
38254 + program='$outputname'
38255 + progdir=\"\$thisdir/$objdir\"
38256 +"
38257 + fi
38258 +
38259 + $echo >> $output "\
38260 +
38261 + if test -f \"\$progdir/\$program\"; then"
38262 +
38263 + # Export our shlibpath_var if we have one.
38264 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
38265 + $echo >> $output "\
38266 + # Add our own library path to $shlibpath_var
38267 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
38268 +
38269 + # Some systems cannot cope with colon-terminated $shlibpath_var
38270 + # The second colon is a workaround for a bug in BeOS R4 sed
38271 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
38272 +
38273 + export $shlibpath_var
38274 +"
38275 + fi
38276 +
38277 + # fixup the dll searchpath if we need to.
38278 + if test -n "$dllsearchpath"; then
38279 + $echo >> $output "\
38280 + # Add the dll search path components to the executable PATH
38281 + PATH=$dllsearchpath:\$PATH
38282 +"
38283 + fi
38284 +
38285 + $echo >> $output "\
38286 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
38287 + # Run the actual program with our arguments.
38288 +
38289 + # Make sure env LD_LIBRARY_PATH does not mess us up
38290 + if test -n \"\${LD_LIBRARY_PATH+set}\"; then
38291 + export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
38292 + fi
38293 +"
38294 + case $host in
38295 + # Backslashes separate directories on plain windows
38296 + *-*-mingw | *-*-os2*)
38297 + $echo >> $output "\
38298 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
38299 +"
38300 + ;;
38301 +
38302 + *)
38303 + $echo >> $output "\
38304 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
38305 +"
38306 + ;;
38307 + esac
38308 + $echo >> $output "\
38309 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
38310 + exit $EXIT_FAILURE
38311 + fi
38312 + else
38313 + # The program doesn't exist.
38314 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
38315 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
38316 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
38317 + exit $EXIT_FAILURE
38318 + fi
38319 +fi\
38320 +"
38321 + chmod +x $output
38322 + fi
38323 + exit $EXIT_SUCCESS
38324 + ;;
38325 + esac
38326 +
38327 + # See if we need to build an old-fashioned archive.
38328 + for oldlib in $oldlibs; do
38329 +
38330 + if test "$build_libtool_libs" = convenience; then
38331 + oldobjs="$libobjs_save"
38332 + addlibs="$convenience"
38333 + build_libtool_libs=no
38334 + else
38335 + if test "$build_libtool_libs" = module; then
38336 + oldobjs="$libobjs_save"
38337 + build_libtool_libs=no
38338 + else
38339 + oldobjs="$old_deplibs $non_pic_objects"
38340 + fi
38341 + addlibs="$old_convenience"
38342 + fi
38343 +
38344 + if test -n "$addlibs"; then
38345 + gentop="$output_objdir/${outputname}x"
38346 + generated="$generated $gentop"
38347 +
38348 + func_extract_archives $gentop $addlibs
38349 + oldobjs="$oldobjs $func_extract_archives_result"
38350 + fi
38351 +
38352 + # Do each command in the archive commands.
38353 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
38354 + cmds=$old_archive_from_new_cmds
38355 + else
38356 + # POSIX demands no paths to be encoded in archives. We have
38357 + # to avoid creating archives with duplicate basenames if we
38358 + # might have to extract them afterwards, e.g., when creating a
38359 + # static archive out of a convenience library, or when linking
38360 + # the entirety of a libtool archive into another (currently
38361 + # not supported by libtool).
38362 + if (for obj in $oldobjs
38363 + do
38364 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
38365 + done | sort | sort -uc >/dev/null 2>&1); then
38366 + :
38367 + else
38368 + $echo "copying selected object files to avoid basename conflicts..."
38369 +
38370 + if test -z "$gentop"; then
38371 + gentop="$output_objdir/${outputname}x"
38372 + generated="$generated $gentop"
38373 +
38374 + $show "${rm}r $gentop"
38375 + $run ${rm}r "$gentop"
38376 + $show "$mkdir $gentop"
38377 + $run $mkdir "$gentop"
38378 + exit_status=$?
38379 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
38380 + exit $exit_status
38381 + fi
38382 + fi
38383 +
38384 + save_oldobjs=$oldobjs
38385 + oldobjs=
38386 + counter=1
38387 + for obj in $save_oldobjs
38388 + do
38389 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
38390 + case " $oldobjs " in
38391 + " ") oldobjs=$obj ;;
38392 + *[\ /]"$objbase "*)
38393 + while :; do
38394 + # Make sure we don't pick an alternate name that also
38395 + # overlaps.
38396 + newobj=lt$counter-$objbase
38397 + counter=`expr $counter + 1`
38398 + case " $oldobjs " in
38399 + *[\ /]"$newobj "*) ;;
38400 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
38401 + esac
38402 + done
38403 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
38404 + $run ln "$obj" "$gentop/$newobj" ||
38405 + $run cp "$obj" "$gentop/$newobj"
38406 + oldobjs="$oldobjs $gentop/$newobj"
38407 + ;;
38408 + *) oldobjs="$oldobjs $obj" ;;
38409 + esac
38410 + done
38411 + fi
38412 +
38413 + eval cmds=\"$old_archive_cmds\"
38414 +
38415 + if len=`expr "X$cmds" : ".*"` &&
38416 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
38417 + cmds=$old_archive_cmds
38418 + else
38419 + # the command line is too long to link in one step, link in parts
38420 + $echo "using piecewise archive linking..."
38421 + save_RANLIB=$RANLIB
38422 + RANLIB=:
38423 + objlist=
38424 + concat_cmds=
38425 + save_oldobjs=$oldobjs
38426 +
38427 + # Is there a better way of finding the last object in the list?
38428 + for obj in $save_oldobjs
38429 + do
38430 + last_oldobj=$obj
38431 + done
38432 + for obj in $save_oldobjs
38433 + do
38434 + oldobjs="$objlist $obj"
38435 + objlist="$objlist $obj"
38436 + eval test_cmds=\"$old_archive_cmds\"
38437 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
38438 + test "$len" -le "$max_cmd_len"; then
38439 + :
38440 + else
38441 + # the above command should be used before it gets too long
38442 + oldobjs=$objlist
38443 + if test "$obj" = "$last_oldobj" ; then
38444 + RANLIB=$save_RANLIB
38445 + fi
38446 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
38447 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
38448 + objlist=
38449 + fi
38450 + done
38451 + RANLIB=$save_RANLIB
38452 + oldobjs=$objlist
38453 + if test "X$oldobjs" = "X" ; then
38454 + eval cmds=\"\$concat_cmds\"
38455 + else
38456 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
38457 + fi
38458 + fi
38459 + fi
38460 + save_ifs="$IFS"; IFS='~'
38461 + for cmd in $cmds; do
38462 + eval cmd=\"$cmd\"
38463 + IFS="$save_ifs"
38464 + $show "$cmd"
38465 + $run eval "$cmd" || exit $?
38466 + done
38467 + IFS="$save_ifs"
38468 + done
38469 +
38470 + if test -n "$generated"; then
38471 + $show "${rm}r$generated"
38472 + $run ${rm}r$generated
38473 + fi
38474 +
38475 + # Now create the libtool archive.
38476 + case $output in
38477 + *.la)
38478 + old_library=
38479 + test "$build_old_libs" = yes && old_library="$libname.$libext"
38480 + $show "creating $output"
38481 +
38482 + # Preserve any variables that may affect compiler behavior
38483 + for var in $variables_saved_for_relink; do
38484 + if eval test -z \"\${$var+set}\"; then
38485 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
38486 + elif eval var_value=\$$var; test -z "$var_value"; then
38487 + relink_command="$var=; export $var; $relink_command"
38488 + else
38489 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
38490 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
38491 + fi
38492 + done
38493 + # Quote the link command for shipping.
38494 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
38495 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
38496 + if test "$hardcode_automatic" = yes ; then
38497 + relink_command=
38498 + fi
38499 +
38500 +
38501 + # Only create the output if not a dry run.
38502 + if test -z "$run"; then
38503 + for installed in no yes; do
38504 + if test "$installed" = yes; then
38505 + if test -z "$install_libdir"; then
38506 + break
38507 + fi
38508 + output="$output_objdir/$outputname"i
38509 + # Replace all uninstalled libtool libraries with the installed ones
38510 + newdependency_libs=
38511 + for deplib in $dependency_libs; do
38512 + case $deplib in
38513 + *.la)
38514 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
38515 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
38516 + if test -z "$libdir"; then
38517 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
38518 + exit $EXIT_FAILURE
38519 + fi
38520 + if test "X$EGREP" = X ; then
38521 + EGREP=egrep
38522 + fi
38523 + # We do not want portage's install root ($D) present. Check only for
38524 + # this if the .la is being installed.
38525 + if test "$installed" = yes && test "$D"; then
38526 + eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38527 + else
38528 + mynewdependency_lib="$libdir/$name"
38529 + fi
38530 + # Do not add duplicates
38531 + if test "$mynewdependency_lib"; then
38532 + my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
38533 + if test -z "$my_little_ninja_foo_1"; then
38534 + newdependency_libs="$newdependency_libs $mynewdependency_lib"
38535 + fi
38536 + fi
38537 + ;;
38538 + *)
38539 + if test "$installed" = yes; then
38540 + # Rather use S=WORKDIR if our version of portage supports it.
38541 + # This is because some ebuild (gcc) do not use $S as buildroot.
38542 + if test "$PWORKDIR"; then
38543 + S="$PWORKDIR"
38544 + fi
38545 + # We do not want portage's build root ($S) present.
38546 + my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
38547 + # We do not want portage's install root ($D) present.
38548 + my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
38549 + if test -n "$my_little_ninja_foo_2" && test "$S"; then
38550 + mynewdependency_lib=""
38551 + elif test -n "$my_little_ninja_foo_3" && test "$D"; then
38552 + eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38553 + else
38554 + mynewdependency_lib="$deplib"
38555 + fi
38556 + else
38557 + mynewdependency_lib="$deplib"
38558 + fi
38559 + # Do not add duplicates
38560 + if test "$mynewdependency_lib"; then
38561 + my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
38562 + if test -z "$my_little_ninja_foo_4"; then
38563 + newdependency_libs="$newdependency_libs $mynewdependency_lib"
38564 + fi
38565 + fi
38566 + ;;
38567 + esac
38568 + done
38569 + dependency_libs="$newdependency_libs"
38570 + newdlfiles=
38571 + for lib in $dlfiles; do
38572 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
38573 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
38574 + if test -z "$libdir"; then
38575 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
38576 + exit $EXIT_FAILURE
38577 + fi
38578 + newdlfiles="$newdlfiles $libdir/$name"
38579 + done
38580 + dlfiles="$newdlfiles"
38581 + newdlprefiles=
38582 + for lib in $dlprefiles; do
38583 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
38584 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
38585 + if test -z "$libdir"; then
38586 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
38587 + exit $EXIT_FAILURE
38588 + fi
38589 + newdlprefiles="$newdlprefiles $libdir/$name"
38590 + done
38591 + dlprefiles="$newdlprefiles"
38592 + else
38593 + newdlfiles=
38594 + for lib in $dlfiles; do
38595 + case $lib in
38596 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
38597 + *) abs=`pwd`"/$lib" ;;
38598 + esac
38599 + newdlfiles="$newdlfiles $abs"
38600 + done
38601 + dlfiles="$newdlfiles"
38602 + newdlprefiles=
38603 + for lib in $dlprefiles; do
38604 + case $lib in
38605 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
38606 + *) abs=`pwd`"/$lib" ;;
38607 + esac
38608 + newdlprefiles="$newdlprefiles $abs"
38609 + done
38610 + dlprefiles="$newdlprefiles"
38611 + fi
38612 + $rm $output
38613 + # place dlname in correct position for cygwin
38614 + tdlname=$dlname
38615 + case $host,$output,$installed,$module,$dlname in
38616 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
38617 + esac
38618 + # Do not add duplicates
38619 + if test "$installed" = yes && test "$D"; then
38620 + install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38621 + fi
38622 + $echo > $output "\
38623 +# $outputname - a libtool library file
38624 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
38625 +#
38626 +# Please DO NOT delete this file!
38627 +# It is necessary for linking the library.
38628 +
38629 +# The name that we can dlopen(3).
38630 +dlname='$tdlname'
38631 +
38632 +# Names of this library.
38633 +library_names='$library_names'
38634 +
38635 +# The name of the static archive.
38636 +old_library='$old_library'
38637 +
38638 +# Libraries that this one depends upon.
38639 +dependency_libs='$dependency_libs'
38640 +
38641 +# Version information for $libname.
38642 +current=$current
38643 +age=$age
38644 +revision=$revision
38645 +
38646 +# Is this an already installed library?
38647 +installed=$installed
38648 +
38649 +# Should we warn about portability when linking against -modules?
38650 +shouldnotlink=$module
38651 +
38652 +# Files to dlopen/dlpreopen
38653 +dlopen='$dlfiles'
38654 +dlpreopen='$dlprefiles'
38655 +
38656 +# Directory that this library needs to be installed in:
38657 +libdir='$install_libdir'"
38658 + if test "$installed" = no && test "$need_relink" = yes; then
38659 + $echo >> $output "\
38660 +relink_command=\"$relink_command\""
38661 + fi
38662 + done
38663 + fi
38664 +
38665 + # Do a symbolic link so that the libtool archive can be found in
38666 + # LD_LIBRARY_PATH before the program is installed.
38667 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
38668 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
38669 + ;;
38670 + esac
38671 + exit $EXIT_SUCCESS
38672 + ;;
38673 +
38674 + # libtool install mode
38675 + install)
38676 + modename="$modename: install"
38677 +
38678 + # There may be an optional sh(1) argument at the beginning of
38679 + # install_prog (especially on Windows NT).
38680 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
38681 + # Allow the use of GNU shtool's install command.
38682 + $echo "X$nonopt" | grep shtool > /dev/null; then
38683 + # Aesthetically quote it.
38684 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
38685 + case $arg in
38686 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38687 + arg="\"$arg\""
38688 + ;;
38689 + esac
38690 + install_prog="$arg "
38691 + arg="$1"
38692 + shift
38693 + else
38694 + install_prog=
38695 + arg=$nonopt
38696 + fi
38697 +
38698 + # The real first argument should be the name of the installation program.
38699 + # Aesthetically quote it.
38700 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
38701 + case $arg in
38702 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38703 + arg="\"$arg\""
38704 + ;;
38705 + esac
38706 + install_prog="$install_prog$arg"
38707 +
38708 + # We need to accept at least all the BSD install flags.
38709 + dest=
38710 + files=
38711 + opts=
38712 + prev=
38713 + install_type=
38714 + isdir=no
38715 + stripme=
38716 + for arg
38717 + do
38718 + if test -n "$dest"; then
38719 + files="$files $dest"
38720 + dest=$arg
38721 + continue
38722 + fi
38723 +
38724 + case $arg in
38725 + -d) isdir=yes ;;
38726 + -f)
38727 + case " $install_prog " in
38728 + *[\\\ /]cp\ *) ;;
38729 + *) prev=$arg ;;
38730 + esac
38731 + ;;
38732 + -g | -m | -o) prev=$arg ;;
38733 + -s)
38734 + stripme=" -s"
38735 + continue
38736 + ;;
38737 + -*)
38738 + ;;
38739 + *)
38740 + # If the previous option needed an argument, then skip it.
38741 + if test -n "$prev"; then
38742 + prev=
38743 + else
38744 + dest=$arg
38745 + continue
38746 + fi
38747 + ;;
38748 + esac
38749 +
38750 + # Aesthetically quote the argument.
38751 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
38752 + case $arg in
38753 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38754 + arg="\"$arg\""
38755 + ;;
38756 + esac
38757 + install_prog="$install_prog $arg"
38758 + done
38759 +
38760 + if test -z "$install_prog"; then
38761 + $echo "$modename: you must specify an install program" 1>&2
38762 + $echo "$help" 1>&2
38763 + exit $EXIT_FAILURE
38764 + fi
38765 +
38766 + if test -n "$prev"; then
38767 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
38768 + $echo "$help" 1>&2
38769 + exit $EXIT_FAILURE
38770 + fi
38771 +
38772 + if test -z "$files"; then
38773 + if test -z "$dest"; then
38774 + $echo "$modename: no file or destination specified" 1>&2
38775 + else
38776 + $echo "$modename: you must specify a destination" 1>&2
38777 + fi
38778 + $echo "$help" 1>&2
38779 + exit $EXIT_FAILURE
38780 + fi
38781 +
38782 + # Strip any trailing slash from the destination.
38783 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
38784 +
38785 + # Check to see that the destination is a directory.
38786 + test -d "$dest" && isdir=yes
38787 + if test "$isdir" = yes; then
38788 + destdir="$dest"
38789 + destname=
38790 + else
38791 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
38792 + test "X$destdir" = "X$dest" && destdir=.
38793 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
38794 +
38795 + # Not a directory, so check to see that there is only one file specified.
38796 + set dummy $files
38797 + if test "$#" -gt 2; then
38798 + $echo "$modename: \`$dest' is not a directory" 1>&2
38799 + $echo "$help" 1>&2
38800 + exit $EXIT_FAILURE
38801 + fi
38802 + fi
38803 + case $destdir in
38804 + [\\/]* | [A-Za-z]:[\\/]*) ;;
38805 + *)
38806 + for file in $files; do
38807 + case $file in
38808 + *.lo) ;;
38809 + *)
38810 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
38811 + $echo "$help" 1>&2
38812 + exit $EXIT_FAILURE
38813 + ;;
38814 + esac
38815 + done
38816 + ;;
38817 + esac
38818 +
38819 + # This variable tells wrapper scripts just to set variables rather
38820 + # than running their programs.
38821 + libtool_install_magic="$magic"
38822 +
38823 + staticlibs=
38824 + future_libdirs=
38825 + current_libdirs=
38826 + for file in $files; do
38827 +
38828 + # Do each installation.
38829 + case $file in
38830 + *.$libext)
38831 + # Do the static libraries later.
38832 + staticlibs="$staticlibs $file"
38833 + ;;
38834 +
38835 + *.la)
38836 + # Check to see that this really is a libtool archive.
38837 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
38838 + else
38839 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
38840 + $echo "$help" 1>&2
38841 + exit $EXIT_FAILURE
38842 + fi
38843 +
38844 + library_names=
38845 + old_library=
38846 + relink_command=
38847 + # If there is no directory component, then add one.
38848 + case $file in
38849 + */* | *\\*) . $file ;;
38850 + *) . ./$file ;;
38851 + esac
38852 +
38853 + # Add the libdir to current_libdirs if it is the destination.
38854 + if test "X$destdir" = "X$libdir"; then
38855 + case "$current_libdirs " in
38856 + *" $libdir "*) ;;
38857 + *) current_libdirs="$current_libdirs $libdir" ;;
38858 + esac
38859 + else
38860 + # Note the libdir as a future libdir.
38861 + case "$future_libdirs " in
38862 + *" $libdir "*) ;;
38863 + *) future_libdirs="$future_libdirs $libdir" ;;
38864 + esac
38865 + fi
38866 +
38867 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
38868 + test "X$dir" = "X$file/" && dir=
38869 + dir="$dir$objdir"
38870 +
38871 + if test -n "$relink_command"; then
38872 + # Determine the prefix the user has applied to our future dir.
38873 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
38874 +
38875 + # Don't allow the user to place us outside of our expected
38876 + # location b/c this prevents finding dependent libraries that
38877 + # are installed to the same prefix.
38878 + # At present, this check doesn't affect windows .dll's that
38879 + # are installed into $libdir/../bin (currently, that works fine)
38880 + # but it's something to keep an eye on.
38881 + if test "$inst_prefix_dir" = "$destdir"; then
38882 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
38883 + exit $EXIT_FAILURE
38884 + fi
38885 +
38886 + if test -n "$inst_prefix_dir"; then
38887 + # Stick the inst_prefix_dir data into the link command.
38888 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
38889 + else
38890 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
38891 + fi
38892 +
38893 + $echo "$modename: warning: relinking \`$file'" 1>&2
38894 + $show "$relink_command"
38895 + if $run eval "$relink_command"; then :
38896 + else
38897 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
38898 + exit $EXIT_FAILURE
38899 + fi
38900 + fi
38901 +
38902 + # See the names of the shared library.
38903 + set dummy $library_names
38904 + if test -n "$2"; then
38905 + realname="$2"
38906 + shift
38907 + shift
38908 +
38909 + srcname="$realname"
38910 + test -n "$relink_command" && srcname="$realname"T
38911 +
38912 + # Install the shared library and build the symlinks.
38913 + $show "$install_prog $dir/$srcname $destdir/$realname"
38914 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
38915 + if test -n "$stripme" && test -n "$striplib"; then
38916 + $show "$striplib $destdir/$realname"
38917 + $run eval "$striplib $destdir/$realname" || exit $?
38918 + fi
38919 +
38920 + if test "$#" -gt 0; then
38921 + # Delete the old symlinks, and create new ones.
38922 + # Try `ln -sf' first, because the `ln' binary might depend on
38923 + # the symlink we replace! Solaris /bin/ln does not understand -f,
38924 + # so we also need to try rm && ln -s.
38925 + for linkname
38926 + do
38927 + if test "$linkname" != "$realname"; then
38928 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
38929 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
38930 + fi
38931 + done
38932 + fi
38933 +
38934 + # Do each command in the postinstall commands.
38935 + lib="$destdir/$realname"
38936 + cmds=$postinstall_cmds
38937 + save_ifs="$IFS"; IFS='~'
38938 + for cmd in $cmds; do
38939 + IFS="$save_ifs"
38940 + eval cmd=\"$cmd\"
38941 + $show "$cmd"
38942 + $run eval "$cmd" || {
38943 + lt_exit=$?
38944 +
38945 + # Restore the uninstalled library and exit
38946 + if test "$mode" = relink; then
38947 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
38948 + fi
38949 +
38950 + exit $lt_exit
38951 + }
38952 + done
38953 + IFS="$save_ifs"
38954 + fi
38955 +
38956 + # Install the pseudo-library for information purposes.
38957 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
38958 + instname="$dir/$name"i
38959 + $show "$install_prog $instname $destdir/$name"
38960 + $run eval "$install_prog $instname $destdir/$name" || exit $?
38961 +
38962 + # Maybe install the static library, too.
38963 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
38964 + ;;
38965 +
38966 + *.lo)
38967 + # Install (i.e. copy) a libtool object.
38968 +
38969 + # Figure out destination file name, if it wasn't already specified.
38970 + if test -n "$destname"; then
38971 + destfile="$destdir/$destname"
38972 + else
38973 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
38974 + destfile="$destdir/$destfile"
38975 + fi
38976 +
38977 + # Deduce the name of the destination old-style object file.
38978 + case $destfile in
38979 + *.lo)
38980 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
38981 + ;;
38982 + *.$objext)
38983 + staticdest="$destfile"
38984 + destfile=
38985 + ;;
38986 + *)
38987 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
38988 + $echo "$help" 1>&2
38989 + exit $EXIT_FAILURE
38990 + ;;
38991 + esac
38992 +
38993 + # Install the libtool object if requested.
38994 + if test -n "$destfile"; then
38995 + $show "$install_prog $file $destfile"
38996 + $run eval "$install_prog $file $destfile" || exit $?
38997 + fi
38998 +
38999 + # Install the old object if enabled.
39000 + if test "$build_old_libs" = yes; then
39001 + # Deduce the name of the old-style object file.
39002 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
39003 +
39004 + $show "$install_prog $staticobj $staticdest"
39005 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
39006 + fi
39007 + exit $EXIT_SUCCESS
39008 + ;;
39009 +
39010 + *)
39011 + # Figure out destination file name, if it wasn't already specified.
39012 + if test -n "$destname"; then
39013 + destfile="$destdir/$destname"
39014 + else
39015 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39016 + destfile="$destdir/$destfile"
39017 + fi
39018 +
39019 + # If the file is missing, and there is a .exe on the end, strip it
39020 + # because it is most likely a libtool script we actually want to
39021 + # install
39022 + stripped_ext=""
39023 + case $file in
39024 + *.exe)
39025 + if test ! -f "$file"; then
39026 + file=`$echo $file|${SED} 's,.exe$,,'`
39027 + stripped_ext=".exe"
39028 + fi
39029 + ;;
39030 + esac
39031 +
39032 + # Do a test to see if this is really a libtool program.
39033 + case $host in
39034 + *cygwin*|*mingw*)
39035 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
39036 + ;;
39037 + *)
39038 + wrapper=$file
39039 + ;;
39040 + esac
39041 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
39042 + notinst_deplibs=
39043 + relink_command=
39044 +
39045 + # Note that it is not necessary on cygwin/mingw to append a dot to
39046 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
39047 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
39048 + # `FILE.' does not work on cygwin managed mounts.
39049 + #
39050 + # If there is no directory component, then add one.
39051 + case $wrapper in
39052 + */* | *\\*) . ${wrapper} ;;
39053 + *) . ./${wrapper} ;;
39054 + esac
39055 +
39056 + # Check the variables that should have been set.
39057 + if test -z "$notinst_deplibs"; then
39058 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
39059 + exit $EXIT_FAILURE
39060 + fi
39061 +
39062 + finalize=yes
39063 + for lib in $notinst_deplibs; do
39064 + # Check to see that each library is installed.
39065 + libdir=
39066 + if test -f "$lib"; then
39067 + # If there is no directory component, then add one.
39068 + case $lib in
39069 + */* | *\\*) . $lib ;;
39070 + *) . ./$lib ;;
39071 + esac
39072 + fi
39073 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
39074 + if test -n "$libdir" && test ! -f "$libfile"; then
39075 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
39076 + finalize=no
39077 + fi
39078 + done
39079 +
39080 + relink_command=
39081 + # Note that it is not necessary on cygwin/mingw to append a dot to
39082 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
39083 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
39084 + # `FILE.' does not work on cygwin managed mounts.
39085 + #
39086 + # If there is no directory component, then add one.
39087 + case $wrapper in
39088 + */* | *\\*) . ${wrapper} ;;
39089 + *) . ./${wrapper} ;;
39090 + esac
39091 +
39092 + outputname=
39093 + if test "$fast_install" = no && test -n "$relink_command"; then
39094 + if test "$finalize" = yes && test -z "$run"; then
39095 + tmpdir=`func_mktempdir`
39096 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
39097 + outputname="$tmpdir/$file"
39098 + # Replace the output file specification.
39099 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
39100 +
39101 + $show "$relink_command"
39102 + if $run eval "$relink_command"; then :
39103 + else
39104 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
39105 + ${rm}r "$tmpdir"
39106 + continue
39107 + fi
39108 + file="$outputname"
39109 + else
39110 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
39111 + fi
39112 + else
39113 + # Install the binary that we compiled earlier.
39114 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
39115 + fi
39116 + fi
39117 +
39118 + # remove .exe since cygwin /usr/bin/install will append another
39119 + # one anyway
39120 + case $install_prog,$host in
39121 + */usr/bin/install*,*cygwin*)
39122 + case $file:$destfile in
39123 + *.exe:*.exe)
39124 + # this is ok
39125 + ;;
39126 + *.exe:*)
39127 + destfile=$destfile.exe
39128 + ;;
39129 + *:*.exe)
39130 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
39131 + ;;
39132 + esac
39133 + ;;
39134 + esac
39135 + $show "$install_prog$stripme $file $destfile"
39136 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
39137 + test -n "$outputname" && ${rm}r "$tmpdir"
39138 + ;;
39139 + esac
39140 + done
39141 +
39142 + for file in $staticlibs; do
39143 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39144 +
39145 + # Set up the ranlib parameters.
39146 + oldlib="$destdir/$name"
39147 +
39148 + $show "$install_prog $file $oldlib"
39149 + $run eval "$install_prog \$file \$oldlib" || exit $?
39150 +
39151 + if test -n "$stripme" && test -n "$old_striplib"; then
39152 + $show "$old_striplib $oldlib"
39153 + $run eval "$old_striplib $oldlib" || exit $?
39154 + fi
39155 +
39156 + # Do each command in the postinstall commands.
39157 + cmds=$old_postinstall_cmds
39158 + save_ifs="$IFS"; IFS='~'
39159 + for cmd in $cmds; do
39160 + IFS="$save_ifs"
39161 + eval cmd=\"$cmd\"
39162 + $show "$cmd"
39163 + $run eval "$cmd" || exit $?
39164 + done
39165 + IFS="$save_ifs"
39166 + done
39167 +
39168 + if test -n "$future_libdirs"; then
39169 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
39170 + fi
39171 +
39172 + if test -n "$current_libdirs"; then
39173 + # Maybe just do a dry run.
39174 + test -n "$run" && current_libdirs=" -n$current_libdirs"
39175 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
39176 + else
39177 + exit $EXIT_SUCCESS
39178 + fi
39179 + ;;
39180 +
39181 + # libtool finish mode
39182 + finish)
39183 + modename="$modename: finish"
39184 + libdirs="$nonopt"
39185 + admincmds=
39186 +
39187 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
39188 + for dir
39189 + do
39190 + libdirs="$libdirs $dir"
39191 + done
39192 +
39193 + for libdir in $libdirs; do
39194 + if test -n "$finish_cmds"; then
39195 + # Do each command in the finish commands.
39196 + cmds=$finish_cmds
39197 + save_ifs="$IFS"; IFS='~'
39198 + for cmd in $cmds; do
39199 + IFS="$save_ifs"
39200 + eval cmd=\"$cmd\"
39201 + $show "$cmd"
39202 + $run eval "$cmd" || admincmds="$admincmds
39203 + $cmd"
39204 + done
39205 + IFS="$save_ifs"
39206 + fi
39207 + if test -n "$finish_eval"; then
39208 + # Do the single finish_eval.
39209 + eval cmds=\"$finish_eval\"
39210 + $run eval "$cmds" || admincmds="$admincmds
39211 + $cmds"
39212 + fi
39213 + done
39214 + fi
39215 +
39216 + # Exit here if they wanted silent mode.
39217 + test "$show" = : && exit $EXIT_SUCCESS
39218 +
39219 + $echo "X----------------------------------------------------------------------" | $Xsed
39220 + $echo "Libraries have been installed in:"
39221 + for libdir in $libdirs; do
39222 + $echo " $libdir"
39223 + done
39224 + $echo
39225 + $echo "If you ever happen to want to link against installed libraries"
39226 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
39227 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
39228 + $echo "flag during linking and do at least one of the following:"
39229 + if test -n "$shlibpath_var"; then
39230 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
39231 + $echo " during execution"
39232 + fi
39233 + if test -n "$runpath_var"; then
39234 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
39235 + $echo " during linking"
39236 + fi
39237 + if test -n "$hardcode_libdir_flag_spec"; then
39238 + libdir=LIBDIR
39239 + eval flag=\"$hardcode_libdir_flag_spec\"
39240 +
39241 + $echo " - use the \`$flag' linker flag"
39242 + fi
39243 + if test -n "$admincmds"; then
39244 + $echo " - have your system administrator run these commands:$admincmds"
39245 + fi
39246 + if test -f /etc/ld.so.conf; then
39247 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
39248 + fi
39249 + $echo
39250 + $echo "See any operating system documentation about shared libraries for"
39251 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
39252 + $echo "X----------------------------------------------------------------------" | $Xsed
39253 + exit $EXIT_SUCCESS
39254 + ;;
39255 +
39256 + # libtool execute mode
39257 + execute)
39258 + modename="$modename: execute"
39259 +
39260 + # The first argument is the command name.
39261 + cmd="$nonopt"
39262 + if test -z "$cmd"; then
39263 + $echo "$modename: you must specify a COMMAND" 1>&2
39264 + $echo "$help"
39265 + exit $EXIT_FAILURE
39266 + fi
39267 +
39268 + # Handle -dlopen flags immediately.
39269 + for file in $execute_dlfiles; do
39270 + if test ! -f "$file"; then
39271 + $echo "$modename: \`$file' is not a file" 1>&2
39272 + $echo "$help" 1>&2
39273 + exit $EXIT_FAILURE
39274 + fi
39275 +
39276 + dir=
39277 + case $file in
39278 + *.la)
39279 + # Check to see that this really is a libtool archive.
39280 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
39281 + else
39282 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
39283 + $echo "$help" 1>&2
39284 + exit $EXIT_FAILURE
39285 + fi
39286 +
39287 + # Read the libtool library.
39288 + dlname=
39289 + library_names=
39290 +
39291 + # If there is no directory component, then add one.
39292 + case $file in
39293 + */* | *\\*) . $file ;;
39294 + *) . ./$file ;;
39295 + esac
39296 +
39297 + # Skip this library if it cannot be dlopened.
39298 + if test -z "$dlname"; then
39299 + # Warn if it was a shared library.
39300 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
39301 + continue
39302 + fi
39303 +
39304 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39305 + test "X$dir" = "X$file" && dir=.
39306 +
39307 + if test -f "$dir/$objdir/$dlname"; then
39308 + dir="$dir/$objdir"
39309 + else
39310 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
39311 + exit $EXIT_FAILURE
39312 + fi
39313 + ;;
39314 +
39315 + *.lo)
39316 + # Just add the directory containing the .lo file.
39317 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39318 + test "X$dir" = "X$file" && dir=.
39319 + ;;
39320 +
39321 + *)
39322 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
39323 + continue
39324 + ;;
39325 + esac
39326 +
39327 + # Get the absolute pathname.
39328 + absdir=`cd "$dir" && pwd`
39329 + test -n "$absdir" && dir="$absdir"
39330 +
39331 + # Now add the directory to shlibpath_var.
39332 + if eval "test -z \"\$$shlibpath_var\""; then
39333 + eval "$shlibpath_var=\"\$dir\""
39334 + else
39335 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
39336 + fi
39337 + done
39338 +
39339 + # This variable tells wrapper scripts just to set shlibpath_var
39340 + # rather than running their programs.
39341 + libtool_execute_magic="$magic"
39342 +
39343 + # Check if any of the arguments is a wrapper script.
39344 + args=
39345 + for file
39346 + do
39347 + case $file in
39348 + -*) ;;
39349 + *)
39350 + # Do a test to see if this is really a libtool program.
39351 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39352 + # If there is no directory component, then add one.
39353 + case $file in
39354 + */* | *\\*) . $file ;;
39355 + *) . ./$file ;;
39356 + esac
39357 +
39358 + # Transform arg to wrapped name.
39359 + file="$progdir/$program"
39360 + fi
39361 + ;;
39362 + esac
39363 + # Quote arguments (to preserve shell metacharacters).
39364 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
39365 + args="$args \"$file\""
39366 + done
39367 +
39368 + if test -z "$run"; then
39369 + if test -n "$shlibpath_var"; then
39370 + # Export the shlibpath_var.
39371 + eval "export $shlibpath_var"
39372 + fi
39373 +
39374 + # Restore saved environment variables
39375 + if test "${save_LC_ALL+set}" = set; then
39376 + LC_ALL="$save_LC_ALL"; export LC_ALL
39377 + fi
39378 + if test "${save_LANG+set}" = set; then
39379 + LANG="$save_LANG"; export LANG
39380 + fi
39381 +
39382 + # Now prepare to actually exec the command.
39383 + exec_cmd="\$cmd$args"
39384 + else
39385 + # Display what would be done.
39386 + if test -n "$shlibpath_var"; then
39387 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
39388 + $echo "export $shlibpath_var"
39389 + fi
39390 + $echo "$cmd$args"
39391 + exit $EXIT_SUCCESS
39392 + fi
39393 + ;;
39394 +
39395 + # libtool clean and uninstall mode
39396 + clean | uninstall)
39397 + modename="$modename: $mode"
39398 + rm="$nonopt"
39399 + files=
39400 + rmforce=
39401 + exit_status=0
39402 +
39403 + # This variable tells wrapper scripts just to set variables rather
39404 + # than running their programs.
39405 + libtool_install_magic="$magic"
39406 +
39407 + for arg
39408 + do
39409 + case $arg in
39410 + -f) rm="$rm $arg"; rmforce=yes ;;
39411 + -*) rm="$rm $arg" ;;
39412 + *) files="$files $arg" ;;
39413 + esac
39414 + done
39415 +
39416 + if test -z "$rm"; then
39417 + $echo "$modename: you must specify an RM program" 1>&2
39418 + $echo "$help" 1>&2
39419 + exit $EXIT_FAILURE
39420 + fi
39421 +
39422 + rmdirs=
39423 +
39424 + origobjdir="$objdir"
39425 + for file in $files; do
39426 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39427 + if test "X$dir" = "X$file"; then
39428 + dir=.
39429 + objdir="$origobjdir"
39430 + else
39431 + objdir="$dir/$origobjdir"
39432 + fi
39433 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39434 + test "$mode" = uninstall && objdir="$dir"
39435 +
39436 + # Remember objdir for removal later, being careful to avoid duplicates
39437 + if test "$mode" = clean; then
39438 + case " $rmdirs " in
39439 + *" $objdir "*) ;;
39440 + *) rmdirs="$rmdirs $objdir" ;;
39441 + esac
39442 + fi
39443 +
39444 + # Don't error if the file doesn't exist and rm -f was used.
39445 + if (test -L "$file") >/dev/null 2>&1 \
39446 + || (test -h "$file") >/dev/null 2>&1 \
39447 + || test -f "$file"; then
39448 + :
39449 + elif test -d "$file"; then
39450 + exit_status=1
39451 + continue
39452 + elif test "$rmforce" = yes; then
39453 + continue
39454 + fi
39455 +
39456 + rmfiles="$file"
39457 +
39458 + case $name in
39459 + *.la)
39460 + # Possibly a libtool archive, so verify it.
39461 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39462 + . $dir/$name
39463 +
39464 + # Delete the libtool libraries and symlinks.
39465 + for n in $library_names; do
39466 + rmfiles="$rmfiles $objdir/$n"
39467 + done
39468 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
39469 +
39470 + case "$mode" in
39471 + clean)
39472 + case " $library_names " in
39473 + # " " in the beginning catches empty $dlname
39474 + *" $dlname "*) ;;
39475 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
39476 + esac
39477 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
39478 + ;;
39479 + uninstall)
39480 + if test -n "$library_names"; then
39481 + # Do each command in the postuninstall commands.
39482 + cmds=$postuninstall_cmds
39483 + save_ifs="$IFS"; IFS='~'
39484 + for cmd in $cmds; do
39485 + IFS="$save_ifs"
39486 + eval cmd=\"$cmd\"
39487 + $show "$cmd"
39488 + $run eval "$cmd"
39489 + if test "$?" -ne 0 && test "$rmforce" != yes; then
39490 + exit_status=1
39491 + fi
39492 + done
39493 + IFS="$save_ifs"
39494 + fi
39495 +
39496 + if test -n "$old_library"; then
39497 + # Do each command in the old_postuninstall commands.
39498 + cmds=$old_postuninstall_cmds
39499 + save_ifs="$IFS"; IFS='~'
39500 + for cmd in $cmds; do
39501 + IFS="$save_ifs"
39502 + eval cmd=\"$cmd\"
39503 + $show "$cmd"
39504 + $run eval "$cmd"
39505 + if test "$?" -ne 0 && test "$rmforce" != yes; then
39506 + exit_status=1
39507 + fi
39508 + done
39509 + IFS="$save_ifs"
39510 + fi
39511 + # FIXME: should reinstall the best remaining shared library.
39512 + ;;
39513 + esac
39514 + fi
39515 + ;;
39516 +
39517 + *.lo)
39518 + # Possibly a libtool object, so verify it.
39519 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39520 +
39521 + # Read the .lo file
39522 + . $dir/$name
39523 +
39524 + # Add PIC object to the list of files to remove.
39525 + if test -n "$pic_object" \
39526 + && test "$pic_object" != none; then
39527 + rmfiles="$rmfiles $dir/$pic_object"
39528 + fi
39529 +
39530 + # Add non-PIC object to the list of files to remove.
39531 + if test -n "$non_pic_object" \
39532 + && test "$non_pic_object" != none; then
39533 + rmfiles="$rmfiles $dir/$non_pic_object"
39534 + fi
39535 + fi
39536 + ;;
39537 +
39538 + *)
39539 + if test "$mode" = clean ; then
39540 + noexename=$name
39541 + case $file in
39542 + *.exe)
39543 + file=`$echo $file|${SED} 's,.exe$,,'`
39544 + noexename=`$echo $name|${SED} 's,.exe$,,'`
39545 + # $file with .exe has already been added to rmfiles,
39546 + # add $file without .exe
39547 + rmfiles="$rmfiles $file"
39548 + ;;
39549 + esac
39550 + # Do a test to see if this is a libtool program.
39551 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39552 + relink_command=
39553 + . $dir/$noexename
39554 +
39555 + # note $name still contains .exe if it was in $file originally
39556 + # as does the version of $file that was added into $rmfiles
39557 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
39558 + if test "$fast_install" = yes && test -n "$relink_command"; then
39559 + rmfiles="$rmfiles $objdir/lt-$name"
39560 + fi
39561 + if test "X$noexename" != "X$name" ; then
39562 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
39563 + fi
39564 + fi
39565 + fi
39566 + ;;
39567 + esac
39568 + $show "$rm $rmfiles"
39569 + $run $rm $rmfiles || exit_status=1
39570 + done
39571 + objdir="$origobjdir"
39572 +
39573 + # Try to remove the ${objdir}s in the directories where we deleted files
39574 + for dir in $rmdirs; do
39575 + if test -d "$dir"; then
39576 + $show "rmdir $dir"
39577 + $run rmdir $dir >/dev/null 2>&1
39578 + fi
39579 + done
39580 +
39581 + exit $exit_status
39582 + ;;
39583 +
39584 + "")
39585 + $echo "$modename: you must specify a MODE" 1>&2
39586 + $echo "$generic_help" 1>&2
39587 + exit $EXIT_FAILURE
39588 + ;;
39589 + esac
39590 +
39591 + if test -z "$exec_cmd"; then
39592 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
39593 + $echo "$generic_help" 1>&2
39594 + exit $EXIT_FAILURE
39595 + fi
39596 +fi # test -z "$show_help"
39597 +
39598 +if test -n "$exec_cmd"; then
39599 + eval exec $exec_cmd
39600 + exit $EXIT_FAILURE
39601 +fi
39602 +
39603 +# We need to display help for each of the modes.
39604 +case $mode in
39605 +"") $echo \
39606 +"Usage: $modename [OPTION]... [MODE-ARG]...
39607 +
39608 +Provide generalized library-building support services.
39609 +
39610 + --config show all configuration variables
39611 + --debug enable verbose shell tracing
39612 +-n, --dry-run display commands without modifying any files
39613 + --features display basic configuration information and exit
39614 + --finish same as \`--mode=finish'
39615 + --help display this help message and exit
39616 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
39617 + --quiet same as \`--silent'
39618 + --silent don't print informational messages
39619 + --tag=TAG use configuration variables from tag TAG
39620 + --version print version information
39621 +
39622 +MODE must be one of the following:
39623 +
39624 + clean remove files from the build directory
39625 + compile compile a source file into a libtool object
39626 + execute automatically set library path, then run a program
39627 + finish complete the installation of libtool libraries
39628 + install install libraries or executables
39629 + link create a library or an executable
39630 + uninstall remove libraries from an installed directory
39631 +
39632 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
39633 +a more detailed description of MODE.
39634 +
39635 +Report bugs to <bug-libtool@gnu.org>."
39636 + exit $EXIT_SUCCESS
39637 + ;;
39638 +
39639 +clean)
39640 + $echo \
39641 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
39642 +
39643 +Remove files from the build directory.
39644 +
39645 +RM is the name of the program to use to delete files associated with each FILE
39646 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
39647 +to RM.
39648 +
39649 +If FILE is a libtool library, object or program, all the files associated
39650 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
39651 + ;;
39652 +
39653 +compile)
39654 + $echo \
39655 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
39656 +
39657 +Compile a source file into a libtool library object.
39658 +
39659 +This mode accepts the following additional options:
39660 +
39661 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
39662 + -prefer-pic try to building PIC objects only
39663 + -prefer-non-pic try to building non-PIC objects only
39664 + -static always build a \`.o' file suitable for static linking
39665 +
39666 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
39667 +from the given SOURCEFILE.
39668 +
39669 +The output file name is determined by removing the directory component from
39670 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
39671 +library object suffix, \`.lo'."
39672 + ;;
39673 +
39674 +execute)
39675 + $echo \
39676 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
39677 +
39678 +Automatically set library path, then run a program.
39679 +
39680 +This mode accepts the following additional options:
39681 +
39682 + -dlopen FILE add the directory containing FILE to the library path
39683 +
39684 +This mode sets the library path environment variable according to \`-dlopen'
39685 +flags.
39686 +
39687 +If any of the ARGS are libtool executable wrappers, then they are translated
39688 +into their corresponding uninstalled binary, and any of their required library
39689 +directories are added to the library path.
39690 +
39691 +Then, COMMAND is executed, with ARGS as arguments."
39692 + ;;
39693 +
39694 +finish)
39695 + $echo \
39696 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
39697 +
39698 +Complete the installation of libtool libraries.
39699 +
39700 +Each LIBDIR is a directory that contains libtool libraries.
39701 +
39702 +The commands that this mode executes may require superuser privileges. Use
39703 +the \`--dry-run' option if you just want to see what would be executed."
39704 + ;;
39705 +
39706 +install)
39707 + $echo \
39708 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
39709 +
39710 +Install executables or libraries.
39711 +
39712 +INSTALL-COMMAND is the installation command. The first component should be
39713 +either the \`install' or \`cp' program.
39714 +
39715 +The rest of the components are interpreted as arguments to that command (only
39716 +BSD-compatible install options are recognized)."
39717 + ;;
39718 +
39719 +link)
39720 + $echo \
39721 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
39722 +
39723 +Link object files or libraries together to form another library, or to
39724 +create an executable program.
39725 +
39726 +LINK-COMMAND is a command using the C compiler that you would use to create
39727 +a program from several object files.
39728 +
39729 +The following components of LINK-COMMAND are treated specially:
39730 +
39731 + -all-static do not do any dynamic linking at all
39732 + -avoid-version do not add a version suffix if possible
39733 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
39734 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
39735 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
39736 + -export-symbols SYMFILE
39737 + try to export only the symbols listed in SYMFILE
39738 + -export-symbols-regex REGEX
39739 + try to export only the symbols matching REGEX
39740 + -LLIBDIR search LIBDIR for required installed libraries
39741 + -lNAME OUTPUT-FILE requires the installed library libNAME
39742 + -module build a library that can dlopened
39743 + -no-fast-install disable the fast-install mode
39744 + -no-install link a not-installable executable
39745 + -no-undefined declare that a library does not refer to external symbols
39746 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
39747 + -objectlist FILE Use a list of object files found in FILE to specify objects
39748 + -precious-files-regex REGEX
39749 + don't remove output files matching REGEX
39750 + -release RELEASE specify package release information
39751 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
39752 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
39753 + -static do not do any dynamic linking of libtool libraries
39754 + -version-info CURRENT[:REVISION[:AGE]]
39755 + specify library version info [each variable defaults to 0]
39756 +
39757 +All other options (arguments beginning with \`-') are ignored.
39758 +
39759 +Every other argument is treated as a filename. Files ending in \`.la' are
39760 +treated as uninstalled libtool libraries, other files are standard or library
39761 +object files.
39762 +
39763 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
39764 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
39765 +required, except when creating a convenience library.
39766 +
39767 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
39768 +using \`ar' and \`ranlib', or on Windows using \`lib'.
39769 +
39770 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
39771 +is created, otherwise an executable program is created."
39772 + ;;
39773 +
39774 +uninstall)
39775 + $echo \
39776 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
39777 +
39778 +Remove libraries from an installation directory.
39779 +
39780 +RM is the name of the program to use to delete files associated with each FILE
39781 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
39782 +to RM.
39783 +
39784 +If FILE is a libtool library, all the files associated with it are deleted.
39785 +Otherwise, only FILE itself is deleted using RM."
39786 + ;;
39787 +
39788 +*)
39789 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
39790 + $echo "$help" 1>&2
39791 + exit $EXIT_FAILURE
39792 + ;;
39793 +esac
39794 +
39795 +$echo
39796 +$echo "Try \`$modename --help' for more information about other modes."
39797 +
39798 +exit $?
39799 +
39800 +# The TAGs below are defined such that we never get into a situation
39801 +# in which we disable both kinds of libraries. Given conflicting
39802 +# choices, we go for a static library, that is the most portable,
39803 +# since we can't tell whether shared libraries were disabled because
39804 +# the user asked for that or because the platform doesn't support
39805 +# them. This is particularly important on AIX, because we don't
39806 +# support having both static and shared libraries enabled at the same
39807 +# time on that platform, so we default to a shared-only configuration.
39808 +# If a disable-shared tag is given, we'll fallback to a static-only
39809 +# configuration. But we'll never go from static-only to shared-only.
39810 +
39811 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
39812 +disable_libs=shared
39813 +# ### END LIBTOOL TAG CONFIG: disable-shared
39814 +
39815 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
39816 +disable_libs=static
39817 +# ### END LIBTOOL TAG CONFIG: disable-static
39818 +
39819 +# Local Variables:
39820 +# mode:shell-script
39821 +# sh-indentation:2
39822 +# End:
39823 diff -urN lua-5.1.4/Makefile lua-5.1.4-autotoolize/Makefile
39824 --- lua-5.1.4/Makefile 2008-08-12 02:40:48.000000000 +0200
39825 +++ lua-5.1.4-autotoolize/Makefile 2008-09-03 13:24:40.000000000 +0200
39826 @@ -1,128 +0,0 @@
39827 -# makefile for installing Lua
39828 -# see INSTALL for installation instructions
39829 -# see src/Makefile and src/luaconf.h for further customization
39830 -
39831 -# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
39832 -
39833 -# Your platform. See PLATS for possible values.
39834 -PLAT= none
39835 -
39836 -# Where to install. The installation starts in the src and doc directories,
39837 -# so take care if INSTALL_TOP is not an absolute path.
39838 -INSTALL_TOP= /usr/local
39839 -INSTALL_BIN= $(INSTALL_TOP)/bin
39840 -INSTALL_INC= $(INSTALL_TOP)/include
39841 -INSTALL_LIB= $(INSTALL_TOP)/lib
39842 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
39843 -#
39844 -# You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
39845 -# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
39846 -INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
39847 -INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
39848 -
39849 -# How to install. If your install program does not support "-p", then you
39850 -# may have to run ranlib on the installed liblua.a (do "make ranlib").
39851 -INSTALL= install -p
39852 -INSTALL_EXEC= $(INSTALL) -m 0755
39853 -INSTALL_DATA= $(INSTALL) -m 0644
39854 -#
39855 -# If you don't have install you can use cp instead.
39856 -# INSTALL= cp -p
39857 -# INSTALL_EXEC= $(INSTALL)
39858 -# INSTALL_DATA= $(INSTALL)
39859 -
39860 -# Utilities.
39861 -MKDIR= mkdir -p
39862 -RANLIB= ranlib
39863 -
39864 -# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
39865 -
39866 -# Convenience platforms targets.
39867 -PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
39868 -
39869 -# What to install.
39870 -TO_BIN= lua luac
39871 -TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
39872 -TO_LIB= liblua.a
39873 -TO_MAN= lua.1 luac.1
39874 -
39875 -# Lua version and release.
39876 -V= 5.1
39877 -R= 5.1.4
39878 -
39879 -all: $(PLAT)
39880 -
39881 -$(PLATS) clean:
39882 - cd src && $(MAKE) $@
39883 -
39884 -test: dummy
39885 - src/lua test/hello.lua
39886 -
39887 -install: dummy
39888 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
39889 - cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
39890 - cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
39891 - cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
39892 - cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
39893 -
39894 -ranlib:
39895 - cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)
39896 -
39897 -local:
39898 - $(MAKE) install INSTALL_TOP=..
39899 -
39900 -none:
39901 - @echo "Please do"
39902 - @echo " make PLATFORM"
39903 - @echo "where PLATFORM is one of these:"
39904 - @echo " $(PLATS)"
39905 - @echo "See INSTALL for complete instructions."
39906 -
39907 -# make may get confused with test/ and INSTALL in a case-insensitive OS
39908 -dummy:
39909 -
39910 -# echo config parameters
39911 -echo:
39912 - @echo ""
39913 - @echo "These are the parameters currently set in src/Makefile to build Lua $R:"
39914 - @echo ""
39915 - @cd src && $(MAKE) -s echo
39916 - @echo ""
39917 - @echo "These are the parameters currently set in Makefile to install Lua $R:"
39918 - @echo ""
39919 - @echo "PLAT = $(PLAT)"
39920 - @echo "INSTALL_TOP = $(INSTALL_TOP)"
39921 - @echo "INSTALL_BIN = $(INSTALL_BIN)"
39922 - @echo "INSTALL_INC = $(INSTALL_INC)"
39923 - @echo "INSTALL_LIB = $(INSTALL_LIB)"
39924 - @echo "INSTALL_MAN = $(INSTALL_MAN)"
39925 - @echo "INSTALL_LMOD = $(INSTALL_LMOD)"
39926 - @echo "INSTALL_CMOD = $(INSTALL_CMOD)"
39927 - @echo "INSTALL_EXEC = $(INSTALL_EXEC)"
39928 - @echo "INSTALL_DATA = $(INSTALL_DATA)"
39929 - @echo ""
39930 - @echo "See also src/luaconf.h ."
39931 - @echo ""
39932 -
39933 -# echo private config parameters
39934 -pecho:
39935 - @echo "V = $(V)"
39936 - @echo "R = $(R)"
39937 - @echo "TO_BIN = $(TO_BIN)"
39938 - @echo "TO_INC = $(TO_INC)"
39939 - @echo "TO_LIB = $(TO_LIB)"
39940 - @echo "TO_MAN = $(TO_MAN)"
39941 -
39942 -# echo config parameters as Lua code
39943 -# uncomment the last sed expression if you want nil instead of empty strings
39944 -lecho:
39945 - @echo "-- installation parameters for Lua $R"
39946 - @echo "VERSION = '$V'"
39947 - @echo "RELEASE = '$R'"
39948 - @$(MAKE) echo | grep = | sed -e 's/= /= "/' -e 's/$$/"/' #-e 's/""/nil/'
39949 - @echo "-- EOF"
39950 -
39951 -# list targets that do not create files (but not all makes understand .PHONY)
39952 -.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
39953 -
39954 -# (end of Makefile)
39955 diff -urN lua-5.1.4/Makefile.am lua-5.1.4-autotoolize/Makefile.am
39956 --- lua-5.1.4/Makefile.am 1970-01-01 01:00:00.000000000 +0100
39957 +++ lua-5.1.4-autotoolize/Makefile.am 2008-09-03 13:18:37.000000000 +0200
39958 @@ -0,0 +1,3 @@
39959 +SUBDIRS = src doc etc test
39960 +
39961 +EXTRA_DIST = autogen.sh COPYRIGHT HISTORY INSTALL MANIFEST README
39962 diff -urN lua-5.1.4/Makefile.in lua-5.1.4-autotoolize/Makefile.in
39963 --- lua-5.1.4/Makefile.in 1970-01-01 01:00:00.000000000 +0100
39964 +++ lua-5.1.4-autotoolize/Makefile.in 2008-09-03 13:18:37.000000000 +0200
39965 @@ -0,0 +1,614 @@
39966 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39967 +# @configure_input@
39968 +
39969 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39970 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39971 +# This Makefile.in is free software; the Free Software Foundation
39972 +# gives unlimited permission to copy and/or distribute it,
39973 +# with or without modifications, as long as this notice is preserved.
39974 +
39975 +# This program is distributed in the hope that it will be useful,
39976 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
39977 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39978 +# PARTICULAR PURPOSE.
39979 +
39980 +@SET_MAKE@
39981 +srcdir = @srcdir@
39982 +top_srcdir = @top_srcdir@
39983 +VPATH = @srcdir@
39984 +pkgdatadir = $(datadir)/@PACKAGE@
39985 +pkglibdir = $(libdir)/@PACKAGE@
39986 +pkgincludedir = $(includedir)/@PACKAGE@
39987 +top_builddir = .
39988 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39989 +INSTALL = @INSTALL@
39990 +install_sh_DATA = $(install_sh) -c -m 644
39991 +install_sh_PROGRAM = $(install_sh) -c
39992 +install_sh_SCRIPT = $(install_sh) -c
39993 +INSTALL_HEADER = $(INSTALL_DATA)
39994 +transform = $(program_transform_name)
39995 +NORMAL_INSTALL = :
39996 +PRE_INSTALL = :
39997 +POST_INSTALL = :
39998 +NORMAL_UNINSTALL = :
39999 +PRE_UNINSTALL = :
40000 +POST_UNINSTALL = :
40001 +build_triplet = @build@
40002 +host_triplet = @host@
40003 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
40004 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
40005 + $(top_srcdir)/configure INSTALL config.guess config.sub \
40006 + depcomp install-sh ltmain.sh missing
40007 +subdir = .
40008 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40009 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
40010 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40011 + $(ACLOCAL_M4)
40012 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
40013 + configure.lineno configure.status.lineno
40014 +mkinstalldirs = $(install_sh) -d
40015 +CONFIG_HEADER = config.h
40016 +CONFIG_CLEAN_FILES =
40017 +SOURCES =
40018 +DIST_SOURCES =
40019 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
40020 + html-recursive info-recursive install-data-recursive \
40021 + install-exec-recursive install-info-recursive \
40022 + install-recursive installcheck-recursive installdirs-recursive \
40023 + pdf-recursive ps-recursive uninstall-info-recursive \
40024 + uninstall-recursive
40025 +ETAGS = etags
40026 +CTAGS = ctags
40027 +DIST_SUBDIRS = $(SUBDIRS)
40028 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40029 +distdir = $(PACKAGE)-$(VERSION)
40030 +top_distdir = $(distdir)
40031 +am__remove_distdir = \
40032 + { test ! -d $(distdir) \
40033 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
40034 + && rm -fr $(distdir); }; }
40035 +DIST_ARCHIVES = $(distdir).tar.gz
40036 +GZIP_ENV = --best
40037 +distuninstallcheck_listfiles = find . -type f -print
40038 +distcleancheck_listfiles = find . -type f -print
40039 +ACLOCAL = @ACLOCAL@
40040 +AMDEP_FALSE = @AMDEP_FALSE@
40041 +AMDEP_TRUE = @AMDEP_TRUE@
40042 +AMTAR = @AMTAR@
40043 +AR = @AR@
40044 +AUTOCONF = @AUTOCONF@
40045 +AUTOHEADER = @AUTOHEADER@
40046 +AUTOMAKE = @AUTOMAKE@
40047 +AWK = @AWK@
40048 +CC = @CC@
40049 +CCDEPMODE = @CCDEPMODE@
40050 +CFLAGS = @CFLAGS@
40051 +CPP = @CPP@
40052 +CPPFLAGS = @CPPFLAGS@
40053 +CXX = @CXX@
40054 +CXXCPP = @CXXCPP@
40055 +CXXDEPMODE = @CXXDEPMODE@
40056 +CXXFLAGS = @CXXFLAGS@
40057 +CYGPATH_W = @CYGPATH_W@
40058 +DEFS = @DEFS@
40059 +DEPDIR = @DEPDIR@
40060 +ECHO = @ECHO@
40061 +ECHO_C = @ECHO_C@
40062 +ECHO_N = @ECHO_N@
40063 +ECHO_T = @ECHO_T@
40064 +EGREP = @EGREP@
40065 +EXEEXT = @EXEEXT@
40066 +F77 = @F77@
40067 +FFLAGS = @FFLAGS@
40068 +INSTALL_DATA = @INSTALL_DATA@
40069 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40070 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40071 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40072 +LDFLAGS = @LDFLAGS@
40073 +LIBOBJS = @LIBOBJS@
40074 +LIBS = @LIBS@
40075 +LIBTOOL = @LIBTOOL@
40076 +LN_S = @LN_S@
40077 +LTLIBOBJS = @LTLIBOBJS@
40078 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
40079 +LUA_DL_DEFS = @LUA_DL_DEFS@
40080 +LUA_LIBS = @LUA_LIBS@
40081 +MAKEINFO = @MAKEINFO@
40082 +OBJEXT = @OBJEXT@
40083 +PACKAGE = @PACKAGE@
40084 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40085 +PACKAGE_NAME = @PACKAGE_NAME@
40086 +PACKAGE_STRING = @PACKAGE_STRING@
40087 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40088 +PACKAGE_VERSION = @PACKAGE_VERSION@
40089 +PATH_SEPARATOR = @PATH_SEPARATOR@
40090 +POSIX_DEFS = @POSIX_DEFS@
40091 +RANLIB = @RANLIB@
40092 +READLINE_DEFS = @READLINE_DEFS@
40093 +SET_MAKE = @SET_MAKE@
40094 +SHELL = @SHELL@
40095 +STRIP = @STRIP@
40096 +VERSION = @VERSION@
40097 +ac_ct_AR = @ac_ct_AR@
40098 +ac_ct_CC = @ac_ct_CC@
40099 +ac_ct_CXX = @ac_ct_CXX@
40100 +ac_ct_F77 = @ac_ct_F77@
40101 +ac_ct_RANLIB = @ac_ct_RANLIB@
40102 +ac_ct_STRIP = @ac_ct_STRIP@
40103 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40104 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40105 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40106 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40107 +am__include = @am__include@
40108 +am__leading_dot = @am__leading_dot@
40109 +am__quote = @am__quote@
40110 +am__tar = @am__tar@
40111 +am__untar = @am__untar@
40112 +bindir = @bindir@
40113 +build = @build@
40114 +build_alias = @build_alias@
40115 +build_cpu = @build_cpu@
40116 +build_os = @build_os@
40117 +build_vendor = @build_vendor@
40118 +datadir = @datadir@
40119 +exec_prefix = @exec_prefix@
40120 +host = @host@
40121 +host_alias = @host_alias@
40122 +host_cpu = @host_cpu@
40123 +host_os = @host_os@
40124 +host_vendor = @host_vendor@
40125 +includedir = @includedir@
40126 +infodir = @infodir@
40127 +install_sh = @install_sh@
40128 +libdir = @libdir@
40129 +libexecdir = @libexecdir@
40130 +localstatedir = @localstatedir@
40131 +mandir = @mandir@
40132 +mkdir_p = @mkdir_p@
40133 +oldincludedir = @oldincludedir@
40134 +prefix = @prefix@
40135 +program_transform_name = @program_transform_name@
40136 +sbindir = @sbindir@
40137 +sharedstatedir = @sharedstatedir@
40138 +sysconfdir = @sysconfdir@
40139 +target_alias = @target_alias@
40140 +SUBDIRS = src doc etc test
40141 +EXTRA_DIST = autogen.sh COPYRIGHT HISTORY INSTALL MANIFEST README
40142 +all: config.h
40143 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
40144 +
40145 +.SUFFIXES:
40146 +am--refresh:
40147 + @:
40148 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40149 + @for dep in $?; do \
40150 + case '$(am__configure_deps)' in \
40151 + *$$dep*) \
40152 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
40153 + cd $(srcdir) && $(AUTOMAKE) --foreign \
40154 + && exit 0; \
40155 + exit 1;; \
40156 + esac; \
40157 + done; \
40158 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
40159 + cd $(top_srcdir) && \
40160 + $(AUTOMAKE) --foreign Makefile
40161 +.PRECIOUS: Makefile
40162 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40163 + @case '$?' in \
40164 + *config.status*) \
40165 + echo ' $(SHELL) ./config.status'; \
40166 + $(SHELL) ./config.status;; \
40167 + *) \
40168 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
40169 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
40170 + esac;
40171 +
40172 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40173 + $(SHELL) ./config.status --recheck
40174 +
40175 +$(top_srcdir)/configure: $(am__configure_deps)
40176 + cd $(srcdir) && $(AUTOCONF)
40177 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40178 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
40179 +
40180 +config.h: stamp-h1
40181 + @if test ! -f $@; then \
40182 + rm -f stamp-h1; \
40183 + $(MAKE) stamp-h1; \
40184 + else :; fi
40185 +
40186 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
40187 + @rm -f stamp-h1
40188 + cd $(top_builddir) && $(SHELL) ./config.status config.h
40189 +$(srcdir)/config.h.in: $(am__configure_deps)
40190 + cd $(top_srcdir) && $(AUTOHEADER)
40191 + rm -f stamp-h1
40192 + touch $@
40193 +
40194 +distclean-hdr:
40195 + -rm -f config.h stamp-h1
40196 +
40197 +mostlyclean-libtool:
40198 + -rm -f *.lo
40199 +
40200 +clean-libtool:
40201 + -rm -rf .libs _libs
40202 +
40203 +distclean-libtool:
40204 + -rm -f libtool
40205 +uninstall-info-am:
40206 +
40207 +# This directory's subdirectories are mostly independent; you can cd
40208 +# into them and run `make' without going through this Makefile.
40209 +# To change the values of `make' variables: instead of editing Makefiles,
40210 +# (1) if the variable is set in `config.status', edit `config.status'
40211 +# (which will cause the Makefiles to be regenerated when you run `make');
40212 +# (2) otherwise, pass the desired values on the `make' command line.
40213 +$(RECURSIVE_TARGETS):
40214 + @failcom='exit 1'; \
40215 + for f in x $$MAKEFLAGS; do \
40216 + case $$f in \
40217 + *=* | --[!k]*);; \
40218 + *k*) failcom='fail=yes';; \
40219 + esac; \
40220 + done; \
40221 + dot_seen=no; \
40222 + target=`echo $@ | sed s/-recursive//`; \
40223 + list='$(SUBDIRS)'; for subdir in $$list; do \
40224 + echo "Making $$target in $$subdir"; \
40225 + if test "$$subdir" = "."; then \
40226 + dot_seen=yes; \
40227 + local_target="$$target-am"; \
40228 + else \
40229 + local_target="$$target"; \
40230 + fi; \
40231 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
40232 + || eval $$failcom; \
40233 + done; \
40234 + if test "$$dot_seen" = "no"; then \
40235 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
40236 + fi; test -z "$$fail"
40237 +
40238 +mostlyclean-recursive clean-recursive distclean-recursive \
40239 +maintainer-clean-recursive:
40240 + @failcom='exit 1'; \
40241 + for f in x $$MAKEFLAGS; do \
40242 + case $$f in \
40243 + *=* | --[!k]*);; \
40244 + *k*) failcom='fail=yes';; \
40245 + esac; \
40246 + done; \
40247 + dot_seen=no; \
40248 + case "$@" in \
40249 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
40250 + *) list='$(SUBDIRS)' ;; \
40251 + esac; \
40252 + rev=''; for subdir in $$list; do \
40253 + if test "$$subdir" = "."; then :; else \
40254 + rev="$$subdir $$rev"; \
40255 + fi; \
40256 + done; \
40257 + rev="$$rev ."; \
40258 + target=`echo $@ | sed s/-recursive//`; \
40259 + for subdir in $$rev; do \
40260 + echo "Making $$target in $$subdir"; \
40261 + if test "$$subdir" = "."; then \
40262 + local_target="$$target-am"; \
40263 + else \
40264 + local_target="$$target"; \
40265 + fi; \
40266 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
40267 + || eval $$failcom; \
40268 + done && test -z "$$fail"
40269 +tags-recursive:
40270 + list='$(SUBDIRS)'; for subdir in $$list; do \
40271 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
40272 + done
40273 +ctags-recursive:
40274 + list='$(SUBDIRS)'; for subdir in $$list; do \
40275 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
40276 + done
40277 +
40278 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40279 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40280 + unique=`for i in $$list; do \
40281 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40282 + done | \
40283 + $(AWK) ' { files[$$0] = 1; } \
40284 + END { for (i in files) print i; }'`; \
40285 + mkid -fID $$unique
40286 +tags: TAGS
40287 +
40288 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
40289 + $(TAGS_FILES) $(LISP)
40290 + tags=; \
40291 + here=`pwd`; \
40292 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
40293 + include_option=--etags-include; \
40294 + empty_fix=.; \
40295 + else \
40296 + include_option=--include; \
40297 + empty_fix=; \
40298 + fi; \
40299 + list='$(SUBDIRS)'; for subdir in $$list; do \
40300 + if test "$$subdir" = .; then :; else \
40301 + test ! -f $$subdir/TAGS || \
40302 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
40303 + fi; \
40304 + done; \
40305 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
40306 + unique=`for i in $$list; do \
40307 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40308 + done | \
40309 + $(AWK) ' { files[$$0] = 1; } \
40310 + END { for (i in files) print i; }'`; \
40311 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40312 + test -n "$$unique" || unique=$$empty_fix; \
40313 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40314 + $$tags $$unique; \
40315 + fi
40316 +ctags: CTAGS
40317 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
40318 + $(TAGS_FILES) $(LISP)
40319 + tags=; \
40320 + here=`pwd`; \
40321 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
40322 + unique=`for i in $$list; do \
40323 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40324 + done | \
40325 + $(AWK) ' { files[$$0] = 1; } \
40326 + END { for (i in files) print i; }'`; \
40327 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40328 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40329 + $$tags $$unique
40330 +
40331 +GTAGS:
40332 + here=`$(am__cd) $(top_builddir) && pwd` \
40333 + && cd $(top_srcdir) \
40334 + && gtags -i $(GTAGS_ARGS) $$here
40335 +
40336 +distclean-tags:
40337 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40338 +
40339 +distdir: $(DISTFILES)
40340 + $(am__remove_distdir)
40341 + mkdir $(distdir)
40342 + $(mkdir_p) $(distdir)/etc $(distdir)/src
40343 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40344 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
40345 + list='$(DISTFILES)'; for file in $$list; do \
40346 + case $$file in \
40347 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
40348 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
40349 + esac; \
40350 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
40351 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
40352 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
40353 + dir="/$$dir"; \
40354 + $(mkdir_p) "$(distdir)$$dir"; \
40355 + else \
40356 + dir=''; \
40357 + fi; \
40358 + if test -d $$d/$$file; then \
40359 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
40360 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
40361 + fi; \
40362 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
40363 + else \
40364 + test -f $(distdir)/$$file \
40365 + || cp -p $$d/$$file $(distdir)/$$file \
40366 + || exit 1; \
40367 + fi; \
40368 + done
40369 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
40370 + if test "$$subdir" = .; then :; else \
40371 + test -d "$(distdir)/$$subdir" \
40372 + || $(mkdir_p) "$(distdir)/$$subdir" \
40373 + || exit 1; \
40374 + distdir=`$(am__cd) $(distdir) && pwd`; \
40375 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
40376 + (cd $$subdir && \
40377 + $(MAKE) $(AM_MAKEFLAGS) \
40378 + top_distdir="$$top_distdir" \
40379 + distdir="$$distdir/$$subdir" \
40380 + distdir) \
40381 + || exit 1; \
40382 + fi; \
40383 + done
40384 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
40385 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
40386 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
40387 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
40388 + || chmod -R a+r $(distdir)
40389 +dist-gzip: distdir
40390 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
40391 + $(am__remove_distdir)
40392 +
40393 +dist-bzip2: distdir
40394 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
40395 + $(am__remove_distdir)
40396 +
40397 +dist-tarZ: distdir
40398 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
40399 + $(am__remove_distdir)
40400 +
40401 +dist-shar: distdir
40402 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
40403 + $(am__remove_distdir)
40404 +
40405 +dist-zip: distdir
40406 + -rm -f $(distdir).zip
40407 + zip -rq $(distdir).zip $(distdir)
40408 + $(am__remove_distdir)
40409 +
40410 +dist dist-all: distdir
40411 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
40412 + $(am__remove_distdir)
40413 +
40414 +# This target untars the dist file and tries a VPATH configuration. Then
40415 +# it guarantees that the distribution is self-contained by making another
40416 +# tarfile.
40417 +distcheck: dist
40418 + case '$(DIST_ARCHIVES)' in \
40419 + *.tar.gz*) \
40420 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
40421 + *.tar.bz2*) \
40422 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
40423 + *.tar.Z*) \
40424 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
40425 + *.shar.gz*) \
40426 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
40427 + *.zip*) \
40428 + unzip $(distdir).zip ;;\
40429 + esac
40430 + chmod -R a-w $(distdir); chmod a+w $(distdir)
40431 + mkdir $(distdir)/_build
40432 + mkdir $(distdir)/_inst
40433 + chmod a-w $(distdir)
40434 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
40435 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
40436 + && cd $(distdir)/_build \
40437 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
40438 + $(DISTCHECK_CONFIGURE_FLAGS) \
40439 + && $(MAKE) $(AM_MAKEFLAGS) \
40440 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
40441 + && $(MAKE) $(AM_MAKEFLAGS) check \
40442 + && $(MAKE) $(AM_MAKEFLAGS) install \
40443 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
40444 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
40445 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
40446 + distuninstallcheck \
40447 + && chmod -R a-w "$$dc_install_base" \
40448 + && ({ \
40449 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
40450 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
40451 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
40452 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
40453 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
40454 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
40455 + && rm -rf "$$dc_destdir" \
40456 + && $(MAKE) $(AM_MAKEFLAGS) dist \
40457 + && rm -rf $(DIST_ARCHIVES) \
40458 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
40459 + $(am__remove_distdir)
40460 + @(echo "$(distdir) archives ready for distribution: "; \
40461 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
40462 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
40463 +distuninstallcheck:
40464 + @cd $(distuninstallcheck_dir) \
40465 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
40466 + || { echo "ERROR: files left after uninstall:" ; \
40467 + if test -n "$(DESTDIR)"; then \
40468 + echo " (check DESTDIR support)"; \
40469 + fi ; \
40470 + $(distuninstallcheck_listfiles) ; \
40471 + exit 1; } >&2
40472 +distcleancheck: distclean
40473 + @if test '$(srcdir)' = . ; then \
40474 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
40475 + exit 1 ; \
40476 + fi
40477 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
40478 + || { echo "ERROR: files left in build directory after distclean:" ; \
40479 + $(distcleancheck_listfiles) ; \
40480 + exit 1; } >&2
40481 +check-am: all-am
40482 +check: check-recursive
40483 +all-am: Makefile config.h
40484 +installdirs: installdirs-recursive
40485 +installdirs-am:
40486 +install: install-recursive
40487 +install-exec: install-exec-recursive
40488 +install-data: install-data-recursive
40489 +uninstall: uninstall-recursive
40490 +
40491 +install-am: all-am
40492 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
40493 +
40494 +installcheck: installcheck-recursive
40495 +install-strip:
40496 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
40497 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
40498 + `test -z '$(STRIP)' || \
40499 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
40500 +mostlyclean-generic:
40501 +
40502 +clean-generic:
40503 +
40504 +distclean-generic:
40505 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
40506 +
40507 +maintainer-clean-generic:
40508 + @echo "This command is intended for maintainers to use"
40509 + @echo "it deletes files that may require special tools to rebuild."
40510 +clean: clean-recursive
40511 +
40512 +clean-am: clean-generic clean-libtool mostlyclean-am
40513 +
40514 +distclean: distclean-recursive
40515 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
40516 + -rm -f Makefile
40517 +distclean-am: clean-am distclean-generic distclean-hdr \
40518 + distclean-libtool distclean-tags
40519 +
40520 +dvi: dvi-recursive
40521 +
40522 +dvi-am:
40523 +
40524 +html: html-recursive
40525 +
40526 +info: info-recursive
40527 +
40528 +info-am:
40529 +
40530 +install-data-am:
40531 +
40532 +install-exec-am:
40533 +
40534 +install-info: install-info-recursive
40535 +
40536 +install-man:
40537 +
40538 +installcheck-am:
40539 +
40540 +maintainer-clean: maintainer-clean-recursive
40541 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
40542 + -rm -rf $(top_srcdir)/autom4te.cache
40543 + -rm -f Makefile
40544 +maintainer-clean-am: distclean-am maintainer-clean-generic
40545 +
40546 +mostlyclean: mostlyclean-recursive
40547 +
40548 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
40549 +
40550 +pdf: pdf-recursive
40551 +
40552 +pdf-am:
40553 +
40554 +ps: ps-recursive
40555 +
40556 +ps-am:
40557 +
40558 +uninstall-am: uninstall-info-am
40559 +
40560 +uninstall-info: uninstall-info-recursive
40561 +
40562 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
40563 + check-am clean clean-generic clean-libtool clean-recursive \
40564 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
40565 + dist-shar dist-tarZ dist-zip distcheck distclean \
40566 + distclean-generic distclean-hdr distclean-libtool \
40567 + distclean-recursive distclean-tags distcleancheck distdir \
40568 + distuninstallcheck dvi dvi-am html html-am info info-am \
40569 + install install-am install-data install-data-am install-exec \
40570 + install-exec-am install-info install-info-am install-man \
40571 + install-strip installcheck installcheck-am installdirs \
40572 + installdirs-am maintainer-clean maintainer-clean-generic \
40573 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
40574 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
40575 + tags tags-recursive uninstall uninstall-am uninstall-info-am
40576 +
40577 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
40578 +# Otherwise a system limit (for SysV at least) may be exceeded.
40579 +.NOEXPORT:
40580 diff -urN lua-5.1.4/missing lua-5.1.4-autotoolize/missing
40581 --- lua-5.1.4/missing 1970-01-01 01:00:00.000000000 +0100
40582 +++ lua-5.1.4-autotoolize/missing 2008-09-03 13:18:32.000000000 +0200
40583 @@ -0,0 +1,360 @@
40584 +#! /bin/sh
40585 +# Common stub for a few missing GNU programs while installing.
40586 +
40587 +scriptversion=2005-06-08.21
40588 +
40589 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
40590 +# Free Software Foundation, Inc.
40591 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
40592 +
40593 +# This program is free software; you can redistribute it and/or modify
40594 +# it under the terms of the GNU General Public License as published by
40595 +# the Free Software Foundation; either version 2, or (at your option)
40596 +# any later version.
40597 +
40598 +# This program is distributed in the hope that it will be useful,
40599 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
40600 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40601 +# GNU General Public License for more details.
40602 +
40603 +# You should have received a copy of the GNU General Public License
40604 +# along with this program; if not, write to the Free Software
40605 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
40606 +# 02110-1301, USA.
40607 +
40608 +# As a special exception to the GNU General Public License, if you
40609 +# distribute this file as part of a program that contains a
40610 +# configuration script generated by Autoconf, you may include it under
40611 +# the same distribution terms that you use for the rest of that program.
40612 +
40613 +if test $# -eq 0; then
40614 + echo 1>&2 "Try \`$0 --help' for more information"
40615 + exit 1
40616 +fi
40617 +
40618 +run=:
40619 +
40620 +# In the cases where this matters, `missing' is being run in the
40621 +# srcdir already.
40622 +if test -f configure.ac; then
40623 + configure_ac=configure.ac
40624 +else
40625 + configure_ac=configure.in
40626 +fi
40627 +
40628 +msg="missing on your system"
40629 +
40630 +case "$1" in
40631 +--run)
40632 + # Try to run requested program, and just exit if it succeeds.
40633 + run=
40634 + shift
40635 + "$@" && exit 0
40636 + # Exit code 63 means version mismatch. This often happens
40637 + # when the user try to use an ancient version of a tool on
40638 + # a file that requires a minimum version. In this case we
40639 + # we should proceed has if the program had been absent, or
40640 + # if --run hadn't been passed.
40641 + if test $? = 63; then
40642 + run=:
40643 + msg="probably too old"
40644 + fi
40645 + ;;
40646 +
40647 + -h|--h|--he|--hel|--help)
40648 + echo "\
40649 +$0 [OPTION]... PROGRAM [ARGUMENT]...
40650 +
40651 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
40652 +error status if there is no known handling for PROGRAM.
40653 +
40654 +Options:
40655 + -h, --help display this help and exit
40656 + -v, --version output version information and exit
40657 + --run try to run the given command, and emulate it if it fails
40658 +
40659 +Supported PROGRAM values:
40660 + aclocal touch file \`aclocal.m4'
40661 + autoconf touch file \`configure'
40662 + autoheader touch file \`config.h.in'
40663 + automake touch all \`Makefile.in' files
40664 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
40665 + flex create \`lex.yy.c', if possible, from existing .c
40666 + help2man touch the output file
40667 + lex create \`lex.yy.c', if possible, from existing .c
40668 + makeinfo touch the output file
40669 + tar try tar, gnutar, gtar, then tar without non-portable flags
40670 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
40671 +
40672 +Send bug reports to <bug-automake@gnu.org>."
40673 + exit $?
40674 + ;;
40675 +
40676 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
40677 + echo "missing $scriptversion (GNU Automake)"
40678 + exit $?
40679 + ;;
40680 +
40681 + -*)
40682 + echo 1>&2 "$0: Unknown \`$1' option"
40683 + echo 1>&2 "Try \`$0 --help' for more information"
40684 + exit 1
40685 + ;;
40686 +
40687 +esac
40688 +
40689 +# Now exit if we have it, but it failed. Also exit now if we
40690 +# don't have it and --version was passed (most likely to detect
40691 +# the program).
40692 +case "$1" in
40693 + lex|yacc)
40694 + # Not GNU programs, they don't have --version.
40695 + ;;
40696 +
40697 + tar)
40698 + if test -n "$run"; then
40699 + echo 1>&2 "ERROR: \`tar' requires --run"
40700 + exit 1
40701 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
40702 + exit 1
40703 + fi
40704 + ;;
40705 +
40706 + *)
40707 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
40708 + # We have it, but it failed.
40709 + exit 1
40710 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
40711 + # Could not run --version or --help. This is probably someone
40712 + # running `$TOOL --version' or `$TOOL --help' to check whether
40713 + # $TOOL exists and not knowing $TOOL uses missing.
40714 + exit 1
40715 + fi
40716 + ;;
40717 +esac
40718 +
40719 +# If it does not exist, or fails to run (possibly an outdated version),
40720 +# try to emulate it.
40721 +case "$1" in
40722 + aclocal*)
40723 + echo 1>&2 "\
40724 +WARNING: \`$1' is $msg. You should only need it if
40725 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
40726 + to install the \`Automake' and \`Perl' packages. Grab them from
40727 + any GNU archive site."
40728 + touch aclocal.m4
40729 + ;;
40730 +
40731 + autoconf)
40732 + echo 1>&2 "\
40733 +WARNING: \`$1' is $msg. You should only need it if
40734 + you modified \`${configure_ac}'. You might want to install the
40735 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
40736 + archive site."
40737 + touch configure
40738 + ;;
40739 +
40740 + autoheader)
40741 + echo 1>&2 "\
40742 +WARNING: \`$1' is $msg. You should only need it if
40743 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
40744 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
40745 + from any GNU archive site."
40746 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
40747 + test -z "$files" && files="config.h"
40748 + touch_files=
40749 + for f in $files; do
40750 + case "$f" in
40751 + *:*) touch_files="$touch_files "`echo "$f" |
40752 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
40753 + *) touch_files="$touch_files $f.in";;
40754 + esac
40755 + done
40756 + touch $touch_files
40757 + ;;
40758 +
40759 + automake*)
40760 + echo 1>&2 "\
40761 +WARNING: \`$1' is $msg. You should only need it if
40762 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
40763 + You might want to install the \`Automake' and \`Perl' packages.
40764 + Grab them from any GNU archive site."
40765 + find . -type f -name Makefile.am -print |
40766 + sed 's/\.am$/.in/' |
40767 + while read f; do touch "$f"; done
40768 + ;;
40769 +
40770 + autom4te)
40771 + echo 1>&2 "\
40772 +WARNING: \`$1' is needed, but is $msg.
40773 + You might have modified some files without having the
40774 + proper tools for further handling them.
40775 + You can get \`$1' as part of \`Autoconf' from any GNU
40776 + archive site."
40777 +
40778 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
40779 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
40780 + if test -f "$file"; then
40781 + touch $file
40782 + else
40783 + test -z "$file" || exec >$file
40784 + echo "#! /bin/sh"
40785 + echo "# Created by GNU Automake missing as a replacement of"
40786 + echo "# $ $@"
40787 + echo "exit 0"
40788 + chmod +x $file
40789 + exit 1
40790 + fi
40791 + ;;
40792 +
40793 + bison|yacc)
40794 + echo 1>&2 "\
40795 +WARNING: \`$1' $msg. You should only need it if
40796 + you modified a \`.y' file. You may need the \`Bison' package
40797 + in order for those modifications to take effect. You can get
40798 + \`Bison' from any GNU archive site."
40799 + rm -f y.tab.c y.tab.h
40800 + if [ $# -ne 1 ]; then
40801 + eval LASTARG="\${$#}"
40802 + case "$LASTARG" in
40803 + *.y)
40804 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
40805 + if [ -f "$SRCFILE" ]; then
40806 + cp "$SRCFILE" y.tab.c
40807 + fi
40808 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
40809 + if [ -f "$SRCFILE" ]; then
40810 + cp "$SRCFILE" y.tab.h
40811 + fi
40812 + ;;
40813 + esac
40814 + fi
40815 + if [ ! -f y.tab.h ]; then
40816 + echo >y.tab.h
40817 + fi
40818 + if [ ! -f y.tab.c ]; then
40819 + echo 'main() { return 0; }' >y.tab.c
40820 + fi
40821 + ;;
40822 +
40823 + lex|flex)
40824 + echo 1>&2 "\
40825 +WARNING: \`$1' is $msg. You should only need it if
40826 + you modified a \`.l' file. You may need the \`Flex' package
40827 + in order for those modifications to take effect. You can get
40828 + \`Flex' from any GNU archive site."
40829 + rm -f lex.yy.c
40830 + if [ $# -ne 1 ]; then
40831 + eval LASTARG="\${$#}"
40832 + case "$LASTARG" in
40833 + *.l)
40834 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
40835 + if [ -f "$SRCFILE" ]; then
40836 + cp "$SRCFILE" lex.yy.c
40837 + fi
40838 + ;;
40839 + esac
40840 + fi
40841 + if [ ! -f lex.yy.c ]; then
40842 + echo 'main() { return 0; }' >lex.yy.c
40843 + fi
40844 + ;;
40845 +
40846 + help2man)
40847 + echo 1>&2 "\
40848 +WARNING: \`$1' is $msg. You should only need it if
40849 + you modified a dependency of a manual page. You may need the
40850 + \`Help2man' package in order for those modifications to take
40851 + effect. You can get \`Help2man' from any GNU archive site."
40852 +
40853 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
40854 + if test -z "$file"; then
40855 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
40856 + fi
40857 + if [ -f "$file" ]; then
40858 + touch $file
40859 + else
40860 + test -z "$file" || exec >$file
40861 + echo ".ab help2man is required to generate this page"
40862 + exit 1
40863 + fi
40864 + ;;
40865 +
40866 + makeinfo)
40867 + echo 1>&2 "\
40868 +WARNING: \`$1' is $msg. You should only need it if
40869 + you modified a \`.texi' or \`.texinfo' file, or any other file
40870 + indirectly affecting the aspect of the manual. The spurious
40871 + call might also be the consequence of using a buggy \`make' (AIX,
40872 + DU, IRIX). You might want to install the \`Texinfo' package or
40873 + the \`GNU make' package. Grab either from any GNU archive site."
40874 + # The file to touch is that specified with -o ...
40875 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
40876 + if test -z "$file"; then
40877 + # ... or it is the one specified with @setfilename ...
40878 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
40879 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
40880 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
40881 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
40882 + fi
40883 + # If the file does not exist, the user really needs makeinfo;
40884 + # let's fail without touching anything.
40885 + test -f $file || exit 1
40886 + touch $file
40887 + ;;
40888 +
40889 + tar)
40890 + shift
40891 +
40892 + # We have already tried tar in the generic part.
40893 + # Look for gnutar/gtar before invocation to avoid ugly error
40894 + # messages.
40895 + if (gnutar --version > /dev/null 2>&1); then
40896 + gnutar "$@" && exit 0
40897 + fi
40898 + if (gtar --version > /dev/null 2>&1); then
40899 + gtar "$@" && exit 0
40900 + fi
40901 + firstarg="$1"
40902 + if shift; then
40903 + case "$firstarg" in
40904 + *o*)
40905 + firstarg=`echo "$firstarg" | sed s/o//`
40906 + tar "$firstarg" "$@" && exit 0
40907 + ;;
40908 + esac
40909 + case "$firstarg" in
40910 + *h*)
40911 + firstarg=`echo "$firstarg" | sed s/h//`
40912 + tar "$firstarg" "$@" && exit 0
40913 + ;;
40914 + esac
40915 + fi
40916 +
40917 + echo 1>&2 "\
40918 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
40919 + You may want to install GNU tar or Free paxutils, or check the
40920 + command line arguments."
40921 + exit 1
40922 + ;;
40923 +
40924 + *)
40925 + echo 1>&2 "\
40926 +WARNING: \`$1' is needed, and is $msg.
40927 + You might have modified some files without having the
40928 + proper tools for further handling them. Check the \`README' file,
40929 + it often tells you about the needed prerequisites for installing
40930 + this package. You may also peek at any GNU archive site, in case
40931 + some other package would contain this missing \`$1' program."
40932 + exit 1
40933 + ;;
40934 +esac
40935 +
40936 +exit 0
40937 +
40938 +# Local variables:
40939 +# eval: (add-hook 'write-file-hooks 'time-stamp)
40940 +# time-stamp-start: "scriptversion="
40941 +# time-stamp-format: "%:y-%02m-%02d.%02H"
40942 +# time-stamp-end: "$"
40943 +# End:
40944 diff -urN lua-5.1.4/src/luaconf.h lua-5.1.4-autotoolize/src/luaconf.h
40945 --- lua-5.1.4/src/luaconf.h 2008-02-11 17:25:08.000000000 +0100
40946 +++ lua-5.1.4-autotoolize/src/luaconf.h 2008-09-03 13:25:45.000000000 +0200
40947 @@ -1,763 +0,0 @@
40948 -/*
40949 -** $Id: luaconf.h,v 1.82.1.7 2008/02/11 16:25:08 roberto Exp $
40950 -** Configuration file for Lua
40951 -** See Copyright Notice in lua.h
40952 -*/
40953 -
40954 -
40955 -#ifndef lconfig_h
40956 -#define lconfig_h
40957 -
40958 -#include <limits.h>
40959 -#include <stddef.h>
40960 -
40961 -
40962 -/*
40963 -** ==================================================================
40964 -** Search for "@@" to find all configurable definitions.
40965 -** ===================================================================
40966 -*/
40967 -
40968 -
40969 -/*
40970 -@@ LUA_ANSI controls the use of non-ansi features.
40971 -** CHANGE it (define it) if you want Lua to avoid the use of any
40972 -** non-ansi feature or library.
40973 -*/
40974 -#if defined(__STRICT_ANSI__)
40975 -#define LUA_ANSI
40976 -#endif
40977 -
40978 -
40979 -#if !defined(LUA_ANSI) && defined(_WIN32)
40980 -#define LUA_WIN
40981 -#endif
40982 -
40983 -#if defined(LUA_USE_LINUX)
40984 -#define LUA_USE_POSIX
40985 -#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
40986 -#define LUA_USE_READLINE /* needs some extra libraries */
40987 -#endif
40988 -
40989 -#if defined(LUA_USE_MACOSX)
40990 -#define LUA_USE_POSIX
40991 -#define LUA_DL_DYLD /* does not need extra library */
40992 -#endif
40993 -
40994 -
40995 -
40996 -/*
40997 -@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
40998 -@* Interfaces Extension (XSI).
40999 -** CHANGE it (define it) if your system is XSI compatible.
41000 -*/
41001 -#if defined(LUA_USE_POSIX)
41002 -#define LUA_USE_MKSTEMP
41003 -#define LUA_USE_ISATTY
41004 -#define LUA_USE_POPEN
41005 -#define LUA_USE_ULONGJMP
41006 -#endif
41007 -
41008 -
41009 -/*
41010 -@@ LUA_PATH and LUA_CPATH are the names of the environment variables that
41011 -@* Lua check to set its paths.
41012 -@@ LUA_INIT is the name of the environment variable that Lua
41013 -@* checks for initialization code.
41014 -** CHANGE them if you want different names.
41015 -*/
41016 -#define LUA_PATH "LUA_PATH"
41017 -#define LUA_CPATH "LUA_CPATH"
41018 -#define LUA_INIT "LUA_INIT"
41019 -
41020 -
41021 -/*
41022 -@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
41023 -@* Lua libraries.
41024 -@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
41025 -@* C libraries.
41026 -** CHANGE them if your machine has a non-conventional directory
41027 -** hierarchy or if you want to install your libraries in
41028 -** non-conventional directories.
41029 -*/
41030 -#if defined(_WIN32)
41031 -/*
41032 -** In Windows, any exclamation mark ('!') in the path is replaced by the
41033 -** path of the directory of the executable file of the current process.
41034 -*/
41035 -#define LUA_LDIR "!\\lua\\"
41036 -#define LUA_CDIR "!\\"
41037 -#define LUA_PATH_DEFAULT \
41038 - ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
41039 - LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua"
41040 -#define LUA_CPATH_DEFAULT \
41041 - ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
41042 -
41043 -#else
41044 -#define LUA_ROOT "/usr/local/"
41045 -#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
41046 -#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
41047 -#define LUA_PATH_DEFAULT \
41048 - "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
41049 - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
41050 -#define LUA_CPATH_DEFAULT \
41051 - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
41052 -#endif
41053 -
41054 -
41055 -/*
41056 -@@ LUA_DIRSEP is the directory separator (for submodules).
41057 -** CHANGE it if your machine does not use "/" as the directory separator
41058 -** and is not Windows. (On Windows Lua automatically uses "\".)
41059 -*/
41060 -#if defined(_WIN32)
41061 -#define LUA_DIRSEP "\\"
41062 -#else
41063 -#define LUA_DIRSEP "/"
41064 -#endif
41065 -
41066 -
41067 -/*
41068 -@@ LUA_PATHSEP is the character that separates templates in a path.
41069 -@@ LUA_PATH_MARK is the string that marks the substitution points in a
41070 -@* template.
41071 -@@ LUA_EXECDIR in a Windows path is replaced by the executable's
41072 -@* directory.
41073 -@@ LUA_IGMARK is a mark to ignore all before it when bulding the
41074 -@* luaopen_ function name.
41075 -** CHANGE them if for some reason your system cannot use those
41076 -** characters. (E.g., if one of those characters is a common character
41077 -** in file/directory names.) Probably you do not need to change them.
41078 -*/
41079 -#define LUA_PATHSEP ";"
41080 -#define LUA_PATH_MARK "?"
41081 -#define LUA_EXECDIR "!"
41082 -#define LUA_IGMARK "-"
41083 -
41084 -
41085 -/*
41086 -@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger.
41087 -** CHANGE that if ptrdiff_t is not adequate on your machine. (On most
41088 -** machines, ptrdiff_t gives a good choice between int or long.)
41089 -*/
41090 -#define LUA_INTEGER ptrdiff_t
41091 -
41092 -
41093 -/*
41094 -@@ LUA_API is a mark for all core API functions.
41095 -@@ LUALIB_API is a mark for all standard library functions.
41096 -** CHANGE them if you need to define those functions in some special way.
41097 -** For instance, if you want to create one Windows DLL with the core and
41098 -** the libraries, you may want to use the following definition (define
41099 -** LUA_BUILD_AS_DLL to get it).
41100 -*/
41101 -#if defined(LUA_BUILD_AS_DLL)
41102 -
41103 -#if defined(LUA_CORE) || defined(LUA_LIB)
41104 -#define LUA_API __declspec(dllexport)
41105 -#else
41106 -#define LUA_API __declspec(dllimport)
41107 -#endif
41108 -
41109 -#else
41110 -
41111 -#define LUA_API extern
41112 -
41113 -#endif
41114 -
41115 -/* more often than not the libs go together with the core */
41116 -#define LUALIB_API LUA_API
41117 -
41118 -
41119 -/*
41120 -@@ LUAI_FUNC is a mark for all extern functions that are not to be
41121 -@* exported to outside modules.
41122 -@@ LUAI_DATA is a mark for all extern (const) variables that are not to
41123 -@* be exported to outside modules.
41124 -** CHANGE them if you need to mark them in some special way. Elf/gcc
41125 -** (versions 3.2 and later) mark them as "hidden" to optimize access
41126 -** when Lua is compiled as a shared library.
41127 -*/
41128 -#if defined(luaall_c)
41129 -#define LUAI_FUNC static
41130 -#define LUAI_DATA /* empty */
41131 -
41132 -#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
41133 - defined(__ELF__)
41134 -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
41135 -#define LUAI_DATA LUAI_FUNC
41136 -
41137 -#else
41138 -#define LUAI_FUNC extern
41139 -#define LUAI_DATA extern
41140 -#endif
41141 -
41142 -
41143 -
41144 -/*
41145 -@@ LUA_QL describes how error messages quote program elements.
41146 -** CHANGE it if you want a different appearance.
41147 -*/
41148 -#define LUA_QL(x) "'" x "'"
41149 -#define LUA_QS LUA_QL("%s")
41150 -
41151 -
41152 -/*
41153 -@@ LUA_IDSIZE gives the maximum size for the description of the source
41154 -@* of a function in debug information.
41155 -** CHANGE it if you want a different size.
41156 -*/
41157 -#define LUA_IDSIZE 60
41158 -
41159 -
41160 -/*
41161 -** {==================================================================
41162 -** Stand-alone configuration
41163 -** ===================================================================
41164 -*/
41165 -
41166 -#if defined(lua_c) || defined(luaall_c)
41167 -
41168 -/*
41169 -@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that
41170 -@* is, whether we're running lua interactively).
41171 -** CHANGE it if you have a better definition for non-POSIX/non-Windows
41172 -** systems.
41173 -*/
41174 -#if defined(LUA_USE_ISATTY)
41175 -#include <unistd.h>
41176 -#define lua_stdin_is_tty() isatty(0)
41177 -#elif defined(LUA_WIN)
41178 -#include <io.h>
41179 -#include <stdio.h>
41180 -#define lua_stdin_is_tty() _isatty(_fileno(stdin))
41181 -#else
41182 -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */
41183 -#endif
41184 -
41185 -
41186 -/*
41187 -@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
41188 -@@ LUA_PROMPT2 is the default continuation prompt used by stand-alone Lua.
41189 -** CHANGE them if you want different prompts. (You can also change the
41190 -** prompts dynamically, assigning to globals _PROMPT/_PROMPT2.)
41191 -*/
41192 -#define LUA_PROMPT "> "
41193 -#define LUA_PROMPT2 ">> "
41194 -
41195 -
41196 -/*
41197 -@@ LUA_PROGNAME is the default name for the stand-alone Lua program.
41198 -** CHANGE it if your stand-alone interpreter has a different name and
41199 -** your system is not able to detect that name automatically.
41200 -*/
41201 -#define LUA_PROGNAME "lua"
41202 -
41203 -
41204 -/*
41205 -@@ LUA_MAXINPUT is the maximum length for an input line in the
41206 -@* stand-alone interpreter.
41207 -** CHANGE it if you need longer lines.
41208 -*/
41209 -#define LUA_MAXINPUT 512
41210 -
41211 -
41212 -/*
41213 -@@ lua_readline defines how to show a prompt and then read a line from
41214 -@* the standard input.
41215 -@@ lua_saveline defines how to "save" a read line in a "history".
41216 -@@ lua_freeline defines how to free a line read by lua_readline.
41217 -** CHANGE them if you want to improve this functionality (e.g., by using
41218 -** GNU readline and history facilities).
41219 -*/
41220 -#if defined(LUA_USE_READLINE)
41221 -#include <stdio.h>
41222 -#include <readline/readline.h>
41223 -#include <readline/history.h>
41224 -#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL)
41225 -#define lua_saveline(L,idx) \
41226 - if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
41227 - add_history(lua_tostring(L, idx)); /* add it to history */
41228 -#define lua_freeline(L,b) ((void)L, free(b))
41229 -#else
41230 -#define lua_readline(L,b,p) \
41231 - ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
41232 - fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
41233 -#define lua_saveline(L,idx) { (void)L; (void)idx; }
41234 -#define lua_freeline(L,b) { (void)L; (void)b; }
41235 -#endif
41236 -
41237 -#endif
41238 -
41239 -/* }================================================================== */
41240 -
41241 -
41242 -/*
41243 -@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
41244 -@* as a percentage.
41245 -** CHANGE it if you want the GC to run faster or slower (higher values
41246 -** mean larger pauses which mean slower collection.) You can also change
41247 -** this value dynamically.
41248 -*/
41249 -#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
41250 -
41251 -
41252 -/*
41253 -@@ LUAI_GCMUL defines the default speed of garbage collection relative to
41254 -@* memory allocation as a percentage.
41255 -** CHANGE it if you want to change the granularity of the garbage
41256 -** collection. (Higher values mean coarser collections. 0 represents
41257 -** infinity, where each step performs a full collection.) You can also
41258 -** change this value dynamically.
41259 -*/
41260 -#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
41261 -
41262 -
41263 -
41264 -/*
41265 -@@ LUA_COMPAT_GETN controls compatibility with old getn behavior.
41266 -** CHANGE it (define it) if you want exact compatibility with the
41267 -** behavior of setn/getn in Lua 5.0.
41268 -*/
41269 -#undef LUA_COMPAT_GETN
41270 -
41271 -/*
41272 -@@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib.
41273 -** CHANGE it to undefined as soon as you do not need a global 'loadlib'
41274 -** function (the function is still available as 'package.loadlib').
41275 -*/
41276 -#undef LUA_COMPAT_LOADLIB
41277 -
41278 -/*
41279 -@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
41280 -** CHANGE it to undefined as soon as your programs use only '...' to
41281 -** access vararg parameters (instead of the old 'arg' table).
41282 -*/
41283 -#define LUA_COMPAT_VARARG
41284 -
41285 -/*
41286 -@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
41287 -** CHANGE it to undefined as soon as your programs use 'math.fmod' or
41288 -** the new '%' operator instead of 'math.mod'.
41289 -*/
41290 -#define LUA_COMPAT_MOD
41291 -
41292 -/*
41293 -@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
41294 -@* facility.
41295 -** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
41296 -** off the advisory error when nesting [[...]].
41297 -*/
41298 -#define LUA_COMPAT_LSTR 1
41299 -
41300 -/*
41301 -@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
41302 -** CHANGE it to undefined as soon as you rename 'string.gfind' to
41303 -** 'string.gmatch'.
41304 -*/
41305 -#define LUA_COMPAT_GFIND
41306 -
41307 -/*
41308 -@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
41309 -@* behavior.
41310 -** CHANGE it to undefined as soon as you replace to 'luaL_register'
41311 -** your uses of 'luaL_openlib'
41312 -*/
41313 -#define LUA_COMPAT_OPENLIB
41314 -
41315 -
41316 -
41317 -/*
41318 -@@ luai_apicheck is the assert macro used by the Lua-C API.
41319 -** CHANGE luai_apicheck if you want Lua to perform some checks in the
41320 -** parameters it gets from API calls. This may slow down the interpreter
41321 -** a bit, but may be quite useful when debugging C code that interfaces
41322 -** with Lua. A useful redefinition is to use assert.h.
41323 -*/
41324 -#if defined(LUA_USE_APICHECK)
41325 -#include <assert.h>
41326 -#define luai_apicheck(L,o) { (void)L; assert(o); }
41327 -#else
41328 -#define luai_apicheck(L,o) { (void)L; }
41329 -#endif
41330 -
41331 -
41332 -/*
41333 -@@ LUAI_BITSINT defines the number of bits in an int.
41334 -** CHANGE here if Lua cannot automatically detect the number of bits of
41335 -** your machine. Probably you do not need to change this.
41336 -*/
41337 -/* avoid overflows in comparison */
41338 -#if INT_MAX-20 < 32760
41339 -#define LUAI_BITSINT 16
41340 -#elif INT_MAX > 2147483640L
41341 -/* int has at least 32 bits */
41342 -#define LUAI_BITSINT 32
41343 -#else
41344 -#error "you must define LUA_BITSINT with number of bits in an integer"
41345 -#endif
41346 -
41347 -
41348 -/*
41349 -@@ LUAI_UINT32 is an unsigned integer with at least 32 bits.
41350 -@@ LUAI_INT32 is an signed integer with at least 32 bits.
41351 -@@ LUAI_UMEM is an unsigned integer big enough to count the total
41352 -@* memory used by Lua.
41353 -@@ LUAI_MEM is a signed integer big enough to count the total memory
41354 -@* used by Lua.
41355 -** CHANGE here if for some weird reason the default definitions are not
41356 -** good enough for your machine. (The definitions in the 'else'
41357 -** part always works, but may waste space on machines with 64-bit
41358 -** longs.) Probably you do not need to change this.
41359 -*/
41360 -#if LUAI_BITSINT >= 32
41361 -#define LUAI_UINT32 unsigned int
41362 -#define LUAI_INT32 int
41363 -#define LUAI_MAXINT32 INT_MAX
41364 -#define LUAI_UMEM size_t
41365 -#define LUAI_MEM ptrdiff_t
41366 -#else
41367 -/* 16-bit ints */
41368 -#define LUAI_UINT32 unsigned long
41369 -#define LUAI_INT32 long
41370 -#define LUAI_MAXINT32 LONG_MAX
41371 -#define LUAI_UMEM unsigned long
41372 -#define LUAI_MEM long
41373 -#endif
41374 -
41375 -
41376 -/*
41377 -@@ LUAI_MAXCALLS limits the number of nested calls.
41378 -** CHANGE it if you need really deep recursive calls. This limit is
41379 -** arbitrary; its only purpose is to stop infinite recursion before
41380 -** exhausting memory.
41381 -*/
41382 -#define LUAI_MAXCALLS 20000
41383 -
41384 -
41385 -/*
41386 -@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
41387 -@* can use.
41388 -** CHANGE it if you need lots of (Lua) stack space for your C
41389 -** functions. This limit is arbitrary; its only purpose is to stop C
41390 -** functions to consume unlimited stack space. (must be smaller than
41391 -** -LUA_REGISTRYINDEX)
41392 -*/
41393 -#define LUAI_MAXCSTACK 8000
41394 -
41395 -
41396 -
41397 -/*
41398 -** {==================================================================
41399 -** CHANGE (to smaller values) the following definitions if your system
41400 -** has a small C stack. (Or you may want to change them to larger
41401 -** values if your system has a large C stack and these limits are
41402 -** too rigid for you.) Some of these constants control the size of
41403 -** stack-allocated arrays used by the compiler or the interpreter, while
41404 -** others limit the maximum number of recursive calls that the compiler
41405 -** or the interpreter can perform. Values too large may cause a C stack
41406 -** overflow for some forms of deep constructs.
41407 -** ===================================================================
41408 -*/
41409 -
41410 -
41411 -/*
41412 -@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
41413 -@* syntactical nested non-terminals in a program.
41414 -*/
41415 -#define LUAI_MAXCCALLS 200
41416 -
41417 -
41418 -/*
41419 -@@ LUAI_MAXVARS is the maximum number of local variables per function
41420 -@* (must be smaller than 250).
41421 -*/
41422 -#define LUAI_MAXVARS 200
41423 -
41424 -
41425 -/*
41426 -@@ LUAI_MAXUPVALUES is the maximum number of upvalues per function
41427 -@* (must be smaller than 250).
41428 -*/
41429 -#define LUAI_MAXUPVALUES 60
41430 -
41431 -
41432 -/*
41433 -@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
41434 -*/
41435 -#define LUAL_BUFFERSIZE BUFSIZ
41436 -
41437 -/* }================================================================== */
41438 -
41439 -
41440 -
41441 -
41442 -/*
41443 -** {==================================================================
41444 -@@ LUA_NUMBER is the type of numbers in Lua.
41445 -** CHANGE the following definitions only if you want to build Lua
41446 -** with a number type different from double. You may also need to
41447 -** change lua_number2int & lua_number2integer.
41448 -** ===================================================================
41449 -*/
41450 -
41451 -#define LUA_NUMBER_DOUBLE
41452 -#define LUA_NUMBER double
41453 -
41454 -/*
41455 -@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
41456 -@* over a number.
41457 -*/
41458 -#define LUAI_UACNUMBER double
41459 -
41460 -
41461 -/*
41462 -@@ LUA_NUMBER_SCAN is the format for reading numbers.
41463 -@@ LUA_NUMBER_FMT is the format for writing numbers.
41464 -@@ lua_number2str converts a number to a string.
41465 -@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion.
41466 -@@ lua_str2number converts a string to a number.
41467 -*/
41468 -#define LUA_NUMBER_SCAN "%lf"
41469 -#define LUA_NUMBER_FMT "%.14g"
41470 -#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
41471 -#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */
41472 -#define lua_str2number(s,p) strtod((s), (p))
41473 -
41474 -
41475 -/*
41476 -@@ The luai_num* macros define the primitive operations over numbers.
41477 -*/
41478 -#if defined(LUA_CORE)
41479 -#include <math.h>
41480 -#define luai_numadd(a,b) ((a)+(b))
41481 -#define luai_numsub(a,b) ((a)-(b))
41482 -#define luai_nummul(a,b) ((a)*(b))
41483 -#define luai_numdiv(a,b) ((a)/(b))
41484 -#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b))
41485 -#define luai_numpow(a,b) (pow(a,b))
41486 -#define luai_numunm(a) (-(a))
41487 -#define luai_numeq(a,b) ((a)==(b))
41488 -#define luai_numlt(a,b) ((a)<(b))
41489 -#define luai_numle(a,b) ((a)<=(b))
41490 -#define luai_numisnan(a) (!luai_numeq((a), (a)))
41491 -#endif
41492 -
41493 -
41494 -/*
41495 -@@ lua_number2int is a macro to convert lua_Number to int.
41496 -@@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
41497 -** CHANGE them if you know a faster way to convert a lua_Number to
41498 -** int (with any rounding method and without throwing errors) in your
41499 -** system. In Pentium machines, a naive typecast from double to int
41500 -** in C is extremely slow, so any alternative is worth trying.
41501 -*/
41502 -
41503 -/* On a Pentium, resort to a trick */
41504 -#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \
41505 - (defined(__i386) || defined (_M_IX86) || defined(__i386__))
41506 -
41507 -/* On a Microsoft compiler, use assembler */
41508 -#if defined(_MSC_VER)
41509 -
41510 -#define lua_number2int(i,d) __asm fld d __asm fistp i
41511 -#define lua_number2integer(i,n) lua_number2int(i, n)
41512 -
41513 -/* the next trick should work on any Pentium, but sometimes clashes
41514 - with a DirectX idiosyncrasy */
41515 -#else
41516 -
41517 -union luai_Cast { double l_d; long l_l; };
41518 -#define lua_number2int(i,d) \
41519 - { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; }
41520 -#define lua_number2integer(i,n) lua_number2int(i, n)
41521 -
41522 -#endif
41523 -
41524 -
41525 -/* this option always works, but may be slow */
41526 -#else
41527 -#define lua_number2int(i,d) ((i)=(int)(d))
41528 -#define lua_number2integer(i,d) ((i)=(lua_Integer)(d))
41529 -
41530 -#endif
41531 -
41532 -/* }================================================================== */
41533 -
41534 -
41535 -/*
41536 -@@ LUAI_USER_ALIGNMENT_T is a type that requires maximum alignment.
41537 -** CHANGE it if your system requires alignments larger than double. (For
41538 -** instance, if your system supports long doubles and they must be
41539 -** aligned in 16-byte boundaries, then you should add long double in the
41540 -** union.) Probably you do not need to change this.
41541 -*/
41542 -#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
41543 -
41544 -
41545 -/*
41546 -@@ LUAI_THROW/LUAI_TRY define how Lua does exception handling.
41547 -** CHANGE them if you prefer to use longjmp/setjmp even with C++
41548 -** or if want/don't to use _longjmp/_setjmp instead of regular
41549 -** longjmp/setjmp. By default, Lua handles errors with exceptions when
41550 -** compiling as C++ code, with _longjmp/_setjmp when asked to use them,
41551 -** and with longjmp/setjmp otherwise.
41552 -*/
41553 -#if defined(__cplusplus)
41554 -/* C++ exceptions */
41555 -#define LUAI_THROW(L,c) throw(c)
41556 -#define LUAI_TRY(L,c,a) try { a } catch(...) \
41557 - { if ((c)->status == 0) (c)->status = -1; }
41558 -#define luai_jmpbuf int /* dummy variable */
41559 -
41560 -#elif defined(LUA_USE_ULONGJMP)
41561 -/* in Unix, try _longjmp/_setjmp (more efficient) */
41562 -#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
41563 -#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
41564 -#define luai_jmpbuf jmp_buf
41565 -
41566 -#else
41567 -/* default handling with long jumps */
41568 -#define LUAI_THROW(L,c) longjmp((c)->b, 1)
41569 -#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
41570 -#define luai_jmpbuf jmp_buf
41571 -
41572 -#endif
41573 -
41574 -
41575 -/*
41576 -@@ LUA_MAXCAPTURES is the maximum number of captures that a pattern
41577 -@* can do during pattern-matching.
41578 -** CHANGE it if you need more captures. This limit is arbitrary.
41579 -*/
41580 -#define LUA_MAXCAPTURES 32
41581 -
41582 -
41583 -/*
41584 -@@ lua_tmpnam is the function that the OS library uses to create a
41585 -@* temporary name.
41586 -@@ LUA_TMPNAMBUFSIZE is the maximum size of a name created by lua_tmpnam.
41587 -** CHANGE them if you have an alternative to tmpnam (which is considered
41588 -** insecure) or if you want the original tmpnam anyway. By default, Lua
41589 -** uses tmpnam except when POSIX is available, where it uses mkstemp.
41590 -*/
41591 -#if defined(loslib_c) || defined(luaall_c)
41592 -
41593 -#if defined(LUA_USE_MKSTEMP)
41594 -#include <unistd.h>
41595 -#define LUA_TMPNAMBUFSIZE 32
41596 -#define lua_tmpnam(b,e) { \
41597 - strcpy(b, "/tmp/lua_XXXXXX"); \
41598 - e = mkstemp(b); \
41599 - if (e != -1) close(e); \
41600 - e = (e == -1); }
41601 -
41602 -#else
41603 -#define LUA_TMPNAMBUFSIZE L_tmpnam
41604 -#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
41605 -#endif
41606 -
41607 -#endif
41608 -
41609 -
41610 -/*
41611 -@@ lua_popen spawns a new process connected to the current one through
41612 -@* the file streams.
41613 -** CHANGE it if you have a way to implement it in your system.
41614 -*/
41615 -#if defined(LUA_USE_POPEN)
41616 -
41617 -#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
41618 -#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
41619 -
41620 -#elif defined(LUA_WIN)
41621 -
41622 -#define lua_popen(L,c,m) ((void)L, _popen(c,m))
41623 -#define lua_pclose(L,file) ((void)L, (_pclose(file) != -1))
41624 -
41625 -#else
41626 -
41627 -#define lua_popen(L,c,m) ((void)((void)c, m), \
41628 - luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
41629 -#define lua_pclose(L,file) ((void)((void)L, file), 0)
41630 -
41631 -#endif
41632 -
41633 -/*
41634 -@@ LUA_DL_* define which dynamic-library system Lua should use.
41635 -** CHANGE here if Lua has problems choosing the appropriate
41636 -** dynamic-library system for your platform (either Windows' DLL, Mac's
41637 -** dyld, or Unix's dlopen). If your system is some kind of Unix, there
41638 -** is a good chance that it has dlopen, so LUA_DL_DLOPEN will work for
41639 -** it. To use dlopen you also need to adapt the src/Makefile (probably
41640 -** adding -ldl to the linker options), so Lua does not select it
41641 -** automatically. (When you change the makefile to add -ldl, you must
41642 -** also add -DLUA_USE_DLOPEN.)
41643 -** If you do not want any kind of dynamic library, undefine all these
41644 -** options.
41645 -** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
41646 -*/
41647 -#if defined(LUA_USE_DLOPEN)
41648 -#define LUA_DL_DLOPEN
41649 -#endif
41650 -
41651 -#if defined(LUA_WIN)
41652 -#define LUA_DL_DLL
41653 -#endif
41654 -
41655 -
41656 -/*
41657 -@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
41658 -@* (the data goes just *before* the lua_State pointer).
41659 -** CHANGE (define) this if you really need that. This value must be
41660 -** a multiple of the maximum alignment required for your machine.
41661 -*/
41662 -#define LUAI_EXTRASPACE 0
41663 -
41664 -
41665 -/*
41666 -@@ luai_userstate* allow user-specific actions on threads.
41667 -** CHANGE them if you defined LUAI_EXTRASPACE and need to do something
41668 -** extra when a thread is created/deleted/resumed/yielded.
41669 -*/
41670 -#define luai_userstateopen(L) ((void)L)
41671 -#define luai_userstateclose(L) ((void)L)
41672 -#define luai_userstatethread(L,L1) ((void)L)
41673 -#define luai_userstatefree(L) ((void)L)
41674 -#define luai_userstateresume(L,n) ((void)L)
41675 -#define luai_userstateyield(L,n) ((void)L)
41676 -
41677 -
41678 -/*
41679 -@@ LUA_INTFRMLEN is the length modifier for integer conversions
41680 -@* in 'string.format'.
41681 -@@ LUA_INTFRM_T is the integer type correspoding to the previous length
41682 -@* modifier.
41683 -** CHANGE them if your system supports long long or does not support long.
41684 -*/
41685 -
41686 -#if defined(LUA_USELONGLONG)
41687 -
41688 -#define LUA_INTFRMLEN "ll"
41689 -#define LUA_INTFRM_T long long
41690 -
41691 -#else
41692 -
41693 -#define LUA_INTFRMLEN "l"
41694 -#define LUA_INTFRM_T long
41695 -
41696 -#endif
41697 -
41698 -
41699 -
41700 -/* =================================================================== */
41701 -
41702 -/*
41703 -** Local configuration. You can use this space to add your redefinitions
41704 -** without modifying the main part of the file.
41705 -*/
41706 -
41707 -
41708 -
41709 -#endif
41710 -
41711 diff -urN lua-5.1.4/src/luaconf.h.template.in lua-5.1.4-autotoolize/src/luaconf.h.template.in
41712 --- lua-5.1.4/src/luaconf.h.template.in 1970-01-01 01:00:00.000000000 +0100
41713 +++ lua-5.1.4-autotoolize/src/luaconf.h.template.in 2008-09-03 13:18:37.000000000 +0200
41714 @@ -0,0 +1,754 @@
41715 +/*
41716 +** $Id: luaconf.h,v 1.81 2006/02/10 17:44:06 roberto Exp $
41717 +** Configuration file for Lua
41718 +** See Copyright Notice in lua.h
41719 +*/
41720 +
41721 +
41722 +#ifndef lconfig_h
41723 +#define lconfig_h
41724 +
41725 +#include <limits.h>
41726 +#include <stddef.h>
41727 +
41728 +/*
41729 +** =================
41730 +** Autotoolification
41731 +** =================
41732 +*/
41733 +
41734 +/** autotools-patch **/
41735 +@POSIX_DEFS@
41736 +@LUA_DL_DEFS@
41737 +@LUA_BUILD_AS_DLL_DEFS@
41738 +@READLINE_DEFS@
41739 +/** autotools-patch **/
41740 +
41741 +
41742 +/*
41743 +** ==================================================================
41744 +** Search for "@@" to find all configurable definitions.
41745 +** ===================================================================
41746 +*/
41747 +
41748 +
41749 +/*
41750 +@@ LUA_ANSI controls the use of non-ansi features.
41751 +** CHANGE it (define it) if you want Lua to avoid the use of any
41752 +** non-ansi feature or library.
41753 +*/
41754 +#if defined(__STRICT_ANSI__)
41755 +#define LUA_ANSI
41756 +#endif
41757 +
41758 +
41759 +#if !defined(LUA_ANSI) && defined(_WIN32)
41760 +#define LUA_WIN
41761 +#endif
41762 +
41763 +
41764 +/*
41765 +@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
41766 +@* Interfaces Extension (XSI).
41767 +** CHANGE it (define it) if your system is XSI compatible.
41768 +*/
41769 +#if defined(LUA_USE_POSIX)
41770 +#define LUA_USE_MKSTEMP
41771 +#define LUA_USE_ISATTY
41772 +#define LUA_USE_POPEN
41773 +#define LUA_USE_ULONGJMP
41774 +#endif
41775 +
41776 +
41777 +/*
41778 +@@ LUA_PATH and LUA_CPATH are the names of the environment variables that
41779 +@* Lua check to set its paths.
41780 +@@ LUA_INIT is the name of the environment variable that Lua
41781 +@* checks for initialization code.
41782 +** CHANGE them if you want different names.
41783 +*/
41784 +#define LUA_PATH "LUA_PATH"
41785 +#define LUA_CPATH "LUA_CPATH"
41786 +#define LUA_INIT "LUA_INIT"
41787 +
41788 +
41789 +/*
41790 +@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
41791 +@* Lua libraries.
41792 +@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
41793 +@* C libraries.
41794 +** CHANGE them if your machine has a non-conventional directory
41795 +** hierarchy or if you want to install your libraries in
41796 +** non-conventional directories.
41797 +*/
41798 +#if defined(_WIN32)
41799 +/*
41800 +** In Windows, any exclamation mark ('!') in the path is replaced by the
41801 +** path of the directory of the executable file of the current process.
41802 +*/
41803 +#define LUA_LDIR "!\\lua\\"
41804 +#define LUA_CDIR "!\\"
41805 +#define LUA_PATH_DEFAULT \
41806 + ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
41807 + LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua"
41808 +#define LUA_CPATH_DEFAULT \
41809 + ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
41810 +
41811 +#else
41812 +
41813 +/** autotools-patch **/
41814 +#define LUA_LDIR "%lua_datadir%/lua/5.1/"
41815 +#if defined __alpha__ || defined __ia64__ || defined __powerpc64__ || \
41816 + defined __s390x__ || defined __sparc64__ || defined __x86_64__
41817 +#define LUA_CDIR "/usr/lib64/lua/5.1/"
41818 +#else
41819 +#define LUA_CDIR "/usr/lib/lua/5.1/"
41820 +#endif
41821 +/** autotools-patch **/
41822 +
41823 +#define LUA_PATH_DEFAULT \
41824 + "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
41825 + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
41826 +#define LUA_CPATH_DEFAULT \
41827 + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
41828 +#endif
41829 +
41830 +
41831 +/*
41832 +@@ LUA_DIRSEP is the directory separator (for submodules).
41833 +** CHANGE it if your machine does not use "/" as the directory separator
41834 +** and is not Windows. (On Windows Lua automatically uses "\".)
41835 +*/
41836 +#if defined(_WIN32)
41837 +#define LUA_DIRSEP "\\"
41838 +#else
41839 +#define LUA_DIRSEP "/"
41840 +#endif
41841 +
41842 +
41843 +/*
41844 +@@ LUA_PATHSEP is the character that separates templates in a path.
41845 +@@ LUA_PATH_MARK is the string that marks the substitution points in a
41846 +@* template.
41847 +@@ LUA_EXECDIR in a Windows path is replaced by the executable's
41848 +@* directory.
41849 +@@ LUA_IGMARK is a mark to ignore all before it when bulding the
41850 +@* luaopen_ function name.
41851 +** CHANGE them if for some reason your system cannot use those
41852 +** characters. (E.g., if one of those characters is a common character
41853 +** in file/directory names.) Probably you do not need to change them.
41854 +*/
41855 +#define LUA_PATHSEP ";"
41856 +#define LUA_PATH_MARK "?"
41857 +#define LUA_EXECDIR "!"
41858 +#define LUA_IGMARK "-"
41859 +
41860 +
41861 +/*
41862 +@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger.
41863 +** CHANGE that if ptrdiff_t is not adequate on your machine. (On most
41864 +** machines, ptrdiff_t gives a good choice between int or long.)
41865 +*/
41866 +#define LUA_INTEGER ptrdiff_t
41867 +
41868 +
41869 +/*
41870 +@@ LUA_API is a mark for all core API functions.
41871 +@@ LUALIB_API is a mark for all standard library functions.
41872 +** CHANGE them if you need to define those functions in some special way.
41873 +** For instance, if you want to create one Windows DLL with the core and
41874 +** the libraries, you may want to use the following definition (define
41875 +** LUA_BUILD_AS_DLL to get it).
41876 +*/
41877 +#if defined(LUA_BUILD_AS_DLL)
41878 +
41879 +#if defined(LUA_CORE) || defined(LUA_LIB)
41880 +#define LUA_API __declspec(dllexport)
41881 +#else
41882 +#define LUA_API __declspec(dllimport)
41883 +#endif
41884 +
41885 +#else
41886 +
41887 +#define LUA_API extern
41888 +
41889 +#endif
41890 +
41891 +/* more often than not the libs go together with the core */
41892 +#define LUALIB_API LUA_API
41893 +
41894 +
41895 +/*
41896 +@@ LUAI_FUNC is a mark for all extern functions that are not to be
41897 +@* exported to outside modules.
41898 +@@ LUAI_DATA is a mark for all extern (const) variables that are not to
41899 +@* be exported to outside modules.
41900 +** CHANGE them if you need to mark them in some special way. Elf/gcc
41901 +** (versions 3.2 and later) mark them as "hidden" to optimize access
41902 +** when Lua is compiled as a shared library.
41903 +*/
41904 +#if defined(luaall_c)
41905 +#define LUAI_FUNC static
41906 +#define LUAI_DATA /* empty */
41907 +
41908 +#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
41909 + defined(__ELF__)
41910 +#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
41911 +#define LUAI_DATA LUAI_FUNC
41912 +
41913 +#else
41914 +#define LUAI_FUNC extern
41915 +#define LUAI_DATA extern
41916 +#endif
41917 +
41918 +
41919 +
41920 +/*
41921 +@@ LUA_QL describes how error messages quote program elements.
41922 +** CHANGE it if you want a different appearance.
41923 +*/
41924 +#define LUA_QL(x) "'" x "'"
41925 +#define LUA_QS LUA_QL("%s")
41926 +
41927 +
41928 +/*
41929 +@@ LUA_IDSIZE gives the maximum size for the description of the source
41930 +@* of a function in debug information.
41931 +** CHANGE it if you want a different size.
41932 +*/
41933 +#define LUA_IDSIZE 60
41934 +
41935 +
41936 +/*
41937 +** {==================================================================
41938 +** Stand-alone configuration
41939 +** ===================================================================
41940 +*/
41941 +
41942 +#if defined(lua_c) || defined(luaall_c)
41943 +
41944 +/*
41945 +@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that
41946 +@* is, whether we're running lua interactively).
41947 +** CHANGE it if you have a better definition for non-POSIX/non-Windows
41948 +** systems.
41949 +*/
41950 +#if defined(LUA_USE_ISATTY)
41951 +#include <unistd.h>
41952 +#define lua_stdin_is_tty() isatty(0)
41953 +#elif defined(LUA_WIN)
41954 +#include <io.h>
41955 +#include <stdio.h>
41956 +#define lua_stdin_is_tty() _isatty(_fileno(stdin))
41957 +#else
41958 +#define lua_stdin_is_tty() 1 /* assume stdin is a tty */
41959 +#endif
41960 +
41961 +
41962 +/*
41963 +@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
41964 +@@ LUA_PROMPT2 is the default continuation prompt used by stand-alone Lua.
41965 +** CHANGE them if you want different prompts. (You can also change the
41966 +** prompts dynamically, assigning to globals _PROMPT/_PROMPT2.)
41967 +*/
41968 +#define LUA_PROMPT "> "
41969 +#define LUA_PROMPT2 ">> "
41970 +
41971 +
41972 +/*
41973 +@@ LUA_PROGNAME is the default name for the stand-alone Lua program.
41974 +** CHANGE it if your stand-alone interpreter has a different name and
41975 +** your system is not able to detect that name automatically.
41976 +*/
41977 +#define LUA_PROGNAME "lua"
41978 +
41979 +
41980 +/*
41981 +@@ LUA_MAXINPUT is the maximum length for an input line in the
41982 +@* stand-alone interpreter.
41983 +** CHANGE it if you need longer lines.
41984 +*/
41985 +#define LUA_MAXINPUT 512
41986 +
41987 +
41988 +/*
41989 +@@ lua_readline defines how to show a prompt and then read a line from
41990 +@* the standard input.
41991 +@@ lua_saveline defines how to "save" a read line in a "history".
41992 +@@ lua_freeline defines how to free a line read by lua_readline.
41993 +** CHANGE them if you want to improve this functionality (e.g., by using
41994 +** GNU readline and history facilities).
41995 +*/
41996 +#if defined(LUA_USE_READLINE)
41997 +#include <stdio.h>
41998 +#include <readline/readline.h>
41999 +#include <readline/history.h>
42000 +#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL)
42001 +#define lua_saveline(L,idx) \
42002 + if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
42003 + add_history(lua_tostring(L, idx)); /* add it to history */
42004 +#define lua_freeline(L,b) ((void)L, free(b))
42005 +#else
42006 +#define lua_readline(L,b,p) \
42007 + ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
42008 + fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
42009 +#define lua_saveline(L,idx) { (void)L; (void)idx; }
42010 +#define lua_freeline(L,b) { (void)L; (void)b; }
42011 +#endif
42012 +
42013 +#endif
42014 +
42015 +/* }================================================================== */
42016 +
42017 +
42018 +/*
42019 +@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
42020 +@* as a percentage.
42021 +** CHANGE it if you want the GC to run faster or slower (higher values
42022 +** mean larger pauses which mean slower collection.) You can also change
42023 +** this value dynamically.
42024 +*/
42025 +#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
42026 +
42027 +
42028 +/*
42029 +@@ LUAI_GCMUL defines the default speed of garbage collection relative to
42030 +@* memory allocation as a percentage.
42031 +** CHANGE it if you want to change the granularity of the garbage
42032 +** collection. (Higher values mean coarser collections. 0 represents
42033 +** infinity, where each step performs a full collection.) You can also
42034 +** change this value dynamically.
42035 +*/
42036 +#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
42037 +
42038 +
42039 +
42040 +/*
42041 +@@ LUA_COMPAT_GETN controls compatibility with old getn behavior.
42042 +** CHANGE it (define it) if you want exact compatibility with the
42043 +** behavior of setn/getn in Lua 5.0.
42044 +*/
42045 +#undef LUA_COMPAT_GETN
42046 +
42047 +/*
42048 +@@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib.
42049 +** CHANGE it to undefined as soon as you do not need a global 'loadlib'
42050 +** function (the function is still available as 'package.loadlib').
42051 +*/
42052 +#undef LUA_COMPAT_LOADLIB
42053 +
42054 +/*
42055 +@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
42056 +** CHANGE it to undefined as soon as your programs use only '...' to
42057 +** access vararg parameters (instead of the old 'arg' table).
42058 +*/
42059 +#define LUA_COMPAT_VARARG
42060 +
42061 +/*
42062 +@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
42063 +** CHANGE it to undefined as soon as your programs use 'math.fmod' or
42064 +** the new '%' operator instead of 'math.mod'.
42065 +*/
42066 +#define LUA_COMPAT_MOD
42067 +
42068 +/*
42069 +@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
42070 +@* facility.
42071 +** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
42072 +** off the advisory error when nesting [[...]].
42073 +*/
42074 +#define LUA_COMPAT_LSTR 1
42075 +
42076 +/*
42077 +@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
42078 +** CHANGE it to undefined as soon as you rename 'string.gfind' to
42079 +** 'string.gmatch'.
42080 +*/
42081 +#define LUA_COMPAT_GFIND
42082 +
42083 +/*
42084 +@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
42085 +@* behavior.
42086 +** CHANGE it to undefined as soon as you replace to 'luaL_registry'
42087 +** your uses of 'luaL_openlib'
42088 +*/
42089 +#define LUA_COMPAT_OPENLIB
42090 +
42091 +
42092 +
42093 +/*
42094 +@@ luai_apicheck is the assert macro used by the Lua-C API.
42095 +** CHANGE luai_apicheck if you want Lua to perform some checks in the
42096 +** parameters it gets from API calls. This may slow down the interpreter
42097 +** a bit, but may be quite useful when debugging C code that interfaces
42098 +** with Lua. A useful redefinition is to use assert.h.
42099 +*/
42100 +#if defined(LUA_USE_APICHECK)
42101 +#include <assert.h>
42102 +#define luai_apicheck(L,o) { (void)L; assert(o); }
42103 +#else
42104 +#define luai_apicheck(L,o) { (void)L; }
42105 +#endif
42106 +
42107 +
42108 +/*
42109 +@@ LUAI_BITSINT defines the number of bits in an int.
42110 +** CHANGE here if Lua cannot automatically detect the number of bits of
42111 +** your machine. Probably you do not need to change this.
42112 +*/
42113 +/* avoid overflows in comparison */
42114 +#if INT_MAX-20 < 32760
42115 +#define LUAI_BITSINT 16
42116 +#elif INT_MAX > 2147483640L
42117 +/* int has at least 32 bits */
42118 +#define LUAI_BITSINT 32
42119 +#else
42120 +#error "you must define LUA_BITSINT with number of bits in an integer"
42121 +#endif
42122 +
42123 +
42124 +/*
42125 +@@ LUAI_UINT32 is an unsigned integer with at least 32 bits.
42126 +@@ LUAI_INT32 is an signed integer with at least 32 bits.
42127 +@@ LUAI_UMEM is an unsigned integer big enough to count the total
42128 +@* memory used by Lua.
42129 +@@ LUAI_MEM is a signed integer big enough to count the total memory
42130 +@* used by Lua.
42131 +** CHANGE here if for some weird reason the default definitions are not
42132 +** good enough for your machine. (The definitions in the 'else'
42133 +** part always works, but may waste space on machines with 64-bit
42134 +** longs.) Probably you do not need to change this.
42135 +*/
42136 +#if LUAI_BITSINT >= 32
42137 +#define LUAI_UINT32 unsigned int
42138 +#define LUAI_INT32 int
42139 +#define LUAI_MAXINT32 INT_MAX
42140 +#define LUAI_UMEM size_t
42141 +#define LUAI_MEM ptrdiff_t
42142 +#else
42143 +/* 16-bit ints */
42144 +#define LUAI_UINT32 unsigned long
42145 +#define LUAI_INT32 long
42146 +#define LUAI_MAXINT32 LONG_MAX
42147 +#define LUAI_UMEM unsigned long
42148 +#define LUAI_MEM long
42149 +#endif
42150 +
42151 +
42152 +/*
42153 +@@ LUAI_MAXCALLS limits the number of nested calls.
42154 +** CHANGE it if you need really deep recursive calls. This limit is
42155 +** arbitrary; its only purpose is to stop infinite recursion before
42156 +** exhausting memory.
42157 +*/
42158 +#define LUAI_MAXCALLS 20000
42159 +
42160 +
42161 +/*
42162 +@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
42163 +@* can use.
42164 +** CHANGE it if you need lots of (Lua) stack space for your C
42165 +** functions. This limit is arbitrary; its only purpose is to stop C
42166 +** functions to consume unlimited stack space.
42167 +*/
42168 +#define LUAI_MCS_AUX ((int)(INT_MAX / (4*sizeof(LUA_NUMBER))))
42169 +#define LUAI_MAXCSTACK (LUAI_MCS_AUX > SHRT_MAX ? SHRT_MAX : LUAI_MCS_AUX)
42170 +
42171 +
42172 +
42173 +/*
42174 +** {==================================================================
42175 +** CHANGE (to smaller values) the following definitions if your system
42176 +** has a small C stack. (Or you may want to change them to larger
42177 +** values if your system has a large C stack and these limits are
42178 +** too rigid for you.) Some of these constants control the size of
42179 +** stack-allocated arrays used by the compiler or the interpreter, while
42180 +** others limit the maximum number of recursive calls that the compiler
42181 +** or the interpreter can perform. Values too large may cause a C stack
42182 +** overflow for some forms of deep constructs.
42183 +** ===================================================================
42184 +*/
42185 +
42186 +
42187 +/*
42188 +@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
42189 +@* syntactical nested non-terminals in a program.
42190 +*/
42191 +#define LUAI_MAXCCALLS 200
42192 +
42193 +
42194 +/*
42195 +@@ LUAI_MAXVARS is the maximum number of local variables per function
42196 +@* (must be smaller than 250).
42197 +*/
42198 +#define LUAI_MAXVARS 200
42199 +
42200 +
42201 +/*
42202 +@@ LUAI_MAXUPVALUES is the maximum number of upvalues per function
42203 +@* (must be smaller than 250).
42204 +*/
42205 +#define LUAI_MAXUPVALUES 60
42206 +
42207 +
42208 +/*
42209 +@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
42210 +*/
42211 +#define LUAL_BUFFERSIZE BUFSIZ
42212 +
42213 +/* }================================================================== */
42214 +
42215 +
42216 +
42217 +
42218 +/*
42219 +** {==================================================================
42220 +@@ LUA_NUMBER is the type of numbers in Lua.
42221 +** CHANGE the following definitions only if you want to build Lua
42222 +** with a number type different from double. You may also need to
42223 +** change lua_number2int & lua_number2integer.
42224 +** ===================================================================
42225 +*/
42226 +
42227 +#define LUA_NUMBER_DOUBLE
42228 +#define LUA_NUMBER double
42229 +
42230 +/*
42231 +@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
42232 +@* over a number.
42233 +*/
42234 +#define LUAI_UACNUMBER double
42235 +
42236 +
42237 +/*
42238 +@@ LUA_NUMBER_SCAN is the format for reading numbers.
42239 +@@ LUA_NUMBER_FMT is the format for writing numbers.
42240 +@@ lua_number2str converts a number to a string.
42241 +@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion.
42242 +@@ lua_str2number converts a string to a number.
42243 +*/
42244 +#define LUA_NUMBER_SCAN "%lf"
42245 +#define LUA_NUMBER_FMT "%.14g"
42246 +#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
42247 +#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */
42248 +#define lua_str2number(s,p) strtod((s), (p))
42249 +
42250 +
42251 +/*
42252 +@@ The luai_num* macros define the primitive operations over numbers.
42253 +*/
42254 +#if defined(LUA_CORE)
42255 +#include <math.h>
42256 +#define luai_numadd(a,b) ((a)+(b))
42257 +#define luai_numsub(a,b) ((a)-(b))
42258 +#define luai_nummul(a,b) ((a)*(b))
42259 +#define luai_numdiv(a,b) ((a)/(b))
42260 +#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b))
42261 +#define luai_numpow(a,b) (pow(a,b))
42262 +#define luai_numunm(a) (-(a))
42263 +#define luai_numeq(a,b) ((a)==(b))
42264 +#define luai_numlt(a,b) ((a)<(b))
42265 +#define luai_numle(a,b) ((a)<=(b))
42266 +#define luai_numisnan(a) (!luai_numeq((a), (a)))
42267 +#endif
42268 +
42269 +
42270 +/*
42271 +@@ lua_number2int is a macro to convert lua_Number to int.
42272 +@@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
42273 +** CHANGE them if you know a faster way to convert a lua_Number to
42274 +** int (with any rounding method and without throwing errors) in your
42275 +** system. In Pentium machines, a naive typecast from double to int
42276 +** in C is extremely slow, so any alternative is worth trying.
42277 +*/
42278 +
42279 +/* On a Pentium, resort to a trick */
42280 +#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \
42281 + (defined(__i386) || defined (_M_IX86) || defined(__i386__))
42282 +union luai_Cast { double l_d; long l_l; };
42283 +#define lua_number2int(i,d) \
42284 + { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; }
42285 +#define lua_number2integer(i,n) lua_number2int(i, n)
42286 +
42287 +/* this option always works, but may be slow */
42288 +#else
42289 +#define lua_number2int(i,d) ((i)=(int)(d))
42290 +#define lua_number2integer(i,d) ((i)=(lua_Integer)(d))
42291 +
42292 +#endif
42293 +
42294 +/* }================================================================== */
42295 +
42296 +
42297 +/*
42298 +@@ LUAI_USER_ALIGNMENT_T is a type that requires maximum alignment.
42299 +** CHANGE it if your system requires alignments larger than double. (For
42300 +** instance, if your system supports long doubles and they must be
42301 +** aligned in 16-byte boundaries, then you should add long double in the
42302 +** union.) Probably you do not need to change this.
42303 +*/
42304 +#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
42305 +
42306 +
42307 +/*
42308 +@@ LUAI_THROW/LUAI_TRY define how Lua does exception handling.
42309 +** CHANGE them if you prefer to use longjmp/setjmp even with C++
42310 +** or if want/don't to use _longjmp/_setjmp instead of regular
42311 +** longjmp/setjmp. By default, Lua handles errors with exceptions when
42312 +** compiling as C++ code, with _longjmp/_setjmp when asked to use them,
42313 +** and with longjmp/setjmp otherwise.
42314 +*/
42315 +#if defined(__cplusplus)
42316 +/* C++ exceptions */
42317 +#define LUAI_THROW(L,c) throw(c)
42318 +#define LUAI_TRY(L,c,a) try { a } catch(...) \
42319 + { if ((c)->status == 0) (c)->status = -1; }
42320 +#define luai_jmpbuf int /* dummy variable */
42321 +
42322 +#elif defined(LUA_USE_ULONGJMP)
42323 +/* in Unix, try _longjmp/_setjmp (more efficient) */
42324 +#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
42325 +#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
42326 +#define luai_jmpbuf jmp_buf
42327 +
42328 +#else
42329 +/* default handling with long jumps */
42330 +#define LUAI_THROW(L,c) longjmp((c)->b, 1)
42331 +#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
42332 +#define luai_jmpbuf jmp_buf
42333 +
42334 +#endif
42335 +
42336 +
42337 +/*
42338 +@@ LUA_MAXCAPTURES is the maximum number of captures that a pattern
42339 +@* can do during pattern-matching.
42340 +** CHANGE it if you need more captures. This limit is arbitrary.
42341 +*/
42342 +#define LUA_MAXCAPTURES 32
42343 +
42344 +
42345 +/*
42346 +@@ lua_tmpnam is the function that the OS library uses to create a
42347 +@* temporary name.
42348 +@@ LUA_TMPNAMBUFSIZE is the maximum size of a name created by lua_tmpnam.
42349 +** CHANGE them if you have an alternative to tmpnam (which is considered
42350 +** insecure) or if you want the original tmpnam anyway. By default, Lua
42351 +** uses tmpnam except when POSIX is available, where it uses mkstemp.
42352 +*/
42353 +#if defined(loslib_c) || defined(luaall_c)
42354 +
42355 +#if defined(LUA_USE_MKSTEMP)
42356 +#include <unistd.h>
42357 +#define LUA_TMPNAMBUFSIZE 32
42358 +#define lua_tmpnam(b,e) { \
42359 + strcpy(b, "/tmp/lua_XXXXXX"); \
42360 + e = mkstemp(b); \
42361 + if (e != -1) close(e); \
42362 + e = (e == -1); }
42363 +
42364 +#else
42365 +#define LUA_TMPNAMBUFSIZE L_tmpnam
42366 +#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
42367 +#endif
42368 +
42369 +#endif
42370 +
42371 +
42372 +/*
42373 +@@ lua_popen spawns a new process connected to the current one through
42374 +@* the file streams.
42375 +** CHANGE it if you have a way to implement it in your system.
42376 +*/
42377 +#if defined(LUA_USE_POPEN)
42378 +
42379 +#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
42380 +#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
42381 +
42382 +#elif defined(LUA_WIN)
42383 +
42384 +#define lua_popen(L,c,m) ((void)L, _popen(c,m))
42385 +#define lua_pclose(L,file) ((void)L, (_pclose(file) != -1))
42386 +
42387 +#else
42388 +
42389 +#define lua_popen(L,c,m) ((void)((void)c, m), \
42390 + luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
42391 +#define lua_pclose(L,file) ((void)((void)L, file), 0)
42392 +
42393 +#endif
42394 +
42395 +/*
42396 +@@ LUA_DL_* define which dynamic-library system Lua should use.
42397 +** CHANGE here if Lua has problems choosing the appropriate
42398 +** dynamic-library system for your platform (either Windows' DLL, Mac's
42399 +** dyld, or Unix's dlopen). If your system is some kind of Unix, there
42400 +** is a good chance that it has dlopen, so LUA_DL_DLOPEN will work for
42401 +** it. To use dlopen you also need to adapt the src/Makefile (probably
42402 +** adding -ldl to the linker options), so Lua does not select it
42403 +** automatically. (When you change the makefile to add -ldl, you must
42404 +** also add -DLUA_USE_DLOPEN.)
42405 +** If you do not want any kind of dynamic library, undefine all these
42406 +** options.
42407 +** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
42408 +*/
42409 +#if defined(LUA_WIN)
42410 +#define LUA_DL_DLL
42411 +#endif
42412 +
42413 +
42414 +/*
42415 +@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
42416 +@* (the data goes just *before* the lua_State pointer).
42417 +** CHANGE (define) this if you really need that. This value must be
42418 +** a multiple of the maximum alignment required for your machine.
42419 +*/
42420 +#define LUAI_EXTRASPACE 0
42421 +
42422 +
42423 +/*
42424 +@@ luai_userstate* allow user-specific actions on threads.
42425 +** CHANGE them if you defined LUAI_EXTRASPACE and need to do something
42426 +** extra when a thread is created/deleted/resumed/yielded.
42427 +*/
42428 +#define luai_userstateopen(L) ((void)L)
42429 +#define luai_userstateclose(L) ((void)L)
42430 +#define luai_userstatethread(L,L1) ((void)L)
42431 +#define luai_userstatefree(L) ((void)L)
42432 +#define luai_userstateresume(L,n) ((void)L)
42433 +#define luai_userstateyield(L,n) ((void)L)
42434 +
42435 +
42436 +/*
42437 +@@ LUA_INTFRMLEN is the length modifier for integer conversions
42438 +@* in 'string.format'.
42439 +@@ LUA_INTFRM_T is the integer type correspoding to the previous length
42440 +@* modifier.
42441 +** CHANGE them if your system supports long long or does not support long.
42442 +*/
42443 +
42444 +#if defined(LUA_USELONGLONG)
42445 +
42446 +#define LUA_INTFRMLEN "ll"
42447 +#define LUA_INTFRM_T long long
42448 +
42449 +#else
42450 +
42451 +#define LUA_INTFRMLEN "l"
42452 +#define LUA_INTFRM_T long
42453 +
42454 +#endif
42455 +
42456 +
42457 +
42458 +/* =================================================================== */
42459 +
42460 +/*
42461 +** Local configuration. You can use this space to add your redefinitions
42462 +** without modifying the main part of the file.
42463 +*/
42464 +
42465 +
42466 +
42467 +#endif
42468 +
42469 diff -urN lua-5.1.4/src/Makefile lua-5.1.4-autotoolize/src/Makefile
42470 --- lua-5.1.4/src/Makefile 2008-01-19 20:37:58.000000000 +0100
42471 +++ lua-5.1.4-autotoolize/src/Makefile 2008-09-03 13:18:32.000000000 +0200
42472 @@ -1,182 +0,0 @@
42473 -# makefile for building Lua
42474 -# see ../INSTALL for installation instructions
42475 -# see ../Makefile and luaconf.h for further customization
42476 -
42477 -# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
42478 -
42479 -# Your platform. See PLATS for possible values.
42480 -PLAT= none
42481 -
42482 -CC= gcc
42483 -CFLAGS= -O2 -Wall $(MYCFLAGS)
42484 -AR= ar rcu
42485 -RANLIB= ranlib
42486 -RM= rm -f
42487 -LIBS= -lm $(MYLIBS)
42488 -
42489 -MYCFLAGS=
42490 -MYLDFLAGS=
42491 -MYLIBS=
42492 -
42493 -# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
42494 -
42495 -PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
42496 -
42497 -LUA_A= liblua.a
42498 -CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
42499 - lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
42500 - lundump.o lvm.o lzio.o
42501 -LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \
42502 - lstrlib.o loadlib.o linit.o
42503 -
42504 -LUA_T= lua
42505 -LUA_O= lua.o
42506 -
42507 -LUAC_T= luac
42508 -LUAC_O= luac.o print.o
42509 -
42510 -ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
42511 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
42512 -ALL_A= $(LUA_A)
42513 -
42514 -default: $(PLAT)
42515 -
42516 -all: $(ALL_T)
42517 -
42518 -o: $(ALL_O)
42519 -
42520 -a: $(ALL_A)
42521 -
42522 -$(LUA_A): $(CORE_O) $(LIB_O)
42523 - $(AR) $@ $?
42524 - $(RANLIB) $@
42525 -
42526 -$(LUA_T): $(LUA_O) $(LUA_A)
42527 - $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
42528 -
42529 -$(LUAC_T): $(LUAC_O) $(LUA_A)
42530 - $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
42531 -
42532 -clean:
42533 - $(RM) $(ALL_T) $(ALL_O)
42534 -
42535 -depend:
42536 - @$(CC) $(CFLAGS) -MM l*.c print.c
42537 -
42538 -echo:
42539 - @echo "PLAT = $(PLAT)"
42540 - @echo "CC = $(CC)"
42541 - @echo "CFLAGS = $(CFLAGS)"
42542 - @echo "AR = $(AR)"
42543 - @echo "RANLIB = $(RANLIB)"
42544 - @echo "RM = $(RM)"
42545 - @echo "MYCFLAGS = $(MYCFLAGS)"
42546 - @echo "MYLDFLAGS = $(MYLDFLAGS)"
42547 - @echo "MYLIBS = $(MYLIBS)"
42548 -
42549 -# convenience targets for popular platforms
42550 -
42551 -none:
42552 - @echo "Please choose a platform:"
42553 - @echo " $(PLATS)"
42554 -
42555 -aix:
42556 - $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
42557 -
42558 -ansi:
42559 - $(MAKE) all MYCFLAGS=-DLUA_ANSI
42560 -
42561 -bsd:
42562 - $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
42563 -
42564 -freebsd:
42565 - $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
42566 -
42567 -generic:
42568 - $(MAKE) all MYCFLAGS=
42569 -
42570 -linux:
42571 - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
42572 -
42573 -macosx:
42574 - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
42575 -# use this on Mac OS X 10.3-
42576 -# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
42577 -
42578 -mingw:
42579 - $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
42580 - "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
42581 - "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
42582 - $(MAKE) "LUAC_T=luac.exe" luac.exe
42583 -
42584 -posix:
42585 - $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
42586 -
42587 -solaris:
42588 - $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"
42589 -
42590 -# list targets that do not create files (but not all makes understand .PHONY)
42591 -.PHONY: all $(PLATS) default o a clean depend echo none
42592 -
42593 -# DO NOT DELETE
42594 -
42595 -lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \
42596 - lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h \
42597 - lundump.h lvm.h
42598 -lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h
42599 -lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h
42600 -lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
42601 - lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h lgc.h \
42602 - ltable.h
42603 -ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h
42604 -ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h \
42605 - llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
42606 - lfunc.h lstring.h lgc.h ltable.h lvm.h
42607 -ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42608 - lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h lstring.h \
42609 - ltable.h lundump.h lvm.h
42610 -ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h \
42611 - lzio.h lmem.h lundump.h
42612 -lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h \
42613 - lstate.h ltm.h lzio.h
42614 -lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42615 - lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h
42616 -linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h
42617 -liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h
42618 -llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h \
42619 - lzio.h lmem.h llex.h lparser.h lstring.h lgc.h ltable.h
42620 -lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h
42621 -lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42622 - ltm.h lzio.h lmem.h ldo.h
42623 -loadlib.o: loadlib.c lua.h luaconf.h lauxlib.h lualib.h
42624 -lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h \
42625 - ltm.h lzio.h lmem.h lstring.h lgc.h lvm.h
42626 -lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h
42627 -loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h
42628 -lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
42629 - lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
42630 - lfunc.h lstring.h lgc.h ltable.h
42631 -lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42632 - ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h llex.h lstring.h ltable.h
42633 -lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \
42634 - ltm.h lzio.h lstring.h lgc.h
42635 -lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h
42636 -ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42637 - ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h
42638 -ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
42639 -ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \
42640 - lmem.h lstring.h lgc.h ltable.h
42641 -lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h
42642 -luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h \
42643 - lstate.h ltm.h lzio.h lmem.h lfunc.h lopcodes.h lstring.h lgc.h \
42644 - lundump.h
42645 -lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \
42646 - llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h
42647 -lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42648 - lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h
42649 -lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
42650 - lzio.h
42651 -print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h \
42652 - ltm.h lzio.h lmem.h lopcodes.h lundump.h
42653 -
42654 -# (end of Makefile)
42655 diff -urN lua-5.1.4/src/Makefile.am lua-5.1.4-autotoolize/src/Makefile.am
42656 --- lua-5.1.4/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
42657 +++ lua-5.1.4-autotoolize/src/Makefile.am 2008-09-03 13:18:37.000000000 +0200
42658 @@ -0,0 +1,45 @@
42659 +AM_CFLAGS = -Wall
42660 +
42661 +include_HEADERS = lua.h lualib.h lauxlib.h
42662 +nodist_include_HEADERS = luaconf.h
42663 +
42664 +lib_LTLIBRARIES = liblua.la
42665 +liblua_la_LDFLAGS = -release 5.1
42666 +liblua_la_SOURCES = \
42667 + lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
42668 + lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c \
42669 + lundump.c lvm.c lzio.c \
42670 + lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c \
42671 + lstrlib.c loadlib.c linit.c \
42672 + lapi.h ldebug.h lgc.h lmem.h lparser.h ltable.h lzio.h ldo.h llex.h \
42673 + lobject.h lstate.h ltm.h lundump.h lcode.h lfunc.h llimits.h lopcodes.h \
42674 + lstring.h lvm.h
42675 +
42676 +bin_PROGRAMS = lua luac
42677 +
42678 +lua_SOURCES = lua.c
42679 +lua_LDADD = liblua.la @LUA_LIBS@
42680 +lua_DEPENDENCIES = liblua.la
42681 +
42682 +luac_SOURCES = luac.c print.c
42683 +luac_LDADD = liblua.la @LUA_LIBS@
42684 +luac_DEPENDENCIES = liblua.la
42685 +
42686 +# luac must be linked statically because it uses functions that
42687 +# don't get exported to the shared object
42688 +luac_LDFLAGS = -static
42689 +
42690 +EXTRA_DIST = luaconf.h.template.in
42691 +BUILT_SOURCES = luaconf.h
42692 +CLEANFILES = luaconf.h
42693 +
42694 +readline_defs = @READLINE_DEFS@
42695 +
42696 +edit = sed \
42697 + -e 's,%lua_datadir%,$(datadir),g' \
42698 + -e 's,%lua_libdir%,$(libdir),g'
42699 +
42700 +luaconf.h : $(srcdir)/luaconf.h.template
42701 + rm -f luaconf.h luaconf.h.tmp
42702 + $(edit) $(srcdir)/luaconf.h.template > luaconf.h.tmp
42703 + mv luaconf.h.tmp luaconf.h
42704 diff -urN lua-5.1.4/src/Makefile.in lua-5.1.4-autotoolize/src/Makefile.in
42705 --- lua-5.1.4/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
42706 +++ lua-5.1.4-autotoolize/src/Makefile.in 2008-09-03 13:18:37.000000000 +0200
42707 @@ -0,0 +1,621 @@
42708 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
42709 +# @configure_input@
42710 +
42711 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
42712 +# 2003, 2004, 2005 Free Software Foundation, Inc.
42713 +# This Makefile.in is free software; the Free Software Foundation
42714 +# gives unlimited permission to copy and/or distribute it,
42715 +# with or without modifications, as long as this notice is preserved.
42716 +
42717 +# This program is distributed in the hope that it will be useful,
42718 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
42719 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
42720 +# PARTICULAR PURPOSE.
42721 +
42722 +@SET_MAKE@
42723 +
42724 +
42725 +
42726 +srcdir = @srcdir@
42727 +top_srcdir = @top_srcdir@
42728 +VPATH = @srcdir@
42729 +pkgdatadir = $(datadir)/@PACKAGE@
42730 +pkglibdir = $(libdir)/@PACKAGE@
42731 +pkgincludedir = $(includedir)/@PACKAGE@
42732 +top_builddir = ..
42733 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42734 +INSTALL = @INSTALL@
42735 +install_sh_DATA = $(install_sh) -c -m 644
42736 +install_sh_PROGRAM = $(install_sh) -c
42737 +install_sh_SCRIPT = $(install_sh) -c
42738 +INSTALL_HEADER = $(INSTALL_DATA)
42739 +transform = $(program_transform_name)
42740 +NORMAL_INSTALL = :
42741 +PRE_INSTALL = :
42742 +POST_INSTALL = :
42743 +NORMAL_UNINSTALL = :
42744 +PRE_UNINSTALL = :
42745 +POST_UNINSTALL = :
42746 +build_triplet = @build@
42747 +host_triplet = @host@
42748 +bin_PROGRAMS = lua$(EXEEXT) luac$(EXEEXT)
42749 +subdir = src
42750 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
42751 + $(srcdir)/Makefile.in $(srcdir)/luaconf.h.template.in
42752 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42753 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42754 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42755 + $(ACLOCAL_M4)
42756 +mkinstalldirs = $(install_sh) -d
42757 +CONFIG_HEADER = $(top_builddir)/config.h
42758 +CONFIG_CLEAN_FILES = luaconf.h.template
42759 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
42760 +am__vpath_adj = case $$p in \
42761 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
42762 + *) f=$$p;; \
42763 + esac;
42764 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
42765 +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
42766 + "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"
42767 +libLTLIBRARIES_INSTALL = $(INSTALL)
42768 +LTLIBRARIES = $(lib_LTLIBRARIES)
42769 +liblua_la_LIBADD =
42770 +am_liblua_la_OBJECTS = lapi.lo lcode.lo ldebug.lo ldo.lo ldump.lo \
42771 + lfunc.lo lgc.lo llex.lo lmem.lo lobject.lo lopcodes.lo \
42772 + lparser.lo lstate.lo lstring.lo ltable.lo ltm.lo lundump.lo \
42773 + lvm.lo lzio.lo lauxlib.lo lbaselib.lo ldblib.lo liolib.lo \
42774 + lmathlib.lo loslib.lo ltablib.lo lstrlib.lo loadlib.lo \
42775 + linit.lo
42776 +liblua_la_OBJECTS = $(am_liblua_la_OBJECTS)
42777 +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
42778 +PROGRAMS = $(bin_PROGRAMS)
42779 +am_lua_OBJECTS = lua.$(OBJEXT)
42780 +lua_OBJECTS = $(am_lua_OBJECTS)
42781 +am_luac_OBJECTS = luac.$(OBJEXT) print.$(OBJEXT)
42782 +luac_OBJECTS = $(am_luac_OBJECTS)
42783 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
42784 +depcomp = $(SHELL) $(top_srcdir)/depcomp
42785 +am__depfiles_maybe = depfiles
42786 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
42787 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
42788 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
42789 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
42790 + $(AM_CFLAGS) $(CFLAGS)
42791 +CCLD = $(CC)
42792 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
42793 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
42794 +SOURCES = $(liblua_la_SOURCES) $(lua_SOURCES) $(luac_SOURCES)
42795 +DIST_SOURCES = $(liblua_la_SOURCES) $(lua_SOURCES) $(luac_SOURCES)
42796 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
42797 +nodist_includeHEADERS_INSTALL = $(INSTALL_HEADER)
42798 +HEADERS = $(include_HEADERS) $(nodist_include_HEADERS)
42799 +ETAGS = etags
42800 +CTAGS = ctags
42801 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
42802 +ACLOCAL = @ACLOCAL@
42803 +AMDEP_FALSE = @AMDEP_FALSE@
42804 +AMDEP_TRUE = @AMDEP_TRUE@
42805 +AMTAR = @AMTAR@
42806 +AR = @AR@
42807 +AUTOCONF = @AUTOCONF@
42808 +AUTOHEADER = @AUTOHEADER@
42809 +AUTOMAKE = @AUTOMAKE@
42810 +AWK = @AWK@
42811 +CC = @CC@
42812 +CCDEPMODE = @CCDEPMODE@
42813 +CFLAGS = @CFLAGS@
42814 +CPP = @CPP@
42815 +CPPFLAGS = @CPPFLAGS@
42816 +CXX = @CXX@
42817 +CXXCPP = @CXXCPP@
42818 +CXXDEPMODE = @CXXDEPMODE@
42819 +CXXFLAGS = @CXXFLAGS@
42820 +CYGPATH_W = @CYGPATH_W@
42821 +DEFS = @DEFS@
42822 +DEPDIR = @DEPDIR@
42823 +ECHO = @ECHO@
42824 +ECHO_C = @ECHO_C@
42825 +ECHO_N = @ECHO_N@
42826 +ECHO_T = @ECHO_T@
42827 +EGREP = @EGREP@
42828 +EXEEXT = @EXEEXT@
42829 +F77 = @F77@
42830 +FFLAGS = @FFLAGS@
42831 +INSTALL_DATA = @INSTALL_DATA@
42832 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
42833 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
42834 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
42835 +LDFLAGS = @LDFLAGS@
42836 +LIBOBJS = @LIBOBJS@
42837 +LIBS = @LIBS@
42838 +LIBTOOL = @LIBTOOL@
42839 +LN_S = @LN_S@
42840 +LTLIBOBJS = @LTLIBOBJS@
42841 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
42842 +LUA_DL_DEFS = @LUA_DL_DEFS@
42843 +LUA_LIBS = @LUA_LIBS@
42844 +MAKEINFO = @MAKEINFO@
42845 +OBJEXT = @OBJEXT@
42846 +PACKAGE = @PACKAGE@
42847 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
42848 +PACKAGE_NAME = @PACKAGE_NAME@
42849 +PACKAGE_STRING = @PACKAGE_STRING@
42850 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
42851 +PACKAGE_VERSION = @PACKAGE_VERSION@
42852 +PATH_SEPARATOR = @PATH_SEPARATOR@
42853 +POSIX_DEFS = @POSIX_DEFS@
42854 +RANLIB = @RANLIB@
42855 +READLINE_DEFS = @READLINE_DEFS@
42856 +SET_MAKE = @SET_MAKE@
42857 +SHELL = @SHELL@
42858 +STRIP = @STRIP@
42859 +VERSION = @VERSION@
42860 +ac_ct_AR = @ac_ct_AR@
42861 +ac_ct_CC = @ac_ct_CC@
42862 +ac_ct_CXX = @ac_ct_CXX@
42863 +ac_ct_F77 = @ac_ct_F77@
42864 +ac_ct_RANLIB = @ac_ct_RANLIB@
42865 +ac_ct_STRIP = @ac_ct_STRIP@
42866 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
42867 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
42868 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
42869 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
42870 +am__include = @am__include@
42871 +am__leading_dot = @am__leading_dot@
42872 +am__quote = @am__quote@
42873 +am__tar = @am__tar@
42874 +am__untar = @am__untar@
42875 +bindir = @bindir@
42876 +build = @build@
42877 +build_alias = @build_alias@
42878 +build_cpu = @build_cpu@
42879 +build_os = @build_os@
42880 +build_vendor = @build_vendor@
42881 +datadir = @datadir@
42882 +exec_prefix = @exec_prefix@
42883 +host = @host@
42884 +host_alias = @host_alias@
42885 +host_cpu = @host_cpu@
42886 +host_os = @host_os@
42887 +host_vendor = @host_vendor@
42888 +includedir = @includedir@
42889 +infodir = @infodir@
42890 +install_sh = @install_sh@
42891 +libdir = @libdir@
42892 +libexecdir = @libexecdir@
42893 +localstatedir = @localstatedir@
42894 +mandir = @mandir@
42895 +mkdir_p = @mkdir_p@
42896 +oldincludedir = @oldincludedir@
42897 +prefix = @prefix@
42898 +program_transform_name = @program_transform_name@
42899 +sbindir = @sbindir@
42900 +sharedstatedir = @sharedstatedir@
42901 +sysconfdir = @sysconfdir@
42902 +target_alias = @target_alias@
42903 +AM_CFLAGS = -Wall
42904 +include_HEADERS = lua.h lualib.h lauxlib.h
42905 +nodist_include_HEADERS = luaconf.h
42906 +lib_LTLIBRARIES = liblua.la
42907 +liblua_la_LDFLAGS = -release 5.1
42908 +liblua_la_SOURCES = \
42909 + lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
42910 + lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c \
42911 + lundump.c lvm.c lzio.c \
42912 + lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c \
42913 + lstrlib.c loadlib.c linit.c \
42914 + lapi.h ldebug.h lgc.h lmem.h lparser.h ltable.h lzio.h ldo.h llex.h \
42915 + lobject.h lstate.h ltm.h lundump.h lcode.h lfunc.h llimits.h lopcodes.h \
42916 + lstring.h lvm.h
42917 +
42918 +lua_SOURCES = lua.c
42919 +lua_LDADD = liblua.la @LUA_LIBS@
42920 +lua_DEPENDENCIES = liblua.la
42921 +luac_SOURCES = luac.c print.c
42922 +luac_LDADD = liblua.la @LUA_LIBS@
42923 +luac_DEPENDENCIES = liblua.la
42924 +
42925 +# luac must be linked statically because it uses functions that
42926 +# don't get exported to the shared object
42927 +luac_LDFLAGS = -static
42928 +EXTRA_DIST = luaconf.h.template.in
42929 +BUILT_SOURCES = luaconf.h
42930 +CLEANFILES = luaconf.h
42931 +readline_defs = @READLINE_DEFS@
42932 +edit = sed \
42933 + -e 's,%lua_datadir%,$(datadir),g' \
42934 + -e 's,%lua_libdir%,$(libdir),g'
42935 +
42936 +all: $(BUILT_SOURCES)
42937 + $(MAKE) $(AM_MAKEFLAGS) all-am
42938 +
42939 +.SUFFIXES:
42940 +.SUFFIXES: .c .lo .o .obj
42941 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
42942 + @for dep in $?; do \
42943 + case '$(am__configure_deps)' in \
42944 + *$$dep*) \
42945 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
42946 + && exit 0; \
42947 + exit 1;; \
42948 + esac; \
42949 + done; \
42950 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
42951 + cd $(top_srcdir) && \
42952 + $(AUTOMAKE) --foreign src/Makefile
42953 +.PRECIOUS: Makefile
42954 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
42955 + @case '$?' in \
42956 + *config.status*) \
42957 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
42958 + *) \
42959 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
42960 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
42961 + esac;
42962 +
42963 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
42964 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42965 +
42966 +$(top_srcdir)/configure: $(am__configure_deps)
42967 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42968 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
42969 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42970 +luaconf.h.template: $(top_builddir)/config.status $(srcdir)/luaconf.h.template.in
42971 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
42972 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
42973 + @$(NORMAL_INSTALL)
42974 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
42975 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42976 + if test -f $$p; then \
42977 + f=$(am__strip_dir) \
42978 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
42979 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
42980 + else :; fi; \
42981 + done
42982 +
42983 +uninstall-libLTLIBRARIES:
42984 + @$(NORMAL_UNINSTALL)
42985 + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42986 + p=$(am__strip_dir) \
42987 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
42988 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
42989 + done
42990 +
42991 +clean-libLTLIBRARIES:
42992 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
42993 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42994 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
42995 + test "$$dir" != "$$p" || dir=.; \
42996 + echo "rm -f \"$${dir}/so_locations\""; \
42997 + rm -f "$${dir}/so_locations"; \
42998 + done
42999 +liblua.la: $(liblua_la_OBJECTS) $(liblua_la_DEPENDENCIES)
43000 + $(LINK) -rpath $(libdir) $(liblua_la_LDFLAGS) $(liblua_la_OBJECTS) $(liblua_la_LIBADD) $(LIBS)
43001 +install-binPROGRAMS: $(bin_PROGRAMS)
43002 + @$(NORMAL_INSTALL)
43003 + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
43004 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43005 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
43006 + if test -f $$p \
43007 + || test -f $$p1 \
43008 + ; then \
43009 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
43010 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
43011 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
43012 + else :; fi; \
43013 + done
43014 +
43015 +uninstall-binPROGRAMS:
43016 + @$(NORMAL_UNINSTALL)
43017 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43018 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
43019 + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
43020 + rm -f "$(DESTDIR)$(bindir)/$$f"; \
43021 + done
43022 +
43023 +clean-binPROGRAMS:
43024 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43025 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
43026 + echo " rm -f $$p $$f"; \
43027 + rm -f $$p $$f ; \
43028 + done
43029 +lua$(EXEEXT): $(lua_OBJECTS) $(lua_DEPENDENCIES)
43030 + @rm -f lua$(EXEEXT)
43031 + $(LINK) $(lua_LDFLAGS) $(lua_OBJECTS) $(lua_LDADD) $(LIBS)
43032 +luac$(EXEEXT): $(luac_OBJECTS) $(luac_DEPENDENCIES)
43033 + @rm -f luac$(EXEEXT)
43034 + $(LINK) $(luac_LDFLAGS) $(luac_OBJECTS) $(luac_LDADD) $(LIBS)
43035 +
43036 +mostlyclean-compile:
43037 + -rm -f *.$(OBJEXT)
43038 +
43039 +distclean-compile:
43040 + -rm -f *.tab.c
43041 +
43042 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lapi.Plo@am__quote@
43043 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lauxlib.Plo@am__quote@
43044 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lbaselib.Plo@am__quote@
43045 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lcode.Plo@am__quote@
43046 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldblib.Plo@am__quote@
43047 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldebug.Plo@am__quote@
43048 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldo.Plo@am__quote@
43049 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldump.Plo@am__quote@
43050 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfunc.Plo@am__quote@
43051 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lgc.Plo@am__quote@
43052 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linit.Plo@am__quote@
43053 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/liolib.Plo@am__quote@
43054 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/llex.Plo@am__quote@
43055 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lmathlib.Plo@am__quote@
43056 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lmem.Plo@am__quote@
43057 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadlib.Plo@am__quote@
43058 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lobject.Plo@am__quote@
43059 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lopcodes.Plo@am__quote@
43060 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loslib.Plo@am__quote@
43061 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lparser.Plo@am__quote@
43062 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstate.Plo@am__quote@
43063 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstring.Plo@am__quote@
43064 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstrlib.Plo@am__quote@
43065 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltable.Plo@am__quote@
43066 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltablib.Plo@am__quote@
43067 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltm.Plo@am__quote@
43068 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lua.Po@am__quote@
43069 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/luac.Po@am__quote@
43070 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lundump.Plo@am__quote@
43071 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lvm.Plo@am__quote@
43072 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzio.Plo@am__quote@
43073 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print.Po@am__quote@
43074 +
43075 +.c.o:
43076 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
43077 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43078 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
43079 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43080 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
43081 +
43082 +.c.obj:
43083 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
43084 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43085 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
43086 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43087 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
43088 +
43089 +.c.lo:
43090 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
43091 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43092 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
43093 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43094 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
43095 +
43096 +mostlyclean-libtool:
43097 + -rm -f *.lo
43098 +
43099 +clean-libtool:
43100 + -rm -rf .libs _libs
43101 +
43102 +distclean-libtool:
43103 + -rm -f libtool
43104 +uninstall-info-am:
43105 +install-includeHEADERS: $(include_HEADERS)
43106 + @$(NORMAL_INSTALL)
43107 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
43108 + @list='$(include_HEADERS)'; for p in $$list; do \
43109 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
43110 + f=$(am__strip_dir) \
43111 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
43112 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
43113 + done
43114 +
43115 +uninstall-includeHEADERS:
43116 + @$(NORMAL_UNINSTALL)
43117 + @list='$(include_HEADERS)'; for p in $$list; do \
43118 + f=$(am__strip_dir) \
43119 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
43120 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
43121 + done
43122 +install-nodist_includeHEADERS: $(nodist_include_HEADERS)
43123 + @$(NORMAL_INSTALL)
43124 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
43125 + @list='$(nodist_include_HEADERS)'; for p in $$list; do \
43126 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
43127 + f=$(am__strip_dir) \
43128 + echo " $(nodist_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
43129 + $(nodist_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
43130 + done
43131 +
43132 +uninstall-nodist_includeHEADERS:
43133 + @$(NORMAL_UNINSTALL)
43134 + @list='$(nodist_include_HEADERS)'; for p in $$list; do \
43135 + f=$(am__strip_dir) \
43136 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
43137 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
43138 + done
43139 +
43140 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
43141 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43142 + unique=`for i in $$list; do \
43143 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43144 + done | \
43145 + $(AWK) ' { files[$$0] = 1; } \
43146 + END { for (i in files) print i; }'`; \
43147 + mkid -fID $$unique
43148 +tags: TAGS
43149 +
43150 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
43151 + $(TAGS_FILES) $(LISP)
43152 + tags=; \
43153 + here=`pwd`; \
43154 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43155 + unique=`for i in $$list; do \
43156 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43157 + done | \
43158 + $(AWK) ' { files[$$0] = 1; } \
43159 + END { for (i in files) print i; }'`; \
43160 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
43161 + test -n "$$unique" || unique=$$empty_fix; \
43162 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
43163 + $$tags $$unique; \
43164 + fi
43165 +ctags: CTAGS
43166 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
43167 + $(TAGS_FILES) $(LISP)
43168 + tags=; \
43169 + here=`pwd`; \
43170 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43171 + unique=`for i in $$list; do \
43172 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43173 + done | \
43174 + $(AWK) ' { files[$$0] = 1; } \
43175 + END { for (i in files) print i; }'`; \
43176 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
43177 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
43178 + $$tags $$unique
43179 +
43180 +GTAGS:
43181 + here=`$(am__cd) $(top_builddir) && pwd` \
43182 + && cd $(top_srcdir) \
43183 + && gtags -i $(GTAGS_ARGS) $$here
43184 +
43185 +distclean-tags:
43186 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
43187 +
43188 +distdir: $(DISTFILES)
43189 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
43190 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
43191 + list='$(DISTFILES)'; for file in $$list; do \
43192 + case $$file in \
43193 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
43194 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
43195 + esac; \
43196 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
43197 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
43198 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
43199 + dir="/$$dir"; \
43200 + $(mkdir_p) "$(distdir)$$dir"; \
43201 + else \
43202 + dir=''; \
43203 + fi; \
43204 + if test -d $$d/$$file; then \
43205 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
43206 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
43207 + fi; \
43208 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
43209 + else \
43210 + test -f $(distdir)/$$file \
43211 + || cp -p $$d/$$file $(distdir)/$$file \
43212 + || exit 1; \
43213 + fi; \
43214 + done
43215 +check-am: all-am
43216 +check: $(BUILT_SOURCES)
43217 + $(MAKE) $(AM_MAKEFLAGS) check-am
43218 +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
43219 +install-binPROGRAMS: install-libLTLIBRARIES
43220 +
43221 +installdirs:
43222 + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
43223 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
43224 + done
43225 +install: $(BUILT_SOURCES)
43226 + $(MAKE) $(AM_MAKEFLAGS) install-am
43227 +install-exec: install-exec-am
43228 +install-data: install-data-am
43229 +uninstall: uninstall-am
43230 +
43231 +install-am: all-am
43232 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
43233 +
43234 +installcheck: installcheck-am
43235 +install-strip:
43236 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
43237 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
43238 + `test -z '$(STRIP)' || \
43239 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
43240 +mostlyclean-generic:
43241 +
43242 +clean-generic:
43243 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
43244 +
43245 +distclean-generic:
43246 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
43247 +
43248 +maintainer-clean-generic:
43249 + @echo "This command is intended for maintainers to use"
43250 + @echo "it deletes files that may require special tools to rebuild."
43251 + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
43252 +clean: clean-am
43253 +
43254 +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
43255 + clean-libtool mostlyclean-am
43256 +
43257 +distclean: distclean-am
43258 + -rm -rf ./$(DEPDIR)
43259 + -rm -f Makefile
43260 +distclean-am: clean-am distclean-compile distclean-generic \
43261 + distclean-libtool distclean-tags
43262 +
43263 +dvi: dvi-am
43264 +
43265 +dvi-am:
43266 +
43267 +html: html-am
43268 +
43269 +info: info-am
43270 +
43271 +info-am:
43272 +
43273 +install-data-am: install-includeHEADERS install-nodist_includeHEADERS
43274 +
43275 +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
43276 +
43277 +install-info: install-info-am
43278 +
43279 +install-man:
43280 +
43281 +installcheck-am:
43282 +
43283 +maintainer-clean: maintainer-clean-am
43284 + -rm -rf ./$(DEPDIR)
43285 + -rm -f Makefile
43286 +maintainer-clean-am: distclean-am maintainer-clean-generic
43287 +
43288 +mostlyclean: mostlyclean-am
43289 +
43290 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
43291 + mostlyclean-libtool
43292 +
43293 +pdf: pdf-am
43294 +
43295 +pdf-am:
43296 +
43297 +ps: ps-am
43298 +
43299 +ps-am:
43300 +
43301 +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
43302 + uninstall-info-am uninstall-libLTLIBRARIES \
43303 + uninstall-nodist_includeHEADERS
43304 +
43305 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
43306 + clean-generic clean-libLTLIBRARIES clean-libtool ctags \
43307 + distclean distclean-compile distclean-generic \
43308 + distclean-libtool distclean-tags distdir dvi dvi-am html \
43309 + html-am info info-am install install-am install-binPROGRAMS \
43310 + install-data install-data-am install-exec install-exec-am \
43311 + install-includeHEADERS install-info install-info-am \
43312 + install-libLTLIBRARIES install-man \
43313 + install-nodist_includeHEADERS install-strip installcheck \
43314 + installcheck-am installdirs maintainer-clean \
43315 + maintainer-clean-generic mostlyclean mostlyclean-compile \
43316 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
43317 + tags uninstall uninstall-am uninstall-binPROGRAMS \
43318 + uninstall-includeHEADERS uninstall-info-am \
43319 + uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
43320 +
43321 +
43322 +luaconf.h : $(srcdir)/luaconf.h.template
43323 + rm -f luaconf.h luaconf.h.tmp
43324 + $(edit) $(srcdir)/luaconf.h.template > luaconf.h.tmp
43325 + mv luaconf.h.tmp luaconf.h
43326 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
43327 +# Otherwise a system limit (for SysV at least) may be exceeded.
43328 +.NOEXPORT:
43329 diff -urN lua-5.1.4/test/Makefile.am lua-5.1.4-autotoolize/test/Makefile.am
43330 --- lua-5.1.4/test/Makefile.am 1970-01-01 01:00:00.000000000 +0100
43331 +++ lua-5.1.4-autotoolize/test/Makefile.am 2008-09-03 13:18:37.000000000 +0200
43332 @@ -0,0 +1,5 @@
43333 +EXTRA_DIST = \
43334 + bisect.lua env.lua fib.lua life.lua printf.lua \
43335 + sieve.lua trace-calls.lua cf.lua factorial.lua globals.lua \
43336 + luac.lua README sort.lua trace-globals.lua echo.lua \
43337 + fibfor.lua hello.lua readonly.lua table.lua xd.lua
43338 diff -urN lua-5.1.4/test/Makefile.in lua-5.1.4-autotoolize/test/Makefile.in
43339 --- lua-5.1.4/test/Makefile.in 1970-01-01 01:00:00.000000000 +0100
43340 +++ lua-5.1.4-autotoolize/test/Makefile.in 2008-09-03 13:18:37.000000000 +0200
43341 @@ -0,0 +1,319 @@
43342 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
43343 +# @configure_input@
43344 +
43345 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
43346 +# 2003, 2004, 2005 Free Software Foundation, Inc.
43347 +# This Makefile.in is free software; the Free Software Foundation
43348 +# gives unlimited permission to copy and/or distribute it,
43349 +# with or without modifications, as long as this notice is preserved.
43350 +
43351 +# This program is distributed in the hope that it will be useful,
43352 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
43353 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
43354 +# PARTICULAR PURPOSE.
43355 +
43356 +@SET_MAKE@
43357 +srcdir = @srcdir@
43358 +top_srcdir = @top_srcdir@
43359 +VPATH = @srcdir@
43360 +pkgdatadir = $(datadir)/@PACKAGE@
43361 +pkglibdir = $(libdir)/@PACKAGE@
43362 +pkgincludedir = $(includedir)/@PACKAGE@
43363 +top_builddir = ..
43364 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43365 +INSTALL = @INSTALL@
43366 +install_sh_DATA = $(install_sh) -c -m 644
43367 +install_sh_PROGRAM = $(install_sh) -c
43368 +install_sh_SCRIPT = $(install_sh) -c
43369 +INSTALL_HEADER = $(INSTALL_DATA)
43370 +transform = $(program_transform_name)
43371 +NORMAL_INSTALL = :
43372 +PRE_INSTALL = :
43373 +POST_INSTALL = :
43374 +NORMAL_UNINSTALL = :
43375 +PRE_UNINSTALL = :
43376 +POST_UNINSTALL = :
43377 +build_triplet = @build@
43378 +host_triplet = @host@
43379 +subdir = test
43380 +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
43381 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43382 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
43383 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43384 + $(ACLOCAL_M4)
43385 +mkinstalldirs = $(install_sh) -d
43386 +CONFIG_HEADER = $(top_builddir)/config.h
43387 +CONFIG_CLEAN_FILES =
43388 +SOURCES =
43389 +DIST_SOURCES =
43390 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
43391 +ACLOCAL = @ACLOCAL@
43392 +AMDEP_FALSE = @AMDEP_FALSE@
43393 +AMDEP_TRUE = @AMDEP_TRUE@
43394 +AMTAR = @AMTAR@
43395 +AR = @AR@
43396 +AUTOCONF = @AUTOCONF@
43397 +AUTOHEADER = @AUTOHEADER@
43398 +AUTOMAKE = @AUTOMAKE@
43399 +AWK = @AWK@
43400 +CC = @CC@
43401 +CCDEPMODE = @CCDEPMODE@
43402 +CFLAGS = @CFLAGS@
43403 +CPP = @CPP@
43404 +CPPFLAGS = @CPPFLAGS@
43405 +CXX = @CXX@
43406 +CXXCPP = @CXXCPP@
43407 +CXXDEPMODE = @CXXDEPMODE@
43408 +CXXFLAGS = @CXXFLAGS@
43409 +CYGPATH_W = @CYGPATH_W@
43410 +DEFS = @DEFS@
43411 +DEPDIR = @DEPDIR@
43412 +ECHO = @ECHO@
43413 +ECHO_C = @ECHO_C@
43414 +ECHO_N = @ECHO_N@
43415 +ECHO_T = @ECHO_T@
43416 +EGREP = @EGREP@
43417 +EXEEXT = @EXEEXT@
43418 +F77 = @F77@
43419 +FFLAGS = @FFLAGS@
43420 +INSTALL_DATA = @INSTALL_DATA@
43421 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
43422 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
43423 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
43424 +LDFLAGS = @LDFLAGS@
43425 +LIBOBJS = @LIBOBJS@
43426 +LIBS = @LIBS@
43427 +LIBTOOL = @LIBTOOL@
43428 +LN_S = @LN_S@
43429 +LTLIBOBJS = @LTLIBOBJS@
43430 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
43431 +LUA_DL_DEFS = @LUA_DL_DEFS@
43432 +LUA_LIBS = @LUA_LIBS@
43433 +MAKEINFO = @MAKEINFO@
43434 +OBJEXT = @OBJEXT@
43435 +PACKAGE = @PACKAGE@
43436 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
43437 +PACKAGE_NAME = @PACKAGE_NAME@
43438 +PACKAGE_STRING = @PACKAGE_STRING@
43439 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
43440 +PACKAGE_VERSION = @PACKAGE_VERSION@
43441 +PATH_SEPARATOR = @PATH_SEPARATOR@
43442 +POSIX_DEFS = @POSIX_DEFS@
43443 +RANLIB = @RANLIB@
43444 +READLINE_DEFS = @READLINE_DEFS@
43445 +SET_MAKE = @SET_MAKE@
43446 +SHELL = @SHELL@
43447 +STRIP = @STRIP@
43448 +VERSION = @VERSION@
43449 +ac_ct_AR = @ac_ct_AR@
43450 +ac_ct_CC = @ac_ct_CC@
43451 +ac_ct_CXX = @ac_ct_CXX@
43452 +ac_ct_F77 = @ac_ct_F77@
43453 +ac_ct_RANLIB = @ac_ct_RANLIB@
43454 +ac_ct_STRIP = @ac_ct_STRIP@
43455 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
43456 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
43457 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
43458 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
43459 +am__include = @am__include@
43460 +am__leading_dot = @am__leading_dot@
43461 +am__quote = @am__quote@
43462 +am__tar = @am__tar@
43463 +am__untar = @am__untar@
43464 +bindir = @bindir@
43465 +build = @build@
43466 +build_alias = @build_alias@
43467 +build_cpu = @build_cpu@
43468 +build_os = @build_os@
43469 +build_vendor = @build_vendor@
43470 +datadir = @datadir@
43471 +exec_prefix = @exec_prefix@
43472 +host = @host@
43473 +host_alias = @host_alias@
43474 +host_cpu = @host_cpu@
43475 +host_os = @host_os@
43476 +host_vendor = @host_vendor@
43477 +includedir = @includedir@
43478 +infodir = @infodir@
43479 +install_sh = @install_sh@
43480 +libdir = @libdir@
43481 +libexecdir = @libexecdir@
43482 +localstatedir = @localstatedir@
43483 +mandir = @mandir@
43484 +mkdir_p = @mkdir_p@
43485 +oldincludedir = @oldincludedir@
43486 +prefix = @prefix@
43487 +program_transform_name = @program_transform_name@
43488 +sbindir = @sbindir@
43489 +sharedstatedir = @sharedstatedir@
43490 +sysconfdir = @sysconfdir@
43491 +target_alias = @target_alias@
43492 +EXTRA_DIST = \
43493 + bisect.lua env.lua fib.lua life.lua printf.lua \
43494 + sieve.lua trace-calls.lua cf.lua factorial.lua globals.lua \
43495 + luac.lua README sort.lua trace-globals.lua echo.lua \
43496 + fibfor.lua hello.lua readonly.lua table.lua xd.lua
43497 +
43498 +all: all-am
43499 +
43500 +.SUFFIXES:
43501 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
43502 + @for dep in $?; do \
43503 + case '$(am__configure_deps)' in \
43504 + *$$dep*) \
43505 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
43506 + && exit 0; \
43507 + exit 1;; \
43508 + esac; \
43509 + done; \
43510 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
43511 + cd $(top_srcdir) && \
43512 + $(AUTOMAKE) --foreign test/Makefile
43513 +.PRECIOUS: Makefile
43514 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
43515 + @case '$?' in \
43516 + *config.status*) \
43517 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
43518 + *) \
43519 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
43520 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
43521 + esac;
43522 +
43523 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
43524 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43525 +
43526 +$(top_srcdir)/configure: $(am__configure_deps)
43527 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43528 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
43529 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43530 +
43531 +mostlyclean-libtool:
43532 + -rm -f *.lo
43533 +
43534 +clean-libtool:
43535 + -rm -rf .libs _libs
43536 +
43537 +distclean-libtool:
43538 + -rm -f libtool
43539 +uninstall-info-am:
43540 +tags: TAGS
43541 +TAGS:
43542 +
43543 +ctags: CTAGS
43544 +CTAGS:
43545 +
43546 +
43547 +distdir: $(DISTFILES)
43548 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
43549 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
43550 + list='$(DISTFILES)'; for file in $$list; do \
43551 + case $$file in \
43552 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
43553 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
43554 + esac; \
43555 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
43556 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
43557 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
43558 + dir="/$$dir"; \
43559 + $(mkdir_p) "$(distdir)$$dir"; \
43560 + else \
43561 + dir=''; \
43562 + fi; \
43563 + if test -d $$d/$$file; then \
43564 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
43565 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
43566 + fi; \
43567 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
43568 + else \
43569 + test -f $(distdir)/$$file \
43570 + || cp -p $$d/$$file $(distdir)/$$file \
43571 + || exit 1; \
43572 + fi; \
43573 + done
43574 +check-am: all-am
43575 +check: check-am
43576 +all-am: Makefile
43577 +installdirs:
43578 +install: install-am
43579 +install-exec: install-exec-am
43580 +install-data: install-data-am
43581 +uninstall: uninstall-am
43582 +
43583 +install-am: all-am
43584 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
43585 +
43586 +installcheck: installcheck-am
43587 +install-strip:
43588 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
43589 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
43590 + `test -z '$(STRIP)' || \
43591 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
43592 +mostlyclean-generic:
43593 +
43594 +clean-generic:
43595 +
43596 +distclean-generic:
43597 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
43598 +
43599 +maintainer-clean-generic:
43600 + @echo "This command is intended for maintainers to use"
43601 + @echo "it deletes files that may require special tools to rebuild."
43602 +clean: clean-am
43603 +
43604 +clean-am: clean-generic clean-libtool mostlyclean-am
43605 +
43606 +distclean: distclean-am
43607 + -rm -f Makefile
43608 +distclean-am: clean-am distclean-generic distclean-libtool
43609 +
43610 +dvi: dvi-am
43611 +
43612 +dvi-am:
43613 +
43614 +html: html-am
43615 +
43616 +info: info-am
43617 +
43618 +info-am:
43619 +
43620 +install-data-am:
43621 +
43622 +install-exec-am:
43623 +
43624 +install-info: install-info-am
43625 +
43626 +install-man:
43627 +
43628 +installcheck-am:
43629 +
43630 +maintainer-clean: maintainer-clean-am
43631 + -rm -f Makefile
43632 +maintainer-clean-am: distclean-am maintainer-clean-generic
43633 +
43634 +mostlyclean: mostlyclean-am
43635 +
43636 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
43637 +
43638 +pdf: pdf-am
43639 +
43640 +pdf-am:
43641 +
43642 +ps: ps-am
43643 +
43644 +ps-am:
43645 +
43646 +uninstall-am: uninstall-info-am
43647 +
43648 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
43649 + distclean distclean-generic distclean-libtool distdir dvi \
43650 + dvi-am html html-am info info-am install install-am \
43651 + install-data install-data-am install-exec install-exec-am \
43652 + install-info install-info-am install-man install-strip \
43653 + installcheck installcheck-am installdirs maintainer-clean \
43654 + maintainer-clean-generic mostlyclean mostlyclean-generic \
43655 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
43656 + uninstall-info-am
43657 +
43658 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
43659 +# Otherwise a system limit (for SysV at least) may be exceeded.
43660 +.NOEXPORT: