]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Makefile.am (SUBDIRS): Protect with ENABLE_VTABLE_VERIFY.
[thirdparty/gcc.git] / libvtv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
563
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 XCFLAGS
606 libtool_VERSION
607 enable_static
608 enable_shared
609 CXXCPP
610 CPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 OBJDUMP
617 LN_S
618 NM
619 ac_ct_DUMPBIN
620 DUMPBIN
621 LD
622 FGREP
623 EGREP
624 GREP
625 SED
626 LIBTOOL
627 RANLIB
628 AR
629 AS
630 CCASFLAGS
631 CCAS
632 am__fastdepCXX_FALSE
633 am__fastdepCXX_TRUE
634 CXXDEPMODE
635 ac_ct_CXX
636 CXXFLAGS
637 CXX
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 toolexeclibdir
655 toolexecdir
656 toplevel_srcdir
657 toplevel_builddir
658 libvtv_srcdir
659 libvtv_builddir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LIBSTDCXX_RAW_CXX_LDFLAGS
688 LIBSTDCXX_RAW_CXX_CXXFLAGS
689 target_noncanonical
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 ENABLE_VTABLE_VERIFY_FALSE
703 ENABLE_VTABLE_VERIFY_TRUE
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_version_specific_runtime_libs
746 enable_vtable_verify
747 enable_multilib
748 enable_maintainer_mode
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 enable_libtool_lock
756 '
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
760 CPP
761 CPPFLAGS
762 CXXCPP'
763
764
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
786
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
812
813 ac_prev=
814 ac_dashdash=
815 for ac_option
816 do
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
822 fi
823
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information."
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190 do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1371 fi
1372
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1376 esac
1377 cat <<\_ACEOF
1378
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1384 --enable-vtable-verify Enable vtable verification feature
1385 --enable-multilib build many library versions (default)
1386 --enable-maintainer-mode enable make rules and dependencies not useful
1387 (and sometimes confusing) to the casual installer
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1413 CPP C preprocessor
1414 CXXCPP C++ preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1421 General help using GNU software: <http://www.gnu.org/gethelp/>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 GNU Vtable Verification Runtime Library configure 1.0
1485 generated by GNU Autoconf 2.64
1486
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 return $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1571
1572 } # ac_fn_cxx_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 $as_test_x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 return $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } >/dev/null && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_cxx_try_cpp LINENO
1798 # ------------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_cpp ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } >/dev/null && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1831
1832 } # ac_fn_cxx_try_cpp
1833
1834 # ac_fn_cxx_try_link LINENO
1835 # -------------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_link ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1877
1878 } # ac_fn_cxx_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072 echo
2073 cat confdefs.h
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2083 ' 0
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2088
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2091
2092 $as_echo "/* confdefs.h */" > confdefs.h
2093
2094 # Predefined preprocessor variables.
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2119
2120
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2133 fi
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 do
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file"
2142 fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2210 fi
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232
2233 #AC_INIT(package-unused, version-unused, libvtv)
2234
2235
2236 # -------
2237 # Options
2238 # -------
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2240 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2241 # Check whether --enable-version-specific-runtime-libs was given.
2242 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2243 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2244 yes) version_specific_libs=yes ;;
2245 no) version_specific_libs=no ;;
2246 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2247 esac
2248 else
2249 version_specific_libs=no
2250 fi
2251
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2253 $as_echo "$version_specific_libs" >&6; }
2254
2255 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2257 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
2258 # Check whether --enable-vtable-verify was given.
2259 if test "${enable_vtable_verify+set}" = set; then :
2260 enableval=$enable_vtable_verify; case "$enableval" in
2261 yes) enable_vtable_verify=yes ;;
2262 no) enable_vtable_verify=no ;;
2263 *) enable_vtable_verify=no;;
2264 esac
2265 else
2266 enable_vtable_verify=no
2267 fi
2268
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2270 $as_echo "$enable_vtable_verify" >&6; }
2271
2272 # See if supported.
2273 unset VTV_SUPPORTED
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2275 $as_echo_n "checking for host support for vtable verification... " >&6; }
2276 . ${srcdir}/configure.tgt
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2278 $as_echo "$VTV_SUPPORTED" >&6; }
2279
2280 # Decide if it's usable.
2281 use_vtable_verify=no
2282 if test "x$VTV_SUPPORTED" = "xyes"; then
2283 if test "x$enable_vtable_verify" = "xyes"; then
2284 use_vtable_verify=yes
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2286 $as_echo "$as_me: using vtable verification" >&6;}
2287 fi
2288 fi
2289 if test $use_vtable_verify = yes; then
2290 ENABLE_VTABLE_VERIFY_TRUE=
2291 ENABLE_VTABLE_VERIFY_FALSE='#'
2292 else
2293 ENABLE_VTABLE_VERIFY_TRUE='#'
2294 ENABLE_VTABLE_VERIFY_FALSE=
2295 fi
2296
2297
2298 # Do not delete or change the following two lines. For why, see
2299 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2300 ac_aux_dir=
2301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302 for ac_t in install-sh install.sh shtool; do
2303 if test -f "$ac_dir/$ac_t"; then
2304 ac_aux_dir=$ac_dir
2305 ac_install_sh="$ac_aux_dir/$ac_t -c"
2306 break 2
2307 fi
2308 done
2309 done
2310 if test -z "$ac_aux_dir"; then
2311 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2312 fi
2313
2314 # These three variables are undocumented and unsupported,
2315 # and are intended to be withdrawn in a future Autoconf release.
2316 # They can cause serious problems if a builder's source tree is in a directory
2317 # whose full name contains unusual characters.
2318 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2319 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2320 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2321
2322
2323 # Make sure we can run config.sub.
2324 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2325 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2328 $as_echo_n "checking build system type... " >&6; }
2329 if test "${ac_cv_build+set}" = set; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 ac_build_alias=$build_alias
2333 test "x$ac_build_alias" = x &&
2334 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2335 test "x$ac_build_alias" = x &&
2336 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2337 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2338 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2339
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2342 $as_echo "$ac_cv_build" >&6; }
2343 case $ac_cv_build in
2344 *-*-*) ;;
2345 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2346 esac
2347 build=$ac_cv_build
2348 ac_save_IFS=$IFS; IFS='-'
2349 set x $ac_cv_build
2350 shift
2351 build_cpu=$1
2352 build_vendor=$2
2353 shift; shift
2354 # Remember, the first character of IFS is used to create $*,
2355 # except with old shells:
2356 build_os=$*
2357 IFS=$ac_save_IFS
2358 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2359
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2362 $as_echo_n "checking host system type... " >&6; }
2363 if test "${ac_cv_host+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 if test "x$host_alias" = x; then
2367 ac_cv_host=$ac_cv_build
2368 else
2369 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2370 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2371 fi
2372
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2375 $as_echo "$ac_cv_host" >&6; }
2376 case $ac_cv_host in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2379 esac
2380 host=$ac_cv_host
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_host
2383 shift
2384 host_cpu=$1
2385 host_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 host_os=$*
2390 IFS=$ac_save_IFS
2391 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2392
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2395 $as_echo_n "checking target system type... " >&6; }
2396 if test "${ac_cv_target+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$target_alias" = x; then
2400 ac_cv_target=$ac_cv_host
2401 else
2402 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2404 fi
2405
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2408 $as_echo "$ac_cv_target" >&6; }
2409 case $ac_cv_target in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2412 esac
2413 target=$ac_cv_target
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_target
2416 shift
2417 target_cpu=$1
2418 target_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 target_os=$*
2423 IFS=$ac_save_IFS
2424 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 # The aliases save the names the user supplied, while $host etc.
2428 # will get canonicalized.
2429 test -n "$target_alias" &&
2430 test "$program_prefix$program_suffix$program_transform_name" = \
2431 NONENONEs,x,x, &&
2432 program_prefix=${target_alias}-
2433
2434 target_alias=${target_alias-$host_alias}
2435
2436 case ${build_alias} in
2437 "") build_noncanonical=${build} ;;
2438 *) build_noncanonical=${build_alias} ;;
2439 esac
2440
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
2444 esac
2445
2446 case ${target_alias} in
2447 "") target_noncanonical=${host_noncanonical} ;;
2448 *) target_noncanonical=${target_alias} ;;
2449 esac
2450
2451
2452
2453
2454
2455 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2456 -I\$(top_builddir)/../libstdc++-v3/include \
2457 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2458 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2459 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2460 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2461
2462
2463
2464
2465 am__api_version='1.11'
2466
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2508 :
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
2513 else
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
2526 fi
2527 fi
2528 done
2529 done
2530 ;;
2531 esac
2532
2533 done
2534 IFS=$as_save_IFS
2535
2536 rm -rf conftest.one conftest.two conftest.dir
2537
2538 fi
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2547 fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2562 # Just in case
2563 sleep 1
2564 echo timestamp > conftest.file
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name. Accept space and tab only in the latter.
2567 am_lf='
2568 '
2569 case `pwd` in
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2572 esac
2573 case $srcdir in
2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2576 esac
2577
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t "$srcdir/configure" conftest.file`
2588 fi
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" "$LINENO" 5
2599 fi
2600
2601 test "$2" = conftest.file
2602 )
2603 then
2604 # Ok.
2605 :
2606 else
2607 as_fn_error "newly created file is older than distributed files!
2608 Check your system clock" "$LINENO" 5
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 test "$program_prefix" != NONE &&
2613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617 # Double any \ or $.
2618 # By default was `s,x,x', remove it if useless.
2619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2624
2625 if test x"${MISSING+set}" != xset; then
2626 case $am_aux_dir in
2627 *\ * | *\ *)
2628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629 *)
2630 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2631 esac
2632 fi
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636 else
2637 am_missing_run=
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 fi
2641
2642 if test x"${install_sh}" != xset; then
2643 case $am_aux_dir in
2644 *\ * | *\ *)
2645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646 *)
2647 install_sh="\${SHELL} $am_aux_dir/install-sh"
2648 esac
2649 fi
2650
2651 # Installed binaries are usually stripped using `strip' when the user
2652 # run `make install-strip'. However `strip' might not be the right
2653 # tool to use in cross-compilation environments, therefore Automake
2654 # will honor the `STRIP' environment variable to overrule this program.
2655 if test "$cross_compiling" != no; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_STRIP+set}" = set; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$STRIP"; then
2665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 STRIP=$ac_cv_prog_STRIP
2685 if test -n "$STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687 $as_echo "$STRIP" >&6; }
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694 fi
2695 if test -z "$ac_cv_prog_STRIP"; then
2696 ac_ct_STRIP=$STRIP
2697 # Extract the first word of "strip", so it can be a program name with args.
2698 set dummy strip; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$ac_ct_STRIP"; then
2705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_STRIP="strip"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725 if test -n "$ac_ct_STRIP"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727 $as_echo "$ac_ct_STRIP" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733 if test "x$ac_ct_STRIP" = x; then
2734 STRIP=":"
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742 STRIP=$ac_ct_STRIP
2743 fi
2744 else
2745 STRIP="$ac_cv_prog_STRIP"
2746 fi
2747
2748 fi
2749 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753 if test -z "$MKDIR_P"; then
2754 if test "${ac_cv_path_mkdir+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_prog in mkdir gmkdir; do
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766 'mkdir (GNU coreutils) '* | \
2767 'mkdir (coreutils) '* | \
2768 'mkdir (fileutils) '4.1*)
2769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2770 break 3;;
2771 esac
2772 done
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi
2778
2779 if test "${ac_cv_path_mkdir+set}" = set; then
2780 MKDIR_P="$ac_cv_path_mkdir -p"
2781 else
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for MKDIR_P within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 test -d ./--version && rmdir ./--version
2787 MKDIR_P="$ac_install_sh -d"
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791 $as_echo "$MKDIR_P" >&6; }
2792
2793 mkdir_p="$MKDIR_P"
2794 case $mkdir_p in
2795 [\\/$]* | ?:[\\/]*) ;;
2796 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2797 esac
2798
2799 for ac_prog in gawk mawk nawk awk
2800 do
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_AWK+set}" = set; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$AWK"; then
2809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_AWK="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 AWK=$ac_cv_prog_AWK
2829 if test -n "$AWK"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 test -n "$AWK" && break
2839 done
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 *@@@%%%=?*=@@@%%%*)
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2857 *)
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2861 fi
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 SET_MAKE=
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2870 fi
2871
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2875 am__leading_dot=.
2876 else
2877 am__leading_dot=_
2878 fi
2879 rmdir .tst 2>/dev/null
2880
2881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883 # is not polluted with repeated "-I."
2884 am__isrc=' -I$(srcdir)'
2885 # test to see if srcdir already configured
2886 if test -f $srcdir/config.status; then
2887 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2888 fi
2889 fi
2890
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893 if (cygpath --version) >/dev/null 2>/dev/null; then
2894 CYGPATH_W='cygpath -w'
2895 else
2896 CYGPATH_W=echo
2897 fi
2898 fi
2899
2900
2901 # Define the identity of the package.
2902 PACKAGE='libvtv'
2903 VERSION='1.0'
2904
2905
2906 cat >>confdefs.h <<_ACEOF
2907 #define PACKAGE "$PACKAGE"
2908 _ACEOF
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define VERSION "$VERSION"
2913 _ACEOF
2914
2915 # Some tools Automake needs.
2916
2917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918
2919
2920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921
2922
2923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924
2925
2926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927
2928
2929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2930
2931 # We need awk for the "check" target. The system "awk" is bad on
2932 # some platforms.
2933 # Always define AMTAR for backward compatibility.
2934
2935 AMTAR=${AMTAR-"${am_missing_run}tar"}
2936
2937 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2938
2939
2940
2941
2942
2943 # Default to --enable-multilib
2944 # Check whether --enable-multilib was given.
2945 if test "${enable_multilib+set}" = set; then :
2946 enableval=$enable_multilib; case "$enableval" in
2947 yes) multilib=yes ;;
2948 no) multilib=no ;;
2949 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2950 esac
2951 else
2952 multilib=yes
2953 fi
2954
2955
2956 # We may get other options which we leave undocumented:
2957 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2958 # See config-ml.in if you want the gory details.
2959
2960 if test "$srcdir" = "."; then
2961 if test "$with_target_subdir" != "."; then
2962 multi_basedir="$srcdir/$with_multisrctop../.."
2963 else
2964 multi_basedir="$srcdir/$with_multisrctop.."
2965 fi
2966 else
2967 multi_basedir="$srcdir/.."
2968 fi
2969
2970
2971 # Even if the default multilib is not a cross compilation,
2972 # it may be that some of the other multilibs are.
2973 if test $cross_compiling = no && test $multilib = yes \
2974 && test "x${with_multisubdir}" != x ; then
2975 cross_compiling=maybe
2976 fi
2977
2978 ac_config_commands="$ac_config_commands default-1"
2979
2980
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2982 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2983 # Check whether --enable-maintainer-mode was given.
2984 if test "${enable_maintainer_mode+set}" = set; then :
2985 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2986 else
2987 USE_MAINTAINER_MODE=no
2988 fi
2989
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2991 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2992 if test $USE_MAINTAINER_MODE = yes; then
2993 MAINTAINER_MODE_TRUE=
2994 MAINTAINER_MODE_FALSE='#'
2995 else
2996 MAINTAINER_MODE_TRUE='#'
2997 MAINTAINER_MODE_FALSE=
2998 fi
2999
3000 MAINT=$MAINTAINER_MODE_TRUE
3001
3002
3003
3004
3005
3006 # These need to be absolute paths, yet at the same time need to
3007 # canonicalize only relative paths, because then amd will not unmount
3008 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3009 libvtv_builddir=`${PWDCMD-pwd}`
3010 case $srcdir in
3011 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3012 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3013 esac
3014 toplevel_builddir=${libvtv_builddir}/..
3015 toplevel_srcdir=${libvtv_srcdir}/..
3016
3017
3018
3019
3020
3021
3022 # Calculate toolexeclibdir
3023 # Also toolexecdir, though it's only used in toolexeclibdir
3024 case ${version_specific_libs} in
3025 yes)
3026 # Need the gcc compiler version to know where to install libraries
3027 # and header files if --enable-version-specific-runtime-libs option
3028 # is selected.
3029 toolexecdir='$(libdir)/gcc/$(target_alias)'
3030 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3031 ;;
3032 no)
3033 if test -n "$with_cross_host" &&
3034 test x"$with_cross_host" != x"no"; then
3035 # Install a library built with a cross compiler in tooldir, not libdir.
3036 toolexecdir='$(exec_prefix)/$(target_alias)'
3037 toolexeclibdir='$(toolexecdir)/lib'
3038 else
3039 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3040 toolexeclibdir='$(libdir)'
3041 fi
3042 multi_os_directory=`$CC -print-multi-os-directory`
3043 case $multi_os_directory in
3044 .) ;; # Avoid trailing /.
3045 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3046 esac
3047 ;;
3048 esac
3049
3050
3051
3052 # Check for programs.
3053
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_CC"; then
3100 ac_ct_CC=$CC
3101 # Extract the first word of "gcc", so it can be a program name with args.
3102 set dummy gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_ac_ct_CC="gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131 $as_echo "$ac_ct_CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 else
3149 CC="$ac_cv_prog_CC"
3150 fi
3151
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="${ac_tool_prefix}cc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 fi
3193 if test -z "$CC"; then
3194 # Extract the first word of "cc", so it can be a program name with args.
3195 set dummy cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 ac_prog_rejected=no
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3214 continue
3215 fi
3216 ac_cv_prog_CC="cc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 if test $ac_prog_rejected = yes; then
3225 # We found a bogon in the path, so make sure we never use it.
3226 set dummy $ac_cv_prog_CC
3227 shift
3228 if test $# != 0; then
3229 # We chose a different compiler from the bogus one.
3230 # However, it has the same basename, so the bogon will be chosen
3231 # first if we set CC to just the basename; use the full file name.
3232 shift
3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3234 fi
3235 fi
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 for ac_prog in cl.exe
3252 do
3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if test "${ac_cv_prog_CC+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$CC" && break
3291 done
3292 fi
3293 if test -z "$CC"; then
3294 ac_ct_CC=$CC
3295 for ac_prog in cl.exe
3296 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_ac_ct_CC="$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 test -n "$ac_ct_CC" && break
3335 done
3336
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3347 fi
3348 fi
3349
3350 fi
3351
3352
3353 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error "no acceptable C compiler found in \$PATH
3356 See \`config.log' for more details." "$LINENO" 5; }
3357
3358 # Provide some information about the compiler.
3359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3360 set X $ac_compile
3361 ac_compiler=$2
3362 for ac_option in --version -v -V -qversion; do
3363 { { ac_try="$ac_compiler $ac_option >&5"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371 ac_status=$?
3372 if test -s conftest.err; then
3373 sed '10a\
3374 ... rest of stderr output deleted ...
3375 10q' conftest.err >conftest.er1
3376 cat conftest.er1 >&5
3377 rm -f conftest.er1 conftest.err
3378 fi
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }
3381 done
3382
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 ac_clean_files_save=$ac_clean_files
3395 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3396 # Try to create an executable without -o first, disregard a.out.
3397 # It will help us diagnose broken compilers, and finding out an intuition
3398 # of exeext.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3400 $as_echo_n "checking for C compiler default output file name... " >&6; }
3401 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402
3403 # The possible output files:
3404 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3405
3406 ac_rmfiles=
3407 for ac_file in $ac_files
3408 do
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3412 esac
3413 done
3414 rm -f $ac_rmfiles
3415
3416 if { { ac_try="$ac_link_default"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link_default") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3430 # so that the user can short-circuit this test for compilers unknown to
3431 # Autoconf.
3432 for ac_file in $ac_files ''
3433 do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3437 ;;
3438 [ab].out )
3439 # We found the default executable, but exeext='' is most
3440 # certainly right.
3441 break;;
3442 *.* )
3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444 then :; else
3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 fi
3447 # We set ac_cv_exeext here because the later test for it is not
3448 # safe: cross compilers may not add the suffix if given an `-o'
3449 # argument, so we may need to know it at that point already.
3450 # Even if this section looks crufty: it has the advantage of
3451 # actually working.
3452 break;;
3453 * )
3454 break;;
3455 esac
3456 done
3457 test "$ac_cv_exeext" = no && ac_cv_exeext=
3458
3459 else
3460 ac_file=''
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 if test -z "$ac_file"; then :
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 { as_fn_set_status 77
3471 as_fn_error "C compiler cannot create executables
3472 See \`config.log' for more details." "$LINENO" 5; }; }
3473 fi
3474 ac_exeext=$ac_cv_exeext
3475
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479 $as_echo_n "checking whether the C compiler works... " >&6; }
3480 # If not cross compiling, check that we can run a simple program.
3481 if test "$cross_compiling" != yes; then
3482 if { ac_try='./$ac_file'
3483 { { case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_try") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; }; then
3493 cross_compiling=no
3494 else
3495 if test "$cross_compiling" = maybe; then
3496 cross_compiling=yes
3497 else
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error "cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \`config.log' for more details." "$LINENO" 5; }
3503 fi
3504 fi
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3508
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3517
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { { ac_try="$ac_link"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_link") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe'), while it won't with
3534 # `rm'.
3535 for ac_file in conftest.exe conftest conftest.*; do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 break;;
3541 * ) break;;
3542 esac
3543 done
3544 else
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error "cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." "$LINENO" 5; }
3549 fi
3550 rm -f conftest$ac_cv_exeext
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3552 $as_echo "$ac_cv_exeext" >&6; }
3553
3554 rm -f conftest.$ac_ext
3555 EXEEXT=$ac_cv_exeext
3556 ac_exeext=$EXEEXT
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558 $as_echo_n "checking for suffix of object files... " >&6; }
3559 if test "${ac_cv_objext+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.o conftest.obj
3574 if { { ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_compile") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 for ac_file in conftest.o conftest.obj conftest.*; do
3586 test -f "$ac_file" || continue;
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590 break;;
3591 esac
3592 done
3593 else
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error "cannot compute suffix of object files: cannot compile
3600 See \`config.log' for more details." "$LINENO" 5; }
3601 fi
3602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605 $as_echo "$ac_cv_objext" >&6; }
3606 OBJEXT=$ac_cv_objext
3607 ac_objext=$OBJEXT
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619 #ifndef __GNUC__
3620 choke me
3621 #endif
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_compiler_gnu=yes
3629 else
3630 ac_compiler_gnu=no
3631 fi
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3637 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3638 if test $ac_compiler_gnu = yes; then
3639 GCC=yes
3640 else
3641 GCC=
3642 fi
3643 ac_test_CFLAGS=${CFLAGS+set}
3644 ac_save_CFLAGS=$CFLAGS
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3647 if test "${ac_cv_prog_cc_g+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 ac_save_c_werror_flag=$ac_c_werror_flag
3651 ac_c_werror_flag=yes
3652 ac_cv_prog_cc_g=no
3653 CFLAGS="-g"
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_prog_cc_g=yes
3667 else
3668 CFLAGS=""
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671
3672 int
3673 main ()
3674 {
3675
3676 ;
3677 return 0;
3678 }
3679 _ACEOF
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681
3682 else
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3684 CFLAGS="-g"
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_prog_cc_g=yes
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 fi
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_c_werror_flag=$ac_save_c_werror_flag
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3707 $as_echo "$ac_cv_prog_cc_g" >&6; }
3708 if test "$ac_test_CFLAGS" = set; then
3709 CFLAGS=$ac_save_CFLAGS
3710 elif test $ac_cv_prog_cc_g = yes; then
3711 if test "$GCC" = yes; then
3712 CFLAGS="-g -O2"
3713 else
3714 CFLAGS="-g"
3715 fi
3716 else
3717 if test "$GCC" = yes; then
3718 CFLAGS="-O2"
3719 else
3720 CFLAGS=
3721 fi
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 ac_cv_prog_cc_c89=no
3729 ac_save_CC=$CC
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 #include <stdarg.h>
3733 #include <stdio.h>
3734 #include <sys/types.h>
3735 #include <sys/stat.h>
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740 char **p;
3741 int i;
3742 {
3743 return p[i];
3744 }
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3746 {
3747 char *s;
3748 va_list v;
3749 va_start (v,p);
3750 s = g (p, va_arg (v,int));
3751 va_end (v);
3752 return s;
3753 }
3754
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3775 int
3776 main ()
3777 {
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 do
3786 CC="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_c89=$ac_arg
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3795
3796 fi
3797 # AC_CACHE_VAL
3798 case "x$ac_cv_prog_cc_c89" in
3799 x)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 $as_echo "none needed" >&6; } ;;
3802 xno)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 $as_echo "unsupported" >&6; } ;;
3805 *)
3806 CC="$CC $ac_cv_prog_cc_c89"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 esac
3810 if test "x$ac_cv_prog_cc_c89" != xno; then :
3811
3812 fi
3813
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 DEPDIR="${am__leading_dot}deps"
3820
3821 ac_config_commands="$ac_config_commands depfiles"
3822
3823
3824 am_make=${MAKE-make}
3825 cat > confinc << 'END'
3826 am__doit:
3827 @echo this is the am__doit target
3828 .PHONY: am__doit
3829 END
3830 # If we don't find an include directive, just comment out the code.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3832 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3833 am__include="#"
3834 am__quote=
3835 _am_result=none
3836 # First try GNU make style include.
3837 echo "include confinc" > confmf
3838 # Ignore all kinds of additional output from `make'.
3839 case `$am_make -s -f confmf 2> /dev/null` in #(
3840 *the\ am__doit\ target*)
3841 am__include=include
3842 am__quote=
3843 _am_result=GNU
3844 ;;
3845 esac
3846 # Now try BSD make style include.
3847 if test "$am__include" = "#"; then
3848 echo '.include "confinc"' > confmf
3849 case `$am_make -s -f confmf 2> /dev/null` in #(
3850 *the\ am__doit\ target*)
3851 am__include=.include
3852 am__quote="\""
3853 _am_result=BSD
3854 ;;
3855 esac
3856 fi
3857
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3860 $as_echo "$_am_result" >&6; }
3861 rm -f confinc confmf
3862
3863 # Check whether --enable-dependency-tracking was given.
3864 if test "${enable_dependency_tracking+set}" = set; then :
3865 enableval=$enable_dependency_tracking;
3866 fi
3867
3868 if test "x$enable_dependency_tracking" != xno; then
3869 am_depcomp="$ac_aux_dir/depcomp"
3870 AMDEPBACKSLASH='\'
3871 fi
3872 if test "x$enable_dependency_tracking" != xno; then
3873 AMDEP_TRUE=
3874 AMDEP_FALSE='#'
3875 else
3876 AMDEP_TRUE='#'
3877 AMDEP_FALSE=
3878 fi
3879
3880
3881
3882 depcc="$CC" am_compiler_list=
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3885 $as_echo_n "checking dependency style of $depcc... " >&6; }
3886 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3890 # We make a subdir and do the tests there. Otherwise we can end up
3891 # making bogus files that we don't know about and never remove. For
3892 # instance it was reported that on HP-UX the gcc test will end up
3893 # making a dummy file named `D' -- because `-MD' means `put the output
3894 # in D'.
3895 mkdir conftest.dir
3896 # Copy depcomp to subdir because otherwise we won't find it if we're
3897 # using a relative directory.
3898 cp "$am_depcomp" conftest.dir
3899 cd conftest.dir
3900 # We will build objects and dependencies in a subdirectory because
3901 # it helps to detect inapplicable dependency modes. For instance
3902 # both Tru64's cc and ICC support -MD to output dependencies as a
3903 # side effect of compilation, but ICC will put the dependencies in
3904 # the current directory while Tru64 will put them in the object
3905 # directory.
3906 mkdir sub
3907
3908 am_cv_CC_dependencies_compiler_type=none
3909 if test "$am_compiler_list" = ""; then
3910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3911 fi
3912 am__universal=false
3913 case " $depcc " in #(
3914 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3915 esac
3916
3917 for depmode in $am_compiler_list; do
3918 # Setup a source with many dependencies, because some compilers
3919 # like to wrap large dependency lists on column 80 (with \), and
3920 # we should not choose a depcomp mode which is confused by this.
3921 #
3922 # We need to recreate these files for each test, as the compiler may
3923 # overwrite some of them when testing with obscure command lines.
3924 # This happens at least with the AIX C compiler.
3925 : > sub/conftest.c
3926 for i in 1 2 3 4 5 6; do
3927 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3928 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3929 # Solaris 8's {/usr,}/bin/sh.
3930 touch sub/conftst$i.h
3931 done
3932 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3933
3934 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3935 # mode. It turns out that the SunPro C++ compiler does not properly
3936 # handle `-M -o', and we need to detect this. Also, some Intel
3937 # versions had trouble with output in subdirs
3938 am__obj=sub/conftest.${OBJEXT-o}
3939 am__minus_obj="-o $am__obj"
3940 case $depmode in
3941 gcc)
3942 # This depmode causes a compiler race in universal mode.
3943 test "$am__universal" = false || continue
3944 ;;
3945 nosideeffect)
3946 # after this tag, mechanisms are not by side-effect, so they'll
3947 # only be used when explicitly requested
3948 if test "x$enable_dependency_tracking" = xyes; then
3949 continue
3950 else
3951 break
3952 fi
3953 ;;
3954 msvisualcpp | msvcmsys)
3955 # This compiler won't grok `-c -o', but also, the minuso test has
3956 # not run yet. These depmodes are late enough in the game, and
3957 # so weak that their functioning should not be impacted.
3958 am__obj=conftest.${OBJEXT-o}
3959 am__minus_obj=
3960 ;;
3961 none) break ;;
3962 esac
3963 if depmode=$depmode \
3964 source=sub/conftest.c object=$am__obj \
3965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3966 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3967 >/dev/null 2>conftest.err &&
3968 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3970 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3972 # icc doesn't choke on unknown options, it will just issue warnings
3973 # or remarks (even with -Werror). So we grep stderr for any message
3974 # that says an option was ignored or not supported.
3975 # When given -MP, icc 7.0 and 7.1 complain thusly:
3976 # icc: Command line warning: ignoring option '-M'; no argument required
3977 # The diagnosis changed in icc 8.0:
3978 # icc: Command line remark: option '-MP' not supported
3979 if (grep 'ignoring option' conftest.err ||
3980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3981 am_cv_CC_dependencies_compiler_type=$depmode
3982 break
3983 fi
3984 fi
3985 done
3986
3987 cd ..
3988 rm -rf conftest.dir
3989 else
3990 am_cv_CC_dependencies_compiler_type=none
3991 fi
3992
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3995 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3996 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3997
3998 if
3999 test "x$enable_dependency_tracking" != xno \
4000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4001 am__fastdepCC_TRUE=
4002 am__fastdepCC_FALSE='#'
4003 else
4004 am__fastdepCC_TRUE='#'
4005 am__fastdepCC_FALSE=
4006 fi
4007
4008
4009 ac_ext=cpp
4010 ac_cpp='$CXXCPP $CPPFLAGS'
4011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4014 if test -z "$CXX"; then
4015 if test -n "$CCC"; then
4016 CXX=$CCC
4017 else
4018 if test -n "$ac_tool_prefix"; then
4019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4020 do
4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_CXX+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$CXX"; then
4029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 CXX=$ac_cv_prog_CXX
4049 if test -n "$CXX"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4051 $as_echo "$CXX" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057
4058 test -n "$CXX" && break
4059 done
4060 fi
4061 if test -z "$CXX"; then
4062 ac_ct_CXX=$CXX
4063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4064 do
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066 set dummy $ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -n "$ac_ct_CXX"; then
4073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_ac_ct_CXX="$ac_prog"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4093 if test -n "$ac_ct_CXX"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4095 $as_echo "$ac_ct_CXX" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102 test -n "$ac_ct_CXX" && break
4103 done
4104
4105 if test "x$ac_ct_CXX" = x; then
4106 CXX="g++"
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 CXX=$ac_ct_CXX
4115 fi
4116 fi
4117
4118 fi
4119 fi
4120 # Provide some information about the compiler.
4121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4122 set X $ac_compile
4123 ac_compiler=$2
4124 for ac_option in --version -v -V -qversion; do
4125 { { ac_try="$ac_compiler $ac_option >&5"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4133 ac_status=$?
4134 if test -s conftest.err; then
4135 sed '10a\
4136 ... rest of stderr output deleted ...
4137 10q' conftest.err >conftest.er1
4138 cat conftest.er1 >&5
4139 rm -f conftest.er1 conftest.err
4140 fi
4141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4143 done
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4146 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4147 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152
4153 int
4154 main ()
4155 {
4156 #ifndef __GNUC__
4157 choke me
4158 #endif
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_cxx_try_compile "$LINENO"; then :
4165 ac_compiler_gnu=yes
4166 else
4167 ac_compiler_gnu=no
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4171
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4174 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4175 if test $ac_compiler_gnu = yes; then
4176 GXX=yes
4177 else
4178 GXX=
4179 fi
4180 ac_test_CXXFLAGS=${CXXFLAGS+set}
4181 ac_save_CXXFLAGS=$CXXFLAGS
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4183 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4184 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4188 ac_cxx_werror_flag=yes
4189 ac_cv_prog_cxx_g=no
4190 CXXFLAGS="-g"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 if ac_fn_cxx_try_compile "$LINENO"; then :
4203 ac_cv_prog_cxx_g=yes
4204 else
4205 CXXFLAGS=""
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208
4209 int
4210 main ()
4211 {
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_cxx_try_compile "$LINENO"; then :
4218
4219 else
4220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4221 CXXFLAGS="-g"
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224
4225 int
4226 main ()
4227 {
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_cxx_try_compile "$LINENO"; then :
4234 ac_cv_prog_cxx_g=yes
4235 fi
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4244 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4245 if test "$ac_test_CXXFLAGS" = set; then
4246 CXXFLAGS=$ac_save_CXXFLAGS
4247 elif test $ac_cv_prog_cxx_g = yes; then
4248 if test "$GXX" = yes; then
4249 CXXFLAGS="-g -O2"
4250 else
4251 CXXFLAGS="-g"
4252 fi
4253 else
4254 if test "$GXX" = yes; then
4255 CXXFLAGS="-O2"
4256 else
4257 CXXFLAGS=
4258 fi
4259 fi
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266 depcc="$CXX" am_compiler_list=
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4269 $as_echo_n "checking dependency style of $depcc... " >&6; }
4270 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4274 # We make a subdir and do the tests there. Otherwise we can end up
4275 # making bogus files that we don't know about and never remove. For
4276 # instance it was reported that on HP-UX the gcc test will end up
4277 # making a dummy file named `D' -- because `-MD' means `put the output
4278 # in D'.
4279 mkdir conftest.dir
4280 # Copy depcomp to subdir because otherwise we won't find it if we're
4281 # using a relative directory.
4282 cp "$am_depcomp" conftest.dir
4283 cd conftest.dir
4284 # We will build objects and dependencies in a subdirectory because
4285 # it helps to detect inapplicable dependency modes. For instance
4286 # both Tru64's cc and ICC support -MD to output dependencies as a
4287 # side effect of compilation, but ICC will put the dependencies in
4288 # the current directory while Tru64 will put them in the object
4289 # directory.
4290 mkdir sub
4291
4292 am_cv_CXX_dependencies_compiler_type=none
4293 if test "$am_compiler_list" = ""; then
4294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4295 fi
4296 am__universal=false
4297 case " $depcc " in #(
4298 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4299 esac
4300
4301 for depmode in $am_compiler_list; do
4302 # Setup a source with many dependencies, because some compilers
4303 # like to wrap large dependency lists on column 80 (with \), and
4304 # we should not choose a depcomp mode which is confused by this.
4305 #
4306 # We need to recreate these files for each test, as the compiler may
4307 # overwrite some of them when testing with obscure command lines.
4308 # This happens at least with the AIX C compiler.
4309 : > sub/conftest.c
4310 for i in 1 2 3 4 5 6; do
4311 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4312 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4313 # Solaris 8's {/usr,}/bin/sh.
4314 touch sub/conftst$i.h
4315 done
4316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4317
4318 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4319 # mode. It turns out that the SunPro C++ compiler does not properly
4320 # handle `-M -o', and we need to detect this. Also, some Intel
4321 # versions had trouble with output in subdirs
4322 am__obj=sub/conftest.${OBJEXT-o}
4323 am__minus_obj="-o $am__obj"
4324 case $depmode in
4325 gcc)
4326 # This depmode causes a compiler race in universal mode.
4327 test "$am__universal" = false || continue
4328 ;;
4329 nosideeffect)
4330 # after this tag, mechanisms are not by side-effect, so they'll
4331 # only be used when explicitly requested
4332 if test "x$enable_dependency_tracking" = xyes; then
4333 continue
4334 else
4335 break
4336 fi
4337 ;;
4338 msvisualcpp | msvcmsys)
4339 # This compiler won't grok `-c -o', but also, the minuso test has
4340 # not run yet. These depmodes are late enough in the game, and
4341 # so weak that their functioning should not be impacted.
4342 am__obj=conftest.${OBJEXT-o}
4343 am__minus_obj=
4344 ;;
4345 none) break ;;
4346 esac
4347 if depmode=$depmode \
4348 source=sub/conftest.c object=$am__obj \
4349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4351 >/dev/null 2>conftest.err &&
4352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4356 # icc doesn't choke on unknown options, it will just issue warnings
4357 # or remarks (even with -Werror). So we grep stderr for any message
4358 # that says an option was ignored or not supported.
4359 # When given -MP, icc 7.0 and 7.1 complain thusly:
4360 # icc: Command line warning: ignoring option '-M'; no argument required
4361 # The diagnosis changed in icc 8.0:
4362 # icc: Command line remark: option '-MP' not supported
4363 if (grep 'ignoring option' conftest.err ||
4364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4365 am_cv_CXX_dependencies_compiler_type=$depmode
4366 break
4367 fi
4368 fi
4369 done
4370
4371 cd ..
4372 rm -rf conftest.dir
4373 else
4374 am_cv_CXX_dependencies_compiler_type=none
4375 fi
4376
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4379 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4380 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4381
4382 if
4383 test "x$enable_dependency_tracking" != xno \
4384 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4385 am__fastdepCXX_TRUE=
4386 am__fastdepCXX_FALSE='#'
4387 else
4388 am__fastdepCXX_TRUE='#'
4389 am__fastdepCXX_FALSE=
4390 fi
4391
4392
4393
4394
4395 if test "x$CC" != xcc; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4397 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4400 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4401 fi
4402 set dummy $CC; ac_cc=`$as_echo "$2" |
4403 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4404 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 # Make sure it works both with $CC and with simple cc.
4419 # We do the test twice because some compilers refuse to overwrite an
4420 # existing .o file with -o, though they will create one.
4421 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4422 rm -f conftest2.*
4423 if { { case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_try") 2>&5
4430 ac_status=$?
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; } &&
4433 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_try") 2>&5
4440 ac_status=$?
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; };
4443 then
4444 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4445 if test "x$CC" != xcc; then
4446 # Test first that cc exists at all.
4447 if { ac_try='cc -c conftest.$ac_ext >&5'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4458 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4459 rm -f conftest2.*
4460 if { { case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_try") 2>&5
4467 ac_status=$?
4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469 test $ac_status = 0; } &&
4470 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; };
4480 then
4481 # cc works too.
4482 :
4483 else
4484 # cc exists but doesn't like -o.
4485 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4486 fi
4487 fi
4488 fi
4489 else
4490 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4491 fi
4492 rm -f core conftest*
4493
4494 fi
4495 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501
4502 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4503
4504 fi
4505
4506 # FIXME: we rely on the cache variable name because
4507 # there is no other way.
4508 set dummy $CC
4509 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4510 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4511 if test "$am_t" != yes; then
4512 # Losing compiler, so override with the script.
4513 # FIXME: It is wrong to rewrite CC.
4514 # But if we don't then we get into trouble of one sort or another.
4515 # A longer-term fix would be to have automake use am__CC in this case,
4516 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4517 CC="$am_aux_dir/compile $CC"
4518 fi
4519
4520
4521
4522
4523
4524
4525 # Newer automakes demand CCAS and CCASFLAGS.
4526 : ${CCAS='$(CC)'}
4527 : ${CCASFLAGS='$(CFLAGS)'}
4528
4529
4530
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}as; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if test "${ac_cv_prog_AS+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$AS"; then
4540 ac_cv_prog_AS="$AS" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_AS="${ac_tool_prefix}as"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 AS=$ac_cv_prog_AS
4560 if test -n "$AS"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4562 $as_echo "$AS" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569 fi
4570 if test -z "$ac_cv_prog_AS"; then
4571 ac_ct_AS=$AS
4572 # Extract the first word of "as", so it can be a program name with args.
4573 set dummy as; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$ac_ct_AS"; then
4580 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_ac_ct_AS="as"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4600 if test -n "$ac_ct_AS"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4602 $as_echo "$ac_ct_AS" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607
4608 if test "x$ac_ct_AS" = x; then
4609 AS=""
4610 else
4611 case $cross_compiling:$ac_tool_warned in
4612 yes:)
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned=yes ;;
4616 esac
4617 AS=$ac_ct_AS
4618 fi
4619 else
4620 AS="$ac_cv_prog_AS"
4621 fi
4622
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ar; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_AR+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$AR"; then
4632 ac_cv_prog_AR="$AR" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_AR="${ac_tool_prefix}ar"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 AR=$ac_cv_prog_AR
4652 if test -n "$AR"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4654 $as_echo "$AR" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 fi
4662 if test -z "$ac_cv_prog_AR"; then
4663 ac_ct_AR=$AR
4664 # Extract the first word of "ar", so it can be a program name with args.
4665 set dummy ar; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$ac_ct_AR"; then
4672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_ac_ct_AR="ar"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4692 if test -n "$ac_ct_AR"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4694 $as_echo "$ac_ct_AR" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700 if test "x$ac_ct_AR" = x; then
4701 AR=""
4702 else
4703 case $cross_compiling:$ac_tool_warned in
4704 yes:)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 AR=$ac_ct_AR
4710 fi
4711 else
4712 AR="$ac_cv_prog_AR"
4713 fi
4714
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$RANLIB"; then
4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 RANLIB=$ac_cv_prog_RANLIB
4744 if test -n "$RANLIB"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4746 $as_echo "$RANLIB" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4786 $as_echo "$ac_ct_RANLIB" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792 if test "x$ac_ct_RANLIB" = x; then
4793 RANLIB=":"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 RANLIB=$ac_ct_RANLIB
4802 fi
4803 else
4804 RANLIB="$ac_cv_prog_RANLIB"
4805 fi
4806
4807
4808 # Configure libtool
4809 enable_dlopen=yes
4810
4811
4812
4813 case `pwd` in
4814 *\ * | *\ *)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4816 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4817 esac
4818
4819
4820
4821 macro_version='2.2.7a'
4822 macro_revision='1.3134'
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 ltmain="$ac_aux_dir/ltmain.sh"
4837
4838 # Backslashify metacharacters that are still active within
4839 # double-quoted strings.
4840 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4841
4842 # Same as above, but do not quote variable references.
4843 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4844
4845 # Sed substitution to delay expansion of an escaped shell variable in a
4846 # double_quote_subst'ed string.
4847 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4848
4849 # Sed substitution to delay expansion of an escaped single quote.
4850 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4851
4852 # Sed substitution to avoid accidental globbing in evaled expressions
4853 no_glob_subst='s/\*/\\\*/g'
4854
4855 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4857 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4860 $as_echo_n "checking how to print strings... " >&6; }
4861 # Test print first, because it will be a builtin if present.
4862 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4863 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4864 ECHO='print -r --'
4865 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4866 ECHO='printf %s\n'
4867 else
4868 # Use this function as a fallback that always works.
4869 func_fallback_echo ()
4870 {
4871 eval 'cat <<_LTECHO_EOF
4872 $1
4873 _LTECHO_EOF'
4874 }
4875 ECHO='func_fallback_echo'
4876 fi
4877
4878 # func_echo_all arg...
4879 # Invoke $ECHO with all args, space-separated.
4880 func_echo_all ()
4881 {
4882 $ECHO ""
4883 }
4884
4885 case "$ECHO" in
4886 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4887 $as_echo "printf" >&6; } ;;
4888 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4889 $as_echo "print -r" >&6; } ;;
4890 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4891 $as_echo "cat" >&6; } ;;
4892 esac
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4908 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4909 if test "${ac_cv_path_SED+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4913 for ac_i in 1 2 3 4 5 6 7; do
4914 ac_script="$ac_script$as_nl$ac_script"
4915 done
4916 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4917 { ac_script=; unset ac_script;}
4918 if test -z "$SED"; then
4919 ac_path_SED_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in sed gsed; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4929 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4930 # Check for GNU ac_path_SED and select it if it is found.
4931 # Check for GNU $ac_path_SED
4932 case `"$ac_path_SED" --version 2>&1` in
4933 *GNU*)
4934 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4935 *)
4936 ac_count=0
4937 $as_echo_n 0123456789 >"conftest.in"
4938 while :
4939 do
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 $as_echo '' >> "conftest.nl"
4944 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 as_fn_arith $ac_count + 1 && ac_count=$as_val
4947 if test $ac_count -gt ${ac_path_SED_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_SED="$ac_path_SED"
4950 ac_path_SED_max=$ac_count
4951 fi
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4954 done
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 esac
4957
4958 $ac_path_SED_found && break 3
4959 done
4960 done
4961 done
4962 IFS=$as_save_IFS
4963 if test -z "$ac_cv_path_SED"; then
4964 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4965 fi
4966 else
4967 ac_cv_path_SED=$SED
4968 fi
4969
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4972 $as_echo "$ac_cv_path_SED" >&6; }
4973 SED="$ac_cv_path_SED"
4974 rm -f conftest.sed
4975
4976 test -z "$SED" && SED=sed
4977 Xsed="$SED -e 1s/^X//"
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4991 if test "${ac_cv_path_GREP+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -z "$GREP"; then
4995 ac_path_GREP_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in grep ggrep; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5006 # Check for GNU ac_path_GREP and select it if it is found.
5007 # Check for GNU $ac_path_GREP
5008 case `"$ac_path_GREP" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP="$ac_path_GREP"
5026 ac_path_GREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_GREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_GREP=$GREP
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048 $as_echo "$ac_cv_path_GREP" >&6; }
5049 GREP="$ac_cv_path_GREP"
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053 $as_echo_n "checking for egrep... " >&6; }
5054 if test "${ac_cv_path_EGREP+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5058 then ac_cv_path_EGREP="$GREP -E"
5059 else
5060 if test -z "$EGREP"; then
5061 ac_path_EGREP_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_prog in egrep; do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5072 # Check for GNU ac_path_EGREP and select it if it is found.
5073 # Check for GNU $ac_path_EGREP
5074 case `"$ac_path_EGREP" --version 2>&1` in
5075 *GNU*)
5076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5077 *)
5078 ac_count=0
5079 $as_echo_n 0123456789 >"conftest.in"
5080 while :
5081 do
5082 cat "conftest.in" "conftest.in" >"conftest.tmp"
5083 mv "conftest.tmp" "conftest.in"
5084 cp "conftest.in" "conftest.nl"
5085 $as_echo 'EGREP' >> "conftest.nl"
5086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088 as_fn_arith $ac_count + 1 && ac_count=$as_val
5089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_EGREP="$ac_path_EGREP"
5092 ac_path_EGREP_max=$ac_count
5093 fi
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5096 done
5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 esac
5099
5100 $ac_path_EGREP_found && break 3
5101 done
5102 done
5103 done
5104 IFS=$as_save_IFS
5105 if test -z "$ac_cv_path_EGREP"; then
5106 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 fi
5108 else
5109 ac_cv_path_EGREP=$EGREP
5110 fi
5111
5112 fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5115 $as_echo "$ac_cv_path_EGREP" >&6; }
5116 EGREP="$ac_cv_path_EGREP"
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5120 $as_echo_n "checking for fgrep... " >&6; }
5121 if test "${ac_cv_path_FGREP+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5125 then ac_cv_path_FGREP="$GREP -F"
5126 else
5127 if test -z "$FGREP"; then
5128 ac_path_FGREP_found=false
5129 # Loop through the user's path and test for each of PROGNAME-LIST
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_prog in fgrep; do
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5138 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5139 # Check for GNU ac_path_FGREP and select it if it is found.
5140 # Check for GNU $ac_path_FGREP
5141 case `"$ac_path_FGREP" --version 2>&1` in
5142 *GNU*)
5143 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5144 *)
5145 ac_count=0
5146 $as_echo_n 0123456789 >"conftest.in"
5147 while :
5148 do
5149 cat "conftest.in" "conftest.in" >"conftest.tmp"
5150 mv "conftest.tmp" "conftest.in"
5151 cp "conftest.in" "conftest.nl"
5152 $as_echo 'FGREP' >> "conftest.nl"
5153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5155 as_fn_arith $ac_count + 1 && ac_count=$as_val
5156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5157 # Best one so far, save it but keep looking for a better one
5158 ac_cv_path_FGREP="$ac_path_FGREP"
5159 ac_path_FGREP_max=$ac_count
5160 fi
5161 # 10*(2^10) chars as input seems more than enough
5162 test $ac_count -gt 10 && break
5163 done
5164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165 esac
5166
5167 $ac_path_FGREP_found && break 3
5168 done
5169 done
5170 done
5171 IFS=$as_save_IFS
5172 if test -z "$ac_cv_path_FGREP"; then
5173 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 fi
5175 else
5176 ac_cv_path_FGREP=$FGREP
5177 fi
5178
5179 fi
5180 fi
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5182 $as_echo "$ac_cv_path_FGREP" >&6; }
5183 FGREP="$ac_cv_path_FGREP"
5184
5185
5186 test -z "$GREP" && GREP=grep
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206 # Check whether --with-gnu-ld was given.
5207 if test "${with_gnu_ld+set}" = set; then :
5208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5209 else
5210 with_gnu_ld=no
5211 fi
5212
5213 ac_prog=ld
5214 if test "$GCC" = yes; then
5215 # Check if gcc -print-prog-name=ld gives a path.
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5217 $as_echo_n "checking for ld used by $CC... " >&6; }
5218 case $host in
5219 *-*-mingw*)
5220 # gcc leaves a trailing carriage return which upsets mingw
5221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5222 *)
5223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5224 esac
5225 case $ac_prog in
5226 # Accept absolute paths.
5227 [\\/]* | ?:[\\/]*)
5228 re_direlt='/[^/][^/]*/\.\./'
5229 # Canonicalize the pathname of ld
5230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5233 done
5234 test -z "$LD" && LD="$ac_prog"
5235 ;;
5236 "")
5237 # If it fails, then pretend we aren't using GCC.
5238 ac_prog=ld
5239 ;;
5240 *)
5241 # If it is relative, then search for the first ld in PATH.
5242 with_gnu_ld=unknown
5243 ;;
5244 esac
5245 elif test "$with_gnu_ld" = yes; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5247 $as_echo_n "checking for GNU ld... " >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5250 $as_echo_n "checking for non-GNU ld... " >&6; }
5251 fi
5252 if test "${lt_cv_path_LD+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -z "$LD"; then
5256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5257 for ac_dir in $PATH; do
5258 IFS="$lt_save_ifs"
5259 test -z "$ac_dir" && ac_dir=.
5260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5261 lt_cv_path_LD="$ac_dir/$ac_prog"
5262 # Check to see if the program is GNU ld. I'd rather use --version,
5263 # but apparently some variants of GNU ld only accept -v.
5264 # Break only if it was the GNU/non-GNU ld that we prefer.
5265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5266 *GNU* | *'with BFD'*)
5267 test "$with_gnu_ld" != no && break
5268 ;;
5269 *)
5270 test "$with_gnu_ld" != yes && break
5271 ;;
5272 esac
5273 fi
5274 done
5275 IFS="$lt_save_ifs"
5276 else
5277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5278 fi
5279 fi
5280
5281 LD="$lt_cv_path_LD"
5282 if test -n "$LD"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5284 $as_echo "$LD" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5292 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5296 case `$LD -v 2>&1 </dev/null` in
5297 *GNU* | *'with BFD'*)
5298 lt_cv_prog_gnu_ld=yes
5299 ;;
5300 *)
5301 lt_cv_prog_gnu_ld=no
5302 ;;
5303 esac
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5307 with_gnu_ld=$lt_cv_prog_gnu_ld
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5319 if test "${lt_cv_path_NM+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$NM"; then
5323 # Let the user override the test.
5324 lt_cv_path_NM="$NM"
5325 else
5326 lt_nm_to_check="${ac_tool_prefix}nm"
5327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5328 lt_nm_to_check="$lt_nm_to_check nm"
5329 fi
5330 for lt_tmp_nm in $lt_nm_to_check; do
5331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5333 IFS="$lt_save_ifs"
5334 test -z "$ac_dir" && ac_dir=.
5335 tmp_nm="$ac_dir/$lt_tmp_nm"
5336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5337 # Check to see if the nm accepts a BSD-compat flag.
5338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5339 # nm: unknown option "B" ignored
5340 # Tru64's nm complains that /dev/null is an invalid object file
5341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5342 */dev/null* | *'Invalid file or object type'*)
5343 lt_cv_path_NM="$tmp_nm -B"
5344 break
5345 ;;
5346 *)
5347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5348 */dev/null*)
5349 lt_cv_path_NM="$tmp_nm -p"
5350 break
5351 ;;
5352 *)
5353 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5354 continue # so that we can try to find one that supports BSD flags
5355 ;;
5356 esac
5357 ;;
5358 esac
5359 fi
5360 done
5361 IFS="$lt_save_ifs"
5362 done
5363 : ${lt_cv_path_NM=no}
5364 fi
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5367 $as_echo "$lt_cv_path_NM" >&6; }
5368 if test "$lt_cv_path_NM" != "no"; then
5369 NM="$lt_cv_path_NM"
5370 else
5371 # Didn't find any BSD compatible name lister, look for dumpbin.
5372 if test -n "$DUMPBIN"; then :
5373 # Let the user override the test.
5374 else
5375 if test -n "$ac_tool_prefix"; then
5376 for ac_prog in dumpbin "link -dump"
5377 do
5378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$DUMPBIN"; then
5386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 DUMPBIN=$ac_cv_prog_DUMPBIN
5406 if test -n "$DUMPBIN"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5408 $as_echo "$DUMPBIN" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 test -n "$DUMPBIN" && break
5416 done
5417 fi
5418 if test -z "$DUMPBIN"; then
5419 ac_ct_DUMPBIN=$DUMPBIN
5420 for ac_prog in dumpbin "link -dump"
5421 do
5422 # Extract the first word of "$ac_prog", so it can be a program name with args.
5423 set dummy $ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 if test -n "$ac_ct_DUMPBIN"; then
5430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5450 if test -n "$ac_ct_DUMPBIN"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5452 $as_echo "$ac_ct_DUMPBIN" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 test -n "$ac_ct_DUMPBIN" && break
5460 done
5461
5462 if test "x$ac_ct_DUMPBIN" = x; then
5463 DUMPBIN=":"
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 DUMPBIN=$ac_ct_DUMPBIN
5472 fi
5473 fi
5474
5475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5476 *COFF*)
5477 DUMPBIN="$DUMPBIN -symbols"
5478 ;;
5479 *)
5480 DUMPBIN=:
5481 ;;
5482 esac
5483 fi
5484
5485 if test "$DUMPBIN" != ":"; then
5486 NM="$DUMPBIN"
5487 fi
5488 fi
5489 test -z "$NM" && NM=nm
5490
5491
5492
5493
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5498 if test "${lt_cv_nm_interface+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 lt_cv_nm_interface="BSD nm"
5502 echo "int some_variable = 0;" > conftest.$ac_ext
5503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5504 (eval "$ac_compile" 2>conftest.err)
5505 cat conftest.err >&5
5506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5508 cat conftest.err >&5
5509 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5510 cat conftest.out >&5
5511 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5512 lt_cv_nm_interface="MS dumpbin"
5513 fi
5514 rm -f conftest*
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5517 $as_echo "$lt_cv_nm_interface" >&6; }
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5520 $as_echo_n "checking whether ln -s works... " >&6; }
5521 LN_S=$as_ln_s
5522 if test "$LN_S" = "ln -s"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524 $as_echo "yes" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5527 $as_echo "no, using $LN_S" >&6; }
5528 fi
5529
5530 # find the maximum length of command line arguments
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5533 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 i=0
5537 teststring="ABCD"
5538
5539 case $build_os in
5540 msdosdjgpp*)
5541 # On DJGPP, this test can blow up pretty badly due to problems in libc
5542 # (any single argument exceeding 2000 bytes causes a buffer overrun
5543 # during glob expansion). Even if it were fixed, the result of this
5544 # check would be larger than it should be.
5545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5546 ;;
5547
5548 gnu*)
5549 # Under GNU Hurd, this test is not required because there is
5550 # no limit to the length of command line arguments.
5551 # Libtool will interpret -1 as no limit whatsoever
5552 lt_cv_sys_max_cmd_len=-1;
5553 ;;
5554
5555 cygwin* | mingw* | cegcc*)
5556 # On Win9x/ME, this test blows up -- it succeeds, but takes
5557 # about 5 minutes as the teststring grows exponentially.
5558 # Worse, since 9x/ME are not pre-emptively multitasking,
5559 # you end up with a "frozen" computer, even though with patience
5560 # the test eventually succeeds (with a max line length of 256k).
5561 # Instead, let's just punt: use the minimum linelength reported by
5562 # all of the supported platforms: 8192 (on NT/2K/XP).
5563 lt_cv_sys_max_cmd_len=8192;
5564 ;;
5565
5566 mint*)
5567 # On MiNT this can take a long time and run out of memory.
5568 lt_cv_sys_max_cmd_len=8192;
5569 ;;
5570
5571 amigaos*)
5572 # On AmigaOS with pdksh, this test takes hours, literally.
5573 # So we just punt and use a minimum line length of 8192.
5574 lt_cv_sys_max_cmd_len=8192;
5575 ;;
5576
5577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5578 # This has been around since 386BSD, at least. Likely further.
5579 if test -x /sbin/sysctl; then
5580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5581 elif test -x /usr/sbin/sysctl; then
5582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5583 else
5584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5585 fi
5586 # And add a safety zone
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 ;;
5590
5591 interix*)
5592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5593 lt_cv_sys_max_cmd_len=196608
5594 ;;
5595
5596 osf*)
5597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5599 # nice to cause kernel panics so lets avoid the loop below.
5600 # First set a reasonable default.
5601 lt_cv_sys_max_cmd_len=16384
5602 #
5603 if test -x /sbin/sysconfig; then
5604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5606 esac
5607 fi
5608 ;;
5609 sco3.2v5*)
5610 lt_cv_sys_max_cmd_len=102400
5611 ;;
5612 sysv5* | sco5v6* | sysv4.2uw2*)
5613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5614 if test -n "$kargmax"; then
5615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5616 else
5617 lt_cv_sys_max_cmd_len=32768
5618 fi
5619 ;;
5620 *)
5621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5622 if test -n "$lt_cv_sys_max_cmd_len"; then
5623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5625 else
5626 # Make teststring a little bigger before we do anything with it.
5627 # a 1K string should be a reasonable start.
5628 for i in 1 2 3 4 5 6 7 8 ; do
5629 teststring=$teststring$teststring
5630 done
5631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5632 # If test is not a shell built-in, we'll probably end up computing a
5633 # maximum length that is only half of the actual maximum length, but
5634 # we can't tell.
5635 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5636 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5637 test $i != 17 # 1/2 MB should be enough
5638 do
5639 i=`expr $i + 1`
5640 teststring=$teststring$teststring
5641 done
5642 # Only check the string length outside the loop.
5643 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5644 teststring=
5645 # Add a significant safety factor because C++ compilers can tack on
5646 # massive amounts of additional arguments before passing them to the
5647 # linker. It appears as though 1/2 is a usable value.
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5649 fi
5650 ;;
5651 esac
5652
5653 fi
5654
5655 if test -n $lt_cv_sys_max_cmd_len ; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5657 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5660 $as_echo "none" >&6; }
5661 fi
5662 max_cmd_len=$lt_cv_sys_max_cmd_len
5663
5664
5665
5666
5667
5668
5669 : ${CP="cp -f"}
5670 : ${MV="mv -f"}
5671 : ${RM="rm -f"}
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5674 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5675 # Try some XSI features
5676 xsi_shell=no
5677 ( _lt_dummy="a/b/c"
5678 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5679 = c,a/b,, \
5680 && eval 'test $(( 1 + 1 )) -eq 2 \
5681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5682 && xsi_shell=yes
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5684 $as_echo "$xsi_shell" >&6; }
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5688 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5689 lt_shell_append=no
5690 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5691 >/dev/null 2>&1 \
5692 && lt_shell_append=yes
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5694 $as_echo "$lt_shell_append" >&6; }
5695
5696
5697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5698 lt_unset=unset
5699 else
5700 lt_unset=false
5701 fi
5702
5703
5704
5705
5706
5707 # test EBCDIC or ASCII
5708 case `echo X|tr X '\101'` in
5709 A) # ASCII based system
5710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5711 lt_SP2NL='tr \040 \012'
5712 lt_NL2SP='tr \015\012 \040\040'
5713 ;;
5714 *) # EBCDIC based system
5715 lt_SP2NL='tr \100 \n'
5716 lt_NL2SP='tr \r\n \100\100'
5717 ;;
5718 esac
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5729 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5730 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 lt_cv_ld_reload_flag='-r'
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5736 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5737 reload_flag=$lt_cv_ld_reload_flag
5738 case $reload_flag in
5739 "" | " "*) ;;
5740 *) reload_flag=" $reload_flag" ;;
5741 esac
5742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5743 case $host_os in
5744 darwin*)
5745 if test "$GCC" = yes; then
5746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5747 else
5748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5749 fi
5750 ;;
5751 esac
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 if test -n "$ac_tool_prefix"; then
5762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5763 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$OBJDUMP"; then
5770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 OBJDUMP=$ac_cv_prog_OBJDUMP
5790 if test -n "$OBJDUMP"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5792 $as_echo "$OBJDUMP" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799 fi
5800 if test -z "$ac_cv_prog_OBJDUMP"; then
5801 ac_ct_OBJDUMP=$OBJDUMP
5802 # Extract the first word of "objdump", so it can be a program name with args.
5803 set dummy objdump; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$ac_ct_OBJDUMP"; then
5810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5830 if test -n "$ac_ct_OBJDUMP"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5832 $as_echo "$ac_ct_OBJDUMP" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838 if test "x$ac_ct_OBJDUMP" = x; then
5839 OBJDUMP="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 OBJDUMP=$ac_ct_OBJDUMP
5848 fi
5849 else
5850 OBJDUMP="$ac_cv_prog_OBJDUMP"
5851 fi
5852
5853 test -z "$OBJDUMP" && OBJDUMP=objdump
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5864 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5865 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 lt_cv_file_magic_cmd='$MAGIC_CMD'
5869 lt_cv_file_magic_test_file=
5870 lt_cv_deplibs_check_method='unknown'
5871 # Need to set the preceding variable on all platforms that support
5872 # interlibrary dependencies.
5873 # 'none' -- dependencies not supported.
5874 # `unknown' -- same as none, but documents that we really don't know.
5875 # 'pass_all' -- all dependencies passed with no checks.
5876 # 'test_compile' -- check by making test program.
5877 # 'file_magic [[regex]]' -- check by looking for files in library path
5878 # which responds to the $file_magic_cmd with a given extended regex.
5879 # If you have `file' or equivalent on your system and you're not sure
5880 # whether `pass_all' will *always* work, you probably want this one.
5881
5882 case $host_os in
5883 aix[4-9]*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886
5887 beos*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 bsdi[45]*)
5892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5893 lt_cv_file_magic_cmd='/usr/bin/file -L'
5894 lt_cv_file_magic_test_file=/shlib/libc.so
5895 ;;
5896
5897 cygwin*)
5898 # func_win32_libid is a shell function defined in ltmain.sh
5899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5900 lt_cv_file_magic_cmd='func_win32_libid'
5901 ;;
5902
5903 mingw* | pw32*)
5904 # Base MSYS/MinGW do not provide the 'file' command needed by
5905 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5906 # unless we find 'file', for example because we are cross-compiling.
5907 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5908 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 else
5912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5913 lt_cv_file_magic_cmd='$OBJDUMP -f'
5914 fi
5915 ;;
5916
5917 cegcc*)
5918 # use the weaker test based on 'objdump'. See mingw*.
5919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5920 lt_cv_file_magic_cmd='$OBJDUMP -f'
5921 ;;
5922
5923 darwin* | rhapsody*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926
5927 freebsd* | dragonfly*)
5928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5929 case $host_cpu in
5930 i*86 )
5931 # Not sure whether the presence of OpenBSD here was a mistake.
5932 # Let's accept both of them until this is cleared up.
5933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5936 ;;
5937 esac
5938 else
5939 lt_cv_deplibs_check_method=pass_all
5940 fi
5941 ;;
5942
5943 gnu*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947 haiku*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 hpux10.20* | hpux11*)
5952 lt_cv_file_magic_cmd=/usr/bin/file
5953 case $host_cpu in
5954 ia64*)
5955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5957 ;;
5958 hppa*64*)
5959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5961 ;;
5962 *)
5963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5965 ;;
5966 esac
5967 ;;
5968
5969 interix[3-9]*)
5970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5972 ;;
5973
5974 irix5* | irix6* | nonstopux*)
5975 case $LD in
5976 *-32|*"-32 ") libmagic=32-bit;;
5977 *-n32|*"-n32 ") libmagic=N32;;
5978 *-64|*"-64 ") libmagic=64-bit;;
5979 *) libmagic=never-match;;
5980 esac
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 # This must be Linux ELF.
5985 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 netbsd*)
5990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992 else
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5994 fi
5995 ;;
5996
5997 newos6*)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001 ;;
6002
6003 *nto* | *qnx*)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006
6007 openbsd*)
6008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6010 else
6011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 fi
6013 ;;
6014
6015 osf3* | osf4* | osf5*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019 rdos*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 solaris*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031 sysv4 | sysv4.3*)
6032 case $host_vendor in
6033 motorola)
6034 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]'
6035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6036 ;;
6037 ncr)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040 sequent)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6043 ;;
6044 sni)
6045 lt_cv_file_magic_cmd='/bin/file'
6046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6047 lt_cv_file_magic_test_file=/lib/libc.so
6048 ;;
6049 siemens)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052 pc)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055 esac
6056 ;;
6057
6058 tpf*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061 esac
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6065 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6066 file_magic_cmd=$lt_cv_file_magic_cmd
6067 deplibs_check_method=$lt_cv_deplibs_check_method
6068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}ar; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_AR+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_AR="${ac_tool_prefix}ar"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 AR=$ac_cv_prog_AR
6110 if test -n "$AR"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6112 $as_echo "$AR" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118
6119 fi
6120 if test -z "$ac_cv_prog_AR"; then
6121 ac_ct_AR=$AR
6122 # Extract the first word of "ar", so it can be a program name with args.
6123 set dummy ar; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$ac_ct_AR"; then
6130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_ac_ct_AR="ar"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6150 if test -n "$ac_ct_AR"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6152 $as_echo "$ac_ct_AR" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158 if test "x$ac_ct_AR" = x; then
6159 AR="false"
6160 else
6161 case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167 AR=$ac_ct_AR
6168 fi
6169 else
6170 AR="$ac_cv_prog_AR"
6171 fi
6172
6173 test -z "$AR" && AR=ar
6174 test -z "$AR_FLAGS" && AR_FLAGS=cru
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}strip; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_STRIP+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$STRIP"; then
6195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 STRIP=$ac_cv_prog_STRIP
6215 if test -n "$STRIP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6217 $as_echo "$STRIP" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 fi
6225 if test -z "$ac_cv_prog_STRIP"; then
6226 ac_ct_STRIP=$STRIP
6227 # Extract the first word of "strip", so it can be a program name with args.
6228 set dummy strip; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$ac_ct_STRIP"; then
6235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_STRIP="strip"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6255 if test -n "$ac_ct_STRIP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6257 $as_echo "$ac_ct_STRIP" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263 if test "x$ac_ct_STRIP" = x; then
6264 STRIP=":"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272 STRIP=$ac_ct_STRIP
6273 fi
6274 else
6275 STRIP="$ac_cv_prog_STRIP"
6276 fi
6277
6278 test -z "$STRIP" && STRIP=:
6279
6280
6281
6282
6283
6284
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$RANLIB"; then
6294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 RANLIB=$ac_cv_prog_RANLIB
6314 if test -n "$RANLIB"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6316 $as_echo "$RANLIB" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322
6323 fi
6324 if test -z "$ac_cv_prog_RANLIB"; then
6325 ac_ct_RANLIB=$RANLIB
6326 # Extract the first word of "ranlib", so it can be a program name with args.
6327 set dummy ranlib; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$ac_ct_RANLIB"; then
6334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_prog_ac_ct_RANLIB="ranlib"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6346 fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6354 if test -n "$ac_ct_RANLIB"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6356 $as_echo "$ac_ct_RANLIB" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362 if test "x$ac_ct_RANLIB" = x; then
6363 RANLIB=":"
6364 else
6365 case $cross_compiling:$ac_tool_warned in
6366 yes:)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369 ac_tool_warned=yes ;;
6370 esac
6371 RANLIB=$ac_ct_RANLIB
6372 fi
6373 else
6374 RANLIB="$ac_cv_prog_RANLIB"
6375 fi
6376
6377 test -z "$RANLIB" && RANLIB=:
6378
6379
6380
6381
6382
6383
6384 # Determine commands to create old-style static archives.
6385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6386 old_postinstall_cmds='chmod 644 $oldlib'
6387 old_postuninstall_cmds=
6388
6389 if test -n "$RANLIB"; then
6390 case $host_os in
6391 openbsd*)
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6393 ;;
6394 *)
6395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6396 ;;
6397 esac
6398 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6399 fi
6400
6401 case $host_os in
6402 darwin*)
6403 lock_old_archive_extraction=yes ;;
6404 *)
6405 lock_old_archive_extraction=no ;;
6406 esac
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 # If no C compiler was specified, use CC.
6447 LTCC=${LTCC-"$CC"}
6448
6449 # If no C compiler flags were specified, use CFLAGS.
6450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6451
6452 # Allow CC to be a program name with arguments.
6453 compiler=$CC
6454
6455
6456 # Check for command to grab the raw symbol name followed by C symbol from nm.
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6458 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6459 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462
6463 # These are sane defaults that work on at least a few old systems.
6464 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6465
6466 # Character class describing NM global symbol codes.
6467 symcode='[BCDEGRST]'
6468
6469 # Regexp to match symbols that can be accessed directly from C.
6470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6471
6472 # Define system-specific variables.
6473 case $host_os in
6474 aix*)
6475 symcode='[BCDT]'
6476 ;;
6477 cygwin* | mingw* | pw32* | cegcc*)
6478 symcode='[ABCDGISTW]'
6479 ;;
6480 hpux*)
6481 if test "$host_cpu" = ia64; then
6482 symcode='[ABCDEGRST]'
6483 fi
6484 ;;
6485 irix* | nonstopux*)
6486 symcode='[BCDEGRST]'
6487 ;;
6488 osf*)
6489 symcode='[BCDEGQRST]'
6490 ;;
6491 solaris*)
6492 symcode='[BDRT]'
6493 ;;
6494 sco3.2v5*)
6495 symcode='[DT]'
6496 ;;
6497 sysv4.2uw2*)
6498 symcode='[DT]'
6499 ;;
6500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6501 symcode='[ABDT]'
6502 ;;
6503 sysv4)
6504 symcode='[DFNSTU]'
6505 ;;
6506 esac
6507
6508 # If we're using GNU nm, then use its standard symbol codes.
6509 case `$NM -V 2>&1` in
6510 *GNU* | *'with BFD'*)
6511 symcode='[ABCDGIRSTW]' ;;
6512 esac
6513
6514 # Transform an extracted symbol line into a proper C declaration.
6515 # Some systems (esp. on ia64) link data and code symbols differently,
6516 # so use this general approach.
6517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6518
6519 # Transform an extracted symbol line into symbol name and symbol address
6520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6522
6523 # Handle CRLF in mingw tool chain
6524 opt_cr=
6525 case $build_os in
6526 mingw*)
6527 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6528 ;;
6529 esac
6530
6531 # Try without a prefix underscore, then with it.
6532 for ac_symprfx in "" "_"; do
6533
6534 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6535 symxfrm="\\1 $ac_symprfx\\2 \\2"
6536
6537 # Write the raw and C identifiers.
6538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539 # Fake it for dumpbin and say T for any non-static function
6540 # and D for any global variable.
6541 # Also find C++ and __fastcall symbols from MSVC++,
6542 # which start with @ or ?.
6543 lt_cv_sys_global_symbol_pipe="$AWK '"\
6544 " {last_section=section; section=\$ 3};"\
6545 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6546 " \$ 0!~/External *\|/{next};"\
6547 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6548 " {if(hide[section]) next};"\
6549 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6550 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6551 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6552 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6553 " ' prfx=^$ac_symprfx"
6554 else
6555 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6556 fi
6557
6558 # Check to see that the pipe works correctly.
6559 pipe_works=no
6560
6561 rm -f conftest*
6562 cat > conftest.$ac_ext <<_LT_EOF
6563 #ifdef __cplusplus
6564 extern "C" {
6565 #endif
6566 char nm_test_var;
6567 void nm_test_func(void);
6568 void nm_test_func(void){}
6569 #ifdef __cplusplus
6570 }
6571 #endif
6572 int main(){nm_test_var='a';nm_test_func();return(0);}
6573 _LT_EOF
6574
6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }; then
6580 # Now try to grab the symbols.
6581 nlist=conftest.nm
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; } && test -s "$nlist"; then
6587 # Try sorting and uniquifying the output.
6588 if sort "$nlist" | uniq > "$nlist"T; then
6589 mv -f "$nlist"T "$nlist"
6590 else
6591 rm -f "$nlist"T
6592 fi
6593
6594 # Make sure that we snagged all the symbols we need.
6595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6597 cat <<_LT_EOF > conftest.$ac_ext
6598 #ifdef __cplusplus
6599 extern "C" {
6600 #endif
6601
6602 _LT_EOF
6603 # Now generate the symbol file.
6604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6605
6606 cat <<_LT_EOF >> conftest.$ac_ext
6607
6608 /* The mapping between symbol names and symbols. */
6609 const struct {
6610 const char *name;
6611 void *address;
6612 }
6613 lt__PROGRAM__LTX_preloaded_symbols[] =
6614 {
6615 { "@PROGRAM@", (void *) 0 },
6616 _LT_EOF
6617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6618 cat <<\_LT_EOF >> conftest.$ac_ext
6619 {0, (void *) 0}
6620 };
6621
6622 /* This works around a problem in FreeBSD linker */
6623 #ifdef FREEBSD_WORKAROUND
6624 static const void *lt_preloaded_setup() {
6625 return lt__PROGRAM__LTX_preloaded_symbols;
6626 }
6627 #endif
6628
6629 #ifdef __cplusplus
6630 }
6631 #endif
6632 _LT_EOF
6633 # Now try linking the two files.
6634 mv conftest.$ac_objext conftstm.$ac_objext
6635 lt_save_LIBS="$LIBS"
6636 lt_save_CFLAGS="$CFLAGS"
6637 LIBS="conftstm.$ac_objext"
6638 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6640 (eval $ac_link) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6644 pipe_works=yes
6645 fi
6646 LIBS="$lt_save_LIBS"
6647 CFLAGS="$lt_save_CFLAGS"
6648 else
6649 echo "cannot find nm_test_func in $nlist" >&5
6650 fi
6651 else
6652 echo "cannot find nm_test_var in $nlist" >&5
6653 fi
6654 else
6655 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6656 fi
6657 else
6658 echo "$progname: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6660 fi
6661 rm -rf conftest* conftst*
6662
6663 # Do not use the global_symbol_pipe unless it works.
6664 if test "$pipe_works" = yes; then
6665 break
6666 else
6667 lt_cv_sys_global_symbol_pipe=
6668 fi
6669 done
6670
6671 fi
6672
6673 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6674 lt_cv_sys_global_symbol_to_cdecl=
6675 fi
6676 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6678 $as_echo "failed" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6681 $as_echo "ok" >&6; }
6682 fi
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 # Check whether --enable-libtool-lock was given.
6707 if test "${enable_libtool_lock+set}" = set; then :
6708 enableval=$enable_libtool_lock;
6709 fi
6710
6711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6712
6713 # Some flags need to be propagated to the compiler or linker for good
6714 # libtool support.
6715 case $host in
6716 ia64-*-hpux*)
6717 # Find out which ABI we are using.
6718 echo 'int i;' > conftest.$ac_ext
6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6720 (eval $ac_compile) 2>&5
6721 ac_status=$?
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }; then
6724 case `/usr/bin/file conftest.$ac_objext` in
6725 *ELF-32*)
6726 HPUX_IA64_MODE="32"
6727 ;;
6728 *ELF-64*)
6729 HPUX_IA64_MODE="64"
6730 ;;
6731 esac
6732 fi
6733 rm -rf conftest*
6734 ;;
6735 *-*-irix6*)
6736 # Find out which ABI we are using.
6737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
6743 if test "$lt_cv_prog_gnu_ld" = yes; then
6744 case `/usr/bin/file conftest.$ac_objext` in
6745 *32-bit*)
6746 LD="${LD-ld} -melf32bsmip"
6747 ;;
6748 *N32*)
6749 LD="${LD-ld} -melf32bmipn32"
6750 ;;
6751 *64-bit*)
6752 LD="${LD-ld} -melf64bmip"
6753 ;;
6754 esac
6755 else
6756 case `/usr/bin/file conftest.$ac_objext` in
6757 *32-bit*)
6758 LD="${LD-ld} -32"
6759 ;;
6760 *N32*)
6761 LD="${LD-ld} -n32"
6762 ;;
6763 *64-bit*)
6764 LD="${LD-ld} -64"
6765 ;;
6766 esac
6767 fi
6768 fi
6769 rm -rf conftest*
6770 ;;
6771
6772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6774 # Find out which ABI we are using.
6775 echo 'int i;' > conftest.$ac_ext
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 case `/usr/bin/file conftest.o` in
6782 *32-bit*)
6783 case $host in
6784 x86_64-*kfreebsd*-gnu)
6785 LD="${LD-ld} -m elf_i386_fbsd"
6786 ;;
6787 x86_64-*linux*)
6788 case `/usr/bin/file conftest.o` in
6789 *x86-64*)
6790 LD="${LD-ld} -m elf32_x86_64"
6791 ;;
6792 *)
6793 LD="${LD-ld} -m elf_i386"
6794 ;;
6795 esac
6796 ;;
6797 ppc64-*linux*|powerpc64-*linux*)
6798 LD="${LD-ld} -m elf32ppclinux"
6799 ;;
6800 s390x-*linux*)
6801 LD="${LD-ld} -m elf_s390"
6802 ;;
6803 sparc64-*linux*)
6804 LD="${LD-ld} -m elf32_sparc"
6805 ;;
6806 esac
6807 ;;
6808 *64-bit*)
6809 case $host in
6810 x86_64-*kfreebsd*-gnu)
6811 LD="${LD-ld} -m elf_x86_64_fbsd"
6812 ;;
6813 x86_64-*linux*)
6814 LD="${LD-ld} -m elf_x86_64"
6815 ;;
6816 ppc*-*linux*|powerpc*-*linux*)
6817 LD="${LD-ld} -m elf64ppc"
6818 ;;
6819 s390*-*linux*|s390*-*tpf*)
6820 LD="${LD-ld} -m elf64_s390"
6821 ;;
6822 sparc*-*linux*)
6823 LD="${LD-ld} -m elf64_sparc"
6824 ;;
6825 esac
6826 ;;
6827 esac
6828 fi
6829 rm -rf conftest*
6830 ;;
6831
6832 *-*-sco3.2v5*)
6833 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6834 SAVE_CFLAGS="$CFLAGS"
6835 CFLAGS="$CFLAGS -belf"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6838 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849
6850 int
6851 main ()
6852 {
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 if ac_fn_c_try_link "$LINENO"; then :
6859 lt_cv_cc_needs_belf=yes
6860 else
6861 lt_cv_cc_needs_belf=no
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
6865 ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6876 CFLAGS="$SAVE_CFLAGS"
6877 fi
6878 ;;
6879 sparc*-*solaris*)
6880 # Find out which ABI we are using.
6881 echo 'int i;' > conftest.$ac_ext
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 case `/usr/bin/file conftest.o` in
6888 *64-bit*)
6889 case $lt_cv_prog_gnu_ld in
6890 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6891 *)
6892 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6893 LD="${LD-ld} -64"
6894 fi
6895 ;;
6896 esac
6897 ;;
6898 esac
6899 fi
6900 rm -rf conftest*
6901 ;;
6902 esac
6903
6904 need_locks="$enable_libtool_lock"
6905
6906
6907 case $host_os in
6908 rhapsody* | darwin*)
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$DSYMUTIL"; then
6918 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6938 if test -n "$DSYMUTIL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6940 $as_echo "$DSYMUTIL" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_DSYMUTIL"; then
6949 ac_ct_DSYMUTIL=$DSYMUTIL
6950 # Extract the first word of "dsymutil", so it can be a program name with args.
6951 set dummy dsymutil; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$ac_ct_DSYMUTIL"; then
6958 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6978 if test -n "$ac_ct_DSYMUTIL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6980 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986 if test "x$ac_ct_DSYMUTIL" = x; then
6987 DSYMUTIL=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 DSYMUTIL=$ac_ct_DSYMUTIL
6996 fi
6997 else
6998 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6999 fi
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$NMEDIT"; then
7010 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 NMEDIT=$ac_cv_prog_NMEDIT
7030 if test -n "$NMEDIT"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7032 $as_echo "$NMEDIT" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 fi
7040 if test -z "$ac_cv_prog_NMEDIT"; then
7041 ac_ct_NMEDIT=$NMEDIT
7042 # Extract the first word of "nmedit", so it can be a program name with args.
7043 set dummy nmedit; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$ac_ct_NMEDIT"; then
7050 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7070 if test -n "$ac_ct_NMEDIT"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7072 $as_echo "$ac_ct_NMEDIT" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078 if test "x$ac_ct_NMEDIT" = x; then
7079 NMEDIT=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 NMEDIT=$ac_ct_NMEDIT
7088 fi
7089 else
7090 NMEDIT="$ac_cv_prog_NMEDIT"
7091 fi
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_LIPO+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$LIPO"; then
7102 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 LIPO=$ac_cv_prog_LIPO
7122 if test -n "$LIPO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7124 $as_echo "$LIPO" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_LIPO"; then
7133 ac_ct_LIPO=$LIPO
7134 # Extract the first word of "lipo", so it can be a program name with args.
7135 set dummy lipo; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_LIPO"; then
7142 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_LIPO="lipo"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7162 if test -n "$ac_ct_LIPO"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7164 $as_echo "$ac_ct_LIPO" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_LIPO" = x; then
7171 LIPO=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 LIPO=$ac_ct_LIPO
7180 fi
7181 else
7182 LIPO="$ac_cv_prog_LIPO"
7183 fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$OTOOL"; then
7194 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 OTOOL=$ac_cv_prog_OTOOL
7214 if test -n "$OTOOL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7216 $as_echo "$OTOOL" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223 fi
7224 if test -z "$ac_cv_prog_OTOOL"; then
7225 ac_ct_OTOOL=$OTOOL
7226 # Extract the first word of "otool", so it can be a program name with args.
7227 set dummy otool; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_OTOOL"; then
7234 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_OTOOL="otool"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7254 if test -n "$ac_ct_OTOOL"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7256 $as_echo "$ac_ct_OTOOL" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262 if test "x$ac_ct_OTOOL" = x; then
7263 OTOOL=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 OTOOL=$ac_ct_OTOOL
7272 fi
7273 else
7274 OTOOL="$ac_cv_prog_OTOOL"
7275 fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$OTOOL64"; then
7286 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 OTOOL64=$ac_cv_prog_OTOOL64
7306 if test -n "$OTOOL64"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7308 $as_echo "$OTOOL64" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314
7315 fi
7316 if test -z "$ac_cv_prog_OTOOL64"; then
7317 ac_ct_OTOOL64=$OTOOL64
7318 # Extract the first word of "otool64", so it can be a program name with args.
7319 set dummy otool64; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$ac_ct_OTOOL64"; then
7326 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_OTOOL64="otool64"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7346 if test -n "$ac_ct_OTOOL64"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7348 $as_echo "$ac_ct_OTOOL64" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354 if test "x$ac_ct_OTOOL64" = x; then
7355 OTOOL64=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363 OTOOL64=$ac_ct_OTOOL64
7364 fi
7365 else
7366 OTOOL64="$ac_cv_prog_OTOOL64"
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7396 $as_echo_n "checking for -single_module linker flag... " >&6; }
7397 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 lt_cv_apple_cc_single_mod=no
7401 if test -z "${LT_MULTI_MODULE}"; then
7402 # By default we will add the -single_module flag. You can override
7403 # by either setting the environment variable LT_MULTI_MODULE
7404 # non-empty at configure time, or by adding -multi_module to the
7405 # link flags.
7406 rm -rf libconftest.dylib*
7407 echo "int foo(void){return 1;}" > conftest.c
7408 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7409 -dynamiclib -Wl,-single_module conftest.c" >&5
7410 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7412 _lt_result=$?
7413 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7414 lt_cv_apple_cc_single_mod=yes
7415 else
7416 cat conftest.err >&5
7417 fi
7418 rm -rf libconftest.dylib*
7419 rm -f conftest.*
7420 fi
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7423 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7425 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7426 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 lt_cv_ld_exported_symbols_list=no
7430 save_LDFLAGS=$LDFLAGS
7431 echo "_main" > conftest.sym
7432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435
7436 int
7437 main ()
7438 {
7439
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 if ac_fn_c_try_link "$LINENO"; then :
7445 lt_cv_ld_exported_symbols_list=yes
7446 else
7447 lt_cv_ld_exported_symbols_list=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext \
7450 conftest$ac_exeext conftest.$ac_ext
7451 LDFLAGS="$save_LDFLAGS"
7452
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7455 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7457 $as_echo_n "checking for -force_load linker flag... " >&6; }
7458 if test "${lt_cv_ld_force_load+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 lt_cv_ld_force_load=no
7462 cat > conftest.c << _LT_EOF
7463 int forced_loaded() { return 2;}
7464 _LT_EOF
7465 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7466 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7467 echo "$AR cru libconftest.a conftest.o" >&5
7468 $AR cru libconftest.a conftest.o 2>&5
7469 cat > conftest.c << _LT_EOF
7470 int main() { return 0;}
7471 _LT_EOF
7472 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7473 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7474 _lt_result=$?
7475 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7476 lt_cv_ld_force_load=yes
7477 else
7478 cat conftest.err >&5
7479 fi
7480 rm -f conftest.err libconftest.a conftest conftest.c
7481 rm -rf conftest.dSYM
7482
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485 $as_echo "$lt_cv_ld_force_load" >&6; }
7486 case $host_os in
7487 rhapsody* | darwin1.[012])
7488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7489 darwin1.*)
7490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7491 darwin*) # darwin 5.x on
7492 # if running on 10.5 or later, the deployment target defaults
7493 # to the OS version, if on x86, and 10.4, the deployment
7494 # target defaults to 10.4. Don't you love it?
7495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7498 10.[012]*)
7499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7500 10.*)
7501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7502 esac
7503 ;;
7504 esac
7505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7506 _lt_dar_single_mod='$single_module'
7507 fi
7508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7510 else
7511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7512 fi
7513 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7514 _lt_dsymutil='~$DSYMUTIL $lib || :'
7515 else
7516 _lt_dsymutil=
7517 fi
7518 ;;
7519 esac
7520
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7528 # On Suns, sometimes $CPP names a directory.
7529 if test -n "$CPP" && test -d "$CPP"; then
7530 CPP=
7531 fi
7532 if test -z "$CPP"; then
7533 if test "${ac_cv_prog_CPP+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 # Double quotes because CPP needs to be expanded
7537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7538 do
7539 ac_preproc_ok=false
7540 for ac_c_preproc_warn_flag in '' yes
7541 do
7542 # Use a header file that comes with gcc, so configuring glibc
7543 # with a fresh cross-compiler works.
7544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545 # <limits.h> exists even on freestanding compilers.
7546 # On the NeXT, cc -E runs the code through the compiler's parser,
7547 # not just through cpp. "Syntax error" is here to catch this case.
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 #ifdef __STDC__
7551 # include <limits.h>
7552 #else
7553 # include <assert.h>
7554 #endif
7555 Syntax error
7556 _ACEOF
7557 if ac_fn_c_try_cpp "$LINENO"; then :
7558
7559 else
7560 # Broken: fails on valid input.
7561 continue
7562 fi
7563 rm -f conftest.err conftest.$ac_ext
7564
7565 # OK, works on sane cases. Now check whether nonexistent headers
7566 # can be detected and how.
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <ac_nonexistent.h>
7570 _ACEOF
7571 if ac_fn_c_try_cpp "$LINENO"; then :
7572 # Broken: success on invalid input.
7573 continue
7574 else
7575 # Passes both tests.
7576 ac_preproc_ok=:
7577 break
7578 fi
7579 rm -f conftest.err conftest.$ac_ext
7580
7581 done
7582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7583 rm -f conftest.err conftest.$ac_ext
7584 if $ac_preproc_ok; then :
7585 break
7586 fi
7587
7588 done
7589 ac_cv_prog_CPP=$CPP
7590
7591 fi
7592 CPP=$ac_cv_prog_CPP
7593 else
7594 ac_cv_prog_CPP=$CPP
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7597 $as_echo "$CPP" >&6; }
7598 ac_preproc_ok=false
7599 for ac_c_preproc_warn_flag in '' yes
7600 do
7601 # Use a header file that comes with gcc, so configuring glibc
7602 # with a fresh cross-compiler works.
7603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604 # <limits.h> exists even on freestanding compilers.
7605 # On the NeXT, cc -E runs the code through the compiler's parser,
7606 # not just through cpp. "Syntax error" is here to catch this case.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #ifdef __STDC__
7610 # include <limits.h>
7611 #else
7612 # include <assert.h>
7613 #endif
7614 Syntax error
7615 _ACEOF
7616 if ac_fn_c_try_cpp "$LINENO"; then :
7617
7618 else
7619 # Broken: fails on valid input.
7620 continue
7621 fi
7622 rm -f conftest.err conftest.$ac_ext
7623
7624 # OK, works on sane cases. Now check whether nonexistent headers
7625 # can be detected and how.
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <ac_nonexistent.h>
7629 _ACEOF
7630 if ac_fn_c_try_cpp "$LINENO"; then :
7631 # Broken: success on invalid input.
7632 continue
7633 else
7634 # Passes both tests.
7635 ac_preproc_ok=:
7636 break
7637 fi
7638 rm -f conftest.err conftest.$ac_ext
7639
7640 done
7641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7642 rm -f conftest.err conftest.$ac_ext
7643 if $ac_preproc_ok; then :
7644
7645 else
7646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7648 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7649 See \`config.log' for more details." "$LINENO" 5; }
7650 fi
7651
7652 ac_ext=c
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660 $as_echo_n "checking for ANSI C header files... " >&6; }
7661 if test "${ac_cv_header_stdc+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <stdlib.h>
7667 #include <stdarg.h>
7668 #include <string.h>
7669 #include <float.h>
7670
7671 int
7672 main ()
7673 {
7674
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_compile "$LINENO"; then :
7680 ac_cv_header_stdc=yes
7681 else
7682 ac_cv_header_stdc=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685
7686 if test $ac_cv_header_stdc = yes; then
7687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <string.h>
7691
7692 _ACEOF
7693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694 $EGREP "memchr" >/dev/null 2>&1; then :
7695
7696 else
7697 ac_cv_header_stdc=no
7698 fi
7699 rm -f conftest*
7700
7701 fi
7702
7703 if test $ac_cv_header_stdc = yes; then
7704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <stdlib.h>
7708
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "free" >/dev/null 2>&1; then :
7712
7713 else
7714 ac_cv_header_stdc=no
7715 fi
7716 rm -f conftest*
7717
7718 fi
7719
7720 if test $ac_cv_header_stdc = yes; then
7721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722 if test "$cross_compiling" = yes; then :
7723 :
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #include <ctype.h>
7728 #include <stdlib.h>
7729 #if ((' ' & 0x0FF) == 0x020)
7730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732 #else
7733 # define ISLOWER(c) \
7734 (('a' <= (c) && (c) <= 'i') \
7735 || ('j' <= (c) && (c) <= 'r') \
7736 || ('s' <= (c) && (c) <= 'z'))
7737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738 #endif
7739
7740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7741 int
7742 main ()
7743 {
7744 int i;
7745 for (i = 0; i < 256; i++)
7746 if (XOR (islower (i), ISLOWER (i))
7747 || toupper (i) != TOUPPER (i))
7748 return 2;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_run "$LINENO"; then :
7753
7754 else
7755 ac_cv_header_stdc=no
7756 fi
7757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7758 conftest.$ac_objext conftest.beam conftest.$ac_ext
7759 fi
7760
7761 fi
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764 $as_echo "$ac_cv_header_stdc" >&6; }
7765 if test $ac_cv_header_stdc = yes; then
7766
7767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7768
7769 fi
7770
7771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7773 inttypes.h stdint.h unistd.h
7774 do :
7775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7777 "
7778 eval as_val=\$$as_ac_Header
7779 if test "x$as_val" = x""yes; then :
7780 cat >>confdefs.h <<_ACEOF
7781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782 _ACEOF
7783
7784 fi
7785
7786 done
7787
7788
7789 for ac_header in dlfcn.h
7790 do :
7791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7792 "
7793 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DLFCN_H 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802
7803
7804
7805
7806
7807 # Set options
7808
7809
7810
7811
7812 enable_win32_dll=no
7813
7814
7815 # Check whether --enable-shared was given.
7816 if test "${enable_shared+set}" = set; then :
7817 enableval=$enable_shared; p=${PACKAGE-default}
7818 case $enableval in
7819 yes) enable_shared=yes ;;
7820 no) enable_shared=no ;;
7821 *)
7822 enable_shared=no
7823 # Look at the argument we got. We use all the common list separators.
7824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7825 for pkg in $enableval; do
7826 IFS="$lt_save_ifs"
7827 if test "X$pkg" = "X$p"; then
7828 enable_shared=yes
7829 fi
7830 done
7831 IFS="$lt_save_ifs"
7832 ;;
7833 esac
7834 else
7835 enable_shared=yes
7836 fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 # Check whether --enable-static was given.
7847 if test "${enable_static+set}" = set; then :
7848 enableval=$enable_static; p=${PACKAGE-default}
7849 case $enableval in
7850 yes) enable_static=yes ;;
7851 no) enable_static=no ;;
7852 *)
7853 enable_static=no
7854 # Look at the argument we got. We use all the common list separators.
7855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7856 for pkg in $enableval; do
7857 IFS="$lt_save_ifs"
7858 if test "X$pkg" = "X$p"; then
7859 enable_static=yes
7860 fi
7861 done
7862 IFS="$lt_save_ifs"
7863 ;;
7864 esac
7865 else
7866 enable_static=yes
7867 fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 # Check whether --with-pic was given.
7879 if test "${with_pic+set}" = set; then :
7880 withval=$with_pic; pic_mode="$withval"
7881 else
7882 pic_mode=default
7883 fi
7884
7885
7886 test -z "$pic_mode" && pic_mode=default
7887
7888
7889
7890
7891
7892
7893
7894 # Check whether --enable-fast-install was given.
7895 if test "${enable_fast_install+set}" = set; then :
7896 enableval=$enable_fast_install; p=${PACKAGE-default}
7897 case $enableval in
7898 yes) enable_fast_install=yes ;;
7899 no) enable_fast_install=no ;;
7900 *)
7901 enable_fast_install=no
7902 # Look at the argument we got. We use all the common list separators.
7903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7904 for pkg in $enableval; do
7905 IFS="$lt_save_ifs"
7906 if test "X$pkg" = "X$p"; then
7907 enable_fast_install=yes
7908 fi
7909 done
7910 IFS="$lt_save_ifs"
7911 ;;
7912 esac
7913 else
7914 enable_fast_install=yes
7915 fi
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927 # This can be used to rebuild libtool when needed
7928 LIBTOOL_DEPS="$ltmain"
7929
7930 # Always use our own libtool.
7931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 test -z "$LN_S" && LN_S="ln -s"
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 if test -n "${ZSH_VERSION+set}" ; then
7974 setopt NO_GLOB_SUBST
7975 fi
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7978 $as_echo_n "checking for objdir... " >&6; }
7979 if test "${lt_cv_objdir+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 rm -f .libs 2>/dev/null
7983 mkdir .libs 2>/dev/null
7984 if test -d .libs; then
7985 lt_cv_objdir=.libs
7986 else
7987 # MS-DOS does not allow filenames that begin with a dot.
7988 lt_cv_objdir=_libs
7989 fi
7990 rmdir .libs 2>/dev/null
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7993 $as_echo "$lt_cv_objdir" >&6; }
7994 objdir=$lt_cv_objdir
7995
7996
7997
7998
7999
8000 cat >>confdefs.h <<_ACEOF
8001 #define LT_OBJDIR "$lt_cv_objdir/"
8002 _ACEOF
8003
8004
8005
8006
8007 case $host_os in
8008 aix3*)
8009 # AIX sometimes has problems with the GCC collect2 program. For some
8010 # reason, if we set the COLLECT_NAMES environment variable, the problems
8011 # vanish in a puff of smoke.
8012 if test "X${COLLECT_NAMES+set}" != Xset; then
8013 COLLECT_NAMES=
8014 export COLLECT_NAMES
8015 fi
8016 ;;
8017 esac
8018
8019 # Global variables:
8020 ofile=libtool
8021 can_build_shared=yes
8022
8023 # All known linkers require a `.a' archive for static linking (except MSVC,
8024 # which needs '.lib').
8025 libext=a
8026
8027 with_gnu_ld="$lt_cv_prog_gnu_ld"
8028
8029 old_CC="$CC"
8030 old_CFLAGS="$CFLAGS"
8031
8032 # Set sane defaults for various variables
8033 test -z "$CC" && CC=cc
8034 test -z "$LTCC" && LTCC=$CC
8035 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8036 test -z "$LD" && LD=ld
8037 test -z "$ac_objext" && ac_objext=o
8038
8039 for cc_temp in $compiler""; do
8040 case $cc_temp in
8041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8043 \-*) ;;
8044 *) break;;
8045 esac
8046 done
8047 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8048
8049
8050 # Only perform the check for file, if the check method requires it
8051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8052 case $deplibs_check_method in
8053 file_magic*)
8054 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8056 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8057 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 case $MAGIC_CMD in
8061 [\\/*] | ?:[\\/]*)
8062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8063 ;;
8064 *)
8065 lt_save_MAGIC_CMD="$MAGIC_CMD"
8066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8068 for ac_dir in $ac_dummy; do
8069 IFS="$lt_save_ifs"
8070 test -z "$ac_dir" && ac_dir=.
8071 if test -f $ac_dir/${ac_tool_prefix}file; then
8072 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8073 if test -n "$file_magic_test_file"; then
8074 case $deplibs_check_method in
8075 "file_magic "*)
8076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8079 $EGREP "$file_magic_regex" > /dev/null; then
8080 :
8081 else
8082 cat <<_LT_EOF 1>&2
8083
8084 *** Warning: the command libtool uses to detect shared libraries,
8085 *** $file_magic_cmd, produces output that libtool cannot recognize.
8086 *** The result is that libtool may fail to recognize shared libraries
8087 *** as such. This will affect the creation of libtool libraries that
8088 *** depend on shared libraries, but programs linked with such libtool
8089 *** libraries will work regardless of this problem. Nevertheless, you
8090 *** may want to report the problem to your system manager and/or to
8091 *** bug-libtool@gnu.org
8092
8093 _LT_EOF
8094 fi ;;
8095 esac
8096 fi
8097 break
8098 fi
8099 done
8100 IFS="$lt_save_ifs"
8101 MAGIC_CMD="$lt_save_MAGIC_CMD"
8102 ;;
8103 esac
8104 fi
8105
8106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8107 if test -n "$MAGIC_CMD"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8109 $as_echo "$MAGIC_CMD" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116
8117
8118
8119 if test -z "$lt_cv_path_MAGIC_CMD"; then
8120 if test -n "$ac_tool_prefix"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8122 $as_echo_n "checking for file... " >&6; }
8123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 case $MAGIC_CMD in
8127 [\\/*] | ?:[\\/]*)
8128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8129 ;;
8130 *)
8131 lt_save_MAGIC_CMD="$MAGIC_CMD"
8132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8134 for ac_dir in $ac_dummy; do
8135 IFS="$lt_save_ifs"
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/file; then
8138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8139 if test -n "$file_magic_test_file"; then
8140 case $deplibs_check_method in
8141 "file_magic "*)
8142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8145 $EGREP "$file_magic_regex" > /dev/null; then
8146 :
8147 else
8148 cat <<_LT_EOF 1>&2
8149
8150 *** Warning: the command libtool uses to detect shared libraries,
8151 *** $file_magic_cmd, produces output that libtool cannot recognize.
8152 *** The result is that libtool may fail to recognize shared libraries
8153 *** as such. This will affect the creation of libtool libraries that
8154 *** depend on shared libraries, but programs linked with such libtool
8155 *** libraries will work regardless of this problem. Nevertheless, you
8156 *** may want to report the problem to your system manager and/or to
8157 *** bug-libtool@gnu.org
8158
8159 _LT_EOF
8160 fi ;;
8161 esac
8162 fi
8163 break
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 MAGIC_CMD="$lt_save_MAGIC_CMD"
8168 ;;
8169 esac
8170 fi
8171
8172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8173 if test -n "$MAGIC_CMD"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8175 $as_echo "$MAGIC_CMD" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8179 fi
8180
8181
8182 else
8183 MAGIC_CMD=:
8184 fi
8185 fi
8186
8187 fi
8188 ;;
8189 esac
8190
8191 # Use C for the default configuration in the libtool script
8192
8193 lt_save_CC="$CC"
8194 ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200
8201 # Source file extension for C test sources.
8202 ac_ext=c
8203
8204 # Object file extension for compiled C test sources.
8205 objext=o
8206 objext=$objext
8207
8208 # Code to be used in simple compile tests
8209 lt_simple_compile_test_code="int some_variable = 0;"
8210
8211 # Code to be used in simple link tests
8212 lt_simple_link_test_code='int main(){return(0);}'
8213
8214
8215
8216
8217
8218
8219
8220 # If no C compiler was specified, use CC.
8221 LTCC=${LTCC-"$CC"}
8222
8223 # If no C compiler flags were specified, use CFLAGS.
8224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8225
8226 # Allow CC to be a program name with arguments.
8227 compiler=$CC
8228
8229 # Save the default compiler, since it gets overwritten when the other
8230 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8231 compiler_DEFAULT=$CC
8232
8233 # save warnings/boilerplate of simple test code
8234 ac_outfile=conftest.$ac_objext
8235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8237 _lt_compiler_boilerplate=`cat conftest.err`
8238 $RM conftest*
8239
8240 ac_outfile=conftest.$ac_objext
8241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_linker_boilerplate=`cat conftest.err`
8244 $RM -r conftest*
8245
8246
8247 ## CAVEAT EMPTOR:
8248 ## There is no encapsulation within the following macros, do not change
8249 ## the running order or otherwise move them around unless you know exactly
8250 ## what you are doing...
8251 if test -n "$compiler"; then
8252
8253 lt_prog_compiler_no_builtin_flag=
8254
8255 if test "$GCC" = yes; then
8256 case $cc_basename in
8257 nvcc*)
8258 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8259 *)
8260 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8261 esac
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8264 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8265 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 lt_cv_prog_compiler_rtti_exceptions=no
8269 ac_outfile=conftest.$ac_objext
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271 lt_compiler_flag="-fno-rtti -fno-exceptions"
8272 # Insert the option either (1) after the last *FLAGS variable, or
8273 # (2) before a word containing "conftest.", or (3) at the end.
8274 # Note that $ac_compile itself does not contain backslashes and begins
8275 # with a dollar sign (not a hyphen), so the echo should work correctly.
8276 # The option is referenced via a variable to avoid confusing sed.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>conftest.err)
8283 ac_status=$?
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s "$ac_outfile"; then
8287 # The compiler can only warn and ignore the option if not recognized
8288 # So say no if there are warnings other than the usual output.
8289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8292 lt_cv_prog_compiler_rtti_exceptions=yes
8293 fi
8294 fi
8295 $RM conftest*
8296
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8299 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8300
8301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8303 else
8304 :
8305 fi
8306
8307 fi
8308
8309
8310
8311
8312
8313
8314 lt_prog_compiler_wl=
8315 lt_prog_compiler_pic=
8316 lt_prog_compiler_static=
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8320
8321 if test "$GCC" = yes; then
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_static='-static'
8324
8325 case $host_os in
8326 aix*)
8327 # All AIX code is PIC.
8328 if test "$host_cpu" = ia64; then
8329 # AIX 5 now supports IA64 processor
8330 lt_prog_compiler_static='-Bstatic'
8331 fi
8332 lt_prog_compiler_pic='-fPIC'
8333 ;;
8334
8335 amigaos*)
8336 case $host_cpu in
8337 powerpc)
8338 # see comment about AmigaOS4 .so support
8339 lt_prog_compiler_pic='-fPIC'
8340 ;;
8341 m68k)
8342 # FIXME: we need at least 68020 code to build shared libraries, but
8343 # adding the `-m68020' flag to GCC prevents building anything better,
8344 # like `-m68040'.
8345 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8346 ;;
8347 esac
8348 ;;
8349
8350 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8351 # PIC is the default for these OSes.
8352 ;;
8353
8354 mingw* | cygwin* | pw32* | os2* | cegcc*)
8355 # This hack is so that the source file can tell whether it is being
8356 # built for inclusion in a dll (and should export symbols for example).
8357 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8358 # (--disable-auto-import) libraries
8359 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 ;;
8361
8362 darwin* | rhapsody*)
8363 # PIC is the default on this platform
8364 # Common symbols not allowed in MH_DYLIB files
8365 lt_prog_compiler_pic='-fno-common'
8366 ;;
8367
8368 haiku*)
8369 # PIC is the default for Haiku.
8370 # The "-static" flag exists, but is broken.
8371 lt_prog_compiler_static=
8372 ;;
8373
8374 hpux*)
8375 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8376 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8377 # sets the default TLS model and affects inlining.
8378 case $host_cpu in
8379 hppa*64*)
8380 # +Z the default
8381 ;;
8382 *)
8383 lt_prog_compiler_pic='-fPIC'
8384 ;;
8385 esac
8386 ;;
8387
8388 interix[3-9]*)
8389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8390 # Instead, we relocate shared libraries at runtime.
8391 ;;
8392
8393 msdosdjgpp*)
8394 # Just because we use GCC doesn't mean we suddenly get shared libraries
8395 # on systems that don't support them.
8396 lt_prog_compiler_can_build_shared=no
8397 enable_shared=no
8398 ;;
8399
8400 *nto* | *qnx*)
8401 # QNX uses GNU C++, but need to define -shared option too, otherwise
8402 # it will coredump.
8403 lt_prog_compiler_pic='-fPIC -shared'
8404 ;;
8405
8406 sysv4*MP*)
8407 if test -d /usr/nec; then
8408 lt_prog_compiler_pic=-Kconform_pic
8409 fi
8410 ;;
8411
8412 *)
8413 lt_prog_compiler_pic='-fPIC'
8414 ;;
8415 esac
8416
8417 case $cc_basename in
8418 nvcc*) # Cuda Compiler Driver 2.2
8419 lt_prog_compiler_wl='-Xlinker '
8420 lt_prog_compiler_pic='-Xcompiler -fPIC'
8421 ;;
8422 esac
8423 else
8424 # PORTME Check for flag to pass linker flags through the system compiler.
8425 case $host_os in
8426 aix*)
8427 lt_prog_compiler_wl='-Wl,'
8428 if test "$host_cpu" = ia64; then
8429 # AIX 5 now supports IA64 processor
8430 lt_prog_compiler_static='-Bstatic'
8431 else
8432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8433 fi
8434 ;;
8435
8436 mingw* | cygwin* | pw32* | os2* | cegcc*)
8437 # This hack is so that the source file can tell whether it is being
8438 # built for inclusion in a dll (and should export symbols for example).
8439 lt_prog_compiler_pic='-DDLL_EXPORT'
8440 ;;
8441
8442 hpux9* | hpux10* | hpux11*)
8443 lt_prog_compiler_wl='-Wl,'
8444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8445 # not for PA HP-UX.
8446 case $host_cpu in
8447 hppa*64*|ia64*)
8448 # +Z the default
8449 ;;
8450 *)
8451 lt_prog_compiler_pic='+Z'
8452 ;;
8453 esac
8454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8455 lt_prog_compiler_static='${wl}-a ${wl}archive'
8456 ;;
8457
8458 irix5* | irix6* | nonstopux*)
8459 lt_prog_compiler_wl='-Wl,'
8460 # PIC (with -KPIC) is the default.
8461 lt_prog_compiler_static='-non_shared'
8462 ;;
8463
8464 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8465 case $cc_basename in
8466 # old Intel for x86_64 which still supported -KPIC.
8467 ecc*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-static'
8471 ;;
8472 # icc used to be incompatible with GCC.
8473 # ICC 10 doesn't accept -KPIC any more.
8474 icc* | ifort*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-fPIC'
8477 lt_prog_compiler_static='-static'
8478 ;;
8479 # Lahey Fortran 8.1.
8480 lf95*)
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='--shared'
8483 lt_prog_compiler_static='--static'
8484 ;;
8485 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8486 # Portland Group compilers (*not* the Pentium gcc compiler,
8487 # which looks to be a dead project)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-fpic'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492 ccc*)
8493 lt_prog_compiler_wl='-Wl,'
8494 # All Alpha code is PIC.
8495 lt_prog_compiler_static='-non_shared'
8496 ;;
8497 xl* | bgxl* | bgf* | mpixl*)
8498 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-qpic'
8501 lt_prog_compiler_static='-qstaticlink'
8502 ;;
8503 *)
8504 case `$CC -V 2>&1 | sed 5q` in
8505 *Sun\ F* | *Sun*Fortran*)
8506 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 lt_prog_compiler_wl=''
8510 ;;
8511 *Sun\ C*)
8512 # Sun C 5.9
8513 lt_prog_compiler_pic='-KPIC'
8514 lt_prog_compiler_static='-Bstatic'
8515 lt_prog_compiler_wl='-Wl,'
8516 ;;
8517 esac
8518 ;;
8519 esac
8520 ;;
8521
8522 newsos6)
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 ;;
8526
8527 *nto* | *qnx*)
8528 # QNX uses GNU C++, but need to define -shared option too, otherwise
8529 # it will coredump.
8530 lt_prog_compiler_pic='-fPIC -shared'
8531 ;;
8532
8533 osf3* | osf4* | osf5*)
8534 lt_prog_compiler_wl='-Wl,'
8535 # All OSF/1 code is PIC.
8536 lt_prog_compiler_static='-non_shared'
8537 ;;
8538
8539 rdos*)
8540 lt_prog_compiler_static='-non_shared'
8541 ;;
8542
8543 solaris*)
8544 lt_prog_compiler_pic='-KPIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 case $cc_basename in
8547 f77* | f90* | f95*)
8548 lt_prog_compiler_wl='-Qoption ld ';;
8549 *)
8550 lt_prog_compiler_wl='-Wl,';;
8551 esac
8552 ;;
8553
8554 sunos4*)
8555 lt_prog_compiler_wl='-Qoption ld '
8556 lt_prog_compiler_pic='-PIC'
8557 lt_prog_compiler_static='-Bstatic'
8558 ;;
8559
8560 sysv4 | sysv4.2uw2* | sysv4.3*)
8561 lt_prog_compiler_wl='-Wl,'
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-Bstatic'
8564 ;;
8565
8566 sysv4*MP*)
8567 if test -d /usr/nec ;then
8568 lt_prog_compiler_pic='-Kconform_pic'
8569 lt_prog_compiler_static='-Bstatic'
8570 fi
8571 ;;
8572
8573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_pic='-KPIC'
8576 lt_prog_compiler_static='-Bstatic'
8577 ;;
8578
8579 unicos*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_can_build_shared=no
8582 ;;
8583
8584 uts4*)
8585 lt_prog_compiler_pic='-pic'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 *)
8590 lt_prog_compiler_can_build_shared=no
8591 ;;
8592 esac
8593 fi
8594
8595 case $host_os in
8596 # For platforms which do not support PIC, -DPIC is meaningless:
8597 *djgpp*)
8598 lt_prog_compiler_pic=
8599 ;;
8600 *)
8601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8602 ;;
8603 esac
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8605 $as_echo "$lt_prog_compiler_pic" >&6; }
8606
8607
8608
8609
8610
8611
8612 #
8613 # Check to make sure the PIC flag actually works.
8614 #
8615 if test -n "$lt_prog_compiler_pic"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8618 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 lt_cv_prog_compiler_pic_works=no
8622 ac_outfile=conftest.$ac_objext
8623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8624 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8625 # Insert the option either (1) after the last *FLAGS variable, or
8626 # (2) before a word containing "conftest.", or (3) at the end.
8627 # Note that $ac_compile itself does not contain backslashes and begins
8628 # with a dollar sign (not a hyphen), so the echo should work correctly.
8629 # The option is referenced via a variable to avoid confusing sed.
8630 lt_compile=`echo "$ac_compile" | $SED \
8631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8633 -e 's:$: $lt_compiler_flag:'`
8634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8635 (eval "$lt_compile" 2>conftest.err)
8636 ac_status=$?
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 if (exit $ac_status) && test -s "$ac_outfile"; then
8640 # The compiler can only warn and ignore the option if not recognized
8641 # So say no if there are warnings other than the usual output.
8642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8645 lt_cv_prog_compiler_pic_works=yes
8646 fi
8647 fi
8648 $RM conftest*
8649
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8652 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8653
8654 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8655 case $lt_prog_compiler_pic in
8656 "" | " "*) ;;
8657 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8658 esac
8659 else
8660 lt_prog_compiler_pic=
8661 lt_prog_compiler_can_build_shared=no
8662 fi
8663
8664 fi
8665
8666
8667
8668
8669
8670
8671 #
8672 # Check to make sure the static flag actually works.
8673 #
8674 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8676 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8677 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 lt_cv_prog_compiler_static_works=no
8681 save_LDFLAGS="$LDFLAGS"
8682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8683 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8685 # The linker can only warn and ignore the option if not recognized
8686 # So say no if there are warnings
8687 if test -s conftest.err; then
8688 # Append any errors to the config.log.
8689 cat conftest.err 1>&5
8690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8692 if diff conftest.exp conftest.er2 >/dev/null; then
8693 lt_cv_prog_compiler_static_works=yes
8694 fi
8695 else
8696 lt_cv_prog_compiler_static_works=yes
8697 fi
8698 fi
8699 $RM -r conftest*
8700 LDFLAGS="$save_LDFLAGS"
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8704 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8705
8706 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8707 :
8708 else
8709 lt_prog_compiler_static=
8710 fi
8711
8712
8713
8714
8715
8716
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8720 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 lt_cv_prog_compiler_c_o=no
8724 $RM -r conftest 2>/dev/null
8725 mkdir conftest
8726 cd conftest
8727 mkdir out
8728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8729
8730 lt_compiler_flag="-o out/conftest2.$ac_objext"
8731 # Insert the option either (1) after the last *FLAGS variable, or
8732 # (2) before a word containing "conftest.", or (3) at the end.
8733 # Note that $ac_compile itself does not contain backslashes and begins
8734 # with a dollar sign (not a hyphen), so the echo should work correctly.
8735 lt_compile=`echo "$ac_compile" | $SED \
8736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8738 -e 's:$: $lt_compiler_flag:'`
8739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8740 (eval "$lt_compile" 2>out/conftest.err)
8741 ac_status=$?
8742 cat out/conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8745 then
8746 # The compiler can only warn and ignore the option if not recognized
8747 # So say no if there are warnings
8748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8751 lt_cv_prog_compiler_c_o=yes
8752 fi
8753 fi
8754 chmod u+w . 2>&5
8755 $RM conftest*
8756 # SGI C++ compiler will create directory out/ii_files/ for
8757 # template instantiation
8758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8759 $RM out/* && rmdir out
8760 cd ..
8761 $RM -r conftest
8762 $RM conftest*
8763
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8766 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8767
8768
8769
8770
8771
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8774 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8775 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 lt_cv_prog_compiler_c_o=no
8779 $RM -r conftest 2>/dev/null
8780 mkdir conftest
8781 cd conftest
8782 mkdir out
8783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784
8785 lt_compiler_flag="-o out/conftest2.$ac_objext"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 lt_compile=`echo "$ac_compile" | $SED \
8791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793 -e 's:$: $lt_compiler_flag:'`
8794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8795 (eval "$lt_compile" 2>out/conftest.err)
8796 ac_status=$?
8797 cat out/conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8800 then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_c_o=yes
8807 fi
8808 fi
8809 chmod u+w . 2>&5
8810 $RM conftest*
8811 # SGI C++ compiler will create directory out/ii_files/ for
8812 # template instantiation
8813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8814 $RM out/* && rmdir out
8815 cd ..
8816 $RM -r conftest
8817 $RM conftest*
8818
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8821 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8822
8823
8824
8825
8826 hard_links="nottested"
8827 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8828 # do not overwrite the value of need_locks provided by the user
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8830 $as_echo_n "checking if we can lock with hard links... " >&6; }
8831 hard_links=yes
8832 $RM conftest*
8833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8834 touch conftest.a
8835 ln conftest.a conftest.b 2>&5 || hard_links=no
8836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8838 $as_echo "$hard_links" >&6; }
8839 if test "$hard_links" = no; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8841 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8842 need_locks=warn
8843 fi
8844 else
8845 need_locks=no
8846 fi
8847
8848
8849
8850
8851
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8855
8856 runpath_var=
8857 allow_undefined_flag=
8858 always_export_symbols=no
8859 archive_cmds=
8860 archive_expsym_cmds=
8861 compiler_needs_object=no
8862 enable_shared_with_static_runtimes=no
8863 export_dynamic_flag_spec=
8864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8865 hardcode_automatic=no
8866 hardcode_direct=no
8867 hardcode_direct_absolute=no
8868 hardcode_libdir_flag_spec=
8869 hardcode_libdir_flag_spec_ld=
8870 hardcode_libdir_separator=
8871 hardcode_minus_L=no
8872 hardcode_shlibpath_var=unsupported
8873 inherit_rpath=no
8874 link_all_deplibs=unknown
8875 module_cmds=
8876 module_expsym_cmds=
8877 old_archive_from_new_cmds=
8878 old_archive_from_expsyms_cmds=
8879 thread_safe_flag_spec=
8880 whole_archive_flag_spec=
8881 # include_expsyms should be a list of space-separated symbols to be *always*
8882 # included in the symbol list
8883 include_expsyms=
8884 # exclude_expsyms can be an extended regexp of symbols to exclude
8885 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8886 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8887 # as well as any symbol that contains `d'.
8888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8890 # platforms (ab)use it in PIC code, but their linkers get confused if
8891 # the symbol is explicitly referenced. Since portable code cannot
8892 # rely on this symbol name, it's probably fine to never include it in
8893 # preloaded symbol tables.
8894 # Exclude shared library initialization/finalization symbols.
8895 extract_expsyms_cmds=
8896
8897 case $host_os in
8898 cygwin* | mingw* | pw32* | cegcc*)
8899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8900 # When not using gcc, we currently assume that we are using
8901 # Microsoft Visual C++.
8902 if test "$GCC" != yes; then
8903 with_gnu_ld=no
8904 fi
8905 ;;
8906 interix*)
8907 # we just hope/assume this is gcc and not c89 (= MSVC++)
8908 with_gnu_ld=yes
8909 ;;
8910 openbsd*)
8911 with_gnu_ld=no
8912 ;;
8913 esac
8914
8915 ld_shlibs=yes
8916
8917 # On some targets, GNU ld is compatible enough with the native linker
8918 # that we're better off using the native interface for both.
8919 lt_use_gnu_ld_interface=no
8920 if test "$with_gnu_ld" = yes; then
8921 case $host_os in
8922 aix*)
8923 # The AIX port of GNU ld has always aspired to compatibility
8924 # with the native linker. However, as the warning in the GNU ld
8925 # block says, versions before 2.19.5* couldn't really create working
8926 # shared libraries, regardless of the interface used.
8927 case `$LD -v 2>&1` in
8928 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8929 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8930 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8931 *)
8932 lt_use_gnu_ld_interface=yes
8933 ;;
8934 esac
8935 ;;
8936 *)
8937 lt_use_gnu_ld_interface=yes
8938 ;;
8939 esac
8940 fi
8941
8942 if test "$lt_use_gnu_ld_interface" = yes; then
8943 # If archive_cmds runs LD, not CC, wlarc should be empty
8944 wlarc='${wl}'
8945
8946 # Set some defaults for GNU ld with shared library support. These
8947 # are reset later if shared libraries are not supported. Putting them
8948 # here allows them to be overridden if necessary.
8949 runpath_var=LD_RUN_PATH
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 export_dynamic_flag_spec='${wl}--export-dynamic'
8952 # ancient GNU ld didn't support --whole-archive et. al.
8953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8955 else
8956 whole_archive_flag_spec=
8957 fi
8958 supports_anon_versioning=no
8959 case `$LD -v 2>&1` in
8960 *GNU\ gold*) supports_anon_versioning=yes ;;
8961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8964 *\ 2.11.*) ;; # other 2.11 versions
8965 *) supports_anon_versioning=yes ;;
8966 esac
8967
8968 # See if GNU ld supports shared libraries.
8969 case $host_os in
8970 aix[3-9]*)
8971 # On AIX/PPC, the GNU linker is very broken
8972 if test "$host_cpu" != ia64; then
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8975
8976 *** Warning: the GNU linker, at least up to release 2.19, is reported
8977 *** to be unable to reliably create shared libraries on AIX.
8978 *** Therefore, libtool is disabling shared libraries support. If you
8979 *** really care for shared libraries, you may want to install binutils
8980 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8981 *** You will then need to restart the configuration process.
8982
8983 _LT_EOF
8984 fi
8985 ;;
8986
8987 amigaos*)
8988 case $host_cpu in
8989 powerpc)
8990 # see comment about AmigaOS4 .so support
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992 archive_expsym_cmds=''
8993 ;;
8994 m68k)
8995 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8996 hardcode_libdir_flag_spec='-L$libdir'
8997 hardcode_minus_L=yes
8998 ;;
8999 esac
9000 ;;
9001
9002 beos*)
9003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004 allow_undefined_flag=unsupported
9005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9006 # support --undefined. This deserves some investigation. FIXME
9007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012
9013 cygwin* | mingw* | pw32* | cegcc*)
9014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9015 # as there is no search path for DLLs.
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 export_dynamic_flag_spec='${wl}--export-all-symbols'
9018 allow_undefined_flag=unsupported
9019 always_export_symbols=no
9020 enable_shared_with_static_runtimes=yes
9021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9022
9023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9025 # If the export-symbols file already is a .def file (1st line
9026 # is EXPORTS), use it as is; otherwise, prepend...
9027 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9028 cp $export_symbols $output_objdir/$soname.def;
9029 else
9030 echo EXPORTS > $output_objdir/$soname.def;
9031 cat $export_symbols >> $output_objdir/$soname.def;
9032 fi~
9033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9034 else
9035 ld_shlibs=no
9036 fi
9037 ;;
9038
9039 haiku*)
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 link_all_deplibs=yes
9042 ;;
9043
9044 interix[3-9]*)
9045 hardcode_direct=no
9046 hardcode_shlibpath_var=no
9047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9048 export_dynamic_flag_spec='${wl}-E'
9049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9050 # Instead, shared libraries are loaded at an image base (0x10000000 by
9051 # default) and relocated if they conflict, which is a slow very memory
9052 # consuming and fragmenting process. To avoid this, we pick a random,
9053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9056 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9057 ;;
9058
9059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9060 tmp_diet=no
9061 if test "$host_os" = linux-dietlibc; then
9062 case $cc_basename in
9063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9064 esac
9065 fi
9066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9067 && test "$tmp_diet" = no
9068 then
9069 tmp_addflag=
9070 tmp_sharedflag='-shared'
9071 case $cc_basename,$host_cpu in
9072 pgcc*) # Portland Group C compiler
9073 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9074 tmp_addflag=' $pic_flag'
9075 ;;
9076 pgf77* | pgf90* | pgf95* | pgfortran*)
9077 # Portland Group f77 and f90 compilers
9078 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9079 tmp_addflag=' $pic_flag -Mnomain' ;;
9080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9081 tmp_addflag=' -i_dynamic' ;;
9082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9083 tmp_addflag=' -i_dynamic -nofor_main' ;;
9084 ifc* | ifort*) # Intel Fortran compiler
9085 tmp_addflag=' -nofor_main' ;;
9086 lf95*) # Lahey Fortran 8.1
9087 whole_archive_flag_spec=
9088 tmp_sharedflag='--shared' ;;
9089 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9090 tmp_sharedflag='-qmkshrobj'
9091 tmp_addflag= ;;
9092 nvcc*) # Cuda Compiler Driver 2.2
9093 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9094 compiler_needs_object=yes
9095 ;;
9096 esac
9097 case `$CC -V 2>&1 | sed 5q` in
9098 *Sun\ C*) # Sun C 5.9
9099 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9100 compiler_needs_object=yes
9101 tmp_sharedflag='-G' ;;
9102 *Sun\ F*) # Sun Fortran 8.3
9103 tmp_sharedflag='-G' ;;
9104 esac
9105 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106
9107 if test "x$supports_anon_versioning" = xyes; then
9108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110 echo "local: *; };" >> $output_objdir/$libname.ver~
9111 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9112 fi
9113
9114 case $cc_basename in
9115 xlf* | bgf* | bgxlf* | mpixlf*)
9116 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9117 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9118 hardcode_libdir_flag_spec=
9119 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9120 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9121 if test "x$supports_anon_versioning" = xyes; then
9122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9124 echo "local: *; };" >> $output_objdir/$libname.ver~
9125 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9126 fi
9127 ;;
9128 esac
9129 else
9130 ld_shlibs=no
9131 fi
9132 ;;
9133
9134 netbsd*)
9135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9136 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9137 wlarc=
9138 else
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141 fi
9142 ;;
9143
9144 solaris*)
9145 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9146 ld_shlibs=no
9147 cat <<_LT_EOF 1>&2
9148
9149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9150 *** create shared libraries on Solaris systems. Therefore, libtool
9151 *** is disabling shared libraries support. We urge you to upgrade GNU
9152 *** binutils to release 2.9.1 or newer. Another option is to modify
9153 *** your PATH or compiler configuration so that the native linker is
9154 *** used, and then restart.
9155
9156 _LT_EOF
9157 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9160 else
9161 ld_shlibs=no
9162 fi
9163 ;;
9164
9165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9166 case `$LD -v 2>&1` in
9167 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9168 ld_shlibs=no
9169 cat <<_LT_EOF 1>&2
9170
9171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9172 *** reliably create shared libraries on SCO systems. Therefore, libtool
9173 *** is disabling shared libraries support. We urge you to upgrade GNU
9174 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9175 *** your PATH or compiler configuration so that the native linker is
9176 *** used, and then restart.
9177
9178 _LT_EOF
9179 ;;
9180 *)
9181 # For security reasons, it is highly recommended that you always
9182 # use absolute paths for naming shared libraries, and exclude the
9183 # DT_RUNPATH tag from executables and libraries. But doing so
9184 # requires that you compile everything twice, which is a pain.
9185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9189 else
9190 ld_shlibs=no
9191 fi
9192 ;;
9193 esac
9194 ;;
9195
9196 sunos4*)
9197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198 wlarc=
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9201 ;;
9202
9203 *)
9204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211 esac
9212
9213 if test "$ld_shlibs" = no; then
9214 runpath_var=
9215 hardcode_libdir_flag_spec=
9216 export_dynamic_flag_spec=
9217 whole_archive_flag_spec=
9218 fi
9219 else
9220 # PORTME fill in a description of your system's linker (not GNU ld)
9221 case $host_os in
9222 aix3*)
9223 allow_undefined_flag=unsupported
9224 always_export_symbols=yes
9225 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9226 # Note: this linker hardcodes the directories in LIBPATH if there
9227 # are no directories specified by -L.
9228 hardcode_minus_L=yes
9229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9230 # Neither direct hardcoding nor static linking is supported with a
9231 # broken collect2.
9232 hardcode_direct=unsupported
9233 fi
9234 ;;
9235
9236 aix[4-9]*)
9237 if test "$host_cpu" = ia64; then
9238 # On IA64, the linker does run time linking by default, so we don't
9239 # have to do anything special.
9240 aix_use_runtimelinking=no
9241 exp_sym_flag='-Bexport'
9242 no_entry_flag=""
9243 else
9244 # If we're using GNU nm, then we don't want the "-C" option.
9245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9246 # Also, AIX nm treats weak defined symbols like other global
9247 # defined symbols, whereas GNU nm marks them as "W".
9248 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9249 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9250 else
9251 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9252 fi
9253 aix_use_runtimelinking=no
9254
9255 # Test if we are trying to use run time linking or normal
9256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9257 # need to do runtime linking.
9258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9259 for ld_flag in $LDFLAGS; do
9260 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9261 aix_use_runtimelinking=yes
9262 break
9263 fi
9264 done
9265 ;;
9266 esac
9267
9268 exp_sym_flag='-bexport'
9269 no_entry_flag='-bnoentry'
9270 fi
9271
9272 # When large executables or shared objects are built, AIX ld can
9273 # have problems creating the table of contents. If linking a library
9274 # or program results in "error TOC overflow" add -mminimal-toc to
9275 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9276 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9277
9278 archive_cmds=''
9279 hardcode_direct=yes
9280 hardcode_direct_absolute=yes
9281 hardcode_libdir_separator=':'
9282 link_all_deplibs=yes
9283 file_list_spec='${wl}-f,'
9284
9285 if test "$GCC" = yes; then
9286 case $host_os in aix4.[012]|aix4.[012].*)
9287 # We only want to do this on AIX 4.2 and lower, the check
9288 # below for broken collect2 doesn't work under 4.3+
9289 collect2name=`${CC} -print-prog-name=collect2`
9290 if test -f "$collect2name" &&
9291 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9292 then
9293 # We have reworked collect2
9294 :
9295 else
9296 # We have old collect2
9297 hardcode_direct=unsupported
9298 # It fails to find uninstalled libraries when the uninstalled
9299 # path is not listed in the libpath. Setting hardcode_minus_L
9300 # to unsupported forces relinking
9301 hardcode_minus_L=yes
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_libdir_separator=
9304 fi
9305 ;;
9306 esac
9307 shared_flag='-shared'
9308 if test "$aix_use_runtimelinking" = yes; then
9309 shared_flag="$shared_flag "'${wl}-G'
9310 fi
9311 else
9312 # not using gcc
9313 if test "$host_cpu" = ia64; then
9314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315 # chokes on -Wl,-G. The following line is correct:
9316 shared_flag='-G'
9317 else
9318 if test "$aix_use_runtimelinking" = yes; then
9319 shared_flag='${wl}-G'
9320 else
9321 shared_flag='${wl}-bM:SRE'
9322 fi
9323 fi
9324 fi
9325
9326 export_dynamic_flag_spec='${wl}-bexpall'
9327 # It seems that -bexpall does not export symbols beginning with
9328 # underscore (_), so it is better to generate a list of symbols to export.
9329 always_export_symbols=yes
9330 if test "$aix_use_runtimelinking" = yes; then
9331 # Warning - without using the other runtime loading flags (-brtl),
9332 # -berok will link without error, but may produce a broken library.
9333 allow_undefined_flag='-berok'
9334 # Determine the default libpath from the value encoded in an
9335 # empty executable.
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338
9339 int
9340 main ()
9341 {
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348
9349 lt_aix_libpath_sed='
9350 /Import File Strings/,/^$/ {
9351 /^0/ {
9352 s/^0 *\(.*\)$/\1/
9353 p
9354 }
9355 }'
9356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357 # Check for a 64-bit object if we didn't find anything.
9358 if test -z "$aix_libpath"; then
9359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360 fi
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9365
9366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9367 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9368 else
9369 if test "$host_cpu" = ia64; then
9370 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9371 allow_undefined_flag="-z nodefs"
9372 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9373 else
9374 # Determine the default libpath from the value encoded in an
9375 # empty executable.
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378
9379 int
9380 main ()
9381 {
9382
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388
9389 lt_aix_libpath_sed='
9390 /Import File Strings/,/^$/ {
9391 /^0/ {
9392 s/^0 *\(.*\)$/\1/
9393 p
9394 }
9395 }'
9396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9397 # Check for a 64-bit object if we didn't find anything.
9398 if test -z "$aix_libpath"; then
9399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9400 fi
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9405
9406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407 # Warning - without using the other run time loading flags,
9408 # -berok will link without error, but may produce a broken library.
9409 no_undefined_flag=' ${wl}-bernotok'
9410 allow_undefined_flag=' ${wl}-berok'
9411 if test "$with_gnu_ld" = yes; then
9412 # We only use this code for GNU lds that support --whole-archive.
9413 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9414 else
9415 # Exported symbols can be pulled into shared objects from archives
9416 whole_archive_flag_spec='$convenience'
9417 fi
9418 archive_cmds_need_lc=yes
9419 # This is similar to how AIX traditionally builds its shared libraries.
9420 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9421 fi
9422 fi
9423 ;;
9424
9425 amigaos*)
9426 case $host_cpu in
9427 powerpc)
9428 # see comment about AmigaOS4 .so support
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds=''
9431 ;;
9432 m68k)
9433 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_minus_L=yes
9436 ;;
9437 esac
9438 ;;
9439
9440 bsdi[45]*)
9441 export_dynamic_flag_spec=-rdynamic
9442 ;;
9443
9444 cygwin* | mingw* | pw32* | cegcc*)
9445 # When not using gcc, we currently assume that we are using
9446 # Microsoft Visual C++.
9447 # hardcode_libdir_flag_spec is actually meaningless, as there is
9448 # no search path for DLLs.
9449 hardcode_libdir_flag_spec=' '
9450 allow_undefined_flag=unsupported
9451 # Tell ltmain to make .lib files, not .a files.
9452 libext=lib
9453 # Tell ltmain to make .dll files, not .so files.
9454 shrext_cmds=".dll"
9455 # FIXME: Setting linknames here is a bad hack.
9456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9457 # The linker will automatically build a .lib file if we build a DLL.
9458 old_archive_from_new_cmds='true'
9459 # FIXME: Should let the user specify the lib program.
9460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9461 fix_srcfile_path='`cygpath -w "$srcfile"`'
9462 enable_shared_with_static_runtimes=yes
9463 ;;
9464
9465 darwin* | rhapsody*)
9466
9467
9468 archive_cmds_need_lc=no
9469 hardcode_direct=no
9470 hardcode_automatic=yes
9471 hardcode_shlibpath_var=unsupported
9472 if test "$lt_cv_ld_force_load" = "yes"; then
9473 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9474 else
9475 whole_archive_flag_spec=''
9476 fi
9477 link_all_deplibs=yes
9478 allow_undefined_flag="$_lt_dar_allow_undefined"
9479 case $cc_basename in
9480 ifort*) _lt_dar_can_shared=yes ;;
9481 *) _lt_dar_can_shared=$GCC ;;
9482 esac
9483 if test "$_lt_dar_can_shared" = "yes"; then
9484 output_verbose_link_cmd=func_echo_all
9485 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9486 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9487 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9488 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9489
9490 else
9491 ld_shlibs=no
9492 fi
9493
9494 ;;
9495
9496 dgux*)
9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9503 # support. Future versions do this automatically, but an explicit c++rt0.o
9504 # does not break anything, and helps significantly (at the cost of a little
9505 # extra space).
9506 freebsd2.2*)
9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9508 hardcode_libdir_flag_spec='-R$libdir'
9509 hardcode_direct=yes
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9514 freebsd2.*)
9515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_direct=yes
9517 hardcode_minus_L=yes
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9522 freebsd* | dragonfly*)
9523 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9524 hardcode_libdir_flag_spec='-R$libdir'
9525 hardcode_direct=yes
9526 hardcode_shlibpath_var=no
9527 ;;
9528
9529 hpux9*)
9530 if test "$GCC" = yes; then
9531 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9532 else
9533 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9534 fi
9535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9536 hardcode_libdir_separator=:
9537 hardcode_direct=yes
9538
9539 # hardcode_minus_L: Not really in the search PATH,
9540 # but as the default location of the library.
9541 hardcode_minus_L=yes
9542 export_dynamic_flag_spec='${wl}-E'
9543 ;;
9544
9545 hpux10*)
9546 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9547 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9548 else
9549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9550 fi
9551 if test "$with_gnu_ld" = no; then
9552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9553 hardcode_libdir_flag_spec_ld='+b $libdir'
9554 hardcode_libdir_separator=:
9555 hardcode_direct=yes
9556 hardcode_direct_absolute=yes
9557 export_dynamic_flag_spec='${wl}-E'
9558 # hardcode_minus_L: Not really in the search PATH,
9559 # but as the default location of the library.
9560 hardcode_minus_L=yes
9561 fi
9562 ;;
9563
9564 hpux11*)
9565 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9566 case $host_cpu in
9567 hppa*64*)
9568 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 ;;
9570 ia64*)
9571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9572 ;;
9573 *)
9574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9575 ;;
9576 esac
9577 else
9578 case $host_cpu in
9579 hppa*64*)
9580 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 ;;
9582 ia64*)
9583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9584 ;;
9585 *)
9586
9587 # Older versions of the 11.00 compiler do not understand -b yet
9588 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9590 $as_echo_n "checking if $CC understands -b... " >&6; }
9591 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 lt_cv_prog_compiler__b=no
9595 save_LDFLAGS="$LDFLAGS"
9596 LDFLAGS="$LDFLAGS -b"
9597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9599 # The linker can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
9601 if test -s conftest.err; then
9602 # Append any errors to the config.log.
9603 cat conftest.err 1>&5
9604 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606 if diff conftest.exp conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler__b=yes
9608 fi
9609 else
9610 lt_cv_prog_compiler__b=yes
9611 fi
9612 fi
9613 $RM -r conftest*
9614 LDFLAGS="$save_LDFLAGS"
9615
9616 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9618 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9619
9620 if test x"$lt_cv_prog_compiler__b" = xyes; then
9621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9622 else
9623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9624 fi
9625
9626 ;;
9627 esac
9628 fi
9629 if test "$with_gnu_ld" = no; then
9630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9631 hardcode_libdir_separator=:
9632
9633 case $host_cpu in
9634 hppa*64*|ia64*)
9635 hardcode_direct=no
9636 hardcode_shlibpath_var=no
9637 ;;
9638 *)
9639 hardcode_direct=yes
9640 hardcode_direct_absolute=yes
9641 export_dynamic_flag_spec='${wl}-E'
9642
9643 # hardcode_minus_L: Not really in the search PATH,
9644 # but as the default location of the library.
9645 hardcode_minus_L=yes
9646 ;;
9647 esac
9648 fi
9649 ;;
9650
9651 irix5* | irix6* | nonstopux*)
9652 if test "$GCC" = yes; then
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9654 # Try to use the -exported_symbol ld option, if it does not
9655 # work, assume that -exports_file does not work either and
9656 # implicitly export all symbols.
9657 save_LDFLAGS="$LDFLAGS"
9658 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 int foo(void) {}
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"; then :
9664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9665
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 LDFLAGS="$save_LDFLAGS"
9670 else
9671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9673 fi
9674 archive_cmds_need_lc='no'
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677 inherit_rpath=yes
9678 link_all_deplibs=yes
9679 ;;
9680
9681 netbsd*)
9682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9684 else
9685 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9686 fi
9687 hardcode_libdir_flag_spec='-R$libdir'
9688 hardcode_direct=yes
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 newsos6)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct=yes
9695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9696 hardcode_libdir_separator=:
9697 hardcode_shlibpath_var=no
9698 ;;
9699
9700 *nto* | *qnx*)
9701 ;;
9702
9703 openbsd*)
9704 if test -f /usr/libexec/ld.so; then
9705 hardcode_direct=yes
9706 hardcode_shlibpath_var=no
9707 hardcode_direct_absolute=yes
9708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712 export_dynamic_flag_spec='${wl}-E'
9713 else
9714 case $host_os in
9715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 ;;
9719 *)
9720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9722 ;;
9723 esac
9724 fi
9725 else
9726 ld_shlibs=no
9727 fi
9728 ;;
9729
9730 os2*)
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_minus_L=yes
9733 allow_undefined_flag=unsupported
9734 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9735 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9736 ;;
9737
9738 osf3*)
9739 if test "$GCC" = yes; then
9740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9741 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9742 else
9743 allow_undefined_flag=' -expect_unresolved \*'
9744 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9745 fi
9746 archive_cmds_need_lc='no'
9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 hardcode_libdir_separator=:
9749 ;;
9750
9751 osf4* | osf5*) # as osf3* with the addition of -msym flag
9752 if test "$GCC" = yes; then
9753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9754 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9756 else
9757 allow_undefined_flag=' -expect_unresolved \*'
9758 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9760 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9761
9762 # Both c and cxx compiler support -rpath directly
9763 hardcode_libdir_flag_spec='-rpath $libdir'
9764 fi
9765 archive_cmds_need_lc='no'
9766 hardcode_libdir_separator=:
9767 ;;
9768
9769 solaris*)
9770 no_undefined_flag=' -z defs'
9771 if test "$GCC" = yes; then
9772 wlarc='${wl}'
9773 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9775 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9776 else
9777 case `$CC -V 2>&1` in
9778 *"Compilers 5.0"*)
9779 wlarc=''
9780 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9783 ;;
9784 *)
9785 wlarc='${wl}'
9786 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9788 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9789 ;;
9790 esac
9791 fi
9792 hardcode_libdir_flag_spec='-R$libdir'
9793 hardcode_shlibpath_var=no
9794 case $host_os in
9795 solaris2.[0-5] | solaris2.[0-5].*) ;;
9796 *)
9797 # The compiler driver will combine and reorder linker options,
9798 # but understands `-z linker_flag'. GCC discards it without `$wl',
9799 # but is careful enough not to reorder.
9800 # Supported since Solaris 2.6 (maybe 2.5.1?)
9801 if test "$GCC" = yes; then
9802 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9803 else
9804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9805 fi
9806 ;;
9807 esac
9808 link_all_deplibs=yes
9809 ;;
9810
9811 sunos4*)
9812 if test "x$host_vendor" = xsequent; then
9813 # Use $CC to link under sequent, because it throws in some extra .o
9814 # files that make .init and .fini sections work.
9815 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9816 else
9817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9818 fi
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_direct=yes
9821 hardcode_minus_L=yes
9822 hardcode_shlibpath_var=no
9823 ;;
9824
9825 sysv4)
9826 case $host_vendor in
9827 sni)
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_direct=yes # is this really true???
9830 ;;
9831 siemens)
9832 ## LD is ld it makes a PLAMLIB
9833 ## CC just makes a GrossModule.
9834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9835 reload_cmds='$CC -r -o $output$reload_objs'
9836 hardcode_direct=no
9837 ;;
9838 motorola)
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9841 ;;
9842 esac
9843 runpath_var='LD_RUN_PATH'
9844 hardcode_shlibpath_var=no
9845 ;;
9846
9847 sysv4.3*)
9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_shlibpath_var=no
9850 export_dynamic_flag_spec='-Bexport'
9851 ;;
9852
9853 sysv4*MP*)
9854 if test -d /usr/nec; then
9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_shlibpath_var=no
9857 runpath_var=LD_RUN_PATH
9858 hardcode_runpath_var=yes
9859 ld_shlibs=yes
9860 fi
9861 ;;
9862
9863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9864 no_undefined_flag='${wl}-z,text'
9865 archive_cmds_need_lc=no
9866 hardcode_shlibpath_var=no
9867 runpath_var='LD_RUN_PATH'
9868
9869 if test "$GCC" = yes; then
9870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9872 else
9873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 fi
9876 ;;
9877
9878 sysv5* | sco3.2v5* | sco5v6*)
9879 # Note: We can NOT use -z defs as we might desire, because we do not
9880 # link with -lc, and that would cause any symbols used from libc to
9881 # always be unresolved, which means just about no library would
9882 # ever link correctly. If we're not using GNU ld we use -z text
9883 # though, which does catch some bad symbols but isn't as heavy-handed
9884 # as -z defs.
9885 no_undefined_flag='${wl}-z,text'
9886 allow_undefined_flag='${wl}-z,nodefs'
9887 archive_cmds_need_lc=no
9888 hardcode_shlibpath_var=no
9889 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9890 hardcode_libdir_separator=':'
9891 link_all_deplibs=yes
9892 export_dynamic_flag_spec='${wl}-Bexport'
9893 runpath_var='LD_RUN_PATH'
9894
9895 if test "$GCC" = yes; then
9896 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9898 else
9899 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 fi
9902 ;;
9903
9904 uts4*)
9905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 *)
9911 ld_shlibs=no
9912 ;;
9913 esac
9914
9915 if test x$host_vendor = xsni; then
9916 case $host in
9917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9918 export_dynamic_flag_spec='${wl}-Blargedynsym'
9919 ;;
9920 esac
9921 fi
9922 fi
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9925 $as_echo "$ld_shlibs" >&6; }
9926 test "$ld_shlibs" = no && can_build_shared=no
9927
9928 with_gnu_ld=$with_gnu_ld
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944 #
9945 # Do we need to explicitly link libc?
9946 #
9947 case "x$archive_cmds_need_lc" in
9948 x|xyes)
9949 # Assume -lc should be added
9950 archive_cmds_need_lc=yes
9951
9952 if test "$enable_shared" = yes && test "$GCC" = yes; then
9953 case $archive_cmds in
9954 *'~'*)
9955 # FIXME: we may have to deal with multi-command sequences.
9956 ;;
9957 '$CC '*)
9958 # Test whether the compiler implicitly links with -lc since on some
9959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9960 # to ld, don't add -lc before -lgcc.
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9962 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9963 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 $RM conftest*
9967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9968
9969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9970 (eval $ac_compile) 2>&5
9971 ac_status=$?
9972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9973 test $ac_status = 0; } 2>conftest.err; then
9974 soname=conftest
9975 lib=conftest
9976 libobjs=conftest.$ac_objext
9977 deplibs=
9978 wl=$lt_prog_compiler_wl
9979 pic_flag=$lt_prog_compiler_pic
9980 compiler_flags=-v
9981 linker_flags=-v
9982 verstring=
9983 output_objdir=.
9984 libname=conftest
9985 lt_save_allow_undefined_flag=$allow_undefined_flag
9986 allow_undefined_flag=
9987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9988 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9989 ac_status=$?
9990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9991 test $ac_status = 0; }
9992 then
9993 lt_cv_archive_cmds_need_lc=no
9994 else
9995 lt_cv_archive_cmds_need_lc=yes
9996 fi
9997 allow_undefined_flag=$lt_save_allow_undefined_flag
9998 else
9999 cat conftest.err 1>&5
10000 fi
10001 $RM conftest*
10002
10003 fi
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10005 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10006 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10007 ;;
10008 esac
10009 fi
10010 ;;
10011 esac
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10170 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10171
10172 if test "$GCC" = yes; then
10173 case $host_os in
10174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10175 *) lt_awk_arg="/^libraries:/" ;;
10176 esac
10177 case $host_os in
10178 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10179 *) lt_sed_strip_eq="s,=/,/,g" ;;
10180 esac
10181 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10182 case $lt_search_path_spec in
10183 *\;*)
10184 # if the path contains ";" then we assume it to be the separator
10185 # otherwise default to the standard path separator (i.e. ":") - it is
10186 # assumed that no part of a normal pathname contains ";" but that should
10187 # okay in the real world where ";" in dirpaths is itself problematic.
10188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10189 ;;
10190 *)
10191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10192 ;;
10193 esac
10194 # Ok, now we have the path, separated by spaces, we can step through it
10195 # and add multilib dir if necessary.
10196 lt_tmp_lt_search_path_spec=
10197 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10198 for lt_sys_path in $lt_search_path_spec; do
10199 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10201 else
10202 test -d "$lt_sys_path" && \
10203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10204 fi
10205 done
10206 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10207 BEGIN {RS=" "; FS="/|\n";} {
10208 lt_foo="";
10209 lt_count=0;
10210 for (lt_i = NF; lt_i > 0; lt_i--) {
10211 if ($lt_i != "" && $lt_i != ".") {
10212 if ($lt_i == "..") {
10213 lt_count++;
10214 } else {
10215 if (lt_count == 0) {
10216 lt_foo="/" $lt_i lt_foo;
10217 } else {
10218 lt_count--;
10219 }
10220 }
10221 }
10222 }
10223 if (lt_foo != "") { lt_freq[lt_foo]++; }
10224 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10225 }'`
10226 # AWK program above erroneously prepends '/' to C:/dos/paths
10227 # for these hosts.
10228 case $host_os in
10229 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10230 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10231 esac
10232 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10233 else
10234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10235 fi
10236 library_names_spec=
10237 libname_spec='lib$name'
10238 soname_spec=
10239 shrext_cmds=".so"
10240 postinstall_cmds=
10241 postuninstall_cmds=
10242 finish_cmds=
10243 finish_eval=
10244 shlibpath_var=
10245 shlibpath_overrides_runpath=unknown
10246 version_type=none
10247 dynamic_linker="$host_os ld.so"
10248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10249 need_lib_prefix=unknown
10250 hardcode_into_libs=no
10251
10252 # when you set need_version to no, make sure it does not cause -set_version
10253 # flags to be left without arguments
10254 need_version=unknown
10255
10256 case $host_os in
10257 aix3*)
10258 version_type=linux
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10260 shlibpath_var=LIBPATH
10261
10262 # AIX 3 has no versioning support, so we append a major version to the name.
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 ;;
10265
10266 aix[4-9]*)
10267 version_type=linux
10268 need_lib_prefix=no
10269 need_version=no
10270 hardcode_into_libs=yes
10271 if test "$host_cpu" = ia64; then
10272 # AIX 5 supports IA64
10273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 else
10276 # With GCC up to 2.95.x, collect2 would create an import file
10277 # for dependence libraries. The import file would start with
10278 # the line `#! .'. This would cause the generated library to
10279 # depend on `.', always an invalid library. This was fixed in
10280 # development snapshots of GCC prior to 3.0.
10281 case $host_os in
10282 aix4 | aix4.[01] | aix4.[01].*)
10283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10284 echo ' yes '
10285 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10286 :
10287 else
10288 can_build_shared=no
10289 fi
10290 ;;
10291 esac
10292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10293 # soname into executable. Probably we can add versioning support to
10294 # collect2, so additional links can be useful in future.
10295 if test "$aix_use_runtimelinking" = yes; then
10296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10297 # instead of lib<name>.a to let people know that these are not
10298 # typical AIX shared libraries.
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 else
10301 # We preserve .a as extension for shared libraries through AIX4.2
10302 # and later when we are not doing run time linking.
10303 library_names_spec='${libname}${release}.a $libname.a'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 fi
10306 shlibpath_var=LIBPATH
10307 fi
10308 ;;
10309
10310 amigaos*)
10311 case $host_cpu in
10312 powerpc)
10313 # Since July 2007 AmigaOS4 officially supports .so libraries.
10314 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 ;;
10317 m68k)
10318 library_names_spec='$libname.ixlibrary $libname.a'
10319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10320 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10321 ;;
10322 esac
10323 ;;
10324
10325 beos*)
10326 library_names_spec='${libname}${shared_ext}'
10327 dynamic_linker="$host_os ld.so"
10328 shlibpath_var=LIBRARY_PATH
10329 ;;
10330
10331 bsdi[45]*)
10332 version_type=linux
10333 need_version=no
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10340 # the default ld.so.conf also contains /usr/contrib/lib and
10341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10342 # libtool to hard-code these into programs
10343 ;;
10344
10345 cygwin* | mingw* | pw32* | cegcc*)
10346 version_type=windows
10347 shrext_cmds=".dll"
10348 need_version=no
10349 need_lib_prefix=no
10350
10351 case $GCC,$host_os in
10352 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10353 library_names_spec='$libname.dll.a'
10354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10355 postinstall_cmds='base_file=`basename \${file}`~
10356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10357 dldir=$destdir/`dirname \$dlpath`~
10358 test -d \$dldir || mkdir -p \$dldir~
10359 $install_prog $dir/$dlname \$dldir/$dlname~
10360 chmod a+x \$dldir/$dlname~
10361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10362 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10363 fi'
10364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10365 dlpath=$dir/\$dldll~
10366 $RM \$dlpath'
10367 shlibpath_overrides_runpath=yes
10368
10369 case $host_os in
10370 cygwin*)
10371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10373
10374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10375 ;;
10376 mingw* | cegcc*)
10377 # MinGW DLLs use traditional 'lib' prefix
10378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10379 ;;
10380 pw32*)
10381 # pw32 DLLs use 'pw' prefix rather than 'lib'
10382 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10383 ;;
10384 esac
10385 ;;
10386
10387 *)
10388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10389 ;;
10390 esac
10391 dynamic_linker='Win32 ld.exe'
10392 # FIXME: first we should search . and the directory the executable is in
10393 shlibpath_var=PATH
10394 ;;
10395
10396 darwin* | rhapsody*)
10397 dynamic_linker="$host_os dyld"
10398 version_type=darwin
10399 need_lib_prefix=no
10400 need_version=no
10401 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10402 soname_spec='${libname}${release}${major}$shared_ext'
10403 shlibpath_overrides_runpath=yes
10404 shlibpath_var=DYLD_LIBRARY_PATH
10405 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10406
10407 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10409 ;;
10410
10411 dgux*)
10412 version_type=linux
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 ;;
10419
10420 freebsd* | dragonfly*)
10421 # DragonFly does not have aout. When/if they implement a new
10422 # versioning mechanism, adjust this.
10423 if test -x /usr/bin/objformat; then
10424 objformat=`/usr/bin/objformat`
10425 else
10426 case $host_os in
10427 freebsd[23].*) objformat=aout ;;
10428 *) objformat=elf ;;
10429 esac
10430 fi
10431 version_type=freebsd-$objformat
10432 case $version_type in
10433 freebsd-elf*)
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10435 need_version=no
10436 need_lib_prefix=no
10437 ;;
10438 freebsd-*)
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10440 need_version=yes
10441 ;;
10442 esac
10443 shlibpath_var=LD_LIBRARY_PATH
10444 case $host_os in
10445 freebsd2.*)
10446 shlibpath_overrides_runpath=yes
10447 ;;
10448 freebsd3.[01]* | freebsdelf3.[01]*)
10449 shlibpath_overrides_runpath=yes
10450 hardcode_into_libs=yes
10451 ;;
10452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10454 shlibpath_overrides_runpath=no
10455 hardcode_into_libs=yes
10456 ;;
10457 *) # from 4.6 on, and DragonFly
10458 shlibpath_overrides_runpath=yes
10459 hardcode_into_libs=yes
10460 ;;
10461 esac
10462 ;;
10463
10464 gnu*)
10465 version_type=linux
10466 need_lib_prefix=no
10467 need_version=no
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 hardcode_into_libs=yes
10472 ;;
10473
10474 haiku*)
10475 version_type=linux
10476 need_lib_prefix=no
10477 need_version=no
10478 dynamic_linker="$host_os runtime_loader"
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10484 hardcode_into_libs=yes
10485 ;;
10486
10487 hpux9* | hpux10* | hpux11*)
10488 # Give a soname corresponding to the major version so that dld.sl refuses to
10489 # link against other versions.
10490 version_type=sunos
10491 need_lib_prefix=no
10492 need_version=no
10493 case $host_cpu in
10494 ia64*)
10495 shrext_cmds='.so'
10496 hardcode_into_libs=yes
10497 dynamic_linker="$host_os dld.so"
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 if test "X$HPUX_IA64_MODE" = X32; then
10503 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10504 else
10505 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10506 fi
10507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10508 ;;
10509 hppa*64*)
10510 shrext_cmds='.sl'
10511 hardcode_into_libs=yes
10512 dynamic_linker="$host_os dld.sl"
10513 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10519 ;;
10520 *)
10521 shrext_cmds='.sl'
10522 dynamic_linker="$host_os dld.sl"
10523 shlibpath_var=SHLIB_PATH
10524 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 ;;
10528 esac
10529 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10530 postinstall_cmds='chmod 555 $lib'
10531 # or fails outright, so override atomically:
10532 install_override_mode=555
10533 ;;
10534
10535 interix[3-9]*)
10536 version_type=linux
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=no
10544 hardcode_into_libs=yes
10545 ;;
10546
10547 irix5* | irix6* | nonstopux*)
10548 case $host_os in
10549 nonstopux*) version_type=nonstopux ;;
10550 *)
10551 if test "$lt_cv_prog_gnu_ld" = yes; then
10552 version_type=linux
10553 else
10554 version_type=irix
10555 fi ;;
10556 esac
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10561 case $host_os in
10562 irix5* | nonstopux*)
10563 libsuff= shlibsuff=
10564 ;;
10565 *)
10566 case $LD in # libtool.m4 will add one of these switches to LD
10567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10568 libsuff= shlibsuff= libmagic=32-bit;;
10569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10570 libsuff=32 shlibsuff=N32 libmagic=N32;;
10571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10573 *) libsuff= shlibsuff= libmagic=never-match;;
10574 esac
10575 ;;
10576 esac
10577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10578 shlibpath_overrides_runpath=no
10579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10581 hardcode_into_libs=yes
10582 ;;
10583
10584 # No shared lib support for Linux oldld, aout, or coff.
10585 linux*oldld* | linux*aout* | linux*coff*)
10586 dynamic_linker=no
10587 ;;
10588
10589 # This must be Linux ELF.
10590 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599
10600 # Some binutils ld are patched to set DT_RUNPATH
10601 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 lt_cv_shlibpath_overrides_runpath=no
10605 save_LDFLAGS=$LDFLAGS
10606 save_libdir=$libdir
10607 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10608 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611
10612 int
10613 main ()
10614 {
10615
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"; then :
10621 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10622 lt_cv_shlibpath_overrides_runpath=yes
10623 fi
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LDFLAGS=$save_LDFLAGS
10628 libdir=$save_libdir
10629
10630 fi
10631
10632 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10633
10634 # This implies no fast_install, which is unacceptable.
10635 # Some rework will be needed to allow for fast_install
10636 # before this can be enabled.
10637 hardcode_into_libs=yes
10638
10639 # Append ld.so.conf contents to the search path
10640 if test -f /etc/ld.so.conf; then
10641 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10643 fi
10644
10645 # We used to test for /lib/ld.so.1 and disable shared libraries on
10646 # powerpc, because MkLinux only supported shared libraries with the
10647 # GNU dynamic linker. Since this was broken with cross compilers,
10648 # most powerpc-linux boxes support dynamic linking these days and
10649 # people can always --disable-shared, the test was removed, and we
10650 # assume the GNU/Linux dynamic linker is in use.
10651 dynamic_linker='GNU/Linux ld.so'
10652 ;;
10653
10654 netbsd*)
10655 version_type=sunos
10656 need_lib_prefix=no
10657 need_version=no
10658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10661 dynamic_linker='NetBSD (a.out) ld.so'
10662 else
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 dynamic_linker='NetBSD ld.elf_so'
10666 fi
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10670 ;;
10671
10672 newsos6)
10673 version_type=linux
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=yes
10677 ;;
10678
10679 *nto* | *qnx*)
10680 version_type=qnx
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=no
10687 hardcode_into_libs=yes
10688 dynamic_linker='ldqnx.so'
10689 ;;
10690
10691 openbsd*)
10692 version_type=sunos
10693 sys_lib_dlsearch_path_spec="/usr/lib"
10694 need_lib_prefix=no
10695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10696 case $host_os in
10697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10698 *) need_version=no ;;
10699 esac
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10704 case $host_os in
10705 openbsd2.[89] | openbsd2.[89].*)
10706 shlibpath_overrides_runpath=no
10707 ;;
10708 *)
10709 shlibpath_overrides_runpath=yes
10710 ;;
10711 esac
10712 else
10713 shlibpath_overrides_runpath=yes
10714 fi
10715 ;;
10716
10717 os2*)
10718 libname_spec='$name'
10719 shrext_cmds=".dll"
10720 need_lib_prefix=no
10721 library_names_spec='$libname${shared_ext} $libname.a'
10722 dynamic_linker='OS/2 ld.exe'
10723 shlibpath_var=LIBPATH
10724 ;;
10725
10726 osf3* | osf4* | osf5*)
10727 version_type=osf
10728 need_lib_prefix=no
10729 need_version=no
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10735 ;;
10736
10737 rdos*)
10738 dynamic_linker=no
10739 ;;
10740
10741 solaris*)
10742 version_type=linux
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 # ldd complains unless libraries are executable
10751 postinstall_cmds='chmod +x $lib'
10752 ;;
10753
10754 sunos4*)
10755 version_type=sunos
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=yes
10760 if test "$with_gnu_ld" = yes; then
10761 need_lib_prefix=no
10762 fi
10763 need_version=yes
10764 ;;
10765
10766 sysv4 | sysv4.3*)
10767 version_type=linux
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 case $host_vendor in
10772 sni)
10773 shlibpath_overrides_runpath=no
10774 need_lib_prefix=no
10775 runpath_var=LD_RUN_PATH
10776 ;;
10777 siemens)
10778 need_lib_prefix=no
10779 ;;
10780 motorola)
10781 need_lib_prefix=no
10782 need_version=no
10783 shlibpath_overrides_runpath=no
10784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10785 ;;
10786 esac
10787 ;;
10788
10789 sysv4*MP*)
10790 if test -d /usr/nec ;then
10791 version_type=linux
10792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10793 soname_spec='$libname${shared_ext}.$major'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 fi
10796 ;;
10797
10798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10799 version_type=freebsd-elf
10800 need_lib_prefix=no
10801 need_version=no
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=yes
10806 hardcode_into_libs=yes
10807 if test "$with_gnu_ld" = yes; then
10808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10809 else
10810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10811 case $host_os in
10812 sco3.2v5*)
10813 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10814 ;;
10815 esac
10816 fi
10817 sys_lib_dlsearch_path_spec='/usr/lib'
10818 ;;
10819
10820 tpf*)
10821 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10822 version_type=linux
10823 need_lib_prefix=no
10824 need_version=no
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=no
10828 hardcode_into_libs=yes
10829 ;;
10830
10831 uts4*)
10832 version_type=linux
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 ;;
10837
10838 *)
10839 dynamic_linker=no
10840 ;;
10841 esac
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10843 $as_echo "$dynamic_linker" >&6; }
10844 test "$dynamic_linker" = no && can_build_shared=no
10845
10846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10847 if test "$GCC" = yes; then
10848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10849 fi
10850
10851 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10852 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10853 fi
10854 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10855 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10856 fi
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10950 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10951 hardcode_action=
10952 if test -n "$hardcode_libdir_flag_spec" ||
10953 test -n "$runpath_var" ||
10954 test "X$hardcode_automatic" = "Xyes" ; then
10955
10956 # We can hardcode non-existent directories.
10957 if test "$hardcode_direct" != no &&
10958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10959 # have to relink, otherwise we might link with an installed library
10960 # when we should be linking with a yet-to-be-installed one
10961 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10962 test "$hardcode_minus_L" != no; then
10963 # Linking always hardcodes the temporary library directory.
10964 hardcode_action=relink
10965 else
10966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10967 hardcode_action=immediate
10968 fi
10969 else
10970 # We cannot hardcode anything, or else we can only hardcode existing
10971 # directories.
10972 hardcode_action=unsupported
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10975 $as_echo "$hardcode_action" >&6; }
10976
10977 if test "$hardcode_action" = relink ||
10978 test "$inherit_rpath" = yes; then
10979 # Fast installation is not supported
10980 enable_fast_install=no
10981 elif test "$shlibpath_overrides_runpath" = yes ||
10982 test "$enable_shared" = no; then
10983 # Fast installation is not necessary
10984 enable_fast_install=needless
10985 fi
10986
10987
10988
10989
10990
10991
10992 if test "x$enable_dlopen" != xyes; then
10993 enable_dlopen=unknown
10994 enable_dlopen_self=unknown
10995 enable_dlopen_self_static=unknown
10996 else
10997 lt_cv_dlopen=no
10998 lt_cv_dlopen_libs=
10999
11000 case $host_os in
11001 beos*)
11002 lt_cv_dlopen="load_add_on"
11003 lt_cv_dlopen_libs=
11004 lt_cv_dlopen_self=yes
11005 ;;
11006
11007 mingw* | pw32* | cegcc*)
11008 lt_cv_dlopen="LoadLibrary"
11009 lt_cv_dlopen_libs=
11010 ;;
11011
11012 cygwin*)
11013 lt_cv_dlopen="dlopen"
11014 lt_cv_dlopen_libs=
11015 ;;
11016
11017 darwin*)
11018 # if libdl is installed we need to link against it
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11020 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-ldl $LIBS"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char dlopen ();
11036 int
11037 main ()
11038 {
11039 return dlopen ();
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 ac_cv_lib_dl_dlopen=yes
11046 else
11047 ac_cv_lib_dl_dlopen=no
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_lib_save_LIBS
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11054 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11055 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11057 else
11058
11059 lt_cv_dlopen="dyld"
11060 lt_cv_dlopen_libs=
11061 lt_cv_dlopen_self=yes
11062
11063 fi
11064
11065 ;;
11066
11067 *)
11068 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11069 if test "x$ac_cv_func_shl_load" = x""yes; then :
11070 lt_cv_dlopen="shl_load"
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11073 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldld $LIBS"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 char shl_load ();
11089 int
11090 main ()
11091 {
11092 return shl_load ();
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"; then :
11098 ac_cv_lib_dld_shl_load=yes
11099 else
11100 ac_cv_lib_dld_shl_load=no
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11107 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11108 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11110 else
11111 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11112 if test "x$ac_cv_func_dlopen" = x""yes; then :
11113 lt_cv_dlopen="dlopen"
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11116 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 ac_check_lib_save_LIBS=$LIBS
11121 LIBS="-ldl $LIBS"
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char dlopen ();
11132 int
11133 main ()
11134 {
11135 return dlopen ();
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"; then :
11141 ac_cv_lib_dl_dlopen=yes
11142 else
11143 ac_cv_lib_dl_dlopen=no
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11150 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11151 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11155 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11156 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 ac_check_lib_save_LIBS=$LIBS
11160 LIBS="-lsvld $LIBS"
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163
11164 /* Override any GCC internal prototype to avoid an error.
11165 Use char because int might match the return type of a GCC
11166 builtin and then its argument prototype would still apply. */
11167 #ifdef __cplusplus
11168 extern "C"
11169 #endif
11170 char dlopen ();
11171 int
11172 main ()
11173 {
11174 return dlopen ();
11175 ;
11176 return 0;
11177 }
11178 _ACEOF
11179 if ac_fn_c_try_link "$LINENO"; then :
11180 ac_cv_lib_svld_dlopen=yes
11181 else
11182 ac_cv_lib_svld_dlopen=no
11183 fi
11184 rm -f core conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext conftest.$ac_ext
11186 LIBS=$ac_check_lib_save_LIBS
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11189 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11190 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11194 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldld $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dld_link ();
11210 int
11211 main ()
11212 {
11213 return dld_link ();
11214 ;
11215 return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219 ac_cv_lib_dld_dld_link=yes
11220 else
11221 ac_cv_lib_dld_dld_link=no
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11228 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11229 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11230 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11231 fi
11232
11233
11234 fi
11235
11236
11237 fi
11238
11239
11240 fi
11241
11242
11243 fi
11244
11245
11246 fi
11247
11248 ;;
11249 esac
11250
11251 if test "x$lt_cv_dlopen" != xno; then
11252 enable_dlopen=yes
11253 else
11254 enable_dlopen=no
11255 fi
11256
11257 case $lt_cv_dlopen in
11258 dlopen)
11259 save_CPPFLAGS="$CPPFLAGS"
11260 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11261
11262 save_LDFLAGS="$LDFLAGS"
11263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11264
11265 save_LIBS="$LIBS"
11266 LIBS="$lt_cv_dlopen_libs $LIBS"
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11269 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11270 if test "${lt_cv_dlopen_self+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 if test "$cross_compiling" = yes; then :
11274 lt_cv_dlopen_self=cross
11275 else
11276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11277 lt_status=$lt_dlunknown
11278 cat > conftest.$ac_ext <<_LT_EOF
11279 #line 11279 "configure"
11280 #include "confdefs.h"
11281
11282 #if HAVE_DLFCN_H
11283 #include <dlfcn.h>
11284 #endif
11285
11286 #include <stdio.h>
11287
11288 #ifdef RTLD_GLOBAL
11289 # define LT_DLGLOBAL RTLD_GLOBAL
11290 #else
11291 # ifdef DL_GLOBAL
11292 # define LT_DLGLOBAL DL_GLOBAL
11293 # else
11294 # define LT_DLGLOBAL 0
11295 # endif
11296 #endif
11297
11298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11299 find out it does not work in some platform. */
11300 #ifndef LT_DLLAZY_OR_NOW
11301 # ifdef RTLD_LAZY
11302 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11303 # else
11304 # ifdef DL_LAZY
11305 # define LT_DLLAZY_OR_NOW DL_LAZY
11306 # else
11307 # ifdef RTLD_NOW
11308 # define LT_DLLAZY_OR_NOW RTLD_NOW
11309 # else
11310 # ifdef DL_NOW
11311 # define LT_DLLAZY_OR_NOW DL_NOW
11312 # else
11313 # define LT_DLLAZY_OR_NOW 0
11314 # endif
11315 # endif
11316 # endif
11317 # endif
11318 #endif
11319
11320 /* When -fvisbility=hidden is used, assume the code has been annotated
11321 correspondingly for the symbols needed. */
11322 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11323 void fnord () __attribute__((visibility("default")));
11324 #endif
11325
11326 void fnord () { int i=42; }
11327 int main ()
11328 {
11329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11330 int status = $lt_dlunknown;
11331
11332 if (self)
11333 {
11334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11335 else
11336 {
11337 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11338 else puts (dlerror ());
11339 }
11340 /* dlclose (self); */
11341 }
11342 else
11343 puts (dlerror ());
11344
11345 return status;
11346 }
11347 _LT_EOF
11348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11349 (eval $ac_link) 2>&5
11350 ac_status=$?
11351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11352 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11353 (./conftest; exit; ) >&5 2>/dev/null
11354 lt_status=$?
11355 case x$lt_status in
11356 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11357 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11358 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11359 esac
11360 else :
11361 # compilation failed
11362 lt_cv_dlopen_self=no
11363 fi
11364 fi
11365 rm -fr conftest*
11366
11367
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11370 $as_echo "$lt_cv_dlopen_self" >&6; }
11371
11372 if test "x$lt_cv_dlopen_self" = xyes; then
11373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11375 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11376 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 if test "$cross_compiling" = yes; then :
11380 lt_cv_dlopen_self_static=cross
11381 else
11382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11383 lt_status=$lt_dlunknown
11384 cat > conftest.$ac_ext <<_LT_EOF
11385 #line 11385 "configure"
11386 #include "confdefs.h"
11387
11388 #if HAVE_DLFCN_H
11389 #include <dlfcn.h>
11390 #endif
11391
11392 #include <stdio.h>
11393
11394 #ifdef RTLD_GLOBAL
11395 # define LT_DLGLOBAL RTLD_GLOBAL
11396 #else
11397 # ifdef DL_GLOBAL
11398 # define LT_DLGLOBAL DL_GLOBAL
11399 # else
11400 # define LT_DLGLOBAL 0
11401 # endif
11402 #endif
11403
11404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11405 find out it does not work in some platform. */
11406 #ifndef LT_DLLAZY_OR_NOW
11407 # ifdef RTLD_LAZY
11408 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11409 # else
11410 # ifdef DL_LAZY
11411 # define LT_DLLAZY_OR_NOW DL_LAZY
11412 # else
11413 # ifdef RTLD_NOW
11414 # define LT_DLLAZY_OR_NOW RTLD_NOW
11415 # else
11416 # ifdef DL_NOW
11417 # define LT_DLLAZY_OR_NOW DL_NOW
11418 # else
11419 # define LT_DLLAZY_OR_NOW 0
11420 # endif
11421 # endif
11422 # endif
11423 # endif
11424 #endif
11425
11426 /* When -fvisbility=hidden is used, assume the code has been annotated
11427 correspondingly for the symbols needed. */
11428 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11429 void fnord () __attribute__((visibility("default")));
11430 #endif
11431
11432 void fnord () { int i=42; }
11433 int main ()
11434 {
11435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11436 int status = $lt_dlunknown;
11437
11438 if (self)
11439 {
11440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11441 else
11442 {
11443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11444 else puts (dlerror ());
11445 }
11446 /* dlclose (self); */
11447 }
11448 else
11449 puts (dlerror ());
11450
11451 return status;
11452 }
11453 _LT_EOF
11454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11455 (eval $ac_link) 2>&5
11456 ac_status=$?
11457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11458 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11459 (./conftest; exit; ) >&5 2>/dev/null
11460 lt_status=$?
11461 case x$lt_status in
11462 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11463 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11464 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11465 esac
11466 else :
11467 # compilation failed
11468 lt_cv_dlopen_self_static=no
11469 fi
11470 fi
11471 rm -fr conftest*
11472
11473
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11476 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11477 fi
11478
11479 CPPFLAGS="$save_CPPFLAGS"
11480 LDFLAGS="$save_LDFLAGS"
11481 LIBS="$save_LIBS"
11482 ;;
11483 esac
11484
11485 case $lt_cv_dlopen_self in
11486 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11487 *) enable_dlopen_self=unknown ;;
11488 esac
11489
11490 case $lt_cv_dlopen_self_static in
11491 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11492 *) enable_dlopen_self_static=unknown ;;
11493 esac
11494 fi
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512 striplib=
11513 old_striplib=
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11515 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11516 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11517 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11518 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11520 $as_echo "yes" >&6; }
11521 else
11522 # FIXME - insert some real tests, host_os isn't really good enough
11523 case $host_os in
11524 darwin*)
11525 if test -n "$STRIP" ; then
11526 striplib="$STRIP -x"
11527 old_striplib="$STRIP -S"
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11529 $as_echo "yes" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534 ;;
11535 *)
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 ;;
11539 esac
11540 fi
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553 # Report which library types will actually be built
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11555 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11557 $as_echo "$can_build_shared" >&6; }
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11560 $as_echo_n "checking whether to build shared libraries... " >&6; }
11561 test "$can_build_shared" = "no" && enable_shared=no
11562
11563 # On AIX, shared libraries and static libraries use the same namespace, and
11564 # are all built from PIC.
11565 case $host_os in
11566 aix3*)
11567 test "$enable_shared" = yes && enable_static=no
11568 if test -n "$RANLIB"; then
11569 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11570 postinstall_cmds='$RANLIB $lib'
11571 fi
11572 ;;
11573
11574 aix[4-9]*)
11575 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11576 test "$enable_shared" = yes && enable_static=no
11577 fi
11578 ;;
11579 esac
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11581 $as_echo "$enable_shared" >&6; }
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11584 $as_echo_n "checking whether to build static libraries... " >&6; }
11585 # Make sure either enable_shared or enable_static is yes.
11586 test "$enable_shared" = yes || enable_static=yes
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11588 $as_echo "$enable_static" >&6; }
11589
11590
11591
11592
11593 fi
11594 ac_ext=c
11595 ac_cpp='$CPP $CPPFLAGS'
11596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11599
11600 CC="$lt_save_CC"
11601
11602 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11603 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11604 (test "X$CXX" != "Xg++"))) ; then
11605 ac_ext=cpp
11606 ac_cpp='$CXXCPP $CPPFLAGS'
11607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11611 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11612 if test -z "$CXXCPP"; then
11613 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 # Double quotes because CXXCPP needs to be expanded
11617 for CXXCPP in "$CXX -E" "/lib/cpp"
11618 do
11619 ac_preproc_ok=false
11620 for ac_cxx_preproc_warn_flag in '' yes
11621 do
11622 # Use a header file that comes with gcc, so configuring glibc
11623 # with a fresh cross-compiler works.
11624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 # <limits.h> exists even on freestanding compilers.
11626 # On the NeXT, cc -E runs the code through the compiler's parser,
11627 # not just through cpp. "Syntax error" is here to catch this case.
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635 Syntax error
11636 _ACEOF
11637 if ac_fn_cxx_try_cpp "$LINENO"; then :
11638
11639 else
11640 # Broken: fails on valid input.
11641 continue
11642 fi
11643 rm -f conftest.err conftest.$ac_ext
11644
11645 # OK, works on sane cases. Now check whether nonexistent headers
11646 # can be detected and how.
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <ac_nonexistent.h>
11650 _ACEOF
11651 if ac_fn_cxx_try_cpp "$LINENO"; then :
11652 # Broken: success on invalid input.
11653 continue
11654 else
11655 # Passes both tests.
11656 ac_preproc_ok=:
11657 break
11658 fi
11659 rm -f conftest.err conftest.$ac_ext
11660
11661 done
11662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11663 rm -f conftest.err conftest.$ac_ext
11664 if $ac_preproc_ok; then :
11665 break
11666 fi
11667
11668 done
11669 ac_cv_prog_CXXCPP=$CXXCPP
11670
11671 fi
11672 CXXCPP=$ac_cv_prog_CXXCPP
11673 else
11674 ac_cv_prog_CXXCPP=$CXXCPP
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11677 $as_echo "$CXXCPP" >&6; }
11678 ac_preproc_ok=false
11679 for ac_cxx_preproc_warn_flag in '' yes
11680 do
11681 # Use a header file that comes with gcc, so configuring glibc
11682 # with a fresh cross-compiler works.
11683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 # <limits.h> exists even on freestanding compilers.
11685 # On the NeXT, cc -E runs the code through the compiler's parser,
11686 # not just through cpp. "Syntax error" is here to catch this case.
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 #ifdef __STDC__
11690 # include <limits.h>
11691 #else
11692 # include <assert.h>
11693 #endif
11694 Syntax error
11695 _ACEOF
11696 if ac_fn_cxx_try_cpp "$LINENO"; then :
11697
11698 else
11699 # Broken: fails on valid input.
11700 continue
11701 fi
11702 rm -f conftest.err conftest.$ac_ext
11703
11704 # OK, works on sane cases. Now check whether nonexistent headers
11705 # can be detected and how.
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708 #include <ac_nonexistent.h>
11709 _ACEOF
11710 if ac_fn_cxx_try_cpp "$LINENO"; then :
11711 # Broken: success on invalid input.
11712 continue
11713 else
11714 # Passes both tests.
11715 ac_preproc_ok=:
11716 break
11717 fi
11718 rm -f conftest.err conftest.$ac_ext
11719
11720 done
11721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11722 rm -f conftest.err conftest.$ac_ext
11723 if $ac_preproc_ok; then :
11724
11725 else
11726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11728 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11729 See \`config.log' for more details." "$LINENO" 5; }
11730 fi
11731
11732 ac_ext=c
11733 ac_cpp='$CPP $CPPFLAGS'
11734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11737
11738 else
11739 _lt_caught_CXX_error=yes
11740 fi
11741
11742 ac_ext=cpp
11743 ac_cpp='$CXXCPP $CPPFLAGS'
11744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11747
11748 archive_cmds_need_lc_CXX=no
11749 allow_undefined_flag_CXX=
11750 always_export_symbols_CXX=no
11751 archive_expsym_cmds_CXX=
11752 compiler_needs_object_CXX=no
11753 export_dynamic_flag_spec_CXX=
11754 hardcode_direct_CXX=no
11755 hardcode_direct_absolute_CXX=no
11756 hardcode_libdir_flag_spec_CXX=
11757 hardcode_libdir_flag_spec_ld_CXX=
11758 hardcode_libdir_separator_CXX=
11759 hardcode_minus_L_CXX=no
11760 hardcode_shlibpath_var_CXX=unsupported
11761 hardcode_automatic_CXX=no
11762 inherit_rpath_CXX=no
11763 module_cmds_CXX=
11764 module_expsym_cmds_CXX=
11765 link_all_deplibs_CXX=unknown
11766 old_archive_cmds_CXX=$old_archive_cmds
11767 reload_flag_CXX=$reload_flag
11768 reload_cmds_CXX=$reload_cmds
11769 no_undefined_flag_CXX=
11770 whole_archive_flag_spec_CXX=
11771 enable_shared_with_static_runtimes_CXX=no
11772
11773 # Source file extension for C++ test sources.
11774 ac_ext=cpp
11775
11776 # Object file extension for compiled C++ test sources.
11777 objext=o
11778 objext_CXX=$objext
11779
11780 # No sense in running all these tests if we already determined that
11781 # the CXX compiler isn't working. Some variables (like enable_shared)
11782 # are currently assumed to apply to all compilers on this platform,
11783 # and will be corrupted by setting them based on a non-working compiler.
11784 if test "$_lt_caught_CXX_error" != yes; then
11785 # Code to be used in simple compile tests
11786 lt_simple_compile_test_code="int some_variable = 0;"
11787
11788 # Code to be used in simple link tests
11789 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11790
11791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11792
11793
11794
11795
11796
11797
11798 # If no C compiler was specified, use CC.
11799 LTCC=${LTCC-"$CC"}
11800
11801 # If no C compiler flags were specified, use CFLAGS.
11802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11803
11804 # Allow CC to be a program name with arguments.
11805 compiler=$CC
11806
11807
11808 # save warnings/boilerplate of simple test code
11809 ac_outfile=conftest.$ac_objext
11810 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11812 _lt_compiler_boilerplate=`cat conftest.err`
11813 $RM conftest*
11814
11815 ac_outfile=conftest.$ac_objext
11816 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11818 _lt_linker_boilerplate=`cat conftest.err`
11819 $RM -r conftest*
11820
11821
11822 # Allow CC to be a program name with arguments.
11823 lt_save_CC=$CC
11824 lt_save_LD=$LD
11825 lt_save_GCC=$GCC
11826 GCC=$GXX
11827 lt_save_with_gnu_ld=$with_gnu_ld
11828 lt_save_path_LD=$lt_cv_path_LD
11829 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11830 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11831 else
11832 $as_unset lt_cv_prog_gnu_ld
11833 fi
11834 if test -n "${lt_cv_path_LDCXX+set}"; then
11835 lt_cv_path_LD=$lt_cv_path_LDCXX
11836 else
11837 $as_unset lt_cv_path_LD
11838 fi
11839 test -z "${LDCXX+set}" || LD=$LDCXX
11840 CC=${CXX-"c++"}
11841 compiler=$CC
11842 compiler_CXX=$CC
11843 for cc_temp in $compiler""; do
11844 case $cc_temp in
11845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11847 \-*) ;;
11848 *) break;;
11849 esac
11850 done
11851 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11852
11853
11854 if test -n "$compiler"; then
11855 # We don't want -fno-exception when compiling C++ code, so set the
11856 # no_builtin_flag separately
11857 if test "$GXX" = yes; then
11858 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11859 else
11860 lt_prog_compiler_no_builtin_flag_CXX=
11861 fi
11862
11863 if test "$GXX" = yes; then
11864 # Set up default GNU C++ configuration
11865
11866
11867
11868 # Check whether --with-gnu-ld was given.
11869 if test "${with_gnu_ld+set}" = set; then :
11870 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11871 else
11872 with_gnu_ld=no
11873 fi
11874
11875 ac_prog=ld
11876 if test "$GCC" = yes; then
11877 # Check if gcc -print-prog-name=ld gives a path.
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11879 $as_echo_n "checking for ld used by $CC... " >&6; }
11880 case $host in
11881 *-*-mingw*)
11882 # gcc leaves a trailing carriage return which upsets mingw
11883 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11884 *)
11885 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11886 esac
11887 case $ac_prog in
11888 # Accept absolute paths.
11889 [\\/]* | ?:[\\/]*)
11890 re_direlt='/[^/][^/]*/\.\./'
11891 # Canonicalize the pathname of ld
11892 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11893 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11894 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11895 done
11896 test -z "$LD" && LD="$ac_prog"
11897 ;;
11898 "")
11899 # If it fails, then pretend we aren't using GCC.
11900 ac_prog=ld
11901 ;;
11902 *)
11903 # If it is relative, then search for the first ld in PATH.
11904 with_gnu_ld=unknown
11905 ;;
11906 esac
11907 elif test "$with_gnu_ld" = yes; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11909 $as_echo_n "checking for GNU ld... " >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11912 $as_echo_n "checking for non-GNU ld... " >&6; }
11913 fi
11914 if test "${lt_cv_path_LD+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test -z "$LD"; then
11918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11919 for ac_dir in $PATH; do
11920 IFS="$lt_save_ifs"
11921 test -z "$ac_dir" && ac_dir=.
11922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11923 lt_cv_path_LD="$ac_dir/$ac_prog"
11924 # Check to see if the program is GNU ld. I'd rather use --version,
11925 # but apparently some variants of GNU ld only accept -v.
11926 # Break only if it was the GNU/non-GNU ld that we prefer.
11927 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11928 *GNU* | *'with BFD'*)
11929 test "$with_gnu_ld" != no && break
11930 ;;
11931 *)
11932 test "$with_gnu_ld" != yes && break
11933 ;;
11934 esac
11935 fi
11936 done
11937 IFS="$lt_save_ifs"
11938 else
11939 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11940 fi
11941 fi
11942
11943 LD="$lt_cv_path_LD"
11944 if test -n "$LD"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11946 $as_echo "$LD" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11953 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11954 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11958 case `$LD -v 2>&1 </dev/null` in
11959 *GNU* | *'with BFD'*)
11960 lt_cv_prog_gnu_ld=yes
11961 ;;
11962 *)
11963 lt_cv_prog_gnu_ld=no
11964 ;;
11965 esac
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11968 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11969 with_gnu_ld=$lt_cv_prog_gnu_ld
11970
11971
11972
11973
11974
11975
11976
11977 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11978 # archiving commands below assume that GNU ld is being used.
11979 if test "$with_gnu_ld" = yes; then
11980 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11981 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11982
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11985
11986 # If archive_cmds runs LD, not CC, wlarc should be empty
11987 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11988 # investigate it a little bit more. (MM)
11989 wlarc='${wl}'
11990
11991 # ancient GNU ld didn't support --whole-archive et. al.
11992 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11993 $GREP 'no-whole-archive' > /dev/null; then
11994 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11995 else
11996 whole_archive_flag_spec_CXX=
11997 fi
11998 else
11999 with_gnu_ld=no
12000 wlarc=
12001
12002 # A generic and very simple default shared library creation
12003 # command for GNU C++ for the case where it uses the native
12004 # linker, instead of GNU ld. If possible, this setting should
12005 # overridden to take advantage of the native linker features on
12006 # the platform it is being used on.
12007 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12008 fi
12009
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12014
12015 else
12016 GXX=no
12017 with_gnu_ld=no
12018 wlarc=
12019 fi
12020
12021 # PORTME: fill in a description of your system's C++ link characteristics
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12023 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12024 ld_shlibs_CXX=yes
12025 case $host_os in
12026 aix3*)
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 ;;
12030 aix[4-9]*)
12031 if test "$host_cpu" = ia64; then
12032 # On IA64, the linker does run time linking by default, so we don't
12033 # have to do anything special.
12034 aix_use_runtimelinking=no
12035 exp_sym_flag='-Bexport'
12036 no_entry_flag=""
12037 else
12038 aix_use_runtimelinking=no
12039
12040 # Test if we are trying to use run time linking or normal
12041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12042 # need to do runtime linking.
12043 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12044 for ld_flag in $LDFLAGS; do
12045 case $ld_flag in
12046 *-brtl*)
12047 aix_use_runtimelinking=yes
12048 break
12049 ;;
12050 esac
12051 done
12052 ;;
12053 esac
12054
12055 exp_sym_flag='-bexport'
12056 no_entry_flag='-bnoentry'
12057 fi
12058
12059 # When large executables or shared objects are built, AIX ld can
12060 # have problems creating the table of contents. If linking a library
12061 # or program results in "error TOC overflow" add -mminimal-toc to
12062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12064
12065 archive_cmds_CXX=''
12066 hardcode_direct_CXX=yes
12067 hardcode_direct_absolute_CXX=yes
12068 hardcode_libdir_separator_CXX=':'
12069 link_all_deplibs_CXX=yes
12070 file_list_spec_CXX='${wl}-f,'
12071
12072 if test "$GXX" = yes; then
12073 case $host_os in aix4.[012]|aix4.[012].*)
12074 # We only want to do this on AIX 4.2 and lower, the check
12075 # below for broken collect2 doesn't work under 4.3+
12076 collect2name=`${CC} -print-prog-name=collect2`
12077 if test -f "$collect2name" &&
12078 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12079 then
12080 # We have reworked collect2
12081 :
12082 else
12083 # We have old collect2
12084 hardcode_direct_CXX=unsupported
12085 # It fails to find uninstalled libraries when the uninstalled
12086 # path is not listed in the libpath. Setting hardcode_minus_L
12087 # to unsupported forces relinking
12088 hardcode_minus_L_CXX=yes
12089 hardcode_libdir_flag_spec_CXX='-L$libdir'
12090 hardcode_libdir_separator_CXX=
12091 fi
12092 esac
12093 shared_flag='-shared'
12094 if test "$aix_use_runtimelinking" = yes; then
12095 shared_flag="$shared_flag "'${wl}-G'
12096 fi
12097 else
12098 # not using gcc
12099 if test "$host_cpu" = ia64; then
12100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12101 # chokes on -Wl,-G. The following line is correct:
12102 shared_flag='-G'
12103 else
12104 if test "$aix_use_runtimelinking" = yes; then
12105 shared_flag='${wl}-G'
12106 else
12107 shared_flag='${wl}-bM:SRE'
12108 fi
12109 fi
12110 fi
12111
12112 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12113 # It seems that -bexpall does not export symbols beginning with
12114 # underscore (_), so it is better to generate a list of symbols to
12115 # export.
12116 always_export_symbols_CXX=yes
12117 if test "$aix_use_runtimelinking" = yes; then
12118 # Warning - without using the other runtime loading flags (-brtl),
12119 # -berok will link without error, but may produce a broken library.
12120 allow_undefined_flag_CXX='-berok'
12121 # Determine the default libpath from the value encoded in an empty
12122 # executable.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 int
12127 main ()
12128 {
12129
12130 ;
12131 return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_cxx_try_link "$LINENO"; then :
12135
12136 lt_aix_libpath_sed='
12137 /Import File Strings/,/^$/ {
12138 /^0/ {
12139 s/^0 *\(.*\)$/\1/
12140 p
12141 }
12142 }'
12143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12144 # Check for a 64-bit object if we didn't find anything.
12145 if test -z "$aix_libpath"; then
12146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12147 fi
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12152
12153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12154
12155 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12156 else
12157 if test "$host_cpu" = ia64; then
12158 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12159 allow_undefined_flag_CXX="-z nodefs"
12160 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12161 else
12162 # Determine the default libpath from the value encoded in an
12163 # empty executable.
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 int
12168 main ()
12169 {
12170
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_cxx_try_link "$LINENO"; then :
12176
12177 lt_aix_libpath_sed='
12178 /Import File Strings/,/^$/ {
12179 /^0/ {
12180 s/^0 *\(.*\)$/\1/
12181 p
12182 }
12183 }'
12184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12185 # Check for a 64-bit object if we didn't find anything.
12186 if test -z "$aix_libpath"; then
12187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12188 fi
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12193
12194 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12195 # Warning - without using the other run time loading flags,
12196 # -berok will link without error, but may produce a broken library.
12197 no_undefined_flag_CXX=' ${wl}-bernotok'
12198 allow_undefined_flag_CXX=' ${wl}-berok'
12199 if test "$with_gnu_ld" = yes; then
12200 # We only use this code for GNU lds that support --whole-archive.
12201 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12202 else
12203 # Exported symbols can be pulled into shared objects from archives
12204 whole_archive_flag_spec_CXX='$convenience'
12205 fi
12206 archive_cmds_need_lc_CXX=yes
12207 # This is similar to how AIX traditionally builds its shared
12208 # libraries.
12209 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12210 fi
12211 fi
12212 ;;
12213
12214 beos*)
12215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12216 allow_undefined_flag_CXX=unsupported
12217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12218 # support --undefined. This deserves some investigation. FIXME
12219 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 else
12221 ld_shlibs_CXX=no
12222 fi
12223 ;;
12224
12225 chorus*)
12226 case $cc_basename in
12227 *)
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12230 ;;
12231 esac
12232 ;;
12233
12234 cygwin* | mingw* | pw32* | cegcc*)
12235 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12236 # as there is no search path for DLLs.
12237 hardcode_libdir_flag_spec_CXX='-L$libdir'
12238 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12239 allow_undefined_flag_CXX=unsupported
12240 always_export_symbols_CXX=no
12241 enable_shared_with_static_runtimes_CXX=yes
12242
12243 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12245 # If the export-symbols file already is a .def file (1st line
12246 # is EXPORTS), use it as is; otherwise, prepend...
12247 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12248 cp $export_symbols $output_objdir/$soname.def;
12249 else
12250 echo EXPORTS > $output_objdir/$soname.def;
12251 cat $export_symbols >> $output_objdir/$soname.def;
12252 fi~
12253 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12254 else
12255 ld_shlibs_CXX=no
12256 fi
12257 ;;
12258 darwin* | rhapsody*)
12259
12260
12261 archive_cmds_need_lc_CXX=no
12262 hardcode_direct_CXX=no
12263 hardcode_automatic_CXX=yes
12264 hardcode_shlibpath_var_CXX=unsupported
12265 if test "$lt_cv_ld_force_load" = "yes"; then
12266 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12267 else
12268 whole_archive_flag_spec_CXX=''
12269 fi
12270 link_all_deplibs_CXX=yes
12271 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12272 case $cc_basename in
12273 ifort*) _lt_dar_can_shared=yes ;;
12274 *) _lt_dar_can_shared=$GCC ;;
12275 esac
12276 if test "$_lt_dar_can_shared" = "yes"; then
12277 output_verbose_link_cmd=func_echo_all
12278 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12279 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12280 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12281 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12282 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12283 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12284 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12285 fi
12286
12287 else
12288 ld_shlibs_CXX=no
12289 fi
12290
12291 ;;
12292
12293 dgux*)
12294 case $cc_basename in
12295 ec++*)
12296 # FIXME: insert proper C++ library support
12297 ld_shlibs_CXX=no
12298 ;;
12299 ghcx*)
12300 # Green Hills C++ Compiler
12301 # FIXME: insert proper C++ library support
12302 ld_shlibs_CXX=no
12303 ;;
12304 *)
12305 # FIXME: insert proper C++ library support
12306 ld_shlibs_CXX=no
12307 ;;
12308 esac
12309 ;;
12310
12311 freebsd2.*)
12312 # C++ shared libraries reported to be fairly broken before
12313 # switch to ELF
12314 ld_shlibs_CXX=no
12315 ;;
12316
12317 freebsd-elf*)
12318 archive_cmds_need_lc_CXX=no
12319 ;;
12320
12321 freebsd* | dragonfly*)
12322 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12323 # conventions
12324 ld_shlibs_CXX=yes
12325 ;;
12326
12327 gnu*)
12328 ;;
12329
12330 haiku*)
12331 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12332 link_all_deplibs_CXX=yes
12333 ;;
12334
12335 hpux9*)
12336 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12337 hardcode_libdir_separator_CXX=:
12338 export_dynamic_flag_spec_CXX='${wl}-E'
12339 hardcode_direct_CXX=yes
12340 hardcode_minus_L_CXX=yes # Not in the search PATH,
12341 # but as the default
12342 # location of the library.
12343
12344 case $cc_basename in
12345 CC*)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12348 ;;
12349 aCC*)
12350 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12351 # Commands to make compiler produce verbose output that lists
12352 # what "hidden" libraries, object files and flags are used when
12353 # linking a shared library.
12354 #
12355 # There doesn't appear to be a way to prevent this compiler from
12356 # explicitly linking system object files so we need to strip them
12357 # from the output so that they don't get included in the library
12358 # dependencies.
12359 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12360 ;;
12361 *)
12362 if test "$GXX" = yes; then
12363 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12364 else
12365 # FIXME: insert proper C++ library support
12366 ld_shlibs_CXX=no
12367 fi
12368 ;;
12369 esac
12370 ;;
12371
12372 hpux10*|hpux11*)
12373 if test $with_gnu_ld = no; then
12374 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12375 hardcode_libdir_separator_CXX=:
12376
12377 case $host_cpu in
12378 hppa*64*|ia64*)
12379 ;;
12380 *)
12381 export_dynamic_flag_spec_CXX='${wl}-E'
12382 ;;
12383 esac
12384 fi
12385 case $host_cpu in
12386 hppa*64*|ia64*)
12387 hardcode_direct_CXX=no
12388 hardcode_shlibpath_var_CXX=no
12389 ;;
12390 *)
12391 hardcode_direct_CXX=yes
12392 hardcode_direct_absolute_CXX=yes
12393 hardcode_minus_L_CXX=yes # Not in the search PATH,
12394 # but as the default
12395 # location of the library.
12396 ;;
12397 esac
12398
12399 case $cc_basename in
12400 CC*)
12401 # FIXME: insert proper C++ library support
12402 ld_shlibs_CXX=no
12403 ;;
12404 aCC*)
12405 case $host_cpu in
12406 hppa*64*)
12407 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12408 ;;
12409 ia64*)
12410 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12411 ;;
12412 *)
12413 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12414 ;;
12415 esac
12416 # Commands to make compiler produce verbose output that lists
12417 # what "hidden" libraries, object files and flags are used when
12418 # linking a shared library.
12419 #
12420 # There doesn't appear to be a way to prevent this compiler from
12421 # explicitly linking system object files so we need to strip them
12422 # from the output so that they don't get included in the library
12423 # dependencies.
12424 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12425 ;;
12426 *)
12427 if test "$GXX" = yes; then
12428 if test $with_gnu_ld = no; then
12429 case $host_cpu in
12430 hppa*64*)
12431 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12432 ;;
12433 ia64*)
12434 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12435 ;;
12436 *)
12437 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12438 ;;
12439 esac
12440 fi
12441 else
12442 # FIXME: insert proper C++ library support
12443 ld_shlibs_CXX=no
12444 fi
12445 ;;
12446 esac
12447 ;;
12448
12449 interix[3-9]*)
12450 hardcode_direct_CXX=no
12451 hardcode_shlibpath_var_CXX=no
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}-E'
12454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12455 # Instead, shared libraries are loaded at an image base (0x10000000 by
12456 # default) and relocated if they conflict, which is a slow very memory
12457 # consuming and fragmenting process. To avoid this, we pick a random,
12458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12460 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12461 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12462 ;;
12463 irix5* | irix6*)
12464 case $cc_basename in
12465 CC*)
12466 # SGI C++
12467 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12468
12469 # Archives containing C++ object files must be created using
12470 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12471 # necessary to make sure instantiated templates are included
12472 # in the archive.
12473 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12474 ;;
12475 *)
12476 if test "$GXX" = yes; then
12477 if test "$with_gnu_ld" = no; then
12478 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12479 else
12480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12481 fi
12482 fi
12483 link_all_deplibs_CXX=yes
12484 ;;
12485 esac
12486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12487 hardcode_libdir_separator_CXX=:
12488 inherit_rpath_CXX=yes
12489 ;;
12490
12491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12492 case $cc_basename in
12493 KCC*)
12494 # Kuck and Associates, Inc. (KAI) C++ Compiler
12495
12496 # KCC will only create a shared library if the output file
12497 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12498 # to its proper name (with version) after linking.
12499 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12500 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12501 # Commands to make compiler produce verbose output that lists
12502 # what "hidden" libraries, object files and flags are used when
12503 # linking a shared library.
12504 #
12505 # There doesn't appear to be a way to prevent this compiler from
12506 # explicitly linking system object files so we need to strip them
12507 # from the output so that they don't get included in the library
12508 # dependencies.
12509 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12510
12511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12513
12514 # Archives containing C++ object files must be created using
12515 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12516 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12517 ;;
12518 icpc* | ecpc* )
12519 # Intel C++
12520 with_gnu_ld=yes
12521 # version 8.0 and above of icpc choke on multiply defined symbols
12522 # if we add $predep_objects and $postdep_objects, however 7.1 and
12523 # earlier do not add the objects themselves.
12524 case `$CC -V 2>&1` in
12525 *"Version 7."*)
12526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12527 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12528 ;;
12529 *) # Version 8.0 or newer
12530 tmp_idyn=
12531 case $host_cpu in
12532 ia64*) tmp_idyn=' -i_dynamic';;
12533 esac
12534 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12535 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12536 ;;
12537 esac
12538 archive_cmds_need_lc_CXX=no
12539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12541 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12542 ;;
12543 pgCC* | pgcpp*)
12544 # Portland Group C++ compiler
12545 case `$CC -V` in
12546 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12547 prelink_cmds_CXX='tpldir=Template.dir~
12548 rm -rf $tpldir~
12549 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12550 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12551 old_archive_cmds_CXX='tpldir=Template.dir~
12552 rm -rf $tpldir~
12553 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12554 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12555 $RANLIB $oldlib'
12556 archive_cmds_CXX='tpldir=Template.dir~
12557 rm -rf $tpldir~
12558 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12559 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12560 archive_expsym_cmds_CXX='tpldir=Template.dir~
12561 rm -rf $tpldir~
12562 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12563 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12564 ;;
12565 *) # Version 6 and above use weak symbols
12566 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12567 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12568 ;;
12569 esac
12570
12571 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12573 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12574 ;;
12575 cxx*)
12576 # Compaq C++
12577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12579
12580 runpath_var=LD_RUN_PATH
12581 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12582 hardcode_libdir_separator_CXX=:
12583
12584 # Commands to make compiler produce verbose output that lists
12585 # what "hidden" libraries, object files and flags are used when
12586 # linking a shared library.
12587 #
12588 # There doesn't appear to be a way to prevent this compiler from
12589 # explicitly linking system object files so we need to strip them
12590 # from the output so that they don't get included in the library
12591 # dependencies.
12592 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12593 ;;
12594 xl* | mpixl* | bgxl*)
12595 # IBM XL 8.0 on PPC, with GNU ld
12596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12598 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12599 if test "x$supports_anon_versioning" = xyes; then
12600 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12601 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12602 echo "local: *; };" >> $output_objdir/$libname.ver~
12603 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12604 fi
12605 ;;
12606 *)
12607 case `$CC -V 2>&1 | sed 5q` in
12608 *Sun\ C*)
12609 # Sun C++ 5.9
12610 no_undefined_flag_CXX=' -zdefs'
12611 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12613 hardcode_libdir_flag_spec_CXX='-R$libdir'
12614 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12615 compiler_needs_object_CXX=yes
12616
12617 # Not sure whether something based on
12618 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12619 # would be better.
12620 output_verbose_link_cmd='func_echo_all'
12621
12622 # Archives containing C++ object files must be created using
12623 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12624 # necessary to make sure instantiated templates are included
12625 # in the archive.
12626 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12627 ;;
12628 esac
12629 ;;
12630 esac
12631 ;;
12632
12633 lynxos*)
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637
12638 m88k*)
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12641 ;;
12642
12643 mvs*)
12644 case $cc_basename in
12645 cxx*)
12646 # FIXME: insert proper C++ library support
12647 ld_shlibs_CXX=no
12648 ;;
12649 *)
12650 # FIXME: insert proper C++ library support
12651 ld_shlibs_CXX=no
12652 ;;
12653 esac
12654 ;;
12655
12656 netbsd*)
12657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12658 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12659 wlarc=
12660 hardcode_libdir_flag_spec_CXX='-R$libdir'
12661 hardcode_direct_CXX=yes
12662 hardcode_shlibpath_var_CXX=no
12663 fi
12664 # Workaround some broken pre-1.5 toolchains
12665 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12666 ;;
12667
12668 *nto* | *qnx*)
12669 ld_shlibs_CXX=yes
12670 ;;
12671
12672 openbsd2*)
12673 # C++ shared libraries are fairly broken
12674 ld_shlibs_CXX=no
12675 ;;
12676
12677 openbsd*)
12678 if test -f /usr/libexec/ld.so; then
12679 hardcode_direct_CXX=yes
12680 hardcode_shlibpath_var_CXX=no
12681 hardcode_direct_absolute_CXX=yes
12682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12686 export_dynamic_flag_spec_CXX='${wl}-E'
12687 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12688 fi
12689 output_verbose_link_cmd=func_echo_all
12690 else
12691 ld_shlibs_CXX=no
12692 fi
12693 ;;
12694
12695 osf3* | osf4* | osf5*)
12696 case $cc_basename in
12697 KCC*)
12698 # Kuck and Associates, Inc. (KAI) C++ Compiler
12699
12700 # KCC will only create a shared library if the output file
12701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12702 # to its proper name (with version) after linking.
12703 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12704
12705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12706 hardcode_libdir_separator_CXX=:
12707
12708 # Archives containing C++ object files must be created using
12709 # the KAI C++ compiler.
12710 case $host in
12711 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12712 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12713 esac
12714 ;;
12715 RCC*)
12716 # Rational C++ 2.4.1
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12719 ;;
12720 cxx*)
12721 case $host in
12722 osf3*)
12723 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12724 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12726 ;;
12727 *)
12728 allow_undefined_flag_CXX=' -expect_unresolved \*'
12729 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12730 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12731 echo "-hidden">> $lib.exp~
12732 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12733 $RM $lib.exp'
12734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12735 ;;
12736 esac
12737
12738 hardcode_libdir_separator_CXX=:
12739
12740 # Commands to make compiler produce verbose output that lists
12741 # what "hidden" libraries, object files and flags are used when
12742 # linking a shared library.
12743 #
12744 # There doesn't appear to be a way to prevent this compiler from
12745 # explicitly linking system object files so we need to strip them
12746 # from the output so that they don't get included in the library
12747 # dependencies.
12748 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12749 ;;
12750 *)
12751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12753 case $host in
12754 osf3*)
12755 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12756 ;;
12757 *)
12758 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12759 ;;
12760 esac
12761
12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator_CXX=:
12764
12765 # Commands to make compiler produce verbose output that lists
12766 # what "hidden" libraries, object files and flags are used when
12767 # linking a shared library.
12768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12769
12770 else
12771 # FIXME: insert proper C++ library support
12772 ld_shlibs_CXX=no
12773 fi
12774 ;;
12775 esac
12776 ;;
12777
12778 psos*)
12779 # FIXME: insert proper C++ library support
12780 ld_shlibs_CXX=no
12781 ;;
12782
12783 sunos4*)
12784 case $cc_basename in
12785 CC*)
12786 # Sun C++ 4.x
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12789 ;;
12790 lcc*)
12791 # Lucid
12792 # FIXME: insert proper C++ library support
12793 ld_shlibs_CXX=no
12794 ;;
12795 *)
12796 # FIXME: insert proper C++ library support
12797 ld_shlibs_CXX=no
12798 ;;
12799 esac
12800 ;;
12801
12802 solaris*)
12803 case $cc_basename in
12804 CC*)
12805 # Sun C++ 4.2, 5.x and Centerline C++
12806 archive_cmds_need_lc_CXX=yes
12807 no_undefined_flag_CXX=' -zdefs'
12808 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12809 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12810 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12811
12812 hardcode_libdir_flag_spec_CXX='-R$libdir'
12813 hardcode_shlibpath_var_CXX=no
12814 case $host_os in
12815 solaris2.[0-5] | solaris2.[0-5].*) ;;
12816 *)
12817 # The compiler driver will combine and reorder linker options,
12818 # but understands `-z linker_flag'.
12819 # Supported since Solaris 2.6 (maybe 2.5.1?)
12820 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12821 ;;
12822 esac
12823 link_all_deplibs_CXX=yes
12824
12825 output_verbose_link_cmd='func_echo_all'
12826
12827 # Archives containing C++ object files must be created using
12828 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12829 # necessary to make sure instantiated templates are included
12830 # in the archive.
12831 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12832 ;;
12833 gcx*)
12834 # Green Hills C++ Compiler
12835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12836
12837 # The C++ compiler must be used to create the archive.
12838 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12839 ;;
12840 *)
12841 # GNU C++ compiler with Solaris linker
12842 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12843 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12844 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12845 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12846 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12847 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12848
12849 # Commands to make compiler produce verbose output that lists
12850 # what "hidden" libraries, object files and flags are used when
12851 # linking a shared library.
12852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12853 else
12854 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12855 # platform.
12856 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12858 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12859
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12864 fi
12865
12866 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12867 case $host_os in
12868 solaris2.[0-5] | solaris2.[0-5].*) ;;
12869 *)
12870 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12871 ;;
12872 esac
12873 fi
12874 ;;
12875 esac
12876 ;;
12877
12878 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12879 no_undefined_flag_CXX='${wl}-z,text'
12880 archive_cmds_need_lc_CXX=no
12881 hardcode_shlibpath_var_CXX=no
12882 runpath_var='LD_RUN_PATH'
12883
12884 case $cc_basename in
12885 CC*)
12886 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888 ;;
12889 *)
12890 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12892 ;;
12893 esac
12894 ;;
12895
12896 sysv5* | sco3.2v5* | sco5v6*)
12897 # Note: We can NOT use -z defs as we might desire, because we do not
12898 # link with -lc, and that would cause any symbols used from libc to
12899 # always be unresolved, which means just about no library would
12900 # ever link correctly. If we're not using GNU ld we use -z text
12901 # though, which does catch some bad symbols but isn't as heavy-handed
12902 # as -z defs.
12903 no_undefined_flag_CXX='${wl}-z,text'
12904 allow_undefined_flag_CXX='${wl}-z,nodefs'
12905 archive_cmds_need_lc_CXX=no
12906 hardcode_shlibpath_var_CXX=no
12907 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12908 hardcode_libdir_separator_CXX=':'
12909 link_all_deplibs_CXX=yes
12910 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12911 runpath_var='LD_RUN_PATH'
12912
12913 case $cc_basename in
12914 CC*)
12915 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12918 '"$old_archive_cmds_CXX"
12919 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12920 '"$reload_cmds_CXX"
12921 ;;
12922 *)
12923 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12924 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12925 ;;
12926 esac
12927 ;;
12928
12929 tandem*)
12930 case $cc_basename in
12931 NCC*)
12932 # NonStop-UX NCC 3.20
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 ;;
12936 *)
12937 # FIXME: insert proper C++ library support
12938 ld_shlibs_CXX=no
12939 ;;
12940 esac
12941 ;;
12942
12943 vxworks*)
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12946 ;;
12947
12948 *)
12949 # FIXME: insert proper C++ library support
12950 ld_shlibs_CXX=no
12951 ;;
12952 esac
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12955 $as_echo "$ld_shlibs_CXX" >&6; }
12956 test "$ld_shlibs_CXX" = no && can_build_shared=no
12957
12958 GCC_CXX="$GXX"
12959 LD_CXX="$LD"
12960
12961 ## CAVEAT EMPTOR:
12962 ## There is no encapsulation within the following macros, do not change
12963 ## the running order or otherwise move them around unless you know exactly
12964 ## what you are doing...
12965 # Dependencies to place before and after the object being linked:
12966 predep_objects_CXX=
12967 postdep_objects_CXX=
12968 predeps_CXX=
12969 postdeps_CXX=
12970 compiler_lib_search_path_CXX=
12971
12972 cat > conftest.$ac_ext <<_LT_EOF
12973 class Foo
12974 {
12975 public:
12976 Foo (void) { a = 0; }
12977 private:
12978 int a;
12979 };
12980 _LT_EOF
12981
12982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12983 (eval $ac_compile) 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12986 test $ac_status = 0; }; then
12987 # Parse the compiler output and extract the necessary
12988 # objects, libraries and library flags.
12989
12990 # Sentinel used to keep track of whether or not we are before
12991 # the conftest object file.
12992 pre_test_object_deps_done=no
12993
12994 for p in `eval "$output_verbose_link_cmd"`; do
12995 case $p in
12996
12997 -L* | -R* | -l*)
12998 # Some compilers place space between "-{L,R}" and the path.
12999 # Remove the space.
13000 if test $p = "-L" ||
13001 test $p = "-R"; then
13002 prev=$p
13003 continue
13004 else
13005 prev=
13006 fi
13007
13008 if test "$pre_test_object_deps_done" = no; then
13009 case $p in
13010 -L* | -R*)
13011 # Internal compiler library paths should come after those
13012 # provided the user. The postdeps already come after the
13013 # user supplied libs so there is no need to process them.
13014 if test -z "$compiler_lib_search_path_CXX"; then
13015 compiler_lib_search_path_CXX="${prev}${p}"
13016 else
13017 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13018 fi
13019 ;;
13020 # The "-l" case would never come before the object being
13021 # linked, so don't bother handling this case.
13022 esac
13023 else
13024 if test -z "$postdeps_CXX"; then
13025 postdeps_CXX="${prev}${p}"
13026 else
13027 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13028 fi
13029 fi
13030 ;;
13031
13032 *.$objext)
13033 # This assumes that the test object file only shows up
13034 # once in the compiler output.
13035 if test "$p" = "conftest.$objext"; then
13036 pre_test_object_deps_done=yes
13037 continue
13038 fi
13039
13040 if test "$pre_test_object_deps_done" = no; then
13041 if test -z "$predep_objects_CXX"; then
13042 predep_objects_CXX="$p"
13043 else
13044 predep_objects_CXX="$predep_objects_CXX $p"
13045 fi
13046 else
13047 if test -z "$postdep_objects_CXX"; then
13048 postdep_objects_CXX="$p"
13049 else
13050 postdep_objects_CXX="$postdep_objects_CXX $p"
13051 fi
13052 fi
13053 ;;
13054
13055 *) ;; # Ignore the rest.
13056
13057 esac
13058 done
13059
13060 # Clean up.
13061 rm -f a.out a.exe
13062 else
13063 echo "libtool.m4: error: problem compiling CXX test program"
13064 fi
13065
13066 $RM -f confest.$objext
13067
13068 # PORTME: override above test on systems where it is broken
13069 case $host_os in
13070 interix[3-9]*)
13071 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13072 # hack all around it, let's just trust "g++" to DTRT.
13073 predep_objects_CXX=
13074 postdep_objects_CXX=
13075 postdeps_CXX=
13076 ;;
13077
13078 linux*)
13079 case `$CC -V 2>&1 | sed 5q` in
13080 *Sun\ C*)
13081 # Sun C++ 5.9
13082
13083 # The more standards-conforming stlport4 library is
13084 # incompatible with the Cstd library. Avoid specifying
13085 # it if it's in CXXFLAGS. Ignore libCrun as
13086 # -library=stlport4 depends on it.
13087 case " $CXX $CXXFLAGS " in
13088 *" -library=stlport4 "*)
13089 solaris_use_stlport4=yes
13090 ;;
13091 esac
13092
13093 if test "$solaris_use_stlport4" != yes; then
13094 postdeps_CXX='-library=Cstd -library=Crun'
13095 fi
13096 ;;
13097 esac
13098 ;;
13099
13100 solaris*)
13101 case $cc_basename in
13102 CC*)
13103 # The more standards-conforming stlport4 library is
13104 # incompatible with the Cstd library. Avoid specifying
13105 # it if it's in CXXFLAGS. Ignore libCrun as
13106 # -library=stlport4 depends on it.
13107 case " $CXX $CXXFLAGS " in
13108 *" -library=stlport4 "*)
13109 solaris_use_stlport4=yes
13110 ;;
13111 esac
13112
13113 # Adding this requires a known-good setup of shared libraries for
13114 # Sun compiler versions before 5.6, else PIC objects from an old
13115 # archive will be linked into the output, leading to subtle bugs.
13116 if test "$solaris_use_stlport4" != yes; then
13117 postdeps_CXX='-library=Cstd -library=Crun'
13118 fi
13119 ;;
13120 esac
13121 ;;
13122 esac
13123
13124
13125 case " $postdeps_CXX " in
13126 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13127 esac
13128 compiler_lib_search_dirs_CXX=
13129 if test -n "${compiler_lib_search_path_CXX}"; then
13130 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13131 fi
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163 lt_prog_compiler_wl_CXX=
13164 lt_prog_compiler_pic_CXX=
13165 lt_prog_compiler_static_CXX=
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13168 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13169
13170 # C++ specific cases for pic, static, wl, etc.
13171 if test "$GXX" = yes; then
13172 lt_prog_compiler_wl_CXX='-Wl,'
13173 lt_prog_compiler_static_CXX='-static'
13174
13175 case $host_os in
13176 aix*)
13177 # All AIX code is PIC.
13178 if test "$host_cpu" = ia64; then
13179 # AIX 5 now supports IA64 processor
13180 lt_prog_compiler_static_CXX='-Bstatic'
13181 fi
13182 lt_prog_compiler_pic_CXX='-fPIC'
13183 ;;
13184
13185 amigaos*)
13186 case $host_cpu in
13187 powerpc)
13188 # see comment about AmigaOS4 .so support
13189 lt_prog_compiler_pic_CXX='-fPIC'
13190 ;;
13191 m68k)
13192 # FIXME: we need at least 68020 code to build shared libraries, but
13193 # adding the `-m68020' flag to GCC prevents building anything better,
13194 # like `-m68040'.
13195 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13196 ;;
13197 esac
13198 ;;
13199
13200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13201 # PIC is the default for these OSes.
13202 ;;
13203 mingw* | cygwin* | os2* | pw32* | cegcc*)
13204 # This hack is so that the source file can tell whether it is being
13205 # built for inclusion in a dll (and should export symbols for example).
13206 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13207 # (--disable-auto-import) libraries
13208 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13209 ;;
13210 darwin* | rhapsody*)
13211 # PIC is the default on this platform
13212 # Common symbols not allowed in MH_DYLIB files
13213 lt_prog_compiler_pic_CXX='-fno-common'
13214 ;;
13215 *djgpp*)
13216 # DJGPP does not support shared libraries at all
13217 lt_prog_compiler_pic_CXX=
13218 ;;
13219 haiku*)
13220 # PIC is the default for Haiku.
13221 # The "-static" flag exists, but is broken.
13222 lt_prog_compiler_static_CXX=
13223 ;;
13224 interix[3-9]*)
13225 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13226 # Instead, we relocate shared libraries at runtime.
13227 ;;
13228 sysv4*MP*)
13229 if test -d /usr/nec; then
13230 lt_prog_compiler_pic_CXX=-Kconform_pic
13231 fi
13232 ;;
13233 hpux*)
13234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13236 # sets the default TLS model and affects inlining.
13237 case $host_cpu in
13238 hppa*64*)
13239 ;;
13240 *)
13241 lt_prog_compiler_pic_CXX='-fPIC'
13242 ;;
13243 esac
13244 ;;
13245 *qnx* | *nto*)
13246 # QNX uses GNU C++, but need to define -shared option too, otherwise
13247 # it will coredump.
13248 lt_prog_compiler_pic_CXX='-fPIC -shared'
13249 ;;
13250 *)
13251 lt_prog_compiler_pic_CXX='-fPIC'
13252 ;;
13253 esac
13254 else
13255 case $host_os in
13256 aix[4-9]*)
13257 # All AIX code is PIC.
13258 if test "$host_cpu" = ia64; then
13259 # AIX 5 now supports IA64 processor
13260 lt_prog_compiler_static_CXX='-Bstatic'
13261 else
13262 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13263 fi
13264 ;;
13265 chorus*)
13266 case $cc_basename in
13267 cxch68*)
13268 # Green Hills C++ Compiler
13269 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13270 ;;
13271 esac
13272 ;;
13273 dgux*)
13274 case $cc_basename in
13275 ec++*)
13276 lt_prog_compiler_pic_CXX='-KPIC'
13277 ;;
13278 ghcx*)
13279 # Green Hills C++ Compiler
13280 lt_prog_compiler_pic_CXX='-pic'
13281 ;;
13282 *)
13283 ;;
13284 esac
13285 ;;
13286 freebsd* | dragonfly*)
13287 # FreeBSD uses GNU C++
13288 ;;
13289 hpux9* | hpux10* | hpux11*)
13290 case $cc_basename in
13291 CC*)
13292 lt_prog_compiler_wl_CXX='-Wl,'
13293 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13294 if test "$host_cpu" != ia64; then
13295 lt_prog_compiler_pic_CXX='+Z'
13296 fi
13297 ;;
13298 aCC*)
13299 lt_prog_compiler_wl_CXX='-Wl,'
13300 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13301 case $host_cpu in
13302 hppa*64*|ia64*)
13303 # +Z the default
13304 ;;
13305 *)
13306 lt_prog_compiler_pic_CXX='+Z'
13307 ;;
13308 esac
13309 ;;
13310 *)
13311 ;;
13312 esac
13313 ;;
13314 interix*)
13315 # This is c89, which is MS Visual C++ (no shared libs)
13316 # Anyone wants to do a port?
13317 ;;
13318 irix5* | irix6* | nonstopux*)
13319 case $cc_basename in
13320 CC*)
13321 lt_prog_compiler_wl_CXX='-Wl,'
13322 lt_prog_compiler_static_CXX='-non_shared'
13323 # CC pic flag -KPIC is the default.
13324 ;;
13325 *)
13326 ;;
13327 esac
13328 ;;
13329 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13330 case $cc_basename in
13331 KCC*)
13332 # KAI C++ Compiler
13333 lt_prog_compiler_wl_CXX='--backend -Wl,'
13334 lt_prog_compiler_pic_CXX='-fPIC'
13335 ;;
13336 ecpc* )
13337 # old Intel C++ for x86_64 which still supported -KPIC.
13338 lt_prog_compiler_wl_CXX='-Wl,'
13339 lt_prog_compiler_pic_CXX='-KPIC'
13340 lt_prog_compiler_static_CXX='-static'
13341 ;;
13342 icpc* )
13343 # Intel C++, used to be incompatible with GCC.
13344 # ICC 10 doesn't accept -KPIC any more.
13345 lt_prog_compiler_wl_CXX='-Wl,'
13346 lt_prog_compiler_pic_CXX='-fPIC'
13347 lt_prog_compiler_static_CXX='-static'
13348 ;;
13349 pgCC* | pgcpp*)
13350 # Portland Group C++ compiler
13351 lt_prog_compiler_wl_CXX='-Wl,'
13352 lt_prog_compiler_pic_CXX='-fpic'
13353 lt_prog_compiler_static_CXX='-Bstatic'
13354 ;;
13355 cxx*)
13356 # Compaq C++
13357 # Make sure the PIC flag is empty. It appears that all Alpha
13358 # Linux and Compaq Tru64 Unix objects are PIC.
13359 lt_prog_compiler_pic_CXX=
13360 lt_prog_compiler_static_CXX='-non_shared'
13361 ;;
13362 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13363 # IBM XL 8.0, 9.0 on PPC and BlueGene
13364 lt_prog_compiler_wl_CXX='-Wl,'
13365 lt_prog_compiler_pic_CXX='-qpic'
13366 lt_prog_compiler_static_CXX='-qstaticlink'
13367 ;;
13368 *)
13369 case `$CC -V 2>&1 | sed 5q` in
13370 *Sun\ C*)
13371 # Sun C++ 5.9
13372 lt_prog_compiler_pic_CXX='-KPIC'
13373 lt_prog_compiler_static_CXX='-Bstatic'
13374 lt_prog_compiler_wl_CXX='-Qoption ld '
13375 ;;
13376 esac
13377 ;;
13378 esac
13379 ;;
13380 lynxos*)
13381 ;;
13382 m88k*)
13383 ;;
13384 mvs*)
13385 case $cc_basename in
13386 cxx*)
13387 lt_prog_compiler_pic_CXX='-W c,exportall'
13388 ;;
13389 *)
13390 ;;
13391 esac
13392 ;;
13393 netbsd*)
13394 ;;
13395 *qnx* | *nto*)
13396 # QNX uses GNU C++, but need to define -shared option too, otherwise
13397 # it will coredump.
13398 lt_prog_compiler_pic_CXX='-fPIC -shared'
13399 ;;
13400 osf3* | osf4* | osf5*)
13401 case $cc_basename in
13402 KCC*)
13403 lt_prog_compiler_wl_CXX='--backend -Wl,'
13404 ;;
13405 RCC*)
13406 # Rational C++ 2.4.1
13407 lt_prog_compiler_pic_CXX='-pic'
13408 ;;
13409 cxx*)
13410 # Digital/Compaq C++
13411 lt_prog_compiler_wl_CXX='-Wl,'
13412 # Make sure the PIC flag is empty. It appears that all Alpha
13413 # Linux and Compaq Tru64 Unix objects are PIC.
13414 lt_prog_compiler_pic_CXX=
13415 lt_prog_compiler_static_CXX='-non_shared'
13416 ;;
13417 *)
13418 ;;
13419 esac
13420 ;;
13421 psos*)
13422 ;;
13423 solaris*)
13424 case $cc_basename in
13425 CC*)
13426 # Sun C++ 4.2, 5.x and Centerline C++
13427 lt_prog_compiler_pic_CXX='-KPIC'
13428 lt_prog_compiler_static_CXX='-Bstatic'
13429 lt_prog_compiler_wl_CXX='-Qoption ld '
13430 ;;
13431 gcx*)
13432 # Green Hills C++ Compiler
13433 lt_prog_compiler_pic_CXX='-PIC'
13434 ;;
13435 *)
13436 ;;
13437 esac
13438 ;;
13439 sunos4*)
13440 case $cc_basename in
13441 CC*)
13442 # Sun C++ 4.x
13443 lt_prog_compiler_pic_CXX='-pic'
13444 lt_prog_compiler_static_CXX='-Bstatic'
13445 ;;
13446 lcc*)
13447 # Lucid
13448 lt_prog_compiler_pic_CXX='-pic'
13449 ;;
13450 *)
13451 ;;
13452 esac
13453 ;;
13454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13455 case $cc_basename in
13456 CC*)
13457 lt_prog_compiler_wl_CXX='-Wl,'
13458 lt_prog_compiler_pic_CXX='-KPIC'
13459 lt_prog_compiler_static_CXX='-Bstatic'
13460 ;;
13461 esac
13462 ;;
13463 tandem*)
13464 case $cc_basename in
13465 NCC*)
13466 # NonStop-UX NCC 3.20
13467 lt_prog_compiler_pic_CXX='-KPIC'
13468 ;;
13469 *)
13470 ;;
13471 esac
13472 ;;
13473 vxworks*)
13474 ;;
13475 *)
13476 lt_prog_compiler_can_build_shared_CXX=no
13477 ;;
13478 esac
13479 fi
13480
13481 case $host_os in
13482 # For platforms which do not support PIC, -DPIC is meaningless:
13483 *djgpp*)
13484 lt_prog_compiler_pic_CXX=
13485 ;;
13486 *)
13487 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13488 ;;
13489 esac
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13491 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13492
13493
13494
13495 #
13496 # Check to make sure the PIC flag actually works.
13497 #
13498 if test -n "$lt_prog_compiler_pic_CXX"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13500 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13501 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 lt_cv_prog_compiler_pic_works_CXX=no
13505 ac_outfile=conftest.$ac_objext
13506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13507 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13508 # Insert the option either (1) after the last *FLAGS variable, or
13509 # (2) before a word containing "conftest.", or (3) at the end.
13510 # Note that $ac_compile itself does not contain backslashes and begins
13511 # with a dollar sign (not a hyphen), so the echo should work correctly.
13512 # The option is referenced via a variable to avoid confusing sed.
13513 lt_compile=`echo "$ac_compile" | $SED \
13514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13516 -e 's:$: $lt_compiler_flag:'`
13517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13518 (eval "$lt_compile" 2>conftest.err)
13519 ac_status=$?
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 if (exit $ac_status) && test -s "$ac_outfile"; then
13523 # The compiler can only warn and ignore the option if not recognized
13524 # So say no if there are warnings other than the usual output.
13525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13528 lt_cv_prog_compiler_pic_works_CXX=yes
13529 fi
13530 fi
13531 $RM conftest*
13532
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13535 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13536
13537 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13538 case $lt_prog_compiler_pic_CXX in
13539 "" | " "*) ;;
13540 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13541 esac
13542 else
13543 lt_prog_compiler_pic_CXX=
13544 lt_prog_compiler_can_build_shared_CXX=no
13545 fi
13546
13547 fi
13548
13549
13550
13551 #
13552 # Check to make sure the static flag actually works.
13553 #
13554 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13556 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13557 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 lt_cv_prog_compiler_static_works_CXX=no
13561 save_LDFLAGS="$LDFLAGS"
13562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13565 # The linker can only warn and ignore the option if not recognized
13566 # So say no if there are warnings
13567 if test -s conftest.err; then
13568 # Append any errors to the config.log.
13569 cat conftest.err 1>&5
13570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13572 if diff conftest.exp conftest.er2 >/dev/null; then
13573 lt_cv_prog_compiler_static_works_CXX=yes
13574 fi
13575 else
13576 lt_cv_prog_compiler_static_works_CXX=yes
13577 fi
13578 fi
13579 $RM -r conftest*
13580 LDFLAGS="$save_LDFLAGS"
13581
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13584 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13585
13586 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13587 :
13588 else
13589 lt_prog_compiler_static_CXX=
13590 fi
13591
13592
13593
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13597 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 lt_cv_prog_compiler_c_o_CXX=no
13601 $RM -r conftest 2>/dev/null
13602 mkdir conftest
13603 cd conftest
13604 mkdir out
13605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13606
13607 lt_compiler_flag="-o out/conftest2.$ac_objext"
13608 # Insert the option either (1) after the last *FLAGS variable, or
13609 # (2) before a word containing "conftest.", or (3) at the end.
13610 # Note that $ac_compile itself does not contain backslashes and begins
13611 # with a dollar sign (not a hyphen), so the echo should work correctly.
13612 lt_compile=`echo "$ac_compile" | $SED \
13613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13615 -e 's:$: $lt_compiler_flag:'`
13616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13617 (eval "$lt_compile" 2>out/conftest.err)
13618 ac_status=$?
13619 cat out/conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13622 then
13623 # The compiler can only warn and ignore the option if not recognized
13624 # So say no if there are warnings
13625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13628 lt_cv_prog_compiler_c_o_CXX=yes
13629 fi
13630 fi
13631 chmod u+w . 2>&5
13632 $RM conftest*
13633 # SGI C++ compiler will create directory out/ii_files/ for
13634 # template instantiation
13635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13636 $RM out/* && rmdir out
13637 cd ..
13638 $RM -r conftest
13639 $RM conftest*
13640
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13643 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13644
13645
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13648 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13649 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 lt_cv_prog_compiler_c_o_CXX=no
13653 $RM -r conftest 2>/dev/null
13654 mkdir conftest
13655 cd conftest
13656 mkdir out
13657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13658
13659 lt_compiler_flag="-o out/conftest2.$ac_objext"
13660 # Insert the option either (1) after the last *FLAGS variable, or
13661 # (2) before a word containing "conftest.", or (3) at the end.
13662 # Note that $ac_compile itself does not contain backslashes and begins
13663 # with a dollar sign (not a hyphen), so the echo should work correctly.
13664 lt_compile=`echo "$ac_compile" | $SED \
13665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667 -e 's:$: $lt_compiler_flag:'`
13668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13669 (eval "$lt_compile" 2>out/conftest.err)
13670 ac_status=$?
13671 cat out/conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13674 then
13675 # The compiler can only warn and ignore the option if not recognized
13676 # So say no if there are warnings
13677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13680 lt_cv_prog_compiler_c_o_CXX=yes
13681 fi
13682 fi
13683 chmod u+w . 2>&5
13684 $RM conftest*
13685 # SGI C++ compiler will create directory out/ii_files/ for
13686 # template instantiation
13687 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13688 $RM out/* && rmdir out
13689 cd ..
13690 $RM -r conftest
13691 $RM conftest*
13692
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13695 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13696
13697
13698
13699
13700 hard_links="nottested"
13701 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13702 # do not overwrite the value of need_locks provided by the user
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13704 $as_echo_n "checking if we can lock with hard links... " >&6; }
13705 hard_links=yes
13706 $RM conftest*
13707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13708 touch conftest.a
13709 ln conftest.a conftest.b 2>&5 || hard_links=no
13710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13712 $as_echo "$hard_links" >&6; }
13713 if test "$hard_links" = no; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13715 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13716 need_locks=warn
13717 fi
13718 else
13719 need_locks=no
13720 fi
13721
13722
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13725 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13726
13727 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13728 case $host_os in
13729 aix[4-9]*)
13730 # If we're using GNU nm, then we don't want the "-C" option.
13731 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13732 # Also, AIX nm treats weak defined symbols like other global defined
13733 # symbols, whereas GNU nm marks them as "W".
13734 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13735 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13736 else
13737 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13738 fi
13739 ;;
13740 pw32*)
13741 export_symbols_cmds_CXX="$ltdll_cmds"
13742 ;;
13743 cygwin* | mingw* | cegcc*)
13744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13745 ;;
13746 *)
13747 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13748 ;;
13749 esac
13750 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13751
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13753 $as_echo "$ld_shlibs_CXX" >&6; }
13754 test "$ld_shlibs_CXX" = no && can_build_shared=no
13755
13756 with_gnu_ld_CXX=$with_gnu_ld
13757
13758
13759
13760
13761
13762
13763 #
13764 # Do we need to explicitly link libc?
13765 #
13766 case "x$archive_cmds_need_lc_CXX" in
13767 x|xyes)
13768 # Assume -lc should be added
13769 archive_cmds_need_lc_CXX=yes
13770
13771 if test "$enable_shared" = yes && test "$GCC" = yes; then
13772 case $archive_cmds_CXX in
13773 *'~'*)
13774 # FIXME: we may have to deal with multi-command sequences.
13775 ;;
13776 '$CC '*)
13777 # Test whether the compiler implicitly links with -lc since on some
13778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13779 # to ld, don't add -lc before -lgcc.
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13782 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 $RM conftest*
13786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13787
13788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13789 (eval $ac_compile) 2>&5
13790 ac_status=$?
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792 test $ac_status = 0; } 2>conftest.err; then
13793 soname=conftest
13794 lib=conftest
13795 libobjs=conftest.$ac_objext
13796 deplibs=
13797 wl=$lt_prog_compiler_wl_CXX
13798 pic_flag=$lt_prog_compiler_pic_CXX
13799 compiler_flags=-v
13800 linker_flags=-v
13801 verstring=
13802 output_objdir=.
13803 libname=conftest
13804 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13805 allow_undefined_flag_CXX=
13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13807 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }
13811 then
13812 lt_cv_archive_cmds_need_lc_CXX=no
13813 else
13814 lt_cv_archive_cmds_need_lc_CXX=yes
13815 fi
13816 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13817 else
13818 cat conftest.err 1>&5
13819 fi
13820 $RM conftest*
13821
13822 fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13824 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13825 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13826 ;;
13827 esac
13828 fi
13829 ;;
13830 esac
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13897
13898 library_names_spec=
13899 libname_spec='lib$name'
13900 soname_spec=
13901 shrext_cmds=".so"
13902 postinstall_cmds=
13903 postuninstall_cmds=
13904 finish_cmds=
13905 finish_eval=
13906 shlibpath_var=
13907 shlibpath_overrides_runpath=unknown
13908 version_type=none
13909 dynamic_linker="$host_os ld.so"
13910 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13911 need_lib_prefix=unknown
13912 hardcode_into_libs=no
13913
13914 # when you set need_version to no, make sure it does not cause -set_version
13915 # flags to be left without arguments
13916 need_version=unknown
13917
13918 case $host_os in
13919 aix3*)
13920 version_type=linux
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13922 shlibpath_var=LIBPATH
13923
13924 # AIX 3 has no versioning support, so we append a major version to the name.
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 ;;
13927
13928 aix[4-9]*)
13929 version_type=linux
13930 need_lib_prefix=no
13931 need_version=no
13932 hardcode_into_libs=yes
13933 if test "$host_cpu" = ia64; then
13934 # AIX 5 supports IA64
13935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 else
13938 # With GCC up to 2.95.x, collect2 would create an import file
13939 # for dependence libraries. The import file would start with
13940 # the line `#! .'. This would cause the generated library to
13941 # depend on `.', always an invalid library. This was fixed in
13942 # development snapshots of GCC prior to 3.0.
13943 case $host_os in
13944 aix4 | aix4.[01] | aix4.[01].*)
13945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13946 echo ' yes '
13947 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13948 :
13949 else
13950 can_build_shared=no
13951 fi
13952 ;;
13953 esac
13954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13955 # soname into executable. Probably we can add versioning support to
13956 # collect2, so additional links can be useful in future.
13957 if test "$aix_use_runtimelinking" = yes; then
13958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13959 # instead of lib<name>.a to let people know that these are not
13960 # typical AIX shared libraries.
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962 else
13963 # We preserve .a as extension for shared libraries through AIX4.2
13964 # and later when we are not doing run time linking.
13965 library_names_spec='${libname}${release}.a $libname.a'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 fi
13968 shlibpath_var=LIBPATH
13969 fi
13970 ;;
13971
13972 amigaos*)
13973 case $host_cpu in
13974 powerpc)
13975 # Since July 2007 AmigaOS4 officially supports .so libraries.
13976 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 ;;
13979 m68k)
13980 library_names_spec='$libname.ixlibrary $libname.a'
13981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13982 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13983 ;;
13984 esac
13985 ;;
13986
13987 beos*)
13988 library_names_spec='${libname}${shared_ext}'
13989 dynamic_linker="$host_os ld.so"
13990 shlibpath_var=LIBRARY_PATH
13991 ;;
13992
13993 bsdi[45]*)
13994 version_type=linux
13995 need_version=no
13996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14002 # the default ld.so.conf also contains /usr/contrib/lib and
14003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14004 # libtool to hard-code these into programs
14005 ;;
14006
14007 cygwin* | mingw* | pw32* | cegcc*)
14008 version_type=windows
14009 shrext_cmds=".dll"
14010 need_version=no
14011 need_lib_prefix=no
14012
14013 case $GCC,$host_os in
14014 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14015 library_names_spec='$libname.dll.a'
14016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14017 postinstall_cmds='base_file=`basename \${file}`~
14018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14019 dldir=$destdir/`dirname \$dlpath`~
14020 test -d \$dldir || mkdir -p \$dldir~
14021 $install_prog $dir/$dlname \$dldir/$dlname~
14022 chmod a+x \$dldir/$dlname~
14023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14025 fi'
14026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14027 dlpath=$dir/\$dldll~
14028 $RM \$dlpath'
14029 shlibpath_overrides_runpath=yes
14030
14031 case $host_os in
14032 cygwin*)
14033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14035
14036 ;;
14037 mingw* | cegcc*)
14038 # MinGW DLLs use traditional 'lib' prefix
14039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14040 ;;
14041 pw32*)
14042 # pw32 DLLs use 'pw' prefix rather than 'lib'
14043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14044 ;;
14045 esac
14046 ;;
14047
14048 *)
14049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14050 ;;
14051 esac
14052 dynamic_linker='Win32 ld.exe'
14053 # FIXME: first we should search . and the directory the executable is in
14054 shlibpath_var=PATH
14055 ;;
14056
14057 darwin* | rhapsody*)
14058 dynamic_linker="$host_os dyld"
14059 version_type=darwin
14060 need_lib_prefix=no
14061 need_version=no
14062 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14063 soname_spec='${libname}${release}${major}$shared_ext'
14064 shlibpath_overrides_runpath=yes
14065 shlibpath_var=DYLD_LIBRARY_PATH
14066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14067
14068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14069 ;;
14070
14071 dgux*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 ;;
14079
14080 freebsd* | dragonfly*)
14081 # DragonFly does not have aout. When/if they implement a new
14082 # versioning mechanism, adjust this.
14083 if test -x /usr/bin/objformat; then
14084 objformat=`/usr/bin/objformat`
14085 else
14086 case $host_os in
14087 freebsd[23].*) objformat=aout ;;
14088 *) objformat=elf ;;
14089 esac
14090 fi
14091 version_type=freebsd-$objformat
14092 case $version_type in
14093 freebsd-elf*)
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14095 need_version=no
14096 need_lib_prefix=no
14097 ;;
14098 freebsd-*)
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14100 need_version=yes
14101 ;;
14102 esac
14103 shlibpath_var=LD_LIBRARY_PATH
14104 case $host_os in
14105 freebsd2.*)
14106 shlibpath_overrides_runpath=yes
14107 ;;
14108 freebsd3.[01]* | freebsdelf3.[01]*)
14109 shlibpath_overrides_runpath=yes
14110 hardcode_into_libs=yes
14111 ;;
14112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14114 shlibpath_overrides_runpath=no
14115 hardcode_into_libs=yes
14116 ;;
14117 *) # from 4.6 on, and DragonFly
14118 shlibpath_overrides_runpath=yes
14119 hardcode_into_libs=yes
14120 ;;
14121 esac
14122 ;;
14123
14124 gnu*)
14125 version_type=linux
14126 need_lib_prefix=no
14127 need_version=no
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 shlibpath_var=LD_LIBRARY_PATH
14131 hardcode_into_libs=yes
14132 ;;
14133
14134 haiku*)
14135 version_type=linux
14136 need_lib_prefix=no
14137 need_version=no
14138 dynamic_linker="$host_os runtime_loader"
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14144 hardcode_into_libs=yes
14145 ;;
14146
14147 hpux9* | hpux10* | hpux11*)
14148 # Give a soname corresponding to the major version so that dld.sl refuses to
14149 # link against other versions.
14150 version_type=sunos
14151 need_lib_prefix=no
14152 need_version=no
14153 case $host_cpu in
14154 ia64*)
14155 shrext_cmds='.so'
14156 hardcode_into_libs=yes
14157 dynamic_linker="$host_os dld.so"
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 if test "X$HPUX_IA64_MODE" = X32; then
14163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14164 else
14165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14166 fi
14167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14168 ;;
14169 hppa*64*)
14170 shrext_cmds='.sl'
14171 hardcode_into_libs=yes
14172 dynamic_linker="$host_os dld.sl"
14173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14179 ;;
14180 *)
14181 shrext_cmds='.sl'
14182 dynamic_linker="$host_os dld.sl"
14183 shlibpath_var=SHLIB_PATH
14184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 ;;
14188 esac
14189 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14190 postinstall_cmds='chmod 555 $lib'
14191 # or fails outright, so override atomically:
14192 install_override_mode=555
14193 ;;
14194
14195 interix[3-9]*)
14196 version_type=linux
14197 need_lib_prefix=no
14198 need_version=no
14199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath=no
14204 hardcode_into_libs=yes
14205 ;;
14206
14207 irix5* | irix6* | nonstopux*)
14208 case $host_os in
14209 nonstopux*) version_type=nonstopux ;;
14210 *)
14211 if test "$lt_cv_prog_gnu_ld" = yes; then
14212 version_type=linux
14213 else
14214 version_type=irix
14215 fi ;;
14216 esac
14217 need_lib_prefix=no
14218 need_version=no
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14221 case $host_os in
14222 irix5* | nonstopux*)
14223 libsuff= shlibsuff=
14224 ;;
14225 *)
14226 case $LD in # libtool.m4 will add one of these switches to LD
14227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14228 libsuff= shlibsuff= libmagic=32-bit;;
14229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14230 libsuff=32 shlibsuff=N32 libmagic=N32;;
14231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14233 *) libsuff= shlibsuff= libmagic=never-match;;
14234 esac
14235 ;;
14236 esac
14237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14238 shlibpath_overrides_runpath=no
14239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14241 hardcode_into_libs=yes
14242 ;;
14243
14244 # No shared lib support for Linux oldld, aout, or coff.
14245 linux*oldld* | linux*aout* | linux*coff*)
14246 dynamic_linker=no
14247 ;;
14248
14249 # This must be Linux ELF.
14250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14251 version_type=linux
14252 need_lib_prefix=no
14253 need_version=no
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=no
14259
14260 # Some binutils ld are patched to set DT_RUNPATH
14261 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14263 else
14264 lt_cv_shlibpath_overrides_runpath=no
14265 save_LDFLAGS=$LDFLAGS
14266 save_libdir=$libdir
14267 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14268 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_cxx_try_link "$LINENO"; then :
14281 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14282 lt_cv_shlibpath_overrides_runpath=yes
14283 fi
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 LDFLAGS=$save_LDFLAGS
14288 libdir=$save_libdir
14289
14290 fi
14291
14292 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14293
14294 # This implies no fast_install, which is unacceptable.
14295 # Some rework will be needed to allow for fast_install
14296 # before this can be enabled.
14297 hardcode_into_libs=yes
14298
14299 # Append ld.so.conf contents to the search path
14300 if test -f /etc/ld.so.conf; then
14301 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14303 fi
14304
14305 # We used to test for /lib/ld.so.1 and disable shared libraries on
14306 # powerpc, because MkLinux only supported shared libraries with the
14307 # GNU dynamic linker. Since this was broken with cross compilers,
14308 # most powerpc-linux boxes support dynamic linking these days and
14309 # people can always --disable-shared, the test was removed, and we
14310 # assume the GNU/Linux dynamic linker is in use.
14311 dynamic_linker='GNU/Linux ld.so'
14312 ;;
14313
14314 netbsd*)
14315 version_type=sunos
14316 need_lib_prefix=no
14317 need_version=no
14318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14321 dynamic_linker='NetBSD (a.out) ld.so'
14322 else
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 dynamic_linker='NetBSD ld.elf_so'
14326 fi
14327 shlibpath_var=LD_LIBRARY_PATH
14328 shlibpath_overrides_runpath=yes
14329 hardcode_into_libs=yes
14330 ;;
14331
14332 newsos6)
14333 version_type=linux
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=yes
14337 ;;
14338
14339 *nto* | *qnx*)
14340 version_type=qnx
14341 need_lib_prefix=no
14342 need_version=no
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344 soname_spec='${libname}${release}${shared_ext}$major'
14345 shlibpath_var=LD_LIBRARY_PATH
14346 shlibpath_overrides_runpath=no
14347 hardcode_into_libs=yes
14348 dynamic_linker='ldqnx.so'
14349 ;;
14350
14351 openbsd*)
14352 version_type=sunos
14353 sys_lib_dlsearch_path_spec="/usr/lib"
14354 need_lib_prefix=no
14355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14356 case $host_os in
14357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14358 *) need_version=no ;;
14359 esac
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14364 case $host_os in
14365 openbsd2.[89] | openbsd2.[89].*)
14366 shlibpath_overrides_runpath=no
14367 ;;
14368 *)
14369 shlibpath_overrides_runpath=yes
14370 ;;
14371 esac
14372 else
14373 shlibpath_overrides_runpath=yes
14374 fi
14375 ;;
14376
14377 os2*)
14378 libname_spec='$name'
14379 shrext_cmds=".dll"
14380 need_lib_prefix=no
14381 library_names_spec='$libname${shared_ext} $libname.a'
14382 dynamic_linker='OS/2 ld.exe'
14383 shlibpath_var=LIBPATH
14384 ;;
14385
14386 osf3* | osf4* | osf5*)
14387 version_type=osf
14388 need_lib_prefix=no
14389 need_version=no
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14395 ;;
14396
14397 rdos*)
14398 dynamic_linker=no
14399 ;;
14400
14401 solaris*)
14402 version_type=linux
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 shlibpath_overrides_runpath=yes
14409 hardcode_into_libs=yes
14410 # ldd complains unless libraries are executable
14411 postinstall_cmds='chmod +x $lib'
14412 ;;
14413
14414 sunos4*)
14415 version_type=sunos
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 if test "$with_gnu_ld" = yes; then
14421 need_lib_prefix=no
14422 fi
14423 need_version=yes
14424 ;;
14425
14426 sysv4 | sysv4.3*)
14427 version_type=linux
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 case $host_vendor in
14432 sni)
14433 shlibpath_overrides_runpath=no
14434 need_lib_prefix=no
14435 runpath_var=LD_RUN_PATH
14436 ;;
14437 siemens)
14438 need_lib_prefix=no
14439 ;;
14440 motorola)
14441 need_lib_prefix=no
14442 need_version=no
14443 shlibpath_overrides_runpath=no
14444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14445 ;;
14446 esac
14447 ;;
14448
14449 sysv4*MP*)
14450 if test -d /usr/nec ;then
14451 version_type=linux
14452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14453 soname_spec='$libname${shared_ext}.$major'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 fi
14456 ;;
14457
14458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14459 version_type=freebsd-elf
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=yes
14466 hardcode_into_libs=yes
14467 if test "$with_gnu_ld" = yes; then
14468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14469 else
14470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14471 case $host_os in
14472 sco3.2v5*)
14473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14474 ;;
14475 esac
14476 fi
14477 sys_lib_dlsearch_path_spec='/usr/lib'
14478 ;;
14479
14480 tpf*)
14481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14489 ;;
14490
14491 uts4*)
14492 version_type=linux
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 shlibpath_var=LD_LIBRARY_PATH
14496 ;;
14497
14498 *)
14499 dynamic_linker=no
14500 ;;
14501 esac
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14503 $as_echo "$dynamic_linker" >&6; }
14504 test "$dynamic_linker" = no && can_build_shared=no
14505
14506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14507 if test "$GCC" = yes; then
14508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14509 fi
14510
14511 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14512 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14513 fi
14514 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14515 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14516 fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14556 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14557 hardcode_action_CXX=
14558 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14559 test -n "$runpath_var_CXX" ||
14560 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14561
14562 # We can hardcode non-existent directories.
14563 if test "$hardcode_direct_CXX" != no &&
14564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14565 # have to relink, otherwise we might link with an installed library
14566 # when we should be linking with a yet-to-be-installed one
14567 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14568 test "$hardcode_minus_L_CXX" != no; then
14569 # Linking always hardcodes the temporary library directory.
14570 hardcode_action_CXX=relink
14571 else
14572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14573 hardcode_action_CXX=immediate
14574 fi
14575 else
14576 # We cannot hardcode anything, or else we can only hardcode existing
14577 # directories.
14578 hardcode_action_CXX=unsupported
14579 fi
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14581 $as_echo "$hardcode_action_CXX" >&6; }
14582
14583 if test "$hardcode_action_CXX" = relink ||
14584 test "$inherit_rpath_CXX" = yes; then
14585 # Fast installation is not supported
14586 enable_fast_install=no
14587 elif test "$shlibpath_overrides_runpath" = yes ||
14588 test "$enable_shared" = no; then
14589 # Fast installation is not necessary
14590 enable_fast_install=needless
14591 fi
14592
14593
14594
14595
14596
14597
14598
14599 fi # test -n "$compiler"
14600
14601 CC=$lt_save_CC
14602 LDCXX=$LD
14603 LD=$lt_save_LD
14604 GCC=$lt_save_GCC
14605 with_gnu_ld=$lt_save_with_gnu_ld
14606 lt_cv_path_LDCXX=$lt_cv_path_LD
14607 lt_cv_path_LD=$lt_save_path_LD
14608 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14609 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14610 fi # test "$_lt_caught_CXX_error" != yes
14611
14612 ac_ext=c
14613 ac_cpp='$CPP $CPPFLAGS'
14614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630 ac_config_commands="$ac_config_commands libtool"
14631
14632
14633
14634
14635 # Only expand once:
14636
14637
14638
14639
14640
14641 # For libtool versioning info, format is CURRENT:REVISION:AGE
14642 libtool_VERSION=1:0:0
14643
14644
14645 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
14646
14647
14648 if test "${multilib}" = "yes"; then
14649 multilib_arg="--enable-multilib"
14650 else
14651 multilib_arg=
14652 fi
14653
14654 ac_config_files="$ac_config_files Makefile"
14655
14656
14657 if test "x$VTV_SUPPORTED" = "xyes"; then
14658 ac_config_files="$ac_config_files ./Makefile testsuite/Makefile"
14659
14660 fi
14661
14662 cat >confcache <<\_ACEOF
14663 # This file is a shell script that caches the results of configure
14664 # tests run on this system so they can be shared between configure
14665 # scripts and configure runs, see configure's option --config-cache.
14666 # It is not useful on other systems. If it contains results you don't
14667 # want to keep, you may remove or edit it.
14668 #
14669 # config.status only pays attention to the cache file if you give it
14670 # the --recheck option to rerun configure.
14671 #
14672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14674 # following values.
14675
14676 _ACEOF
14677
14678 # The following way of writing the cache mishandles newlines in values,
14679 # but we know of no workaround that is simple, portable, and efficient.
14680 # So, we kill variables containing newlines.
14681 # Ultrix sh set writes to stderr and can't be redirected directly,
14682 # and sets the high bit in the cache file unless we assign to the vars.
14683 (
14684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14685 eval ac_val=\$$ac_var
14686 case $ac_val in #(
14687 *${as_nl}*)
14688 case $ac_var in #(
14689 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14691 esac
14692 case $ac_var in #(
14693 _ | IFS | as_nl) ;; #(
14694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14695 *) { eval $ac_var=; unset $ac_var;} ;;
14696 esac ;;
14697 esac
14698 done
14699
14700 (set) 2>&1 |
14701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14702 *${as_nl}ac_space=\ *)
14703 # `set' does not quote correctly, so add quotes: double-quote
14704 # substitution turns \\\\ into \\, and sed turns \\ into \.
14705 sed -n \
14706 "s/'/'\\\\''/g;
14707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14708 ;; #(
14709 *)
14710 # `set' quotes correctly as required by POSIX, so do not add quotes.
14711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14712 ;;
14713 esac |
14714 sort
14715 ) |
14716 sed '
14717 /^ac_cv_env_/b end
14718 t clear
14719 :clear
14720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14721 t end
14722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14723 :end' >>confcache
14724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14725 if test -w "$cache_file"; then
14726 test "x$cache_file" != "x/dev/null" &&
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14728 $as_echo "$as_me: updating cache $cache_file" >&6;}
14729 cat confcache >$cache_file
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14732 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14733 fi
14734 fi
14735 rm -f confcache
14736
14737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14738 # Let make expand exec_prefix.
14739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14740
14741 # Transform confdefs.h into DEFS.
14742 # Protect against shell expansion while executing Makefile rules.
14743 # Protect against Makefile macro expansion.
14744 #
14745 # If the first sed substitution is executed (which looks for macros that
14746 # take arguments), then branch to the quote section. Otherwise,
14747 # look for a macro that doesn't take arguments.
14748 ac_script='
14749 :mline
14750 /\\$/{
14751 N
14752 s,\\\n,,
14753 b mline
14754 }
14755 t clear
14756 :clear
14757 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14758 t quote
14759 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14760 t quote
14761 b any
14762 :quote
14763 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14764 s/\[/\\&/g
14765 s/\]/\\&/g
14766 s/\$/$$/g
14767 H
14768 :any
14769 ${
14770 g
14771 s/^\n//
14772 s/\n/ /g
14773 p
14774 }
14775 '
14776 DEFS=`sed -n "$ac_script" confdefs.h`
14777
14778
14779 ac_libobjs=
14780 ac_ltlibobjs=
14781 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14782 # 1. Remove the extension, and $U if already installed.
14783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14786 # will be set to the directory where LIBOBJS objects are built.
14787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14789 done
14790 LIBOBJS=$ac_libobjs
14791
14792 LTLIBOBJS=$ac_ltlibobjs
14793
14794
14795 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
14796 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
14797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 fi
14799 if test -n "$EXEEXT"; then
14800 am__EXEEXT_TRUE=
14801 am__EXEEXT_FALSE='#'
14802 else
14803 am__EXEEXT_TRUE='#'
14804 am__EXEEXT_FALSE=
14805 fi
14806
14807 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14808 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14812 as_fn_error "conditional \"AMDEP\" was never defined.
14813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 fi
14815 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14816 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 fi
14819 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14820 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14822 fi
14823
14824 : ${CONFIG_STATUS=./config.status}
14825 ac_write_fail=0
14826 ac_clean_files_save=$ac_clean_files
14827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14830 as_write_fail=0
14831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14832 #! $SHELL
14833 # Generated by $as_me.
14834 # Run this file to recreate the current configuration.
14835 # Compiler output produced by configure, useful for debugging
14836 # configure, is in config.log if it exists.
14837
14838 debug=false
14839 ac_cs_recheck=false
14840 ac_cs_silent=false
14841
14842 SHELL=\${CONFIG_SHELL-$SHELL}
14843 export SHELL
14844 _ASEOF
14845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14846 ## -------------------- ##
14847 ## M4sh Initialization. ##
14848 ## -------------------- ##
14849
14850 # Be more Bourne compatible
14851 DUALCASE=1; export DUALCASE # for MKS sh
14852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14853 emulate sh
14854 NULLCMD=:
14855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14856 # is contrary to our usage. Disable this feature.
14857 alias -g '${1+"$@"}'='"$@"'
14858 setopt NO_GLOB_SUBST
14859 else
14860 case `(set -o) 2>/dev/null` in #(
14861 *posix*) :
14862 set -o posix ;; #(
14863 *) :
14864 ;;
14865 esac
14866 fi
14867
14868
14869 as_nl='
14870 '
14871 export as_nl
14872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14876 # Prefer a ksh shell builtin over an external printf program on Solaris,
14877 # but without wasting forks for bash or zsh.
14878 if test -z "$BASH_VERSION$ZSH_VERSION" \
14879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14880 as_echo='print -r --'
14881 as_echo_n='print -rn --'
14882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14883 as_echo='printf %s\n'
14884 as_echo_n='printf %s'
14885 else
14886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14888 as_echo_n='/usr/ucb/echo -n'
14889 else
14890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14891 as_echo_n_body='eval
14892 arg=$1;
14893 case $arg in #(
14894 *"$as_nl"*)
14895 expr "X$arg" : "X\\(.*\\)$as_nl";
14896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14897 esac;
14898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14899 '
14900 export as_echo_n_body
14901 as_echo_n='sh -c $as_echo_n_body as_echo'
14902 fi
14903 export as_echo_body
14904 as_echo='sh -c $as_echo_body as_echo'
14905 fi
14906
14907 # The user is always right.
14908 if test "${PATH_SEPARATOR+set}" != set; then
14909 PATH_SEPARATOR=:
14910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14912 PATH_SEPARATOR=';'
14913 }
14914 fi
14915
14916
14917 # IFS
14918 # We need space, tab and new line, in precisely that order. Quoting is
14919 # there to prevent editors from complaining about space-tab.
14920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14921 # splitting by setting IFS to empty value.)
14922 IFS=" "" $as_nl"
14923
14924 # Find who we are. Look in the path if we contain no directory separator.
14925 case $0 in #((
14926 *[\\/]* ) as_myself=$0 ;;
14927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930 IFS=$as_save_IFS
14931 test -z "$as_dir" && as_dir=.
14932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14933 done
14934 IFS=$as_save_IFS
14935
14936 ;;
14937 esac
14938 # We did not find ourselves, most probably we were run as `sh COMMAND'
14939 # in which case we are not to be found in the path.
14940 if test "x$as_myself" = x; then
14941 as_myself=$0
14942 fi
14943 if test ! -f "$as_myself"; then
14944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14945 exit 1
14946 fi
14947
14948 # Unset variables that we do not need and which cause bugs (e.g. in
14949 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14950 # suppresses any "Segmentation fault" message there. '((' could
14951 # trigger a bug in pdksh 5.2.14.
14952 for as_var in BASH_ENV ENV MAIL MAILPATH
14953 do eval test x\${$as_var+set} = xset \
14954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14955 done
14956 PS1='$ '
14957 PS2='> '
14958 PS4='+ '
14959
14960 # NLS nuisances.
14961 LC_ALL=C
14962 export LC_ALL
14963 LANGUAGE=C
14964 export LANGUAGE
14965
14966 # CDPATH.
14967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14968
14969
14970 # as_fn_error ERROR [LINENO LOG_FD]
14971 # ---------------------------------
14972 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14973 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14974 # script with status $?, using 1 if that was 0.
14975 as_fn_error ()
14976 {
14977 as_status=$?; test $as_status -eq 0 && as_status=1
14978 if test "$3"; then
14979 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14981 fi
14982 $as_echo "$as_me: error: $1" >&2
14983 as_fn_exit $as_status
14984 } # as_fn_error
14985
14986
14987 # as_fn_set_status STATUS
14988 # -----------------------
14989 # Set $? to STATUS, without forking.
14990 as_fn_set_status ()
14991 {
14992 return $1
14993 } # as_fn_set_status
14994
14995 # as_fn_exit STATUS
14996 # -----------------
14997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14998 as_fn_exit ()
14999 {
15000 set +e
15001 as_fn_set_status $1
15002 exit $1
15003 } # as_fn_exit
15004
15005 # as_fn_unset VAR
15006 # ---------------
15007 # Portably unset VAR.
15008 as_fn_unset ()
15009 {
15010 { eval $1=; unset $1;}
15011 }
15012 as_unset=as_fn_unset
15013 # as_fn_append VAR VALUE
15014 # ----------------------
15015 # Append the text in VALUE to the end of the definition contained in VAR. Take
15016 # advantage of any shell optimizations that allow amortized linear growth over
15017 # repeated appends, instead of the typical quadratic growth present in naive
15018 # implementations.
15019 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15020 eval 'as_fn_append ()
15021 {
15022 eval $1+=\$2
15023 }'
15024 else
15025 as_fn_append ()
15026 {
15027 eval $1=\$$1\$2
15028 }
15029 fi # as_fn_append
15030
15031 # as_fn_arith ARG...
15032 # ------------------
15033 # Perform arithmetic evaluation on the ARGs, and store the result in the
15034 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15035 # must be portable across $(()) and expr.
15036 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15037 eval 'as_fn_arith ()
15038 {
15039 as_val=$(( $* ))
15040 }'
15041 else
15042 as_fn_arith ()
15043 {
15044 as_val=`expr "$@" || test $? -eq 1`
15045 }
15046 fi # as_fn_arith
15047
15048
15049 if expr a : '\(a\)' >/dev/null 2>&1 &&
15050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15051 as_expr=expr
15052 else
15053 as_expr=false
15054 fi
15055
15056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15057 as_basename=basename
15058 else
15059 as_basename=false
15060 fi
15061
15062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15063 as_dirname=dirname
15064 else
15065 as_dirname=false
15066 fi
15067
15068 as_me=`$as_basename -- "$0" ||
15069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15070 X"$0" : 'X\(//\)$' \| \
15071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15072 $as_echo X/"$0" |
15073 sed '/^.*\/\([^/][^/]*\)\/*$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\/\(\/\/\)$/{
15078 s//\1/
15079 q
15080 }
15081 /^X\/\(\/\).*/{
15082 s//\1/
15083 q
15084 }
15085 s/.*/./; q'`
15086
15087 # Avoid depending upon Character Ranges.
15088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15091 as_cr_digits='0123456789'
15092 as_cr_alnum=$as_cr_Letters$as_cr_digits
15093
15094 ECHO_C= ECHO_N= ECHO_T=
15095 case `echo -n x` in #(((((
15096 -n*)
15097 case `echo 'xy\c'` in
15098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15099 xy) ECHO_C='\c';;
15100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15101 ECHO_T=' ';;
15102 esac;;
15103 *)
15104 ECHO_N='-n';;
15105 esac
15106
15107 rm -f conf$$ conf$$.exe conf$$.file
15108 if test -d conf$$.dir; then
15109 rm -f conf$$.dir/conf$$.file
15110 else
15111 rm -f conf$$.dir
15112 mkdir conf$$.dir 2>/dev/null
15113 fi
15114 if (echo >conf$$.file) 2>/dev/null; then
15115 if ln -s conf$$.file conf$$ 2>/dev/null; then
15116 as_ln_s='ln -s'
15117 # ... but there are two gotchas:
15118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15120 # In both cases, we have to default to `cp -p'.
15121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15122 as_ln_s='cp -p'
15123 elif ln conf$$.file conf$$ 2>/dev/null; then
15124 as_ln_s=ln
15125 else
15126 as_ln_s='cp -p'
15127 fi
15128 else
15129 as_ln_s='cp -p'
15130 fi
15131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15132 rmdir conf$$.dir 2>/dev/null
15133
15134
15135 # as_fn_mkdir_p
15136 # -------------
15137 # Create "$as_dir" as a directory, including parents if necessary.
15138 as_fn_mkdir_p ()
15139 {
15140
15141 case $as_dir in #(
15142 -*) as_dir=./$as_dir;;
15143 esac
15144 test -d "$as_dir" || eval $as_mkdir_p || {
15145 as_dirs=
15146 while :; do
15147 case $as_dir in #(
15148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15149 *) as_qdir=$as_dir;;
15150 esac
15151 as_dirs="'$as_qdir' $as_dirs"
15152 as_dir=`$as_dirname -- "$as_dir" ||
15153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15154 X"$as_dir" : 'X\(//\)[^/]' \| \
15155 X"$as_dir" : 'X\(//\)$' \| \
15156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15157 $as_echo X"$as_dir" |
15158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15159 s//\1/
15160 q
15161 }
15162 /^X\(\/\/\)[^/].*/{
15163 s//\1/
15164 q
15165 }
15166 /^X\(\/\/\)$/{
15167 s//\1/
15168 q
15169 }
15170 /^X\(\/\).*/{
15171 s//\1/
15172 q
15173 }
15174 s/.*/./; q'`
15175 test -d "$as_dir" && break
15176 done
15177 test -z "$as_dirs" || eval "mkdir $as_dirs"
15178 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15179
15180
15181 } # as_fn_mkdir_p
15182 if mkdir -p . 2>/dev/null; then
15183 as_mkdir_p='mkdir -p "$as_dir"'
15184 else
15185 test -d ./-p && rmdir ./-p
15186 as_mkdir_p=false
15187 fi
15188
15189 if test -x / >/dev/null 2>&1; then
15190 as_test_x='test -x'
15191 else
15192 if ls -dL / >/dev/null 2>&1; then
15193 as_ls_L_option=L
15194 else
15195 as_ls_L_option=
15196 fi
15197 as_test_x='
15198 eval sh -c '\''
15199 if test -d "$1"; then
15200 test -d "$1/.";
15201 else
15202 case $1 in #(
15203 -*)set "./$1";;
15204 esac;
15205 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15206 ???[sx]*):;;*)false;;esac;fi
15207 '\'' sh
15208 '
15209 fi
15210 as_executable_p=$as_test_x
15211
15212 # Sed expression to map a string onto a valid CPP name.
15213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15214
15215 # Sed expression to map a string onto a valid variable name.
15216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15217
15218
15219 exec 6>&1
15220 ## ----------------------------------- ##
15221 ## Main body of $CONFIG_STATUS script. ##
15222 ## ----------------------------------- ##
15223 _ASEOF
15224 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15225
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # Save the log message, to keep $0 and so on meaningful, and to
15228 # report actual input values of CONFIG_FILES etc. instead of their
15229 # values after options handling.
15230 ac_log="
15231 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
15232 generated by GNU Autoconf 2.64. Invocation command line was
15233
15234 CONFIG_FILES = $CONFIG_FILES
15235 CONFIG_HEADERS = $CONFIG_HEADERS
15236 CONFIG_LINKS = $CONFIG_LINKS
15237 CONFIG_COMMANDS = $CONFIG_COMMANDS
15238 $ $0 $@
15239
15240 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15241 "
15242
15243 _ACEOF
15244
15245 case $ac_config_files in *"
15246 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15247 esac
15248
15249
15250
15251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15252 # Files that config.status was made for.
15253 config_files="$ac_config_files"
15254 config_commands="$ac_config_commands"
15255
15256 _ACEOF
15257
15258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15259 ac_cs_usage="\
15260 \`$as_me' instantiates files and other configuration actions
15261 from templates according to the current configuration. Unless the files
15262 and actions are specified as TAGs, all are instantiated by default.
15263
15264 Usage: $0 [OPTION]... [TAG]...
15265
15266 -h, --help print this help, then exit
15267 -V, --version print version number and configuration settings, then exit
15268 -q, --quiet, --silent
15269 do not print progress messages
15270 -d, --debug don't remove temporary files
15271 --recheck update $as_me by reconfiguring in the same conditions
15272 --file=FILE[:TEMPLATE]
15273 instantiate the configuration file FILE
15274
15275 Configuration files:
15276 $config_files
15277
15278 Configuration commands:
15279 $config_commands
15280
15281 Report bugs to the package provider.
15282 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
15283 General help using GNU software: <http://www.gnu.org/gethelp/>."
15284
15285 _ACEOF
15286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 ac_cs_version="\\
15288 GNU Vtable Verification Runtime Library config.status 1.0
15289 configured by $0, generated by GNU Autoconf 2.64,
15290 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15291
15292 Copyright (C) 2009 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15295
15296 ac_pwd='$ac_pwd'
15297 srcdir='$srcdir'
15298 INSTALL='$INSTALL'
15299 MKDIR_P='$MKDIR_P'
15300 AWK='$AWK'
15301 test -n "\$AWK" || AWK=awk
15302 _ACEOF
15303
15304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15305 # The default lists apply if the user does not specify any file.
15306 ac_need_defaults=:
15307 while test $# != 0
15308 do
15309 case $1 in
15310 --*=*)
15311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15313 ac_shift=:
15314 ;;
15315 *)
15316 ac_option=$1
15317 ac_optarg=$2
15318 ac_shift=shift
15319 ;;
15320 esac
15321
15322 case $ac_option in
15323 # Handling of the options.
15324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15325 ac_cs_recheck=: ;;
15326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15327 $as_echo "$ac_cs_version"; exit ;;
15328 --debug | --debu | --deb | --de | --d | -d )
15329 debug=: ;;
15330 --file | --fil | --fi | --f )
15331 $ac_shift
15332 case $ac_optarg in
15333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15334 esac
15335 as_fn_append CONFIG_FILES " '$ac_optarg'"
15336 ac_need_defaults=false;;
15337 --he | --h | --help | --hel | -h )
15338 $as_echo "$ac_cs_usage"; exit ;;
15339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15341 ac_cs_silent=: ;;
15342
15343 # This is an error.
15344 -*) as_fn_error "unrecognized option: \`$1'
15345 Try \`$0 --help' for more information." ;;
15346
15347 *) as_fn_append ac_config_targets " $1"
15348 ac_need_defaults=false ;;
15349
15350 esac
15351 shift
15352 done
15353
15354 ac_configure_extra_args=
15355
15356 if $ac_cs_silent; then
15357 exec 6>/dev/null
15358 ac_configure_extra_args="$ac_configure_extra_args --silent"
15359 fi
15360
15361 _ACEOF
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363 if \$ac_cs_recheck; then
15364 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15365 shift
15366 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15367 CONFIG_SHELL='$SHELL'
15368 export CONFIG_SHELL
15369 exec "\$@"
15370 fi
15371
15372 _ACEOF
15373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15374 exec 5>>config.log
15375 {
15376 echo
15377 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15378 ## Running $as_me. ##
15379 _ASBOX
15380 $as_echo "$ac_log"
15381 } >&5
15382
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15385 #
15386 # INIT-COMMANDS
15387 #
15388
15389 srcdir="$srcdir"
15390 host="$host"
15391 target="$target"
15392 with_multisubdir="$with_multisubdir"
15393 with_multisrctop="$with_multisrctop"
15394 with_target_subdir="$with_target_subdir"
15395 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15396 multi_basedir="$multi_basedir"
15397 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15398 CC="$CC"
15399 CXX="$CXX"
15400 GFORTRAN="$GFORTRAN"
15401 GCJ="$GCJ"
15402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15403
15404
15405 # The HP-UX ksh and POSIX shell print the target directory to stdout
15406 # if CDPATH is set.
15407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15408
15409 sed_quote_subst='$sed_quote_subst'
15410 double_quote_subst='$double_quote_subst'
15411 delay_variable_subst='$delay_variable_subst'
15412 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15413 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15414 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15415 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15416 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15417 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15418 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15419 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15420 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15421 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15422 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15423 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15424 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15425 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15426 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15427 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15428 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15429 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15430 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15431 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15432 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15433 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15434 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15435 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15436 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15437 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15438 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15439 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15440 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15441 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15442 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15443 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15444 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15445 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15446 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15447 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15448 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15449 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15450 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15451 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15452 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15453 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15454 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15455 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15456 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15457 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15458 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15459 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15460 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15461 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15462 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15463 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15464 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15465 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15466 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15467 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15468 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15469 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15470 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15471 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15472 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15473 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15474 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15475 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15476 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15477 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15478 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15479 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15480 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15481 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15482 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15483 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15484 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15485 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15486 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15487 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15488 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15489 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15490 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15491 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15492 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15493 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15494 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15495 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15496 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15497 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15498 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15499 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15500 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15501 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15502 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15503 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15504 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15505 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15506 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15507 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15508 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15509 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15510 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15511 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15512 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15513 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15514 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15515 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15516 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15517 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15518 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15519 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15520 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15521 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15522 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15523 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15524 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15525 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15526 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15527 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15528 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15529 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15530 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15531 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15532 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15533 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15534 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15535 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15536 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15537 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15538 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15539 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15540 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15541 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15542 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15543 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15544 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15545 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15546 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15547 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15548 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15549 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15550 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15551 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15552 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15553 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15554 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15555 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15556 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15557 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15558 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15559 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15560 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15561 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15562 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15563 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15564 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15565 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15566 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15567 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15568 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15569 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15570 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15571 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15572 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15573 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15574 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15575 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15576 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15577 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15578 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15579 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15580 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15581 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15582 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15583 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15584 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15585 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15586 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15587
15588 LTCC='$LTCC'
15589 LTCFLAGS='$LTCFLAGS'
15590 compiler='$compiler_DEFAULT'
15591
15592 # A function that is used when there is no print builtin or printf.
15593 func_fallback_echo ()
15594 {
15595 eval 'cat <<_LTECHO_EOF
15596 \$1
15597 _LTECHO_EOF'
15598 }
15599
15600 # Quote evaled strings.
15601 for var in SHELL \
15602 ECHO \
15603 SED \
15604 GREP \
15605 EGREP \
15606 FGREP \
15607 LD \
15608 NM \
15609 LN_S \
15610 lt_SP2NL \
15611 lt_NL2SP \
15612 reload_flag \
15613 OBJDUMP \
15614 deplibs_check_method \
15615 file_magic_cmd \
15616 AR \
15617 AR_FLAGS \
15618 STRIP \
15619 RANLIB \
15620 CC \
15621 CFLAGS \
15622 compiler \
15623 lt_cv_sys_global_symbol_pipe \
15624 lt_cv_sys_global_symbol_to_cdecl \
15625 lt_cv_sys_global_symbol_to_c_name_address \
15626 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15627 lt_prog_compiler_no_builtin_flag \
15628 lt_prog_compiler_wl \
15629 lt_prog_compiler_pic \
15630 lt_prog_compiler_static \
15631 lt_cv_prog_compiler_c_o \
15632 need_locks \
15633 DSYMUTIL \
15634 NMEDIT \
15635 LIPO \
15636 OTOOL \
15637 OTOOL64 \
15638 shrext_cmds \
15639 export_dynamic_flag_spec \
15640 whole_archive_flag_spec \
15641 compiler_needs_object \
15642 with_gnu_ld \
15643 allow_undefined_flag \
15644 no_undefined_flag \
15645 hardcode_libdir_flag_spec \
15646 hardcode_libdir_flag_spec_ld \
15647 hardcode_libdir_separator \
15648 fix_srcfile_path \
15649 exclude_expsyms \
15650 include_expsyms \
15651 file_list_spec \
15652 variables_saved_for_relink \
15653 libname_spec \
15654 library_names_spec \
15655 soname_spec \
15656 install_override_mode \
15657 finish_eval \
15658 old_striplib \
15659 striplib \
15660 compiler_lib_search_dirs \
15661 predep_objects \
15662 postdep_objects \
15663 predeps \
15664 postdeps \
15665 compiler_lib_search_path \
15666 LD_CXX \
15667 reload_flag_CXX \
15668 compiler_CXX \
15669 lt_prog_compiler_no_builtin_flag_CXX \
15670 lt_prog_compiler_wl_CXX \
15671 lt_prog_compiler_pic_CXX \
15672 lt_prog_compiler_static_CXX \
15673 lt_cv_prog_compiler_c_o_CXX \
15674 export_dynamic_flag_spec_CXX \
15675 whole_archive_flag_spec_CXX \
15676 compiler_needs_object_CXX \
15677 with_gnu_ld_CXX \
15678 allow_undefined_flag_CXX \
15679 no_undefined_flag_CXX \
15680 hardcode_libdir_flag_spec_CXX \
15681 hardcode_libdir_flag_spec_ld_CXX \
15682 hardcode_libdir_separator_CXX \
15683 fix_srcfile_path_CXX \
15684 exclude_expsyms_CXX \
15685 include_expsyms_CXX \
15686 file_list_spec_CXX \
15687 compiler_lib_search_dirs_CXX \
15688 predep_objects_CXX \
15689 postdep_objects_CXX \
15690 predeps_CXX \
15691 postdeps_CXX \
15692 compiler_lib_search_path_CXX; do
15693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15694 *[\\\\\\\`\\"\\\$]*)
15695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15696 ;;
15697 *)
15698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15699 ;;
15700 esac
15701 done
15702
15703 # Double-quote double-evaled strings.
15704 for var in reload_cmds \
15705 old_postinstall_cmds \
15706 old_postuninstall_cmds \
15707 old_archive_cmds \
15708 extract_expsyms_cmds \
15709 old_archive_from_new_cmds \
15710 old_archive_from_expsyms_cmds \
15711 archive_cmds \
15712 archive_expsym_cmds \
15713 module_cmds \
15714 module_expsym_cmds \
15715 export_symbols_cmds \
15716 prelink_cmds \
15717 postinstall_cmds \
15718 postuninstall_cmds \
15719 finish_cmds \
15720 sys_lib_search_path_spec \
15721 sys_lib_dlsearch_path_spec \
15722 reload_cmds_CXX \
15723 old_archive_cmds_CXX \
15724 old_archive_from_new_cmds_CXX \
15725 old_archive_from_expsyms_cmds_CXX \
15726 archive_cmds_CXX \
15727 archive_expsym_cmds_CXX \
15728 module_cmds_CXX \
15729 module_expsym_cmds_CXX \
15730 export_symbols_cmds_CXX \
15731 prelink_cmds_CXX; do
15732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15733 *[\\\\\\\`\\"\\\$]*)
15734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15735 ;;
15736 *)
15737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15738 ;;
15739 esac
15740 done
15741
15742 ac_aux_dir='$ac_aux_dir'
15743 xsi_shell='$xsi_shell'
15744 lt_shell_append='$lt_shell_append'
15745
15746 # See if we are running on zsh, and set the options which allow our
15747 # commands through without removal of \ escapes INIT.
15748 if test -n "\${ZSH_VERSION+set}" ; then
15749 setopt NO_GLOB_SUBST
15750 fi
15751
15752
15753 PACKAGE='$PACKAGE'
15754 VERSION='$VERSION'
15755 TIMESTAMP='$TIMESTAMP'
15756 RM='$RM'
15757 ofile='$ofile'
15758
15759
15760
15761
15762
15763
15764 _ACEOF
15765
15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767
15768 # Handling of arguments.
15769 for ac_config_target in $ac_config_targets
15770 do
15771 case $ac_config_target in
15772 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15773 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15774 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15775 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15776 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
15777 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15778
15779 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15780 esac
15781 done
15782
15783
15784 # If the user did not use the arguments to specify the items to instantiate,
15785 # then the envvar interface is used. Set only those that are not.
15786 # We use the long form for the default assignment because of an extremely
15787 # bizarre bug on SunOS 4.1.3.
15788 if $ac_need_defaults; then
15789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15791 fi
15792
15793 # Have a temporary directory for convenience. Make it in the build tree
15794 # simply because there is no reason against having it here, and in addition,
15795 # creating and moving files from /tmp can sometimes cause problems.
15796 # Hook for its removal unless debugging.
15797 # Note that there is a small window in which the directory will not be cleaned:
15798 # after its creation but before its name has been assigned to `$tmp'.
15799 $debug ||
15800 {
15801 tmp=
15802 trap 'exit_status=$?
15803 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15804 ' 0
15805 trap 'as_fn_exit 1' 1 2 13 15
15806 }
15807 # Create a (secure) tmp directory for tmp files.
15808
15809 {
15810 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15811 test -n "$tmp" && test -d "$tmp"
15812 } ||
15813 {
15814 tmp=./conf$$-$RANDOM
15815 (umask 077 && mkdir "$tmp")
15816 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15817
15818 # Set up the scripts for CONFIG_FILES section.
15819 # No need to generate them if there are no CONFIG_FILES.
15820 # This happens for instance with `./config.status config.h'.
15821 if test -n "$CONFIG_FILES"; then
15822
15823
15824 ac_cr=`echo X | tr X '\015'`
15825 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15826 # But we know of no other shell where ac_cr would be empty at this
15827 # point, so we can use a bashism as a fallback.
15828 if test "x$ac_cr" = x; then
15829 eval ac_cr=\$\'\\r\'
15830 fi
15831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15833 ac_cs_awk_cr='\r'
15834 else
15835 ac_cs_awk_cr=$ac_cr
15836 fi
15837
15838 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15839 _ACEOF
15840
15841
15842 {
15843 echo "cat >conf$$subs.awk <<_ACEOF" &&
15844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15845 echo "_ACEOF"
15846 } >conf$$subs.sh ||
15847 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15848 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15849 ac_delim='%!_!# '
15850 for ac_last_try in false false false false false :; do
15851 . ./conf$$subs.sh ||
15852 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15853
15854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15855 if test $ac_delim_n = $ac_delim_num; then
15856 break
15857 elif $ac_last_try; then
15858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15859 else
15860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15861 fi
15862 done
15863 rm -f conf$$subs.sh
15864
15865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15866 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15867 _ACEOF
15868 sed -n '
15869 h
15870 s/^/S["/; s/!.*/"]=/
15871 p
15872 g
15873 s/^[^!]*!//
15874 :repl
15875 t repl
15876 s/'"$ac_delim"'$//
15877 t delim
15878 :nl
15879 h
15880 s/\(.\{148\}\).*/\1/
15881 t more1
15882 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15883 p
15884 n
15885 b repl
15886 :more1
15887 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15888 p
15889 g
15890 s/.\{148\}//
15891 t nl
15892 :delim
15893 h
15894 s/\(.\{148\}\).*/\1/
15895 t more2
15896 s/["\\]/\\&/g; s/^/"/; s/$/"/
15897 p
15898 b
15899 :more2
15900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15901 p
15902 g
15903 s/.\{148\}//
15904 t delim
15905 ' <conf$$subs.awk | sed '
15906 /^[^""]/{
15907 N
15908 s/\n//
15909 }
15910 ' >>$CONFIG_STATUS || ac_write_fail=1
15911 rm -f conf$$subs.awk
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 _ACAWK
15914 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15915 for (key in S) S_is_set[key] = 1
15916 FS = "\a"
15917
15918 }
15919 {
15920 line = $ 0
15921 nfields = split(line, field, "@")
15922 substed = 0
15923 len = length(field[1])
15924 for (i = 2; i < nfields; i++) {
15925 key = field[i]
15926 keylen = length(key)
15927 if (S_is_set[key]) {
15928 value = S[key]
15929 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15930 len += length(value) + length(field[++i])
15931 substed = 1
15932 } else
15933 len += 1 + keylen
15934 }
15935
15936 print line
15937 }
15938
15939 _ACAWK
15940 _ACEOF
15941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15943 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15944 else
15945 cat
15946 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15947 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15948 _ACEOF
15949
15950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15952 # trailing colons and then remove the whole line if VPATH becomes empty
15953 # (actually we leave an empty line to preserve line numbers).
15954 if test "x$srcdir" = x.; then
15955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15956 s/:*\$(srcdir):*/:/
15957 s/:*\${srcdir}:*/:/
15958 s/:*@srcdir@:*/:/
15959 s/^\([^=]*=[ ]*\):*/\1/
15960 s/:*$//
15961 s/^[^=]*=[ ]*$//
15962 }'
15963 fi
15964
15965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966 fi # test -n "$CONFIG_FILES"
15967
15968
15969 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15970 shift
15971 for ac_tag
15972 do
15973 case $ac_tag in
15974 :[FHLC]) ac_mode=$ac_tag; continue;;
15975 esac
15976 case $ac_mode$ac_tag in
15977 :[FHL]*:*);;
15978 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15979 :[FH]-) ac_tag=-:-;;
15980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15981 esac
15982 ac_save_IFS=$IFS
15983 IFS=:
15984 set x $ac_tag
15985 IFS=$ac_save_IFS
15986 shift
15987 ac_file=$1
15988 shift
15989
15990 case $ac_mode in
15991 :L) ac_source=$1;;
15992 :[FH])
15993 ac_file_inputs=
15994 for ac_f
15995 do
15996 case $ac_f in
15997 -) ac_f="$tmp/stdin";;
15998 *) # Look for the file first in the build tree, then in the source tree
15999 # (if the path is not absolute). The absolute path cannot be DOS-style,
16000 # because $ac_f cannot contain `:'.
16001 test -f "$ac_f" ||
16002 case $ac_f in
16003 [\\/$]*) false;;
16004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16005 esac ||
16006 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16007 esac
16008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16009 as_fn_append ac_file_inputs " '$ac_f'"
16010 done
16011
16012 # Let's still pretend it is `configure' which instantiates (i.e., don't
16013 # use $as_me), people would be surprised to read:
16014 # /* config.h. Generated by config.status. */
16015 configure_input='Generated from '`
16016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16017 `' by configure.'
16018 if test x"$ac_file" != x-; then
16019 configure_input="$ac_file. $configure_input"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16021 $as_echo "$as_me: creating $ac_file" >&6;}
16022 fi
16023 # Neutralize special characters interpreted by sed in replacement strings.
16024 case $configure_input in #(
16025 *\&* | *\|* | *\\* )
16026 ac_sed_conf_input=`$as_echo "$configure_input" |
16027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16028 *) ac_sed_conf_input=$configure_input;;
16029 esac
16030
16031 case $ac_tag in
16032 *:-:* | *:-) cat >"$tmp/stdin" \
16033 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16034 esac
16035 ;;
16036 esac
16037
16038 ac_dir=`$as_dirname -- "$ac_file" ||
16039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$ac_file" : 'X\(//\)[^/]' \| \
16041 X"$ac_file" : 'X\(//\)$' \| \
16042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16043 $as_echo X"$ac_file" |
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)[^/].*/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)$/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\).*/{
16057 s//\1/
16058 q
16059 }
16060 s/.*/./; q'`
16061 as_dir="$ac_dir"; as_fn_mkdir_p
16062 ac_builddir=.
16063
16064 case "$ac_dir" in
16065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066 *)
16067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16068 # A ".." for each directory in $ac_dir_suffix.
16069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16070 case $ac_top_builddir_sub in
16071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16073 esac ;;
16074 esac
16075 ac_abs_top_builddir=$ac_pwd
16076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16077 # for backward compatibility:
16078 ac_top_builddir=$ac_top_build_prefix
16079
16080 case $srcdir in
16081 .) # We are building in place.
16082 ac_srcdir=.
16083 ac_top_srcdir=$ac_top_builddir_sub
16084 ac_abs_top_srcdir=$ac_pwd ;;
16085 [\\/]* | ?:[\\/]* ) # Absolute name.
16086 ac_srcdir=$srcdir$ac_dir_suffix;
16087 ac_top_srcdir=$srcdir
16088 ac_abs_top_srcdir=$srcdir ;;
16089 *) # Relative name.
16090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16091 ac_top_srcdir=$ac_top_build_prefix$srcdir
16092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16093 esac
16094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16095
16096
16097 case $ac_mode in
16098 :F)
16099 #
16100 # CONFIG_FILE
16101 #
16102
16103 case $INSTALL in
16104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16106 esac
16107 ac_MKDIR_P=$MKDIR_P
16108 case $MKDIR_P in
16109 [\\/$]* | ?:[\\/]* ) ;;
16110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16111 esac
16112 _ACEOF
16113
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115 # If the template does not know about datarootdir, expand it.
16116 # FIXME: This hack should be removed a few years after 2.60.
16117 ac_datarootdir_hack=; ac_datarootdir_seen=
16118 ac_sed_dataroot='
16119 /datarootdir/ {
16120 p
16121 q
16122 }
16123 /@datadir@/p
16124 /@docdir@/p
16125 /@infodir@/p
16126 /@localedir@/p
16127 /@mandir@/p'
16128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16129 *datarootdir*) ac_datarootdir_seen=yes;;
16130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_datarootdir_hack='
16136 s&@datadir@&$datadir&g
16137 s&@docdir@&$docdir&g
16138 s&@infodir@&$infodir&g
16139 s&@localedir@&$localedir&g
16140 s&@mandir@&$mandir&g
16141 s&\\\${datarootdir}&$datarootdir&g' ;;
16142 esac
16143 _ACEOF
16144
16145 # Neutralize VPATH when `$srcdir' = `.'.
16146 # Shell code in configure.ac might set extrasub.
16147 # FIXME: do we really want to maintain this feature?
16148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 ac_sed_extra="$ac_vpsub
16150 $extrasub
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 :t
16154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16155 s|@configure_input@|$ac_sed_conf_input|;t t
16156 s&@top_builddir@&$ac_top_builddir_sub&;t t
16157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16158 s&@srcdir@&$ac_srcdir&;t t
16159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16160 s&@top_srcdir@&$ac_top_srcdir&;t t
16161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16162 s&@builddir@&$ac_builddir&;t t
16163 s&@abs_builddir@&$ac_abs_builddir&;t t
16164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16165 s&@INSTALL@&$ac_INSTALL&;t t
16166 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16167 $ac_datarootdir_hack
16168 "
16169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16170 || as_fn_error "could not create $ac_file" "$LINENO" 5
16171
16172 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16173 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16176 which seems to be undefined. Please make sure it is defined." >&5
16177 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16178 which seems to be undefined. Please make sure it is defined." >&2;}
16179
16180 rm -f "$tmp/stdin"
16181 case $ac_file in
16182 -) cat "$tmp/out" && rm -f "$tmp/out";;
16183 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16184 esac \
16185 || as_fn_error "could not create $ac_file" "$LINENO" 5
16186 ;;
16187
16188
16189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16190 $as_echo "$as_me: executing $ac_file commands" >&6;}
16191 ;;
16192 esac
16193
16194
16195 case $ac_file$ac_mode in
16196 "default-1":C)
16197 # Only add multilib support code if we just rebuilt the top-level
16198 # Makefile.
16199 case " $CONFIG_FILES " in
16200 *" Makefile "*)
16201 ac_file=Makefile . ${multi_basedir}/config-ml.in
16202 ;;
16203 esac ;;
16204 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16205 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16206 # are listed without --file. Let's play safe and only enable the eval
16207 # if we detect the quoting.
16208 case $CONFIG_FILES in
16209 *\'*) eval set x "$CONFIG_FILES" ;;
16210 *) set x $CONFIG_FILES ;;
16211 esac
16212 shift
16213 for mf
16214 do
16215 # Strip MF so we end up with the name of the file.
16216 mf=`echo "$mf" | sed -e 's/:.*$//'`
16217 # Check whether this is an Automake generated Makefile or not.
16218 # We used to match only the files named `Makefile.in', but
16219 # some people rename them; so instead we look at the file content.
16220 # Grep'ing the first line is not enough: some people post-process
16221 # each Makefile.in and add a new line on top of each file to say so.
16222 # Grep'ing the whole file is not good either: AIX grep has a line
16223 # limit of 2048, but all sed's we know have understand at least 4000.
16224 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16225 dirpart=`$as_dirname -- "$mf" ||
16226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16227 X"$mf" : 'X\(//\)[^/]' \| \
16228 X"$mf" : 'X\(//\)$' \| \
16229 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16230 $as_echo X"$mf" |
16231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16232 s//\1/
16233 q
16234 }
16235 /^X\(\/\/\)[^/].*/{
16236 s//\1/
16237 q
16238 }
16239 /^X\(\/\/\)$/{
16240 s//\1/
16241 q
16242 }
16243 /^X\(\/\).*/{
16244 s//\1/
16245 q
16246 }
16247 s/.*/./; q'`
16248 else
16249 continue
16250 fi
16251 # Extract the definition of DEPDIR, am__include, and am__quote
16252 # from the Makefile without running `make'.
16253 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16254 test -z "$DEPDIR" && continue
16255 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16256 test -z "am__include" && continue
16257 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16258 # When using ansi2knr, U may be empty or an underscore; expand it
16259 U=`sed -n 's/^U = //p' < "$mf"`
16260 # Find all dependency output files, they are included files with
16261 # $(DEPDIR) in their names. We invoke sed twice because it is the
16262 # simplest approach to changing $(DEPDIR) to its actual value in the
16263 # expansion.
16264 for file in `sed -n "
16265 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16266 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16267 # Make sure the directory exists.
16268 test -f "$dirpart/$file" && continue
16269 fdir=`$as_dirname -- "$file" ||
16270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16271 X"$file" : 'X\(//\)[^/]' \| \
16272 X"$file" : 'X\(//\)$' \| \
16273 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16274 $as_echo X"$file" |
16275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16276 s//\1/
16277 q
16278 }
16279 /^X\(\/\/\)[^/].*/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)$/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\).*/{
16288 s//\1/
16289 q
16290 }
16291 s/.*/./; q'`
16292 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16293 # echo "creating $dirpart/$file"
16294 echo '# dummy' > "$dirpart/$file"
16295 done
16296 done
16297 }
16298 ;;
16299 "libtool":C)
16300
16301 # See if we are running on zsh, and set the options which allow our
16302 # commands through without removal of \ escapes.
16303 if test -n "${ZSH_VERSION+set}" ; then
16304 setopt NO_GLOB_SUBST
16305 fi
16306
16307 cfgfile="${ofile}T"
16308 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16309 $RM "$cfgfile"
16310
16311 cat <<_LT_EOF >> "$cfgfile"
16312 #! $SHELL
16313
16314 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16315 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16317 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16318 #
16319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16320 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16321 # Written by Gordon Matzigkeit, 1996
16322 #
16323 # This file is part of GNU Libtool.
16324 #
16325 # GNU Libtool is free software; you can redistribute it and/or
16326 # modify it under the terms of the GNU General Public License as
16327 # published by the Free Software Foundation; either version 2 of
16328 # the License, or (at your option) any later version.
16329 #
16330 # As a special exception to the GNU General Public License,
16331 # if you distribute this file as part of a program or library that
16332 # is built using GNU Libtool, you may include this file under the
16333 # same distribution terms that you use for the rest of that program.
16334 #
16335 # GNU Libtool is distributed in the hope that it will be useful,
16336 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16337 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16338 # GNU General Public License for more details.
16339 #
16340 # You should have received a copy of the GNU General Public License
16341 # along with GNU Libtool; see the file COPYING. If not, a copy
16342 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16343 # obtained by writing to the Free Software Foundation, Inc.,
16344 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16345
16346
16347 # The names of the tagged configurations supported by this script.
16348 available_tags="CXX "
16349
16350 # ### BEGIN LIBTOOL CONFIG
16351
16352 # Which release of libtool.m4 was used?
16353 macro_version=$macro_version
16354 macro_revision=$macro_revision
16355
16356 # Whether or not to build shared libraries.
16357 build_libtool_libs=$enable_shared
16358
16359 # Whether or not to build static libraries.
16360 build_old_libs=$enable_static
16361
16362 # What type of objects to build.
16363 pic_mode=$pic_mode
16364
16365 # Whether or not to optimize for fast installation.
16366 fast_install=$enable_fast_install
16367
16368 # Shell to use when invoking shell scripts.
16369 SHELL=$lt_SHELL
16370
16371 # An echo program that protects backslashes.
16372 ECHO=$lt_ECHO
16373
16374 # The host system.
16375 host_alias=$host_alias
16376 host=$host
16377 host_os=$host_os
16378
16379 # The build system.
16380 build_alias=$build_alias
16381 build=$build
16382 build_os=$build_os
16383
16384 # A sed program that does not truncate output.
16385 SED=$lt_SED
16386
16387 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16388 Xsed="\$SED -e 1s/^X//"
16389
16390 # A grep program that handles long lines.
16391 GREP=$lt_GREP
16392
16393 # An ERE matcher.
16394 EGREP=$lt_EGREP
16395
16396 # A literal string matcher.
16397 FGREP=$lt_FGREP
16398
16399 # A BSD- or MS-compatible name lister.
16400 NM=$lt_NM
16401
16402 # Whether we need soft or hard links.
16403 LN_S=$lt_LN_S
16404
16405 # What is the maximum length of a command?
16406 max_cmd_len=$max_cmd_len
16407
16408 # Object file suffix (normally "o").
16409 objext=$ac_objext
16410
16411 # Executable file suffix (normally "").
16412 exeext=$exeext
16413
16414 # whether the shell understands "unset".
16415 lt_unset=$lt_unset
16416
16417 # turn spaces into newlines.
16418 SP2NL=$lt_lt_SP2NL
16419
16420 # turn newlines into spaces.
16421 NL2SP=$lt_lt_NL2SP
16422
16423 # An object symbol dumper.
16424 OBJDUMP=$lt_OBJDUMP
16425
16426 # Method to check whether dependent libraries are shared objects.
16427 deplibs_check_method=$lt_deplibs_check_method
16428
16429 # Command to use when deplibs_check_method == "file_magic".
16430 file_magic_cmd=$lt_file_magic_cmd
16431
16432 # The archiver.
16433 AR=$lt_AR
16434 AR_FLAGS=$lt_AR_FLAGS
16435
16436 # A symbol stripping program.
16437 STRIP=$lt_STRIP
16438
16439 # Commands used to install an old-style archive.
16440 RANLIB=$lt_RANLIB
16441 old_postinstall_cmds=$lt_old_postinstall_cmds
16442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16443
16444 # Whether to use a lock for old archive extraction.
16445 lock_old_archive_extraction=$lock_old_archive_extraction
16446
16447 # A C compiler.
16448 LTCC=$lt_CC
16449
16450 # LTCC compiler flags.
16451 LTCFLAGS=$lt_CFLAGS
16452
16453 # Take the output of nm and produce a listing of raw symbols and C names.
16454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16455
16456 # Transform the output of nm in a proper C declaration.
16457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16458
16459 # Transform the output of nm in a C name address pair.
16460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16461
16462 # Transform the output of nm in a C name address pair when lib prefix is needed.
16463 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16464
16465 # The name of the directory that contains temporary libtool files.
16466 objdir=$objdir
16467
16468 # Used to examine libraries when file_magic_cmd begins with "file".
16469 MAGIC_CMD=$MAGIC_CMD
16470
16471 # Must we lock files when doing compilation?
16472 need_locks=$lt_need_locks
16473
16474 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16475 DSYMUTIL=$lt_DSYMUTIL
16476
16477 # Tool to change global to local symbols on Mac OS X.
16478 NMEDIT=$lt_NMEDIT
16479
16480 # Tool to manipulate fat objects and archives on Mac OS X.
16481 LIPO=$lt_LIPO
16482
16483 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16484 OTOOL=$lt_OTOOL
16485
16486 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16487 OTOOL64=$lt_OTOOL64
16488
16489 # Old archive suffix (normally "a").
16490 libext=$libext
16491
16492 # Shared library suffix (normally ".so").
16493 shrext_cmds=$lt_shrext_cmds
16494
16495 # The commands to extract the exported symbol list from a shared archive.
16496 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16497
16498 # Variables whose values should be saved in libtool wrapper scripts and
16499 # restored at link time.
16500 variables_saved_for_relink=$lt_variables_saved_for_relink
16501
16502 # Do we need the "lib" prefix for modules?
16503 need_lib_prefix=$need_lib_prefix
16504
16505 # Do we need a version for libraries?
16506 need_version=$need_version
16507
16508 # Library versioning type.
16509 version_type=$version_type
16510
16511 # Shared library runtime path variable.
16512 runpath_var=$runpath_var
16513
16514 # Shared library path variable.
16515 shlibpath_var=$shlibpath_var
16516
16517 # Is shlibpath searched before the hard-coded library search path?
16518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16519
16520 # Format of library name prefix.
16521 libname_spec=$lt_libname_spec
16522
16523 # List of archive names. First name is the real one, the rest are links.
16524 # The last name is the one that the linker finds with -lNAME
16525 library_names_spec=$lt_library_names_spec
16526
16527 # The coded name of the library, if different from the real name.
16528 soname_spec=$lt_soname_spec
16529
16530 # Permission mode override for installation of shared libraries.
16531 install_override_mode=$lt_install_override_mode
16532
16533 # Command to use after installation of a shared archive.
16534 postinstall_cmds=$lt_postinstall_cmds
16535
16536 # Command to use after uninstallation of a shared archive.
16537 postuninstall_cmds=$lt_postuninstall_cmds
16538
16539 # Commands used to finish a libtool library installation in a directory.
16540 finish_cmds=$lt_finish_cmds
16541
16542 # As "finish_cmds", except a single script fragment to be evaled but
16543 # not shown.
16544 finish_eval=$lt_finish_eval
16545
16546 # Whether we should hardcode library paths into libraries.
16547 hardcode_into_libs=$hardcode_into_libs
16548
16549 # Compile-time system search path for libraries.
16550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16551
16552 # Run-time system search path for libraries.
16553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16554
16555 # Whether dlopen is supported.
16556 dlopen_support=$enable_dlopen
16557
16558 # Whether dlopen of programs is supported.
16559 dlopen_self=$enable_dlopen_self
16560
16561 # Whether dlopen of statically linked programs is supported.
16562 dlopen_self_static=$enable_dlopen_self_static
16563
16564 # Commands to strip libraries.
16565 old_striplib=$lt_old_striplib
16566 striplib=$lt_striplib
16567
16568
16569 # The linker used to build libraries.
16570 LD=$lt_LD
16571
16572 # How to create reloadable object files.
16573 reload_flag=$lt_reload_flag
16574 reload_cmds=$lt_reload_cmds
16575
16576 # Commands used to build an old-style archive.
16577 old_archive_cmds=$lt_old_archive_cmds
16578
16579 # A language specific compiler.
16580 CC=$lt_compiler
16581
16582 # Is the compiler the GNU compiler?
16583 with_gcc=$GCC
16584
16585 # Compiler flag to turn off builtin functions.
16586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16587
16588 # How to pass a linker flag through the compiler.
16589 wl=$lt_lt_prog_compiler_wl
16590
16591 # Additional compiler flags for building library objects.
16592 pic_flag=$lt_lt_prog_compiler_pic
16593
16594 # Compiler flag to prevent dynamic linking.
16595 link_static_flag=$lt_lt_prog_compiler_static
16596
16597 # Does compiler simultaneously support -c and -o options?
16598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16599
16600 # Whether or not to add -lc for building shared libraries.
16601 build_libtool_need_lc=$archive_cmds_need_lc
16602
16603 # Whether or not to disallow shared libs when runtime libs are static.
16604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16605
16606 # Compiler flag to allow reflexive dlopens.
16607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16608
16609 # Compiler flag to generate shared objects directly from archives.
16610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16611
16612 # Whether the compiler copes with passing no objects directly.
16613 compiler_needs_object=$lt_compiler_needs_object
16614
16615 # Create an old-style archive from a shared archive.
16616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16617
16618 # Create a temporary old-style archive to link instead of a shared archive.
16619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16620
16621 # Commands used to build a shared archive.
16622 archive_cmds=$lt_archive_cmds
16623 archive_expsym_cmds=$lt_archive_expsym_cmds
16624
16625 # Commands used to build a loadable module if different from building
16626 # a shared archive.
16627 module_cmds=$lt_module_cmds
16628 module_expsym_cmds=$lt_module_expsym_cmds
16629
16630 # Whether we are building with GNU ld or not.
16631 with_gnu_ld=$lt_with_gnu_ld
16632
16633 # Flag that allows shared libraries with undefined symbols to be built.
16634 allow_undefined_flag=$lt_allow_undefined_flag
16635
16636 # Flag that enforces no undefined symbols.
16637 no_undefined_flag=$lt_no_undefined_flag
16638
16639 # Flag to hardcode \$libdir into a binary during linking.
16640 # This must work even if \$libdir does not exist
16641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16642
16643 # If ld is used when linking, flag to hardcode \$libdir into a binary
16644 # during linking. This must work even if \$libdir does not exist.
16645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16646
16647 # Whether we need a single "-rpath" flag with a separated argument.
16648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16649
16650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16651 # DIR into the resulting binary.
16652 hardcode_direct=$hardcode_direct
16653
16654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16655 # DIR into the resulting binary and the resulting library dependency is
16656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16657 # library is relocated.
16658 hardcode_direct_absolute=$hardcode_direct_absolute
16659
16660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16661 # into the resulting binary.
16662 hardcode_minus_L=$hardcode_minus_L
16663
16664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16665 # into the resulting binary.
16666 hardcode_shlibpath_var=$hardcode_shlibpath_var
16667
16668 # Set to "yes" if building a shared library automatically hardcodes DIR
16669 # into the library and all subsequent libraries and executables linked
16670 # against it.
16671 hardcode_automatic=$hardcode_automatic
16672
16673 # Set to yes if linker adds runtime paths of dependent libraries
16674 # to runtime path list.
16675 inherit_rpath=$inherit_rpath
16676
16677 # Whether libtool must link a program against all its dependency libraries.
16678 link_all_deplibs=$link_all_deplibs
16679
16680 # Fix the shell variable \$srcfile for the compiler.
16681 fix_srcfile_path=$lt_fix_srcfile_path
16682
16683 # Set to "yes" if exported symbols are required.
16684 always_export_symbols=$always_export_symbols
16685
16686 # The commands to list exported symbols.
16687 export_symbols_cmds=$lt_export_symbols_cmds
16688
16689 # Symbols that should not be listed in the preloaded symbols.
16690 exclude_expsyms=$lt_exclude_expsyms
16691
16692 # Symbols that must always be exported.
16693 include_expsyms=$lt_include_expsyms
16694
16695 # Commands necessary for linking programs (against libraries) with templates.
16696 prelink_cmds=$lt_prelink_cmds
16697
16698 # Specify filename containing input files.
16699 file_list_spec=$lt_file_list_spec
16700
16701 # How to hardcode a shared library path into an executable.
16702 hardcode_action=$hardcode_action
16703
16704 # The directories searched by this compiler when creating a shared library.
16705 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16706
16707 # Dependencies to place before and after the objects being linked to
16708 # create a shared library.
16709 predep_objects=$lt_predep_objects
16710 postdep_objects=$lt_postdep_objects
16711 predeps=$lt_predeps
16712 postdeps=$lt_postdeps
16713
16714 # The library search path used internally by the compiler when linking
16715 # a shared library.
16716 compiler_lib_search_path=$lt_compiler_lib_search_path
16717
16718 # ### END LIBTOOL CONFIG
16719
16720 _LT_EOF
16721
16722 case $host_os in
16723 aix3*)
16724 cat <<\_LT_EOF >> "$cfgfile"
16725 # AIX sometimes has problems with the GCC collect2 program. For some
16726 # reason, if we set the COLLECT_NAMES environment variable, the problems
16727 # vanish in a puff of smoke.
16728 if test "X${COLLECT_NAMES+set}" != Xset; then
16729 COLLECT_NAMES=
16730 export COLLECT_NAMES
16731 fi
16732 _LT_EOF
16733 ;;
16734 esac
16735
16736
16737 ltmain="$ac_aux_dir/ltmain.sh"
16738
16739
16740 # We use sed instead of cat because bash on DJGPP gets confused if
16741 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16742 # text mode, it properly converts lines to CR/LF. This bash problem
16743 # is reportedly fixed, but why not run on old versions too?
16744 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16745 || (rm -f "$cfgfile"; exit 1)
16746
16747 case $xsi_shell in
16748 yes)
16749 cat << \_LT_EOF >> "$cfgfile"
16750
16751 # func_dirname file append nondir_replacement
16752 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16753 # otherwise set result to NONDIR_REPLACEMENT.
16754 func_dirname ()
16755 {
16756 case ${1} in
16757 */*) func_dirname_result="${1%/*}${2}" ;;
16758 * ) func_dirname_result="${3}" ;;
16759 esac
16760 }
16761
16762 # func_basename file
16763 func_basename ()
16764 {
16765 func_basename_result="${1##*/}"
16766 }
16767
16768 # func_dirname_and_basename file append nondir_replacement
16769 # perform func_basename and func_dirname in a single function
16770 # call:
16771 # dirname: Compute the dirname of FILE. If nonempty,
16772 # add APPEND to the result, otherwise set result
16773 # to NONDIR_REPLACEMENT.
16774 # value returned in "$func_dirname_result"
16775 # basename: Compute filename of FILE.
16776 # value retuned in "$func_basename_result"
16777 # Implementation must be kept synchronized with func_dirname
16778 # and func_basename. For efficiency, we do not delegate to
16779 # those functions but instead duplicate the functionality here.
16780 func_dirname_and_basename ()
16781 {
16782 case ${1} in
16783 */*) func_dirname_result="${1%/*}${2}" ;;
16784 * ) func_dirname_result="${3}" ;;
16785 esac
16786 func_basename_result="${1##*/}"
16787 }
16788
16789 # func_stripname prefix suffix name
16790 # strip PREFIX and SUFFIX off of NAME.
16791 # PREFIX and SUFFIX must not contain globbing or regex special
16792 # characters, hashes, percent signs, but SUFFIX may contain a leading
16793 # dot (in which case that matches only a dot).
16794 func_stripname ()
16795 {
16796 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16797 # positional parameters, so assign one to ordinary parameter first.
16798 func_stripname_result=${3}
16799 func_stripname_result=${func_stripname_result#"${1}"}
16800 func_stripname_result=${func_stripname_result%"${2}"}
16801 }
16802
16803 # func_opt_split
16804 func_opt_split ()
16805 {
16806 func_opt_split_opt=${1%%=*}
16807 func_opt_split_arg=${1#*=}
16808 }
16809
16810 # func_lo2o object
16811 func_lo2o ()
16812 {
16813 case ${1} in
16814 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16815 *) func_lo2o_result=${1} ;;
16816 esac
16817 }
16818
16819 # func_xform libobj-or-source
16820 func_xform ()
16821 {
16822 func_xform_result=${1%.*}.lo
16823 }
16824
16825 # func_arith arithmetic-term...
16826 func_arith ()
16827 {
16828 func_arith_result=$(( $* ))
16829 }
16830
16831 # func_len string
16832 # STRING may not start with a hyphen.
16833 func_len ()
16834 {
16835 func_len_result=${#1}
16836 }
16837
16838 _LT_EOF
16839 ;;
16840 *) # Bourne compatible functions.
16841 cat << \_LT_EOF >> "$cfgfile"
16842
16843 # func_dirname file append nondir_replacement
16844 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16845 # otherwise set result to NONDIR_REPLACEMENT.
16846 func_dirname ()
16847 {
16848 # Extract subdirectory from the argument.
16849 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16850 if test "X$func_dirname_result" = "X${1}"; then
16851 func_dirname_result="${3}"
16852 else
16853 func_dirname_result="$func_dirname_result${2}"
16854 fi
16855 }
16856
16857 # func_basename file
16858 func_basename ()
16859 {
16860 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16861 }
16862
16863
16864 # func_stripname prefix suffix name
16865 # strip PREFIX and SUFFIX off of NAME.
16866 # PREFIX and SUFFIX must not contain globbing or regex special
16867 # characters, hashes, percent signs, but SUFFIX may contain a leading
16868 # dot (in which case that matches only a dot).
16869 # func_strip_suffix prefix name
16870 func_stripname ()
16871 {
16872 case ${2} in
16873 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16874 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16875 esac
16876 }
16877
16878 # sed scripts:
16879 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16880 my_sed_long_arg='1s/^-[^=]*=//'
16881
16882 # func_opt_split
16883 func_opt_split ()
16884 {
16885 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16886 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16887 }
16888
16889 # func_lo2o object
16890 func_lo2o ()
16891 {
16892 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16893 }
16894
16895 # func_xform libobj-or-source
16896 func_xform ()
16897 {
16898 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16899 }
16900
16901 # func_arith arithmetic-term...
16902 func_arith ()
16903 {
16904 func_arith_result=`expr "$@"`
16905 }
16906
16907 # func_len string
16908 # STRING may not start with a hyphen.
16909 func_len ()
16910 {
16911 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16912 }
16913
16914 _LT_EOF
16915 esac
16916
16917 case $lt_shell_append in
16918 yes)
16919 cat << \_LT_EOF >> "$cfgfile"
16920
16921 # func_append var value
16922 # Append VALUE to the end of shell variable VAR.
16923 func_append ()
16924 {
16925 eval "$1+=\$2"
16926 }
16927 _LT_EOF
16928 ;;
16929 *)
16930 cat << \_LT_EOF >> "$cfgfile"
16931
16932 # func_append var value
16933 # Append VALUE to the end of shell variable VAR.
16934 func_append ()
16935 {
16936 eval "$1=\$$1\$2"
16937 }
16938
16939 _LT_EOF
16940 ;;
16941 esac
16942
16943
16944 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16945 || (rm -f "$cfgfile"; exit 1)
16946
16947 mv -f "$cfgfile" "$ofile" ||
16948 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16949 chmod +x "$ofile"
16950
16951
16952 cat <<_LT_EOF >> "$ofile"
16953
16954 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16955
16956 # The linker used to build libraries.
16957 LD=$lt_LD_CXX
16958
16959 # How to create reloadable object files.
16960 reload_flag=$lt_reload_flag_CXX
16961 reload_cmds=$lt_reload_cmds_CXX
16962
16963 # Commands used to build an old-style archive.
16964 old_archive_cmds=$lt_old_archive_cmds_CXX
16965
16966 # A language specific compiler.
16967 CC=$lt_compiler_CXX
16968
16969 # Is the compiler the GNU compiler?
16970 with_gcc=$GCC_CXX
16971
16972 # Compiler flag to turn off builtin functions.
16973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16974
16975 # How to pass a linker flag through the compiler.
16976 wl=$lt_lt_prog_compiler_wl_CXX
16977
16978 # Additional compiler flags for building library objects.
16979 pic_flag=$lt_lt_prog_compiler_pic_CXX
16980
16981 # Compiler flag to prevent dynamic linking.
16982 link_static_flag=$lt_lt_prog_compiler_static_CXX
16983
16984 # Does compiler simultaneously support -c and -o options?
16985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16986
16987 # Whether or not to add -lc for building shared libraries.
16988 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16989
16990 # Whether or not to disallow shared libs when runtime libs are static.
16991 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16992
16993 # Compiler flag to allow reflexive dlopens.
16994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16995
16996 # Compiler flag to generate shared objects directly from archives.
16997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16998
16999 # Whether the compiler copes with passing no objects directly.
17000 compiler_needs_object=$lt_compiler_needs_object_CXX
17001
17002 # Create an old-style archive from a shared archive.
17003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17004
17005 # Create a temporary old-style archive to link instead of a shared archive.
17006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17007
17008 # Commands used to build a shared archive.
17009 archive_cmds=$lt_archive_cmds_CXX
17010 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17011
17012 # Commands used to build a loadable module if different from building
17013 # a shared archive.
17014 module_cmds=$lt_module_cmds_CXX
17015 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17016
17017 # Whether we are building with GNU ld or not.
17018 with_gnu_ld=$lt_with_gnu_ld_CXX
17019
17020 # Flag that allows shared libraries with undefined symbols to be built.
17021 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17022
17023 # Flag that enforces no undefined symbols.
17024 no_undefined_flag=$lt_no_undefined_flag_CXX
17025
17026 # Flag to hardcode \$libdir into a binary during linking.
17027 # This must work even if \$libdir does not exist
17028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17029
17030 # If ld is used when linking, flag to hardcode \$libdir into a binary
17031 # during linking. This must work even if \$libdir does not exist.
17032 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17033
17034 # Whether we need a single "-rpath" flag with a separated argument.
17035 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17036
17037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17038 # DIR into the resulting binary.
17039 hardcode_direct=$hardcode_direct_CXX
17040
17041 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17042 # DIR into the resulting binary and the resulting library dependency is
17043 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17044 # library is relocated.
17045 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17046
17047 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17048 # into the resulting binary.
17049 hardcode_minus_L=$hardcode_minus_L_CXX
17050
17051 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17052 # into the resulting binary.
17053 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17054
17055 # Set to "yes" if building a shared library automatically hardcodes DIR
17056 # into the library and all subsequent libraries and executables linked
17057 # against it.
17058 hardcode_automatic=$hardcode_automatic_CXX
17059
17060 # Set to yes if linker adds runtime paths of dependent libraries
17061 # to runtime path list.
17062 inherit_rpath=$inherit_rpath_CXX
17063
17064 # Whether libtool must link a program against all its dependency libraries.
17065 link_all_deplibs=$link_all_deplibs_CXX
17066
17067 # Fix the shell variable \$srcfile for the compiler.
17068 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17069
17070 # Set to "yes" if exported symbols are required.
17071 always_export_symbols=$always_export_symbols_CXX
17072
17073 # The commands to list exported symbols.
17074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17075
17076 # Symbols that should not be listed in the preloaded symbols.
17077 exclude_expsyms=$lt_exclude_expsyms_CXX
17078
17079 # Symbols that must always be exported.
17080 include_expsyms=$lt_include_expsyms_CXX
17081
17082 # Commands necessary for linking programs (against libraries) with templates.
17083 prelink_cmds=$lt_prelink_cmds_CXX
17084
17085 # Specify filename containing input files.
17086 file_list_spec=$lt_file_list_spec_CXX
17087
17088 # How to hardcode a shared library path into an executable.
17089 hardcode_action=$hardcode_action_CXX
17090
17091 # The directories searched by this compiler when creating a shared library.
17092 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17093
17094 # Dependencies to place before and after the objects being linked to
17095 # create a shared library.
17096 predep_objects=$lt_predep_objects_CXX
17097 postdep_objects=$lt_postdep_objects_CXX
17098 predeps=$lt_predeps_CXX
17099 postdeps=$lt_postdeps_CXX
17100
17101 # The library search path used internally by the compiler when linking
17102 # a shared library.
17103 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17104
17105 # ### END LIBTOOL TAG CONFIG: CXX
17106 _LT_EOF
17107
17108 ;;
17109 "./Makefile":F) cat > vpsed$$ << \_EOF
17110 s!`test -f '$<' || echo '$(srcdir)/'`!!
17111 _EOF
17112 sed -f vpsed$$ $ac_file > tmp$$
17113 mv tmp$$ $ac_file
17114 rm vpsed$$
17115 echo 'MULTISUBDIR =' >> $ac_file
17116 ml_norecursion=yes
17117 . ${multi_basedir}/config-ml.in
17118 { ml_norecursion=; unset ml_norecursion;}
17119 ;;
17120 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17121 s!`test -f '$<' || echo '$(srcdir)/'`!!
17122 _EOF
17123 sed -f vpsed$$ $ac_file > tmp$$
17124 mv tmp$$ $ac_file
17125 rm vpsed$$
17126 echo 'MULTISUBDIR =' >> $ac_file
17127 ml_norecursion=yes
17128 . ${multi_basedir}/config-ml.in
17129 { ml_norecursion=; unset ml_norecursion;}
17130 ;;
17131
17132 esac
17133 done # for ac_tag
17134
17135
17136 as_fn_exit 0
17137 _ACEOF
17138 ac_clean_files=$ac_clean_files_save
17139
17140 test $ac_write_fail = 0 ||
17141 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17142
17143
17144 # configure is writing to config.log, and then calls config.status.
17145 # config.status does its own redirection, appending to config.log.
17146 # Unfortunately, on DOS this fails, as config.log is still kept open
17147 # by configure, so config.status won't be able to write to it; its
17148 # output is simply discarded. So we exec the FD to /dev/null,
17149 # effectively closing config.log, so it can be properly (re)opened and
17150 # appended to by config.status. When coming back to configure, we
17151 # need to make the FD available again.
17152 if test "$no_create" != yes; then
17153 ac_cs_success=:
17154 ac_config_status_args=
17155 test "$silent" = yes &&
17156 ac_config_status_args="$ac_config_status_args --quiet"
17157 exec 5>/dev/null
17158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17159 exec 5>>config.log
17160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17161 # would make configure fail if this is the last instruction.
17162 $ac_cs_success || as_fn_exit $?
17163 fi
17164 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17166 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17167 fi
17168