comparison ext/guichan-0.8.1/aclocal.m4 @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 # generated automatically by aclocal 1.10 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_if(m4_PACKAGE_VERSION, [2.61],,
15 [m4_fatal([this file was generated for autoconf 2.61.
16 You have another version of autoconf. If you want to use that,
17 you should regenerate the build system entirely.], [63])])
18
19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
21 # serial 47 AC_PROG_LIBTOOL
22
23
24 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
25 # -----------------------------------------------------------
26 # If this macro is not defined by Autoconf, define it here.
27 m4_ifdef([AC_PROVIDE_IFELSE],
28 [],
29 [m4_define([AC_PROVIDE_IFELSE],
30 [m4_ifdef([AC_PROVIDE_$1],
31 [$2], [$3])])])
32
33
34 # AC_PROG_LIBTOOL
35 # ---------------
36 AC_DEFUN([AC_PROG_LIBTOOL],
37 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
38 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
39 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
40 AC_PROVIDE_IFELSE([AC_PROG_CXX],
41 [AC_LIBTOOL_CXX],
42 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
43 ])])
44 dnl And a similar setup for Fortran 77 support
45 AC_PROVIDE_IFELSE([AC_PROG_F77],
46 [AC_LIBTOOL_F77],
47 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
48 ])])
49
50 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
51 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
52 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
53 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
54 [AC_LIBTOOL_GCJ],
55 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
56 [AC_LIBTOOL_GCJ],
57 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
58 [AC_LIBTOOL_GCJ],
59 [ifdef([AC_PROG_GCJ],
60 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
61 ifdef([A][M_PROG_GCJ],
62 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
63 ifdef([LT_AC_PROG_GCJ],
64 [define([LT_AC_PROG_GCJ],
65 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
66 ])])# AC_PROG_LIBTOOL
67
68
69 # _AC_PROG_LIBTOOL
70 # ----------------
71 AC_DEFUN([_AC_PROG_LIBTOOL],
72 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
73 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
74 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
75 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
76
77 # This can be used to rebuild libtool when needed
78 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
79
80 # Always use our own libtool.
81 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
82 AC_SUBST(LIBTOOL)dnl
83
84 # Prevent multiple expansion
85 define([AC_PROG_LIBTOOL], [])
86 ])# _AC_PROG_LIBTOOL
87
88
89 # AC_LIBTOOL_SETUP
90 # ----------------
91 AC_DEFUN([AC_LIBTOOL_SETUP],
92 [AC_PREREQ(2.50)dnl
93 AC_REQUIRE([AC_ENABLE_SHARED])dnl
94 AC_REQUIRE([AC_ENABLE_STATIC])dnl
95 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
96 AC_REQUIRE([AC_CANONICAL_HOST])dnl
97 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
98 AC_REQUIRE([AC_PROG_CC])dnl
99 AC_REQUIRE([AC_PROG_LD])dnl
100 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
101 AC_REQUIRE([AC_PROG_NM])dnl
102
103 AC_REQUIRE([AC_PROG_LN_S])dnl
104 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
105 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
106 AC_REQUIRE([AC_OBJEXT])dnl
107 AC_REQUIRE([AC_EXEEXT])dnl
108 dnl
109
110 AC_LIBTOOL_SYS_MAX_CMD_LEN
111 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
112 AC_LIBTOOL_OBJDIR
113
114 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
115 _LT_AC_PROG_ECHO_BACKSLASH
116
117 case $host_os in
118 aix3*)
119 # AIX sometimes has problems with the GCC collect2 program. For some
120 # reason, if we set the COLLECT_NAMES environment variable, the problems
121 # vanish in a puff of smoke.
122 if test "X${COLLECT_NAMES+set}" != Xset; then
123 COLLECT_NAMES=
124 export COLLECT_NAMES
125 fi
126 ;;
127 esac
128
129 # Sed substitution that helps us do robust quoting. It backslashifies
130 # metacharacters that are still active within double-quoted strings.
131 Xsed='sed -e s/^X//'
132 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
133
134 # Same as above, but do not quote variable references.
135 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
136
137 # Sed substitution to delay expansion of an escaped shell variable in a
138 # double_quote_subst'ed string.
139 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
140
141 # Sed substitution to avoid accidental globbing in evaled expressions
142 no_glob_subst='s/\*/\\\*/g'
143
144 # Constants:
145 rm="rm -f"
146
147 # Global variables:
148 default_ofile=libtool
149 can_build_shared=yes
150
151 # All known linkers require a `.a' archive for static linking (except M$VC,
152 # which needs '.lib').
153 libext=a
154 ltmain="$ac_aux_dir/ltmain.sh"
155 ofile="$default_ofile"
156 with_gnu_ld="$lt_cv_prog_gnu_ld"
157
158 AC_CHECK_TOOL(AR, ar, false)
159 AC_CHECK_TOOL(RANLIB, ranlib, :)
160 AC_CHECK_TOOL(STRIP, strip, :)
161
162 old_CC="$CC"
163 old_CFLAGS="$CFLAGS"
164
165 # Set sane defaults for various variables
166 test -z "$AR" && AR=ar
167 test -z "$AR_FLAGS" && AR_FLAGS=cru
168 test -z "$AS" && AS=as
169 test -z "$CC" && CC=cc
170 test -z "$LTCC" && LTCC=$CC
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="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
191 ;;
192 *)
193 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
194 ;;
195 esac
196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197 fi
198
199 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
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 -z "$ltmain"; then
246 AC_MSG_RESULT(no)
247 echo
248 echo "*** [Gentoo] sanity check failed! ***"
249 echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
250 echo
251 exit 1
252 fi
253 gentoo_lt_version="1.5.10"
254 gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
255 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
256 AC_MSG_RESULT(no)
257 echo
258 echo "*** [Gentoo] sanity check failed! ***"
259 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
260 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
261 echo
262 echo "Please run:"
263 echo
264 echo " libtoolize --copy --force"
265 echo
266 echo "if appropriate, please contact the maintainer of this"
267 echo "package (or your distribution) for help."
268 echo
269 exit 1
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 # Allow CC to be a program name with arguments.
285 compiler=$CC
286 ])# _LT_AC_SYS_COMPILER
287
288
289 # _LT_AC_SYS_LIBPATH_AIX
290 # ----------------------
291 # Links a minimal program and checks the executable
292 # for the system default hardcoded library path. In most cases,
293 # this is /usr/lib:/lib, but when the MPI compilers are used
294 # the location of the communication and MPI libs are included too.
295 # If we don't find anything, use the default library path according
296 # to the aix ld manual.
297 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
298 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
300 }'`
301 # Check for a 64-bit object if we didn't find anything.
302 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; }
303 }'`; fi],[])
304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
305 ])# _LT_AC_SYS_LIBPATH_AIX
306
307
308 # _LT_AC_SHELL_INIT(ARG)
309 # ----------------------
310 AC_DEFUN([_LT_AC_SHELL_INIT],
311 [ifdef([AC_DIVERSION_NOTICE],
312 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
313 [AC_DIVERT_PUSH(NOTICE)])
314 $1
315 AC_DIVERT_POP
316 ])# _LT_AC_SHELL_INIT
317
318
319 # _LT_AC_PROG_ECHO_BACKSLASH
320 # --------------------------
321 # Add some code to the start of the generated configure script which
322 # will find an echo command which doesn't interpret backslashes.
323 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
324 [_LT_AC_SHELL_INIT([
325 # Check that we are running under the correct shell.
326 SHELL=${CONFIG_SHELL-/bin/sh}
327
328 case X$ECHO in
329 X*--fallback-echo)
330 # Remove one level of quotation (which was required for Make).
331 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
332 ;;
333 esac
334
335 echo=${ECHO-echo}
336 if test "X[$]1" = X--no-reexec; then
337 # Discard the --no-reexec flag, and continue.
338 shift
339 elif test "X[$]1" = X--fallback-echo; then
340 # Avoid inline document here, it may be left over
341 :
342 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
343 # Yippee, $echo works!
344 :
345 else
346 # Restart under the correct shell.
347 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
348 fi
349
350 if test "X[$]1" = X--fallback-echo; then
351 # used as fallback echo
352 shift
353 cat <<EOF
354 [$]*
355 EOF
356 exit 0
357 fi
358
359 # The HP-UX ksh and POSIX shell print the target directory to stdout
360 # if CDPATH is set.
361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
362
363 if test -z "$ECHO"; then
364 if test "X${echo_test_string+set}" != Xset; then
365 # find a string as large as possible, as long as the shell can cope with it
366 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
367 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
368 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
369 echo_test_string="`eval $cmd`" &&
370 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
371 then
372 break
373 fi
374 done
375 fi
376
377 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
378 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
379 test "X$echo_testing_string" = "X$echo_test_string"; then
380 :
381 else
382 # The Solaris, AIX, and Digital Unix default echo programs unquote
383 # backslashes. This makes it impossible to quote backslashes using
384 # echo "$something" | sed 's/\\/\\\\/g'
385 #
386 # So, first we look for a working echo in the user's PATH.
387
388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
389 for dir in $PATH /usr/ucb; do
390 IFS="$lt_save_ifs"
391 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
392 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
393 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
394 test "X$echo_testing_string" = "X$echo_test_string"; then
395 echo="$dir/echo"
396 break
397 fi
398 done
399 IFS="$lt_save_ifs"
400
401 if test "X$echo" = Xecho; then
402 # We didn't find a better echo, so look for alternatives.
403 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
404 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
405 test "X$echo_testing_string" = "X$echo_test_string"; then
406 # This shell has a builtin print -r that does the trick.
407 echo='print -r'
408 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
409 test "X$CONFIG_SHELL" != X/bin/ksh; then
410 # If we have ksh, try running configure again with it.
411 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
412 export ORIGINAL_CONFIG_SHELL
413 CONFIG_SHELL=/bin/ksh
414 export CONFIG_SHELL
415 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
416 else
417 # Try using printf.
418 echo='printf %s\n'
419 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
420 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
421 test "X$echo_testing_string" = "X$echo_test_string"; then
422 # Cool, printf works
423 :
424 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
425 test "X$echo_testing_string" = 'X\t' &&
426 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
427 test "X$echo_testing_string" = "X$echo_test_string"; then
428 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
429 export CONFIG_SHELL
430 SHELL="$CONFIG_SHELL"
431 export SHELL
432 echo="$CONFIG_SHELL [$]0 --fallback-echo"
433 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
434 test "X$echo_testing_string" = 'X\t' &&
435 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
436 test "X$echo_testing_string" = "X$echo_test_string"; then
437 echo="$CONFIG_SHELL [$]0 --fallback-echo"
438 else
439 # maybe with a smaller string...
440 prev=:
441
442 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
443 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
444 then
445 break
446 fi
447 prev="$cmd"
448 done
449
450 if test "$prev" != 'sed 50q "[$]0"'; then
451 echo_test_string=`eval $prev`
452 export echo_test_string
453 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
454 else
455 # Oops. We lost completely, so just stick with echo.
456 echo=echo
457 fi
458 fi
459 fi
460 fi
461 fi
462 fi
463
464 # Copy echo and quote the copy suitably for passing to libtool from
465 # the Makefile, instead of quoting the original, which is used later.
466 ECHO=$echo
467 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
468 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
469 fi
470
471 AC_SUBST(ECHO)
472 ])])# _LT_AC_PROG_ECHO_BACKSLASH
473
474
475 # _LT_AC_LOCK
476 # -----------
477 AC_DEFUN([_LT_AC_LOCK],
478 [AC_ARG_ENABLE([libtool-lock],
479 [AC_HELP_STRING([--disable-libtool-lock],
480 [avoid locking (might break parallel builds)])])
481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
482
483 # Some flags need to be propagated to the compiler or linker for good
484 # libtool support.
485 case $host in
486 ia64-*-hpux*)
487 # Find out which ABI we are using.
488 echo 'int i;' > conftest.$ac_ext
489 if AC_TRY_EVAL(ac_compile); then
490 case `/usr/bin/file conftest.$ac_objext` in
491 *ELF-32*)
492 HPUX_IA64_MODE="32"
493 ;;
494 *ELF-64*)
495 HPUX_IA64_MODE="64"
496 ;;
497 esac
498 fi
499 rm -rf conftest*
500 ;;
501 *-*-irix6*)
502 # Find out which ABI we are using.
503 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
504 if AC_TRY_EVAL(ac_compile); then
505 if test "$lt_cv_prog_gnu_ld" = yes; then
506 case `/usr/bin/file conftest.$ac_objext` in
507 *32-bit*)
508 LD="${LD-ld} -melf32bsmip"
509 ;;
510 *N32*)
511 LD="${LD-ld} -melf32bmipn32"
512 ;;
513 *64-bit*)
514 LD="${LD-ld} -melf64bmip"
515 ;;
516 esac
517 else
518 case `/usr/bin/file conftest.$ac_objext` in
519 *32-bit*)
520 LD="${LD-ld} -32"
521 ;;
522 *N32*)
523 LD="${LD-ld} -n32"
524 ;;
525 *64-bit*)
526 LD="${LD-ld} -64"
527 ;;
528 esac
529 fi
530 fi
531 rm -rf conftest*
532 ;;
533
534 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
535 # Find out which ABI we are using.
536 echo 'int i;' > conftest.$ac_ext
537 if AC_TRY_EVAL(ac_compile); then
538 case "`/usr/bin/file conftest.o`" in
539 *32-bit*)
540 case $host in
541 x86_64-*linux*)
542 LD="${LD-ld} -m elf_i386"
543 ;;
544 ppc64-*linux*|powerpc64-*linux*)
545 LD="${LD-ld} -m elf32ppclinux"
546 ;;
547 s390x-*linux*)
548 LD="${LD-ld} -m elf_s390"
549 ;;
550 sparc64-*linux*)
551 LD="${LD-ld} -m elf32_sparc"
552 ;;
553 esac
554 ;;
555 *64-bit*)
556 case $host in
557 x86_64-*linux*)
558 LD="${LD-ld} -m elf_x86_64"
559 ;;
560 ppc*-*linux*|powerpc*-*linux*)
561 LD="${LD-ld} -m elf64ppc"
562 ;;
563 s390*-*linux*)
564 LD="${LD-ld} -m elf64_s390"
565 ;;
566 sparc*-*linux*)
567 LD="${LD-ld} -m elf64_sparc"
568 ;;
569 esac
570 ;;
571 esac
572 fi
573 rm -rf conftest*
574 ;;
575
576 *-*-linux*)
577 # Test if the compiler is 64bit
578 echo 'int i;' > conftest.$ac_ext
579 lt_cv_cc_64bit_output=no
580 if AC_TRY_EVAL(ac_compile); then
581 case `/usr/bin/file conftest.$ac_objext` in
582 *"ELF 64"*)
583 lt_cv_cc_64bit_output=yes
584 ;;
585 esac
586 fi
587 rm -rf conftest*
588 ;;
589
590 *-*-sco3.2v5*)
591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
592 SAVE_CFLAGS="$CFLAGS"
593 CFLAGS="$CFLAGS -belf"
594 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
595 [AC_LANG_PUSH(C)
596 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
597 AC_LANG_POP])
598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
600 CFLAGS="$SAVE_CFLAGS"
601 fi
602 ;;
603 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
604 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
605 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
606 AC_CHECK_TOOL(AS, as, false)
607 AC_CHECK_TOOL(OBJDUMP, objdump, false)
608 ;;
609 ])
610 esac
611
612 need_locks="$enable_libtool_lock"
613
614 ])# _LT_AC_LOCK
615
616
617 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
618 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
619 # ----------------------------------------------------------------
620 # Check whether the given compiler option works
621 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
622 [AC_REQUIRE([LT_AC_PROG_SED])
623 AC_CACHE_CHECK([$1], [$2],
624 [$2=no
625 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
627 lt_compiler_flag="$3"
628 # Insert the option either (1) after the last *FLAGS variable, or
629 # (2) before a word containing "conftest.", or (3) at the end.
630 # Note that $ac_compile itself does not contain backslashes and begins
631 # with a dollar sign (not a hyphen), so the echo should work correctly.
632 # The option is referenced via a variable to avoid confusing sed.
633 lt_compile=`echo "$ac_compile" | $SED \
634 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
635 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
636 -e 's:$: $lt_compiler_flag:'`
637 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
638 (eval "$lt_compile" 2>conftest.err)
639 ac_status=$?
640 cat conftest.err >&AS_MESSAGE_LOG_FD
641 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
642 if (exit $ac_status) && test -s "$ac_outfile"; then
643 # The compiler can only warn and ignore the option if not recognized
644 # So say no if there are warnings
645 if test ! -s conftest.err; then
646 $2=yes
647 fi
648 fi
649 $rm conftest*
650 ])
651
652 if test x"[$]$2" = xyes; then
653 ifelse([$5], , :, [$5])
654 else
655 ifelse([$6], , :, [$6])
656 fi
657 ])# AC_LIBTOOL_COMPILER_OPTION
658
659
660 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
661 # [ACTION-SUCCESS], [ACTION-FAILURE])
662 # ------------------------------------------------------------
663 # Check whether the given compiler option works
664 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
665 [AC_CACHE_CHECK([$1], [$2],
666 [$2=no
667 save_LDFLAGS="$LDFLAGS"
668 LDFLAGS="$LDFLAGS $3"
669 printf "$lt_simple_link_test_code" > conftest.$ac_ext
670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
671 # The compiler can only warn and ignore the option if not recognized
672 # So say no if there are warnings
673 if test -s conftest.err; then
674 # Append any errors to the config.log.
675 cat conftest.err 1>&AS_MESSAGE_LOG_FD
676 else
677 $2=yes
678 fi
679 fi
680 $rm conftest*
681 LDFLAGS="$save_LDFLAGS"
682 ])
683
684 if test x"[$]$2" = xyes; then
685 ifelse([$4], , :, [$4])
686 else
687 ifelse([$5], , :, [$5])
688 fi
689 ])# AC_LIBTOOL_LINKER_OPTION
690
691
692 # AC_LIBTOOL_SYS_MAX_CMD_LEN
693 # --------------------------
694 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
695 [# find the maximum length of command line arguments
696 AC_MSG_CHECKING([the maximum length of command line arguments])
697 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
698 i=0
699 teststring="ABCD"
700
701 case $build_os in
702 msdosdjgpp*)
703 # On DJGPP, this test can blow up pretty badly due to problems in libc
704 # (any single argument exceeding 2000 bytes causes a buffer overrun
705 # during glob expansion). Even if it were fixed, the result of this
706 # check would be larger than it should be.
707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
708 ;;
709
710 gnu*)
711 # Under GNU Hurd, this test is not required because there is
712 # no limit to the length of command line arguments.
713 # Libtool will interpret -1 as no limit whatsoever
714 lt_cv_sys_max_cmd_len=-1;
715 ;;
716
717 cygwin* | mingw*)
718 # On Win9x/ME, this test blows up -- it succeeds, but takes
719 # about 5 minutes as the teststring grows exponentially.
720 # Worse, since 9x/ME are not pre-emptively multitasking,
721 # you end up with a "frozen" computer, even though with patience
722 # the test eventually succeeds (with a max line length of 256k).
723 # Instead, let's just punt: use the minimum linelength reported by
724 # all of the supported platforms: 8192 (on NT/2K/XP).
725 lt_cv_sys_max_cmd_len=8192;
726 ;;
727
728 amigaos*)
729 # On AmigaOS with pdksh, this test takes hours, literally.
730 # So we just punt and use a minimum line length of 8192.
731 lt_cv_sys_max_cmd_len=8192;
732 ;;
733
734 netbsd* | freebsd* | openbsd* | darwin* )
735 # This has been around since 386BSD, at least. Likely further.
736 if test -x /sbin/sysctl; then
737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
738 elif test -x /usr/sbin/sysctl; then
739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
740 else
741 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
742 fi
743 # And add a safety zone
744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
745 ;;
746
747 *)
748 # If test is not a shell built-in, we'll probably end up computing a
749 # maximum length that is only half of the actual maximum length, but
750 # we can't tell.
751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
752 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
753 = "XX$teststring") >/dev/null 2>&1 &&
754 new_result=`expr "X$teststring" : ".*" 2>&1` &&
755 lt_cv_sys_max_cmd_len=$new_result &&
756 test $i != 17 # 1/2 MB should be enough
757 do
758 i=`expr $i + 1`
759 teststring=$teststring$teststring
760 done
761 teststring=
762 # Add a significant safety factor because C++ compilers can tack on massive
763 # amounts of additional arguments before passing them to the linker.
764 # It appears as though 1/2 is a usable value.
765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
766 ;;
767 esac
768 ])
769 if test -n $lt_cv_sys_max_cmd_len ; then
770 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
771 else
772 AC_MSG_RESULT(none)
773 fi
774 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
775
776
777 # _LT_AC_CHECK_DLFCN
778 # --------------------
779 AC_DEFUN([_LT_AC_CHECK_DLFCN],
780 [AC_CHECK_HEADERS(dlfcn.h)dnl
781 ])# _LT_AC_CHECK_DLFCN
782
783
784 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
785 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
786 # ------------------------------------------------------------------
787 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
788 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
789 if test "$cross_compiling" = yes; then :
790 [$4]
791 else
792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
793 lt_status=$lt_dlunknown
794 cat > conftest.$ac_ext <<EOF
795 [#line __oline__ "configure"
796 #include "confdefs.h"
797
798 #if HAVE_DLFCN_H
799 #include <dlfcn.h>
800 #endif
801
802 #include <stdio.h>
803
804 #ifdef RTLD_GLOBAL
805 # define LT_DLGLOBAL RTLD_GLOBAL
806 #else
807 # ifdef DL_GLOBAL
808 # define LT_DLGLOBAL DL_GLOBAL
809 # else
810 # define LT_DLGLOBAL 0
811 # endif
812 #endif
813
814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
815 find out it does not work in some platform. */
816 #ifndef LT_DLLAZY_OR_NOW
817 # ifdef RTLD_LAZY
818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
819 # else
820 # ifdef DL_LAZY
821 # define LT_DLLAZY_OR_NOW DL_LAZY
822 # else
823 # ifdef RTLD_NOW
824 # define LT_DLLAZY_OR_NOW RTLD_NOW
825 # else
826 # ifdef DL_NOW
827 # define LT_DLLAZY_OR_NOW DL_NOW
828 # else
829 # define LT_DLLAZY_OR_NOW 0
830 # endif
831 # endif
832 # endif
833 # endif
834 #endif
835
836 #ifdef __cplusplus
837 extern "C" void exit (int);
838 #endif
839
840 void fnord() { int i=42;}
841 int main ()
842 {
843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
844 int status = $lt_dlunknown;
845
846 if (self)
847 {
848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
850 /* dlclose (self); */
851 }
852
853 exit (status);
854 }]
855 EOF
856 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
857 (./conftest; exit; ) 2>/dev/null
858 lt_status=$?
859 case x$lt_status in
860 x$lt_dlno_uscore) $1 ;;
861 x$lt_dlneed_uscore) $2 ;;
862 x$lt_unknown|x*) $3 ;;
863 esac
864 else :
865 # compilation failed
866 $3
867 fi
868 fi
869 rm -fr conftest*
870 ])# _LT_AC_TRY_DLOPEN_SELF
871
872
873 # AC_LIBTOOL_DLOPEN_SELF
874 # -------------------
875 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
876 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
877 if test "x$enable_dlopen" != xyes; then
878 enable_dlopen=unknown
879 enable_dlopen_self=unknown
880 enable_dlopen_self_static=unknown
881 else
882 lt_cv_dlopen=no
883 lt_cv_dlopen_libs=
884
885 case $host_os in
886 beos*)
887 lt_cv_dlopen="load_add_on"
888 lt_cv_dlopen_libs=
889 lt_cv_dlopen_self=yes
890 ;;
891
892 mingw* | pw32*)
893 lt_cv_dlopen="LoadLibrary"
894 lt_cv_dlopen_libs=
895 ;;
896
897 cygwin*)
898 lt_cv_dlopen="dlopen"
899 lt_cv_dlopen_libs=
900 ;;
901
902 darwin*)
903 # if libdl is installed we need to link against it
904 AC_CHECK_LIB([dl], [dlopen],
905 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
906 lt_cv_dlopen="dyld"
907 lt_cv_dlopen_libs=
908 lt_cv_dlopen_self=yes
909 ])
910 ;;
911
912 *)
913 AC_CHECK_FUNC([shl_load],
914 [lt_cv_dlopen="shl_load"],
915 [AC_CHECK_LIB([dld], [shl_load],
916 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
917 [AC_CHECK_FUNC([dlopen],
918 [lt_cv_dlopen="dlopen"],
919 [AC_CHECK_LIB([dl], [dlopen],
920 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
921 [AC_CHECK_LIB([svld], [dlopen],
922 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
923 [AC_CHECK_LIB([dld], [dld_link],
924 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
925 ])
926 ])
927 ])
928 ])
929 ])
930 ;;
931 esac
932
933 if test "x$lt_cv_dlopen" != xno; then
934 enable_dlopen=yes
935 else
936 enable_dlopen=no
937 fi
938
939 case $lt_cv_dlopen in
940 dlopen)
941 save_CPPFLAGS="$CPPFLAGS"
942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
943
944 save_LDFLAGS="$LDFLAGS"
945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
946
947 save_LIBS="$LIBS"
948 LIBS="$lt_cv_dlopen_libs $LIBS"
949
950 AC_CACHE_CHECK([whether a program can dlopen itself],
951 lt_cv_dlopen_self, [dnl
952 _LT_AC_TRY_DLOPEN_SELF(
953 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
954 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
955 ])
956
957 if test "x$lt_cv_dlopen_self" = xyes; then
958 LDFLAGS="$LDFLAGS $link_static_flag"
959 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
960 lt_cv_dlopen_self_static, [dnl
961 _LT_AC_TRY_DLOPEN_SELF(
962 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
963 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
964 ])
965 fi
966
967 CPPFLAGS="$save_CPPFLAGS"
968 LDFLAGS="$save_LDFLAGS"
969 LIBS="$save_LIBS"
970 ;;
971 esac
972
973 case $lt_cv_dlopen_self in
974 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
975 *) enable_dlopen_self=unknown ;;
976 esac
977
978 case $lt_cv_dlopen_self_static in
979 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
980 *) enable_dlopen_self_static=unknown ;;
981 esac
982 fi
983 ])# AC_LIBTOOL_DLOPEN_SELF
984
985
986 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
987 # ---------------------------------
988 # Check to see if options -c and -o are simultaneously supported by compiler
989 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
990 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
991 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
992 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
993 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
994 $rm -r conftest 2>/dev/null
995 mkdir conftest
996 cd conftest
997 mkdir out
998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
999
1000 lt_compiler_flag="-o out/conftest2.$ac_objext"
1001 # Insert the option either (1) after the last *FLAGS variable, or
1002 # (2) before a word containing "conftest.", or (3) at the end.
1003 # Note that $ac_compile itself does not contain backslashes and begins
1004 # with a dollar sign (not a hyphen), so the echo should work correctly.
1005 lt_compile=`echo "$ac_compile" | $SED \
1006 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1007 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1008 -e 's:$: $lt_compiler_flag:'`
1009 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1010 (eval "$lt_compile" 2>out/conftest.err)
1011 ac_status=$?
1012 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1013 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1015 then
1016 # The compiler can only warn and ignore the option if not recognized
1017 # So say no if there are warnings
1018 if test ! -s out/conftest.err; then
1019 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1020 fi
1021 fi
1022 chmod u+w .
1023 $rm conftest*
1024 # SGI C++ compiler will create directory out/ii_files/ for
1025 # template instantiation
1026 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1027 $rm out/* && rmdir out
1028 cd ..
1029 rmdir conftest
1030 $rm conftest*
1031 ])
1032 ])# AC_LIBTOOL_PROG_CC_C_O
1033
1034
1035 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1036 # -----------------------------------------
1037 # Check to see if we can do hard links to lock some files if needed
1038 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1039 [AC_REQUIRE([_LT_AC_LOCK])dnl
1040
1041 hard_links="nottested"
1042 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1043 # do not overwrite the value of need_locks provided by the user
1044 AC_MSG_CHECKING([if we can lock with hard links])
1045 hard_links=yes
1046 $rm conftest*
1047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1048 touch conftest.a
1049 ln conftest.a conftest.b 2>&5 || hard_links=no
1050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1051 AC_MSG_RESULT([$hard_links])
1052 if test "$hard_links" = no; then
1053 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1054 need_locks=warn
1055 fi
1056 else
1057 need_locks=no
1058 fi
1059 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1060
1061
1062 # AC_LIBTOOL_OBJDIR
1063 # -----------------
1064 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1065 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1066 [rm -f .libs 2>/dev/null
1067 mkdir .libs 2>/dev/null
1068 if test -d .libs; then
1069 lt_cv_objdir=.libs
1070 else
1071 # MS-DOS does not allow filenames that begin with a dot.
1072 lt_cv_objdir=_libs
1073 fi
1074 rmdir .libs 2>/dev/null])
1075 objdir=$lt_cv_objdir
1076 ])# AC_LIBTOOL_OBJDIR
1077
1078
1079 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1080 # ----------------------------------------------
1081 # Check hardcoding attributes.
1082 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1083 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1084 _LT_AC_TAGVAR(hardcode_action, $1)=
1085 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1086 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1087 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1088
1089 # We can hardcode non-existant directories.
1090 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1092 # have to relink, otherwise we might link with an installed library
1093 # when we should be linking with a yet-to-be-installed one
1094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1095 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1096 # Linking always hardcodes the temporary library directory.
1097 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1098 else
1099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1100 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1101 fi
1102 else
1103 # We cannot hardcode anything, or else we can only hardcode existing
1104 # directories.
1105 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1106 fi
1107 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1108
1109 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1110 # Fast installation is not supported
1111 enable_fast_install=no
1112 elif test "$shlibpath_overrides_runpath" = yes ||
1113 test "$enable_shared" = no; then
1114 # Fast installation is not necessary
1115 enable_fast_install=needless
1116 fi
1117 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1118
1119
1120 # AC_LIBTOOL_SYS_LIB_STRIP
1121 # ------------------------
1122 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1123 [striplib=
1124 old_striplib=
1125 AC_MSG_CHECKING([whether stripping libraries is possible])
1126 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1128 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1129 AC_MSG_RESULT([yes])
1130 else
1131 # FIXME - insert some real tests, host_os isn't really good enough
1132 case $host_os in
1133 darwin*)
1134 if test -n "$STRIP" ; then
1135 striplib="$STRIP -x"
1136 AC_MSG_RESULT([yes])
1137 else
1138 AC_MSG_RESULT([no])
1139 fi
1140 ;;
1141 *)
1142 AC_MSG_RESULT([no])
1143 ;;
1144 esac
1145 fi
1146 ])# AC_LIBTOOL_SYS_LIB_STRIP
1147
1148
1149 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1150 # -----------------------------
1151 # PORTME Fill in your ld.so characteristics
1152 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1153 [AC_MSG_CHECKING([dynamic linker characteristics])
1154 library_names_spec=
1155 libname_spec='lib$name'
1156 soname_spec=
1157 shrext_cmds=".so"
1158 postinstall_cmds=
1159 postuninstall_cmds=
1160 finish_cmds=
1161 finish_eval=
1162 shlibpath_var=
1163 shlibpath_overrides_runpath=unknown
1164 version_type=none
1165 dynamic_linker="$host_os ld.so"
1166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1167 if test "$GCC" = yes; then
1168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1170 # if the path contains ";" then we assume it to be the separator
1171 # otherwise default to the standard path separator (i.e. ":") - it is
1172 # assumed that no part of a normal pathname contains ";" but that should
1173 # okay in the real world where ";" in dirpaths is itself problematic.
1174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1175 else
1176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1177 fi
1178 else
1179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1180 fi
1181 need_lib_prefix=unknown
1182 hardcode_into_libs=no
1183
1184 # when you set need_version to no, make sure it does not cause -set_version
1185 # flags to be left without arguments
1186 need_version=unknown
1187
1188 case $host_os in
1189 aix3*)
1190 version_type=linux
1191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1192 shlibpath_var=LIBPATH
1193
1194 # AIX 3 has no versioning support, so we append a major version to the name.
1195 soname_spec='${libname}${release}${shared_ext}$major'
1196 ;;
1197
1198 aix4* | aix5*)
1199 version_type=linux
1200 need_lib_prefix=no
1201 need_version=no
1202 hardcode_into_libs=yes
1203 if test "$host_cpu" = ia64; then
1204 # AIX 5 supports IA64
1205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1206 shlibpath_var=LD_LIBRARY_PATH
1207 else
1208 # With GCC up to 2.95.x, collect2 would create an import file
1209 # for dependence libraries. The import file would start with
1210 # the line `#! .'. This would cause the generated library to
1211 # depend on `.', always an invalid library. This was fixed in
1212 # development snapshots of GCC prior to 3.0.
1213 case $host_os in
1214 aix4 | aix4.[[01]] | aix4.[[01]].*)
1215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1216 echo ' yes '
1217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1218 :
1219 else
1220 can_build_shared=no
1221 fi
1222 ;;
1223 esac
1224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1225 # soname into executable. Probably we can add versioning support to
1226 # collect2, so additional links can be useful in future.
1227 if test "$aix_use_runtimelinking" = yes; then
1228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1229 # instead of lib<name>.a to let people know that these are not
1230 # typical AIX shared libraries.
1231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1232 else
1233 # We preserve .a as extension for shared libraries through AIX4.2
1234 # and later when we are not doing run time linking.
1235 library_names_spec='${libname}${release}.a $libname.a'
1236 soname_spec='${libname}${release}${shared_ext}$major'
1237 fi
1238 shlibpath_var=LIBPATH
1239 fi
1240 ;;
1241
1242 amigaos*)
1243 library_names_spec='$libname.ixlibrary $libname.a'
1244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1245 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'
1246 ;;
1247
1248 beos*)
1249 library_names_spec='${libname}${shared_ext}'
1250 dynamic_linker="$host_os ld.so"
1251 shlibpath_var=LIBRARY_PATH
1252 ;;
1253
1254 bsdi[[45]]*)
1255 version_type=linux
1256 need_version=no
1257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1258 soname_spec='${libname}${release}${shared_ext}$major'
1259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1260 shlibpath_var=LD_LIBRARY_PATH
1261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1263 # the default ld.so.conf also contains /usr/contrib/lib and
1264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1265 # libtool to hard-code these into programs
1266 ;;
1267
1268 cygwin* | mingw* | pw32*)
1269 version_type=windows
1270 shrext_cmds=".dll"
1271 need_version=no
1272 need_lib_prefix=no
1273
1274 case $GCC,$host_os in
1275 yes,cygwin* | yes,mingw* | yes,pw32*)
1276 library_names_spec='$libname.dll.a'
1277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1278 postinstall_cmds='base_file=`basename \${file}`~
1279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1280 dldir=$destdir/`dirname \$dlpath`~
1281 test -d \$dldir || mkdir -p \$dldir~
1282 $install_prog $dir/$dlname \$dldir/$dlname'
1283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1284 dlpath=$dir/\$dldll~
1285 $rm \$dlpath'
1286 shlibpath_overrides_runpath=yes
1287
1288 case $host_os in
1289 cygwin*)
1290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1293 ;;
1294 mingw*)
1295 # MinGW DLLs use traditional 'lib' prefix
1296 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1298 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1299 # It is most probably a Windows format PATH printed by
1300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1301 # path with ; separators, and with drive letters. We can handle the
1302 # drive letters (cygwin fileutils understands them), so leave them,
1303 # especially as we might pass files found there to a mingw objdump,
1304 # which wouldn't understand a cygwinified path. Ahh.
1305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1306 else
1307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1308 fi
1309 ;;
1310 pw32*)
1311 # pw32 DLLs use 'pw' prefix rather than 'lib'
1312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1313 ;;
1314 esac
1315 ;;
1316
1317 linux*)
1318 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1320 supports_anon_versioning=no
1321 case `$LD -v 2>/dev/null` in
1322 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1325 *\ 2.11.*) ;; # other 2.11 versions
1326 *) supports_anon_versioning=yes ;;
1327 esac
1328 if test $supports_anon_versioning = yes; then
1329 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1331 $echo "local: *; };" >> $output_objdir/$libname.ver~
1332 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1333 else
1334 $archive_expsym_cmds="$archive_cmds"
1335 fi
1336 else
1337 ld_shlibs=no
1338 fi
1339 ;;
1340
1341 *)
1342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1343 ;;
1344 esac
1345 dynamic_linker='Win32 ld.exe'
1346 # FIXME: first we should search . and the directory the executable is in
1347 shlibpath_var=PATH
1348 ;;
1349
1350 darwin* | rhapsody*)
1351 dynamic_linker="$host_os dyld"
1352 version_type=darwin
1353 need_lib_prefix=no
1354 need_version=no
1355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1356 soname_spec='${libname}${release}${major}$shared_ext'
1357 shlibpath_overrides_runpath=yes
1358 shlibpath_var=DYLD_LIBRARY_PATH
1359 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1361 if test "$GCC" = yes; then
1362 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"`
1363 else
1364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1365 fi
1366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1367 ;;
1368
1369 dgux*)
1370 version_type=linux
1371 need_lib_prefix=no
1372 need_version=no
1373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1374 soname_spec='${libname}${release}${shared_ext}$major'
1375 shlibpath_var=LD_LIBRARY_PATH
1376 ;;
1377
1378 freebsd1*)
1379 dynamic_linker=no
1380 ;;
1381
1382 kfreebsd*-gnu)
1383 version_type=linux
1384 need_lib_prefix=no
1385 need_version=no
1386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1387 soname_spec='${libname}${release}${shared_ext}$major'
1388 shlibpath_var=LD_LIBRARY_PATH
1389 shlibpath_overrides_runpath=no
1390 hardcode_into_libs=yes
1391 dynamic_linker='GNU ld.so'
1392 ;;
1393
1394 freebsd*)
1395 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1396 version_type=freebsd-$objformat
1397 case $version_type in
1398 freebsd-elf*)
1399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1400 need_version=no
1401 need_lib_prefix=no
1402 ;;
1403 freebsd-*)
1404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1405 need_version=yes
1406 ;;
1407 esac
1408 shlibpath_var=LD_LIBRARY_PATH
1409 case $host_os in
1410 freebsd2*)
1411 shlibpath_overrides_runpath=yes
1412 ;;
1413 freebsd3.[01]* | freebsdelf3.[01]*)
1414 shlibpath_overrides_runpath=yes
1415 hardcode_into_libs=yes
1416 ;;
1417 *) # from 3.2 on
1418 shlibpath_overrides_runpath=no
1419 hardcode_into_libs=yes
1420 ;;
1421 esac
1422 ;;
1423
1424 gnu*)
1425 version_type=linux
1426 need_lib_prefix=no
1427 need_version=no
1428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1429 soname_spec='${libname}${release}${shared_ext}$major'
1430 shlibpath_var=LD_LIBRARY_PATH
1431 hardcode_into_libs=yes
1432 ;;
1433
1434 hpux9* | hpux10* | hpux11*)
1435 # Give a soname corresponding to the major version so that dld.sl refuses to
1436 # link against other versions.
1437 version_type=sunos
1438 need_lib_prefix=no
1439 need_version=no
1440 case "$host_cpu" in
1441 ia64*)
1442 shrext_cmds='.so'
1443 hardcode_into_libs=yes
1444 dynamic_linker="$host_os dld.so"
1445 shlibpath_var=LD_LIBRARY_PATH
1446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1448 soname_spec='${libname}${release}${shared_ext}$major'
1449 if test "X$HPUX_IA64_MODE" = X32; then
1450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1451 else
1452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1453 fi
1454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1455 ;;
1456 hppa*64*)
1457 shrext_cmds='.sl'
1458 hardcode_into_libs=yes
1459 dynamic_linker="$host_os dld.sl"
1460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1466 ;;
1467 *)
1468 shrext_cmds='.sl'
1469 dynamic_linker="$host_os dld.sl"
1470 shlibpath_var=SHLIB_PATH
1471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1473 soname_spec='${libname}${release}${shared_ext}$major'
1474 ;;
1475 esac
1476 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1477 postinstall_cmds='chmod 555 $lib'
1478 ;;
1479
1480 irix5* | irix6* | nonstopux*)
1481 case $host_os in
1482 nonstopux*) version_type=nonstopux ;;
1483 *)
1484 if test "$lt_cv_prog_gnu_ld" = yes; then
1485 version_type=linux
1486 else
1487 version_type=irix
1488 fi ;;
1489 esac
1490 need_lib_prefix=no
1491 need_version=no
1492 soname_spec='${libname}${release}${shared_ext}$major'
1493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1494 case $host_os in
1495 irix5* | nonstopux*)
1496 libsuff= shlibsuff=
1497 ;;
1498 *)
1499 case $LD in # libtool.m4 will add one of these switches to LD
1500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1501 libsuff= shlibsuff= libmagic=32-bit;;
1502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1503 libsuff=32 shlibsuff=N32 libmagic=N32;;
1504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1506 *) libsuff= shlibsuff= libmagic=never-match;;
1507 esac
1508 ;;
1509 esac
1510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1511 shlibpath_overrides_runpath=no
1512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1514 hardcode_into_libs=yes
1515 ;;
1516
1517 # No shared lib support for Linux oldld, aout, or coff.
1518 linux*oldld* | linux*aout* | linux*coff*)
1519 dynamic_linker=no
1520 ;;
1521
1522 # This must be Linux ELF.
1523 linux*)
1524 version_type=linux
1525 need_lib_prefix=no
1526 need_version=no
1527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1528 soname_spec='${libname}${release}${shared_ext}$major'
1529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1530 shlibpath_var=LD_LIBRARY_PATH
1531 shlibpath_overrides_runpath=no
1532 # This implies no fast_install, which is unacceptable.
1533 # Some rework will be needed to allow for fast_install
1534 # before this can be enabled.
1535 hardcode_into_libs=yes
1536
1537 # Append ld.so.conf contents to the search path
1538 if test -f /etc/ld.so.conf; then
1539 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1541 fi
1542
1543 case $host_cpu:$lt_cv_cc_64bit_output in
1544 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
1545 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
1546 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
1547 ;;
1548 esac
1549
1550 # We used to test for /lib/ld.so.1 and disable shared libraries on
1551 # powerpc, because MkLinux only supported shared libraries with the
1552 # GNU dynamic linker. Since this was broken with cross compilers,
1553 # most powerpc-linux boxes support dynamic linking these days and
1554 # people can always --disable-shared, the test was removed, and we
1555 # assume the GNU/Linux dynamic linker is in use.
1556 dynamic_linker='GNU/Linux ld.so'
1557
1558 # Find out which ABI we are using (multilib Linux x86_64 hack).
1559 libsuff=
1560 case "$host_cpu" in
1561 x86_64*)
1562 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1563 if AC_TRY_EVAL(ac_compile); then
1564 case `/usr/bin/file conftest.$ac_objext` in
1565 *64-bit*)
1566 libsuff=64
1567 ;;
1568 esac
1569 fi
1570 rm -rf conftest*
1571 ;;
1572 *)
1573 ;;
1574 esac
1575 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
1576 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1577 ;;
1578
1579 knetbsd*-gnu)
1580 version_type=linux
1581 need_lib_prefix=no
1582 need_version=no
1583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1584 soname_spec='${libname}${release}${shared_ext}$major'
1585 shlibpath_var=LD_LIBRARY_PATH
1586 shlibpath_overrides_runpath=no
1587 hardcode_into_libs=yes
1588 dynamic_linker='GNU ld.so'
1589 ;;
1590
1591 netbsd*)
1592 version_type=sunos
1593 need_lib_prefix=no
1594 need_version=no
1595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1598 dynamic_linker='NetBSD (a.out) ld.so'
1599 else
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='NetBSD ld.elf_so'
1603 fi
1604 shlibpath_var=LD_LIBRARY_PATH
1605 shlibpath_overrides_runpath=yes
1606 hardcode_into_libs=yes
1607 ;;
1608
1609 newsos6)
1610 version_type=linux
1611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1612 shlibpath_var=LD_LIBRARY_PATH
1613 shlibpath_overrides_runpath=yes
1614 ;;
1615
1616 nto-qnx*)
1617 version_type=linux
1618 need_lib_prefix=no
1619 need_version=no
1620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1621 soname_spec='${libname}${release}${shared_ext}$major'
1622 shlibpath_var=LD_LIBRARY_PATH
1623 shlibpath_overrides_runpath=yes
1624 ;;
1625
1626 openbsd*)
1627 version_type=sunos
1628 need_lib_prefix=no
1629 need_version=no
1630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1632 shlibpath_var=LD_LIBRARY_PATH
1633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1634 case $host_os in
1635 openbsd2.[[89]] | openbsd2.[[89]].*)
1636 shlibpath_overrides_runpath=no
1637 ;;
1638 *)
1639 shlibpath_overrides_runpath=yes
1640 ;;
1641 esac
1642 else
1643 shlibpath_overrides_runpath=yes
1644 fi
1645 ;;
1646
1647 os2*)
1648 libname_spec='$name'
1649 shrext_cmds=".dll"
1650 need_lib_prefix=no
1651 library_names_spec='$libname${shared_ext} $libname.a'
1652 dynamic_linker='OS/2 ld.exe'
1653 shlibpath_var=LIBPATH
1654 ;;
1655
1656 osf3* | osf4* | osf5*)
1657 version_type=osf
1658 need_lib_prefix=no
1659 need_version=no
1660 soname_spec='${libname}${release}${shared_ext}$major'
1661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1662 shlibpath_var=LD_LIBRARY_PATH
1663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1665 ;;
1666
1667 sco3.2v5*)
1668 version_type=osf
1669 soname_spec='${libname}${release}${shared_ext}$major'
1670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1671 shlibpath_var=LD_LIBRARY_PATH
1672 ;;
1673
1674 solaris*)
1675 version_type=linux
1676 need_lib_prefix=no
1677 need_version=no
1678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1679 soname_spec='${libname}${release}${shared_ext}$major'
1680 shlibpath_var=LD_LIBRARY_PATH
1681 shlibpath_overrides_runpath=yes
1682 hardcode_into_libs=yes
1683 # ldd complains unless libraries are executable
1684 postinstall_cmds='chmod +x $lib'
1685 ;;
1686
1687 sunos4*)
1688 version_type=sunos
1689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1691 shlibpath_var=LD_LIBRARY_PATH
1692 shlibpath_overrides_runpath=yes
1693 if test "$with_gnu_ld" = yes; then
1694 need_lib_prefix=no
1695 fi
1696 need_version=yes
1697 ;;
1698
1699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1700 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
1704 case $host_vendor in
1705 sni)
1706 shlibpath_overrides_runpath=no
1707 need_lib_prefix=no
1708 export_dynamic_flag_spec='${wl}-Blargedynsym'
1709 runpath_var=LD_RUN_PATH
1710 ;;
1711 siemens)
1712 need_lib_prefix=no
1713 ;;
1714 motorola)
1715 need_lib_prefix=no
1716 need_version=no
1717 shlibpath_overrides_runpath=no
1718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1719 ;;
1720 esac
1721 ;;
1722
1723 sysv4*MP*)
1724 if test -d /usr/nec ;then
1725 version_type=linux
1726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1727 soname_spec='$libname${shared_ext}.$major'
1728 shlibpath_var=LD_LIBRARY_PATH
1729 fi
1730 ;;
1731
1732 uts4*)
1733 version_type=linux
1734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1735 soname_spec='${libname}${release}${shared_ext}$major'
1736 shlibpath_var=LD_LIBRARY_PATH
1737 ;;
1738
1739 *)
1740 dynamic_linker=no
1741 ;;
1742 esac
1743 AC_MSG_RESULT([$dynamic_linker])
1744 test "$dynamic_linker" = no && can_build_shared=no
1745 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1746
1747
1748 # _LT_AC_TAGCONFIG
1749 # ----------------
1750 AC_DEFUN([_LT_AC_TAGCONFIG],
1751 [AC_ARG_WITH([tags],
1752 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1753 [include additional configurations @<:@automatic@:>@])],
1754 [tagnames="$withval"])
1755
1756 if test -f "$ltmain" && test -n "$tagnames"; then
1757 if test ! -f "${ofile}"; then
1758 AC_MSG_WARN([output file `$ofile' does not exist])
1759 fi
1760
1761 if test -z "$LTCC"; then
1762 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1763 if test -z "$LTCC"; then
1764 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1765 else
1766 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1767 fi
1768 fi
1769
1770 # Extract list of available tagged configurations in $ofile.
1771 # Note that this assumes the entire list is on one line.
1772 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1773
1774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1775 for tagname in $tagnames; do
1776 IFS="$lt_save_ifs"
1777 # Check whether tagname contains only valid characters
1778 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1779 "") ;;
1780 *) AC_MSG_ERROR([invalid tag name: $tagname])
1781 ;;
1782 esac
1783
1784 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1785 then
1786 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1787 fi
1788
1789 # Update the list of available tags.
1790 if test -n "$tagname"; then
1791 echo appending configuration tag \"$tagname\" to $ofile
1792
1793 case $tagname in
1794 CXX)
1795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1797 (test "X$CXX" != "Xg++"))) ; then
1798 AC_LIBTOOL_LANG_CXX_CONFIG
1799 else
1800 tagname=""
1801 fi
1802 ;;
1803
1804 F77)
1805 if test -n "$F77" && test "X$F77" != "Xno"; then
1806 AC_LIBTOOL_LANG_F77_CONFIG
1807 else
1808 tagname=""
1809 fi
1810 ;;
1811
1812 GCJ)
1813 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1814 AC_LIBTOOL_LANG_GCJ_CONFIG
1815 else
1816 tagname=""
1817 fi
1818 ;;
1819
1820 RC)
1821 AC_LIBTOOL_LANG_RC_CONFIG
1822 ;;
1823
1824 *)
1825 AC_MSG_ERROR([Unsupported tag name: $tagname])
1826 ;;
1827 esac
1828
1829 # Append the new tag name to the list of available tags.
1830 if test -n "$tagname" ; then
1831 available_tags="$available_tags $tagname"
1832 fi
1833 fi
1834 done
1835 IFS="$lt_save_ifs"
1836
1837 # Now substitute the updated list of available tags.
1838 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1839 mv "${ofile}T" "$ofile"
1840 chmod +x "$ofile"
1841 else
1842 rm -f "${ofile}T"
1843 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1844 fi
1845 fi
1846 ])# _LT_AC_TAGCONFIG
1847
1848
1849 # AC_LIBTOOL_DLOPEN
1850 # -----------------
1851 # enable checks for dlopen support
1852 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1853 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1854 ])# AC_LIBTOOL_DLOPEN
1855
1856
1857 # AC_LIBTOOL_WIN32_DLL
1858 # --------------------
1859 # declare package support for building win32 dll's
1860 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1861 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1862 ])# AC_LIBTOOL_WIN32_DLL
1863
1864
1865 # AC_ENABLE_SHARED([DEFAULT])
1866 # ---------------------------
1867 # implement the --enable-shared flag
1868 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1869 AC_DEFUN([AC_ENABLE_SHARED],
1870 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1871 AC_ARG_ENABLE([shared],
1872 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1873 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1874 [p=${PACKAGE-default}
1875 case $enableval in
1876 yes) enable_shared=yes ;;
1877 no) enable_shared=no ;;
1878 *)
1879 enable_shared=no
1880 # Look at the argument we got. We use all the common list separators.
1881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1882 for pkg in $enableval; do
1883 IFS="$lt_save_ifs"
1884 if test "X$pkg" = "X$p"; then
1885 enable_shared=yes
1886 fi
1887 done
1888 IFS="$lt_save_ifs"
1889 ;;
1890 esac],
1891 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1892 ])# AC_ENABLE_SHARED
1893
1894
1895 # AC_DISABLE_SHARED
1896 # -----------------
1897 #- set the default shared flag to --disable-shared
1898 AC_DEFUN([AC_DISABLE_SHARED],
1899 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1900 AC_ENABLE_SHARED(no)
1901 ])# AC_DISABLE_SHARED
1902
1903
1904 # AC_ENABLE_STATIC([DEFAULT])
1905 # ---------------------------
1906 # implement the --enable-static flag
1907 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1908 AC_DEFUN([AC_ENABLE_STATIC],
1909 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1910 AC_ARG_ENABLE([static],
1911 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1912 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1913 [p=${PACKAGE-default}
1914 case $enableval in
1915 yes) enable_static=yes ;;
1916 no) enable_static=no ;;
1917 *)
1918 enable_static=no
1919 # Look at the argument we got. We use all the common list separators.
1920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1921 for pkg in $enableval; do
1922 IFS="$lt_save_ifs"
1923 if test "X$pkg" = "X$p"; then
1924 enable_static=yes
1925 fi
1926 done
1927 IFS="$lt_save_ifs"
1928 ;;
1929 esac],
1930 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1931 ])# AC_ENABLE_STATIC
1932
1933
1934 # AC_DISABLE_STATIC
1935 # -----------------
1936 # set the default static flag to --disable-static
1937 AC_DEFUN([AC_DISABLE_STATIC],
1938 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1939 AC_ENABLE_STATIC(no)
1940 ])# AC_DISABLE_STATIC
1941
1942
1943 # AC_ENABLE_FAST_INSTALL([DEFAULT])
1944 # ---------------------------------
1945 # implement the --enable-fast-install flag
1946 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1947 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1948 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1949 AC_ARG_ENABLE([fast-install],
1950 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1951 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1952 [p=${PACKAGE-default}
1953 case $enableval in
1954 yes) enable_fast_install=yes ;;
1955 no) enable_fast_install=no ;;
1956 *)
1957 enable_fast_install=no
1958 # Look at the argument we got. We use all the common list separators.
1959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1960 for pkg in $enableval; do
1961 IFS="$lt_save_ifs"
1962 if test "X$pkg" = "X$p"; then
1963 enable_fast_install=yes
1964 fi
1965 done
1966 IFS="$lt_save_ifs"
1967 ;;
1968 esac],
1969 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1970 ])# AC_ENABLE_FAST_INSTALL
1971
1972
1973 # AC_DISABLE_FAST_INSTALL
1974 # -----------------------
1975 # set the default to --disable-fast-install
1976 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1977 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1978 AC_ENABLE_FAST_INSTALL(no)
1979 ])# AC_DISABLE_FAST_INSTALL
1980
1981
1982 # AC_LIBTOOL_PICMODE([MODE])
1983 # --------------------------
1984 # implement the --with-pic flag
1985 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1986 AC_DEFUN([AC_LIBTOOL_PICMODE],
1987 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1988 pic_mode=ifelse($#,1,$1,default)
1989 ])# AC_LIBTOOL_PICMODE
1990
1991
1992 # AC_PROG_EGREP
1993 # -------------
1994 # This is predefined starting with Autoconf 2.54, so this conditional
1995 # definition can be removed once we require Autoconf 2.54 or later.
1996 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1997 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1998 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1999 then ac_cv_prog_egrep='grep -E'
2000 else ac_cv_prog_egrep='egrep'
2001 fi])
2002 EGREP=$ac_cv_prog_egrep
2003 AC_SUBST([EGREP])
2004 ])])
2005
2006
2007 # AC_PATH_TOOL_PREFIX
2008 # -------------------
2009 # find a file program which can recognise shared library
2010 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2011 [AC_REQUIRE([AC_PROG_EGREP])dnl
2012 AC_MSG_CHECKING([for $1])
2013 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2014 [case $MAGIC_CMD in
2015 [[\\/*] | ?:[\\/]*])
2016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2017 ;;
2018 *)
2019 lt_save_MAGIC_CMD="$MAGIC_CMD"
2020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2021 dnl $ac_dummy forces splitting on constant user-supplied paths.
2022 dnl POSIX.2 word splitting is done only on the output of word expansions,
2023 dnl not every word. This closes a longstanding sh security hole.
2024 ac_dummy="ifelse([$2], , $PATH, [$2])"
2025 for ac_dir in $ac_dummy; do
2026 IFS="$lt_save_ifs"
2027 test -z "$ac_dir" && ac_dir=.
2028 if test -f $ac_dir/$1; then
2029 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2030 if test -n "$file_magic_test_file"; then
2031 case $deplibs_check_method in
2032 "file_magic "*)
2033 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2036 $EGREP "$file_magic_regex" > /dev/null; then
2037 :
2038 else
2039 cat <<EOF 1>&2
2040
2041 *** Warning: the command libtool uses to detect shared libraries,
2042 *** $file_magic_cmd, produces output that libtool cannot recognize.
2043 *** The result is that libtool may fail to recognize shared libraries
2044 *** as such. This will affect the creation of libtool libraries that
2045 *** depend on shared libraries, but programs linked with such libtool
2046 *** libraries will work regardless of this problem. Nevertheless, you
2047 *** may want to report the problem to your system manager and/or to
2048 *** bug-libtool@gnu.org
2049
2050 EOF
2051 fi ;;
2052 esac
2053 fi
2054 break
2055 fi
2056 done
2057 IFS="$lt_save_ifs"
2058 MAGIC_CMD="$lt_save_MAGIC_CMD"
2059 ;;
2060 esac])
2061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2062 if test -n "$MAGIC_CMD"; then
2063 AC_MSG_RESULT($MAGIC_CMD)
2064 else
2065 AC_MSG_RESULT(no)
2066 fi
2067 ])# AC_PATH_TOOL_PREFIX
2068
2069
2070 # AC_PATH_MAGIC
2071 # -------------
2072 # find a file program which can recognise a shared library
2073 AC_DEFUN([AC_PATH_MAGIC],
2074 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2075 if test -z "$lt_cv_path_MAGIC_CMD"; then
2076 if test -n "$ac_tool_prefix"; then
2077 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2078 else
2079 MAGIC_CMD=:
2080 fi
2081 fi
2082 ])# AC_PATH_MAGIC
2083
2084
2085 # AC_PROG_LD
2086 # ----------
2087 # find the pathname to the GNU or non-GNU linker
2088 AC_DEFUN([AC_PROG_LD],
2089 [AC_ARG_WITH([gnu-ld],
2090 [AC_HELP_STRING([--with-gnu-ld],
2091 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2092 [test "$withval" = no || with_gnu_ld=yes],
2093 [with_gnu_ld=no])
2094 AC_REQUIRE([LT_AC_PROG_SED])dnl
2095 AC_REQUIRE([AC_PROG_CC])dnl
2096 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2097 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2098 ac_prog=ld
2099 if test "$GCC" = yes; then
2100 # Check if gcc -print-prog-name=ld gives a path.
2101 AC_MSG_CHECKING([for ld used by $CC])
2102 case $host in
2103 *-*-mingw*)
2104 # gcc leaves a trailing carriage return which upsets mingw
2105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2106 *)
2107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2108 esac
2109 case $ac_prog in
2110 # Accept absolute paths.
2111 [[\\/]]* | ?:[[\\/]]*)
2112 re_direlt='/[[^/]][[^/]]*/\.\./'
2113 # Canonicalize the pathname of ld
2114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2117 done
2118 test -z "$LD" && LD="$ac_prog"
2119 ;;
2120 "")
2121 # If it fails, then pretend we aren't using GCC.
2122 ac_prog=ld
2123 ;;
2124 *)
2125 # If it is relative, then search for the first ld in PATH.
2126 with_gnu_ld=unknown
2127 ;;
2128 esac
2129 elif test "$with_gnu_ld" = yes; then
2130 AC_MSG_CHECKING([for GNU ld])
2131 else
2132 AC_MSG_CHECKING([for non-GNU ld])
2133 fi
2134 AC_CACHE_VAL(lt_cv_path_LD,
2135 [if test -z "$LD"; then
2136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2137 for ac_dir in $PATH; do
2138 IFS="$lt_save_ifs"
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2141 lt_cv_path_LD="$ac_dir/$ac_prog"
2142 # Check to see if the program is GNU ld. I'd rather use --version,
2143 # but apparently some GNU ld's only accept -v.
2144 # Break only if it was the GNU/non-GNU ld that we prefer.
2145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2146 *GNU* | *'with BFD'*)
2147 test "$with_gnu_ld" != no && break
2148 ;;
2149 *)
2150 test "$with_gnu_ld" != yes && break
2151 ;;
2152 esac
2153 fi
2154 done
2155 IFS="$lt_save_ifs"
2156 else
2157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2158 fi])
2159 LD="$lt_cv_path_LD"
2160 if test -n "$LD"; then
2161 AC_MSG_RESULT($LD)
2162 else
2163 AC_MSG_RESULT(no)
2164 fi
2165 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2166 AC_PROG_LD_GNU
2167 ])# AC_PROG_LD
2168
2169
2170 # AC_PROG_LD_GNU
2171 # --------------
2172 AC_DEFUN([AC_PROG_LD_GNU],
2173 [AC_REQUIRE([AC_PROG_EGREP])dnl
2174 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2175 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2176 case `$LD -v 2>&1 </dev/null` in
2177 *GNU* | *'with BFD'*)
2178 lt_cv_prog_gnu_ld=yes
2179 ;;
2180 *)
2181 lt_cv_prog_gnu_ld=no
2182 ;;
2183 esac])
2184 with_gnu_ld=$lt_cv_prog_gnu_ld
2185 ])# AC_PROG_LD_GNU
2186
2187
2188 # AC_PROG_LD_RELOAD_FLAG
2189 # ----------------------
2190 # find reload flag for linker
2191 # -- PORTME Some linkers may need a different reload flag.
2192 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2193 [AC_CACHE_CHECK([for $LD option to reload object files],
2194 lt_cv_ld_reload_flag,
2195 [lt_cv_ld_reload_flag='-r'])
2196 reload_flag=$lt_cv_ld_reload_flag
2197 case $reload_flag in
2198 "" | " "*) ;;
2199 *) reload_flag=" $reload_flag" ;;
2200 esac
2201 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2202 case $host_os in
2203 darwin*)
2204 if test "$GCC" = yes; then
2205 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2206 else
2207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2208 fi
2209 ;;
2210 esac
2211 ])# AC_PROG_LD_RELOAD_FLAG
2212
2213
2214 # AC_DEPLIBS_CHECK_METHOD
2215 # -----------------------
2216 # how to check for library dependencies
2217 # -- PORTME fill in with the dynamic library characteristics
2218 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2219 [AC_CACHE_CHECK([how to recognise dependent libraries],
2220 lt_cv_deplibs_check_method,
2221 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2222 lt_cv_file_magic_test_file=
2223 lt_cv_deplibs_check_method='unknown'
2224 # Need to set the preceding variable on all platforms that support
2225 # interlibrary dependencies.
2226 # 'none' -- dependencies not supported.
2227 # `unknown' -- same as none, but documents that we really don't know.
2228 # 'pass_all' -- all dependencies passed with no checks.
2229 # 'test_compile' -- check by making test program.
2230 # 'file_magic [[regex]]' -- check by looking for files in library path
2231 # which responds to the $file_magic_cmd with a given extended regex.
2232 # If you have `file' or equivalent on your system and you're not sure
2233 # whether `pass_all' will *always* work, you probably want this one.
2234
2235 case $host_os in
2236 aix4* | aix5*)
2237 lt_cv_deplibs_check_method=pass_all
2238 ;;
2239
2240 beos*)
2241 lt_cv_deplibs_check_method=pass_all
2242 ;;
2243
2244 bsdi[[45]]*)
2245 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2246 lt_cv_file_magic_cmd='/usr/bin/file -L'
2247 lt_cv_file_magic_test_file=/shlib/libc.so
2248 ;;
2249
2250 cygwin*)
2251 # func_win32_libid is a shell function defined in ltmain.sh
2252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2253 lt_cv_file_magic_cmd='func_win32_libid'
2254 ;;
2255
2256 mingw* | pw32*)
2257 # Base MSYS/MinGW do not provide the 'file' command needed by
2258 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2260 lt_cv_file_magic_cmd='$OBJDUMP -f'
2261 ;;
2262
2263 darwin* | rhapsody*)
2264 lt_cv_deplibs_check_method=pass_all
2265 ;;
2266
2267 freebsd* | kfreebsd*-gnu)
2268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2269 case $host_cpu in
2270 i*86 )
2271 # Not sure whether the presence of OpenBSD here was a mistake.
2272 # Let's accept both of them until this is cleared up.
2273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2274 lt_cv_file_magic_cmd=/usr/bin/file
2275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2276 ;;
2277 esac
2278 else
2279 lt_cv_deplibs_check_method=pass_all
2280 fi
2281 ;;
2282
2283 gnu*)
2284 lt_cv_deplibs_check_method=pass_all
2285 ;;
2286
2287 hpux10.20* | hpux11*)
2288 lt_cv_file_magic_cmd=/usr/bin/file
2289 case "$host_cpu" in
2290 ia64*)
2291 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2293 ;;
2294 hppa*64*)
2295 [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]']
2296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2297 ;;
2298 *)
2299 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2301 ;;
2302 esac
2303 ;;
2304
2305 irix5* | irix6* | nonstopux*)
2306 case $LD in
2307 *-32|*"-32 ") libmagic=32-bit;;
2308 *-n32|*"-n32 ") libmagic=N32;;
2309 *-64|*"-64 ") libmagic=64-bit;;
2310 *) libmagic=never-match;;
2311 esac
2312 lt_cv_deplibs_check_method=pass_all
2313 ;;
2314
2315 # This must be Linux ELF.
2316 linux*)
2317 lt_cv_deplibs_check_method=pass_all
2318 ;;
2319
2320 netbsd*)
2321 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2322 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2323 else
2324 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2325 fi
2326 ;;
2327
2328 newos6*)
2329 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2330 lt_cv_file_magic_cmd=/usr/bin/file
2331 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2332 ;;
2333
2334 nto-qnx*)
2335 lt_cv_deplibs_check_method=unknown
2336 ;;
2337
2338 openbsd*)
2339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2340 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2341 else
2342 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2343 fi
2344 ;;
2345
2346 osf3* | osf4* | osf5*)
2347 lt_cv_deplibs_check_method=pass_all
2348 ;;
2349
2350 sco3.2v5*)
2351 lt_cv_deplibs_check_method=pass_all
2352 ;;
2353
2354 solaris*)
2355 lt_cv_deplibs_check_method=pass_all
2356 ;;
2357
2358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2359 case $host_vendor in
2360 motorola)
2361 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]]'
2362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2363 ;;
2364 ncr)
2365 lt_cv_deplibs_check_method=pass_all
2366 ;;
2367 sequent)
2368 lt_cv_file_magic_cmd='/bin/file'
2369 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2370 ;;
2371 sni)
2372 lt_cv_file_magic_cmd='/bin/file'
2373 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2374 lt_cv_file_magic_test_file=/lib/libc.so
2375 ;;
2376 siemens)
2377 lt_cv_deplibs_check_method=pass_all
2378 ;;
2379 esac
2380 ;;
2381
2382 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2383 lt_cv_deplibs_check_method=pass_all
2384 ;;
2385 esac
2386 ])
2387 file_magic_cmd=$lt_cv_file_magic_cmd
2388 deplibs_check_method=$lt_cv_deplibs_check_method
2389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2390 ])# AC_DEPLIBS_CHECK_METHOD
2391
2392
2393 # AC_PROG_NM
2394 # ----------
2395 # find the pathname to a BSD-compatible name lister
2396 AC_DEFUN([AC_PROG_NM],
2397 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2398 [if test -n "$NM"; then
2399 # Let the user override the test.
2400 lt_cv_path_NM="$NM"
2401 else
2402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2403 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2404 IFS="$lt_save_ifs"
2405 test -z "$ac_dir" && ac_dir=.
2406 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2407 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2408 # Check to see if the nm accepts a BSD-compat flag.
2409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2410 # nm: unknown option "B" ignored
2411 # Tru64's nm complains that /dev/null is an invalid object file
2412 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2413 */dev/null* | *'Invalid file or object type'*)
2414 lt_cv_path_NM="$tmp_nm -B"
2415 break
2416 ;;
2417 *)
2418 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2419 */dev/null*)
2420 lt_cv_path_NM="$tmp_nm -p"
2421 break
2422 ;;
2423 *)
2424 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2425 continue # so that we can try to find one that supports BSD flags
2426 ;;
2427 esac
2428 esac
2429 fi
2430 done
2431 IFS="$lt_save_ifs"
2432 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2433 fi])
2434 NM="$lt_cv_path_NM"
2435 ])# AC_PROG_NM
2436
2437
2438 # AC_CHECK_LIBM
2439 # -------------
2440 # check for math library
2441 AC_DEFUN([AC_CHECK_LIBM],
2442 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2443 LIBM=
2444 case $host in
2445 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2446 # These system don't have libm, or don't need it
2447 ;;
2448 *-ncr-sysv4.3*)
2449 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2450 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2451 ;;
2452 *)
2453 AC_CHECK_LIB(m, cos, LIBM="-lm")
2454 ;;
2455 esac
2456 ])# AC_CHECK_LIBM
2457
2458
2459 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2460 # -----------------------------------
2461 # sets LIBLTDL to the link flags for the libltdl convenience library and
2462 # LTDLINCL to the include flags for the libltdl header and adds
2463 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2464 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2465 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2466 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2467 # '${top_srcdir}/' (note the single quotes!). If your package is not
2468 # flat and you're not using automake, define top_builddir and
2469 # top_srcdir appropriately in the Makefiles.
2470 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2471 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2472 case $enable_ltdl_convenience in
2473 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2474 "") enable_ltdl_convenience=yes
2475 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2476 esac
2477 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2478 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2479 # For backwards non-gettext consistent compatibility...
2480 INCLTDL="$LTDLINCL"
2481 ])# AC_LIBLTDL_CONVENIENCE
2482
2483
2484 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2485 # -----------------------------------
2486 # sets LIBLTDL to the link flags for the libltdl installable library and
2487 # LTDLINCL to the include flags for the libltdl header and adds
2488 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2489 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2490 # DIRECTORY is not provided and an installed libltdl is not found, it is
2491 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2492 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2493 # quotes!). If your package is not flat and you're not using automake,
2494 # define top_builddir and top_srcdir appropriately in the Makefiles.
2495 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2496 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2497 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2498 AC_CHECK_LIB(ltdl, lt_dlinit,
2499 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2500 [if test x"$enable_ltdl_install" = xno; then
2501 AC_MSG_WARN([libltdl not installed, but installation disabled])
2502 else
2503 enable_ltdl_install=yes
2504 fi
2505 ])
2506 if test x"$enable_ltdl_install" = x"yes"; then
2507 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2508 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2509 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2510 else
2511 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2512 LIBLTDL="-lltdl"
2513 LTDLINCL=
2514 fi
2515 # For backwards non-gettext consistent compatibility...
2516 INCLTDL="$LTDLINCL"
2517 ])# AC_LIBLTDL_INSTALLABLE
2518
2519
2520 # AC_LIBTOOL_CXX
2521 # --------------
2522 # enable support for C++ libraries
2523 AC_DEFUN([AC_LIBTOOL_CXX],
2524 [AC_REQUIRE([_LT_AC_LANG_CXX])
2525 ])# AC_LIBTOOL_CXX
2526
2527
2528 # _LT_AC_LANG_CXX
2529 # ---------------
2530 AC_DEFUN([_LT_AC_LANG_CXX],
2531 [AC_REQUIRE([AC_PROG_CXX])
2532 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2533 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2534 ])# _LT_AC_LANG_CXX
2535
2536 # _LT_AC_PROG_CXXCPP
2537 # ---------------
2538 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2539 [
2540 AC_REQUIRE([AC_PROG_CXX])
2541 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2542 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2543 (test "X$CXX" != "Xg++"))) ; then
2544 AC_PROG_CXXCPP
2545 fi
2546 ])# _LT_AC_PROG_CXXCPP
2547
2548 # AC_LIBTOOL_F77
2549 # --------------
2550 # enable support for Fortran 77 libraries
2551 AC_DEFUN([AC_LIBTOOL_F77],
2552 [AC_REQUIRE([_LT_AC_LANG_F77])
2553 ])# AC_LIBTOOL_F77
2554
2555
2556 # _LT_AC_LANG_F77
2557 # ---------------
2558 AC_DEFUN([_LT_AC_LANG_F77],
2559 [AC_REQUIRE([AC_PROG_F77])
2560 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2561 ])# _LT_AC_LANG_F77
2562
2563
2564 # AC_LIBTOOL_GCJ
2565 # --------------
2566 # enable support for GCJ libraries
2567 AC_DEFUN([AC_LIBTOOL_GCJ],
2568 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2569 ])# AC_LIBTOOL_GCJ
2570
2571
2572 # _LT_AC_LANG_GCJ
2573 # ---------------
2574 AC_DEFUN([_LT_AC_LANG_GCJ],
2575 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2576 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2577 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2578 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2579 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2580 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2581 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2582 ])# _LT_AC_LANG_GCJ
2583
2584
2585 # AC_LIBTOOL_RC
2586 # --------------
2587 # enable support for Windows resource files
2588 AC_DEFUN([AC_LIBTOOL_RC],
2589 [AC_REQUIRE([LT_AC_PROG_RC])
2590 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2591 ])# AC_LIBTOOL_RC
2592
2593
2594 # AC_LIBTOOL_LANG_C_CONFIG
2595 # ------------------------
2596 # Ensure that the configuration vars for the C compiler are
2597 # suitably defined. Those variables are subsequently used by
2598 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2599 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2600 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2601 [lt_save_CC="$CC"
2602 AC_LANG_PUSH(C)
2603
2604 # Source file extension for C test sources.
2605 ac_ext=c
2606
2607 # Object file extension for compiled C test sources.
2608 objext=o
2609 _LT_AC_TAGVAR(objext, $1)=$objext
2610
2611 # Code to be used in simple compile tests
2612 lt_simple_compile_test_code="int some_variable = 0;\n"
2613
2614 # Code to be used in simple link tests
2615 lt_simple_link_test_code='int main(){return(0);}\n'
2616
2617 _LT_AC_SYS_COMPILER
2618
2619 #
2620 # Check for any special shared library compilation flags.
2621 #
2622 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2623 if test "$GCC" = no; then
2624 case $host_os in
2625 sco3.2v5*)
2626 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2627 ;;
2628 esac
2629 fi
2630 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2631 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2632 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2633 else
2634 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2635 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2636 fi
2637 fi
2638
2639
2640 #
2641 # Check to make sure the static flag actually works.
2642 #
2643 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2644 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2645 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2646 [],
2647 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2648
2649
2650 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2651 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2652 AC_LIBTOOL_PROG_CC_C_O($1)
2653 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2654 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2655 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2656 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2657 AC_LIBTOOL_SYS_LIB_STRIP
2658 AC_LIBTOOL_DLOPEN_SELF($1)
2659
2660 # Report which librarie types wil actually be built
2661 AC_MSG_CHECKING([if libtool supports shared libraries])
2662 AC_MSG_RESULT([$can_build_shared])
2663
2664 AC_MSG_CHECKING([whether to build shared libraries])
2665 test "$can_build_shared" = "no" && enable_shared=no
2666
2667 # On AIX, shared libraries and static libraries use the same namespace, and
2668 # are all built from PIC.
2669 case "$host_os" in
2670 aix3*)
2671 test "$enable_shared" = yes && enable_static=no
2672 if test -n "$RANLIB"; then
2673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2674 postinstall_cmds='$RANLIB $lib'
2675 fi
2676 ;;
2677
2678 aix4* | aix5*)
2679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2680 test "$enable_shared" = yes && enable_static=no
2681 fi
2682 ;;
2683 esac
2684 AC_MSG_RESULT([$enable_shared])
2685
2686 AC_MSG_CHECKING([whether to build static libraries])
2687 # Make sure either enable_shared or enable_static is yes.
2688 test "$enable_shared" = yes || enable_static=yes
2689 AC_MSG_RESULT([$enable_static])
2690
2691 AC_LIBTOOL_CONFIG($1)
2692
2693 AC_LANG_POP
2694 CC="$lt_save_CC"
2695 ])# AC_LIBTOOL_LANG_C_CONFIG
2696
2697
2698 # AC_LIBTOOL_LANG_CXX_CONFIG
2699 # --------------------------
2700 # Ensure that the configuration vars for the C compiler are
2701 # suitably defined. Those variables are subsequently used by
2702 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2703 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2704 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2705 [AC_LANG_PUSH(C++)
2706 AC_REQUIRE([AC_PROG_CXX])
2707 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2708
2709 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2710 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2711 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2712 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2713 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2714 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2715 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2716 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2717 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2718 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2719 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2720 _LT_AC_TAGVAR(module_cmds, $1)=
2721 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2722 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2723 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2724 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2725 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2726 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2727
2728 # Dependencies to place before and after the object being linked:
2729 _LT_AC_TAGVAR(predep_objects, $1)=
2730 _LT_AC_TAGVAR(postdep_objects, $1)=
2731 _LT_AC_TAGVAR(predeps, $1)=
2732 _LT_AC_TAGVAR(postdeps, $1)=
2733 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2734
2735 # Source file extension for C++ test sources.
2736 ac_ext=cc
2737
2738 # Object file extension for compiled C++ test sources.
2739 objext=o
2740 _LT_AC_TAGVAR(objext, $1)=$objext
2741
2742 # Code to be used in simple compile tests
2743 lt_simple_compile_test_code="int some_variable = 0;\n"
2744
2745 # Code to be used in simple link tests
2746 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2747
2748 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2749 _LT_AC_SYS_COMPILER
2750
2751 # Allow CC to be a program name with arguments.
2752 lt_save_CC=$CC
2753 lt_save_LD=$LD
2754 lt_save_GCC=$GCC
2755 GCC=$GXX
2756 lt_save_with_gnu_ld=$with_gnu_ld
2757 lt_save_path_LD=$lt_cv_path_LD
2758 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2759 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2760 else
2761 unset lt_cv_prog_gnu_ld
2762 fi
2763 if test -n "${lt_cv_path_LDCXX+set}"; then
2764 lt_cv_path_LD=$lt_cv_path_LDCXX
2765 else
2766 unset lt_cv_path_LD
2767 fi
2768 test -z "${LDCXX+set}" || LD=$LDCXX
2769 CC=${CXX-"c++"}
2770 compiler=$CC
2771 _LT_AC_TAGVAR(compiler, $1)=$CC
2772 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2773
2774 # We don't want -fno-exception wen compiling C++ code, so set the
2775 # no_builtin_flag separately
2776 if test "$GXX" = yes; then
2777 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2778 else
2779 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2780 fi
2781
2782 if test "$GXX" = yes; then
2783 # Set up default GNU C++ configuration
2784
2785 AC_PROG_LD
2786
2787 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2788 # archiving commands below assume that GNU ld is being used.
2789 if test "$with_gnu_ld" = yes; then
2790 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2791 _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'
2792
2793 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2794 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2795
2796 # If archive_cmds runs LD, not CC, wlarc should be empty
2797 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2798 # investigate it a little bit more. (MM)
2799 wlarc='${wl}'
2800
2801 # ancient GNU ld didn't support --whole-archive et. al.
2802 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2803 grep 'no-whole-archive' > /dev/null; then
2804 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2805 else
2806 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2807 fi
2808 else
2809 with_gnu_ld=no
2810 wlarc=
2811
2812 # A generic and very simple default shared library creation
2813 # command for GNU C++ for the case where it uses the native
2814 # linker, instead of GNU ld. If possible, this setting should
2815 # overridden to take advantage of the native linker features on
2816 # the platform it is being used on.
2817 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2818 fi
2819
2820 # Commands to make compiler produce verbose output that lists
2821 # what "hidden" libraries, object files and flags are used when
2822 # linking a shared library.
2823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2824
2825 else
2826 GXX=no
2827 with_gnu_ld=no
2828 wlarc=
2829 fi
2830
2831 # PORTME: fill in a description of your system's C++ link characteristics
2832 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2833 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2834 case $host_os in
2835 aix3*)
2836 # FIXME: insert proper C++ library support
2837 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2838 ;;
2839 aix4* | aix5*)
2840 if test "$host_cpu" = ia64; then
2841 # On IA64, the linker does run time linking by default, so we don't
2842 # have to do anything special.
2843 aix_use_runtimelinking=no
2844 exp_sym_flag='-Bexport'
2845 no_entry_flag=""
2846 else
2847 aix_use_runtimelinking=no
2848
2849 # Test if we are trying to use run time linking or normal
2850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2851 # need to do runtime linking.
2852 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2853 for ld_flag in $LDFLAGS; do
2854 case $ld_flag in
2855 *-brtl*)
2856 aix_use_runtimelinking=yes
2857 break
2858 ;;
2859 esac
2860 done
2861 esac
2862
2863 exp_sym_flag='-bexport'
2864 no_entry_flag='-bnoentry'
2865 fi
2866
2867 # When large executables or shared objects are built, AIX ld can
2868 # have problems creating the table of contents. If linking a library
2869 # or program results in "error TOC overflow" add -mminimal-toc to
2870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2872
2873 _LT_AC_TAGVAR(archive_cmds, $1)=''
2874 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2875 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2876 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2877
2878 if test "$GXX" = yes; then
2879 case $host_os in aix4.[012]|aix4.[012].*)
2880 # We only want to do this on AIX 4.2 and lower, the check
2881 # below for broken collect2 doesn't work under 4.3+
2882 collect2name=`${CC} -print-prog-name=collect2`
2883 if test -f "$collect2name" && \
2884 strings "$collect2name" | grep resolve_lib_name >/dev/null
2885 then
2886 # We have reworked collect2
2887 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2888 else
2889 # We have old collect2
2890 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2891 # It fails to find uninstalled libraries when the uninstalled
2892 # path is not listed in the libpath. Setting hardcode_minus_L
2893 # to unsupported forces relinking
2894 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2895 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2896 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2897 fi
2898 esac
2899 shared_flag='-shared'
2900 else
2901 # not using gcc
2902 if test "$host_cpu" = ia64; then
2903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2904 # chokes on -Wl,-G. The following line is correct:
2905 shared_flag='-G'
2906 else
2907 if test "$aix_use_runtimelinking" = yes; then
2908 shared_flag='${wl}-G'
2909 else
2910 shared_flag='${wl}-bM:SRE'
2911 fi
2912 fi
2913 fi
2914
2915 # It seems that -bexpall does not export symbols beginning with
2916 # underscore (_), so it is better to generate a list of symbols to export.
2917 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2918 if test "$aix_use_runtimelinking" = yes; then
2919 # Warning - without using the other runtime loading flags (-brtl),
2920 # -berok will link without error, but may produce a broken library.
2921 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2922 # Determine the default libpath from the value encoded in an empty executable.
2923 _LT_AC_SYS_LIBPATH_AIX
2924 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2925
2926 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2927 else
2928 if test "$host_cpu" = ia64; then
2929 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2930 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2931 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2932 else
2933 # Determine the default libpath from the value encoded in an empty executable.
2934 _LT_AC_SYS_LIBPATH_AIX
2935 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2936 # Warning - without using the other run time loading flags,
2937 # -berok will link without error, but may produce a broken library.
2938 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2939 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2940 # -bexpall does not export symbols beginning with underscore (_)
2941 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2942 # Exported symbols can be pulled into shared objects from archives
2943 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2944 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2945 # This is similar to how AIX traditionally builds it's shared libraries.
2946 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2947 fi
2948 fi
2949 ;;
2950 chorus*)
2951 case $cc_basename in
2952 *)
2953 # FIXME: insert proper C++ library support
2954 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955 ;;
2956 esac
2957 ;;
2958
2959
2960 cygwin* | mingw* | pw32*)
2961 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2962 # as there is no search path for DLLs.
2963 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2964 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2965 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2966 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2967
2968 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2969 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2970 # If the export-symbols file already is a .def file (1st line
2971 # is EXPORTS), use it as is; otherwise, prepend...
2972 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2973 cp $export_symbols $output_objdir/$soname.def;
2974 else
2975 echo EXPORTS > $output_objdir/$soname.def;
2976 cat $export_symbols >> $output_objdir/$soname.def;
2977 fi~
2978 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2979 else
2980 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2981 fi
2982 ;;
2983 darwin* | rhapsody*)
2984 case "$host_os" in
2985 rhapsody* | darwin1.[[012]])
2986 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2987 ;;
2988 *) # Darwin 1.3 on
2989 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2990 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2991 else
2992 case ${MACOSX_DEPLOYMENT_TARGET} in
2993 10.[[012]])
2994 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2995 ;;
2996 10.*)
2997 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2998 ;;
2999 esac
3000 fi
3001 ;;
3002 esac
3003 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3004 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3005 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3006 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3007 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3008 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3009
3010 if test "$GXX" = yes ; then
3011 lt_int_apple_cc_single_mod=no
3012 output_verbose_link_cmd='echo'
3013 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3014 lt_int_apple_cc_single_mod=yes
3015 fi
3016 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3017 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3018 else
3019 _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'
3020 fi
3021 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3022 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3023 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3024 _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}'
3025 else
3026 _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}'
3027 fi
3028 _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}'
3029 else
3030 case "$cc_basename" in
3031 xlc*)
3032 output_verbose_link_cmd='echo'
3033 _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'
3034 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3036 _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}'
3037 _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}'
3038 ;;
3039 *)
3040 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3041 ;;
3042 esac
3043 fi
3044 ;;
3045
3046 dgux*)
3047 case $cc_basename in
3048 ec++)
3049 # FIXME: insert proper C++ library support
3050 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3051 ;;
3052 ghcx)
3053 # Green Hills C++ Compiler
3054 # FIXME: insert proper C++ library support
3055 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3056 ;;
3057 *)
3058 # FIXME: insert proper C++ library support
3059 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3060 ;;
3061 esac
3062 ;;
3063 freebsd[12]*)
3064 # C++ shared libraries reported to be fairly broken before switch to ELF
3065 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3066 ;;
3067 freebsd-elf*)
3068 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3069 ;;
3070 freebsd* | kfreebsd*-gnu)
3071 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3072 # conventions
3073 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3074 ;;
3075 gnu*)
3076 ;;
3077 hpux9*)
3078 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3079 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3080 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3081 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3082 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3083 # but as the default
3084 # location of the library.
3085
3086 case $cc_basename in
3087 CC)
3088 # FIXME: insert proper C++ library support
3089 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3090 ;;
3091 aCC)
3092 _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'
3093 # Commands to make compiler produce verbose output that lists
3094 # what "hidden" libraries, object files and flags are used when
3095 # linking a shared library.
3096 #
3097 # There doesn't appear to be a way to prevent this compiler from
3098 # explicitly linking system object files so we need to strip them
3099 # from the output so that they don't get included in the library
3100 # dependencies.
3101 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'
3102 ;;
3103 *)
3104 if test "$GXX" = yes; then
3105 _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'
3106 else
3107 # FIXME: insert proper C++ library support
3108 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3109 fi
3110 ;;
3111 esac
3112 ;;
3113 hpux10*|hpux11*)
3114 if test $with_gnu_ld = no; then
3115 case "$host_cpu" in
3116 hppa*64*)
3117 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3118 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3119 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3120 ;;
3121 ia64*)
3122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3123 ;;
3124 *)
3125 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3126 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3127 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3128 ;;
3129 esac
3130 fi
3131 case "$host_cpu" in
3132 hppa*64*)
3133 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3134 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3135 ;;
3136 ia64*)
3137 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3138 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3139 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3140 # but as the default
3141 # location of the library.
3142 ;;
3143 *)
3144 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3145 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3146 # but as the default
3147 # location of the library.
3148 ;;
3149 esac
3150
3151 case $cc_basename in
3152 CC)
3153 # FIXME: insert proper C++ library support
3154 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3155 ;;
3156 aCC)
3157 case "$host_cpu" in
3158 hppa*64*|ia64*)
3159 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3160 ;;
3161 *)
3162 _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'
3163 ;;
3164 esac
3165 # Commands to make compiler produce verbose output that lists
3166 # what "hidden" libraries, object files and flags are used when
3167 # linking a shared library.
3168 #
3169 # There doesn't appear to be a way to prevent this compiler from
3170 # explicitly linking system object files so we need to strip them
3171 # from the output so that they don't get included in the library
3172 # dependencies.
3173 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'
3174 ;;
3175 *)
3176 if test "$GXX" = yes; then
3177 if test $with_gnu_ld = no; then
3178 case "$host_cpu" in
3179 ia64*|hppa*64*)
3180 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3181 ;;
3182 *)
3183 _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'
3184 ;;
3185 esac
3186 fi
3187 else
3188 # FIXME: insert proper C++ library support
3189 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3190 fi
3191 ;;
3192 esac
3193 ;;
3194 irix5* | irix6*)
3195 case $cc_basename in
3196 CC)
3197 # SGI C++
3198 _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 ${objdir}/so_locations -o $lib'
3199
3200 # Archives containing C++ object files must be created using
3201 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3202 # necessary to make sure instantiated templates are included
3203 # in the archive.
3204 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3205 ;;
3206 *)
3207 if test "$GXX" = yes; then
3208 if test "$with_gnu_ld" = no; then
3209 _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}${objdir}/so_locations -o $lib'
3210 else
3211 _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'
3212 fi
3213 fi
3214 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3215 ;;
3216 esac
3217 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3218 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3219 ;;
3220 linux*)
3221 case $cc_basename in
3222 KCC)
3223 # Kuck and Associates, Inc. (KAI) C++ Compiler
3224
3225 # KCC will only create a shared library if the output file
3226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3227 # to its proper name (with version) after linking.
3228 _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'
3229 _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'
3230 # Commands to make compiler produce verbose output that lists
3231 # what "hidden" libraries, object files and flags are used when
3232 # linking a shared library.
3233 #
3234 # There doesn't appear to be a way to prevent this compiler from
3235 # explicitly linking system object files so we need to strip them
3236 # from the output so that they don't get included in the library
3237 # dependencies.
3238 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'
3239
3240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3241 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3242
3243 # Archives containing C++ object files must be created using
3244 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3245 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3246 ;;
3247 icpc)
3248 # Intel C++
3249 with_gnu_ld=yes
3250 # version 8.0 and above of icpc choke on multiply defined symbols
3251 # if we add $predep_objects and $postdep_objects, however 7.1 and
3252 # earlier do not add the objects themselves.
3253 case `$CC -V 2>&1` in
3254 *"Version 7."*)
3255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3256 _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'
3257 ;;
3258 *) # Version 8.0 or newer
3259 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3260 _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'
3261 ;;
3262 esac
3263 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3264 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3265 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3266 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3267 ;;
3268 cxx)
3269 # Compaq C++
3270 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3271 _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'
3272
3273 runpath_var=LD_RUN_PATH
3274 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3275 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3276
3277 # Commands to make compiler produce verbose output that lists
3278 # what "hidden" libraries, object files and flags are used when
3279 # linking a shared library.
3280 #
3281 # There doesn't appear to be a way to prevent this compiler from
3282 # explicitly linking system object files so we need to strip them
3283 # from the output so that they don't get included in the library
3284 # dependencies.
3285 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'
3286 ;;
3287 esac
3288 ;;
3289 lynxos*)
3290 # FIXME: insert proper C++ library support
3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3292 ;;
3293 m88k*)
3294 # FIXME: insert proper C++ library support
3295 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3296 ;;
3297 mvs*)
3298 case $cc_basename in
3299 cxx)
3300 # FIXME: insert proper C++ library support
3301 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3302 ;;
3303 *)
3304 # FIXME: insert proper C++ library support
3305 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3306 ;;
3307 esac
3308 ;;
3309 netbsd*)
3310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3311 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3312 wlarc=
3313 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3314 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3315 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316 fi
3317 # Workaround some broken pre-1.5 toolchains
3318 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3319 ;;
3320 openbsd2*)
3321 # C++ shared libraries are fairly broken
3322 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3323 ;;
3324 openbsd*)
3325 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3326 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3327 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3328 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3330 _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'
3331 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3332 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3333 fi
3334 output_verbose_link_cmd='echo'
3335 ;;
3336 osf3*)
3337 case $cc_basename in
3338 KCC)
3339 # Kuck and Associates, Inc. (KAI) C++ Compiler
3340
3341 # KCC will only create a shared library if the output file
3342 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3343 # to its proper name (with version) after linking.
3344 _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'
3345
3346 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3347 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3348
3349 # Archives containing C++ object files must be created using
3350 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3351 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3352
3353 ;;
3354 RCC)
3355 # Rational C++ 2.4.1
3356 # FIXME: insert proper C++ library support
3357 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3358 ;;
3359 cxx)
3360 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3361 _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 ${objdir}/so_locations -o $lib'
3362
3363 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3364 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3365
3366 # Commands to make compiler produce verbose output that lists
3367 # what "hidden" libraries, object files and flags are used when
3368 # linking a shared library.
3369 #
3370 # There doesn't appear to be a way to prevent this compiler from
3371 # explicitly linking system object files so we need to strip them
3372 # from the output so that they don't get included in the library
3373 # dependencies.
3374 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'
3375 ;;
3376 *)
3377 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3378 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3379 _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}${objdir}/so_locations -o $lib'
3380
3381 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3382 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3383
3384 # Commands to make compiler produce verbose output that lists
3385 # what "hidden" libraries, object files and flags are used when
3386 # linking a shared library.
3387 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3388
3389 else
3390 # FIXME: insert proper C++ library support
3391 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3392 fi
3393 ;;
3394 esac
3395 ;;
3396 osf4* | osf5*)
3397 case $cc_basename in
3398 KCC)
3399 # Kuck and Associates, Inc. (KAI) C++ Compiler
3400
3401 # KCC will only create a shared library if the output file
3402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3403 # to its proper name (with version) after linking.
3404 _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'
3405
3406 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3407 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3408
3409 # Archives containing C++ object files must be created using
3410 # the KAI C++ compiler.
3411 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3412 ;;
3413 RCC)
3414 # Rational C++ 2.4.1
3415 # FIXME: insert proper C++ library support
3416 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3417 ;;
3418 cxx)
3419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3420 _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 ${objdir}/so_locations -o $lib'
3421 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3422 echo "-hidden">> $lib.exp~
3423 $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 $objdir/so_locations -o $lib~
3424 $rm $lib.exp'
3425
3426 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3427 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3428
3429 # Commands to make compiler produce verbose output that lists
3430 # what "hidden" libraries, object files and flags are used when
3431 # linking a shared library.
3432 #
3433 # There doesn't appear to be a way to prevent this compiler from
3434 # explicitly linking system object files so we need to strip them
3435 # from the output so that they don't get included in the library
3436 # dependencies.
3437 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'
3438 ;;
3439 *)
3440 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3441 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3442 _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}${objdir}/so_locations -o $lib'
3443
3444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3445 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3446
3447 # Commands to make compiler produce verbose output that lists
3448 # what "hidden" libraries, object files and flags are used when
3449 # linking a shared library.
3450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3451
3452 else
3453 # FIXME: insert proper C++ library support
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3455 fi
3456 ;;
3457 esac
3458 ;;
3459 psos*)
3460 # FIXME: insert proper C++ library support
3461 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3462 ;;
3463 sco*)
3464 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3465 case $cc_basename in
3466 CC)
3467 # FIXME: insert proper C++ library support
3468 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3469 ;;
3470 *)
3471 # FIXME: insert proper C++ library support
3472 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3473 ;;
3474 esac
3475 ;;
3476 sunos4*)
3477 case $cc_basename in
3478 CC)
3479 # Sun C++ 4.x
3480 # FIXME: insert proper C++ library support
3481 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3482 ;;
3483 lcc)
3484 # Lucid
3485 # FIXME: insert proper C++ library support
3486 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3487 ;;
3488 *)
3489 # FIXME: insert proper C++ library support
3490 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3491 ;;
3492 esac
3493 ;;
3494 solaris*)
3495 case $cc_basename in
3496 CC)
3497 # Sun C++ 4.2, 5.x and Centerline C++
3498 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3499 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3500 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3501 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3502
3503 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3504 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3505 case $host_os in
3506 solaris2.[0-5] | solaris2.[0-5].*) ;;
3507 *)
3508 # The C++ compiler is used as linker so we must use $wl
3509 # flag to pass the commands to the underlying system
3510 # linker.
3511 # Supported since Solaris 2.6 (maybe 2.5.1?)
3512 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3513 ;;
3514 esac
3515 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3516
3517 # Commands to make compiler produce verbose output that lists
3518 # what "hidden" libraries, object files and flags are used when
3519 # linking a shared library.
3520 #
3521 # There doesn't appear to be a way to prevent this compiler from
3522 # explicitly linking system object files so we need to strip them
3523 # from the output so that they don't get included in the library
3524 # dependencies.
3525 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3526
3527 # Archives containing C++ object files must be created using
3528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3529 # necessary to make sure instantiated templates are included
3530 # in the archive.
3531 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3532 ;;
3533 gcx)
3534 # Green Hills C++ Compiler
3535 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3536
3537 # The C++ compiler must be used to create the archive.
3538 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3539 ;;
3540 *)
3541 # GNU C++ compiler with Solaris linker
3542 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3543 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3544 if $CC --version | grep -v '^2\.7' > /dev/null; then
3545 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3546 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3547 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3548
3549 # Commands to make compiler produce verbose output that lists
3550 # what "hidden" libraries, object files and flags are used when
3551 # linking a shared library.
3552 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3553 else
3554 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3555 # platform.
3556 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3557 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3558 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3559
3560 # Commands to make compiler produce verbose output that lists
3561 # what "hidden" libraries, object files and flags are used when
3562 # linking a shared library.
3563 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3564 fi
3565
3566 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3567 fi
3568 ;;
3569 esac
3570 ;;
3571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3572 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3573 ;;
3574 tandem*)
3575 case $cc_basename in
3576 NCC)
3577 # NonStop-UX NCC 3.20
3578 # FIXME: insert proper C++ library support
3579 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3580 ;;
3581 *)
3582 # FIXME: insert proper C++ library support
3583 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3584 ;;
3585 esac
3586 ;;
3587 vxworks*)
3588 # FIXME: insert proper C++ library support
3589 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3590 ;;
3591 *)
3592 # FIXME: insert proper C++ library support
3593 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3594 ;;
3595 esac
3596 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3597 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3598
3599 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3600 _LT_AC_TAGVAR(LD, $1)="$LD"
3601
3602 AC_LIBTOOL_POSTDEP_PREDEP($1)
3603 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3604 AC_LIBTOOL_PROG_CC_C_O($1)
3605 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3606 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3607 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3608 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3609 AC_LIBTOOL_SYS_LIB_STRIP
3610 AC_LIBTOOL_DLOPEN_SELF($1)
3611
3612 AC_LIBTOOL_CONFIG($1)
3613
3614 AC_LANG_POP
3615 CC=$lt_save_CC
3616 LDCXX=$LD
3617 LD=$lt_save_LD
3618 GCC=$lt_save_GCC
3619 with_gnu_ldcxx=$with_gnu_ld
3620 with_gnu_ld=$lt_save_with_gnu_ld
3621 lt_cv_path_LDCXX=$lt_cv_path_LD
3622 lt_cv_path_LD=$lt_save_path_LD
3623 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3624 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3625 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3626
3627 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3628 # ------------------------
3629 # Figure out "hidden" library dependencies from verbose
3630 # compiler output when linking a shared library.
3631 # Parse the compiler output and extract the necessary
3632 # objects, libraries and library flags.
3633 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3634 dnl we can't use the lt_simple_compile_test_code here,
3635 dnl because it contains code intended for an executable,
3636 dnl not a library. It's possible we should let each
3637 dnl tag define a new lt_????_link_test_code variable,
3638 dnl but it's only used here...
3639 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3640 int a;
3641 void foo (void) { a = 0; }
3642 EOF
3643 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3644 class Foo
3645 {
3646 public:
3647 Foo (void) { a = 0; }
3648 private:
3649 int a;
3650 };
3651 EOF
3652 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3653 subroutine foo
3654 implicit none
3655 integer*4 a
3656 a=0
3657 return
3658 end
3659 EOF
3660 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3661 public class foo {
3662 private int a;
3663 public void bar (void) {
3664 a = 0;
3665 }
3666 };
3667 EOF
3668 ])
3669 dnl Parse the compiler output and extract the necessary
3670 dnl objects, libraries and library flags.
3671 if AC_TRY_EVAL(ac_compile); then
3672 # Parse the compiler output and extract the necessary
3673 # objects, libraries and library flags.
3674
3675 # Sentinel used to keep track of whether or not we are before
3676 # the conftest object file.
3677 pre_test_object_deps_done=no
3678
3679 # The `*' in the case matches for architectures that use `case' in
3680 # $output_verbose_cmd can trigger glob expansion during the loop
3681 # eval without this substitution.
3682 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3683
3684 for p in `eval $output_verbose_link_cmd`; do
3685 case $p in
3686
3687 -L* | -R* | -l*)
3688 # Some compilers place space between "-{L,R}" and the path.
3689 # Remove the space.
3690 if test $p = "-L" \
3691 || test $p = "-R"; then
3692 prev=$p
3693 continue
3694 else
3695 prev=
3696 fi
3697
3698 if test "$pre_test_object_deps_done" = no; then
3699 case $p in
3700 -L* | -R*)
3701 # Internal compiler library paths should come after those
3702 # provided the user. The postdeps already come after the
3703 # user supplied libs so there is no need to process them.
3704 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3705 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3706 else
3707 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3708 fi
3709 ;;
3710 # The "-l" case would never come before the object being
3711 # linked, so don't bother handling this case.
3712 esac
3713 else
3714 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3715 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3716 else
3717 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3718 fi
3719 fi
3720 ;;
3721
3722 *.$objext)
3723 # This assumes that the test object file only shows up
3724 # once in the compiler output.
3725 if test "$p" = "conftest.$objext"; then
3726 pre_test_object_deps_done=yes
3727 continue
3728 fi
3729
3730 if test "$pre_test_object_deps_done" = no; then
3731 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3732 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3733 else
3734 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3735 fi
3736 else
3737 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3738 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3739 else
3740 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3741 fi
3742 fi
3743 ;;
3744
3745 *) ;; # Ignore the rest.
3746
3747 esac
3748 done
3749
3750 # Clean up.
3751 rm -f a.out a.exe
3752 else
3753 echo "libtool.m4: error: problem compiling $1 test program"
3754 fi
3755
3756 $rm -f confest.$objext
3757
3758 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3759 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3760 esac
3761 ])# AC_LIBTOOL_POSTDEP_PREDEP
3762
3763 # AC_LIBTOOL_LANG_F77_CONFIG
3764 # ------------------------
3765 # Ensure that the configuration vars for the C compiler are
3766 # suitably defined. Those variables are subsequently used by
3767 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3768 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3769 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3770 [AC_REQUIRE([AC_PROG_F77])
3771 AC_LANG_PUSH(Fortran 77)
3772
3773 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3774 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3775 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3776 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3777 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3778 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3779 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3780 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3781 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3782 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3783 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3784 _LT_AC_TAGVAR(module_cmds, $1)=
3785 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3786 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3787 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3788 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3789 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3790 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3791
3792 # Source file extension for f77 test sources.
3793 ac_ext=f
3794
3795 # Object file extension for compiled f77 test sources.
3796 objext=o
3797 _LT_AC_TAGVAR(objext, $1)=$objext
3798
3799 # Code to be used in simple compile tests
3800 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3801
3802 # Code to be used in simple link tests
3803 lt_simple_link_test_code=" program t\n end\n"
3804
3805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3806 _LT_AC_SYS_COMPILER
3807
3808 # Allow CC to be a program name with arguments.
3809 lt_save_CC="$CC"
3810 CC=${F77-"f77"}
3811 compiler=$CC
3812 _LT_AC_TAGVAR(compiler, $1)=$CC
3813 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3814
3815 AC_MSG_CHECKING([if libtool supports shared libraries])
3816 AC_MSG_RESULT([$can_build_shared])
3817
3818 AC_MSG_CHECKING([whether to build shared libraries])
3819 test "$can_build_shared" = "no" && enable_shared=no
3820
3821 # On AIX, shared libraries and static libraries use the same namespace, and
3822 # are all built from PIC.
3823 case "$host_os" in
3824 aix3*)
3825 test "$enable_shared" = yes && enable_static=no
3826 if test -n "$RANLIB"; then
3827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3828 postinstall_cmds='$RANLIB $lib'
3829 fi
3830 ;;
3831 aix4* | aix5*)
3832 test "$enable_shared" = yes && enable_static=no
3833 ;;
3834 esac
3835 AC_MSG_RESULT([$enable_shared])
3836
3837 AC_MSG_CHECKING([whether to build static libraries])
3838 # Make sure either enable_shared or enable_static is yes.
3839 test "$enable_shared" = yes || enable_static=yes
3840 AC_MSG_RESULT([$enable_static])
3841
3842 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3843
3844 _LT_AC_TAGVAR(GCC, $1)="$G77"
3845 _LT_AC_TAGVAR(LD, $1)="$LD"
3846
3847 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3848 AC_LIBTOOL_PROG_CC_C_O($1)
3849 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3850 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3851 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3852 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3853 AC_LIBTOOL_SYS_LIB_STRIP
3854
3855
3856 AC_LIBTOOL_CONFIG($1)
3857
3858 AC_LANG_POP
3859 CC="$lt_save_CC"
3860 ])# AC_LIBTOOL_LANG_F77_CONFIG
3861
3862
3863 # AC_LIBTOOL_LANG_GCJ_CONFIG
3864 # --------------------------
3865 # Ensure that the configuration vars for the C compiler are
3866 # suitably defined. Those variables are subsequently used by
3867 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3868 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3869 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3870 [AC_LANG_SAVE
3871
3872 # Source file extension for Java test sources.
3873 ac_ext=java
3874
3875 # Object file extension for compiled Java test sources.
3876 objext=o
3877 _LT_AC_TAGVAR(objext, $1)=$objext
3878
3879 # Code to be used in simple compile tests
3880 lt_simple_compile_test_code="class foo {}\n"
3881
3882 # Code to be used in simple link tests
3883 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
3884
3885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3886 _LT_AC_SYS_COMPILER
3887
3888 # Allow CC to be a program name with arguments.
3889 lt_save_CC="$CC"
3890 CC=${GCJ-"gcj"}
3891 compiler=$CC
3892 _LT_AC_TAGVAR(compiler, $1)=$CC
3893
3894 # GCJ did not exist at the time GCC didn't implicitly link libc in.
3895 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3896
3897 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3898 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3899 AC_LIBTOOL_PROG_CC_C_O($1)
3900 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3901 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3902 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3903 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3904 AC_LIBTOOL_SYS_LIB_STRIP
3905 AC_LIBTOOL_DLOPEN_SELF($1)
3906
3907 AC_LIBTOOL_CONFIG($1)
3908
3909 AC_LANG_RESTORE
3910 CC="$lt_save_CC"
3911 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
3912
3913
3914 # AC_LIBTOOL_LANG_RC_CONFIG
3915 # --------------------------
3916 # Ensure that the configuration vars for the Windows resource compiler are
3917 # suitably defined. Those variables are subsequently used by
3918 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3919 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3920 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3921 [AC_LANG_SAVE
3922
3923 # Source file extension for RC test sources.
3924 ac_ext=rc
3925
3926 # Object file extension for compiled RC test sources.
3927 objext=o
3928 _LT_AC_TAGVAR(objext, $1)=$objext
3929
3930 # Code to be used in simple compile tests
3931 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3932
3933 # Code to be used in simple link tests
3934 lt_simple_link_test_code="$lt_simple_compile_test_code"
3935
3936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3937 _LT_AC_SYS_COMPILER
3938
3939 # Allow CC to be a program name with arguments.
3940 lt_save_CC="$CC"
3941 CC=${RC-"windres"}
3942 compiler=$CC
3943 _LT_AC_TAGVAR(compiler, $1)=$CC
3944 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3945
3946 AC_LIBTOOL_CONFIG($1)
3947
3948 AC_LANG_RESTORE
3949 CC="$lt_save_CC"
3950 ])# AC_LIBTOOL_LANG_RC_CONFIG
3951
3952
3953 # AC_LIBTOOL_CONFIG([TAGNAME])
3954 # ----------------------------
3955 # If TAGNAME is not passed, then create an initial libtool script
3956 # with a default configuration from the untagged config vars. Otherwise
3957 # add code to config.status for appending the configuration named by
3958 # TAGNAME from the matching tagged config vars.
3959 AC_DEFUN([AC_LIBTOOL_CONFIG],
3960 [# The else clause should only fire when bootstrapping the
3961 # libtool distribution, otherwise you forgot to ship ltmain.sh
3962 # with your package, and you will get complaints that there are
3963 # no rules to generate ltmain.sh.
3964 if test -f "$ltmain"; then
3965 # See if we are running on zsh, and set the options which allow our commands through
3966 # without removal of \ escapes.
3967 if test -n "${ZSH_VERSION+set}" ; then
3968 setopt NO_GLOB_SUBST
3969 fi
3970 # Now quote all the things that may contain metacharacters while being
3971 # careful not to overquote the AC_SUBSTed values. We take copies of the
3972 # variables and quote the copies for generation of the libtool script.
3973 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
3974 SED SHELL STRIP \
3975 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3976 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3977 deplibs_check_method reload_flag reload_cmds need_locks \
3978 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3979 lt_cv_sys_global_symbol_to_c_name_address \
3980 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3981 old_postinstall_cmds old_postuninstall_cmds \
3982 _LT_AC_TAGVAR(compiler, $1) \
3983 _LT_AC_TAGVAR(CC, $1) \
3984 _LT_AC_TAGVAR(LD, $1) \
3985 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
3986 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
3987 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
3988 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
3989 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
3990 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
3991 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
3992 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
3993 _LT_AC_TAGVAR(old_archive_cmds, $1) \
3994 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
3995 _LT_AC_TAGVAR(predep_objects, $1) \
3996 _LT_AC_TAGVAR(postdep_objects, $1) \
3997 _LT_AC_TAGVAR(predeps, $1) \
3998 _LT_AC_TAGVAR(postdeps, $1) \
3999 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4000 _LT_AC_TAGVAR(archive_cmds, $1) \
4001 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4002 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4003 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4004 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4005 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4006 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4007 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4009 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4010 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4011 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4012 _LT_AC_TAGVAR(module_cmds, $1) \
4013 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4014 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4015 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4016 _LT_AC_TAGVAR(include_expsyms, $1); do
4017
4018 case $var in
4019 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4020 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4021 _LT_AC_TAGVAR(archive_cmds, $1) | \
4022 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4023 _LT_AC_TAGVAR(module_cmds, $1) | \
4024 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4025 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4026 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4027 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4028 postinstall_cmds | postuninstall_cmds | \
4029 old_postinstall_cmds | old_postuninstall_cmds | \
4030 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4031 # Double-quote double-evaled strings.
4032 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4033 ;;
4034 *)
4035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4036 ;;
4037 esac
4038 done
4039
4040 case $lt_echo in
4041 *'\[$]0 --fallback-echo"')
4042 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4043 ;;
4044 esac
4045
4046 ifelse([$1], [],
4047 [cfgfile="${ofile}T"
4048 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4049 $rm -f "$cfgfile"
4050 AC_MSG_NOTICE([creating $ofile])],
4051 [cfgfile="$ofile"])
4052
4053 cat <<__EOF__ >> "$cfgfile"
4054 ifelse([$1], [],
4055 [#! $SHELL
4056
4057 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4058 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4059 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4060 #
4061 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4062 # Free Software Foundation, Inc.
4063 #
4064 # This file is part of GNU Libtool:
4065 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4066 #
4067 # This program is free software; you can redistribute it and/or modify
4068 # it under the terms of the GNU General Public License as published by
4069 # the Free Software Foundation; either version 2 of the License, or
4070 # (at your option) any later version.
4071 #
4072 # This program is distributed in the hope that it will be useful, but
4073 # WITHOUT ANY WARRANTY; without even the implied warranty of
4074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4075 # General Public License for more details.
4076 #
4077 # You should have received a copy of the GNU General Public License
4078 # along with this program; if not, write to the Free Software
4079 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4080 #
4081 # As a special exception to the GNU General Public License, if you
4082 # distribute this file as part of a program that contains a
4083 # configuration script generated by Autoconf, you may include it under
4084 # the same distribution terms that you use for the rest of that program.
4085
4086 # A sed program that does not truncate output.
4087 SED=$lt_SED
4088
4089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4090 Xsed="$SED -e s/^X//"
4091
4092 # The HP-UX ksh and POSIX shell print the target directory to stdout
4093 # if CDPATH is set.
4094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4095
4096 # The names of the tagged configurations supported by this script.
4097 available_tags=
4098
4099 # ### BEGIN LIBTOOL CONFIG],
4100 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4101
4102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4103
4104 # Shell to use when invoking shell scripts.
4105 SHELL=$lt_SHELL
4106
4107 # Whether or not to build shared libraries.
4108 build_libtool_libs=$enable_shared
4109
4110 # Whether or not to build static libraries.
4111 build_old_libs=$enable_static
4112
4113 # Whether or not to add -lc for building shared libraries.
4114 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4115
4116 # Whether or not to disallow shared libs when runtime libs are static
4117 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4118
4119 # Whether or not to optimize for fast installation.
4120 fast_install=$enable_fast_install
4121
4122 # The host system.
4123 host_alias=$host_alias
4124 host=$host
4125
4126 # An echo program that does not interpret backslashes.
4127 echo=$lt_echo
4128
4129 # The archiver.
4130 AR=$lt_AR
4131 AR_FLAGS=$lt_AR_FLAGS
4132
4133 # A C compiler.
4134 LTCC=$lt_LTCC
4135
4136 # A language-specific compiler.
4137 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4138
4139 # Is the compiler the GNU C compiler?
4140 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4141
4142 # An ERE matcher.
4143 EGREP=$lt_EGREP
4144
4145 # The linker used to build libraries.
4146 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4147
4148 # Whether we need hard or soft links.
4149 LN_S=$lt_LN_S
4150
4151 # A BSD-compatible nm program.
4152 NM=$lt_NM
4153
4154 # A symbol stripping program
4155 STRIP=$lt_STRIP
4156
4157 # Used to examine libraries when file_magic_cmd begins "file"
4158 MAGIC_CMD=$MAGIC_CMD
4159
4160 # Used on cygwin: DLL creation program.
4161 DLLTOOL="$DLLTOOL"
4162
4163 # Used on cygwin: object dumper.
4164 OBJDUMP="$OBJDUMP"
4165
4166 # Used on cygwin: assembler.
4167 AS="$AS"
4168
4169 # The name of the directory that contains temporary libtool files.
4170 objdir=$objdir
4171
4172 # How to create reloadable object files.
4173 reload_flag=$lt_reload_flag
4174 reload_cmds=$lt_reload_cmds
4175
4176 # How to pass a linker flag through the compiler.
4177 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4178
4179 # Object file suffix (normally "o").
4180 objext="$ac_objext"
4181
4182 # Old archive suffix (normally "a").
4183 libext="$libext"
4184
4185 # Shared library suffix (normally ".so").
4186 shrext_cmds='$shrext_cmds'
4187
4188 # Executable file suffix (normally "").
4189 exeext="$exeext"
4190
4191 # Additional compiler flags for building library objects.
4192 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4193 pic_mode=$pic_mode
4194
4195 # What is the maximum length of a command?
4196 max_cmd_len=$lt_cv_sys_max_cmd_len
4197
4198 # Does compiler simultaneously support -c and -o options?
4199 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4200
4201 # Must we lock files when doing compilation ?
4202 need_locks=$lt_need_locks
4203
4204 # Do we need the lib prefix for modules?
4205 need_lib_prefix=$need_lib_prefix
4206
4207 # Do we need a version for libraries?
4208 need_version=$need_version
4209
4210 # Whether dlopen is supported.
4211 dlopen_support=$enable_dlopen
4212
4213 # Whether dlopen of programs is supported.
4214 dlopen_self=$enable_dlopen_self
4215
4216 # Whether dlopen of statically linked programs is supported.
4217 dlopen_self_static=$enable_dlopen_self_static
4218
4219 # Compiler flag to prevent dynamic linking.
4220 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4221
4222 # Compiler flag to turn off builtin functions.
4223 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4224
4225 # Compiler flag to allow reflexive dlopens.
4226 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4227
4228 # Compiler flag to generate shared objects directly from archives.
4229 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4230
4231 # Compiler flag to generate thread-safe objects.
4232 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4233
4234 # Library versioning type.
4235 version_type=$version_type
4236
4237 # Format of library name prefix.
4238 libname_spec=$lt_libname_spec
4239
4240 # List of archive names. First name is the real one, the rest are links.
4241 # The last name is the one that the linker finds with -lNAME.
4242 library_names_spec=$lt_library_names_spec
4243
4244 # The coded name of the library, if different from the real name.
4245 soname_spec=$lt_soname_spec
4246
4247 # Commands used to build and install an old-style archive.
4248 RANLIB=$lt_RANLIB
4249 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4250 old_postinstall_cmds=$lt_old_postinstall_cmds
4251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4252
4253 # Create an old-style archive from a shared archive.
4254 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4255
4256 # Create a temporary old-style archive to link instead of a shared archive.
4257 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4258
4259 # Commands used to build and install a shared archive.
4260 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4261 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4262 postinstall_cmds=$lt_postinstall_cmds
4263 postuninstall_cmds=$lt_postuninstall_cmds
4264
4265 # Commands used to build a loadable module (assumed same as above if empty)
4266 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4267 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4268
4269 # Commands to strip libraries.
4270 old_striplib=$lt_old_striplib
4271 striplib=$lt_striplib
4272
4273 # Dependencies to place before the objects being linked to create a
4274 # shared library.
4275 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4276
4277 # Dependencies to place after the objects being linked to create a
4278 # shared library.
4279 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4280
4281 # Dependencies to place before the objects being linked to create a
4282 # shared library.
4283 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4284
4285 # Dependencies to place after the objects being linked to create a
4286 # shared library.
4287 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4288
4289 # The library search path used internally by the compiler when linking
4290 # a shared library.
4291 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4292
4293 # Method to check whether dependent libraries are shared objects.
4294 deplibs_check_method=$lt_deplibs_check_method
4295
4296 # Command to use when deplibs_check_method == file_magic.
4297 file_magic_cmd=$lt_file_magic_cmd
4298
4299 # Flag that allows shared libraries with undefined symbols to be built.
4300 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4301
4302 # Flag that forces no undefined symbols.
4303 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4304
4305 # Commands used to finish a libtool library installation in a directory.
4306 finish_cmds=$lt_finish_cmds
4307
4308 # Same as above, but a single script fragment to be evaled but not shown.
4309 finish_eval=$lt_finish_eval
4310
4311 # Take the output of nm and produce a listing of raw symbols and C names.
4312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4313
4314 # Transform the output of nm in a proper C declaration
4315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4316
4317 # Transform the output of nm in a C name address pair
4318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4319
4320 # This is the shared library runtime path variable.
4321 runpath_var=$runpath_var
4322
4323 # This is the shared library path variable.
4324 shlibpath_var=$shlibpath_var
4325
4326 # Is shlibpath searched before the hard-coded library search path?
4327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4328
4329 # How to hardcode a shared library path into an executable.
4330 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4331
4332 # Whether we should hardcode library paths into libraries.
4333 hardcode_into_libs=$hardcode_into_libs
4334
4335 # Flag to hardcode \$libdir into a binary during linking.
4336 # This must work even if \$libdir does not exist.
4337 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4338
4339 # If ld is used when linking, flag to hardcode \$libdir into
4340 # a binary during linking. This must work even if \$libdir does
4341 # not exist.
4342 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4343
4344 # Whether we need a single -rpath flag with a separated argument.
4345 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4346
4347 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4348 # resulting binary.
4349 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4350
4351 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4352 # resulting binary.
4353 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4354
4355 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4356 # the resulting binary.
4357 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4358
4359 # Set to yes if building a shared library automatically hardcodes DIR into the library
4360 # and all subsequent libraries and executables linked against it.
4361 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4362
4363 # Variables whose values should be saved in libtool wrapper scripts and
4364 # restored at relink time.
4365 variables_saved_for_relink="$variables_saved_for_relink"
4366
4367 # Whether libtool must link a program against all its dependency libraries.
4368 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4369
4370 # Compile-time system search path for libraries
4371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4372
4373 # Run-time system search path for libraries
4374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4375
4376 # Fix the shell variable \$srcfile for the compiler.
4377 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4378
4379 # Set to yes if exported symbols are required.
4380 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4381
4382 # The commands to list exported symbols.
4383 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4384
4385 # The commands to extract the exported symbol list from a shared archive.
4386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4387
4388 # Symbols that should not be listed in the preloaded symbols.
4389 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4390
4391 # Symbols that must always be exported.
4392 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4393
4394 ifelse([$1],[],
4395 [# ### END LIBTOOL CONFIG],
4396 [# ### END LIBTOOL TAG CONFIG: $tagname])
4397
4398 __EOF__
4399
4400 ifelse([$1],[], [
4401 case $host_os in
4402 aix3*)
4403 cat <<\EOF >> "$cfgfile"
4404
4405 # AIX sometimes has problems with the GCC collect2 program. For some
4406 # reason, if we set the COLLECT_NAMES environment variable, the problems
4407 # vanish in a puff of smoke.
4408 if test "X${COLLECT_NAMES+set}" != Xset; then
4409 COLLECT_NAMES=
4410 export COLLECT_NAMES
4411 fi
4412 EOF
4413 ;;
4414 esac
4415
4416 # We use sed instead of cat because bash on DJGPP gets confused if
4417 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4418 # text mode, it properly converts lines to CR/LF. This bash problem
4419 # is reportedly fixed, but why not run on old versions too?
4420 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4421
4422 mv -f "$cfgfile" "$ofile" || \
4423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4424 chmod +x "$ofile"
4425 ])
4426 else
4427 # If there is no Makefile yet, we rely on a make rule to execute
4428 # `config.status --recheck' to rerun these tests and create the
4429 # libtool script then.
4430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4431 if test -f "$ltmain_in"; then
4432 test -f Makefile && make "$ltmain"
4433 fi
4434 fi
4435 ])# AC_LIBTOOL_CONFIG
4436
4437
4438 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4439 # -------------------------------------------
4440 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4441 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4442
4443 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4444
4445 if test "$GCC" = yes; then
4446 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4447
4448 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4449 lt_cv_prog_compiler_rtti_exceptions,
4450 [-fno-rtti -fno-exceptions], [],
4451 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4452 fi
4453 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4454
4455
4456 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4457 # ---------------------------------
4458 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4459 [AC_REQUIRE([AC_CANONICAL_HOST])
4460 AC_REQUIRE([AC_PROG_NM])
4461 AC_REQUIRE([AC_OBJEXT])
4462 # Check for command to grab the raw symbol name followed by C symbol from nm.
4463 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4464 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4465 [
4466 # These are sane defaults that work on at least a few old systems.
4467 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4468
4469 # Character class describing NM global symbol codes.
4470 symcode='[[BCDEGRST]]'
4471
4472 # Regexp to match symbols that can be accessed directly from C.
4473 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4474
4475 # Transform the above into a raw symbol and a C symbol.
4476 symxfrm='\1 \2\3 \3'
4477
4478 # Transform an extracted symbol line into a proper C declaration
4479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4480
4481 # Transform an extracted symbol line into symbol name and symbol address
4482 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'"
4483
4484 # Define system-specific variables.
4485 case $host_os in
4486 aix*)
4487 symcode='[[BCDT]]'
4488 ;;
4489 cygwin* | mingw* | pw32*)
4490 symcode='[[ABCDGISTW]]'
4491 ;;
4492 hpux*) # Its linker distinguishes data from code symbols
4493 if test "$host_cpu" = ia64; then
4494 symcode='[[ABCDEGRST]]'
4495 fi
4496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4497 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'"
4498 ;;
4499 linux*)
4500 if test "$host_cpu" = ia64; then
4501 symcode='[[ABCDGIRSTW]]'
4502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4503 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'"
4504 fi
4505 ;;
4506 irix* | nonstopux*)
4507 symcode='[[BCDEGRST]]'
4508 ;;
4509 osf*)
4510 symcode='[[BCDEGQRST]]'
4511 ;;
4512 solaris* | sysv5*)
4513 symcode='[[BDRT]]'
4514 ;;
4515 sysv4)
4516 symcode='[[DFNSTU]]'
4517 ;;
4518 esac
4519
4520 # Handle CRLF in mingw tool chain
4521 opt_cr=
4522 case $build_os in
4523 mingw*)
4524 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4525 ;;
4526 esac
4527
4528 # If we're using GNU nm, then use its standard symbol codes.
4529 case `$NM -V 2>&1` in
4530 *GNU* | *'with BFD'*)
4531 symcode='[[ABCDGIRSTW]]' ;;
4532 esac
4533
4534 # Try without a prefix undercore, then with it.
4535 for ac_symprfx in "" "_"; do
4536
4537 # Write the raw and C identifiers.
4538 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4539
4540 # Check to see that the pipe works correctly.
4541 pipe_works=no
4542
4543 rm -f conftest*
4544 cat > conftest.$ac_ext <<EOF
4545 #ifdef __cplusplus
4546 extern "C" {
4547 #endif
4548 char nm_test_var;
4549 void nm_test_func(){}
4550 #ifdef __cplusplus
4551 }
4552 #endif
4553 int main(){nm_test_var='a';nm_test_func();return(0);}
4554 EOF
4555
4556 if AC_TRY_EVAL(ac_compile); then
4557 # Now try to grab the symbols.
4558 nlist=conftest.nm
4559 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4560 # Try sorting and uniquifying the output.
4561 if sort "$nlist" | uniq > "$nlist"T; then
4562 mv -f "$nlist"T "$nlist"
4563 else
4564 rm -f "$nlist"T
4565 fi
4566
4567 # Make sure that we snagged all the symbols we need.
4568 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4569 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4570 cat <<EOF > conftest.$ac_ext
4571 #ifdef __cplusplus
4572 extern "C" {
4573 #endif
4574
4575 EOF
4576 # Now generate the symbol file.
4577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4578
4579 cat <<EOF >> conftest.$ac_ext
4580 #if defined (__STDC__) && __STDC__
4581 # define lt_ptr_t void *
4582 #else
4583 # define lt_ptr_t char *
4584 # define const
4585 #endif
4586
4587 /* The mapping between symbol names and symbols. */
4588 const struct {
4589 const char *name;
4590 lt_ptr_t address;
4591 }
4592 lt_preloaded_symbols[[]] =
4593 {
4594 EOF
4595 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4596 cat <<\EOF >> conftest.$ac_ext
4597 {0, (lt_ptr_t) 0}
4598 };
4599
4600 #ifdef __cplusplus
4601 }
4602 #endif
4603 EOF
4604 # Now try linking the two files.
4605 mv conftest.$ac_objext conftstm.$ac_objext
4606 lt_save_LIBS="$LIBS"
4607 lt_save_CFLAGS="$CFLAGS"
4608 LIBS="conftstm.$ac_objext"
4609 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4610 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4611 pipe_works=yes
4612 fi
4613 LIBS="$lt_save_LIBS"
4614 CFLAGS="$lt_save_CFLAGS"
4615 else
4616 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4617 fi
4618 else
4619 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4620 fi
4621 else
4622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4623 fi
4624 else
4625 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4626 cat conftest.$ac_ext >&5
4627 fi
4628 rm -f conftest* conftst*
4629
4630 # Do not use the global_symbol_pipe unless it works.
4631 if test "$pipe_works" = yes; then
4632 break
4633 else
4634 lt_cv_sys_global_symbol_pipe=
4635 fi
4636 done
4637 ])
4638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4639 lt_cv_sys_global_symbol_to_cdecl=
4640 fi
4641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4642 AC_MSG_RESULT(failed)
4643 else
4644 AC_MSG_RESULT(ok)
4645 fi
4646 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4647
4648
4649 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4650 # ---------------------------------------
4651 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4652 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4653 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4654 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4655
4656 AC_MSG_CHECKING([for $compiler option to produce PIC])
4657 ifelse([$1],[CXX],[
4658 # C++ specific cases for pic, static, wl, etc.
4659 if test "$GXX" = yes; then
4660 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4662
4663 case $host_os in
4664 aix*)
4665 # All AIX code is PIC.
4666 if test "$host_cpu" = ia64; then
4667 # AIX 5 now supports IA64 processor
4668 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4669 fi
4670 ;;
4671 amigaos*)
4672 # FIXME: we need at least 68020 code to build shared libraries, but
4673 # adding the `-m68020' flag to GCC prevents building anything better,
4674 # like `-m68040'.
4675 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4676 ;;
4677 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4678 # PIC is the default for these OSes.
4679 ;;
4680 mingw* | os2* | pw32*)
4681 # This hack is so that the source file can tell whether it is being
4682 # built for inclusion in a dll (and should export symbols for example).
4683 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4684 ;;
4685 darwin* | rhapsody*)
4686 # PIC is the default on this platform
4687 # Common symbols not allowed in MH_DYLIB files
4688 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4689 ;;
4690 *djgpp*)
4691 # DJGPP does not support shared libraries at all
4692 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4693 ;;
4694 sysv4*MP*)
4695 if test -d /usr/nec; then
4696 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4697 fi
4698 ;;
4699 hpux*)
4700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4701 # not for PA HP-UX.
4702 case "$host_cpu" in
4703 hppa*64*|ia64*)
4704 ;;
4705 *)
4706 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4707 ;;
4708 esac
4709 ;;
4710 *)
4711 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4712 ;;
4713 esac
4714 else
4715 case $host_os in
4716 aix4* | aix5*)
4717 # All AIX code is PIC.
4718 if test "$host_cpu" = ia64; then
4719 # AIX 5 now supports IA64 processor
4720 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721 else
4722 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4723 fi
4724 ;;
4725 chorus*)
4726 case $cc_basename in
4727 cxch68)
4728 # Green Hills C++ Compiler
4729 # _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"
4730 ;;
4731 esac
4732 ;;
4733 darwin*)
4734 # PIC is the default on this platform
4735 # Common symbols not allowed in MH_DYLIB files
4736 case "$cc_basename" in
4737 xlc*)
4738 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4739 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4740 ;;
4741 esac
4742 ;;
4743 dgux*)
4744 case $cc_basename in
4745 ec++)
4746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4747 ;;
4748 ghcx)
4749 # Green Hills C++ Compiler
4750 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4751 ;;
4752 *)
4753 ;;
4754 esac
4755 ;;
4756 freebsd* | kfreebsd*-gnu)
4757 # FreeBSD uses GNU C++
4758 ;;
4759 hpux9* | hpux10* | hpux11*)
4760 case $cc_basename in
4761 CC)
4762 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4763 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4764 if test "$host_cpu" != ia64; then
4765 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4766 fi
4767 ;;
4768 aCC)
4769 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4770 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4771 case "$host_cpu" in
4772 hppa*64*|ia64*)
4773 # +Z the default
4774 ;;
4775 *)
4776 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4777 ;;
4778 esac
4779 ;;
4780 *)
4781 ;;
4782 esac
4783 ;;
4784 irix5* | irix6* | nonstopux*)
4785 case $cc_basename in
4786 CC)
4787 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4788 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4789 # CC pic flag -KPIC is the default.
4790 ;;
4791 *)
4792 ;;
4793 esac
4794 ;;
4795 linux*)
4796 case $cc_basename in
4797 KCC)
4798 # KAI C++ Compiler
4799 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4800 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4801 ;;
4802 icpc)
4803 # Intel C++
4804 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4805 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4806 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4807 ;;
4808 cxx)
4809 # Compaq C++
4810 # Make sure the PIC flag is empty. It appears that all Alpha
4811 # Linux and Compaq Tru64 Unix objects are PIC.
4812 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4813 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4814 ;;
4815 *)
4816 ;;
4817 esac
4818 ;;
4819 lynxos*)
4820 ;;
4821 m88k*)
4822 ;;
4823 mvs*)
4824 case $cc_basename in
4825 cxx)
4826 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4827 ;;
4828 *)
4829 ;;
4830 esac
4831 ;;
4832 netbsd*)
4833 ;;
4834 osf3* | osf4* | osf5*)
4835 case $cc_basename in
4836 KCC)
4837 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4838 ;;
4839 RCC)
4840 # Rational C++ 2.4.1
4841 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4842 ;;
4843 cxx)
4844 # Digital/Compaq C++
4845 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4846 # Make sure the PIC flag is empty. It appears that all Alpha
4847 # Linux and Compaq Tru64 Unix objects are PIC.
4848 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4849 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4850 ;;
4851 *)
4852 ;;
4853 esac
4854 ;;
4855 psos*)
4856 ;;
4857 sco*)
4858 case $cc_basename in
4859 CC)
4860 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4861 ;;
4862 *)
4863 ;;
4864 esac
4865 ;;
4866 solaris*)
4867 case $cc_basename in
4868 CC)
4869 # Sun C++ 4.2, 5.x and Centerline C++
4870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4872 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4873 ;;
4874 gcx)
4875 # Green Hills C++ Compiler
4876 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4877 ;;
4878 *)
4879 ;;
4880 esac
4881 ;;
4882 sunos4*)
4883 case $cc_basename in
4884 CC)
4885 # Sun C++ 4.x
4886 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4887 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4888 ;;
4889 lcc)
4890 # Lucid
4891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4892 ;;
4893 *)
4894 ;;
4895 esac
4896 ;;
4897 tandem*)
4898 case $cc_basename in
4899 NCC)
4900 # NonStop-UX NCC 3.20
4901 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4902 ;;
4903 *)
4904 ;;
4905 esac
4906 ;;
4907 unixware*)
4908 ;;
4909 vxworks*)
4910 ;;
4911 *)
4912 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4913 ;;
4914 esac
4915 fi
4916 ],
4917 [
4918 if test "$GCC" = yes; then
4919 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4920 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4921
4922 case $host_os in
4923 aix*)
4924 # All AIX code is PIC.
4925 if test "$host_cpu" = ia64; then
4926 # AIX 5 now supports IA64 processor
4927 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4928 fi
4929 ;;
4930
4931 amigaos*)
4932 # FIXME: we need at least 68020 code to build shared libraries, but
4933 # adding the `-m68020' flag to GCC prevents building anything better,
4934 # like `-m68040'.
4935 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4936 ;;
4937
4938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4939 # PIC is the default for these OSes.
4940 ;;
4941
4942 mingw* | pw32* | os2*)
4943 # This hack is so that the source file can tell whether it is being
4944 # built for inclusion in a dll (and should export symbols for example).
4945 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4946 ;;
4947
4948 darwin* | rhapsody*)
4949 # PIC is the default on this platform
4950 # Common symbols not allowed in MH_DYLIB files
4951 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4952 ;;
4953
4954 msdosdjgpp*)
4955 # Just because we use GCC doesn't mean we suddenly get shared libraries
4956 # on systems that don't support them.
4957 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4958 enable_shared=no
4959 ;;
4960
4961 sysv4*MP*)
4962 if test -d /usr/nec; then
4963 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4964 fi
4965 ;;
4966
4967 hpux*)
4968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4969 # not for PA HP-UX.
4970 case "$host_cpu" in
4971 hppa*64*|ia64*)
4972 # +Z the default
4973 ;;
4974 *)
4975 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4976 ;;
4977 esac
4978 ;;
4979
4980 *)
4981 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4982 ;;
4983 esac
4984 else
4985 # PORTME Check for flag to pass linker flags through the system compiler.
4986 case $host_os in
4987 aix*)
4988 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4989 if test "$host_cpu" = ia64; then
4990 # AIX 5 now supports IA64 processor
4991 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4992 else
4993 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4994 fi
4995 ;;
4996 darwin*)
4997 # PIC is the default on this platform
4998 # Common symbols not allowed in MH_DYLIB files
4999 case "$cc_basename" in
5000 xlc*)
5001 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5002 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5003 ;;
5004 esac
5005 ;;
5006
5007 mingw* | pw32* | os2*)
5008 # This hack is so that the source file can tell whether it is being
5009 # built for inclusion in a dll (and should export symbols for example).
5010 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5011 ;;
5012
5013 hpux9* | hpux10* | hpux11*)
5014 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5016 # not for PA HP-UX.
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 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5026 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5027 ;;
5028
5029 irix5* | irix6* | nonstopux*)
5030 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5031 # PIC (with -KPIC) is the default.
5032 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5033 ;;
5034
5035 newsos6)
5036 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5037 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5038 ;;
5039
5040 linux*)
5041 case $CC in
5042 icc* | ecc*)
5043 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5044 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5045 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5046 ;;
5047 ccc*)
5048 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5049 # All Alpha code is PIC.
5050 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5051 ;;
5052 esac
5053 ;;
5054
5055 osf3* | osf4* | osf5*)
5056 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5057 # All OSF/1 code is PIC.
5058 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5059 ;;
5060
5061 sco3.2v5*)
5062 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5063 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5064 ;;
5065
5066 solaris*)
5067 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5068 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5069 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5070 ;;
5071
5072 sunos4*)
5073 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5074 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5075 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5076 ;;
5077
5078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5079 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5080 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5081 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5082 ;;
5083
5084 sysv4*MP*)
5085 if test -d /usr/nec ;then
5086 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5087 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5088 fi
5089 ;;
5090
5091 uts4*)
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5093 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5094 ;;
5095
5096 *)
5097 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5098 ;;
5099 esac
5100 fi
5101 ])
5102 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5103
5104 #
5105 # Check to make sure the PIC flag actually works.
5106 #
5107 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5108 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5109 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5110 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5111 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5112 "" | " "*) ;;
5113 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5114 esac],
5115 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5116 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5117 fi
5118 case "$host_os" in
5119 # For platforms which do not support PIC, -DPIC is meaningless:
5120 *djgpp*)
5121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5122 ;;
5123 *)
5124 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5125 ;;
5126 esac
5127 ])
5128
5129
5130 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5131 # ------------------------------------
5132 # See if the linker supports building shared libraries.
5133 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5134 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5135 ifelse([$1],[CXX],[
5136 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5137 case $host_os in
5138 aix4* | aix5*)
5139 # If we're using GNU nm, then we don't want the "-C" option.
5140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5141 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5142 _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'
5143 else
5144 _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'
5145 fi
5146 ;;
5147 pw32*)
5148 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5149 ;;
5150 cygwin* | mingw*)
5151 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5152 ;;
5153 *)
5154 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5155 ;;
5156 esac
5157 ],[
5158 runpath_var=
5159 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5160 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5161 _LT_AC_TAGVAR(archive_cmds, $1)=
5162 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5163 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5164 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5165 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5166 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5167 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5168 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5170 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5171 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5172 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5173 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5174 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5175 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5176 _LT_AC_TAGVAR(module_cmds, $1)=
5177 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5178 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5179 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5180 # include_expsyms should be a list of space-separated symbols to be *always*
5181 # included in the symbol list
5182 _LT_AC_TAGVAR(include_expsyms, $1)=
5183 # exclude_expsyms can be an extended regexp of symbols to exclude
5184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5186 # as well as any symbol that contains `d'.
5187 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5189 # platforms (ab)use it in PIC code, but their linkers get confused if
5190 # the symbol is explicitly referenced. Since portable code cannot
5191 # rely on this symbol name, it's probably fine to never include it in
5192 # preloaded symbol tables.
5193 extract_expsyms_cmds=
5194
5195 case $host_os in
5196 cygwin* | mingw* | pw32*)
5197 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5198 # When not using gcc, we currently assume that we are using
5199 # Microsoft Visual C++.
5200 if test "$GCC" != yes; then
5201 with_gnu_ld=no
5202 fi
5203 ;;
5204 openbsd*)
5205 with_gnu_ld=no
5206 ;;
5207 esac
5208
5209 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5210 if test "$with_gnu_ld" = yes; then
5211 # If archive_cmds runs LD, not CC, wlarc should be empty
5212 wlarc='${wl}'
5213
5214 # See if GNU ld supports shared libraries.
5215 case $host_os in
5216 aix3* | aix4* | aix5*)
5217 # On AIX/PPC, the GNU linker is very broken
5218 if test "$host_cpu" != ia64; then
5219 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5220 cat <<EOF 1>&2
5221
5222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5223 *** to be unable to reliably create shared libraries on AIX.
5224 *** Therefore, libtool is disabling shared libraries support. If you
5225 *** really care for shared libraries, you may want to modify your PATH
5226 *** so that a non-GNU linker is found, and then restart.
5227
5228 EOF
5229 fi
5230 ;;
5231
5232 amigaos*)
5233 _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)'
5234 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5235 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5236
5237 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5238 # that the semantics of dynamic libraries on AmigaOS, at least up
5239 # to version 4, is to share data among multiple programs linked
5240 # with the same dynamic library. Since this doesn't match the
5241 # behavior of shared libraries on other platforms, we can't use
5242 # them.
5243 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5244 ;;
5245
5246 beos*)
5247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5248 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5250 # support --undefined. This deserves some investigation. FIXME
5251 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5252 else
5253 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5254 fi
5255 ;;
5256
5257 cygwin* | mingw* | pw32*)
5258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5259 # as there is no search path for DLLs.
5260 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5261 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5262 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5263 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5264 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5265
5266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5267 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5268 # If the export-symbols file already is a .def file (1st line
5269 # is EXPORTS), use it as is; otherwise, prepend...
5270 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5271 cp $export_symbols $output_objdir/$soname.def;
5272 else
5273 echo EXPORTS > $output_objdir/$soname.def;
5274 cat $export_symbols >> $output_objdir/$soname.def;
5275 fi~
5276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5277 else
5278 ld_shlibs=no
5279 fi
5280 ;;
5281
5282 netbsd*)
5283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5284 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5285 wlarc=
5286 else
5287 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5288 _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'
5289 fi
5290 ;;
5291
5292 solaris* | sysv5*)
5293 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5294 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5295 cat <<EOF 1>&2
5296
5297 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5298 *** create shared libraries on Solaris systems. Therefore, libtool
5299 *** is disabling shared libraries support. We urge you to upgrade GNU
5300 *** binutils to release 2.9.1 or newer. Another option is to modify
5301 *** your PATH or compiler configuration so that the native linker is
5302 *** used, and then restart.
5303
5304 EOF
5305 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5306 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5307 _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'
5308 else
5309 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5310 fi
5311 ;;
5312
5313 sunos4*)
5314 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5315 wlarc=
5316 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5317 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5318 ;;
5319
5320 linux*)
5321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5322 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5323 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5324 supports_anon_versioning=no
5325 case `$LD -v 2>/dev/null` in
5326 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5329 *\ 2.11.*) ;; # other 2.11 versions
5330 *) supports_anon_versioning=yes ;;
5331 esac
5332 if test $supports_anon_versioning = yes; then
5333 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5335 $echo "local: *; };" >> $output_objdir/$libname.ver~
5336 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5337 else
5338 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5339 fi
5340 else
5341 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5342 fi
5343 ;;
5344
5345 *)
5346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5347 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5348 _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'
5349 else
5350 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5351 fi
5352 ;;
5353 esac
5354
5355 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5356 runpath_var=LD_RUN_PATH
5357 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5359 # ancient GNU ld didn't support --whole-archive et. al.
5360 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5361 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5362 else
5363 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5364 fi
5365 fi
5366 else
5367 # PORTME fill in a description of your system's linker (not GNU ld)
5368 case $host_os in
5369 aix3*)
5370 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5371 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5372 _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'
5373 # Note: this linker hardcodes the directories in LIBPATH if there
5374 # are no directories specified by -L.
5375 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5376 if test "$GCC" = yes && test -z "$link_static_flag"; then
5377 # Neither direct hardcoding nor static linking is supported with a
5378 # broken collect2.
5379 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5380 fi
5381 ;;
5382
5383 aix4* | aix5*)
5384 if test "$host_cpu" = ia64; then
5385 # On IA64, the linker does run time linking by default, so we don't
5386 # have to do anything special.
5387 aix_use_runtimelinking=no
5388 exp_sym_flag='-Bexport'
5389 no_entry_flag=""
5390 else
5391 # If we're using GNU nm, then we don't want the "-C" option.
5392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5393 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5394 _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'
5395 else
5396 _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'
5397 fi
5398 aix_use_runtimelinking=no
5399
5400 # Test if we are trying to use run time linking or normal
5401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5402 # need to do runtime linking.
5403 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5404 for ld_flag in $LDFLAGS; do
5405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5406 aix_use_runtimelinking=yes
5407 break
5408 fi
5409 done
5410 esac
5411
5412 exp_sym_flag='-bexport'
5413 no_entry_flag='-bnoentry'
5414 fi
5415
5416 # When large executables or shared objects are built, AIX ld can
5417 # have problems creating the table of contents. If linking a library
5418 # or program results in "error TOC overflow" add -mminimal-toc to
5419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5421
5422 _LT_AC_TAGVAR(archive_cmds, $1)=''
5423 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5424 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5425 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5426
5427 if test "$GCC" = yes; then
5428 case $host_os in aix4.[012]|aix4.[012].*)
5429 # We only want to do this on AIX 4.2 and lower, the check
5430 # below for broken collect2 doesn't work under 4.3+
5431 collect2name=`${CC} -print-prog-name=collect2`
5432 if test -f "$collect2name" && \
5433 strings "$collect2name" | grep resolve_lib_name >/dev/null
5434 then
5435 # We have reworked collect2
5436 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5437 else
5438 # We have old collect2
5439 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5440 # It fails to find uninstalled libraries when the uninstalled
5441 # path is not listed in the libpath. Setting hardcode_minus_L
5442 # to unsupported forces relinking
5443 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5445 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5446 fi
5447 esac
5448 shared_flag='-shared'
5449 else
5450 # not using gcc
5451 if test "$host_cpu" = ia64; then
5452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5453 # chokes on -Wl,-G. The following line is correct:
5454 shared_flag='-G'
5455 else
5456 if test "$aix_use_runtimelinking" = yes; then
5457 shared_flag='${wl}-G'
5458 else
5459 shared_flag='${wl}-bM:SRE'
5460 fi
5461 fi
5462 fi
5463
5464 # It seems that -bexpall does not export symbols beginning with
5465 # underscore (_), so it is better to generate a list of symbols to export.
5466 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5467 if test "$aix_use_runtimelinking" = yes; then
5468 # Warning - without using the other runtime loading flags (-brtl),
5469 # -berok will link without error, but may produce a broken library.
5470 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5471 # Determine the default libpath from the value encoded in an empty executable.
5472 _LT_AC_SYS_LIBPATH_AIX
5473 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5474 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5475 else
5476 if test "$host_cpu" = ia64; then
5477 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5478 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5479 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5480 else
5481 # Determine the default libpath from the value encoded in an empty executable.
5482 _LT_AC_SYS_LIBPATH_AIX
5483 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5484 # Warning - without using the other run time loading flags,
5485 # -berok will link without error, but may produce a broken library.
5486 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5487 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5488 # -bexpall does not export symbols beginning with underscore (_)
5489 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5490 # Exported symbols can be pulled into shared objects from archives
5491 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5492 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5493 # This is similar to how AIX traditionally builds it's shared libraries.
5494 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5495 fi
5496 fi
5497 ;;
5498
5499 amigaos*)
5500 _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)'
5501 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5502 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5503 # see comment about different semantics on the GNU ld section
5504 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5505 ;;
5506
5507 bsdi[[45]]*)
5508 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5509 ;;
5510
5511 cygwin* | mingw* | pw32*)
5512 # When not using gcc, we currently assume that we are using
5513 # Microsoft Visual C++.
5514 # hardcode_libdir_flag_spec is actually meaningless, as there is
5515 # no search path for DLLs.
5516 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5517 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5518 # Tell ltmain to make .lib files, not .a files.
5519 libext=lib
5520 # Tell ltmain to make .dll files, not .so files.
5521 shrext_cmds=".dll"
5522 # FIXME: Setting linknames here is a bad hack.
5523 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5524 # The linker will automatically build a .lib file if we build a DLL.
5525 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5526 # FIXME: Should let the user specify the lib program.
5527 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5528 fix_srcfile_path='`cygpath -w "$srcfile"`'
5529 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5530 ;;
5531
5532 darwin* | rhapsody*)
5533 case "$host_os" in
5534 rhapsody* | darwin1.[[012]])
5535 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5536 ;;
5537 *) # Darwin 1.3 on
5538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5539 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5540 else
5541 case ${MACOSX_DEPLOYMENT_TARGET} in
5542 10.[[012]])
5543 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5544 ;;
5545 10.*)
5546 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5547 ;;
5548 esac
5549 fi
5550 ;;
5551 esac
5552 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5553 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5554 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5555 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5556 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5557 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5558 if test "$GCC" = yes ; then
5559 output_verbose_link_cmd='echo'
5560 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5561 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5563 _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}'
5564 _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}'
5565 else
5566 case "$cc_basename" in
5567 xlc*)
5568 output_verbose_link_cmd='echo'
5569 _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'
5570 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5572 _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}'
5573 _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}'
5574 ;;
5575 *)
5576 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5577 ;;
5578 esac
5579 fi
5580 ;;
5581
5582 dgux*)
5583 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5584 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5585 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5586 ;;
5587
5588 freebsd1*)
5589 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5590 ;;
5591
5592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5593 # support. Future versions do this automatically, but an explicit c++rt0.o
5594 # does not break anything, and helps significantly (at the cost of a little
5595 # extra space).
5596 freebsd2.2*)
5597 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5598 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5599 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5600 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5601 ;;
5602
5603 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5604 freebsd2*)
5605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5606 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5607 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5608 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5609 ;;
5610
5611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5612 freebsd* | kfreebsd*-gnu)
5613 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5614 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5615 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5616 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5617 ;;
5618
5619 hpux9*)
5620 if test "$GCC" = yes; then
5621 _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'
5622 else
5623 _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'
5624 fi
5625 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5626 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5627 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5628
5629 # hardcode_minus_L: Not really in the search PATH,
5630 # but as the default location of the library.
5631 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5632 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5633 ;;
5634
5635 hpux10* | hpux11*)
5636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5637 case "$host_cpu" in
5638 hppa*64*|ia64*)
5639 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5640 ;;
5641 *)
5642 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5643 ;;
5644 esac
5645 else
5646 case "$host_cpu" in
5647 hppa*64*|ia64*)
5648 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 ;;
5650 *)
5651 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5652 ;;
5653 esac
5654 fi
5655 if test "$with_gnu_ld" = no; then
5656 case "$host_cpu" in
5657 hppa*64*)
5658 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5659 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5660 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5661 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5662 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5663 ;;
5664 ia64*)
5665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5666 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5667 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5668
5669 # hardcode_minus_L: Not really in the search PATH,
5670 # but as the default location of the library.
5671 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5672 ;;
5673 *)
5674 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5675 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5676 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5677 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5678
5679 # hardcode_minus_L: Not really in the search PATH,
5680 # but as the default location of the library.
5681 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5682 ;;
5683 esac
5684 fi
5685 ;;
5686
5687 irix5* | irix6* | nonstopux*)
5688 if test "$GCC" = yes; then
5689 _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'
5690 else
5691 _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'
5692 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5693 fi
5694 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5695 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5696 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5697 ;;
5698
5699 netbsd*)
5700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5701 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5702 else
5703 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5704 fi
5705 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5706 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5707 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5708 ;;
5709
5710 newsos6)
5711 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5712 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5713 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5714 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5715 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5716 ;;
5717
5718 openbsd*)
5719 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5720 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5722 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5723 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5725 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5726 else
5727 case $host_os in
5728 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5729 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5730 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5731 ;;
5732 *)
5733 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5734 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5735 ;;
5736 esac
5737 fi
5738 ;;
5739
5740 os2*)
5741 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5742 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5743 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5744 _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'
5745 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5746 ;;
5747
5748 osf3*)
5749 if test "$GCC" = yes; then
5750 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5751 _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'
5752 else
5753 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5754 _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'
5755 fi
5756 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5757 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5758 ;;
5759
5760 osf4* | osf5*) # as osf3* with the addition of -msym flag
5761 if test "$GCC" = yes; then
5762 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5763 _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'
5764 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5765 else
5766 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5767 _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'
5768 _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~
5769 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5770
5771 # Both c and cxx compiler support -rpath directly
5772 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5773 fi
5774 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5775 ;;
5776
5777 sco3.2v5*)
5778 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5779 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5780 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5781 runpath_var=LD_RUN_PATH
5782 hardcode_runpath_var=yes
5783 ;;
5784
5785 solaris*)
5786 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5787 if test "$GCC" = yes; then
5788 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5789 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5790 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5791 else
5792 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5793 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5795 fi
5796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5797 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5798 case $host_os in
5799 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5800 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5801 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5802 esac
5803 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5804 ;;
5805
5806 sunos4*)
5807 if test "x$host_vendor" = xsequent; then
5808 # Use $CC to link under sequent, because it throws in some extra .o
5809 # files that make .init and .fini sections work.
5810 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5811 else
5812 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5813 fi
5814 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5815 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5816 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5817 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5818 ;;
5819
5820 sysv4)
5821 case $host_vendor in
5822 sni)
5823 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5824 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5825 ;;
5826 siemens)
5827 ## LD is ld it makes a PLAMLIB
5828 ## CC just makes a GrossModule.
5829 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5830 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5831 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5832 ;;
5833 motorola)
5834 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5835 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5836 ;;
5837 esac
5838 runpath_var='LD_RUN_PATH'
5839 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5840 ;;
5841
5842 sysv4.3*)
5843 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5844 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5845 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5846 ;;
5847
5848 sysv4*MP*)
5849 if test -d /usr/nec; then
5850 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5851 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5852 runpath_var=LD_RUN_PATH
5853 hardcode_runpath_var=yes
5854 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5855 fi
5856 ;;
5857
5858 sysv4.2uw2*)
5859 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5860 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5861 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5862 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5863 hardcode_runpath_var=yes
5864 runpath_var=LD_RUN_PATH
5865 ;;
5866
5867 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5868 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5869 if test "$GCC" = yes; then
5870 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5871 else
5872 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5873 fi
5874 runpath_var='LD_RUN_PATH'
5875 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5876 ;;
5877
5878 sysv5*)
5879 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5880 # $CC -shared without GNU ld will not create a library from C++
5881 # object files and a static libstdc++, better avoid it by now
5882 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5883 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5884 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5886 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5887 runpath_var='LD_RUN_PATH'
5888 ;;
5889
5890 uts4*)
5891 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5892 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5893 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5894 ;;
5895
5896 *)
5897 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5898 ;;
5899 esac
5900 fi
5901 ])
5902 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5903 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5904
5905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5906 if test "$GCC" = yes; then
5907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5908 fi
5909
5910 #
5911 # Do we need to explicitly link libc?
5912 #
5913 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5914 x|xyes)
5915 # Assume -lc should be added
5916 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5917
5918 if test "$enable_shared" = yes && test "$GCC" = yes; then
5919 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5920 *'~'*)
5921 # FIXME: we may have to deal with multi-command sequences.
5922 ;;
5923 '$CC '*)
5924 # Test whether the compiler implicitly links with -lc since on some
5925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5926 # to ld, don't add -lc before -lgcc.
5927 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5928 $rm conftest*
5929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5930
5931 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5932 soname=conftest
5933 lib=conftest
5934 libobjs=conftest.$ac_objext
5935 deplibs=
5936 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5937 compiler_flags=-v
5938 linker_flags=-v
5939 verstring=
5940 output_objdir=.
5941 libname=conftest
5942 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
5943 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5944 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5945 then
5946 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5947 else
5948 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5949 fi
5950 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5951 else
5952 cat conftest.err 1>&5
5953 fi
5954 $rm conftest*
5955 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5956 ;;
5957 esac
5958 fi
5959 ;;
5960 esac
5961 ])# AC_LIBTOOL_PROG_LD_SHLIBS
5962
5963
5964 # _LT_AC_FILE_LTDLL_C
5965 # -------------------
5966 # Be careful that the start marker always follows a newline.
5967 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
5968 # /* ltdll.c starts here */
5969 # #define WIN32_LEAN_AND_MEAN
5970 # #include <windows.h>
5971 # #undef WIN32_LEAN_AND_MEAN
5972 # #include <stdio.h>
5973 #
5974 # #ifndef __CYGWIN__
5975 # # ifdef __CYGWIN32__
5976 # # define __CYGWIN__ __CYGWIN32__
5977 # # endif
5978 # #endif
5979 #
5980 # #ifdef __cplusplus
5981 # extern "C" {
5982 # #endif
5983 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5984 # #ifdef __cplusplus
5985 # }
5986 # #endif
5987 #
5988 # #ifdef __CYGWIN__
5989 # #include <cygwin/cygwin_dll.h>
5990 # DECLARE_CYGWIN_DLL( DllMain );
5991 # #endif
5992 # HINSTANCE __hDllInstance_base;
5993 #
5994 # BOOL APIENTRY
5995 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5996 # {
5997 # __hDllInstance_base = hInst;
5998 # return TRUE;
5999 # }
6000 # /* ltdll.c ends here */
6001 ])# _LT_AC_FILE_LTDLL_C
6002
6003
6004 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6005 # ---------------------------------
6006 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6007
6008
6009 # old names
6010 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6011 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6012 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6013 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6014 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6015 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6016 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6017
6018 # This is just to silence aclocal about the macro not being used
6019 ifelse([AC_DISABLE_FAST_INSTALL])
6020
6021 AC_DEFUN([LT_AC_PROG_GCJ],
6022 [AC_CHECK_TOOL(GCJ, gcj, no)
6023 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6024 AC_SUBST(GCJFLAGS)
6025 ])
6026
6027 AC_DEFUN([LT_AC_PROG_RC],
6028 [AC_CHECK_TOOL(RC, windres, no)
6029 ])
6030
6031 # NOTE: This macro has been submitted for inclusion into #
6032 # GNU Autoconf as AC_PROG_SED. When it is available in #
6033 # a released version of Autoconf we should remove this #
6034 # macro and use it instead. #
6035 # LT_AC_PROG_SED
6036 # --------------
6037 # Check for a fully-functional sed program, that truncates
6038 # as few characters as possible. Prefer GNU sed if found.
6039 AC_DEFUN([LT_AC_PROG_SED],
6040 [AC_MSG_CHECKING([for a sed that does not truncate output])
6041 AC_CACHE_VAL(lt_cv_path_SED,
6042 [# Loop through the user's path and test for sed and gsed.
6043 # Then use that list of sed's as ones to test for truncation.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for lt_ac_prog in sed gsed; do
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6052 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6053 fi
6054 done
6055 done
6056 done
6057 lt_ac_max=0
6058 lt_ac_count=0
6059 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6060 # along with /bin/sed that truncates output.
6061 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6062 test ! -f $lt_ac_sed && break
6063 cat /dev/null > conftest.in
6064 lt_ac_count=0
6065 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6066 # Check for GNU sed and select it if it is found.
6067 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6068 lt_cv_path_SED=$lt_ac_sed
6069 break
6070 fi
6071 while true; do
6072 cat conftest.in conftest.in >conftest.tmp
6073 mv conftest.tmp conftest.in
6074 cp conftest.in conftest.nl
6075 echo >>conftest.nl
6076 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6077 cmp -s conftest.out conftest.nl || break
6078 # 10000 chars as input seems more than enough
6079 test $lt_ac_count -gt 10 && break
6080 lt_ac_count=`expr $lt_ac_count + 1`
6081 if test $lt_ac_count -gt $lt_ac_max; then
6082 lt_ac_max=$lt_ac_count
6083 lt_cv_path_SED=$lt_ac_sed
6084 fi
6085 done
6086 done
6087 ])
6088 SED=$lt_cv_path_SED
6089 AC_MSG_RESULT([$SED])
6090 ])
6091
6092 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6093 #
6094 # This file is free software; the Free Software Foundation
6095 # gives unlimited permission to copy and/or distribute it,
6096 # with or without modifications, as long as this notice is preserved.
6097
6098 # AM_AUTOMAKE_VERSION(VERSION)
6099 # ----------------------------
6100 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6101 # generated from the m4 files accompanying Automake X.Y.
6102 # (This private macro should not be called outside this file.)
6103 AC_DEFUN([AM_AUTOMAKE_VERSION],
6104 [am__api_version='1.10'
6105 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6106 dnl require some minimum version. Point them to the right macro.
6107 m4_if([$1], [1.10], [],
6108 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6109 ])
6110
6111 # _AM_AUTOCONF_VERSION(VERSION)
6112 # -----------------------------
6113 # aclocal traces this macro to find the Autoconf version.
6114 # This is a private macro too. Using m4_define simplifies
6115 # the logic in aclocal, which can simply ignore this definition.
6116 m4_define([_AM_AUTOCONF_VERSION], [])
6117
6118 # AM_SET_CURRENT_AUTOMAKE_VERSION
6119 # -------------------------------
6120 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6121 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6122 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6123 [AM_AUTOMAKE_VERSION([1.10])dnl
6124 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6125
6126 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6127
6128 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6129 #
6130 # This file is free software; the Free Software Foundation
6131 # gives unlimited permission to copy and/or distribute it,
6132 # with or without modifications, as long as this notice is preserved.
6133
6134 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6135 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6136 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6137 #
6138 # Of course, Automake must honor this variable whenever it calls a
6139 # tool from the auxiliary directory. The problem is that $srcdir (and
6140 # therefore $ac_aux_dir as well) can be either absolute or relative,
6141 # depending on how configure is run. This is pretty annoying, since
6142 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6143 # source directory, any form will work fine, but in subdirectories a
6144 # relative path needs to be adjusted first.
6145 #
6146 # $ac_aux_dir/missing
6147 # fails when called from a subdirectory if $ac_aux_dir is relative
6148 # $top_srcdir/$ac_aux_dir/missing
6149 # fails if $ac_aux_dir is absolute,
6150 # fails when called from a subdirectory in a VPATH build with
6151 # a relative $ac_aux_dir
6152 #
6153 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6154 # are both prefixed by $srcdir. In an in-source build this is usually
6155 # harmless because $srcdir is `.', but things will broke when you
6156 # start a VPATH build or use an absolute $srcdir.
6157 #
6158 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6159 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6160 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6161 # and then we would define $MISSING as
6162 # MISSING="\${SHELL} $am_aux_dir/missing"
6163 # This will work as long as MISSING is not called from configure, because
6164 # unfortunately $(top_srcdir) has no meaning in configure.
6165 # However there are other variables, like CC, which are often used in
6166 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6167 #
6168 # Another solution, used here, is to always expand $ac_aux_dir to an
6169 # absolute PATH. The drawback is that using absolute paths prevent a
6170 # configured tree to be moved without reconfiguration.
6171
6172 AC_DEFUN([AM_AUX_DIR_EXPAND],
6173 [dnl Rely on autoconf to set up CDPATH properly.
6174 AC_PREREQ([2.50])dnl
6175 # expand $ac_aux_dir to an absolute path
6176 am_aux_dir=`cd $ac_aux_dir && pwd`
6177 ])
6178
6179 # AM_CONDITIONAL -*- Autoconf -*-
6180
6181 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6182 # Free Software Foundation, Inc.
6183 #
6184 # This file is free software; the Free Software Foundation
6185 # gives unlimited permission to copy and/or distribute it,
6186 # with or without modifications, as long as this notice is preserved.
6187
6188 # serial 8
6189
6190 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6191 # -------------------------------------
6192 # Define a conditional.
6193 AC_DEFUN([AM_CONDITIONAL],
6194 [AC_PREREQ(2.52)dnl
6195 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6196 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6197 AC_SUBST([$1_TRUE])dnl
6198 AC_SUBST([$1_FALSE])dnl
6199 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
6200 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
6201 if $2; then
6202 $1_TRUE=
6203 $1_FALSE='#'
6204 else
6205 $1_TRUE='#'
6206 $1_FALSE=
6207 fi
6208 AC_CONFIG_COMMANDS_PRE(
6209 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6210 AC_MSG_ERROR([[conditional "$1" was never defined.
6211 Usually this means the macro was only invoked conditionally.]])
6212 fi])])
6213
6214 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6215 # Free Software Foundation, Inc.
6216 #
6217 # This file is free software; the Free Software Foundation
6218 # gives unlimited permission to copy and/or distribute it,
6219 # with or without modifications, as long as this notice is preserved.
6220
6221 # serial 9
6222
6223 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6224 # written in clear, in which case automake, when reading aclocal.m4,
6225 # will think it sees a *use*, and therefore will trigger all it's
6226 # C support machinery. Also note that it means that autoscan, seeing
6227 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6228
6229
6230 # _AM_DEPENDENCIES(NAME)
6231 # ----------------------
6232 # See how the compiler implements dependency checking.
6233 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6234 # We try a few techniques and use that to set a single cache variable.
6235 #
6236 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6237 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6238 # dependency, and given that the user is not expected to run this macro,
6239 # just rely on AC_PROG_CC.
6240 AC_DEFUN([_AM_DEPENDENCIES],
6241 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6242 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6243 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6244 AC_REQUIRE([AM_DEP_TRACK])dnl
6245
6246 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6247 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6248 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6249 [$1], UPC, [depcc="$UPC" am_compiler_list=],
6250 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6251 [depcc="$$1" am_compiler_list=])
6252
6253 AC_CACHE_CHECK([dependency style of $depcc],
6254 [am_cv_$1_dependencies_compiler_type],
6255 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6256 # We make a subdir and do the tests there. Otherwise we can end up
6257 # making bogus files that we don't know about and never remove. For
6258 # instance it was reported that on HP-UX the gcc test will end up
6259 # making a dummy file named `D' -- because `-MD' means `put the output
6260 # in D'.
6261 mkdir conftest.dir
6262 # Copy depcomp to subdir because otherwise we won't find it if we're
6263 # using a relative directory.
6264 cp "$am_depcomp" conftest.dir
6265 cd conftest.dir
6266 # We will build objects and dependencies in a subdirectory because
6267 # it helps to detect inapplicable dependency modes. For instance
6268 # both Tru64's cc and ICC support -MD to output dependencies as a
6269 # side effect of compilation, but ICC will put the dependencies in
6270 # the current directory while Tru64 will put them in the object
6271 # directory.
6272 mkdir sub
6273
6274 am_cv_$1_dependencies_compiler_type=none
6275 if test "$am_compiler_list" = ""; then
6276 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6277 fi
6278 for depmode in $am_compiler_list; do
6279 # Setup a source with many dependencies, because some compilers
6280 # like to wrap large dependency lists on column 80 (with \), and
6281 # we should not choose a depcomp mode which is confused by this.
6282 #
6283 # We need to recreate these files for each test, as the compiler may
6284 # overwrite some of them when testing with obscure command lines.
6285 # This happens at least with the AIX C compiler.
6286 : > sub/conftest.c
6287 for i in 1 2 3 4 5 6; do
6288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6290 # Solaris 8's {/usr,}/bin/sh.
6291 touch sub/conftst$i.h
6292 done
6293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6294
6295 case $depmode in
6296 nosideeffect)
6297 # after this tag, mechanisms are not by side-effect, so they'll
6298 # only be used when explicitly requested
6299 if test "x$enable_dependency_tracking" = xyes; then
6300 continue
6301 else
6302 break
6303 fi
6304 ;;
6305 none) break ;;
6306 esac
6307 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6308 # mode. It turns out that the SunPro C++ compiler does not properly
6309 # handle `-M -o', and we need to detect this.
6310 if depmode=$depmode \
6311 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6313 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6314 >/dev/null 2>conftest.err &&
6315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6319 # icc doesn't choke on unknown options, it will just issue warnings
6320 # or remarks (even with -Werror). So we grep stderr for any message
6321 # that says an option was ignored or not supported.
6322 # When given -MP, icc 7.0 and 7.1 complain thusly:
6323 # icc: Command line warning: ignoring option '-M'; no argument required
6324 # The diagnosis changed in icc 8.0:
6325 # icc: Command line remark: option '-MP' not supported
6326 if (grep 'ignoring option' conftest.err ||
6327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6328 am_cv_$1_dependencies_compiler_type=$depmode
6329 break
6330 fi
6331 fi
6332 done
6333
6334 cd ..
6335 rm -rf conftest.dir
6336 else
6337 am_cv_$1_dependencies_compiler_type=none
6338 fi
6339 ])
6340 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6341 AM_CONDITIONAL([am__fastdep$1], [
6342 test "x$enable_dependency_tracking" != xno \
6343 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6344 ])
6345
6346
6347 # AM_SET_DEPDIR
6348 # -------------
6349 # Choose a directory name for dependency files.
6350 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6351 AC_DEFUN([AM_SET_DEPDIR],
6352 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6353 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6354 ])
6355
6356
6357 # AM_DEP_TRACK
6358 # ------------
6359 AC_DEFUN([AM_DEP_TRACK],
6360 [AC_ARG_ENABLE(dependency-tracking,
6361 [ --disable-dependency-tracking speeds up one-time build
6362 --enable-dependency-tracking do not reject slow dependency extractors])
6363 if test "x$enable_dependency_tracking" != xno; then
6364 am_depcomp="$ac_aux_dir/depcomp"
6365 AMDEPBACKSLASH='\'
6366 fi
6367 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6368 AC_SUBST([AMDEPBACKSLASH])dnl
6369 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6370 ])
6371
6372 # Generate code to set up dependency tracking. -*- Autoconf -*-
6373
6374 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6375 # Free Software Foundation, Inc.
6376 #
6377 # This file is free software; the Free Software Foundation
6378 # gives unlimited permission to copy and/or distribute it,
6379 # with or without modifications, as long as this notice is preserved.
6380
6381 #serial 3
6382
6383 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6384 # ------------------------------
6385 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6386 [for mf in $CONFIG_FILES; do
6387 # Strip MF so we end up with the name of the file.
6388 mf=`echo "$mf" | sed -e 's/:.*$//'`
6389 # Check whether this is an Automake generated Makefile or not.
6390 # We used to match only the files named `Makefile.in', but
6391 # some people rename them; so instead we look at the file content.
6392 # Grep'ing the first line is not enough: some people post-process
6393 # each Makefile.in and add a new line on top of each file to say so.
6394 # Grep'ing the whole file is not good either: AIX grep has a line
6395 # limit of 2048, but all sed's we know have understand at least 4000.
6396 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6397 dirpart=`AS_DIRNAME("$mf")`
6398 else
6399 continue
6400 fi
6401 # Extract the definition of DEPDIR, am__include, and am__quote
6402 # from the Makefile without running `make'.
6403 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6404 test -z "$DEPDIR" && continue
6405 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6406 test -z "am__include" && continue
6407 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6408 # When using ansi2knr, U may be empty or an underscore; expand it
6409 U=`sed -n 's/^U = //p' < "$mf"`
6410 # Find all dependency output files, they are included files with
6411 # $(DEPDIR) in their names. We invoke sed twice because it is the
6412 # simplest approach to changing $(DEPDIR) to its actual value in the
6413 # expansion.
6414 for file in `sed -n "
6415 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6416 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6417 # Make sure the directory exists.
6418 test -f "$dirpart/$file" && continue
6419 fdir=`AS_DIRNAME(["$file"])`
6420 AS_MKDIR_P([$dirpart/$fdir])
6421 # echo "creating $dirpart/$file"
6422 echo '# dummy' > "$dirpart/$file"
6423 done
6424 done
6425 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6426
6427
6428 # AM_OUTPUT_DEPENDENCY_COMMANDS
6429 # -----------------------------
6430 # This macro should only be invoked once -- use via AC_REQUIRE.
6431 #
6432 # This code is only required when automatic dependency tracking
6433 # is enabled. FIXME. This creates each `.P' file that we will
6434 # need in order to bootstrap the dependency handling code.
6435 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6436 [AC_CONFIG_COMMANDS([depfiles],
6437 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6438 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6439 ])
6440
6441 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6442 # Free Software Foundation, Inc.
6443 #
6444 # This file is free software; the Free Software Foundation
6445 # gives unlimited permission to copy and/or distribute it,
6446 # with or without modifications, as long as this notice is preserved.
6447
6448 # serial 8
6449
6450 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6451 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6452
6453 # Do all the work for Automake. -*- Autoconf -*-
6454
6455 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6456 # 2005, 2006 Free Software Foundation, Inc.
6457 #
6458 # This file is free software; the Free Software Foundation
6459 # gives unlimited permission to copy and/or distribute it,
6460 # with or without modifications, as long as this notice is preserved.
6461
6462 # serial 12
6463
6464 # This macro actually does too much. Some checks are only needed if
6465 # your package does certain things. But this isn't really a big deal.
6466
6467 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6468 # AM_INIT_AUTOMAKE([OPTIONS])
6469 # -----------------------------------------------
6470 # The call with PACKAGE and VERSION arguments is the old style
6471 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6472 # and VERSION should now be passed to AC_INIT and removed from
6473 # the call to AM_INIT_AUTOMAKE.
6474 # We support both call styles for the transition. After
6475 # the next Automake release, Autoconf can make the AC_INIT
6476 # arguments mandatory, and then we can depend on a new Autoconf
6477 # release and drop the old call support.
6478 AC_DEFUN([AM_INIT_AUTOMAKE],
6479 [AC_PREREQ([2.60])dnl
6480 dnl Autoconf wants to disallow AM_ names. We explicitly allow
6481 dnl the ones we care about.
6482 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6483 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6484 AC_REQUIRE([AC_PROG_INSTALL])dnl
6485 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6486 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6487 # is not polluted with repeated "-I."
6488 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
6489 # test to see if srcdir already configured
6490 if test -f $srcdir/config.status; then
6491 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6492 fi
6493 fi
6494
6495 # test whether we have cygpath
6496 if test -z "$CYGPATH_W"; then
6497 if (cygpath --version) >/dev/null 2>/dev/null; then
6498 CYGPATH_W='cygpath -w'
6499 else
6500 CYGPATH_W=echo
6501 fi
6502 fi
6503 AC_SUBST([CYGPATH_W])
6504
6505 # Define the identity of the package.
6506 dnl Distinguish between old-style and new-style calls.
6507 m4_ifval([$2],
6508 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6509 AC_SUBST([PACKAGE], [$1])dnl
6510 AC_SUBST([VERSION], [$2])],
6511 [_AM_SET_OPTIONS([$1])dnl
6512 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
6513 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
6514 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6515 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6516 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6517
6518 _AM_IF_OPTION([no-define],,
6519 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6520 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6521
6522 # Some tools Automake needs.
6523 AC_REQUIRE([AM_SANITY_CHECK])dnl
6524 AC_REQUIRE([AC_ARG_PROGRAM])dnl
6525 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6526 AM_MISSING_PROG(AUTOCONF, autoconf)
6527 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6528 AM_MISSING_PROG(AUTOHEADER, autoheader)
6529 AM_MISSING_PROG(MAKEINFO, makeinfo)
6530 AM_PROG_INSTALL_SH
6531 AM_PROG_INSTALL_STRIP
6532 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6533 # We need awk for the "check" target. The system "awk" is bad on
6534 # some platforms.
6535 AC_REQUIRE([AC_PROG_AWK])dnl
6536 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6537 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6538 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6539 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6540 [_AM_PROG_TAR([v7])])])
6541 _AM_IF_OPTION([no-dependencies],,
6542 [AC_PROVIDE_IFELSE([AC_PROG_CC],
6543 [_AM_DEPENDENCIES(CC)],
6544 [define([AC_PROG_CC],
6545 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6546 AC_PROVIDE_IFELSE([AC_PROG_CXX],
6547 [_AM_DEPENDENCIES(CXX)],
6548 [define([AC_PROG_CXX],
6549 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6550 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
6551 [_AM_DEPENDENCIES(OBJC)],
6552 [define([AC_PROG_OBJC],
6553 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6554 ])
6555 ])
6556
6557
6558 # When config.status generates a header, we must update the stamp-h file.
6559 # This file resides in the same directory as the config header
6560 # that is generated. The stamp files are numbered to have different names.
6561
6562 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6563 # loop where config.status creates the headers, so we can generate
6564 # our stamp files there.
6565 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6566 [# Compute $1's index in $config_headers.
6567 _am_stamp_count=1
6568 for _am_header in $config_headers :; do
6569 case $_am_header in
6570 $1 | $1:* )
6571 break ;;
6572 * )
6573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6574 esac
6575 done
6576 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6577
6578 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6579 #
6580 # This file is free software; the Free Software Foundation
6581 # gives unlimited permission to copy and/or distribute it,
6582 # with or without modifications, as long as this notice is preserved.
6583
6584 # AM_PROG_INSTALL_SH
6585 # ------------------
6586 # Define $install_sh.
6587 AC_DEFUN([AM_PROG_INSTALL_SH],
6588 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6589 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6590 AC_SUBST(install_sh)])
6591
6592 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6593 #
6594 # This file is free software; the Free Software Foundation
6595 # gives unlimited permission to copy and/or distribute it,
6596 # with or without modifications, as long as this notice is preserved.
6597
6598 # serial 2
6599
6600 # Check whether the underlying file-system supports filenames
6601 # with a leading dot. For instance MS-DOS doesn't.
6602 AC_DEFUN([AM_SET_LEADING_DOT],
6603 [rm -rf .tst 2>/dev/null
6604 mkdir .tst 2>/dev/null
6605 if test -d .tst; then
6606 am__leading_dot=.
6607 else
6608 am__leading_dot=_
6609 fi
6610 rmdir .tst 2>/dev/null
6611 AC_SUBST([am__leading_dot])])
6612
6613 # Check to see how 'make' treats includes. -*- Autoconf -*-
6614
6615 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6616 #
6617 # This file is free software; the Free Software Foundation
6618 # gives unlimited permission to copy and/or distribute it,
6619 # with or without modifications, as long as this notice is preserved.
6620
6621 # serial 3
6622
6623 # AM_MAKE_INCLUDE()
6624 # -----------------
6625 # Check to see how make treats includes.
6626 AC_DEFUN([AM_MAKE_INCLUDE],
6627 [am_make=${MAKE-make}
6628 cat > confinc << 'END'
6629 am__doit:
6630 @echo done
6631 .PHONY: am__doit
6632 END
6633 # If we don't find an include directive, just comment out the code.
6634 AC_MSG_CHECKING([for style of include used by $am_make])
6635 am__include="#"
6636 am__quote=
6637 _am_result=none
6638 # First try GNU make style include.
6639 echo "include confinc" > confmf
6640 # We grep out `Entering directory' and `Leaving directory'
6641 # messages which can occur if `w' ends up in MAKEFLAGS.
6642 # In particular we don't look at `^make:' because GNU make might
6643 # be invoked under some other name (usually "gmake"), in which
6644 # case it prints its new name instead of `make'.
6645 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6646 am__include=include
6647 am__quote=
6648 _am_result=GNU
6649 fi
6650 # Now try BSD make style include.
6651 if test "$am__include" = "#"; then
6652 echo '.include "confinc"' > confmf
6653 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6654 am__include=.include
6655 am__quote="\""
6656 _am_result=BSD
6657 fi
6658 fi
6659 AC_SUBST([am__include])
6660 AC_SUBST([am__quote])
6661 AC_MSG_RESULT([$_am_result])
6662 rm -f confinc confmf
6663 ])
6664
6665 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6666
6667 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6668 # Free Software Foundation, Inc.
6669 #
6670 # This file is free software; the Free Software Foundation
6671 # gives unlimited permission to copy and/or distribute it,
6672 # with or without modifications, as long as this notice is preserved.
6673
6674 # serial 5
6675
6676 # AM_MISSING_PROG(NAME, PROGRAM)
6677 # ------------------------------
6678 AC_DEFUN([AM_MISSING_PROG],
6679 [AC_REQUIRE([AM_MISSING_HAS_RUN])
6680 $1=${$1-"${am_missing_run}$2"}
6681 AC_SUBST($1)])
6682
6683
6684 # AM_MISSING_HAS_RUN
6685 # ------------------
6686 # Define MISSING if not defined so far and test if it supports --run.
6687 # If it does, set am_missing_run to use it, otherwise, to nothing.
6688 AC_DEFUN([AM_MISSING_HAS_RUN],
6689 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6690 AC_REQUIRE_AUX_FILE([missing])dnl
6691 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6692 # Use eval to expand $SHELL
6693 if eval "$MISSING --run true"; then
6694 am_missing_run="$MISSING --run "
6695 else
6696 am_missing_run=
6697 AC_MSG_WARN([`missing' script is too old or missing])
6698 fi
6699 ])
6700
6701 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6702 #
6703 # This file is free software; the Free Software Foundation
6704 # gives unlimited permission to copy and/or distribute it,
6705 # with or without modifications, as long as this notice is preserved.
6706
6707 # AM_PROG_MKDIR_P
6708 # ---------------
6709 # Check for `mkdir -p'.
6710 AC_DEFUN([AM_PROG_MKDIR_P],
6711 [AC_PREREQ([2.60])dnl
6712 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
6713 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
6714 dnl while keeping a definition of mkdir_p for backward compatibility.
6715 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
6716 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
6717 dnl Makefile.ins that do not define MKDIR_P, so we do our own
6718 dnl adjustment using top_builddir (which is defined more often than
6719 dnl MKDIR_P).
6720 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
6721 case $mkdir_p in
6722 [[\\/$]]* | ?:[[\\/]]*) ;;
6723 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6724 esac
6725 ])
6726
6727 # Helper functions for option handling. -*- Autoconf -*-
6728
6729 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6730 #
6731 # This file is free software; the Free Software Foundation
6732 # gives unlimited permission to copy and/or distribute it,
6733 # with or without modifications, as long as this notice is preserved.
6734
6735 # serial 3
6736
6737 # _AM_MANGLE_OPTION(NAME)
6738 # -----------------------
6739 AC_DEFUN([_AM_MANGLE_OPTION],
6740 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6741
6742 # _AM_SET_OPTION(NAME)
6743 # ------------------------------
6744 # Set option NAME. Presently that only means defining a flag for this option.
6745 AC_DEFUN([_AM_SET_OPTION],
6746 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6747
6748 # _AM_SET_OPTIONS(OPTIONS)
6749 # ----------------------------------
6750 # OPTIONS is a space-separated list of Automake options.
6751 AC_DEFUN([_AM_SET_OPTIONS],
6752 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6753
6754 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6755 # -------------------------------------------
6756 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6757 AC_DEFUN([_AM_IF_OPTION],
6758 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6759
6760 # Check to make sure that the build environment is sane. -*- Autoconf -*-
6761
6762 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6763 # Free Software Foundation, Inc.
6764 #
6765 # This file is free software; the Free Software Foundation
6766 # gives unlimited permission to copy and/or distribute it,
6767 # with or without modifications, as long as this notice is preserved.
6768
6769 # serial 4
6770
6771 # AM_SANITY_CHECK
6772 # ---------------
6773 AC_DEFUN([AM_SANITY_CHECK],
6774 [AC_MSG_CHECKING([whether build environment is sane])
6775 # Just in case
6776 sleep 1
6777 echo timestamp > conftest.file
6778 # Do `set' in a subshell so we don't clobber the current shell's
6779 # arguments. Must try -L first in case configure is actually a
6780 # symlink; some systems play weird games with the mod time of symlinks
6781 # (eg FreeBSD returns the mod time of the symlink's containing
6782 # directory).
6783 if (
6784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6785 if test "$[*]" = "X"; then
6786 # -L didn't work.
6787 set X `ls -t $srcdir/configure conftest.file`
6788 fi
6789 rm -f conftest.file
6790 if test "$[*]" != "X $srcdir/configure conftest.file" \
6791 && test "$[*]" != "X conftest.file $srcdir/configure"; then
6792
6793 # If neither matched, then we have a broken ls. This can happen
6794 # if, for instance, CONFIG_SHELL is bash and it inherits a
6795 # broken ls alias from the environment. This has actually
6796 # happened. Such a system could not be considered "sane".
6797 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
6798 alias in your environment])
6799 fi
6800
6801 test "$[2]" = conftest.file
6802 )
6803 then
6804 # Ok.
6805 :
6806 else
6807 AC_MSG_ERROR([newly created file is older than distributed files!
6808 Check your system clock])
6809 fi
6810 AC_MSG_RESULT(yes)])
6811
6812 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6813 #
6814 # This file is free software; the Free Software Foundation
6815 # gives unlimited permission to copy and/or distribute it,
6816 # with or without modifications, as long as this notice is preserved.
6817
6818 # AM_PROG_INSTALL_STRIP
6819 # ---------------------
6820 # One issue with vendor `install' (even GNU) is that you can't
6821 # specify the program used to strip binaries. This is especially
6822 # annoying in cross-compiling environments, where the build's strip
6823 # is unlikely to handle the host's binaries.
6824 # Fortunately install-sh will honor a STRIPPROG variable, so we
6825 # always use install-sh in `make install-strip', and initialize
6826 # STRIPPROG with the value of the STRIP variable (set by the user).
6827 AC_DEFUN([AM_PROG_INSTALL_STRIP],
6828 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
6829 # Installed binaries are usually stripped using `strip' when the user
6830 # run `make install-strip'. However `strip' might not be the right
6831 # tool to use in cross-compilation environments, therefore Automake
6832 # will honor the `STRIP' environment variable to overrule this program.
6833 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
6834 if test "$cross_compiling" != no; then
6835 AC_CHECK_TOOL([STRIP], [strip], :)
6836 fi
6837 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6838 AC_SUBST([INSTALL_STRIP_PROGRAM])])
6839
6840 # Copyright (C) 2006 Free Software Foundation, Inc.
6841 #
6842 # This file is free software; the Free Software Foundation
6843 # gives unlimited permission to copy and/or distribute it,
6844 # with or without modifications, as long as this notice is preserved.
6845
6846 # _AM_SUBST_NOTMAKE(VARIABLE)
6847 # ---------------------------
6848 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
6849 # This macro is traced by Automake.
6850 AC_DEFUN([_AM_SUBST_NOTMAKE])
6851
6852 # Check how to create a tarball. -*- Autoconf -*-
6853
6854 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
6855 #
6856 # This file is free software; the Free Software Foundation
6857 # gives unlimited permission to copy and/or distribute it,
6858 # with or without modifications, as long as this notice is preserved.
6859
6860 # serial 2
6861
6862 # _AM_PROG_TAR(FORMAT)
6863 # --------------------
6864 # Check how to create a tarball in format FORMAT.
6865 # FORMAT should be one of `v7', `ustar', or `pax'.
6866 #
6867 # Substitute a variable $(am__tar) that is a command
6868 # writing to stdout a FORMAT-tarball containing the directory
6869 # $tardir.
6870 # tardir=directory && $(am__tar) > result.tar
6871 #
6872 # Substitute a variable $(am__untar) that extract such
6873 # a tarball read from stdin.
6874 # $(am__untar) < result.tar
6875 AC_DEFUN([_AM_PROG_TAR],
6876 [# Always define AMTAR for backward compatibility.
6877 AM_MISSING_PROG([AMTAR], [tar])
6878 m4_if([$1], [v7],
6879 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
6880 [m4_case([$1], [ustar],, [pax],,
6881 [m4_fatal([Unknown tar format])])
6882 AC_MSG_CHECKING([how to create a $1 tar archive])
6883 # Loop over all known methods to create a tar archive until one works.
6884 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
6885 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
6886 # Do not fold the above two line into one, because Tru64 sh and
6887 # Solaris sh will not grok spaces in the rhs of `-'.
6888 for _am_tool in $_am_tools
6889 do
6890 case $_am_tool in
6891 gnutar)
6892 for _am_tar in tar gnutar gtar;
6893 do
6894 AM_RUN_LOG([$_am_tar --version]) && break
6895 done
6896 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
6897 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
6898 am__untar="$_am_tar -xf -"
6899 ;;
6900 plaintar)
6901 # Must skip GNU tar: if it does not support --format= it doesn't create
6902 # ustar tarball either.
6903 (tar --version) >/dev/null 2>&1 && continue
6904 am__tar='tar chf - "$$tardir"'
6905 am__tar_='tar chf - "$tardir"'
6906 am__untar='tar xf -'
6907 ;;
6908 pax)
6909 am__tar='pax -L -x $1 -w "$$tardir"'
6910 am__tar_='pax -L -x $1 -w "$tardir"'
6911 am__untar='pax -r'
6912 ;;
6913 cpio)
6914 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
6915 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
6916 am__untar='cpio -i -H $1 -d'
6917 ;;
6918 none)
6919 am__tar=false
6920 am__tar_=false
6921 am__untar=false
6922 ;;
6923 esac
6924
6925 # If the value was cached, stop now. We just wanted to have am__tar
6926 # and am__untar set.
6927 test -n "${am_cv_prog_tar_$1}" && break
6928
6929 # tar/untar a dummy directory, and stop if the command works
6930 rm -rf conftest.dir
6931 mkdir conftest.dir
6932 echo GrepMe > conftest.dir/file
6933 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
6934 rm -rf conftest.dir
6935 if test -s conftest.tar; then
6936 AM_RUN_LOG([$am__untar <conftest.tar])
6937 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
6938 fi
6939 done
6940 rm -rf conftest.dir
6941
6942 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
6943 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
6944 AC_SUBST([am__tar])
6945 AC_SUBST([am__untar])
6946 ]) # _AM_PROG_TAR
6947