]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
configure.ac: Move AM_ENABLE_MULTILIB before GCC_LIBSTDCXX_RAW_CXX_FLAGS.
[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 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 VTV_NO_OBSTACK_FALSE
606 VTV_NO_OBSTACK_TRUE
607 VTV_CYGMIN_FALSE
608 VTV_CYGMIN_TRUE
609 XCFLAGS
610 libtool_VERSION
611 enable_static
612 enable_shared
613 lt_host_flags
614 CXXCPP
615 OTOOL64
616 OTOOL
617 LIPO
618 NMEDIT
619 DSYMUTIL
620 OBJDUMP
621 LN_S
622 NM
623 ac_ct_DUMPBIN
624 DUMPBIN
625 LD
626 FGREP
627 SED
628 LIBTOOL
629 RANLIB
630 AR
631 AS
632 CCASFLAGS
633 CCAS
634 am__fastdepCXX_FALSE
635 am__fastdepCXX_TRUE
636 CXXDEPMODE
637 ac_ct_CXX
638 CXXFLAGS
639 CXX
640 toolexeclibdir
641 toolexecdir
642 toplevel_srcdir
643 toplevel_builddir
644 libvtv_srcdir
645 libvtv_builddir
646 MAINT
647 MAINTAINER_MODE_FALSE
648 MAINTAINER_MODE_TRUE
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 am__nodep
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
664 AWK
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 ENABLE_VTABLE_VERIFY_FALSE
683 ENABLE_VTABLE_VERIFY_TRUE
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 LIBSTDCXX_RAW_CXX_LDFLAGS
695 LIBSTDCXX_RAW_CXX_CXXFLAGS
696 target_noncanonical
697 target_os
698 target_vendor
699 target_cpu
700 target
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 multi_basedir
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_multilib
752 enable_version_specific_runtime_libs
753 enable_vtable_verify
754 enable_dependency_tracking
755 enable_maintainer_mode
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 enable_libtool_lock
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 CPP
772 CXXCPP'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
832 fi
833
834 case $ac_option in
835 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *) ac_optarg=yes ;;
837 esac
838
839 # Accept the important Cygnus configure options, so we can diagnose typos.
840
841 case $ac_dashdash$ac_option in
842 --)
843 ac_dashdash=yes ;;
844
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 ac_prev=bindir ;;
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 bindir=$ac_optarg ;;
849
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
854
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
861
862 --config-cache | -C)
863 cache_file=config.cache ;;
864
865 -datadir | --datadir | --datadi | --datad)
866 ac_prev=datadir ;;
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
869
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
876
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
885 *"
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=no ;;
892
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
897
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
902
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=\$ac_optarg ;;
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
938
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
943
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
973
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
990
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1011
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1047
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
1066 sbindir=$ac_optarg ;;
1067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
1077 sharedstatedir=$ac_optarg ;;
1078
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
1082 site=$ac_optarg ;;
1083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1088
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1095
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1106
1107 -with-* | --with-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=\$ac_optarg ;;
1122
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) as_fn_error "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information."
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1167 esac
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1189 no) ;;
1190 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1200 do
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1203 case $ac_val in
1204 */ )
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1207 esac
1208 # Be sure to have absolute directory names.
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 as_fn_error "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 as_fn_error "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-multilib build many library versions (default)
1394 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1395 --enable-vtable-verify Enable vtable verification feature
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
1400 --enable-shared[=PKGS] build shared libraries [default=yes]
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405
1406 Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-pic try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422 CXX C++ compiler command
1423 CXXFLAGS C++ compiler flags
1424 CXXCPP C++ preprocessor
1425
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1428
1429 Report bugs to the package provider.
1430 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1431 General help using GNU software: <http://www.gnu.org/gethelp/>.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 GNU Vtable Verification Runtime Library configure 1.0
1495 generated by GNU Autoconf 2.64
1496
1497 Copyright (C) 2009 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542 return $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_cpp ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } >/dev/null && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 }; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 return $ac_retval
1580
1581 } # ac_fn_c_try_cpp
1582
1583 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586 # the include files in INCLUDES and setting the cache variable VAR
1587 # accordingly.
1588 ac_fn_c_check_header_mongrel ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1595 $as_echo_n "(cached) " >&6
1596 fi
1597 eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600 else
1601 # Is the header compilable?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603 $as_echo_n "checking $2 usability... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 ac_header_compiler=yes
1611 else
1612 ac_header_compiler=no
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616 $as_echo "$ac_header_compiler" >&6; }
1617
1618 # Is the header present?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620 $as_echo_n "checking $2 presence... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1627 else
1628 ac_header_preproc=no
1629 fi
1630 rm -f conftest.err conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632 $as_echo "$ac_header_preproc" >&6; }
1633
1634 # So? What about this header?
1635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636 yes:no: )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 ;;
1642 no:yes:* )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 ;;
1654 esac
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 eval "$3=\$ac_header_compiler"
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 fi
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667
1668 } # ac_fn_c_check_header_mongrel
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_link ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 $as_test_x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1786
1787 } # ac_fn_c_try_link
1788
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1816
1817 #undef $2
1818
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1832
1833 int
1834 main ()
1835 {
1836 return $2 ();
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854 } # ac_fn_c_check_func
1855
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1876 fi
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1891
1892 } # ac_fn_cxx_try_compile
1893
1894 # ac_fn_cxx_try_cpp LINENO
1895 # ------------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_cpp ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } >/dev/null && {
1916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 }; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 return $ac_retval
1928
1929 } # ac_fn_cxx_try_cpp
1930
1931 # ac_fn_cxx_try_link LINENO
1932 # -------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_link ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1951 fi
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 $as_test_x conftest$ac_exeext
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 return $ac_retval
1974
1975 } # ac_fn_cxx_try_link
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1979
1980 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1981 generated by GNU Autoconf 2.64. Invocation command line was
1982
1983 $ $0 $@
1984
1985 _ACEOF
1986 exec 5>>config.log
1987 {
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1992
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001
2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009
2010 _ASUNAME
2011
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 $as_echo "PATH: $as_dir"
2018 done
2019 IFS=$as_save_IFS
2020
2021 } >&5
2022
2023 cat >&5 <<_ACEOF
2024
2025
2026 ## ----------- ##
2027 ## Core tests. ##
2028 ## ----------- ##
2029
2030 _ACEOF
2031
2032
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2038 ac_configure_args=
2039 ac_configure_args0=
2040 ac_configure_args1=
2041 ac_must_keep_next=false
2042 for ac_pass in 1 2
2043 do
2044 for ac_arg
2045 do
2046 case $ac_arg in
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2050 continue ;;
2051 *\'*)
2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 esac
2054 case $ac_pass in
2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 2)
2057 as_fn_append ac_configure_args1 " '$ac_arg'"
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2060 else
2061 case $ac_arg in
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068 esac
2069 ;;
2070 -* ) ac_must_keep_next=true ;;
2071 esac
2072 fi
2073 as_fn_append ac_configure_args " '$ac_arg'"
2074 ;;
2075 esac
2076 done
2077 done
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2080
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log. We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2088 {
2089 echo
2090
2091 cat <<\_ASBOX
2092 ## ---------------- ##
2093 ## Cache variables. ##
2094 ## ---------------- ##
2095 _ASBOX
2096 echo
2097 # The following way of writing the cache mishandles newlines in values,
2098 (
2099 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in #(
2102 *${as_nl}*)
2103 case $ac_var in #(
2104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106 esac
2107 case $ac_var in #(
2108 _ | IFS | as_nl) ;; #(
2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110 *) { eval $ac_var=; unset $ac_var;} ;;
2111 esac ;;
2112 esac
2113 done
2114 (set) 2>&1 |
2115 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116 *${as_nl}ac_space=\ *)
2117 sed -n \
2118 "s/'\''/'\''\\\\'\'''\''/g;
2119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120 ;; #(
2121 *)
2122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 ;;
2124 esac |
2125 sort
2126 )
2127 echo
2128
2129 cat <<\_ASBOX
2130 ## ----------------- ##
2131 ## Output variables. ##
2132 ## ----------------- ##
2133 _ASBOX
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
2146 cat <<\_ASBOX
2147 ## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##
2150 _ASBOX
2151 echo
2152 for ac_var in $ac_subst_files
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161 fi
2162
2163 if test -s confdefs.h; then
2164 cat <<\_ASBOX
2165 ## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##
2168 _ASBOX
2169 echo
2170 cat confdefs.h
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2176 } >&5
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 $as_echo "/* confdefs.h */" > confdefs.h
2190
2191 # Predefined preprocessor variables.
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2215 _ACEOF
2216
2217
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2220 ac_site_file1=NONE
2221 ac_site_file2=NONE
2222 if test -n "$CONFIG_SITE"; then
2223 ac_site_file1=$CONFIG_SITE
2224 elif test "x$prefix" != xNONE; then
2225 ac_site_file1=$prefix/share/config.site
2226 ac_site_file2=$prefix/etc/config.site
2227 else
2228 ac_site_file1=$ac_default_prefix/share/config.site
2229 ac_site_file2=$ac_default_prefix/etc/config.site
2230 fi
2231 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232 do
2233 test "x$ac_site_file" = xNONE && continue
2234 if test -r "$ac_site_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2237 sed 's/^/| /' "$ac_site_file" >&5
2238 . "$ac_site_file"
2239 fi
2240 done
2241
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special
2244 # files actually), so we avoid doing that.
2245 if test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2257 fi
2258
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2307 fi
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 fi
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329
2330 #AC_INIT(package-unused, version-unused, libvtv)
2331
2332
2333 # Default to --enable-multilib
2334 # Check whether --enable-multilib was given.
2335 if test "${enable_multilib+set}" = set; then :
2336 enableval=$enable_multilib; case "$enableval" in
2337 yes) multilib=yes ;;
2338 no) multilib=no ;;
2339 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2340 esac
2341 else
2342 multilib=yes
2343 fi
2344
2345
2346 # We may get other options which we leave undocumented:
2347 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2348 # See config-ml.in if you want the gory details.
2349
2350 if test "$srcdir" = "."; then
2351 if test "$with_target_subdir" != "."; then
2352 multi_basedir="$srcdir/$with_multisrctop../.."
2353 else
2354 multi_basedir="$srcdir/$with_multisrctop.."
2355 fi
2356 else
2357 multi_basedir="$srcdir/.."
2358 fi
2359
2360
2361 # Even if the default multilib is not a cross compilation,
2362 # it may be that some of the other multilibs are.
2363 if test $cross_compiling = no && test $multilib = yes \
2364 && test "x${with_multisubdir}" != x ; then
2365 cross_compiling=maybe
2366 fi
2367
2368 ac_config_commands="$ac_config_commands default-1"
2369
2370
2371 # -------
2372 # Options
2373 # -------
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2375 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2376 # Check whether --enable-version-specific-runtime-libs was given.
2377 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2378 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2379 yes) version_specific_libs=yes ;;
2380 no) version_specific_libs=no ;;
2381 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2382 esac
2383 else
2384 version_specific_libs=no
2385 fi
2386
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2388 $as_echo "$version_specific_libs" >&6; }
2389
2390 # Do not delete or change the following two lines. For why, see
2391 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2392 ac_aux_dir=
2393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394 for ac_t in install-sh install.sh shtool; do
2395 if test -f "$ac_dir/$ac_t"; then
2396 ac_aux_dir=$ac_dir
2397 ac_install_sh="$ac_aux_dir/$ac_t -c"
2398 break 2
2399 fi
2400 done
2401 done
2402 if test -z "$ac_aux_dir"; then
2403 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2404 fi
2405
2406 # These three variables are undocumented and unsupported,
2407 # and are intended to be withdrawn in a future Autoconf release.
2408 # They can cause serious problems if a builder's source tree is in a directory
2409 # whose full name contains unusual characters.
2410 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2411 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2412 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2413
2414
2415 # Make sure we can run config.sub.
2416 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2417 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2420 $as_echo_n "checking build system type... " >&6; }
2421 if test "${ac_cv_build+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 ac_build_alias=$build_alias
2425 test "x$ac_build_alias" = x &&
2426 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2427 test "x$ac_build_alias" = x &&
2428 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2429 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2430 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2431
2432 fi
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2434 $as_echo "$ac_cv_build" >&6; }
2435 case $ac_cv_build in
2436 *-*-*) ;;
2437 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2438 esac
2439 build=$ac_cv_build
2440 ac_save_IFS=$IFS; IFS='-'
2441 set x $ac_cv_build
2442 shift
2443 build_cpu=$1
2444 build_vendor=$2
2445 shift; shift
2446 # Remember, the first character of IFS is used to create $*,
2447 # except with old shells:
2448 build_os=$*
2449 IFS=$ac_save_IFS
2450 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2451
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2454 $as_echo_n "checking host system type... " >&6; }
2455 if test "${ac_cv_host+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test "x$host_alias" = x; then
2459 ac_cv_host=$ac_cv_build
2460 else
2461 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2462 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2463 fi
2464
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2467 $as_echo "$ac_cv_host" >&6; }
2468 case $ac_cv_host in
2469 *-*-*) ;;
2470 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2471 esac
2472 host=$ac_cv_host
2473 ac_save_IFS=$IFS; IFS='-'
2474 set x $ac_cv_host
2475 shift
2476 host_cpu=$1
2477 host_vendor=$2
2478 shift; shift
2479 # Remember, the first character of IFS is used to create $*,
2480 # except with old shells:
2481 host_os=$*
2482 IFS=$ac_save_IFS
2483 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2484
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2487 $as_echo_n "checking target system type... " >&6; }
2488 if test "${ac_cv_target+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test "x$target_alias" = x; then
2492 ac_cv_target=$ac_cv_host
2493 else
2494 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2495 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2496 fi
2497
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2500 $as_echo "$ac_cv_target" >&6; }
2501 case $ac_cv_target in
2502 *-*-*) ;;
2503 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2504 esac
2505 target=$ac_cv_target
2506 ac_save_IFS=$IFS; IFS='-'
2507 set x $ac_cv_target
2508 shift
2509 target_cpu=$1
2510 target_vendor=$2
2511 shift; shift
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2514 target_os=$*
2515 IFS=$ac_save_IFS
2516 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2517
2518
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522 test "$program_prefix$program_suffix$program_transform_name" = \
2523 NONENONEs,x,x, &&
2524 program_prefix=${target_alias}-
2525
2526 target_alias=${target_alias-$host_alias}
2527
2528 case ${build_alias} in
2529 "") build_noncanonical=${build} ;;
2530 *) build_noncanonical=${build_alias} ;;
2531 esac
2532
2533 case ${host_alias} in
2534 "") host_noncanonical=${build_noncanonical} ;;
2535 *) host_noncanonical=${host_alias} ;;
2536 esac
2537
2538 case ${target_alias} in
2539 "") target_noncanonical=${host_noncanonical} ;;
2540 *) target_noncanonical=${target_alias} ;;
2541 esac
2542
2543
2544
2545
2546
2547 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2548 -I\$(top_builddir)/../libstdc++-v3/include \
2549 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2550 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2551 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2552 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2553
2554
2555
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$ac_cv_prog_CC"; then
2602 ac_ct_CC=$CC
2603 # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC="gcc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633 $as_echo "$ac_ct_CC" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639 if test "x$ac_ct_CC" = x; then
2640 CC=""
2641 else
2642 case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646 ac_tool_warned=yes ;;
2647 esac
2648 CC=$ac_ct_CC
2649 fi
2650 else
2651 CC="$ac_cv_prog_CC"
2652 fi
2653
2654 if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}cc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC="${ac_tool_prefix}cc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 CC=$ac_cv_prog_CC
2684 if test -n "$CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686 $as_echo "$CC" >&6; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693 fi
2694 fi
2695 if test -z "$CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2716 continue
2717 fi
2718 ac_cv_prog_CC="cc"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 if test $ac_prog_rejected = yes; then
2727 # We found a bogon in the path, so make sure we never use it.
2728 set dummy $ac_cv_prog_CC
2729 shift
2730 if test $# != 0; then
2731 # We chose a different compiler from the bogus one.
2732 # However, it has the same basename, so the bogon will be chosen
2733 # first if we set CC to just the basename; use the full file name.
2734 shift
2735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 fi
2737 fi
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$CC"; then
2752 if test -n "$ac_tool_prefix"; then
2753 for ac_prog in cl.exe
2754 do
2755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 $as_echo "$CC" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792 test -n "$CC" && break
2793 done
2794 fi
2795 if test -z "$CC"; then
2796 ac_ct_CC=$CC
2797 for ac_prog in cl.exe
2798 do
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_ac_ct_CC="$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 test -n "$ac_ct_CC" && break
2837 done
2838
2839 if test "x$ac_ct_CC" = x; then
2840 CC=""
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 CC=$ac_ct_CC
2849 fi
2850 fi
2851
2852 fi
2853
2854
2855 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error "no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." "$LINENO" 5; }
2859
2860 # Provide some information about the compiler.
2861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2862 set X $ac_compile
2863 ac_compiler=$2
2864 for ac_option in --version -v -V -qversion; do
2865 { { ac_try="$ac_compiler $ac_option >&5"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2873 ac_status=$?
2874 if test -s conftest.err; then
2875 sed '10a\
2876 ... rest of stderr output deleted ...
2877 10q' conftest.err >conftest.er1
2878 cat conftest.er1 >&5
2879 rm -f conftest.er1 conftest.err
2880 fi
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }
2883 done
2884
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2887
2888 int
2889 main ()
2890 {
2891
2892 ;
2893 return 0;
2894 }
2895 _ACEOF
2896 ac_clean_files_save=$ac_clean_files
2897 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2900 # of exeext.
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2902 $as_echo_n "checking for C compiler default output file name... " >&6; }
2903 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904
2905 # The possible output files:
2906 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2907
2908 ac_rmfiles=
2909 for ac_file in $ac_files
2910 do
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2913 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2914 esac
2915 done
2916 rm -f $ac_rmfiles
2917
2918 if { { ac_try="$ac_link_default"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link_default") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2930 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2931 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2932 # so that the user can short-circuit this test for compilers unknown to
2933 # Autoconf.
2934 for ac_file in $ac_files ''
2935 do
2936 test -f "$ac_file" || continue
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2939 ;;
2940 [ab].out )
2941 # We found the default executable, but exeext='' is most
2942 # certainly right.
2943 break;;
2944 *.* )
2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2946 then :; else
2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 fi
2949 # We set ac_cv_exeext here because the later test for it is not
2950 # safe: cross compilers may not add the suffix if given an `-o'
2951 # argument, so we may need to know it at that point already.
2952 # Even if this section looks crufty: it has the advantage of
2953 # actually working.
2954 break;;
2955 * )
2956 break;;
2957 esac
2958 done
2959 test "$ac_cv_exeext" = no && ac_cv_exeext=
2960
2961 else
2962 ac_file=''
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965 $as_echo "$ac_file" >&6; }
2966 if test -z "$ac_file"; then :
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 { as_fn_set_status 77
2973 as_fn_error "C compiler cannot create executables
2974 See \`config.log' for more details." "$LINENO" 5; }; }
2975 fi
2976 ac_exeext=$ac_cv_exeext
2977
2978 # Check that the compiler produces executables we can run. If not, either
2979 # the compiler is broken, or we cross compile.
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2981 $as_echo_n "checking whether the C compiler works... " >&6; }
2982 # If not cross compiling, check that we can run a simple program.
2983 if test "$cross_compiling" != yes; then
2984 if { ac_try='./$ac_file'
2985 { { case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_try") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; }; then
2995 cross_compiling=no
2996 else
2997 if test "$cross_compiling" = maybe; then
2998 cross_compiling=yes
2999 else
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error "cannot run C compiled programs.
3003 If you meant to cross compile, use \`--host'.
3004 See \`config.log' for more details." "$LINENO" 5; }
3005 fi
3006 fi
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010
3011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3012 ac_clean_files=$ac_clean_files_save
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3016 $as_echo_n "checking whether we are cross compiling... " >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3018 $as_echo "$cross_compiling" >&6; }
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3021 $as_echo_n "checking for suffix of executables... " >&6; }
3022 if { { ac_try="$ac_link"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3035 # work properly (i.e., refer to `conftest.exe'), while it won't with
3036 # `rm'.
3037 for ac_file in conftest.exe conftest conftest.*; do
3038 test -f "$ac_file" || continue
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 break;;
3043 * ) break;;
3044 esac
3045 done
3046 else
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error "cannot compute suffix of executables: cannot compile and link
3050 See \`config.log' for more details." "$LINENO" 5; }
3051 fi
3052 rm -f conftest$ac_cv_exeext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3054 $as_echo "$ac_cv_exeext" >&6; }
3055
3056 rm -f conftest.$ac_ext
3057 EXEEXT=$ac_cv_exeext
3058 ac_exeext=$EXEEXT
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060 $as_echo_n "checking for suffix of object files... " >&6; }
3061 if test "${ac_cv_objext+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.o conftest.obj
3076 if { { ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 break;;
3093 esac
3094 done
3095 else
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error "cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details." "$LINENO" 5; }
3103 fi
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105 fi
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3109 ac_objext=$OBJEXT
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121 #ifndef __GNUC__
3122 choke me
3123 #endif
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3130 ac_compiler_gnu=yes
3131 else
3132 ac_compiler_gnu=no
3133 fi
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140 if test $ac_compiler_gnu = yes; then
3141 GCC=yes
3142 else
3143 GCC=
3144 fi
3145 ac_test_CFLAGS=${CFLAGS+set}
3146 ac_save_CFLAGS=$CFLAGS
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3149 if test "${ac_cv_prog_cc_g+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158
3159 int
3160 main ()
3161 {
3162
3163 ;
3164 return 0;
3165 }
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_g=yes
3169 else
3170 CFLAGS=""
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183
3184 else
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186 CFLAGS="-g"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_cv_prog_cc_g=yes
3200 fi
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3209 $as_echo "$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218 else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3227 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 ac_cv_prog_cc_c89=no
3231 ac_save_CC=$CC
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3234 #include <stdarg.h>
3235 #include <stdio.h>
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3242 char **p;
3243 int i;
3244 {
3245 return p[i];
3246 }
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3248 {
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255 }
3256
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268 #define FOO(x) 'x'
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 int argc;
3276 char **argv;
3277 int
3278 main ()
3279 {
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 do
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_c89=$ac_arg
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 done
3295 rm -f conftest.$ac_ext
3296 CC=$ac_save_CC
3297
3298 fi
3299 # AC_CACHE_VAL
3300 case "x$ac_cv_prog_cc_c89" in
3301 x)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3303 $as_echo "none needed" >&6; } ;;
3304 xno)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3306 $as_echo "unsupported" >&6; } ;;
3307 *)
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3311 esac
3312 if test "x$ac_cv_prog_cc_c89" != xno; then :
3313
3314 fi
3315
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3330 # On Suns, sometimes $CPP names a directory.
3331 if test -n "$CPP" && test -d "$CPP"; then
3332 CPP=
3333 fi
3334 if test -z "$CPP"; then
3335 if test "${ac_cv_prog_CPP+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 # Double quotes because CPP needs to be expanded
3339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3340 do
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3343 do
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357 Syntax error
3358 _ACEOF
3359 if ac_fn_c_try_cpp "$LINENO"; then :
3360
3361 else
3362 # Broken: fails on valid input.
3363 continue
3364 fi
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371 #include <ac_nonexistent.h>
3372 _ACEOF
3373 if ac_fn_c_try_cpp "$LINENO"; then :
3374 # Broken: success on invalid input.
3375 continue
3376 else
3377 # Passes both tests.
3378 ac_preproc_ok=:
3379 break
3380 fi
3381 rm -f conftest.err conftest.$ac_ext
3382
3383 done
3384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3385 rm -f conftest.err conftest.$ac_ext
3386 if $ac_preproc_ok; then :
3387 break
3388 fi
3389
3390 done
3391 ac_cv_prog_CPP=$CPP
3392
3393 fi
3394 CPP=$ac_cv_prog_CPP
3395 else
3396 ac_cv_prog_CPP=$CPP
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3399 $as_echo "$CPP" >&6; }
3400 ac_preproc_ok=false
3401 for ac_c_preproc_warn_flag in '' yes
3402 do
3403 # Use a header file that comes with gcc, so configuring glibc
3404 # with a fresh cross-compiler works.
3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406 # <limits.h> exists even on freestanding compilers.
3407 # On the NeXT, cc -E runs the code through the compiler's parser,
3408 # not just through cpp. "Syntax error" is here to catch this case.
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411 #ifdef __STDC__
3412 # include <limits.h>
3413 #else
3414 # include <assert.h>
3415 #endif
3416 Syntax error
3417 _ACEOF
3418 if ac_fn_c_try_cpp "$LINENO"; then :
3419
3420 else
3421 # Broken: fails on valid input.
3422 continue
3423 fi
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 # OK, works on sane cases. Now check whether nonexistent headers
3427 # can be detected and how.
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if ac_fn_c_try_cpp "$LINENO"; then :
3433 # Broken: success on invalid input.
3434 continue
3435 else
3436 # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440 rm -f conftest.err conftest.$ac_ext
3441
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then :
3446
3447 else
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." "$LINENO" 5; }
3452 fi
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3463 if test "${ac_cv_path_GREP+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -z "$GREP"; then
3467 ac_path_GREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3471 do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in grep ggrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3478 # Check for GNU ac_path_GREP and select it if it is found.
3479 # Check for GNU $ac_path_GREP
3480 case `"$ac_path_GREP" --version 2>&1` in
3481 *GNU*)
3482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3483 *)
3484 ac_count=0
3485 $as_echo_n 0123456789 >"conftest.in"
3486 while :
3487 do
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 $as_echo 'GREP' >> "conftest.nl"
3492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 as_fn_arith $ac_count + 1 && ac_count=$as_val
3495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_GREP="$ac_path_GREP"
3498 ac_path_GREP_max=$ac_count
3499 fi
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3502 done
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504 esac
3505
3506 $ac_path_GREP_found && break 3
3507 done
3508 done
3509 done
3510 IFS=$as_save_IFS
3511 if test -z "$ac_cv_path_GREP"; then
3512 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3513 fi
3514 else
3515 ac_cv_path_GREP=$GREP
3516 fi
3517
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3520 $as_echo "$ac_cv_path_GREP" >&6; }
3521 GREP="$ac_cv_path_GREP"
3522
3523
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3525 $as_echo_n "checking for egrep... " >&6; }
3526 if test "${ac_cv_path_EGREP+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3530 then ac_cv_path_EGREP="$GREP -E"
3531 else
3532 if test -z "$EGREP"; then
3533 ac_path_EGREP_found=false
3534 # Loop through the user's path and test for each of PROGNAME-LIST
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_prog in egrep; do
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3544 # Check for GNU ac_path_EGREP and select it if it is found.
3545 # Check for GNU $ac_path_EGREP
3546 case `"$ac_path_EGREP" --version 2>&1` in
3547 *GNU*)
3548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3549 *)
3550 ac_count=0
3551 $as_echo_n 0123456789 >"conftest.in"
3552 while :
3553 do
3554 cat "conftest.in" "conftest.in" >"conftest.tmp"
3555 mv "conftest.tmp" "conftest.in"
3556 cp "conftest.in" "conftest.nl"
3557 $as_echo 'EGREP' >> "conftest.nl"
3558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3560 as_fn_arith $ac_count + 1 && ac_count=$as_val
3561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3562 # Best one so far, save it but keep looking for a better one
3563 ac_cv_path_EGREP="$ac_path_EGREP"
3564 ac_path_EGREP_max=$ac_count
3565 fi
3566 # 10*(2^10) chars as input seems more than enough
3567 test $ac_count -gt 10 && break
3568 done
3569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3570 esac
3571
3572 $ac_path_EGREP_found && break 3
3573 done
3574 done
3575 done
3576 IFS=$as_save_IFS
3577 if test -z "$ac_cv_path_EGREP"; then
3578 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3579 fi
3580 else
3581 ac_cv_path_EGREP=$EGREP
3582 fi
3583
3584 fi
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3587 $as_echo "$ac_cv_path_EGREP" >&6; }
3588 EGREP="$ac_cv_path_EGREP"
3589
3590
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3592 $as_echo_n "checking for ANSI C header files... " >&6; }
3593 if test "${ac_cv_header_stdc+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <stdlib.h>
3599 #include <stdarg.h>
3600 #include <string.h>
3601 #include <float.h>
3602
3603 int
3604 main ()
3605 {
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_header_stdc=yes
3613 else
3614 ac_cv_header_stdc=no
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617
3618 if test $ac_cv_header_stdc = yes; then
3619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <string.h>
3623
3624 _ACEOF
3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 $EGREP "memchr" >/dev/null 2>&1; then :
3627
3628 else
3629 ac_cv_header_stdc=no
3630 fi
3631 rm -f conftest*
3632
3633 fi
3634
3635 if test $ac_cv_header_stdc = yes; then
3636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdlib.h>
3640
3641 _ACEOF
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 $EGREP "free" >/dev/null 2>&1; then :
3644
3645 else
3646 ac_cv_header_stdc=no
3647 fi
3648 rm -f conftest*
3649
3650 fi
3651
3652 if test $ac_cv_header_stdc = yes; then
3653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3654 if test "$cross_compiling" = yes; then :
3655 :
3656 else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659 #include <ctype.h>
3660 #include <stdlib.h>
3661 #if ((' ' & 0x0FF) == 0x020)
3662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3664 #else
3665 # define ISLOWER(c) \
3666 (('a' <= (c) && (c) <= 'i') \
3667 || ('j' <= (c) && (c) <= 'r') \
3668 || ('s' <= (c) && (c) <= 'z'))
3669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3670 #endif
3671
3672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3673 int
3674 main ()
3675 {
3676 int i;
3677 for (i = 0; i < 256; i++)
3678 if (XOR (islower (i), ISLOWER (i))
3679 || toupper (i) != TOUPPER (i))
3680 return 2;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_run "$LINENO"; then :
3685
3686 else
3687 ac_cv_header_stdc=no
3688 fi
3689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3690 conftest.$ac_objext conftest.beam conftest.$ac_ext
3691 fi
3692
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3696 $as_echo "$ac_cv_header_stdc" >&6; }
3697 if test $ac_cv_header_stdc = yes; then
3698
3699 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3700
3701 fi
3702
3703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3705 inttypes.h stdint.h unistd.h
3706 do :
3707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3709 "
3710 eval as_val=\$$as_ac_Header
3711 if test "x$as_val" = x""yes; then :
3712 cat >>confdefs.h <<_ACEOF
3713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3714 _ACEOF
3715
3716 fi
3717
3718 done
3719
3720
3721
3722 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3723 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3724 MINIX=yes
3725 else
3726 MINIX=
3727 fi
3728
3729
3730 if test "$MINIX" = yes; then
3731
3732 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3733
3734
3735 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3736
3737
3738 $as_echo "#define _MINIX 1" >>confdefs.h
3739
3740 fi
3741
3742
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 # define __EXTENSIONS__ 1
3752 $ac_includes_default
3753 int
3754 main ()
3755 {
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_safe_to_define___extensions__=yes
3763 else
3764 ac_cv_safe_to_define___extensions__=no
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3769 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3770 test $ac_cv_safe_to_define___extensions__ = yes &&
3771 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3772
3773 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3774
3775 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3776
3777 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3778
3779 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3780
3781
3782
3783 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3785 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3786 # Check whether --enable-vtable-verify was given.
3787 if test "${enable_vtable_verify+set}" = set; then :
3788 enableval=$enable_vtable_verify; case "$enableval" in
3789 yes) enable_vtable_verify=yes ;;
3790 no) enable_vtable_verify=no ;;
3791 *) enable_vtable_verify=no;;
3792 esac
3793 else
3794 enable_vtable_verify=no
3795 fi
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3798 $as_echo "$enable_vtable_verify" >&6; }
3799
3800 # See if supported.
3801 unset VTV_SUPPORTED
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3803 $as_echo_n "checking for host support for vtable verification... " >&6; }
3804 . ${srcdir}/configure.tgt
3805 case ${host} in
3806 *-*-solaris2*)
3807 # libvtv requires init priority support, which depends on the linker
3808 # used on Solaris.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3810 $as_echo_n "checking for init priority support... " >&6; }
3811 if test "${libvtv_cv_init_priority+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821 void ip (void) __attribute__ ((constructor (1)));
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 libgcc_cv_init_priority=yes
3828 else
3829 libgcc_cv_init_priority=no
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3834 $as_echo "$libvtv_cv_init_priority" >&6; }
3835 if test x$libvtv_cv_init_priority = xno; then
3836 VTV_SUPPORTED=no
3837 fi
3838 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3839 # configure.tgt restricting to libvtv to Solaris 11+.
3840 ;;
3841 esac
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3843 $as_echo "$VTV_SUPPORTED" >&6; }
3844
3845 # Decide if it's usable.
3846 use_vtable_verify=no
3847 if test "x$VTV_SUPPORTED" = "xyes"; then
3848 if test "x$enable_vtable_verify" = "xyes"; then
3849 use_vtable_verify=yes
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3851 $as_echo "$as_me: using vtable verification" >&6;}
3852 fi
3853 fi
3854 if test $use_vtable_verify = yes; then
3855 ENABLE_VTABLE_VERIFY_TRUE=
3856 ENABLE_VTABLE_VERIFY_FALSE='#'
3857 else
3858 ENABLE_VTABLE_VERIFY_TRUE='#'
3859 ENABLE_VTABLE_VERIFY_FALSE=
3860 fi
3861
3862
3863 am__api_version='1.11'
3864
3865 # Find a good install program. We prefer a C program (faster),
3866 # so one script is as good as another. But avoid the broken or
3867 # incompatible versions:
3868 # SysV /etc/install, /usr/sbin/install
3869 # SunOS /usr/etc/install
3870 # IRIX /sbin/install
3871 # AIX /bin/install
3872 # AmigaOS /C/install, which installs bootblocks on floppy discs
3873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3876 # OS/2's system install, which has a completely different semantic
3877 # ./install, which can be erroneously created by make from ./install.sh.
3878 # Reject install programs that cannot install multiple files.
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3881 if test -z "$INSTALL"; then
3882 if test "${ac_cv_path_install+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 # Account for people who put trailing slashes in PATH elements.
3891 case $as_dir/ in #((
3892 ./ | .// | /[cC]/* | \
3893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3895 /usr/ucb/* ) ;;
3896 *)
3897 # OSF1 and SCO ODT 3.0 have their own names for install.
3898 # Don't use installbsd from OSF since it installs stuff as root
3899 # by default.
3900 for ac_prog in ginstall scoinst install; do
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3903 if test $ac_prog = install &&
3904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3905 # AIX install. It has an incompatible calling convention.
3906 :
3907 elif test $ac_prog = install &&
3908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3909 # program-specific install script used by HP pwplus--don't use.
3910 :
3911 else
3912 rm -rf conftest.one conftest.two conftest.dir
3913 echo one > conftest.one
3914 echo two > conftest.two
3915 mkdir conftest.dir
3916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3917 test -s conftest.one && test -s conftest.two &&
3918 test -s conftest.dir/conftest.one &&
3919 test -s conftest.dir/conftest.two
3920 then
3921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3922 break 3
3923 fi
3924 fi
3925 fi
3926 done
3927 done
3928 ;;
3929 esac
3930
3931 done
3932 IFS=$as_save_IFS
3933
3934 rm -rf conftest.one conftest.two conftest.dir
3935
3936 fi
3937 if test "${ac_cv_path_install+set}" = set; then
3938 INSTALL=$ac_cv_path_install
3939 else
3940 # As a last resort, use the slow shell script. Don't cache a
3941 # value for INSTALL within a source directory, because that will
3942 # break other packages using the cache if that directory is
3943 # removed, or if the value is a relative name.
3944 INSTALL=$ac_install_sh
3945 fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3948 $as_echo "$INSTALL" >&6; }
3949
3950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3951 # It thinks the first close brace ends the variable substitution.
3952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3953
3954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3955
3956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3959 $as_echo_n "checking whether build environment is sane... " >&6; }
3960 # Just in case
3961 sleep 1
3962 echo timestamp > conftest.file
3963 # Reject unsafe characters in $srcdir or the absolute working directory
3964 # name. Accept space and tab only in the latter.
3965 am_lf='
3966 '
3967 case `pwd` in
3968 *[\\\"\#\$\&\'\`$am_lf]*)
3969 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3970 esac
3971 case $srcdir in
3972 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3973 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3974 esac
3975
3976 # Do `set' in a subshell so we don't clobber the current shell's
3977 # arguments. Must try -L first in case configure is actually a
3978 # symlink; some systems play weird games with the mod time of symlinks
3979 # (eg FreeBSD returns the mod time of the symlink's containing
3980 # directory).
3981 if (
3982 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3983 if test "$*" = "X"; then
3984 # -L didn't work.
3985 set X `ls -t "$srcdir/configure" conftest.file`
3986 fi
3987 rm -f conftest.file
3988 if test "$*" != "X $srcdir/configure conftest.file" \
3989 && test "$*" != "X conftest.file $srcdir/configure"; then
3990
3991 # If neither matched, then we have a broken ls. This can happen
3992 # if, for instance, CONFIG_SHELL is bash and it inherits a
3993 # broken ls alias from the environment. This has actually
3994 # happened. Such a system could not be considered "sane".
3995 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3996 alias in your environment" "$LINENO" 5
3997 fi
3998
3999 test "$2" = conftest.file
4000 )
4001 then
4002 # Ok.
4003 :
4004 else
4005 as_fn_error "newly created file is older than distributed files!
4006 Check your system clock" "$LINENO" 5
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 $as_echo "yes" >&6; }
4010 test "$program_prefix" != NONE &&
4011 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4012 # Use a double $ so make ignores it.
4013 test "$program_suffix" != NONE &&
4014 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4015 # Double any \ or $.
4016 # By default was `s,x,x', remove it if useless.
4017 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4018 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4019
4020 # expand $ac_aux_dir to an absolute path
4021 am_aux_dir=`cd $ac_aux_dir && pwd`
4022
4023 if test x"${MISSING+set}" != xset; then
4024 case $am_aux_dir in
4025 *\ * | *\ *)
4026 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4027 *)
4028 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4029 esac
4030 fi
4031 # Use eval to expand $SHELL
4032 if eval "$MISSING --run true"; then
4033 am_missing_run="$MISSING --run "
4034 else
4035 am_missing_run=
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4037 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4038 fi
4039
4040 if test x"${install_sh}" != xset; then
4041 case $am_aux_dir in
4042 *\ * | *\ *)
4043 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4044 *)
4045 install_sh="\${SHELL} $am_aux_dir/install-sh"
4046 esac
4047 fi
4048
4049 # Installed binaries are usually stripped using `strip' when the user
4050 # run `make install-strip'. However `strip' might not be the right
4051 # tool to use in cross-compilation environments, therefore Automake
4052 # will honor the `STRIP' environment variable to overrule this program.
4053 if test "$cross_compiling" != no; then
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}strip; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_STRIP+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$STRIP"; then
4063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 STRIP=$ac_cv_prog_STRIP
4083 if test -n "$STRIP"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4085 $as_echo "$STRIP" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 if test -z "$ac_cv_prog_STRIP"; then
4094 ac_ct_STRIP=$STRIP
4095 # Extract the first word of "strip", so it can be a program name with args.
4096 set dummy strip; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$ac_ct_STRIP"; then
4103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_ac_ct_STRIP="strip"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4123 if test -n "$ac_ct_STRIP"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4125 $as_echo "$ac_ct_STRIP" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131 if test "x$ac_ct_STRIP" = x; then
4132 STRIP=":"
4133 else
4134 case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned=yes ;;
4139 esac
4140 STRIP=$ac_ct_STRIP
4141 fi
4142 else
4143 STRIP="$ac_cv_prog_STRIP"
4144 fi
4145
4146 fi
4147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4150 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4151 if test -z "$MKDIR_P"; then
4152 if test "${ac_cv_path_mkdir+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in mkdir gmkdir; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4163 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4164 'mkdir (GNU coreutils) '* | \
4165 'mkdir (coreutils) '* | \
4166 'mkdir (fileutils) '4.1*)
4167 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4168 break 3;;
4169 esac
4170 done
4171 done
4172 done
4173 IFS=$as_save_IFS
4174
4175 fi
4176
4177 if test "${ac_cv_path_mkdir+set}" = set; then
4178 MKDIR_P="$ac_cv_path_mkdir -p"
4179 else
4180 # As a last resort, use the slow shell script. Don't cache a
4181 # value for MKDIR_P within a source directory, because that will
4182 # break other packages using the cache if that directory is
4183 # removed, or if the value is a relative name.
4184 test -d ./--version && rmdir ./--version
4185 MKDIR_P="$ac_install_sh -d"
4186 fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4189 $as_echo "$MKDIR_P" >&6; }
4190
4191 mkdir_p="$MKDIR_P"
4192 case $mkdir_p in
4193 [\\/$]* | ?:[\\/]*) ;;
4194 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4195 esac
4196
4197 for ac_prog in gawk mawk nawk awk
4198 do
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_AWK+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$AWK"; then
4207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_AWK="$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 AWK=$ac_cv_prog_AWK
4227 if test -n "$AWK"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4229 $as_echo "$AWK" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236 test -n "$AWK" && break
4237 done
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4241 set x ${MAKE-make}
4242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 cat >conftest.make <<\_ACEOF
4247 SHELL = /bin/sh
4248 all:
4249 @echo '@@@%%%=$(MAKE)=@@@%%%'
4250 _ACEOF
4251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4253 *@@@%%%=?*=@@@%%%*)
4254 eval ac_cv_prog_make_${ac_make}_set=yes;;
4255 *)
4256 eval ac_cv_prog_make_${ac_make}_set=no;;
4257 esac
4258 rm -f conftest.make
4259 fi
4260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4262 $as_echo "yes" >&6; }
4263 SET_MAKE=
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 SET_MAKE="MAKE=${MAKE-make}"
4268 fi
4269
4270 rm -rf .tst 2>/dev/null
4271 mkdir .tst 2>/dev/null
4272 if test -d .tst; then
4273 am__leading_dot=.
4274 else
4275 am__leading_dot=_
4276 fi
4277 rmdir .tst 2>/dev/null
4278
4279 DEPDIR="${am__leading_dot}deps"
4280
4281 ac_config_commands="$ac_config_commands depfiles"
4282
4283
4284 am_make=${MAKE-make}
4285 cat > confinc << 'END'
4286 am__doit:
4287 @echo this is the am__doit target
4288 .PHONY: am__doit
4289 END
4290 # If we don't find an include directive, just comment out the code.
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4292 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4293 am__include="#"
4294 am__quote=
4295 _am_result=none
4296 # First try GNU make style include.
4297 echo "include confinc" > confmf
4298 # Ignore all kinds of additional output from `make'.
4299 case `$am_make -s -f confmf 2> /dev/null` in #(
4300 *the\ am__doit\ target*)
4301 am__include=include
4302 am__quote=
4303 _am_result=GNU
4304 ;;
4305 esac
4306 # Now try BSD make style include.
4307 if test "$am__include" = "#"; then
4308 echo '.include "confinc"' > confmf
4309 case `$am_make -s -f confmf 2> /dev/null` in #(
4310 *the\ am__doit\ target*)
4311 am__include=.include
4312 am__quote="\""
4313 _am_result=BSD
4314 ;;
4315 esac
4316 fi
4317
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4320 $as_echo "$_am_result" >&6; }
4321 rm -f confinc confmf
4322
4323 # Check whether --enable-dependency-tracking was given.
4324 if test "${enable_dependency_tracking+set}" = set; then :
4325 enableval=$enable_dependency_tracking;
4326 fi
4327
4328 if test "x$enable_dependency_tracking" != xno; then
4329 am_depcomp="$ac_aux_dir/depcomp"
4330 AMDEPBACKSLASH='\'
4331 am__nodep='_no'
4332 fi
4333 if test "x$enable_dependency_tracking" != xno; then
4334 AMDEP_TRUE=
4335 AMDEP_FALSE='#'
4336 else
4337 AMDEP_TRUE='#'
4338 AMDEP_FALSE=
4339 fi
4340
4341
4342 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4343 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4344 # is not polluted with repeated "-I."
4345 am__isrc=' -I$(srcdir)'
4346 # test to see if srcdir already configured
4347 if test -f $srcdir/config.status; then
4348 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4349 fi
4350 fi
4351
4352 # test whether we have cygpath
4353 if test -z "$CYGPATH_W"; then
4354 if (cygpath --version) >/dev/null 2>/dev/null; then
4355 CYGPATH_W='cygpath -w'
4356 else
4357 CYGPATH_W=echo
4358 fi
4359 fi
4360
4361
4362 # Define the identity of the package.
4363 PACKAGE='libvtv'
4364 VERSION='1.0'
4365
4366
4367 cat >>confdefs.h <<_ACEOF
4368 #define PACKAGE "$PACKAGE"
4369 _ACEOF
4370
4371
4372 cat >>confdefs.h <<_ACEOF
4373 #define VERSION "$VERSION"
4374 _ACEOF
4375
4376 # Some tools Automake needs.
4377
4378 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4379
4380
4381 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4382
4383
4384 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4385
4386
4387 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4388
4389
4390 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4391
4392 # We need awk for the "check" target. The system "awk" is bad on
4393 # some platforms.
4394 # Always define AMTAR for backward compatibility. Yes, it's still used
4395 # in the wild :-( We should find a proper way to deprecate it ...
4396 AMTAR='$${TAR-tar}'
4397
4398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4399
4400
4401
4402
4403 depcc="$CC" am_compiler_list=
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4406 $as_echo_n "checking dependency style of $depcc... " >&6; }
4407 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411 # We make a subdir and do the tests there. Otherwise we can end up
4412 # making bogus files that we don't know about and never remove. For
4413 # instance it was reported that on HP-UX the gcc test will end up
4414 # making a dummy file named `D' -- because `-MD' means `put the output
4415 # in D'.
4416 rm -rf conftest.dir
4417 mkdir conftest.dir
4418 # Copy depcomp to subdir because otherwise we won't find it if we're
4419 # using a relative directory.
4420 cp "$am_depcomp" conftest.dir
4421 cd conftest.dir
4422 # We will build objects and dependencies in a subdirectory because
4423 # it helps to detect inapplicable dependency modes. For instance
4424 # both Tru64's cc and ICC support -MD to output dependencies as a
4425 # side effect of compilation, but ICC will put the dependencies in
4426 # the current directory while Tru64 will put them in the object
4427 # directory.
4428 mkdir sub
4429
4430 am_cv_CC_dependencies_compiler_type=none
4431 if test "$am_compiler_list" = ""; then
4432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433 fi
4434 am__universal=false
4435 case " $depcc " in #(
4436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437 esac
4438
4439 for depmode in $am_compiler_list; do
4440 # Setup a source with many dependencies, because some compilers
4441 # like to wrap large dependency lists on column 80 (with \), and
4442 # we should not choose a depcomp mode which is confused by this.
4443 #
4444 # We need to recreate these files for each test, as the compiler may
4445 # overwrite some of them when testing with obscure command lines.
4446 # This happens at least with the AIX C compiler.
4447 : > sub/conftest.c
4448 for i in 1 2 3 4 5 6; do
4449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4451 # Solaris 8's {/usr,}/bin/sh.
4452 touch sub/conftst$i.h
4453 done
4454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455
4456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4457 # mode. It turns out that the SunPro C++ compiler does not properly
4458 # handle `-M -o', and we need to detect this. Also, some Intel
4459 # versions had trouble with output in subdirs
4460 am__obj=sub/conftest.${OBJEXT-o}
4461 am__minus_obj="-o $am__obj"
4462 case $depmode in
4463 gcc)
4464 # This depmode causes a compiler race in universal mode.
4465 test "$am__universal" = false || continue
4466 ;;
4467 nosideeffect)
4468 # after this tag, mechanisms are not by side-effect, so they'll
4469 # only be used when explicitly requested
4470 if test "x$enable_dependency_tracking" = xyes; then
4471 continue
4472 else
4473 break
4474 fi
4475 ;;
4476 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477 # This compiler won't grok `-c -o', but also, the minuso test has
4478 # not run yet. These depmodes are late enough in the game, and
4479 # so weak that their functioning should not be impacted.
4480 am__obj=conftest.${OBJEXT-o}
4481 am__minus_obj=
4482 ;;
4483 none) break ;;
4484 esac
4485 if depmode=$depmode \
4486 source=sub/conftest.c object=$am__obj \
4487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489 >/dev/null 2>conftest.err &&
4490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494 # icc doesn't choke on unknown options, it will just issue warnings
4495 # or remarks (even with -Werror). So we grep stderr for any message
4496 # that says an option was ignored or not supported.
4497 # When given -MP, icc 7.0 and 7.1 complain thusly:
4498 # icc: Command line warning: ignoring option '-M'; no argument required
4499 # The diagnosis changed in icc 8.0:
4500 # icc: Command line remark: option '-MP' not supported
4501 if (grep 'ignoring option' conftest.err ||
4502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503 am_cv_CC_dependencies_compiler_type=$depmode
4504 break
4505 fi
4506 fi
4507 done
4508
4509 cd ..
4510 rm -rf conftest.dir
4511 else
4512 am_cv_CC_dependencies_compiler_type=none
4513 fi
4514
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4519
4520 if
4521 test "x$enable_dependency_tracking" != xno \
4522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4523 am__fastdepCC_TRUE=
4524 am__fastdepCC_FALSE='#'
4525 else
4526 am__fastdepCC_TRUE='#'
4527 am__fastdepCC_FALSE=
4528 fi
4529
4530
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4534 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4535 # Check whether --enable-maintainer-mode was given.
4536 if test "${enable_maintainer_mode+set}" = set; then :
4537 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4538 else
4539 USE_MAINTAINER_MODE=no
4540 fi
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4543 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4544 if test $USE_MAINTAINER_MODE = yes; then
4545 MAINTAINER_MODE_TRUE=
4546 MAINTAINER_MODE_FALSE='#'
4547 else
4548 MAINTAINER_MODE_TRUE='#'
4549 MAINTAINER_MODE_FALSE=
4550 fi
4551
4552 MAINT=$MAINTAINER_MODE_TRUE
4553
4554
4555
4556
4557
4558 # These need to be absolute paths, yet at the same time need to
4559 # canonicalize only relative paths, because then amd will not unmount
4560 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4561 libvtv_builddir=`${PWDCMD-pwd}`
4562 case $srcdir in
4563 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4564 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4565 esac
4566 toplevel_builddir=${libvtv_builddir}/..
4567 toplevel_srcdir=${libvtv_srcdir}/..
4568
4569
4570
4571
4572
4573
4574 # Calculate toolexeclibdir
4575 # Also toolexecdir, though it's only used in toolexeclibdir
4576 case ${version_specific_libs} in
4577 yes)
4578 # Need the gcc compiler version to know where to install libraries
4579 # and header files if --enable-version-specific-runtime-libs option
4580 # is selected.
4581 toolexecdir='$(libdir)/gcc/$(target_alias)'
4582 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4583 ;;
4584 no)
4585 if test -n "$with_cross_host" &&
4586 test x"$with_cross_host" != x"no"; then
4587 # Install a library built with a cross compiler in tooldir, not libdir.
4588 toolexecdir='$(exec_prefix)/$(target_alias)'
4589 toolexeclibdir='$(toolexecdir)/lib'
4590 else
4591 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4592 toolexeclibdir='$(libdir)'
4593 fi
4594 multi_os_directory=`$CC -print-multi-os-directory`
4595 case $multi_os_directory in
4596 .) ;; # Avoid trailing /.
4597 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4598 esac
4599 ;;
4600 esac
4601
4602
4603
4604
4605 for ac_func in __secure_getenv
4606 do :
4607 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4608 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4609 cat >>confdefs.h <<_ACEOF
4610 #define HAVE___SECURE_GETENV 1
4611 _ACEOF
4612
4613 fi
4614 done
4615
4616
4617
4618 for ac_func in secure_getenv
4619 do :
4620 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4621 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4622 cat >>confdefs.h <<_ACEOF
4623 #define HAVE_SECURE_GETENV 1
4624 _ACEOF
4625
4626 fi
4627 done
4628
4629
4630 for ac_func in getexecname __fortify_fail
4631 do :
4632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4634 eval as_val=\$$as_ac_var
4635 if test "x$as_val" = x""yes; then :
4636 cat >>confdefs.h <<_ACEOF
4637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4638 _ACEOF
4639
4640 fi
4641 done
4642
4643
4644 # Check for programs.
4645
4646
4647 ac_ext=c
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652 if test -n "$ac_tool_prefix"; then
4653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 CC=$ac_cv_prog_CC
4681 if test -n "$CC"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4683 $as_echo "$CC" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 fi
4691 if test -z "$ac_cv_prog_CC"; then
4692 ac_ct_CC=$CC
4693 # Extract the first word of "gcc", so it can be a program name with args.
4694 set dummy gcc; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$ac_ct_CC"; then
4701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_ac_ct_CC="gcc"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4721 if test -n "$ac_ct_CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4723 $as_echo "$ac_ct_CC" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729 if test "x$ac_ct_CC" = x; then
4730 CC=""
4731 else
4732 case $cross_compiling:$ac_tool_warned in
4733 yes:)
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4736 ac_tool_warned=yes ;;
4737 esac
4738 CC=$ac_ct_CC
4739 fi
4740 else
4741 CC="$ac_cv_prog_CC"
4742 fi
4743
4744 if test -z "$CC"; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}cc; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_CC+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$CC"; then
4754 ac_cv_prog_CC="$CC" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_CC="${ac_tool_prefix}cc"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 CC=$ac_cv_prog_CC
4774 if test -n "$CC"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4776 $as_echo "$CC" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782
4783 fi
4784 fi
4785 if test -z "$CC"; then
4786 # Extract the first word of "cc", so it can be a program name with args.
4787 set dummy cc; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_CC+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$CC"; then
4794 ac_cv_prog_CC="$CC" # Let the user override the test.
4795 else
4796 ac_prog_rejected=no
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4805 ac_prog_rejected=yes
4806 continue
4807 fi
4808 ac_cv_prog_CC="cc"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 if test $ac_prog_rejected = yes; then
4817 # We found a bogon in the path, so make sure we never use it.
4818 set dummy $ac_cv_prog_CC
4819 shift
4820 if test $# != 0; then
4821 # We chose a different compiler from the bogus one.
4822 # However, it has the same basename, so the bogon will be chosen
4823 # first if we set CC to just the basename; use the full file name.
4824 shift
4825 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4826 fi
4827 fi
4828 fi
4829 fi
4830 CC=$ac_cv_prog_CC
4831 if test -n "$CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4833 $as_echo "$CC" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 fi
4841 if test -z "$CC"; then
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in cl.exe
4844 do
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_CC+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$CC"; then
4853 ac_cv_prog_CC="$CC" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 CC=$ac_cv_prog_CC
4873 if test -n "$CC"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4875 $as_echo "$CC" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881
4882 test -n "$CC" && break
4883 done
4884 fi
4885 if test -z "$CC"; then
4886 ac_ct_CC=$CC
4887 for ac_prog in cl.exe
4888 do
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC="$ac_prog"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4917 if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919 $as_echo "$ac_ct_CC" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926 test -n "$ac_ct_CC" && break
4927 done
4928
4929 if test "x$ac_ct_CC" = x; then
4930 CC=""
4931 else
4932 case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936 ac_tool_warned=yes ;;
4937 esac
4938 CC=$ac_ct_CC
4939 fi
4940 fi
4941
4942 fi
4943
4944
4945 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4947 as_fn_error "no acceptable C compiler found in \$PATH
4948 See \`config.log' for more details." "$LINENO" 5; }
4949
4950 # Provide some information about the compiler.
4951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4952 set X $ac_compile
4953 ac_compiler=$2
4954 for ac_option in --version -v -V -qversion; do
4955 { { ac_try="$ac_compiler $ac_option >&5"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4961 $as_echo "$ac_try_echo"; } >&5
4962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4963 ac_status=$?
4964 if test -s conftest.err; then
4965 sed '10a\
4966 ... rest of stderr output deleted ...
4967 10q' conftest.err >conftest.er1
4968 cat conftest.er1 >&5
4969 rm -f conftest.er1 conftest.err
4970 fi
4971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972 test $ac_status = 0; }
4973 done
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4976 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4977 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982
4983 int
4984 main ()
4985 {
4986 #ifndef __GNUC__
4987 choke me
4988 #endif
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995 ac_compiler_gnu=yes
4996 else
4997 ac_compiler_gnu=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5001
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5004 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5005 if test $ac_compiler_gnu = yes; then
5006 GCC=yes
5007 else
5008 GCC=
5009 fi
5010 ac_test_CFLAGS=${CFLAGS+set}
5011 ac_save_CFLAGS=$CFLAGS
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5013 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5014 if test "${ac_cv_prog_cc_g+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 ac_save_c_werror_flag=$ac_c_werror_flag
5018 ac_c_werror_flag=yes
5019 ac_cv_prog_cc_g=no
5020 CFLAGS="-g"
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023
5024 int
5025 main ()
5026 {
5027
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 ac_cv_prog_cc_g=yes
5034 else
5035 CFLAGS=""
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038
5039 int
5040 main ()
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048
5049 else
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5051 CFLAGS="-g"
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054
5055 int
5056 main ()
5057 {
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 ac_cv_prog_cc_g=yes
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 ac_c_werror_flag=$ac_save_c_werror_flag
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5074 $as_echo "$ac_cv_prog_cc_g" >&6; }
5075 if test "$ac_test_CFLAGS" = set; then
5076 CFLAGS=$ac_save_CFLAGS
5077 elif test $ac_cv_prog_cc_g = yes; then
5078 if test "$GCC" = yes; then
5079 CFLAGS="-g -O2"
5080 else
5081 CFLAGS="-g"
5082 fi
5083 else
5084 if test "$GCC" = yes; then
5085 CFLAGS="-O2"
5086 else
5087 CFLAGS=
5088 fi
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5091 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5092 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 ac_cv_prog_cc_c89=no
5096 ac_save_CC=$CC
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <stdarg.h>
5100 #include <stdio.h>
5101 #include <sys/types.h>
5102 #include <sys/stat.h>
5103 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5104 struct buf { int x; };
5105 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5106 static char *e (p, i)
5107 char **p;
5108 int i;
5109 {
5110 return p[i];
5111 }
5112 static char *f (char * (*g) (char **, int), char **p, ...)
5113 {
5114 char *s;
5115 va_list v;
5116 va_start (v,p);
5117 s = g (p, va_arg (v,int));
5118 va_end (v);
5119 return s;
5120 }
5121
5122 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5123 function prototypes and stuff, but not '\xHH' hex character constants.
5124 These don't provoke an error unfortunately, instead are silently treated
5125 as 'x'. The following induces an error, until -std is added to get
5126 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5127 array size at least. It's necessary to write '\x00'==0 to get something
5128 that's true only with -std. */
5129 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5130
5131 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5132 inside strings and character constants. */
5133 #define FOO(x) 'x'
5134 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5135
5136 int test (int i, double x);
5137 struct s1 {int (*f) (int a);};
5138 struct s2 {int (*f) (double a);};
5139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5140 int argc;
5141 char **argv;
5142 int
5143 main ()
5144 {
5145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5151 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5152 do
5153 CC="$ac_save_CC $ac_arg"
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_cv_prog_cc_c89=$ac_arg
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext
5158 test "x$ac_cv_prog_cc_c89" != "xno" && break
5159 done
5160 rm -f conftest.$ac_ext
5161 CC=$ac_save_CC
5162
5163 fi
5164 # AC_CACHE_VAL
5165 case "x$ac_cv_prog_cc_c89" in
5166 x)
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5168 $as_echo "none needed" >&6; } ;;
5169 xno)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5171 $as_echo "unsupported" >&6; } ;;
5172 *)
5173 CC="$CC $ac_cv_prog_cc_c89"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5175 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5176 esac
5177 if test "x$ac_cv_prog_cc_c89" != xno; then :
5178
5179 fi
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187 ac_ext=cpp
5188 ac_cpp='$CXXCPP $CPPFLAGS'
5189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5192 if test -z "$CXX"; then
5193 if test -n "$CCC"; then
5194 CXX=$CCC
5195 else
5196 if test -n "$ac_tool_prefix"; then
5197 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5198 do
5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_prog_CXX+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$CXX"; then
5207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 CXX=$ac_cv_prog_CXX
5227 if test -n "$CXX"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5229 $as_echo "$CXX" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236 test -n "$CXX" && break
5237 done
5238 fi
5239 if test -z "$CXX"; then
5240 ac_ct_CXX=$CXX
5241 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5242 do
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$ac_ct_CXX"; then
5251 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_CXX="$ac_prog"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5271 if test -n "$ac_ct_CXX"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5273 $as_echo "$ac_ct_CXX" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280 test -n "$ac_ct_CXX" && break
5281 done
5282
5283 if test "x$ac_ct_CXX" = x; then
5284 CXX="g++"
5285 else
5286 case $cross_compiling:$ac_tool_warned in
5287 yes:)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5291 esac
5292 CXX=$ac_ct_CXX
5293 fi
5294 fi
5295
5296 fi
5297 fi
5298 # Provide some information about the compiler.
5299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5300 set X $ac_compile
5301 ac_compiler=$2
5302 for ac_option in --version -v -V -qversion; do
5303 { { ac_try="$ac_compiler $ac_option >&5"
5304 case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 $as_echo "$ac_try_echo"; } >&5
5310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5311 ac_status=$?
5312 if test -s conftest.err; then
5313 sed '10a\
5314 ... rest of stderr output deleted ...
5315 10q' conftest.err >conftest.er1
5316 cat conftest.er1 >&5
5317 rm -f conftest.er1 conftest.err
5318 fi
5319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5320 test $ac_status = 0; }
5321 done
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5324 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5325 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330
5331 int
5332 main ()
5333 {
5334 #ifndef __GNUC__
5335 choke me
5336 #endif
5337
5338 ;
5339 return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_cxx_try_compile "$LINENO"; then :
5343 ac_compiler_gnu=yes
5344 else
5345 ac_compiler_gnu=no
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5349
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5352 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5353 if test $ac_compiler_gnu = yes; then
5354 GXX=yes
5355 else
5356 GXX=
5357 fi
5358 ac_test_CXXFLAGS=${CXXFLAGS+set}
5359 ac_save_CXXFLAGS=$CXXFLAGS
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5361 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5362 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5366 ac_cxx_werror_flag=yes
5367 ac_cv_prog_cxx_g=no
5368 CXXFLAGS="-g"
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371
5372 int
5373 main ()
5374 {
5375
5376 ;
5377 return 0;
5378 }
5379 _ACEOF
5380 if ac_fn_cxx_try_compile "$LINENO"; then :
5381 ac_cv_prog_cxx_g=yes
5382 else
5383 CXXFLAGS=""
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_cxx_try_compile "$LINENO"; then :
5396
5397 else
5398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5399 CXXFLAGS="-g"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402
5403 int
5404 main ()
5405 {
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_cxx_try_compile "$LINENO"; then :
5412 ac_cv_prog_cxx_g=yes
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5422 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5423 if test "$ac_test_CXXFLAGS" = set; then
5424 CXXFLAGS=$ac_save_CXXFLAGS
5425 elif test $ac_cv_prog_cxx_g = yes; then
5426 if test "$GXX" = yes; then
5427 CXXFLAGS="-g -O2"
5428 else
5429 CXXFLAGS="-g"
5430 fi
5431 else
5432 if test "$GXX" = yes; then
5433 CXXFLAGS="-O2"
5434 else
5435 CXXFLAGS=
5436 fi
5437 fi
5438 ac_ext=c
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443
5444 depcc="$CXX" am_compiler_list=
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5447 $as_echo_n "checking dependency style of $depcc... " >&6; }
5448 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5452 # We make a subdir and do the tests there. Otherwise we can end up
5453 # making bogus files that we don't know about and never remove. For
5454 # instance it was reported that on HP-UX the gcc test will end up
5455 # making a dummy file named `D' -- because `-MD' means `put the output
5456 # in D'.
5457 rm -rf conftest.dir
5458 mkdir conftest.dir
5459 # Copy depcomp to subdir because otherwise we won't find it if we're
5460 # using a relative directory.
5461 cp "$am_depcomp" conftest.dir
5462 cd conftest.dir
5463 # We will build objects and dependencies in a subdirectory because
5464 # it helps to detect inapplicable dependency modes. For instance
5465 # both Tru64's cc and ICC support -MD to output dependencies as a
5466 # side effect of compilation, but ICC will put the dependencies in
5467 # the current directory while Tru64 will put them in the object
5468 # directory.
5469 mkdir sub
5470
5471 am_cv_CXX_dependencies_compiler_type=none
5472 if test "$am_compiler_list" = ""; then
5473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5474 fi
5475 am__universal=false
5476 case " $depcc " in #(
5477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5478 esac
5479
5480 for depmode in $am_compiler_list; do
5481 # Setup a source with many dependencies, because some compilers
5482 # like to wrap large dependency lists on column 80 (with \), and
5483 # we should not choose a depcomp mode which is confused by this.
5484 #
5485 # We need to recreate these files for each test, as the compiler may
5486 # overwrite some of them when testing with obscure command lines.
5487 # This happens at least with the AIX C compiler.
5488 : > sub/conftest.c
5489 for i in 1 2 3 4 5 6; do
5490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5491 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5492 # Solaris 8's {/usr,}/bin/sh.
5493 touch sub/conftst$i.h
5494 done
5495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5496
5497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5498 # mode. It turns out that the SunPro C++ compiler does not properly
5499 # handle `-M -o', and we need to detect this. Also, some Intel
5500 # versions had trouble with output in subdirs
5501 am__obj=sub/conftest.${OBJEXT-o}
5502 am__minus_obj="-o $am__obj"
5503 case $depmode in
5504 gcc)
5505 # This depmode causes a compiler race in universal mode.
5506 test "$am__universal" = false || continue
5507 ;;
5508 nosideeffect)
5509 # after this tag, mechanisms are not by side-effect, so they'll
5510 # only be used when explicitly requested
5511 if test "x$enable_dependency_tracking" = xyes; then
5512 continue
5513 else
5514 break
5515 fi
5516 ;;
5517 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5518 # This compiler won't grok `-c -o', but also, the minuso test has
5519 # not run yet. These depmodes are late enough in the game, and
5520 # so weak that their functioning should not be impacted.
5521 am__obj=conftest.${OBJEXT-o}
5522 am__minus_obj=
5523 ;;
5524 none) break ;;
5525 esac
5526 if depmode=$depmode \
5527 source=sub/conftest.c object=$am__obj \
5528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5530 >/dev/null 2>conftest.err &&
5531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5535 # icc doesn't choke on unknown options, it will just issue warnings
5536 # or remarks (even with -Werror). So we grep stderr for any message
5537 # that says an option was ignored or not supported.
5538 # When given -MP, icc 7.0 and 7.1 complain thusly:
5539 # icc: Command line warning: ignoring option '-M'; no argument required
5540 # The diagnosis changed in icc 8.0:
5541 # icc: Command line remark: option '-MP' not supported
5542 if (grep 'ignoring option' conftest.err ||
5543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5544 am_cv_CXX_dependencies_compiler_type=$depmode
5545 break
5546 fi
5547 fi
5548 done
5549
5550 cd ..
5551 rm -rf conftest.dir
5552 else
5553 am_cv_CXX_dependencies_compiler_type=none
5554 fi
5555
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5558 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5559 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5560
5561 if
5562 test "x$enable_dependency_tracking" != xno \
5563 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5564 am__fastdepCXX_TRUE=
5565 am__fastdepCXX_FALSE='#'
5566 else
5567 am__fastdepCXX_TRUE='#'
5568 am__fastdepCXX_FALSE=
5569 fi
5570
5571
5572
5573
5574 if test "x$CC" != xcc; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5576 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5579 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5580 fi
5581 set dummy $CC; ac_cc=`$as_echo "$2" |
5582 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5583 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588
5589 int
5590 main ()
5591 {
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 # Make sure it works both with $CC and with simple cc.
5598 # We do the test twice because some compilers refuse to overwrite an
5599 # existing .o file with -o, though they will create one.
5600 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5601 rm -f conftest2.*
5602 if { { case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5607 $as_echo "$ac_try_echo"; } >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; } &&
5612 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5617 $as_echo "$ac_try_echo"; } >&5
5618 (eval "$ac_try") 2>&5
5619 ac_status=$?
5620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5621 test $ac_status = 0; };
5622 then
5623 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5624 if test "x$CC" != xcc; then
5625 # Test first that cc exists at all.
5626 if { ac_try='cc -c conftest.$ac_ext >&5'
5627 { { case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5632 $as_echo "$ac_try_echo"; } >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; }; then
5637 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5638 rm -f conftest2.*
5639 if { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; } &&
5649 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5654 $as_echo "$ac_try_echo"; } >&5
5655 (eval "$ac_try") 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; };
5659 then
5660 # cc works too.
5661 :
5662 else
5663 # cc exists but doesn't like -o.
5664 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5665 fi
5666 fi
5667 fi
5668 else
5669 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5670 fi
5671 rm -f core conftest*
5672
5673 fi
5674 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680
5681 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5682
5683 fi
5684
5685 # FIXME: we rely on the cache variable name because
5686 # there is no other way.
5687 set dummy $CC
5688 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5689 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5690 if test "$am_t" != yes; then
5691 # Losing compiler, so override with the script.
5692 # FIXME: It is wrong to rewrite CC.
5693 # But if we don't then we get into trouble of one sort or another.
5694 # A longer-term fix would be to have automake use am__CC in this case,
5695 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5696 CC="$am_aux_dir/compile $CC"
5697 fi
5698
5699
5700
5701
5702
5703
5704 # Newer automakes demand CCAS and CCASFLAGS.
5705 : ${CCAS='$(CC)'}
5706 : ${CCASFLAGS='$(CFLAGS)'}
5707
5708
5709
5710 if test -n "$ac_tool_prefix"; then
5711 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5712 set dummy ${ac_tool_prefix}as; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if test "${ac_cv_prog_AS+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$AS"; then
5719 ac_cv_prog_AS="$AS" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_AS="${ac_tool_prefix}as"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 AS=$ac_cv_prog_AS
5739 if test -n "$AS"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5741 $as_echo "$AS" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748 fi
5749 if test -z "$ac_cv_prog_AS"; then
5750 ac_ct_AS=$AS
5751 # Extract the first word of "as", so it can be a program name with args.
5752 set dummy as; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$ac_ct_AS"; then
5759 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_ac_ct_AS="as"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5779 if test -n "$ac_ct_AS"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5781 $as_echo "$ac_ct_AS" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787 if test "x$ac_ct_AS" = x; then
5788 AS=""
5789 else
5790 case $cross_compiling:$ac_tool_warned in
5791 yes:)
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796 AS=$ac_ct_AS
5797 fi
5798 else
5799 AS="$ac_cv_prog_AS"
5800 fi
5801
5802 if test -n "$ac_tool_prefix"; then
5803 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}ar; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_prog_AR+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$AR"; then
5811 ac_cv_prog_AR="$AR" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_AR="${ac_tool_prefix}ar"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 AR=$ac_cv_prog_AR
5831 if test -n "$AR"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5833 $as_echo "$AR" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840 fi
5841 if test -z "$ac_cv_prog_AR"; then
5842 ac_ct_AR=$AR
5843 # Extract the first word of "ar", so it can be a program name with args.
5844 set dummy ar; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$ac_ct_AR"; then
5851 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_AR="ar"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5871 if test -n "$ac_ct_AR"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5873 $as_echo "$ac_ct_AR" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879 if test "x$ac_ct_AR" = x; then
5880 AR=""
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 AR=$ac_ct_AR
5889 fi
5890 else
5891 AR="$ac_cv_prog_AR"
5892 fi
5893
5894 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 RANLIB=$ac_cv_prog_RANLIB
5923 if test -n "$RANLIB"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5925 $as_echo "$RANLIB" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932 fi
5933 if test -z "$ac_cv_prog_RANLIB"; then
5934 ac_ct_RANLIB=$RANLIB
5935 # Extract the first word of "ranlib", so it can be a program name with args.
5936 set dummy ranlib; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$ac_ct_RANLIB"; then
5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_RANLIB="ranlib"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963 if test -n "$ac_ct_RANLIB"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5965 $as_echo "$ac_ct_RANLIB" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971 if test "x$ac_ct_RANLIB" = x; then
5972 RANLIB=":"
5973 else
5974 case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned=yes ;;
5979 esac
5980 RANLIB=$ac_ct_RANLIB
5981 fi
5982 else
5983 RANLIB="$ac_cv_prog_RANLIB"
5984 fi
5985
5986
5987 # Configure libtool
5988 enable_dlopen=yes
5989
5990
5991
5992 case `pwd` in
5993 *\ * | *\ *)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5995 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5996 esac
5997
5998
5999
6000 macro_version='2.2.7a'
6001 macro_revision='1.3134'
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 ltmain="$ac_aux_dir/ltmain.sh"
6016
6017 # Backslashify metacharacters that are still active within
6018 # double-quoted strings.
6019 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6020
6021 # Same as above, but do not quote variable references.
6022 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6023
6024 # Sed substitution to delay expansion of an escaped shell variable in a
6025 # double_quote_subst'ed string.
6026 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6027
6028 # Sed substitution to delay expansion of an escaped single quote.
6029 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6030
6031 # Sed substitution to avoid accidental globbing in evaled expressions
6032 no_glob_subst='s/\*/\\\*/g'
6033
6034 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6039 $as_echo_n "checking how to print strings... " >&6; }
6040 # Test print first, because it will be a builtin if present.
6041 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6043 ECHO='print -r --'
6044 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6045 ECHO='printf %s\n'
6046 else
6047 # Use this function as a fallback that always works.
6048 func_fallback_echo ()
6049 {
6050 eval 'cat <<_LTECHO_EOF
6051 $1
6052 _LTECHO_EOF'
6053 }
6054 ECHO='func_fallback_echo'
6055 fi
6056
6057 # func_echo_all arg...
6058 # Invoke $ECHO with all args, space-separated.
6059 func_echo_all ()
6060 {
6061 $ECHO ""
6062 }
6063
6064 case "$ECHO" in
6065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6066 $as_echo "printf" >&6; } ;;
6067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6068 $as_echo "print -r" >&6; } ;;
6069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6070 $as_echo "cat" >&6; } ;;
6071 esac
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6087 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6088 if test "${ac_cv_path_SED+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6092 for ac_i in 1 2 3 4 5 6 7; do
6093 ac_script="$ac_script$as_nl$ac_script"
6094 done
6095 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6096 { ac_script=; unset ac_script;}
6097 if test -z "$SED"; then
6098 ac_path_SED_found=false
6099 # Loop through the user's path and test for each of PROGNAME-LIST
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_prog in sed gsed; do
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6108 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6109 # Check for GNU ac_path_SED and select it if it is found.
6110 # Check for GNU $ac_path_SED
6111 case `"$ac_path_SED" --version 2>&1` in
6112 *GNU*)
6113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6114 *)
6115 ac_count=0
6116 $as_echo_n 0123456789 >"conftest.in"
6117 while :
6118 do
6119 cat "conftest.in" "conftest.in" >"conftest.tmp"
6120 mv "conftest.tmp" "conftest.in"
6121 cp "conftest.in" "conftest.nl"
6122 $as_echo '' >> "conftest.nl"
6123 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6125 as_fn_arith $ac_count + 1 && ac_count=$as_val
6126 if test $ac_count -gt ${ac_path_SED_max-0}; then
6127 # Best one so far, save it but keep looking for a better one
6128 ac_cv_path_SED="$ac_path_SED"
6129 ac_path_SED_max=$ac_count
6130 fi
6131 # 10*(2^10) chars as input seems more than enough
6132 test $ac_count -gt 10 && break
6133 done
6134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6135 esac
6136
6137 $ac_path_SED_found && break 3
6138 done
6139 done
6140 done
6141 IFS=$as_save_IFS
6142 if test -z "$ac_cv_path_SED"; then
6143 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6144 fi
6145 else
6146 ac_cv_path_SED=$SED
6147 fi
6148
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6151 $as_echo "$ac_cv_path_SED" >&6; }
6152 SED="$ac_cv_path_SED"
6153 rm -f conftest.sed
6154
6155 test -z "$SED" && SED=sed
6156 Xsed="$SED -e 1s/^X//"
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6169 $as_echo_n "checking for fgrep... " >&6; }
6170 if test "${ac_cv_path_FGREP+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6174 then ac_cv_path_FGREP="$GREP -F"
6175 else
6176 if test -z "$FGREP"; then
6177 ac_path_FGREP_found=false
6178 # Loop through the user's path and test for each of PROGNAME-LIST
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_prog in fgrep; do
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6187 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6188 # Check for GNU ac_path_FGREP and select it if it is found.
6189 # Check for GNU $ac_path_FGREP
6190 case `"$ac_path_FGREP" --version 2>&1` in
6191 *GNU*)
6192 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6193 *)
6194 ac_count=0
6195 $as_echo_n 0123456789 >"conftest.in"
6196 while :
6197 do
6198 cat "conftest.in" "conftest.in" >"conftest.tmp"
6199 mv "conftest.tmp" "conftest.in"
6200 cp "conftest.in" "conftest.nl"
6201 $as_echo 'FGREP' >> "conftest.nl"
6202 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6204 as_fn_arith $ac_count + 1 && ac_count=$as_val
6205 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6206 # Best one so far, save it but keep looking for a better one
6207 ac_cv_path_FGREP="$ac_path_FGREP"
6208 ac_path_FGREP_max=$ac_count
6209 fi
6210 # 10*(2^10) chars as input seems more than enough
6211 test $ac_count -gt 10 && break
6212 done
6213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6214 esac
6215
6216 $ac_path_FGREP_found && break 3
6217 done
6218 done
6219 done
6220 IFS=$as_save_IFS
6221 if test -z "$ac_cv_path_FGREP"; then
6222 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6223 fi
6224 else
6225 ac_cv_path_FGREP=$FGREP
6226 fi
6227
6228 fi
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6231 $as_echo "$ac_cv_path_FGREP" >&6; }
6232 FGREP="$ac_cv_path_FGREP"
6233
6234
6235 test -z "$GREP" && GREP=grep
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255 # Check whether --with-gnu-ld was given.
6256 if test "${with_gnu_ld+set}" = set; then :
6257 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6258 else
6259 with_gnu_ld=no
6260 fi
6261
6262 ac_prog=ld
6263 if test "$GCC" = yes; then
6264 # Check if gcc -print-prog-name=ld gives a path.
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6266 $as_echo_n "checking for ld used by $CC... " >&6; }
6267 case $host in
6268 *-*-mingw*)
6269 # gcc leaves a trailing carriage return which upsets mingw
6270 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6271 *)
6272 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6273 esac
6274 case $ac_prog in
6275 # Accept absolute paths.
6276 [\\/]* | ?:[\\/]*)
6277 re_direlt='/[^/][^/]*/\.\./'
6278 # Canonicalize the pathname of ld
6279 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6280 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6281 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6282 done
6283 test -z "$LD" && LD="$ac_prog"
6284 ;;
6285 "")
6286 # If it fails, then pretend we aren't using GCC.
6287 ac_prog=ld
6288 ;;
6289 *)
6290 # If it is relative, then search for the first ld in PATH.
6291 with_gnu_ld=unknown
6292 ;;
6293 esac
6294 elif test "$with_gnu_ld" = yes; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6296 $as_echo_n "checking for GNU ld... " >&6; }
6297 else
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6299 $as_echo_n "checking for non-GNU ld... " >&6; }
6300 fi
6301 if test "${lt_cv_path_LD+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -z "$LD"; then
6305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6306 for ac_dir in $PATH; do
6307 IFS="$lt_save_ifs"
6308 test -z "$ac_dir" && ac_dir=.
6309 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6310 lt_cv_path_LD="$ac_dir/$ac_prog"
6311 # Check to see if the program is GNU ld. I'd rather use --version,
6312 # but apparently some variants of GNU ld only accept -v.
6313 # Break only if it was the GNU/non-GNU ld that we prefer.
6314 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6315 *GNU* | *'with BFD'*)
6316 test "$with_gnu_ld" != no && break
6317 ;;
6318 *)
6319 test "$with_gnu_ld" != yes && break
6320 ;;
6321 esac
6322 fi
6323 done
6324 IFS="$lt_save_ifs"
6325 else
6326 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6327 fi
6328 fi
6329
6330 LD="$lt_cv_path_LD"
6331 if test -n "$LD"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6333 $as_echo "$LD" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6340 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6341 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6345 case `$LD -v 2>&1 </dev/null` in
6346 *GNU* | *'with BFD'*)
6347 lt_cv_prog_gnu_ld=yes
6348 ;;
6349 *)
6350 lt_cv_prog_gnu_ld=no
6351 ;;
6352 esac
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6355 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6356 with_gnu_ld=$lt_cv_prog_gnu_ld
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6367 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6368 if test "${lt_cv_path_NM+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$NM"; then
6372 # Let the user override the test.
6373 lt_cv_path_NM="$NM"
6374 else
6375 lt_nm_to_check="${ac_tool_prefix}nm"
6376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6377 lt_nm_to_check="$lt_nm_to_check nm"
6378 fi
6379 for lt_tmp_nm in $lt_nm_to_check; do
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6382 IFS="$lt_save_ifs"
6383 test -z "$ac_dir" && ac_dir=.
6384 tmp_nm="$ac_dir/$lt_tmp_nm"
6385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6386 # Check to see if the nm accepts a BSD-compat flag.
6387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6388 # nm: unknown option "B" ignored
6389 # Tru64's nm complains that /dev/null is an invalid object file
6390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6391 */dev/null* | *'Invalid file or object type'*)
6392 lt_cv_path_NM="$tmp_nm -B"
6393 break
6394 ;;
6395 *)
6396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6397 */dev/null*)
6398 lt_cv_path_NM="$tmp_nm -p"
6399 break
6400 ;;
6401 *)
6402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6403 continue # so that we can try to find one that supports BSD flags
6404 ;;
6405 esac
6406 ;;
6407 esac
6408 fi
6409 done
6410 IFS="$lt_save_ifs"
6411 done
6412 : ${lt_cv_path_NM=no}
6413 fi
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6416 $as_echo "$lt_cv_path_NM" >&6; }
6417 if test "$lt_cv_path_NM" != "no"; then
6418 NM="$lt_cv_path_NM"
6419 else
6420 # Didn't find any BSD compatible name lister, look for dumpbin.
6421 if test -n "$DUMPBIN"; then :
6422 # Let the user override the test.
6423 else
6424 if test -n "$ac_tool_prefix"; then
6425 for ac_prog in dumpbin "link -dump"
6426 do
6427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if test -n "$DUMPBIN"; then
6435 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 DUMPBIN=$ac_cv_prog_DUMPBIN
6455 if test -n "$DUMPBIN"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6457 $as_echo "$DUMPBIN" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 test -n "$DUMPBIN" && break
6465 done
6466 fi
6467 if test -z "$DUMPBIN"; then
6468 ac_ct_DUMPBIN=$DUMPBIN
6469 for ac_prog in dumpbin "link -dump"
6470 do
6471 # Extract the first word of "$ac_prog", so it can be a program name with args.
6472 set dummy $ac_prog; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_DUMPBIN"; then
6479 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6499 if test -n "$ac_ct_DUMPBIN"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6501 $as_echo "$ac_ct_DUMPBIN" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 test -n "$ac_ct_DUMPBIN" && break
6509 done
6510
6511 if test "x$ac_ct_DUMPBIN" = x; then
6512 DUMPBIN=":"
6513 else
6514 case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6519 esac
6520 DUMPBIN=$ac_ct_DUMPBIN
6521 fi
6522 fi
6523
6524 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6525 *COFF*)
6526 DUMPBIN="$DUMPBIN -symbols"
6527 ;;
6528 *)
6529 DUMPBIN=:
6530 ;;
6531 esac
6532 fi
6533
6534 if test "$DUMPBIN" != ":"; then
6535 NM="$DUMPBIN"
6536 fi
6537 fi
6538 test -z "$NM" && NM=nm
6539
6540
6541
6542
6543
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6546 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6547 if test "${lt_cv_nm_interface+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 lt_cv_nm_interface="BSD nm"
6551 echo "int some_variable = 0;" > conftest.$ac_ext
6552 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6553 (eval "$ac_compile" 2>conftest.err)
6554 cat conftest.err >&5
6555 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6556 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6557 cat conftest.err >&5
6558 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6559 cat conftest.out >&5
6560 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6561 lt_cv_nm_interface="MS dumpbin"
6562 fi
6563 rm -f conftest*
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6566 $as_echo "$lt_cv_nm_interface" >&6; }
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6569 $as_echo_n "checking whether ln -s works... " >&6; }
6570 LN_S=$as_ln_s
6571 if test "$LN_S" = "ln -s"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6573 $as_echo "yes" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6576 $as_echo "no, using $LN_S" >&6; }
6577 fi
6578
6579 # find the maximum length of command line arguments
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6581 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6582 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 i=0
6586 teststring="ABCD"
6587
6588 case $build_os in
6589 msdosdjgpp*)
6590 # On DJGPP, this test can blow up pretty badly due to problems in libc
6591 # (any single argument exceeding 2000 bytes causes a buffer overrun
6592 # during glob expansion). Even if it were fixed, the result of this
6593 # check would be larger than it should be.
6594 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6595 ;;
6596
6597 gnu*)
6598 # Under GNU Hurd, this test is not required because there is
6599 # no limit to the length of command line arguments.
6600 # Libtool will interpret -1 as no limit whatsoever
6601 lt_cv_sys_max_cmd_len=-1;
6602 ;;
6603
6604 cygwin* | mingw* | cegcc*)
6605 # On Win9x/ME, this test blows up -- it succeeds, but takes
6606 # about 5 minutes as the teststring grows exponentially.
6607 # Worse, since 9x/ME are not pre-emptively multitasking,
6608 # you end up with a "frozen" computer, even though with patience
6609 # the test eventually succeeds (with a max line length of 256k).
6610 # Instead, let's just punt: use the minimum linelength reported by
6611 # all of the supported platforms: 8192 (on NT/2K/XP).
6612 lt_cv_sys_max_cmd_len=8192;
6613 ;;
6614
6615 mint*)
6616 # On MiNT this can take a long time and run out of memory.
6617 lt_cv_sys_max_cmd_len=8192;
6618 ;;
6619
6620 amigaos*)
6621 # On AmigaOS with pdksh, this test takes hours, literally.
6622 # So we just punt and use a minimum line length of 8192.
6623 lt_cv_sys_max_cmd_len=8192;
6624 ;;
6625
6626 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6627 # This has been around since 386BSD, at least. Likely further.
6628 if test -x /sbin/sysctl; then
6629 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6630 elif test -x /usr/sbin/sysctl; then
6631 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6632 else
6633 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6634 fi
6635 # And add a safety zone
6636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6638 ;;
6639
6640 interix*)
6641 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6642 lt_cv_sys_max_cmd_len=196608
6643 ;;
6644
6645 osf*)
6646 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6647 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6648 # nice to cause kernel panics so lets avoid the loop below.
6649 # First set a reasonable default.
6650 lt_cv_sys_max_cmd_len=16384
6651 #
6652 if test -x /sbin/sysconfig; then
6653 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6654 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6655 esac
6656 fi
6657 ;;
6658 sco3.2v5*)
6659 lt_cv_sys_max_cmd_len=102400
6660 ;;
6661 sysv5* | sco5v6* | sysv4.2uw2*)
6662 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6663 if test -n "$kargmax"; then
6664 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6665 else
6666 lt_cv_sys_max_cmd_len=32768
6667 fi
6668 ;;
6669 *)
6670 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6671 if test -n "$lt_cv_sys_max_cmd_len"; then
6672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6674 else
6675 # Make teststring a little bigger before we do anything with it.
6676 # a 1K string should be a reasonable start.
6677 for i in 1 2 3 4 5 6 7 8 ; do
6678 teststring=$teststring$teststring
6679 done
6680 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6681 # If test is not a shell built-in, we'll probably end up computing a
6682 # maximum length that is only half of the actual maximum length, but
6683 # we can't tell.
6684 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6685 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6686 test $i != 17 # 1/2 MB should be enough
6687 do
6688 i=`expr $i + 1`
6689 teststring=$teststring$teststring
6690 done
6691 # Only check the string length outside the loop.
6692 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6693 teststring=
6694 # Add a significant safety factor because C++ compilers can tack on
6695 # massive amounts of additional arguments before passing them to the
6696 # linker. It appears as though 1/2 is a usable value.
6697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6698 fi
6699 ;;
6700 esac
6701
6702 fi
6703
6704 if test -n $lt_cv_sys_max_cmd_len ; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6706 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6709 $as_echo "none" >&6; }
6710 fi
6711 max_cmd_len=$lt_cv_sys_max_cmd_len
6712
6713
6714
6715
6716
6717
6718 : ${CP="cp -f"}
6719 : ${MV="mv -f"}
6720 : ${RM="rm -f"}
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6723 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6724 # Try some XSI features
6725 xsi_shell=no
6726 ( _lt_dummy="a/b/c"
6727 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6728 = c,a/b,, \
6729 && eval 'test $(( 1 + 1 )) -eq 2 \
6730 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6731 && xsi_shell=yes
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6733 $as_echo "$xsi_shell" >&6; }
6734
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6737 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6738 lt_shell_append=no
6739 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6740 >/dev/null 2>&1 \
6741 && lt_shell_append=yes
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6743 $as_echo "$lt_shell_append" >&6; }
6744
6745
6746 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6747 lt_unset=unset
6748 else
6749 lt_unset=false
6750 fi
6751
6752
6753
6754
6755
6756 # test EBCDIC or ASCII
6757 case `echo X|tr X '\101'` in
6758 A) # ASCII based system
6759 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6760 lt_SP2NL='tr \040 \012'
6761 lt_NL2SP='tr \015\012 \040\040'
6762 ;;
6763 *) # EBCDIC based system
6764 lt_SP2NL='tr \100 \n'
6765 lt_NL2SP='tr \r\n \100\100'
6766 ;;
6767 esac
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6778 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6779 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 lt_cv_ld_reload_flag='-r'
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6785 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6786 reload_flag=$lt_cv_ld_reload_flag
6787 case $reload_flag in
6788 "" | " "*) ;;
6789 *) reload_flag=" $reload_flag" ;;
6790 esac
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6792 case $host_os in
6793 darwin*)
6794 if test "$GCC" = yes; then
6795 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6796 else
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798 fi
6799 ;;
6800 esac
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$OBJDUMP"; then
6819 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 OBJDUMP=$ac_cv_prog_OBJDUMP
6839 if test -n "$OBJDUMP"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6841 $as_echo "$OBJDUMP" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_OBJDUMP"; then
6850 ac_ct_OBJDUMP=$OBJDUMP
6851 # Extract the first word of "objdump", so it can be a program name with args.
6852 set dummy objdump; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_OBJDUMP"; then
6859 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6879 if test -n "$ac_ct_OBJDUMP"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6881 $as_echo "$ac_ct_OBJDUMP" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_OBJDUMP" = x; then
6888 OBJDUMP="false"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 OBJDUMP=$ac_ct_OBJDUMP
6897 fi
6898 else
6899 OBJDUMP="$ac_cv_prog_OBJDUMP"
6900 fi
6901
6902 test -z "$OBJDUMP" && OBJDUMP=objdump
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6913 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6914 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 lt_cv_file_magic_cmd='$MAGIC_CMD'
6918 lt_cv_file_magic_test_file=
6919 lt_cv_deplibs_check_method='unknown'
6920 # Need to set the preceding variable on all platforms that support
6921 # interlibrary dependencies.
6922 # 'none' -- dependencies not supported.
6923 # `unknown' -- same as none, but documents that we really don't know.
6924 # 'pass_all' -- all dependencies passed with no checks.
6925 # 'test_compile' -- check by making test program.
6926 # 'file_magic [[regex]]' -- check by looking for files in library path
6927 # which responds to the $file_magic_cmd with a given extended regex.
6928 # If you have `file' or equivalent on your system and you're not sure
6929 # whether `pass_all' will *always* work, you probably want this one.
6930
6931 case $host_os in
6932 aix[4-9]*)
6933 lt_cv_deplibs_check_method=pass_all
6934 ;;
6935
6936 beos*)
6937 lt_cv_deplibs_check_method=pass_all
6938 ;;
6939
6940 bsdi[45]*)
6941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6942 lt_cv_file_magic_cmd='/usr/bin/file -L'
6943 lt_cv_file_magic_test_file=/shlib/libc.so
6944 ;;
6945
6946 cygwin*)
6947 # func_win32_libid is a shell function defined in ltmain.sh
6948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6949 lt_cv_file_magic_cmd='func_win32_libid'
6950 ;;
6951
6952 mingw* | pw32*)
6953 # Base MSYS/MinGW do not provide the 'file' command needed by
6954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6955 # unless we find 'file', for example because we are cross-compiling.
6956 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6957 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6959 lt_cv_file_magic_cmd='func_win32_libid'
6960 else
6961 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6962 lt_cv_file_magic_cmd='$OBJDUMP -f'
6963 fi
6964 ;;
6965
6966 cegcc*)
6967 # use the weaker test based on 'objdump'. See mingw*.
6968 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6969 lt_cv_file_magic_cmd='$OBJDUMP -f'
6970 ;;
6971
6972 darwin* | rhapsody*)
6973 lt_cv_deplibs_check_method=pass_all
6974 ;;
6975
6976 freebsd* | dragonfly*)
6977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6978 case $host_cpu in
6979 i*86 )
6980 # Not sure whether the presence of OpenBSD here was a mistake.
6981 # Let's accept both of them until this is cleared up.
6982 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6983 lt_cv_file_magic_cmd=/usr/bin/file
6984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6985 ;;
6986 esac
6987 else
6988 lt_cv_deplibs_check_method=pass_all
6989 fi
6990 ;;
6991
6992 gnu*)
6993 lt_cv_deplibs_check_method=pass_all
6994 ;;
6995
6996 haiku*)
6997 lt_cv_deplibs_check_method=pass_all
6998 ;;
6999
7000 hpux10.20* | hpux11*)
7001 lt_cv_file_magic_cmd=/usr/bin/file
7002 case $host_cpu in
7003 ia64*)
7004 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7005 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7006 ;;
7007 hppa*64*)
7008 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]'
7009 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7010 ;;
7011 *)
7012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7013 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7014 ;;
7015 esac
7016 ;;
7017
7018 interix[3-9]*)
7019 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7021 ;;
7022
7023 irix5* | irix6* | nonstopux*)
7024 case $LD in
7025 *-32|*"-32 ") libmagic=32-bit;;
7026 *-n32|*"-n32 ") libmagic=N32;;
7027 *-64|*"-64 ") libmagic=64-bit;;
7028 *) libmagic=never-match;;
7029 esac
7030 lt_cv_deplibs_check_method=pass_all
7031 ;;
7032
7033 # This must be Linux ELF.
7034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7035 lt_cv_deplibs_check_method=pass_all
7036 ;;
7037
7038 netbsd*)
7039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7041 else
7042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7043 fi
7044 ;;
7045
7046 newos6*)
7047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7048 lt_cv_file_magic_cmd=/usr/bin/file
7049 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7050 ;;
7051
7052 *nto* | *qnx*)
7053 lt_cv_deplibs_check_method=pass_all
7054 ;;
7055
7056 openbsd*)
7057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7059 else
7060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7061 fi
7062 ;;
7063
7064 osf3* | osf4* | osf5*)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067
7068 rdos*)
7069 lt_cv_deplibs_check_method=pass_all
7070 ;;
7071
7072 solaris*)
7073 lt_cv_deplibs_check_method=pass_all
7074 ;;
7075
7076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079
7080 sysv4 | sysv4.3*)
7081 case $host_vendor in
7082 motorola)
7083 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]'
7084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7085 ;;
7086 ncr)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089 sequent)
7090 lt_cv_file_magic_cmd='/bin/file'
7091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7092 ;;
7093 sni)
7094 lt_cv_file_magic_cmd='/bin/file'
7095 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7096 lt_cv_file_magic_test_file=/lib/libc.so
7097 ;;
7098 siemens)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101 pc)
7102 lt_cv_deplibs_check_method=pass_all
7103 ;;
7104 esac
7105 ;;
7106
7107 tpf*)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110 esac
7111
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7114 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7115 file_magic_cmd=$lt_cv_file_magic_cmd
7116 deplibs_check_method=$lt_cv_deplibs_check_method
7117 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}ar; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if test "${ac_cv_prog_AR+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$AR"; then
7139 ac_cv_prog_AR="$AR" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_prog_AR="${ac_tool_prefix}ar"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 AR=$ac_cv_prog_AR
7159 if test -n "$AR"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7161 $as_echo "$AR" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_AR"; then
7170 ac_ct_AR=$AR
7171 # Extract the first word of "ar", so it can be a program name with args.
7172 set dummy ar; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$ac_ct_AR"; then
7179 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_ac_ct_AR="ar"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7199 if test -n "$ac_ct_AR"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7201 $as_echo "$ac_ct_AR" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207 if test "x$ac_ct_AR" = x; then
7208 AR="false"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 AR=$ac_ct_AR
7217 fi
7218 else
7219 AR="$ac_cv_prog_AR"
7220 fi
7221
7222 test -z "$AR" && AR=ar
7223 test -z "$AR_FLAGS" && AR_FLAGS=cru
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}strip; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_STRIP+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$STRIP"; then
7244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 STRIP=$ac_cv_prog_STRIP
7264 if test -n "$STRIP"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7266 $as_echo "$STRIP" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272
7273 fi
7274 if test -z "$ac_cv_prog_STRIP"; then
7275 ac_ct_STRIP=$STRIP
7276 # Extract the first word of "strip", so it can be a program name with args.
7277 set dummy strip; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 if test -n "$ac_ct_STRIP"; then
7284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_ac_ct_STRIP="strip"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7304 if test -n "$ac_ct_STRIP"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7306 $as_echo "$ac_ct_STRIP" >&6; }
7307 else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312 if test "x$ac_ct_STRIP" = x; then
7313 STRIP=":"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316 yes:)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7320 esac
7321 STRIP=$ac_ct_STRIP
7322 fi
7323 else
7324 STRIP="$ac_cv_prog_STRIP"
7325 fi
7326
7327 test -z "$STRIP" && STRIP=:
7328
7329
7330
7331
7332
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 if test -n "$RANLIB"; then
7343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 RANLIB=$ac_cv_prog_RANLIB
7363 if test -n "$RANLIB"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7365 $as_echo "$RANLIB" >&6; }
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_RANLIB"; then
7374 ac_ct_RANLIB=$RANLIB
7375 # Extract the first word of "ranlib", so it can be a program name with args.
7376 set dummy ranlib; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$ac_ct_RANLIB"; then
7383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_prog_ac_ct_RANLIB="ranlib"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7403 if test -n "$ac_ct_RANLIB"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7405 $as_echo "$ac_ct_RANLIB" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_RANLIB" = x; then
7412 RANLIB=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 RANLIB=$ac_ct_RANLIB
7421 fi
7422 else
7423 RANLIB="$ac_cv_prog_RANLIB"
7424 fi
7425
7426 test -z "$RANLIB" && RANLIB=:
7427
7428
7429
7430
7431
7432
7433 # Determine commands to create old-style static archives.
7434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7435 old_postinstall_cmds='chmod 644 $oldlib'
7436 old_postuninstall_cmds=
7437
7438 if test -n "$RANLIB"; then
7439 case $host_os in
7440 openbsd*)
7441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7442 ;;
7443 *)
7444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7445 ;;
7446 esac
7447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7448 fi
7449
7450 case $host_os in
7451 darwin*)
7452 lock_old_archive_extraction=yes ;;
7453 *)
7454 lock_old_archive_extraction=no ;;
7455 esac
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # If no C compiler was specified, use CC.
7496 LTCC=${LTCC-"$CC"}
7497
7498 # If no C compiler flags were specified, use CFLAGS.
7499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7500
7501 # Allow CC to be a program name with arguments.
7502 compiler=$CC
7503
7504
7505 # Check for command to grab the raw symbol name followed by C symbol from nm.
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7507 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511
7512 # These are sane defaults that work on at least a few old systems.
7513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7514
7515 # Character class describing NM global symbol codes.
7516 symcode='[BCDEGRST]'
7517
7518 # Regexp to match symbols that can be accessed directly from C.
7519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7520
7521 # Define system-specific variables.
7522 case $host_os in
7523 aix*)
7524 symcode='[BCDT]'
7525 ;;
7526 cygwin* | mingw* | pw32* | cegcc*)
7527 symcode='[ABCDGISTW]'
7528 ;;
7529 hpux*)
7530 if test "$host_cpu" = ia64; then
7531 symcode='[ABCDEGRST]'
7532 fi
7533 ;;
7534 irix* | nonstopux*)
7535 symcode='[BCDEGRST]'
7536 ;;
7537 osf*)
7538 symcode='[BCDEGQRST]'
7539 ;;
7540 solaris*)
7541 symcode='[BDRT]'
7542 ;;
7543 sco3.2v5*)
7544 symcode='[DT]'
7545 ;;
7546 sysv4.2uw2*)
7547 symcode='[DT]'
7548 ;;
7549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7550 symcode='[ABDT]'
7551 ;;
7552 sysv4)
7553 symcode='[DFNSTU]'
7554 ;;
7555 esac
7556
7557 # If we're using GNU nm, then use its standard symbol codes.
7558 case `$NM -V 2>&1` in
7559 *GNU* | *'with BFD'*)
7560 symcode='[ABCDGIRSTW]' ;;
7561 esac
7562
7563 # Transform an extracted symbol line into a proper C declaration.
7564 # Some systems (esp. on ia64) link data and code symbols differently,
7565 # so use this general approach.
7566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7567
7568 # Transform an extracted symbol line into symbol name and symbol address
7569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7570 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'"
7571
7572 # Handle CRLF in mingw tool chain
7573 opt_cr=
7574 case $build_os in
7575 mingw*)
7576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7577 ;;
7578 esac
7579
7580 # Try without a prefix underscore, then with it.
7581 for ac_symprfx in "" "_"; do
7582
7583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7584 symxfrm="\\1 $ac_symprfx\\2 \\2"
7585
7586 # Write the raw and C identifiers.
7587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7588 # Fake it for dumpbin and say T for any non-static function
7589 # and D for any global variable.
7590 # Also find C++ and __fastcall symbols from MSVC++,
7591 # which start with @ or ?.
7592 lt_cv_sys_global_symbol_pipe="$AWK '"\
7593 " {last_section=section; section=\$ 3};"\
7594 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7595 " \$ 0!~/External *\|/{next};"\
7596 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7597 " {if(hide[section]) next};"\
7598 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7599 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7600 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7601 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7602 " ' prfx=^$ac_symprfx"
7603 else
7604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7605 fi
7606
7607 # Check to see that the pipe works correctly.
7608 pipe_works=no
7609
7610 rm -f conftest*
7611 cat > conftest.$ac_ext <<_LT_EOF
7612 #ifdef __cplusplus
7613 extern "C" {
7614 #endif
7615 char nm_test_var;
7616 void nm_test_func(void);
7617 void nm_test_func(void){}
7618 #ifdef __cplusplus
7619 }
7620 #endif
7621 int main(){nm_test_var='a';nm_test_func();return(0);}
7622 _LT_EOF
7623
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; then
7629 # Now try to grab the symbols.
7630 nlist=conftest.nm
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7632 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; } && test -s "$nlist"; then
7636 # Try sorting and uniquifying the output.
7637 if sort "$nlist" | uniq > "$nlist"T; then
7638 mv -f "$nlist"T "$nlist"
7639 else
7640 rm -f "$nlist"T
7641 fi
7642
7643 # Make sure that we snagged all the symbols we need.
7644 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7645 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7646 cat <<_LT_EOF > conftest.$ac_ext
7647 #ifdef __cplusplus
7648 extern "C" {
7649 #endif
7650
7651 _LT_EOF
7652 # Now generate the symbol file.
7653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7654
7655 cat <<_LT_EOF >> conftest.$ac_ext
7656
7657 /* The mapping between symbol names and symbols. */
7658 const struct {
7659 const char *name;
7660 void *address;
7661 }
7662 lt__PROGRAM__LTX_preloaded_symbols[] =
7663 {
7664 { "@PROGRAM@", (void *) 0 },
7665 _LT_EOF
7666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7667 cat <<\_LT_EOF >> conftest.$ac_ext
7668 {0, (void *) 0}
7669 };
7670
7671 /* This works around a problem in FreeBSD linker */
7672 #ifdef FREEBSD_WORKAROUND
7673 static const void *lt_preloaded_setup() {
7674 return lt__PROGRAM__LTX_preloaded_symbols;
7675 }
7676 #endif
7677
7678 #ifdef __cplusplus
7679 }
7680 #endif
7681 _LT_EOF
7682 # Now try linking the two files.
7683 mv conftest.$ac_objext conftstm.$ac_objext
7684 lt_save_LIBS="$LIBS"
7685 lt_save_CFLAGS="$CFLAGS"
7686 LIBS="conftstm.$ac_objext"
7687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7689 (eval $ac_link) 2>&5
7690 ac_status=$?
7691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7692 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7693 pipe_works=yes
7694 fi
7695 LIBS="$lt_save_LIBS"
7696 CFLAGS="$lt_save_CFLAGS"
7697 else
7698 echo "cannot find nm_test_func in $nlist" >&5
7699 fi
7700 else
7701 echo "cannot find nm_test_var in $nlist" >&5
7702 fi
7703 else
7704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7705 fi
7706 else
7707 echo "$progname: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7709 fi
7710 rm -rf conftest* conftst*
7711
7712 # Do not use the global_symbol_pipe unless it works.
7713 if test "$pipe_works" = yes; then
7714 break
7715 else
7716 lt_cv_sys_global_symbol_pipe=
7717 fi
7718 done
7719
7720 fi
7721
7722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7723 lt_cv_sys_global_symbol_to_cdecl=
7724 fi
7725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7727 $as_echo "failed" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7730 $as_echo "ok" >&6; }
7731 fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 # Check whether --enable-libtool-lock was given.
7755 if test "${enable_libtool_lock+set}" = set; then :
7756 enableval=$enable_libtool_lock;
7757 fi
7758
7759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7760
7761 # Some flags need to be propagated to the compiler or linker for good
7762 # libtool support.
7763 case $host in
7764 ia64-*-hpux*)
7765 # Find out which ABI we are using.
7766 echo 'int i;' > conftest.$ac_ext
7767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7768 (eval $ac_compile) 2>&5
7769 ac_status=$?
7770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7771 test $ac_status = 0; }; then
7772 case `/usr/bin/file conftest.$ac_objext` in
7773 *ELF-32*)
7774 HPUX_IA64_MODE="32"
7775 ;;
7776 *ELF-64*)
7777 HPUX_IA64_MODE="64"
7778 ;;
7779 esac
7780 fi
7781 rm -rf conftest*
7782 ;;
7783 *-*-irix6*)
7784 # Find out which ABI we are using.
7785 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7787 (eval $ac_compile) 2>&5
7788 ac_status=$?
7789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790 test $ac_status = 0; }; then
7791 if test "$lt_cv_prog_gnu_ld" = yes; then
7792 case `/usr/bin/file conftest.$ac_objext` in
7793 *32-bit*)
7794 LD="${LD-ld} -melf32bsmip"
7795 ;;
7796 *N32*)
7797 LD="${LD-ld} -melf32bmipn32"
7798 ;;
7799 *64-bit*)
7800 LD="${LD-ld} -melf64bmip"
7801 ;;
7802 esac
7803 else
7804 case `/usr/bin/file conftest.$ac_objext` in
7805 *32-bit*)
7806 LD="${LD-ld} -32"
7807 ;;
7808 *N32*)
7809 LD="${LD-ld} -n32"
7810 ;;
7811 *64-bit*)
7812 LD="${LD-ld} -64"
7813 ;;
7814 esac
7815 fi
7816 fi
7817 rm -rf conftest*
7818 ;;
7819
7820 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7821 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7822 # Find out which ABI we are using.
7823 echo 'int i;' > conftest.$ac_ext
7824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7825 (eval $ac_compile) 2>&5
7826 ac_status=$?
7827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7828 test $ac_status = 0; }; then
7829 case `/usr/bin/file conftest.o` in
7830 *32-bit*)
7831 case $host in
7832 x86_64-*kfreebsd*-gnu)
7833 LD="${LD-ld} -m elf_i386_fbsd"
7834 ;;
7835 x86_64-*linux*)
7836 case `/usr/bin/file conftest.o` in
7837 *x86-64*)
7838 LD="${LD-ld} -m elf32_x86_64"
7839 ;;
7840 *)
7841 LD="${LD-ld} -m elf_i386"
7842 ;;
7843 esac
7844 ;;
7845 powerpc64le-*linux*)
7846 LD="${LD-ld} -m elf32lppclinux"
7847 ;;
7848 powerpc64-*linux*)
7849 LD="${LD-ld} -m elf32ppclinux"
7850 ;;
7851 s390x-*linux*)
7852 LD="${LD-ld} -m elf_s390"
7853 ;;
7854 sparc64-*linux*)
7855 LD="${LD-ld} -m elf32_sparc"
7856 ;;
7857 esac
7858 ;;
7859 *64-bit*)
7860 case $host in
7861 x86_64-*kfreebsd*-gnu)
7862 LD="${LD-ld} -m elf_x86_64_fbsd"
7863 ;;
7864 x86_64-*linux*)
7865 LD="${LD-ld} -m elf_x86_64"
7866 ;;
7867 powerpcle-*linux*)
7868 LD="${LD-ld} -m elf64lppc"
7869 ;;
7870 powerpc-*linux*)
7871 LD="${LD-ld} -m elf64ppc"
7872 ;;
7873 s390*-*linux*|s390*-*tpf*)
7874 LD="${LD-ld} -m elf64_s390"
7875 ;;
7876 sparc*-*linux*)
7877 LD="${LD-ld} -m elf64_sparc"
7878 ;;
7879 esac
7880 ;;
7881 esac
7882 fi
7883 rm -rf conftest*
7884 ;;
7885
7886 *-*-sco3.2v5*)
7887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7888 SAVE_CFLAGS="$CFLAGS"
7889 CFLAGS="$CFLAGS -belf"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7892 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903
7904 int
7905 main ()
7906 {
7907
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"; then :
7913 lt_cv_cc_needs_belf=yes
7914 else
7915 lt_cv_cc_needs_belf=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7928 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7929 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7930 CFLAGS="$SAVE_CFLAGS"
7931 fi
7932 ;;
7933 sparc*-*solaris*)
7934 # Find out which ABI we are using.
7935 echo 'int i;' > conftest.$ac_ext
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937 (eval $ac_compile) 2>&5
7938 ac_status=$?
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; }; then
7941 case `/usr/bin/file conftest.o` in
7942 *64-bit*)
7943 case $lt_cv_prog_gnu_ld in
7944 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7945 *)
7946 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7947 LD="${LD-ld} -64"
7948 fi
7949 ;;
7950 esac
7951 ;;
7952 esac
7953 fi
7954 rm -rf conftest*
7955 ;;
7956 esac
7957
7958 need_locks="$enable_libtool_lock"
7959
7960
7961 case $host_os in
7962 rhapsody* | darwin*)
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$DSYMUTIL"; then
7972 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7992 if test -n "$DSYMUTIL"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7994 $as_echo "$DSYMUTIL" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001 fi
8002 if test -z "$ac_cv_prog_DSYMUTIL"; then
8003 ac_ct_DSYMUTIL=$DSYMUTIL
8004 # Extract the first word of "dsymutil", so it can be a program name with args.
8005 set dummy dsymutil; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$ac_ct_DSYMUTIL"; then
8012 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8032 if test -n "$ac_ct_DSYMUTIL"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8034 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040 if test "x$ac_ct_DSYMUTIL" = x; then
8041 DSYMUTIL=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 DSYMUTIL=$ac_ct_DSYMUTIL
8050 fi
8051 else
8052 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8053 fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$NMEDIT"; then
8064 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 NMEDIT=$ac_cv_prog_NMEDIT
8084 if test -n "$NMEDIT"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8086 $as_echo "$NMEDIT" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 fi
8094 if test -z "$ac_cv_prog_NMEDIT"; then
8095 ac_ct_NMEDIT=$NMEDIT
8096 # Extract the first word of "nmedit", so it can be a program name with args.
8097 set dummy nmedit; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 if test -n "$ac_ct_NMEDIT"; then
8104 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8124 if test -n "$ac_ct_NMEDIT"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8126 $as_echo "$ac_ct_NMEDIT" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132 if test "x$ac_ct_NMEDIT" = x; then
8133 NMEDIT=":"
8134 else
8135 case $cross_compiling:$ac_tool_warned in
8136 yes:)
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141 NMEDIT=$ac_ct_NMEDIT
8142 fi
8143 else
8144 NMEDIT="$ac_cv_prog_NMEDIT"
8145 fi
8146
8147 if test -n "$ac_tool_prefix"; then
8148 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_LIPO+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 if test -n "$LIPO"; then
8156 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 LIPO=$ac_cv_prog_LIPO
8176 if test -n "$LIPO"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8178 $as_echo "$LIPO" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185 fi
8186 if test -z "$ac_cv_prog_LIPO"; then
8187 ac_ct_LIPO=$LIPO
8188 # Extract the first word of "lipo", so it can be a program name with args.
8189 set dummy lipo; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$ac_ct_LIPO"; then
8196 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_prog_ac_ct_LIPO="lipo"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8208 fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8216 if test -n "$ac_ct_LIPO"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8218 $as_echo "$ac_ct_LIPO" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224 if test "x$ac_ct_LIPO" = x; then
8225 LIPO=":"
8226 else
8227 case $cross_compiling:$ac_tool_warned in
8228 yes:)
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8232 esac
8233 LIPO=$ac_ct_LIPO
8234 fi
8235 else
8236 LIPO="$ac_cv_prog_LIPO"
8237 fi
8238
8239 if test -n "$ac_tool_prefix"; then
8240 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}otool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 if test -n "$OTOOL"; then
8248 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 OTOOL=$ac_cv_prog_OTOOL
8268 if test -n "$OTOOL"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8270 $as_echo "$OTOOL" >&6; }
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277 fi
8278 if test -z "$ac_cv_prog_OTOOL"; then
8279 ac_ct_OTOOL=$OTOOL
8280 # Extract the first word of "otool", so it can be a program name with args.
8281 set dummy otool; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$ac_ct_OTOOL"; then
8288 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_ac_ct_OTOOL="otool"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8308 if test -n "$ac_ct_OTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8310 $as_echo "$ac_ct_OTOOL" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316 if test "x$ac_ct_OTOOL" = x; then
8317 OTOOL=":"
8318 else
8319 case $cross_compiling:$ac_tool_warned in
8320 yes:)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8324 esac
8325 OTOOL=$ac_ct_OTOOL
8326 fi
8327 else
8328 OTOOL="$ac_cv_prog_OTOOL"
8329 fi
8330
8331 if test -n "$ac_tool_prefix"; then
8332 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test -n "$OTOOL64"; then
8340 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353 done
8354 done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 OTOOL64=$ac_cv_prog_OTOOL64
8360 if test -n "$OTOOL64"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8362 $as_echo "$OTOOL64" >&6; }
8363 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_OTOOL64"; then
8371 ac_ct_OTOOL64=$OTOOL64
8372 # Extract the first word of "otool64", so it can be a program name with args.
8373 set dummy otool64; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$ac_ct_OTOOL64"; then
8380 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_ac_ct_OTOOL64="otool64"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8400 if test -n "$ac_ct_OTOOL64"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8402 $as_echo "$ac_ct_OTOOL64" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408 if test "x$ac_ct_OTOOL64" = x; then
8409 OTOOL64=":"
8410 else
8411 case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417 OTOOL64=$ac_ct_OTOOL64
8418 fi
8419 else
8420 OTOOL64="$ac_cv_prog_OTOOL64"
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8450 $as_echo_n "checking for -single_module linker flag... " >&6; }
8451 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 lt_cv_apple_cc_single_mod=no
8455 if test -z "${LT_MULTI_MODULE}"; then
8456 # By default we will add the -single_module flag. You can override
8457 # by either setting the environment variable LT_MULTI_MODULE
8458 # non-empty at configure time, or by adding -multi_module to the
8459 # link flags.
8460 rm -rf libconftest.dylib*
8461 echo "int foo(void){return 1;}" > conftest.c
8462 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8463 -dynamiclib -Wl,-single_module conftest.c" >&5
8464 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8465 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8466 _lt_result=$?
8467 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8468 lt_cv_apple_cc_single_mod=yes
8469 else
8470 cat conftest.err >&5
8471 fi
8472 rm -rf libconftest.dylib*
8473 rm -f conftest.*
8474 fi
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8480 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 lt_cv_ld_exported_symbols_list=no
8484 save_LDFLAGS=$LDFLAGS
8485 echo "_main" > conftest.sym
8486 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489
8490 int
8491 main ()
8492 {
8493
8494 ;
8495 return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 lt_cv_ld_exported_symbols_list=yes
8500 else
8501 lt_cv_ld_exported_symbols_list=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LDFLAGS="$save_LDFLAGS"
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8509 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8511 $as_echo_n "checking for -force_load linker flag... " >&6; }
8512 if test "${lt_cv_ld_force_load+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 lt_cv_ld_force_load=no
8516 cat > conftest.c << _LT_EOF
8517 int forced_loaded() { return 2;}
8518 _LT_EOF
8519 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8520 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8521 echo "$AR cru libconftest.a conftest.o" >&5
8522 $AR cru libconftest.a conftest.o 2>&5
8523 cat > conftest.c << _LT_EOF
8524 int main() { return 0;}
8525 _LT_EOF
8526 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8527 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8528 _lt_result=$?
8529 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8530 lt_cv_ld_force_load=yes
8531 else
8532 cat conftest.err >&5
8533 fi
8534 rm -f conftest.err libconftest.a conftest conftest.c
8535 rm -rf conftest.dSYM
8536
8537 fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8539 $as_echo "$lt_cv_ld_force_load" >&6; }
8540 case $host_os in
8541 rhapsody* | darwin1.[012])
8542 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8543 darwin1.*)
8544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8545 darwin*) # darwin 5.x on
8546 # if running on 10.5 or later, the deployment target defaults
8547 # to the OS version, if on x86, and 10.4, the deployment
8548 # target defaults to 10.4. Don't you love it?
8549 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8550 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8551 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8552 10.[012][,.]*)
8553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8554 10.*)
8555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556 esac
8557 ;;
8558 esac
8559 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8560 _lt_dar_single_mod='$single_module'
8561 fi
8562 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8563 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8564 else
8565 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8566 fi
8567 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8568 _lt_dsymutil='~$DSYMUTIL $lib || :'
8569 else
8570 _lt_dsymutil=
8571 fi
8572 ;;
8573 esac
8574
8575 for ac_header in dlfcn.h
8576 do :
8577 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8578 "
8579 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DLFCN_H 1
8582 _ACEOF
8583
8584 fi
8585
8586 done
8587
8588
8589
8590
8591
8592
8593 # Set options
8594
8595
8596
8597
8598 enable_win32_dll=no
8599
8600
8601 # Check whether --enable-shared was given.
8602 if test "${enable_shared+set}" = set; then :
8603 enableval=$enable_shared; p=${PACKAGE-default}
8604 case $enableval in
8605 yes) enable_shared=yes ;;
8606 no) enable_shared=no ;;
8607 *)
8608 enable_shared=no
8609 # Look at the argument we got. We use all the common list separators.
8610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8611 for pkg in $enableval; do
8612 IFS="$lt_save_ifs"
8613 if test "X$pkg" = "X$p"; then
8614 enable_shared=yes
8615 fi
8616 done
8617 IFS="$lt_save_ifs"
8618 ;;
8619 esac
8620 else
8621 enable_shared=yes
8622 fi
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 # Check whether --enable-static was given.
8633 if test "${enable_static+set}" = set; then :
8634 enableval=$enable_static; p=${PACKAGE-default}
8635 case $enableval in
8636 yes) enable_static=yes ;;
8637 no) enable_static=no ;;
8638 *)
8639 enable_static=no
8640 # Look at the argument we got. We use all the common list separators.
8641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8642 for pkg in $enableval; do
8643 IFS="$lt_save_ifs"
8644 if test "X$pkg" = "X$p"; then
8645 enable_static=yes
8646 fi
8647 done
8648 IFS="$lt_save_ifs"
8649 ;;
8650 esac
8651 else
8652 enable_static=yes
8653 fi
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 # Check whether --with-pic was given.
8665 if test "${with_pic+set}" = set; then :
8666 withval=$with_pic; pic_mode="$withval"
8667 else
8668 pic_mode=default
8669 fi
8670
8671
8672 test -z "$pic_mode" && pic_mode=default
8673
8674
8675
8676
8677
8678
8679
8680 # Check whether --enable-fast-install was given.
8681 if test "${enable_fast_install+set}" = set; then :
8682 enableval=$enable_fast_install; p=${PACKAGE-default}
8683 case $enableval in
8684 yes) enable_fast_install=yes ;;
8685 no) enable_fast_install=no ;;
8686 *)
8687 enable_fast_install=no
8688 # Look at the argument we got. We use all the common list separators.
8689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8690 for pkg in $enableval; do
8691 IFS="$lt_save_ifs"
8692 if test "X$pkg" = "X$p"; then
8693 enable_fast_install=yes
8694 fi
8695 done
8696 IFS="$lt_save_ifs"
8697 ;;
8698 esac
8699 else
8700 enable_fast_install=yes
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713 # This can be used to rebuild libtool when needed
8714 LIBTOOL_DEPS="$ltmain"
8715
8716 # Always use our own libtool.
8717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 test -z "$LN_S" && LN_S="ln -s"
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759 if test -n "${ZSH_VERSION+set}" ; then
8760 setopt NO_GLOB_SUBST
8761 fi
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8764 $as_echo_n "checking for objdir... " >&6; }
8765 if test "${lt_cv_objdir+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 rm -f .libs 2>/dev/null
8769 mkdir .libs 2>/dev/null
8770 if test -d .libs; then
8771 lt_cv_objdir=.libs
8772 else
8773 # MS-DOS does not allow filenames that begin with a dot.
8774 lt_cv_objdir=_libs
8775 fi
8776 rmdir .libs 2>/dev/null
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8779 $as_echo "$lt_cv_objdir" >&6; }
8780 objdir=$lt_cv_objdir
8781
8782
8783
8784
8785
8786 cat >>confdefs.h <<_ACEOF
8787 #define LT_OBJDIR "$lt_cv_objdir/"
8788 _ACEOF
8789
8790
8791
8792
8793 case $host_os in
8794 aix3*)
8795 # AIX sometimes has problems with the GCC collect2 program. For some
8796 # reason, if we set the COLLECT_NAMES environment variable, the problems
8797 # vanish in a puff of smoke.
8798 if test "X${COLLECT_NAMES+set}" != Xset; then
8799 COLLECT_NAMES=
8800 export COLLECT_NAMES
8801 fi
8802 ;;
8803 esac
8804
8805 # Global variables:
8806 ofile=libtool
8807 can_build_shared=yes
8808
8809 # All known linkers require a `.a' archive for static linking (except MSVC,
8810 # which needs '.lib').
8811 libext=a
8812
8813 with_gnu_ld="$lt_cv_prog_gnu_ld"
8814
8815 old_CC="$CC"
8816 old_CFLAGS="$CFLAGS"
8817
8818 # Set sane defaults for various variables
8819 test -z "$CC" && CC=cc
8820 test -z "$LTCC" && LTCC=$CC
8821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822 test -z "$LD" && LD=ld
8823 test -z "$ac_objext" && ac_objext=o
8824
8825 for cc_temp in $compiler""; do
8826 case $cc_temp in
8827 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8828 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8829 \-*) ;;
8830 *) break;;
8831 esac
8832 done
8833 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8834
8835
8836 # Only perform the check for file, if the check method requires it
8837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8838 case $deplibs_check_method in
8839 file_magic*)
8840 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8843 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 case $MAGIC_CMD in
8847 [\\/*] | ?:[\\/]*)
8848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8849 ;;
8850 *)
8851 lt_save_MAGIC_CMD="$MAGIC_CMD"
8852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8854 for ac_dir in $ac_dummy; do
8855 IFS="$lt_save_ifs"
8856 test -z "$ac_dir" && ac_dir=.
8857 if test -f $ac_dir/${ac_tool_prefix}file; then
8858 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8859 if test -n "$file_magic_test_file"; then
8860 case $deplibs_check_method in
8861 "file_magic "*)
8862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8865 $EGREP "$file_magic_regex" > /dev/null; then
8866 :
8867 else
8868 cat <<_LT_EOF 1>&2
8869
8870 *** Warning: the command libtool uses to detect shared libraries,
8871 *** $file_magic_cmd, produces output that libtool cannot recognize.
8872 *** The result is that libtool may fail to recognize shared libraries
8873 *** as such. This will affect the creation of libtool libraries that
8874 *** depend on shared libraries, but programs linked with such libtool
8875 *** libraries will work regardless of this problem. Nevertheless, you
8876 *** may want to report the problem to your system manager and/or to
8877 *** bug-libtool@gnu.org
8878
8879 _LT_EOF
8880 fi ;;
8881 esac
8882 fi
8883 break
8884 fi
8885 done
8886 IFS="$lt_save_ifs"
8887 MAGIC_CMD="$lt_save_MAGIC_CMD"
8888 ;;
8889 esac
8890 fi
8891
8892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8893 if test -n "$MAGIC_CMD"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8895 $as_echo "$MAGIC_CMD" >&6; }
8896 else
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8899 fi
8900
8901
8902
8903
8904
8905 if test -z "$lt_cv_path_MAGIC_CMD"; then
8906 if test -n "$ac_tool_prefix"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8908 $as_echo_n "checking for file... " >&6; }
8909 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 case $MAGIC_CMD in
8913 [\\/*] | ?:[\\/]*)
8914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8915 ;;
8916 *)
8917 lt_save_MAGIC_CMD="$MAGIC_CMD"
8918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8920 for ac_dir in $ac_dummy; do
8921 IFS="$lt_save_ifs"
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/file; then
8924 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8925 if test -n "$file_magic_test_file"; then
8926 case $deplibs_check_method in
8927 "file_magic "*)
8928 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8931 $EGREP "$file_magic_regex" > /dev/null; then
8932 :
8933 else
8934 cat <<_LT_EOF 1>&2
8935
8936 *** Warning: the command libtool uses to detect shared libraries,
8937 *** $file_magic_cmd, produces output that libtool cannot recognize.
8938 *** The result is that libtool may fail to recognize shared libraries
8939 *** as such. This will affect the creation of libtool libraries that
8940 *** depend on shared libraries, but programs linked with such libtool
8941 *** libraries will work regardless of this problem. Nevertheless, you
8942 *** may want to report the problem to your system manager and/or to
8943 *** bug-libtool@gnu.org
8944
8945 _LT_EOF
8946 fi ;;
8947 esac
8948 fi
8949 break
8950 fi
8951 done
8952 IFS="$lt_save_ifs"
8953 MAGIC_CMD="$lt_save_MAGIC_CMD"
8954 ;;
8955 esac
8956 fi
8957
8958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8959 if test -n "$MAGIC_CMD"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8961 $as_echo "$MAGIC_CMD" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968 else
8969 MAGIC_CMD=:
8970 fi
8971 fi
8972
8973 fi
8974 ;;
8975 esac
8976
8977 # Use C for the default configuration in the libtool script
8978
8979 lt_save_CC="$CC"
8980 ac_ext=c
8981 ac_cpp='$CPP $CPPFLAGS'
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985
8986
8987 # Source file extension for C test sources.
8988 ac_ext=c
8989
8990 # Object file extension for compiled C test sources.
8991 objext=o
8992 objext=$objext
8993
8994 # Code to be used in simple compile tests
8995 lt_simple_compile_test_code="int some_variable = 0;"
8996
8997 # Code to be used in simple link tests
8998 lt_simple_link_test_code='int main(){return(0);}'
8999
9000
9001
9002
9003
9004
9005
9006 # If no C compiler was specified, use CC.
9007 LTCC=${LTCC-"$CC"}
9008
9009 # If no C compiler flags were specified, use CFLAGS.
9010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9011
9012 # Allow CC to be a program name with arguments.
9013 compiler=$CC
9014
9015 # Save the default compiler, since it gets overwritten when the other
9016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9017 compiler_DEFAULT=$CC
9018
9019 # save warnings/boilerplate of simple test code
9020 ac_outfile=conftest.$ac_objext
9021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9023 _lt_compiler_boilerplate=`cat conftest.err`
9024 $RM conftest*
9025
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_linker_boilerplate=`cat conftest.err`
9030 $RM -r conftest*
9031
9032
9033 ## CAVEAT EMPTOR:
9034 ## There is no encapsulation within the following macros, do not change
9035 ## the running order or otherwise move them around unless you know exactly
9036 ## what you are doing...
9037 if test -n "$compiler"; then
9038
9039 lt_prog_compiler_no_builtin_flag=
9040
9041 if test "$GCC" = yes; then
9042 case $cc_basename in
9043 nvcc*)
9044 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9045 *)
9046 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9047 esac
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9050 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9051 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 lt_cv_prog_compiler_rtti_exceptions=no
9055 ac_outfile=conftest.$ac_objext
9056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9057 lt_compiler_flag="-fno-rtti -fno-exceptions"
9058 # Insert the option either (1) after the last *FLAGS variable, or
9059 # (2) before a word containing "conftest.", or (3) at the end.
9060 # Note that $ac_compile itself does not contain backslashes and begins
9061 # with a dollar sign (not a hyphen), so the echo should work correctly.
9062 # The option is referenced via a variable to avoid confusing sed.
9063 lt_compile=`echo "$ac_compile" | $SED \
9064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9066 -e 's:$: $lt_compiler_flag:'`
9067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9068 (eval "$lt_compile" 2>conftest.err)
9069 ac_status=$?
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 if (exit $ac_status) && test -s "$ac_outfile"; then
9073 # The compiler can only warn and ignore the option if not recognized
9074 # So say no if there are warnings other than the usual output.
9075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9078 lt_cv_prog_compiler_rtti_exceptions=yes
9079 fi
9080 fi
9081 $RM conftest*
9082
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9085 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9086
9087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9088 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9089 else
9090 :
9091 fi
9092
9093 fi
9094
9095
9096
9097
9098
9099
9100 lt_prog_compiler_wl=
9101 lt_prog_compiler_pic=
9102 lt_prog_compiler_static=
9103
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9106
9107 if test "$GCC" = yes; then
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_static='-static'
9110
9111 case $host_os in
9112 aix*)
9113 # All AIX code is PIC.
9114 if test "$host_cpu" = ia64; then
9115 # AIX 5 now supports IA64 processor
9116 lt_prog_compiler_static='-Bstatic'
9117 fi
9118 lt_prog_compiler_pic='-fPIC'
9119 ;;
9120
9121 amigaos*)
9122 case $host_cpu in
9123 powerpc)
9124 # see comment about AmigaOS4 .so support
9125 lt_prog_compiler_pic='-fPIC'
9126 ;;
9127 m68k)
9128 # FIXME: we need at least 68020 code to build shared libraries, but
9129 # adding the `-m68020' flag to GCC prevents building anything better,
9130 # like `-m68040'.
9131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9132 ;;
9133 esac
9134 ;;
9135
9136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9137 # PIC is the default for these OSes.
9138 ;;
9139
9140 mingw* | cygwin* | pw32* | os2* | cegcc*)
9141 # This hack is so that the source file can tell whether it is being
9142 # built for inclusion in a dll (and should export symbols for example).
9143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9144 # (--disable-auto-import) libraries
9145 lt_prog_compiler_pic='-DDLL_EXPORT'
9146 ;;
9147
9148 darwin* | rhapsody*)
9149 # PIC is the default on this platform
9150 # Common symbols not allowed in MH_DYLIB files
9151 lt_prog_compiler_pic='-fno-common'
9152 ;;
9153
9154 haiku*)
9155 # PIC is the default for Haiku.
9156 # The "-static" flag exists, but is broken.
9157 lt_prog_compiler_static=
9158 ;;
9159
9160 hpux*)
9161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9163 # sets the default TLS model and affects inlining.
9164 case $host_cpu in
9165 hppa*64*)
9166 # +Z the default
9167 ;;
9168 *)
9169 lt_prog_compiler_pic='-fPIC'
9170 ;;
9171 esac
9172 ;;
9173
9174 interix[3-9]*)
9175 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9176 # Instead, we relocate shared libraries at runtime.
9177 ;;
9178
9179 msdosdjgpp*)
9180 # Just because we use GCC doesn't mean we suddenly get shared libraries
9181 # on systems that don't support them.
9182 lt_prog_compiler_can_build_shared=no
9183 enable_shared=no
9184 ;;
9185
9186 *nto* | *qnx*)
9187 # QNX uses GNU C++, but need to define -shared option too, otherwise
9188 # it will coredump.
9189 lt_prog_compiler_pic='-fPIC -shared'
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec; then
9194 lt_prog_compiler_pic=-Kconform_pic
9195 fi
9196 ;;
9197
9198 *)
9199 lt_prog_compiler_pic='-fPIC'
9200 ;;
9201 esac
9202
9203 case $cc_basename in
9204 nvcc*) # Cuda Compiler Driver 2.2
9205 lt_prog_compiler_wl='-Xlinker '
9206 lt_prog_compiler_pic='-Xcompiler -fPIC'
9207 ;;
9208 esac
9209 else
9210 # PORTME Check for flag to pass linker flags through the system compiler.
9211 case $host_os in
9212 aix*)
9213 lt_prog_compiler_wl='-Wl,'
9214 if test "$host_cpu" = ia64; then
9215 # AIX 5 now supports IA64 processor
9216 lt_prog_compiler_static='-Bstatic'
9217 else
9218 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9219 fi
9220 ;;
9221
9222 mingw* | cygwin* | pw32* | os2* | cegcc*)
9223 # This hack is so that the source file can tell whether it is being
9224 # built for inclusion in a dll (and should export symbols for example).
9225 lt_prog_compiler_pic='-DDLL_EXPORT'
9226 ;;
9227
9228 hpux9* | hpux10* | hpux11*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9231 # not for PA HP-UX.
9232 case $host_cpu in
9233 hppa*64*|ia64*)
9234 # +Z the default
9235 ;;
9236 *)
9237 lt_prog_compiler_pic='+Z'
9238 ;;
9239 esac
9240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241 lt_prog_compiler_static='${wl}-a ${wl}archive'
9242 ;;
9243
9244 irix5* | irix6* | nonstopux*)
9245 lt_prog_compiler_wl='-Wl,'
9246 # PIC (with -KPIC) is the default.
9247 lt_prog_compiler_static='-non_shared'
9248 ;;
9249
9250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9251 case $cc_basename in
9252 # old Intel for x86_64 which still supported -KPIC.
9253 ecc*)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-KPIC'
9256 lt_prog_compiler_static='-static'
9257 ;;
9258 # icc used to be incompatible with GCC.
9259 # ICC 10 doesn't accept -KPIC any more.
9260 icc* | ifort*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-fPIC'
9263 lt_prog_compiler_static='-static'
9264 ;;
9265 # Lahey Fortran 8.1.
9266 lf95*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='--shared'
9269 lt_prog_compiler_static='--static'
9270 ;;
9271 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9272 # Portland Group compilers (*not* the Pentium gcc compiler,
9273 # which looks to be a dead project)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-fpic'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
9278 ccc*)
9279 lt_prog_compiler_wl='-Wl,'
9280 # All Alpha code is PIC.
9281 lt_prog_compiler_static='-non_shared'
9282 ;;
9283 xl* | bgxl* | bgf* | mpixl*)
9284 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9285 lt_prog_compiler_wl='-Wl,'
9286 lt_prog_compiler_pic='-qpic'
9287 lt_prog_compiler_static='-qstaticlink'
9288 ;;
9289 *)
9290 case `$CC -V 2>&1 | sed 5q` in
9291 *Sun\ F* | *Sun*Fortran*)
9292 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 lt_prog_compiler_wl=''
9296 ;;
9297 *Sun\ C*)
9298 # Sun C 5.9
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 lt_prog_compiler_wl='-Wl,'
9302 ;;
9303 esac
9304 ;;
9305 esac
9306 ;;
9307
9308 newsos6)
9309 lt_prog_compiler_pic='-KPIC'
9310 lt_prog_compiler_static='-Bstatic'
9311 ;;
9312
9313 *nto* | *qnx*)
9314 # QNX uses GNU C++, but need to define -shared option too, otherwise
9315 # it will coredump.
9316 lt_prog_compiler_pic='-fPIC -shared'
9317 ;;
9318
9319 osf3* | osf4* | osf5*)
9320 lt_prog_compiler_wl='-Wl,'
9321 # All OSF/1 code is PIC.
9322 lt_prog_compiler_static='-non_shared'
9323 ;;
9324
9325 rdos*)
9326 lt_prog_compiler_static='-non_shared'
9327 ;;
9328
9329 solaris*)
9330 lt_prog_compiler_pic='-KPIC'
9331 lt_prog_compiler_static='-Bstatic'
9332 case $cc_basename in
9333 f77* | f90* | f95*)
9334 lt_prog_compiler_wl='-Qoption ld ';;
9335 *)
9336 lt_prog_compiler_wl='-Wl,';;
9337 esac
9338 ;;
9339
9340 sunos4*)
9341 lt_prog_compiler_wl='-Qoption ld '
9342 lt_prog_compiler_pic='-PIC'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
9345
9346 sysv4 | sysv4.2uw2* | sysv4.3*)
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_pic='-KPIC'
9349 lt_prog_compiler_static='-Bstatic'
9350 ;;
9351
9352 sysv4*MP*)
9353 if test -d /usr/nec ;then
9354 lt_prog_compiler_pic='-Kconform_pic'
9355 lt_prog_compiler_static='-Bstatic'
9356 fi
9357 ;;
9358
9359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9360 lt_prog_compiler_wl='-Wl,'
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364
9365 unicos*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_can_build_shared=no
9368 ;;
9369
9370 uts4*)
9371 lt_prog_compiler_pic='-pic'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374
9375 *)
9376 lt_prog_compiler_can_build_shared=no
9377 ;;
9378 esac
9379 fi
9380
9381 case $host_os in
9382 # For platforms which do not support PIC, -DPIC is meaningless:
9383 *djgpp*)
9384 lt_prog_compiler_pic=
9385 ;;
9386 *)
9387 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9388 ;;
9389 esac
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9391 $as_echo "$lt_prog_compiler_pic" >&6; }
9392
9393
9394
9395
9396
9397
9398 #
9399 # Check to make sure the PIC flag actually works.
9400 #
9401 if test -n "$lt_prog_compiler_pic"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9403 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9404 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 lt_cv_prog_compiler_pic_works=no
9408 ac_outfile=conftest.$ac_objext
9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9411 # Insert the option either (1) after the last *FLAGS variable, or
9412 # (2) before a word containing "conftest.", or (3) at the end.
9413 # Note that $ac_compile itself does not contain backslashes and begins
9414 # with a dollar sign (not a hyphen), so the echo should work correctly.
9415 # The option is referenced via a variable to avoid confusing sed.
9416 lt_compile=`echo "$ac_compile" | $SED \
9417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419 -e 's:$: $lt_compiler_flag:'`
9420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9421 (eval "$lt_compile" 2>conftest.err)
9422 ac_status=$?
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 if (exit $ac_status) && test -s "$ac_outfile"; then
9426 # The compiler can only warn and ignore the option if not recognized
9427 # So say no if there are warnings other than the usual output.
9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler_pic_works=yes
9432 fi
9433 fi
9434 $RM conftest*
9435
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9438 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9439
9440 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9441 case $lt_prog_compiler_pic in
9442 "" | " "*) ;;
9443 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9444 esac
9445 else
9446 lt_prog_compiler_pic=
9447 lt_prog_compiler_can_build_shared=no
9448 fi
9449
9450 fi
9451
9452
9453
9454
9455
9456
9457 #
9458 # Check to make sure the static flag actually works.
9459 #
9460 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9463 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 lt_cv_prog_compiler_static_works=no
9467 save_LDFLAGS="$LDFLAGS"
9468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9471 # The linker can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 if test -s conftest.err; then
9474 # Append any errors to the config.log.
9475 cat conftest.err 1>&5
9476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478 if diff conftest.exp conftest.er2 >/dev/null; then
9479 lt_cv_prog_compiler_static_works=yes
9480 fi
9481 else
9482 lt_cv_prog_compiler_static_works=yes
9483 fi
9484 fi
9485 $RM -r conftest*
9486 LDFLAGS="$save_LDFLAGS"
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9490 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9491
9492 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9493 :
9494 else
9495 lt_prog_compiler_static=
9496 fi
9497
9498
9499
9500
9501
9502
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9506 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 lt_cv_prog_compiler_c_o=no
9510 $RM -r conftest 2>/dev/null
9511 mkdir conftest
9512 cd conftest
9513 mkdir out
9514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9515
9516 lt_compiler_flag="-o out/conftest2.$ac_objext"
9517 # Insert the option either (1) after the last *FLAGS variable, or
9518 # (2) before a word containing "conftest.", or (3) at the end.
9519 # Note that $ac_compile itself does not contain backslashes and begins
9520 # with a dollar sign (not a hyphen), so the echo should work correctly.
9521 lt_compile=`echo "$ac_compile" | $SED \
9522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9524 -e 's:$: $lt_compiler_flag:'`
9525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9526 (eval "$lt_compile" 2>out/conftest.err)
9527 ac_status=$?
9528 cat out/conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9531 then
9532 # The compiler can only warn and ignore the option if not recognized
9533 # So say no if there are warnings
9534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler_c_o=yes
9538 fi
9539 fi
9540 chmod u+w . 2>&5
9541 $RM conftest*
9542 # SGI C++ compiler will create directory out/ii_files/ for
9543 # template instantiation
9544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9545 $RM out/* && rmdir out
9546 cd ..
9547 $RM -r conftest
9548 $RM conftest*
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9552 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9553
9554
9555
9556
9557
9558
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9561 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 lt_cv_prog_compiler_c_o=no
9565 $RM -r conftest 2>/dev/null
9566 mkdir conftest
9567 cd conftest
9568 mkdir out
9569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570
9571 lt_compiler_flag="-o out/conftest2.$ac_objext"
9572 # Insert the option either (1) after the last *FLAGS variable, or
9573 # (2) before a word containing "conftest.", or (3) at the end.
9574 # Note that $ac_compile itself does not contain backslashes and begins
9575 # with a dollar sign (not a hyphen), so the echo should work correctly.
9576 lt_compile=`echo "$ac_compile" | $SED \
9577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9579 -e 's:$: $lt_compiler_flag:'`
9580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9581 (eval "$lt_compile" 2>out/conftest.err)
9582 ac_status=$?
9583 cat out/conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9586 then
9587 # The compiler can only warn and ignore the option if not recognized
9588 # So say no if there are warnings
9589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9592 lt_cv_prog_compiler_c_o=yes
9593 fi
9594 fi
9595 chmod u+w . 2>&5
9596 $RM conftest*
9597 # SGI C++ compiler will create directory out/ii_files/ for
9598 # template instantiation
9599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9600 $RM out/* && rmdir out
9601 cd ..
9602 $RM -r conftest
9603 $RM conftest*
9604
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9607 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9608
9609
9610
9611
9612 hard_links="nottested"
9613 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9614 # do not overwrite the value of need_locks provided by the user
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9616 $as_echo_n "checking if we can lock with hard links... " >&6; }
9617 hard_links=yes
9618 $RM conftest*
9619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9620 touch conftest.a
9621 ln conftest.a conftest.b 2>&5 || hard_links=no
9622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9624 $as_echo "$hard_links" >&6; }
9625 if test "$hard_links" = no; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9627 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9628 need_locks=warn
9629 fi
9630 else
9631 need_locks=no
9632 fi
9633
9634
9635
9636
9637
9638
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9641
9642 runpath_var=
9643 allow_undefined_flag=
9644 always_export_symbols=no
9645 archive_cmds=
9646 archive_expsym_cmds=
9647 compiler_needs_object=no
9648 enable_shared_with_static_runtimes=no
9649 export_dynamic_flag_spec=
9650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9651 hardcode_automatic=no
9652 hardcode_direct=no
9653 hardcode_direct_absolute=no
9654 hardcode_libdir_flag_spec=
9655 hardcode_libdir_flag_spec_ld=
9656 hardcode_libdir_separator=
9657 hardcode_minus_L=no
9658 hardcode_shlibpath_var=unsupported
9659 inherit_rpath=no
9660 link_all_deplibs=unknown
9661 module_cmds=
9662 module_expsym_cmds=
9663 old_archive_from_new_cmds=
9664 old_archive_from_expsyms_cmds=
9665 thread_safe_flag_spec=
9666 whole_archive_flag_spec=
9667 # include_expsyms should be a list of space-separated symbols to be *always*
9668 # included in the symbol list
9669 include_expsyms=
9670 # exclude_expsyms can be an extended regexp of symbols to exclude
9671 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9672 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9673 # as well as any symbol that contains `d'.
9674 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9675 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9676 # platforms (ab)use it in PIC code, but their linkers get confused if
9677 # the symbol is explicitly referenced. Since portable code cannot
9678 # rely on this symbol name, it's probably fine to never include it in
9679 # preloaded symbol tables.
9680 # Exclude shared library initialization/finalization symbols.
9681 extract_expsyms_cmds=
9682
9683 case $host_os in
9684 cygwin* | mingw* | pw32* | cegcc*)
9685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9686 # When not using gcc, we currently assume that we are using
9687 # Microsoft Visual C++.
9688 if test "$GCC" != yes; then
9689 with_gnu_ld=no
9690 fi
9691 ;;
9692 interix*)
9693 # we just hope/assume this is gcc and not c89 (= MSVC++)
9694 with_gnu_ld=yes
9695 ;;
9696 openbsd*)
9697 with_gnu_ld=no
9698 ;;
9699 esac
9700
9701 ld_shlibs=yes
9702
9703 # On some targets, GNU ld is compatible enough with the native linker
9704 # that we're better off using the native interface for both.
9705 lt_use_gnu_ld_interface=no
9706 if test "$with_gnu_ld" = yes; then
9707 case $host_os in
9708 aix*)
9709 # The AIX port of GNU ld has always aspired to compatibility
9710 # with the native linker. However, as the warning in the GNU ld
9711 # block says, versions before 2.19.5* couldn't really create working
9712 # shared libraries, regardless of the interface used.
9713 case `$LD -v 2>&1` in
9714 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9715 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9716 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9717 *)
9718 lt_use_gnu_ld_interface=yes
9719 ;;
9720 esac
9721 ;;
9722 *)
9723 lt_use_gnu_ld_interface=yes
9724 ;;
9725 esac
9726 fi
9727
9728 if test "$lt_use_gnu_ld_interface" = yes; then
9729 # If archive_cmds runs LD, not CC, wlarc should be empty
9730 wlarc='${wl}'
9731
9732 # Set some defaults for GNU ld with shared library support. These
9733 # are reset later if shared libraries are not supported. Putting them
9734 # here allows them to be overridden if necessary.
9735 runpath_var=LD_RUN_PATH
9736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9737 export_dynamic_flag_spec='${wl}--export-dynamic'
9738 # ancient GNU ld didn't support --whole-archive et. al.
9739 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9740 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9741 else
9742 whole_archive_flag_spec=
9743 fi
9744 supports_anon_versioning=no
9745 case `$LD -v 2>&1` in
9746 *GNU\ gold*) supports_anon_versioning=yes ;;
9747 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9748 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9749 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9750 *\ 2.11.*) ;; # other 2.11 versions
9751 *) supports_anon_versioning=yes ;;
9752 esac
9753
9754 # See if GNU ld supports shared libraries.
9755 case $host_os in
9756 aix[3-9]*)
9757 # On AIX/PPC, the GNU linker is very broken
9758 if test "$host_cpu" != ia64; then
9759 ld_shlibs=no
9760 cat <<_LT_EOF 1>&2
9761
9762 *** Warning: the GNU linker, at least up to release 2.19, is reported
9763 *** to be unable to reliably create shared libraries on AIX.
9764 *** Therefore, libtool is disabling shared libraries support. If you
9765 *** really care for shared libraries, you may want to install binutils
9766 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9767 *** You will then need to restart the configuration process.
9768
9769 _LT_EOF
9770 fi
9771 ;;
9772
9773 amigaos*)
9774 case $host_cpu in
9775 powerpc)
9776 # see comment about AmigaOS4 .so support
9777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 archive_expsym_cmds=''
9779 ;;
9780 m68k)
9781 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)'
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_minus_L=yes
9784 ;;
9785 esac
9786 ;;
9787
9788 beos*)
9789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9790 allow_undefined_flag=unsupported
9791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9792 # support --undefined. This deserves some investigation. FIXME
9793 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 else
9795 ld_shlibs=no
9796 fi
9797 ;;
9798
9799 cygwin* | mingw* | pw32* | cegcc*)
9800 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9801 # as there is no search path for DLLs.
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 export_dynamic_flag_spec='${wl}--export-all-symbols'
9804 allow_undefined_flag=unsupported
9805 always_export_symbols=no
9806 enable_shared_with_static_runtimes=yes
9807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9808
9809 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9811 # If the export-symbols file already is a .def file (1st line
9812 # is EXPORTS), use it as is; otherwise, prepend...
9813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814 cp $export_symbols $output_objdir/$soname.def;
9815 else
9816 echo EXPORTS > $output_objdir/$soname.def;
9817 cat $export_symbols >> $output_objdir/$soname.def;
9818 fi~
9819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820 else
9821 ld_shlibs=no
9822 fi
9823 ;;
9824
9825 haiku*)
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 link_all_deplibs=yes
9828 ;;
9829
9830 interix[3-9]*)
9831 hardcode_direct=no
9832 hardcode_shlibpath_var=no
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
9835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9836 # Instead, shared libraries are loaded at an image base (0x10000000 by
9837 # default) and relocated if they conflict, which is a slow very memory
9838 # consuming and fragmenting process. To avoid this, we pick a random,
9839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9842 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'
9843 ;;
9844
9845 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9846 tmp_diet=no
9847 if test "$host_os" = linux-dietlibc; then
9848 case $cc_basename in
9849 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9850 esac
9851 fi
9852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9853 && test "$tmp_diet" = no
9854 then
9855 tmp_addflag=' $pic_flag'
9856 tmp_sharedflag='-shared'
9857 case $cc_basename,$host_cpu in
9858 pgcc*) # Portland Group C compiler
9859 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'
9860 tmp_addflag=' $pic_flag'
9861 ;;
9862 pgf77* | pgf90* | pgf95* | pgfortran*)
9863 # Portland Group f77 and f90 compilers
9864 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'
9865 tmp_addflag=' $pic_flag -Mnomain' ;;
9866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9867 tmp_addflag=' -i_dynamic' ;;
9868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9869 tmp_addflag=' -i_dynamic -nofor_main' ;;
9870 ifc* | ifort*) # Intel Fortran compiler
9871 tmp_addflag=' -nofor_main' ;;
9872 lf95*) # Lahey Fortran 8.1
9873 whole_archive_flag_spec=
9874 tmp_sharedflag='--shared' ;;
9875 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9876 tmp_sharedflag='-qmkshrobj'
9877 tmp_addflag= ;;
9878 nvcc*) # Cuda Compiler Driver 2.2
9879 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'
9880 compiler_needs_object=yes
9881 ;;
9882 esac
9883 case `$CC -V 2>&1 | sed 5q` in
9884 *Sun\ C*) # Sun C 5.9
9885 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'
9886 compiler_needs_object=yes
9887 tmp_sharedflag='-G' ;;
9888 *Sun\ F*) # Sun Fortran 8.3
9889 tmp_sharedflag='-G' ;;
9890 esac
9891 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892
9893 if test "x$supports_anon_versioning" = xyes; then
9894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9898 fi
9899
9900 case $cc_basename in
9901 xlf* | bgf* | bgxlf* | mpixlf*)
9902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9903 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9904 hardcode_libdir_flag_spec=
9905 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9906 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9907 if test "x$supports_anon_versioning" = xyes; then
9908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9910 echo "local: *; };" >> $output_objdir/$libname.ver~
9911 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9912 fi
9913 ;;
9914 esac
9915 else
9916 ld_shlibs=no
9917 fi
9918 ;;
9919
9920 netbsd*)
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9923 wlarc=
9924 else
9925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9927 fi
9928 ;;
9929
9930 solaris*)
9931 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9932 ld_shlibs=no
9933 cat <<_LT_EOF 1>&2
9934
9935 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9936 *** create shared libraries on Solaris systems. Therefore, libtool
9937 *** is disabling shared libraries support. We urge you to upgrade GNU
9938 *** binutils to release 2.9.1 or newer. Another option is to modify
9939 *** your PATH or compiler configuration so that the native linker is
9940 *** used, and then restart.
9941
9942 _LT_EOF
9943 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9946 else
9947 ld_shlibs=no
9948 fi
9949 ;;
9950
9951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9952 case `$LD -v 2>&1` in
9953 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9954 ld_shlibs=no
9955 cat <<_LT_EOF 1>&2
9956
9957 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9958 *** reliably create shared libraries on SCO systems. Therefore, libtool
9959 *** is disabling shared libraries support. We urge you to upgrade GNU
9960 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9961 *** your PATH or compiler configuration so that the native linker is
9962 *** used, and then restart.
9963
9964 _LT_EOF
9965 ;;
9966 *)
9967 # For security reasons, it is highly recommended that you always
9968 # use absolute paths for naming shared libraries, and exclude the
9969 # DT_RUNPATH tag from executables and libraries. But doing so
9970 # requires that you compile everything twice, which is a pain.
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9975 else
9976 ld_shlibs=no
9977 fi
9978 ;;
9979 esac
9980 ;;
9981
9982 sunos4*)
9983 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9984 wlarc=
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 *)
9990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9993 else
9994 ld_shlibs=no
9995 fi
9996 ;;
9997 esac
9998
9999 if test "$ld_shlibs" = no; then
10000 runpath_var=
10001 hardcode_libdir_flag_spec=
10002 export_dynamic_flag_spec=
10003 whole_archive_flag_spec=
10004 fi
10005 else
10006 # PORTME fill in a description of your system's linker (not GNU ld)
10007 case $host_os in
10008 aix3*)
10009 allow_undefined_flag=unsupported
10010 always_export_symbols=yes
10011 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'
10012 # Note: this linker hardcodes the directories in LIBPATH if there
10013 # are no directories specified by -L.
10014 hardcode_minus_L=yes
10015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10016 # Neither direct hardcoding nor static linking is supported with a
10017 # broken collect2.
10018 hardcode_direct=unsupported
10019 fi
10020 ;;
10021
10022 aix[4-9]*)
10023 if test "$host_cpu" = ia64; then
10024 # On IA64, the linker does run time linking by default, so we don't
10025 # have to do anything special.
10026 aix_use_runtimelinking=no
10027 exp_sym_flag='-Bexport'
10028 no_entry_flag=""
10029 else
10030 # If we're using GNU nm, then we don't want the "-C" option.
10031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10032 # Also, AIX nm treats weak defined symbols like other global
10033 # defined symbols, whereas GNU nm marks them as "W".
10034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10035 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'
10036 else
10037 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10038 fi
10039 aix_use_runtimelinking=no
10040
10041 # Test if we are trying to use run time linking or normal
10042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10043 # need to do runtime linking.
10044 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10045 for ld_flag in $LDFLAGS; do
10046 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10047 aix_use_runtimelinking=yes
10048 break
10049 fi
10050 done
10051 ;;
10052 esac
10053
10054 exp_sym_flag='-bexport'
10055 no_entry_flag='-bnoentry'
10056 fi
10057
10058 # When large executables or shared objects are built, AIX ld can
10059 # have problems creating the table of contents. If linking a library
10060 # or program results in "error TOC overflow" add -mminimal-toc to
10061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10063
10064 archive_cmds=''
10065 hardcode_direct=yes
10066 hardcode_direct_absolute=yes
10067 hardcode_libdir_separator=':'
10068 link_all_deplibs=yes
10069 file_list_spec='${wl}-f,'
10070
10071 if test "$GCC" = yes; then
10072 case $host_os in aix4.[012]|aix4.[012].*)
10073 # We only want to do this on AIX 4.2 and lower, the check
10074 # below for broken collect2 doesn't work under 4.3+
10075 collect2name=`${CC} -print-prog-name=collect2`
10076 if test -f "$collect2name" &&
10077 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10078 then
10079 # We have reworked collect2
10080 :
10081 else
10082 # We have old collect2
10083 hardcode_direct=unsupported
10084 # It fails to find uninstalled libraries when the uninstalled
10085 # path is not listed in the libpath. Setting hardcode_minus_L
10086 # to unsupported forces relinking
10087 hardcode_minus_L=yes
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_libdir_separator=
10090 fi
10091 ;;
10092 esac
10093 shared_flag='-shared'
10094 if test "$aix_use_runtimelinking" = yes; then
10095 shared_flag="$shared_flag "'${wl}-G'
10096 fi
10097 else
10098 # not using gcc
10099 if test "$host_cpu" = ia64; then
10100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10101 # chokes on -Wl,-G. The following line is correct:
10102 shared_flag='-G'
10103 else
10104 if test "$aix_use_runtimelinking" = yes; then
10105 shared_flag='${wl}-G'
10106 else
10107 shared_flag='${wl}-bM:SRE'
10108 fi
10109 fi
10110 fi
10111
10112 export_dynamic_flag_spec='${wl}-bexpall'
10113 # It seems that -bexpall does not export symbols beginning with
10114 # underscore (_), so it is better to generate a list of symbols to export.
10115 always_export_symbols=yes
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # Warning - without using the other runtime loading flags (-brtl),
10118 # -berok will link without error, but may produce a broken library.
10119 allow_undefined_flag='-berok'
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124
10125 int
10126 main ()
10127 {
10128
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134
10135 lt_aix_libpath_sed='
10136 /Import File Strings/,/^$/ {
10137 /^0/ {
10138 s/^0 *\(.*\)$/\1/
10139 p
10140 }
10141 }'
10142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 # Check for a 64-bit object if we didn't find anything.
10144 if test -z "$aix_libpath"; then
10145 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10146 fi
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10151
10152 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10153 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"
10154 else
10155 if test "$host_cpu" = ia64; then
10156 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10157 allow_undefined_flag="-z nodefs"
10158 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"
10159 else
10160 # Determine the default libpath from the value encoded in an
10161 # empty executable.
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164
10165 int
10166 main ()
10167 {
10168
10169 ;
10170 return 0;
10171 }
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174
10175 lt_aix_libpath_sed='
10176 /Import File Strings/,/^$/ {
10177 /^0/ {
10178 s/^0 *\(.*\)$/\1/
10179 p
10180 }
10181 }'
10182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183 # Check for a 64-bit object if we didn't find anything.
10184 if test -z "$aix_libpath"; then
10185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 fi
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10191
10192 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10193 # Warning - without using the other run time loading flags,
10194 # -berok will link without error, but may produce a broken library.
10195 no_undefined_flag=' ${wl}-bernotok'
10196 allow_undefined_flag=' ${wl}-berok'
10197 if test "$with_gnu_ld" = yes; then
10198 # We only use this code for GNU lds that support --whole-archive.
10199 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10200 else
10201 # Exported symbols can be pulled into shared objects from archives
10202 whole_archive_flag_spec='$convenience'
10203 fi
10204 archive_cmds_need_lc=yes
10205 # This is similar to how AIX traditionally builds its shared libraries.
10206 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'
10207 fi
10208 fi
10209 ;;
10210
10211 amigaos*)
10212 case $host_cpu in
10213 powerpc)
10214 # see comment about AmigaOS4 .so support
10215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 archive_expsym_cmds=''
10217 ;;
10218 m68k)
10219 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)'
10220 hardcode_libdir_flag_spec='-L$libdir'
10221 hardcode_minus_L=yes
10222 ;;
10223 esac
10224 ;;
10225
10226 bsdi[45]*)
10227 export_dynamic_flag_spec=-rdynamic
10228 ;;
10229
10230 cygwin* | mingw* | pw32* | cegcc*)
10231 # When not using gcc, we currently assume that we are using
10232 # Microsoft Visual C++.
10233 # hardcode_libdir_flag_spec is actually meaningless, as there is
10234 # no search path for DLLs.
10235 hardcode_libdir_flag_spec=' '
10236 allow_undefined_flag=unsupported
10237 # Tell ltmain to make .lib files, not .a files.
10238 libext=lib
10239 # Tell ltmain to make .dll files, not .so files.
10240 shrext_cmds=".dll"
10241 # FIXME: Setting linknames here is a bad hack.
10242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10243 # The linker will automatically build a .lib file if we build a DLL.
10244 old_archive_from_new_cmds='true'
10245 # FIXME: Should let the user specify the lib program.
10246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10247 fix_srcfile_path='`cygpath -w "$srcfile"`'
10248 enable_shared_with_static_runtimes=yes
10249 ;;
10250
10251 darwin* | rhapsody*)
10252
10253
10254 archive_cmds_need_lc=no
10255 hardcode_direct=no
10256 hardcode_automatic=yes
10257 hardcode_shlibpath_var=unsupported
10258 if test "$lt_cv_ld_force_load" = "yes"; then
10259 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\"`'
10260 else
10261 whole_archive_flag_spec=''
10262 fi
10263 link_all_deplibs=yes
10264 allow_undefined_flag="$_lt_dar_allow_undefined"
10265 case $cc_basename in
10266 ifort*) _lt_dar_can_shared=yes ;;
10267 *) _lt_dar_can_shared=$GCC ;;
10268 esac
10269 if test "$_lt_dar_can_shared" = "yes"; then
10270 output_verbose_link_cmd=func_echo_all
10271 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10272 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10273 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}"
10274 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}"
10275
10276 else
10277 ld_shlibs=no
10278 fi
10279
10280 ;;
10281
10282 dgux*)
10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10289 # support. Future versions do this automatically, but an explicit c++rt0.o
10290 # does not break anything, and helps significantly (at the cost of a little
10291 # extra space).
10292 freebsd2.2*)
10293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10294 hardcode_libdir_flag_spec='-R$libdir'
10295 hardcode_direct=yes
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10300 freebsd2.*)
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=yes
10303 hardcode_minus_L=yes
10304 hardcode_shlibpath_var=no
10305 ;;
10306
10307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10308 freebsd* | dragonfly*)
10309 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10310 hardcode_libdir_flag_spec='-R$libdir'
10311 hardcode_direct=yes
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 hpux9*)
10316 if test "$GCC" = yes; then
10317 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'
10318 else
10319 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'
10320 fi
10321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323 hardcode_direct=yes
10324
10325 # hardcode_minus_L: Not really in the search PATH,
10326 # but as the default location of the library.
10327 hardcode_minus_L=yes
10328 export_dynamic_flag_spec='${wl}-E'
10329 ;;
10330
10331 hpux10*)
10332 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10334 else
10335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10336 fi
10337 if test "$with_gnu_ld" = no; then
10338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10339 hardcode_libdir_flag_spec_ld='+b $libdir'
10340 hardcode_libdir_separator=:
10341 hardcode_direct=yes
10342 hardcode_direct_absolute=yes
10343 export_dynamic_flag_spec='${wl}-E'
10344 # hardcode_minus_L: Not really in the search PATH,
10345 # but as the default location of the library.
10346 hardcode_minus_L=yes
10347 fi
10348 ;;
10349
10350 hpux11*)
10351 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10352 case $host_cpu in
10353 hppa*64*)
10354 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 ;;
10356 ia64*)
10357 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10358 ;;
10359 *)
10360 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10361 ;;
10362 esac
10363 else
10364 case $host_cpu in
10365 hppa*64*)
10366 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 ia64*)
10369 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370 ;;
10371 *)
10372
10373 # Older versions of the 11.00 compiler do not understand -b yet
10374 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10376 $as_echo_n "checking if $CC understands -b... " >&6; }
10377 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 lt_cv_prog_compiler__b=no
10381 save_LDFLAGS="$LDFLAGS"
10382 LDFLAGS="$LDFLAGS -b"
10383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10385 # The linker can only warn and ignore the option if not recognized
10386 # So say no if there are warnings
10387 if test -s conftest.err; then
10388 # Append any errors to the config.log.
10389 cat conftest.err 1>&5
10390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10392 if diff conftest.exp conftest.er2 >/dev/null; then
10393 lt_cv_prog_compiler__b=yes
10394 fi
10395 else
10396 lt_cv_prog_compiler__b=yes
10397 fi
10398 fi
10399 $RM -r conftest*
10400 LDFLAGS="$save_LDFLAGS"
10401
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10404 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10405
10406 if test x"$lt_cv_prog_compiler__b" = xyes; then
10407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10408 else
10409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 fi
10411
10412 ;;
10413 esac
10414 fi
10415 if test "$with_gnu_ld" = no; then
10416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10417 hardcode_libdir_separator=:
10418
10419 case $host_cpu in
10420 hppa*64*|ia64*)
10421 hardcode_direct=no
10422 hardcode_shlibpath_var=no
10423 ;;
10424 *)
10425 hardcode_direct=yes
10426 hardcode_direct_absolute=yes
10427 export_dynamic_flag_spec='${wl}-E'
10428
10429 # hardcode_minus_L: Not really in the search PATH,
10430 # but as the default location of the library.
10431 hardcode_minus_L=yes
10432 ;;
10433 esac
10434 fi
10435 ;;
10436
10437 irix5* | irix6* | nonstopux*)
10438 if test "$GCC" = yes; then
10439 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'
10440 # Try to use the -exported_symbol ld option, if it does not
10441 # work, assume that -exports_file does not work either and
10442 # implicitly export all symbols.
10443 save_LDFLAGS="$LDFLAGS"
10444 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int foo(void) {}
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 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'
10451
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LDFLAGS="$save_LDFLAGS"
10456 else
10457 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'
10458 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'
10459 fi
10460 archive_cmds_need_lc='no'
10461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10462 hardcode_libdir_separator=:
10463 inherit_rpath=yes
10464 link_all_deplibs=yes
10465 ;;
10466
10467 netbsd*)
10468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10470 else
10471 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10472 fi
10473 hardcode_libdir_flag_spec='-R$libdir'
10474 hardcode_direct=yes
10475 hardcode_shlibpath_var=no
10476 ;;
10477
10478 newsos6)
10479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480 hardcode_direct=yes
10481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10482 hardcode_libdir_separator=:
10483 hardcode_shlibpath_var=no
10484 ;;
10485
10486 *nto* | *qnx*)
10487 ;;
10488
10489 openbsd*)
10490 if test -f /usr/libexec/ld.so; then
10491 hardcode_direct=yes
10492 hardcode_shlibpath_var=no
10493 hardcode_direct_absolute=yes
10494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10498 export_dynamic_flag_spec='${wl}-E'
10499 else
10500 case $host_os in
10501 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10503 hardcode_libdir_flag_spec='-R$libdir'
10504 ;;
10505 *)
10506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10508 ;;
10509 esac
10510 fi
10511 else
10512 ld_shlibs=no
10513 fi
10514 ;;
10515
10516 os2*)
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_minus_L=yes
10519 allow_undefined_flag=unsupported
10520 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'
10521 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10522 ;;
10523
10524 osf3*)
10525 if test "$GCC" = yes; then
10526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10527 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'
10528 else
10529 allow_undefined_flag=' -expect_unresolved \*'
10530 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'
10531 fi
10532 archive_cmds_need_lc='no'
10533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534 hardcode_libdir_separator=:
10535 ;;
10536
10537 osf4* | osf5*) # as osf3* with the addition of -msym flag
10538 if test "$GCC" = yes; then
10539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10540 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'
10541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10542 else
10543 allow_undefined_flag=' -expect_unresolved \*'
10544 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'
10545 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~
10546 $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'
10547
10548 # Both c and cxx compiler support -rpath directly
10549 hardcode_libdir_flag_spec='-rpath $libdir'
10550 fi
10551 archive_cmds_need_lc='no'
10552 hardcode_libdir_separator=:
10553 ;;
10554
10555 solaris*)
10556 no_undefined_flag=' -z defs'
10557 if test "$GCC" = yes; then
10558 wlarc='${wl}'
10559 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10561 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10562 else
10563 case `$CC -V 2>&1` in
10564 *"Compilers 5.0"*)
10565 wlarc=''
10566 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10569 ;;
10570 *)
10571 wlarc='${wl}'
10572 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10574 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10575 ;;
10576 esac
10577 fi
10578 hardcode_libdir_flag_spec='-R$libdir'
10579 hardcode_shlibpath_var=no
10580 case $host_os in
10581 solaris2.[0-5] | solaris2.[0-5].*) ;;
10582 *)
10583 # The compiler driver will combine and reorder linker options,
10584 # but understands `-z linker_flag'. GCC discards it without `$wl',
10585 # but is careful enough not to reorder.
10586 # Supported since Solaris 2.6 (maybe 2.5.1?)
10587 if test "$GCC" = yes; then
10588 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10589 else
10590 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10591 fi
10592 ;;
10593 esac
10594 link_all_deplibs=yes
10595 ;;
10596
10597 sunos4*)
10598 if test "x$host_vendor" = xsequent; then
10599 # Use $CC to link under sequent, because it throws in some extra .o
10600 # files that make .init and .fini sections work.
10601 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10602 else
10603 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10604 fi
10605 hardcode_libdir_flag_spec='-L$libdir'
10606 hardcode_direct=yes
10607 hardcode_minus_L=yes
10608 hardcode_shlibpath_var=no
10609 ;;
10610
10611 sysv4)
10612 case $host_vendor in
10613 sni)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_direct=yes # is this really true???
10616 ;;
10617 siemens)
10618 ## LD is ld it makes a PLAMLIB
10619 ## CC just makes a GrossModule.
10620 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10621 reload_cmds='$CC -r -o $output$reload_objs'
10622 hardcode_direct=no
10623 ;;
10624 motorola)
10625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10627 ;;
10628 esac
10629 runpath_var='LD_RUN_PATH'
10630 hardcode_shlibpath_var=no
10631 ;;
10632
10633 sysv4.3*)
10634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635 hardcode_shlibpath_var=no
10636 export_dynamic_flag_spec='-Bexport'
10637 ;;
10638
10639 sysv4*MP*)
10640 if test -d /usr/nec; then
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_shlibpath_var=no
10643 runpath_var=LD_RUN_PATH
10644 hardcode_runpath_var=yes
10645 ld_shlibs=yes
10646 fi
10647 ;;
10648
10649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10650 no_undefined_flag='${wl}-z,text'
10651 archive_cmds_need_lc=no
10652 hardcode_shlibpath_var=no
10653 runpath_var='LD_RUN_PATH'
10654
10655 if test "$GCC" = yes; then
10656 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10658 else
10659 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 fi
10662 ;;
10663
10664 sysv5* | sco3.2v5* | sco5v6*)
10665 # Note: We can NOT use -z defs as we might desire, because we do not
10666 # link with -lc, and that would cause any symbols used from libc to
10667 # always be unresolved, which means just about no library would
10668 # ever link correctly. If we're not using GNU ld we use -z text
10669 # though, which does catch some bad symbols but isn't as heavy-handed
10670 # as -z defs.
10671 no_undefined_flag='${wl}-z,text'
10672 allow_undefined_flag='${wl}-z,nodefs'
10673 archive_cmds_need_lc=no
10674 hardcode_shlibpath_var=no
10675 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10676 hardcode_libdir_separator=':'
10677 link_all_deplibs=yes
10678 export_dynamic_flag_spec='${wl}-Bexport'
10679 runpath_var='LD_RUN_PATH'
10680
10681 if test "$GCC" = yes; then
10682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684 else
10685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 fi
10688 ;;
10689
10690 uts4*)
10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 hardcode_libdir_flag_spec='-L$libdir'
10693 hardcode_shlibpath_var=no
10694 ;;
10695
10696 *)
10697 ld_shlibs=no
10698 ;;
10699 esac
10700
10701 if test x$host_vendor = xsni; then
10702 case $host in
10703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10704 export_dynamic_flag_spec='${wl}-Blargedynsym'
10705 ;;
10706 esac
10707 fi
10708 fi
10709
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10711 $as_echo "$ld_shlibs" >&6; }
10712 test "$ld_shlibs" = no && can_build_shared=no
10713
10714 with_gnu_ld=$with_gnu_ld
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730 #
10731 # Do we need to explicitly link libc?
10732 #
10733 case "x$archive_cmds_need_lc" in
10734 x|xyes)
10735 # Assume -lc should be added
10736 archive_cmds_need_lc=yes
10737
10738 if test "$enable_shared" = yes && test "$GCC" = yes; then
10739 case $archive_cmds in
10740 *'~'*)
10741 # FIXME: we may have to deal with multi-command sequences.
10742 ;;
10743 '$CC '*)
10744 # Test whether the compiler implicitly links with -lc since on some
10745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10746 # to ld, don't add -lc before -lgcc.
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10748 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10749 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 $RM conftest*
10753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10754
10755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10756 (eval $ac_compile) 2>&5
10757 ac_status=$?
10758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10759 test $ac_status = 0; } 2>conftest.err; then
10760 soname=conftest
10761 lib=conftest
10762 libobjs=conftest.$ac_objext
10763 deplibs=
10764 wl=$lt_prog_compiler_wl
10765 pic_flag=$lt_prog_compiler_pic
10766 compiler_flags=-v
10767 linker_flags=-v
10768 verstring=
10769 output_objdir=.
10770 libname=conftest
10771 lt_save_allow_undefined_flag=$allow_undefined_flag
10772 allow_undefined_flag=
10773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10774 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10775 ac_status=$?
10776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10777 test $ac_status = 0; }
10778 then
10779 lt_cv_archive_cmds_need_lc=no
10780 else
10781 lt_cv_archive_cmds_need_lc=yes
10782 fi
10783 allow_undefined_flag=$lt_save_allow_undefined_flag
10784 else
10785 cat conftest.err 1>&5
10786 fi
10787 $RM conftest*
10788
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10791 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10792 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10793 ;;
10794 esac
10795 fi
10796 ;;
10797 esac
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
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
10950
10951
10952
10953
10954
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10956 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10957
10958 if test "$GCC" = yes; then
10959 case $host_os in
10960 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10961 *) lt_awk_arg="/^libraries:/" ;;
10962 esac
10963 case $host_os in
10964 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10965 *) lt_sed_strip_eq="s,=/,/,g" ;;
10966 esac
10967 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10968 case $lt_search_path_spec in
10969 *\;*)
10970 # if the path contains ";" then we assume it to be the separator
10971 # otherwise default to the standard path separator (i.e. ":") - it is
10972 # assumed that no part of a normal pathname contains ";" but that should
10973 # okay in the real world where ";" in dirpaths is itself problematic.
10974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10975 ;;
10976 *)
10977 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10978 ;;
10979 esac
10980 # Ok, now we have the path, separated by spaces, we can step through it
10981 # and add multilib dir if necessary.
10982 lt_tmp_lt_search_path_spec=
10983 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10984 for lt_sys_path in $lt_search_path_spec; do
10985 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10986 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10987 else
10988 test -d "$lt_sys_path" && \
10989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10990 fi
10991 done
10992 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10993 BEGIN {RS=" "; FS="/|\n";} {
10994 lt_foo="";
10995 lt_count=0;
10996 for (lt_i = NF; lt_i > 0; lt_i--) {
10997 if ($lt_i != "" && $lt_i != ".") {
10998 if ($lt_i == "..") {
10999 lt_count++;
11000 } else {
11001 if (lt_count == 0) {
11002 lt_foo="/" $lt_i lt_foo;
11003 } else {
11004 lt_count--;
11005 }
11006 }
11007 }
11008 }
11009 if (lt_foo != "") { lt_freq[lt_foo]++; }
11010 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11011 }'`
11012 # AWK program above erroneously prepends '/' to C:/dos/paths
11013 # for these hosts.
11014 case $host_os in
11015 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11016 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11017 esac
11018 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11019 else
11020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11021 fi
11022 library_names_spec=
11023 libname_spec='lib$name'
11024 soname_spec=
11025 shrext_cmds=".so"
11026 postinstall_cmds=
11027 postuninstall_cmds=
11028 finish_cmds=
11029 finish_eval=
11030 shlibpath_var=
11031 shlibpath_overrides_runpath=unknown
11032 version_type=none
11033 dynamic_linker="$host_os ld.so"
11034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11035 need_lib_prefix=unknown
11036 hardcode_into_libs=no
11037
11038 # when you set need_version to no, make sure it does not cause -set_version
11039 # flags to be left without arguments
11040 need_version=unknown
11041
11042 case $host_os in
11043 aix3*)
11044 version_type=linux
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11046 shlibpath_var=LIBPATH
11047
11048 # AIX 3 has no versioning support, so we append a major version to the name.
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 ;;
11051
11052 aix[4-9]*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 hardcode_into_libs=yes
11057 if test "$host_cpu" = ia64; then
11058 # AIX 5 supports IA64
11059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 else
11062 # With GCC up to 2.95.x, collect2 would create an import file
11063 # for dependence libraries. The import file would start with
11064 # the line `#! .'. This would cause the generated library to
11065 # depend on `.', always an invalid library. This was fixed in
11066 # development snapshots of GCC prior to 3.0.
11067 case $host_os in
11068 aix4 | aix4.[01] | aix4.[01].*)
11069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11070 echo ' yes '
11071 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11072 :
11073 else
11074 can_build_shared=no
11075 fi
11076 ;;
11077 esac
11078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11079 # soname into executable. Probably we can add versioning support to
11080 # collect2, so additional links can be useful in future.
11081 if test "$aix_use_runtimelinking" = yes; then
11082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11083 # instead of lib<name>.a to let people know that these are not
11084 # typical AIX shared libraries.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 else
11087 # We preserve .a as extension for shared libraries through AIX4.2
11088 # and later when we are not doing run time linking.
11089 library_names_spec='${libname}${release}.a $libname.a'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 fi
11092 shlibpath_var=LIBPATH
11093 fi
11094 ;;
11095
11096 amigaos*)
11097 case $host_cpu in
11098 powerpc)
11099 # Since July 2007 AmigaOS4 officially supports .so libraries.
11100 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 ;;
11103 m68k)
11104 library_names_spec='$libname.ixlibrary $libname.a'
11105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11106 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'
11107 ;;
11108 esac
11109 ;;
11110
11111 beos*)
11112 library_names_spec='${libname}${shared_ext}'
11113 dynamic_linker="$host_os ld.so"
11114 shlibpath_var=LIBRARY_PATH
11115 ;;
11116
11117 bsdi[45]*)
11118 version_type=linux
11119 need_version=no
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11126 # the default ld.so.conf also contains /usr/contrib/lib and
11127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11128 # libtool to hard-code these into programs
11129 ;;
11130
11131 cygwin* | mingw* | pw32* | cegcc*)
11132 version_type=windows
11133 shrext_cmds=".dll"
11134 need_version=no
11135 need_lib_prefix=no
11136
11137 case $GCC,$host_os in
11138 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11139 library_names_spec='$libname.dll.a'
11140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11141 postinstall_cmds='base_file=`basename \${file}`~
11142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11143 dldir=$destdir/`dirname \$dlpath`~
11144 test -d \$dldir || mkdir -p \$dldir~
11145 $install_prog $dir/$dlname \$dldir/$dlname~
11146 chmod a+x \$dldir/$dlname~
11147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11149 fi'
11150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11151 dlpath=$dir/\$dldll~
11152 $RM \$dlpath'
11153 shlibpath_overrides_runpath=yes
11154
11155 case $host_os in
11156 cygwin*)
11157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11159
11160 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11161 ;;
11162 mingw* | cegcc*)
11163 # MinGW DLLs use traditional 'lib' prefix
11164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11165 ;;
11166 pw32*)
11167 # pw32 DLLs use 'pw' prefix rather than 'lib'
11168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11169 ;;
11170 esac
11171 ;;
11172
11173 *)
11174 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11175 ;;
11176 esac
11177 dynamic_linker='Win32 ld.exe'
11178 # FIXME: first we should search . and the directory the executable is in
11179 shlibpath_var=PATH
11180 ;;
11181
11182 darwin* | rhapsody*)
11183 dynamic_linker="$host_os dyld"
11184 version_type=darwin
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11188 soname_spec='${libname}${release}${major}$shared_ext'
11189 shlibpath_overrides_runpath=yes
11190 shlibpath_var=DYLD_LIBRARY_PATH
11191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11192
11193 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11194 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11195 ;;
11196
11197 dgux*)
11198 version_type=linux
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 ;;
11205
11206 freebsd* | dragonfly*)
11207 # DragonFly does not have aout. When/if they implement a new
11208 # versioning mechanism, adjust this.
11209 if test -x /usr/bin/objformat; then
11210 objformat=`/usr/bin/objformat`
11211 else
11212 case $host_os in
11213 freebsd[23].*) objformat=aout ;;
11214 *) objformat=elf ;;
11215 esac
11216 fi
11217 version_type=freebsd-$objformat
11218 case $version_type in
11219 freebsd-elf*)
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11221 need_version=no
11222 need_lib_prefix=no
11223 ;;
11224 freebsd-*)
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11226 need_version=yes
11227 ;;
11228 esac
11229 shlibpath_var=LD_LIBRARY_PATH
11230 case $host_os in
11231 freebsd2.*)
11232 shlibpath_overrides_runpath=yes
11233 ;;
11234 freebsd3.[01]* | freebsdelf3.[01]*)
11235 shlibpath_overrides_runpath=yes
11236 hardcode_into_libs=yes
11237 ;;
11238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11240 shlibpath_overrides_runpath=no
11241 hardcode_into_libs=yes
11242 ;;
11243 *) # from 4.6 on, and DragonFly
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 ;;
11247 esac
11248 ;;
11249
11250 gnu*)
11251 version_type=linux
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 hardcode_into_libs=yes
11258 ;;
11259
11260 haiku*)
11261 version_type=linux
11262 need_lib_prefix=no
11263 need_version=no
11264 dynamic_linker="$host_os runtime_loader"
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11269 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11270 hardcode_into_libs=yes
11271 ;;
11272
11273 hpux9* | hpux10* | hpux11*)
11274 # Give a soname corresponding to the major version so that dld.sl refuses to
11275 # link against other versions.
11276 version_type=sunos
11277 need_lib_prefix=no
11278 need_version=no
11279 case $host_cpu in
11280 ia64*)
11281 shrext_cmds='.so'
11282 hardcode_into_libs=yes
11283 dynamic_linker="$host_os dld.so"
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 if test "X$HPUX_IA64_MODE" = X32; then
11289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11290 else
11291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11292 fi
11293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11294 ;;
11295 hppa*64*)
11296 shrext_cmds='.sl'
11297 hardcode_into_libs=yes
11298 dynamic_linker="$host_os dld.sl"
11299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11305 ;;
11306 *)
11307 shrext_cmds='.sl'
11308 dynamic_linker="$host_os dld.sl"
11309 shlibpath_var=SHLIB_PATH
11310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 ;;
11314 esac
11315 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11316 postinstall_cmds='chmod 555 $lib'
11317 # or fails outright, so override atomically:
11318 install_override_mode=555
11319 ;;
11320
11321 interix[3-9]*)
11322 version_type=linux
11323 need_lib_prefix=no
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11331 ;;
11332
11333 irix5* | irix6* | nonstopux*)
11334 case $host_os in
11335 nonstopux*) version_type=nonstopux ;;
11336 *)
11337 if test "$lt_cv_prog_gnu_ld" = yes; then
11338 version_type=linux
11339 else
11340 version_type=irix
11341 fi ;;
11342 esac
11343 need_lib_prefix=no
11344 need_version=no
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11347 case $host_os in
11348 irix5* | nonstopux*)
11349 libsuff= shlibsuff=
11350 ;;
11351 *)
11352 case $LD in # libtool.m4 will add one of these switches to LD
11353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11354 libsuff= shlibsuff= libmagic=32-bit;;
11355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11356 libsuff=32 shlibsuff=N32 libmagic=N32;;
11357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11359 *) libsuff= shlibsuff= libmagic=never-match;;
11360 esac
11361 ;;
11362 esac
11363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11364 shlibpath_overrides_runpath=no
11365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11367 hardcode_into_libs=yes
11368 ;;
11369
11370 # No shared lib support for Linux oldld, aout, or coff.
11371 linux*oldld* | linux*aout* | linux*coff*)
11372 dynamic_linker=no
11373 ;;
11374
11375 # This must be Linux ELF.
11376 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11377 version_type=linux
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 shlibpath_overrides_runpath=no
11385
11386 # Some binutils ld are patched to set DT_RUNPATH
11387 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 lt_cv_shlibpath_overrides_runpath=no
11391 save_LDFLAGS=$LDFLAGS
11392 save_libdir=$libdir
11393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397
11398 int
11399 main ()
11400 {
11401
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11408 lt_cv_shlibpath_overrides_runpath=yes
11409 fi
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LDFLAGS=$save_LDFLAGS
11414 libdir=$save_libdir
11415
11416 fi
11417
11418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11419
11420 # This implies no fast_install, which is unacceptable.
11421 # Some rework will be needed to allow for fast_install
11422 # before this can be enabled.
11423 hardcode_into_libs=yes
11424
11425 # Append ld.so.conf contents to the search path
11426 if test -f /etc/ld.so.conf; then
11427 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' ' '`
11428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11429 fi
11430
11431 # We used to test for /lib/ld.so.1 and disable shared libraries on
11432 # powerpc, because MkLinux only supported shared libraries with the
11433 # GNU dynamic linker. Since this was broken with cross compilers,
11434 # most powerpc-linux boxes support dynamic linking these days and
11435 # people can always --disable-shared, the test was removed, and we
11436 # assume the GNU/Linux dynamic linker is in use.
11437 dynamic_linker='GNU/Linux ld.so'
11438 ;;
11439
11440 netbsd*)
11441 version_type=sunos
11442 need_lib_prefix=no
11443 need_version=no
11444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447 dynamic_linker='NetBSD (a.out) ld.so'
11448 else
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 dynamic_linker='NetBSD ld.elf_so'
11452 fi
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 hardcode_into_libs=yes
11456 ;;
11457
11458 newsos6)
11459 version_type=linux
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=yes
11463 ;;
11464
11465 *nto* | *qnx*)
11466 version_type=qnx
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 shlibpath_overrides_runpath=no
11473 hardcode_into_libs=yes
11474 dynamic_linker='ldqnx.so'
11475 ;;
11476
11477 openbsd*)
11478 version_type=sunos
11479 sys_lib_dlsearch_path_spec="/usr/lib"
11480 need_lib_prefix=no
11481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11482 case $host_os in
11483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11484 *) need_version=no ;;
11485 esac
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11490 case $host_os in
11491 openbsd2.[89] | openbsd2.[89].*)
11492 shlibpath_overrides_runpath=no
11493 ;;
11494 *)
11495 shlibpath_overrides_runpath=yes
11496 ;;
11497 esac
11498 else
11499 shlibpath_overrides_runpath=yes
11500 fi
11501 ;;
11502
11503 os2*)
11504 libname_spec='$name'
11505 shrext_cmds=".dll"
11506 need_lib_prefix=no
11507 library_names_spec='$libname${shared_ext} $libname.a'
11508 dynamic_linker='OS/2 ld.exe'
11509 shlibpath_var=LIBPATH
11510 ;;
11511
11512 osf3* | osf4* | osf5*)
11513 version_type=osf
11514 need_lib_prefix=no
11515 need_version=no
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11521 ;;
11522
11523 rdos*)
11524 dynamic_linker=no
11525 ;;
11526
11527 solaris*)
11528 version_type=linux
11529 need_lib_prefix=no
11530 need_version=no
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11536 # ldd complains unless libraries are executable
11537 postinstall_cmds='chmod +x $lib'
11538 ;;
11539
11540 sunos4*)
11541 version_type=sunos
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=yes
11546 if test "$with_gnu_ld" = yes; then
11547 need_lib_prefix=no
11548 fi
11549 need_version=yes
11550 ;;
11551
11552 sysv4 | sysv4.3*)
11553 version_type=linux
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 case $host_vendor in
11558 sni)
11559 shlibpath_overrides_runpath=no
11560 need_lib_prefix=no
11561 runpath_var=LD_RUN_PATH
11562 ;;
11563 siemens)
11564 need_lib_prefix=no
11565 ;;
11566 motorola)
11567 need_lib_prefix=no
11568 need_version=no
11569 shlibpath_overrides_runpath=no
11570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11571 ;;
11572 esac
11573 ;;
11574
11575 sysv4*MP*)
11576 if test -d /usr/nec ;then
11577 version_type=linux
11578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11579 soname_spec='$libname${shared_ext}.$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 fi
11582 ;;
11583
11584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11585 version_type=freebsd-elf
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=yes
11592 hardcode_into_libs=yes
11593 if test "$with_gnu_ld" = yes; then
11594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11595 else
11596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11597 case $host_os in
11598 sco3.2v5*)
11599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11600 ;;
11601 esac
11602 fi
11603 sys_lib_dlsearch_path_spec='/usr/lib'
11604 ;;
11605
11606 tpf*)
11607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11608 version_type=linux
11609 need_lib_prefix=no
11610 need_version=no
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=no
11614 hardcode_into_libs=yes
11615 ;;
11616
11617 uts4*)
11618 version_type=linux
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 ;;
11623
11624 *)
11625 dynamic_linker=no
11626 ;;
11627 esac
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11629 $as_echo "$dynamic_linker" >&6; }
11630 test "$dynamic_linker" = no && can_build_shared=no
11631
11632 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11633 if test "$GCC" = yes; then
11634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11635 fi
11636
11637 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11638 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11639 fi
11640 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11641 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11642 fi
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11736 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11737 hardcode_action=
11738 if test -n "$hardcode_libdir_flag_spec" ||
11739 test -n "$runpath_var" ||
11740 test "X$hardcode_automatic" = "Xyes" ; then
11741
11742 # We can hardcode non-existent directories.
11743 if test "$hardcode_direct" != no &&
11744 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11745 # have to relink, otherwise we might link with an installed library
11746 # when we should be linking with a yet-to-be-installed one
11747 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11748 test "$hardcode_minus_L" != no; then
11749 # Linking always hardcodes the temporary library directory.
11750 hardcode_action=relink
11751 else
11752 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11753 hardcode_action=immediate
11754 fi
11755 else
11756 # We cannot hardcode anything, or else we can only hardcode existing
11757 # directories.
11758 hardcode_action=unsupported
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11761 $as_echo "$hardcode_action" >&6; }
11762
11763 if test "$hardcode_action" = relink ||
11764 test "$inherit_rpath" = yes; then
11765 # Fast installation is not supported
11766 enable_fast_install=no
11767 elif test "$shlibpath_overrides_runpath" = yes ||
11768 test "$enable_shared" = no; then
11769 # Fast installation is not necessary
11770 enable_fast_install=needless
11771 fi
11772
11773
11774
11775
11776
11777
11778 if test "x$enable_dlopen" != xyes; then
11779 enable_dlopen=unknown
11780 enable_dlopen_self=unknown
11781 enable_dlopen_self_static=unknown
11782 else
11783 lt_cv_dlopen=no
11784 lt_cv_dlopen_libs=
11785
11786 case $host_os in
11787 beos*)
11788 lt_cv_dlopen="load_add_on"
11789 lt_cv_dlopen_libs=
11790 lt_cv_dlopen_self=yes
11791 ;;
11792
11793 mingw* | pw32* | cegcc*)
11794 lt_cv_dlopen="LoadLibrary"
11795 lt_cv_dlopen_libs=
11796 ;;
11797
11798 cygwin*)
11799 lt_cv_dlopen="dlopen"
11800 lt_cv_dlopen_libs=
11801 ;;
11802
11803 darwin*)
11804 # if libdl is installed we need to link against it
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-ldl $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char dlopen ();
11822 int
11823 main ()
11824 {
11825 return dlopen ();
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_lib_dl_dlopen=yes
11832 else
11833 ac_cv_lib_dl_dlopen=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11841 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11843 else
11844
11845 lt_cv_dlopen="dyld"
11846 lt_cv_dlopen_libs=
11847 lt_cv_dlopen_self=yes
11848
11849 fi
11850
11851 ;;
11852
11853 *)
11854 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11855 if test "x$ac_cv_func_shl_load" = x""yes; then :
11856 lt_cv_dlopen="shl_load"
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11859 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-ldld $LIBS"
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char shl_load ();
11875 int
11876 main ()
11877 {
11878 return shl_load ();
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 if ac_fn_c_try_link "$LINENO"; then :
11884 ac_cv_lib_dld_shl_load=yes
11885 else
11886 ac_cv_lib_dld_shl_load=no
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11891 fi
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11893 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11894 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11895 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11896 else
11897 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11898 if test "x$ac_cv_func_dlopen" = x""yes; then :
11899 lt_cv_dlopen="dlopen"
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-ldl $LIBS"
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910
11911 /* Override any GCC internal prototype to avoid an error.
11912 Use char because int might match the return type of a GCC
11913 builtin and then its argument prototype would still apply. */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 char dlopen ();
11918 int
11919 main ()
11920 {
11921 return dlopen ();
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 if ac_fn_c_try_link "$LINENO"; then :
11927 ac_cv_lib_dl_dlopen=yes
11928 else
11929 ac_cv_lib_dl_dlopen=no
11930 fi
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11937 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lsvld $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char dlopen ();
11957 int
11958 main ()
11959 {
11960 return dlopen ();
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_lib_svld_dlopen=yes
11967 else
11968 ac_cv_lib_svld_dlopen=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11975 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11976 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11980 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11981 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-ldld $LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char dld_link ();
11996 int
11997 main ()
11998 {
11999 return dld_link ();
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_dld_dld_link=yes
12006 else
12007 ac_cv_lib_dld_dld_link=no
12008 fi
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12014 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12015 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12016 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12017 fi
12018
12019
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028
12029 fi
12030
12031
12032 fi
12033
12034 ;;
12035 esac
12036
12037 if test "x$lt_cv_dlopen" != xno; then
12038 enable_dlopen=yes
12039 else
12040 enable_dlopen=no
12041 fi
12042
12043 case $lt_cv_dlopen in
12044 dlopen)
12045 save_CPPFLAGS="$CPPFLAGS"
12046 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12047
12048 save_LDFLAGS="$LDFLAGS"
12049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12050
12051 save_LIBS="$LIBS"
12052 LIBS="$lt_cv_dlopen_libs $LIBS"
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12055 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12056 if test "${lt_cv_dlopen_self+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test "$cross_compiling" = yes; then :
12060 lt_cv_dlopen_self=cross
12061 else
12062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12063 lt_status=$lt_dlunknown
12064 cat > conftest.$ac_ext <<_LT_EOF
12065 #line 12065 "configure"
12066 #include "confdefs.h"
12067
12068 #if HAVE_DLFCN_H
12069 #include <dlfcn.h>
12070 #endif
12071
12072 #include <stdio.h>
12073
12074 #ifdef RTLD_GLOBAL
12075 # define LT_DLGLOBAL RTLD_GLOBAL
12076 #else
12077 # ifdef DL_GLOBAL
12078 # define LT_DLGLOBAL DL_GLOBAL
12079 # else
12080 # define LT_DLGLOBAL 0
12081 # endif
12082 #endif
12083
12084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12085 find out it does not work in some platform. */
12086 #ifndef LT_DLLAZY_OR_NOW
12087 # ifdef RTLD_LAZY
12088 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12089 # else
12090 # ifdef DL_LAZY
12091 # define LT_DLLAZY_OR_NOW DL_LAZY
12092 # else
12093 # ifdef RTLD_NOW
12094 # define LT_DLLAZY_OR_NOW RTLD_NOW
12095 # else
12096 # ifdef DL_NOW
12097 # define LT_DLLAZY_OR_NOW DL_NOW
12098 # else
12099 # define LT_DLLAZY_OR_NOW 0
12100 # endif
12101 # endif
12102 # endif
12103 # endif
12104 #endif
12105
12106 /* When -fvisbility=hidden is used, assume the code has been annotated
12107 correspondingly for the symbols needed. */
12108 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12109 void fnord () __attribute__((visibility("default")));
12110 #endif
12111
12112 void fnord () { int i=42; }
12113 int main ()
12114 {
12115 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12116 int status = $lt_dlunknown;
12117
12118 if (self)
12119 {
12120 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12121 else
12122 {
12123 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12124 else puts (dlerror ());
12125 }
12126 /* dlclose (self); */
12127 }
12128 else
12129 puts (dlerror ());
12130
12131 return status;
12132 }
12133 _LT_EOF
12134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12135 (eval $ac_link) 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12139 (./conftest; exit; ) >&5 2>/dev/null
12140 lt_status=$?
12141 case x$lt_status in
12142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12144 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12145 esac
12146 else :
12147 # compilation failed
12148 lt_cv_dlopen_self=no
12149 fi
12150 fi
12151 rm -fr conftest*
12152
12153
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12156 $as_echo "$lt_cv_dlopen_self" >&6; }
12157
12158 if test "x$lt_cv_dlopen_self" = xyes; then
12159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12161 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12162 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test "$cross_compiling" = yes; then :
12166 lt_cv_dlopen_self_static=cross
12167 else
12168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12169 lt_status=$lt_dlunknown
12170 cat > conftest.$ac_ext <<_LT_EOF
12171 #line 12171 "configure"
12172 #include "confdefs.h"
12173
12174 #if HAVE_DLFCN_H
12175 #include <dlfcn.h>
12176 #endif
12177
12178 #include <stdio.h>
12179
12180 #ifdef RTLD_GLOBAL
12181 # define LT_DLGLOBAL RTLD_GLOBAL
12182 #else
12183 # ifdef DL_GLOBAL
12184 # define LT_DLGLOBAL DL_GLOBAL
12185 # else
12186 # define LT_DLGLOBAL 0
12187 # endif
12188 #endif
12189
12190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12191 find out it does not work in some platform. */
12192 #ifndef LT_DLLAZY_OR_NOW
12193 # ifdef RTLD_LAZY
12194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12195 # else
12196 # ifdef DL_LAZY
12197 # define LT_DLLAZY_OR_NOW DL_LAZY
12198 # else
12199 # ifdef RTLD_NOW
12200 # define LT_DLLAZY_OR_NOW RTLD_NOW
12201 # else
12202 # ifdef DL_NOW
12203 # define LT_DLLAZY_OR_NOW DL_NOW
12204 # else
12205 # define LT_DLLAZY_OR_NOW 0
12206 # endif
12207 # endif
12208 # endif
12209 # endif
12210 #endif
12211
12212 /* When -fvisbility=hidden is used, assume the code has been annotated
12213 correspondingly for the symbols needed. */
12214 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12215 void fnord () __attribute__((visibility("default")));
12216 #endif
12217
12218 void fnord () { int i=42; }
12219 int main ()
12220 {
12221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12222 int status = $lt_dlunknown;
12223
12224 if (self)
12225 {
12226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12227 else
12228 {
12229 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12230 else puts (dlerror ());
12231 }
12232 /* dlclose (self); */
12233 }
12234 else
12235 puts (dlerror ());
12236
12237 return status;
12238 }
12239 _LT_EOF
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12241 (eval $ac_link) 2>&5
12242 ac_status=$?
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12245 (./conftest; exit; ) >&5 2>/dev/null
12246 lt_status=$?
12247 case x$lt_status in
12248 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12249 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12250 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12251 esac
12252 else :
12253 # compilation failed
12254 lt_cv_dlopen_self_static=no
12255 fi
12256 fi
12257 rm -fr conftest*
12258
12259
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12262 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12263 fi
12264
12265 CPPFLAGS="$save_CPPFLAGS"
12266 LDFLAGS="$save_LDFLAGS"
12267 LIBS="$save_LIBS"
12268 ;;
12269 esac
12270
12271 case $lt_cv_dlopen_self in
12272 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12273 *) enable_dlopen_self=unknown ;;
12274 esac
12275
12276 case $lt_cv_dlopen_self_static in
12277 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12278 *) enable_dlopen_self_static=unknown ;;
12279 esac
12280 fi
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298 striplib=
12299 old_striplib=
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12301 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12302 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12304 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306 $as_echo "yes" >&6; }
12307 else
12308 # FIXME - insert some real tests, host_os isn't really good enough
12309 case $host_os in
12310 darwin*)
12311 if test -n "$STRIP" ; then
12312 striplib="$STRIP -x"
12313 old_striplib="$STRIP -S"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320 ;;
12321 *)
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 ;;
12325 esac
12326 fi
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 # Report which library types will actually be built
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12341 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12343 $as_echo "$can_build_shared" >&6; }
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12346 $as_echo_n "checking whether to build shared libraries... " >&6; }
12347 test "$can_build_shared" = "no" && enable_shared=no
12348
12349 # On AIX, shared libraries and static libraries use the same namespace, and
12350 # are all built from PIC.
12351 case $host_os in
12352 aix3*)
12353 test "$enable_shared" = yes && enable_static=no
12354 if test -n "$RANLIB"; then
12355 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12356 postinstall_cmds='$RANLIB $lib'
12357 fi
12358 ;;
12359
12360 aix[4-9]*)
12361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12362 test "$enable_shared" = yes && enable_static=no
12363 fi
12364 ;;
12365 esac
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12367 $as_echo "$enable_shared" >&6; }
12368
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12370 $as_echo_n "checking whether to build static libraries... " >&6; }
12371 # Make sure either enable_shared or enable_static is yes.
12372 test "$enable_shared" = yes || enable_static=yes
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12374 $as_echo "$enable_static" >&6; }
12375
12376
12377
12378
12379 fi
12380 ac_ext=c
12381 ac_cpp='$CPP $CPPFLAGS'
12382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385
12386 CC="$lt_save_CC"
12387
12388 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12389 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12390 (test "X$CXX" != "Xg++"))) ; then
12391 ac_ext=cpp
12392 ac_cpp='$CXXCPP $CPPFLAGS'
12393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12397 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12398 if test -z "$CXXCPP"; then
12399 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 # Double quotes because CXXCPP needs to be expanded
12403 for CXXCPP in "$CXX -E" "/lib/cpp"
12404 do
12405 ac_preproc_ok=false
12406 for ac_cxx_preproc_warn_flag in '' yes
12407 do
12408 # Use a header file that comes with gcc, so configuring glibc
12409 # with a fresh cross-compiler works.
12410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12411 # <limits.h> exists even on freestanding compilers.
12412 # On the NeXT, cc -E runs the code through the compiler's parser,
12413 # not just through cpp. "Syntax error" is here to catch this case.
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416 #ifdef __STDC__
12417 # include <limits.h>
12418 #else
12419 # include <assert.h>
12420 #endif
12421 Syntax error
12422 _ACEOF
12423 if ac_fn_cxx_try_cpp "$LINENO"; then :
12424
12425 else
12426 # Broken: fails on valid input.
12427 continue
12428 fi
12429 rm -f conftest.err conftest.$ac_ext
12430
12431 # OK, works on sane cases. Now check whether nonexistent headers
12432 # can be detected and how.
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435 #include <ac_nonexistent.h>
12436 _ACEOF
12437 if ac_fn_cxx_try_cpp "$LINENO"; then :
12438 # Broken: success on invalid input.
12439 continue
12440 else
12441 # Passes both tests.
12442 ac_preproc_ok=:
12443 break
12444 fi
12445 rm -f conftest.err conftest.$ac_ext
12446
12447 done
12448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12449 rm -f conftest.err conftest.$ac_ext
12450 if $ac_preproc_ok; then :
12451 break
12452 fi
12453
12454 done
12455 ac_cv_prog_CXXCPP=$CXXCPP
12456
12457 fi
12458 CXXCPP=$ac_cv_prog_CXXCPP
12459 else
12460 ac_cv_prog_CXXCPP=$CXXCPP
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12463 $as_echo "$CXXCPP" >&6; }
12464 ac_preproc_ok=false
12465 for ac_cxx_preproc_warn_flag in '' yes
12466 do
12467 # Use a header file that comes with gcc, so configuring glibc
12468 # with a fresh cross-compiler works.
12469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 # <limits.h> exists even on freestanding compilers.
12471 # On the NeXT, cc -E runs the code through the compiler's parser,
12472 # not just through cpp. "Syntax error" is here to catch this case.
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12480 Syntax error
12481 _ACEOF
12482 if ac_fn_cxx_try_cpp "$LINENO"; then :
12483
12484 else
12485 # Broken: fails on valid input.
12486 continue
12487 fi
12488 rm -f conftest.err conftest.$ac_ext
12489
12490 # OK, works on sane cases. Now check whether nonexistent headers
12491 # can be detected and how.
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #include <ac_nonexistent.h>
12495 _ACEOF
12496 if ac_fn_cxx_try_cpp "$LINENO"; then :
12497 # Broken: success on invalid input.
12498 continue
12499 else
12500 # Passes both tests.
12501 ac_preproc_ok=:
12502 break
12503 fi
12504 rm -f conftest.err conftest.$ac_ext
12505
12506 done
12507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12508 rm -f conftest.err conftest.$ac_ext
12509 if $ac_preproc_ok; then :
12510
12511 else
12512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12514 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12515 See \`config.log' for more details." "$LINENO" 5; }
12516 fi
12517
12518 ac_ext=c
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523
12524 else
12525 _lt_caught_CXX_error=yes
12526 fi
12527
12528 ac_ext=cpp
12529 ac_cpp='$CXXCPP $CPPFLAGS'
12530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12533
12534 archive_cmds_need_lc_CXX=no
12535 allow_undefined_flag_CXX=
12536 always_export_symbols_CXX=no
12537 archive_expsym_cmds_CXX=
12538 compiler_needs_object_CXX=no
12539 export_dynamic_flag_spec_CXX=
12540 hardcode_direct_CXX=no
12541 hardcode_direct_absolute_CXX=no
12542 hardcode_libdir_flag_spec_CXX=
12543 hardcode_libdir_flag_spec_ld_CXX=
12544 hardcode_libdir_separator_CXX=
12545 hardcode_minus_L_CXX=no
12546 hardcode_shlibpath_var_CXX=unsupported
12547 hardcode_automatic_CXX=no
12548 inherit_rpath_CXX=no
12549 module_cmds_CXX=
12550 module_expsym_cmds_CXX=
12551 link_all_deplibs_CXX=unknown
12552 old_archive_cmds_CXX=$old_archive_cmds
12553 reload_flag_CXX=$reload_flag
12554 reload_cmds_CXX=$reload_cmds
12555 no_undefined_flag_CXX=
12556 whole_archive_flag_spec_CXX=
12557 enable_shared_with_static_runtimes_CXX=no
12558
12559 # Source file extension for C++ test sources.
12560 ac_ext=cpp
12561
12562 # Object file extension for compiled C++ test sources.
12563 objext=o
12564 objext_CXX=$objext
12565
12566 # No sense in running all these tests if we already determined that
12567 # the CXX compiler isn't working. Some variables (like enable_shared)
12568 # are currently assumed to apply to all compilers on this platform,
12569 # and will be corrupted by setting them based on a non-working compiler.
12570 if test "$_lt_caught_CXX_error" != yes; then
12571 # Code to be used in simple compile tests
12572 lt_simple_compile_test_code="int some_variable = 0;"
12573
12574 # Code to be used in simple link tests
12575 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12576
12577 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12578
12579
12580
12581
12582
12583
12584 # If no C compiler was specified, use CC.
12585 LTCC=${LTCC-"$CC"}
12586
12587 # If no C compiler flags were specified, use CFLAGS.
12588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12589
12590 # Allow CC to be a program name with arguments.
12591 compiler=$CC
12592
12593
12594 # save warnings/boilerplate of simple test code
12595 ac_outfile=conftest.$ac_objext
12596 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12598 _lt_compiler_boilerplate=`cat conftest.err`
12599 $RM conftest*
12600
12601 ac_outfile=conftest.$ac_objext
12602 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_linker_boilerplate=`cat conftest.err`
12605 $RM -r conftest*
12606
12607
12608 # Allow CC to be a program name with arguments.
12609 lt_save_CC=$CC
12610 lt_save_LD=$LD
12611 lt_save_GCC=$GCC
12612 GCC=$GXX
12613 lt_save_with_gnu_ld=$with_gnu_ld
12614 lt_save_path_LD=$lt_cv_path_LD
12615 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12616 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12617 else
12618 $as_unset lt_cv_prog_gnu_ld
12619 fi
12620 if test -n "${lt_cv_path_LDCXX+set}"; then
12621 lt_cv_path_LD=$lt_cv_path_LDCXX
12622 else
12623 $as_unset lt_cv_path_LD
12624 fi
12625 test -z "${LDCXX+set}" || LD=$LDCXX
12626 CC=${CXX-"c++"}
12627 compiler=$CC
12628 compiler_CXX=$CC
12629 for cc_temp in $compiler""; do
12630 case $cc_temp in
12631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12633 \-*) ;;
12634 *) break;;
12635 esac
12636 done
12637 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12638
12639
12640 if test -n "$compiler"; then
12641 # We don't want -fno-exception when compiling C++ code, so set the
12642 # no_builtin_flag separately
12643 if test "$GXX" = yes; then
12644 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12645 else
12646 lt_prog_compiler_no_builtin_flag_CXX=
12647 fi
12648
12649 if test "$GXX" = yes; then
12650 # Set up default GNU C++ configuration
12651
12652
12653
12654 # Check whether --with-gnu-ld was given.
12655 if test "${with_gnu_ld+set}" = set; then :
12656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12657 else
12658 with_gnu_ld=no
12659 fi
12660
12661 ac_prog=ld
12662 if test "$GCC" = yes; then
12663 # Check if gcc -print-prog-name=ld gives a path.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12665 $as_echo_n "checking for ld used by $CC... " >&6; }
12666 case $host in
12667 *-*-mingw*)
12668 # gcc leaves a trailing carriage return which upsets mingw
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670 *)
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672 esac
12673 case $ac_prog in
12674 # Accept absolute paths.
12675 [\\/]* | ?:[\\/]*)
12676 re_direlt='/[^/][^/]*/\.\./'
12677 # Canonicalize the pathname of ld
12678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12681 done
12682 test -z "$LD" && LD="$ac_prog"
12683 ;;
12684 "")
12685 # If it fails, then pretend we aren't using GCC.
12686 ac_prog=ld
12687 ;;
12688 *)
12689 # If it is relative, then search for the first ld in PATH.
12690 with_gnu_ld=unknown
12691 ;;
12692 esac
12693 elif test "$with_gnu_ld" = yes; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12695 $as_echo_n "checking for GNU ld... " >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12698 $as_echo_n "checking for non-GNU ld... " >&6; }
12699 fi
12700 if test "${lt_cv_path_LD+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 if test -z "$LD"; then
12704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705 for ac_dir in $PATH; do
12706 IFS="$lt_save_ifs"
12707 test -z "$ac_dir" && ac_dir=.
12708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709 lt_cv_path_LD="$ac_dir/$ac_prog"
12710 # Check to see if the program is GNU ld. I'd rather use --version,
12711 # but apparently some variants of GNU ld only accept -v.
12712 # Break only if it was the GNU/non-GNU ld that we prefer.
12713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714 *GNU* | *'with BFD'*)
12715 test "$with_gnu_ld" != no && break
12716 ;;
12717 *)
12718 test "$with_gnu_ld" != yes && break
12719 ;;
12720 esac
12721 fi
12722 done
12723 IFS="$lt_save_ifs"
12724 else
12725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12726 fi
12727 fi
12728
12729 LD="$lt_cv_path_LD"
12730 if test -n "$LD"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12732 $as_echo "$LD" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746 lt_cv_prog_gnu_ld=yes
12747 ;;
12748 *)
12749 lt_cv_prog_gnu_ld=no
12750 ;;
12751 esac
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12756
12757
12758
12759
12760
12761
12762
12763 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12764 # archiving commands below assume that GNU ld is being used.
12765 if test "$with_gnu_ld" = yes; then
12766 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12767 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12768
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12771
12772 # If archive_cmds runs LD, not CC, wlarc should be empty
12773 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12774 # investigate it a little bit more. (MM)
12775 wlarc='${wl}'
12776
12777 # ancient GNU ld didn't support --whole-archive et. al.
12778 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12779 $GREP 'no-whole-archive' > /dev/null; then
12780 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12781 else
12782 whole_archive_flag_spec_CXX=
12783 fi
12784 else
12785 with_gnu_ld=no
12786 wlarc=
12787
12788 # A generic and very simple default shared library creation
12789 # command for GNU C++ for the case where it uses the native
12790 # linker, instead of GNU ld. If possible, this setting should
12791 # overridden to take advantage of the native linker features on
12792 # the platform it is being used on.
12793 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12794 fi
12795
12796 # Commands to make compiler produce verbose output that lists
12797 # what "hidden" libraries, object files and flags are used when
12798 # linking a shared library.
12799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12800
12801 else
12802 GXX=no
12803 with_gnu_ld=no
12804 wlarc=
12805 fi
12806
12807 # PORTME: fill in a description of your system's C++ link characteristics
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12810 ld_shlibs_CXX=yes
12811 case $host_os in
12812 aix3*)
12813 # FIXME: insert proper C++ library support
12814 ld_shlibs_CXX=no
12815 ;;
12816 aix[4-9]*)
12817 if test "$host_cpu" = ia64; then
12818 # On IA64, the linker does run time linking by default, so we don't
12819 # have to do anything special.
12820 aix_use_runtimelinking=no
12821 exp_sym_flag='-Bexport'
12822 no_entry_flag=""
12823 else
12824 aix_use_runtimelinking=no
12825
12826 # Test if we are trying to use run time linking or normal
12827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12828 # need to do runtime linking.
12829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12830 for ld_flag in $LDFLAGS; do
12831 case $ld_flag in
12832 *-brtl*)
12833 aix_use_runtimelinking=yes
12834 break
12835 ;;
12836 esac
12837 done
12838 ;;
12839 esac
12840
12841 exp_sym_flag='-bexport'
12842 no_entry_flag='-bnoentry'
12843 fi
12844
12845 # When large executables or shared objects are built, AIX ld can
12846 # have problems creating the table of contents. If linking a library
12847 # or program results in "error TOC overflow" add -mminimal-toc to
12848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12850
12851 archive_cmds_CXX=''
12852 hardcode_direct_CXX=yes
12853 hardcode_direct_absolute_CXX=yes
12854 hardcode_libdir_separator_CXX=':'
12855 link_all_deplibs_CXX=yes
12856 file_list_spec_CXX='${wl}-f,'
12857
12858 if test "$GXX" = yes; then
12859 case $host_os in aix4.[012]|aix4.[012].*)
12860 # We only want to do this on AIX 4.2 and lower, the check
12861 # below for broken collect2 doesn't work under 4.3+
12862 collect2name=`${CC} -print-prog-name=collect2`
12863 if test -f "$collect2name" &&
12864 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12865 then
12866 # We have reworked collect2
12867 :
12868 else
12869 # We have old collect2
12870 hardcode_direct_CXX=unsupported
12871 # It fails to find uninstalled libraries when the uninstalled
12872 # path is not listed in the libpath. Setting hardcode_minus_L
12873 # to unsupported forces relinking
12874 hardcode_minus_L_CXX=yes
12875 hardcode_libdir_flag_spec_CXX='-L$libdir'
12876 hardcode_libdir_separator_CXX=
12877 fi
12878 esac
12879 shared_flag='-shared'
12880 if test "$aix_use_runtimelinking" = yes; then
12881 shared_flag="$shared_flag "'${wl}-G'
12882 fi
12883 else
12884 # not using gcc
12885 if test "$host_cpu" = ia64; then
12886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12887 # chokes on -Wl,-G. The following line is correct:
12888 shared_flag='-G'
12889 else
12890 if test "$aix_use_runtimelinking" = yes; then
12891 shared_flag='${wl}-G'
12892 else
12893 shared_flag='${wl}-bM:SRE'
12894 fi
12895 fi
12896 fi
12897
12898 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12899 # It seems that -bexpall does not export symbols beginning with
12900 # underscore (_), so it is better to generate a list of symbols to
12901 # export.
12902 always_export_symbols_CXX=yes
12903 if test "$aix_use_runtimelinking" = yes; then
12904 # Warning - without using the other runtime loading flags (-brtl),
12905 # -berok will link without error, but may produce a broken library.
12906 allow_undefined_flag_CXX='-berok'
12907 # Determine the default libpath from the value encoded in an empty
12908 # executable.
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911
12912 int
12913 main ()
12914 {
12915
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_cxx_try_link "$LINENO"; then :
12921
12922 lt_aix_libpath_sed='
12923 /Import File Strings/,/^$/ {
12924 /^0/ {
12925 s/^0 *\(.*\)$/\1/
12926 p
12927 }
12928 }'
12929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930 # Check for a 64-bit object if we didn't find anything.
12931 if test -z "$aix_libpath"; then
12932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12933 fi
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12938
12939 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12940
12941 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"
12942 else
12943 if test "$host_cpu" = ia64; then
12944 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12945 allow_undefined_flag_CXX="-z nodefs"
12946 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"
12947 else
12948 # Determine the default libpath from the value encoded in an
12949 # empty executable.
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952
12953 int
12954 main ()
12955 {
12956
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 if ac_fn_cxx_try_link "$LINENO"; then :
12962
12963 lt_aix_libpath_sed='
12964 /Import File Strings/,/^$/ {
12965 /^0/ {
12966 s/^0 *\(.*\)$/\1/
12967 p
12968 }
12969 }'
12970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12971 # Check for a 64-bit object if we didn't find anything.
12972 if test -z "$aix_libpath"; then
12973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12974 fi
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12979
12980 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12981 # Warning - without using the other run time loading flags,
12982 # -berok will link without error, but may produce a broken library.
12983 no_undefined_flag_CXX=' ${wl}-bernotok'
12984 allow_undefined_flag_CXX=' ${wl}-berok'
12985 if test "$with_gnu_ld" = yes; then
12986 # We only use this code for GNU lds that support --whole-archive.
12987 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12988 else
12989 # Exported symbols can be pulled into shared objects from archives
12990 whole_archive_flag_spec_CXX='$convenience'
12991 fi
12992 archive_cmds_need_lc_CXX=yes
12993 # This is similar to how AIX traditionally builds its shared
12994 # libraries.
12995 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'
12996 fi
12997 fi
12998 ;;
12999
13000 beos*)
13001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13002 allow_undefined_flag_CXX=unsupported
13003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13004 # support --undefined. This deserves some investigation. FIXME
13005 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006 else
13007 ld_shlibs_CXX=no
13008 fi
13009 ;;
13010
13011 chorus*)
13012 case $cc_basename in
13013 *)
13014 # FIXME: insert proper C++ library support
13015 ld_shlibs_CXX=no
13016 ;;
13017 esac
13018 ;;
13019
13020 cygwin* | mingw* | pw32* | cegcc*)
13021 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13022 # as there is no search path for DLLs.
13023 hardcode_libdir_flag_spec_CXX='-L$libdir'
13024 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13025 allow_undefined_flag_CXX=unsupported
13026 always_export_symbols_CXX=no
13027 enable_shared_with_static_runtimes_CXX=yes
13028
13029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13030 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'
13031 # If the export-symbols file already is a .def file (1st line
13032 # is EXPORTS), use it as is; otherwise, prepend...
13033 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13034 cp $export_symbols $output_objdir/$soname.def;
13035 else
13036 echo EXPORTS > $output_objdir/$soname.def;
13037 cat $export_symbols >> $output_objdir/$soname.def;
13038 fi~
13039 $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'
13040 else
13041 ld_shlibs_CXX=no
13042 fi
13043 ;;
13044 darwin* | rhapsody*)
13045
13046
13047 archive_cmds_need_lc_CXX=no
13048 hardcode_direct_CXX=no
13049 hardcode_automatic_CXX=yes
13050 hardcode_shlibpath_var_CXX=unsupported
13051 if test "$lt_cv_ld_force_load" = "yes"; then
13052 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\"`'
13053 else
13054 whole_archive_flag_spec_CXX=''
13055 fi
13056 link_all_deplibs_CXX=yes
13057 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13058 case $cc_basename in
13059 ifort*) _lt_dar_can_shared=yes ;;
13060 *) _lt_dar_can_shared=$GCC ;;
13061 esac
13062 if test "$_lt_dar_can_shared" = "yes"; then
13063 output_verbose_link_cmd=func_echo_all
13064 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}"
13065 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13066 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}"
13067 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}"
13068 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13069 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}"
13070 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}"
13071 fi
13072
13073 else
13074 ld_shlibs_CXX=no
13075 fi
13076
13077 ;;
13078
13079 dgux*)
13080 case $cc_basename in
13081 ec++*)
13082 # FIXME: insert proper C++ library support
13083 ld_shlibs_CXX=no
13084 ;;
13085 ghcx*)
13086 # Green Hills C++ Compiler
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 *)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 esac
13095 ;;
13096
13097 freebsd2.*)
13098 # C++ shared libraries reported to be fairly broken before
13099 # switch to ELF
13100 ld_shlibs_CXX=no
13101 ;;
13102
13103 freebsd-elf*)
13104 archive_cmds_need_lc_CXX=no
13105 ;;
13106
13107 freebsd* | dragonfly*)
13108 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13109 # conventions
13110 ld_shlibs_CXX=yes
13111 ;;
13112
13113 gnu*)
13114 ;;
13115
13116 haiku*)
13117 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 link_all_deplibs_CXX=yes
13119 ;;
13120
13121 hpux9*)
13122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13123 hardcode_libdir_separator_CXX=:
13124 export_dynamic_flag_spec_CXX='${wl}-E'
13125 hardcode_direct_CXX=yes
13126 hardcode_minus_L_CXX=yes # Not in the search PATH,
13127 # but as the default
13128 # location of the library.
13129
13130 case $cc_basename in
13131 CC*)
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13134 ;;
13135 aCC*)
13136 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'
13137 # Commands to make compiler produce verbose output that lists
13138 # what "hidden" libraries, object files and flags are used when
13139 # linking a shared library.
13140 #
13141 # There doesn't appear to be a way to prevent this compiler from
13142 # explicitly linking system object files so we need to strip them
13143 # from the output so that they don't get included in the library
13144 # dependencies.
13145 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"'
13146 ;;
13147 *)
13148 if test "$GXX" = yes; then
13149 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'
13150 else
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 fi
13154 ;;
13155 esac
13156 ;;
13157
13158 hpux10*|hpux11*)
13159 if test $with_gnu_ld = no; then
13160 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13161 hardcode_libdir_separator_CXX=:
13162
13163 case $host_cpu in
13164 hppa*64*|ia64*)
13165 ;;
13166 *)
13167 export_dynamic_flag_spec_CXX='${wl}-E'
13168 ;;
13169 esac
13170 fi
13171 case $host_cpu in
13172 hppa*64*|ia64*)
13173 hardcode_direct_CXX=no
13174 hardcode_shlibpath_var_CXX=no
13175 ;;
13176 *)
13177 hardcode_direct_CXX=yes
13178 hardcode_direct_absolute_CXX=yes
13179 hardcode_minus_L_CXX=yes # Not in the search PATH,
13180 # but as the default
13181 # location of the library.
13182 ;;
13183 esac
13184
13185 case $cc_basename in
13186 CC*)
13187 # FIXME: insert proper C++ library support
13188 ld_shlibs_CXX=no
13189 ;;
13190 aCC*)
13191 case $host_cpu in
13192 hppa*64*)
13193 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13194 ;;
13195 ia64*)
13196 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 ;;
13198 *)
13199 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200 ;;
13201 esac
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 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"'
13211 ;;
13212 *)
13213 if test "$GXX" = yes; then
13214 if test $with_gnu_ld = no; then
13215 case $host_cpu in
13216 hppa*64*)
13217 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13218 ;;
13219 ia64*)
13220 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221 ;;
13222 *)
13223 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'
13224 ;;
13225 esac
13226 fi
13227 else
13228 # FIXME: insert proper C++ library support
13229 ld_shlibs_CXX=no
13230 fi
13231 ;;
13232 esac
13233 ;;
13234
13235 interix[3-9]*)
13236 hardcode_direct_CXX=no
13237 hardcode_shlibpath_var_CXX=no
13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13239 export_dynamic_flag_spec_CXX='${wl}-E'
13240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13241 # Instead, shared libraries are loaded at an image base (0x10000000 by
13242 # default) and relocated if they conflict, which is a slow very memory
13243 # consuming and fragmenting process. To avoid this, we pick a random,
13244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13246 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'
13247 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'
13248 ;;
13249 irix5* | irix6*)
13250 case $cc_basename in
13251 CC*)
13252 # SGI C++
13253 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'
13254
13255 # Archives containing C++ object files must be created using
13256 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13257 # necessary to make sure instantiated templates are included
13258 # in the archive.
13259 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13260 ;;
13261 *)
13262 if test "$GXX" = yes; then
13263 if test "$with_gnu_ld" = no; then
13264 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'
13265 else
13266 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'
13267 fi
13268 fi
13269 link_all_deplibs_CXX=yes
13270 ;;
13271 esac
13272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13273 hardcode_libdir_separator_CXX=:
13274 inherit_rpath_CXX=yes
13275 ;;
13276
13277 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13278 case $cc_basename in
13279 KCC*)
13280 # Kuck and Associates, Inc. (KAI) C++ Compiler
13281
13282 # KCC will only create a shared library if the output file
13283 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13284 # to its proper name (with version) after linking.
13285 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'
13286 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'
13287 # Commands to make compiler produce verbose output that lists
13288 # what "hidden" libraries, object files and flags are used when
13289 # linking a shared library.
13290 #
13291 # There doesn't appear to be a way to prevent this compiler from
13292 # explicitly linking system object files so we need to strip them
13293 # from the output so that they don't get included in the library
13294 # dependencies.
13295 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"'
13296
13297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13299
13300 # Archives containing C++ object files must be created using
13301 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13302 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13303 ;;
13304 icpc* | ecpc* )
13305 # Intel C++
13306 with_gnu_ld=yes
13307 # version 8.0 and above of icpc choke on multiply defined symbols
13308 # if we add $predep_objects and $postdep_objects, however 7.1 and
13309 # earlier do not add the objects themselves.
13310 case `$CC -V 2>&1` in
13311 *"Version 7."*)
13312 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313 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'
13314 ;;
13315 *) # Version 8.0 or newer
13316 tmp_idyn=
13317 case $host_cpu in
13318 ia64*) tmp_idyn=' -i_dynamic';;
13319 esac
13320 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321 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'
13322 ;;
13323 esac
13324 archive_cmds_need_lc_CXX=no
13325 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13327 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13328 ;;
13329 pgCC* | pgcpp*)
13330 # Portland Group C++ compiler
13331 case `$CC -V` in
13332 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13333 prelink_cmds_CXX='tpldir=Template.dir~
13334 rm -rf $tpldir~
13335 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13336 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13337 old_archive_cmds_CXX='tpldir=Template.dir~
13338 rm -rf $tpldir~
13339 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13340 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13341 $RANLIB $oldlib'
13342 archive_cmds_CXX='tpldir=Template.dir~
13343 rm -rf $tpldir~
13344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13345 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13346 archive_expsym_cmds_CXX='tpldir=Template.dir~
13347 rm -rf $tpldir~
13348 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13349 $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'
13350 ;;
13351 *) # Version 6 and above use weak symbols
13352 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13353 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'
13354 ;;
13355 esac
13356
13357 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13359 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'
13360 ;;
13361 cxx*)
13362 # Compaq C++
13363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 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'
13365
13366 runpath_var=LD_RUN_PATH
13367 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13368 hardcode_libdir_separator_CXX=:
13369
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 #
13374 # There doesn't appear to be a way to prevent this compiler from
13375 # explicitly linking system object files so we need to strip them
13376 # from the output so that they don't get included in the library
13377 # dependencies.
13378 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'
13379 ;;
13380 xl* | mpixl* | bgxl*)
13381 # IBM XL 8.0 on PPC, with GNU ld
13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13384 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13385 if test "x$supports_anon_versioning" = xyes; then
13386 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13388 echo "local: *; };" >> $output_objdir/$libname.ver~
13389 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13390 fi
13391 ;;
13392 *)
13393 case `$CC -V 2>&1 | sed 5q` in
13394 *Sun\ C*)
13395 # Sun C++ 5.9
13396 no_undefined_flag_CXX=' -zdefs'
13397 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13398 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'
13399 hardcode_libdir_flag_spec_CXX='-R$libdir'
13400 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'
13401 compiler_needs_object_CXX=yes
13402
13403 # Not sure whether something based on
13404 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13405 # would be better.
13406 output_verbose_link_cmd='func_echo_all'
13407
13408 # Archives containing C++ object files must be created using
13409 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13410 # necessary to make sure instantiated templates are included
13411 # in the archive.
13412 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13413 ;;
13414 esac
13415 ;;
13416 esac
13417 ;;
13418
13419 lynxos*)
13420 # FIXME: insert proper C++ library support
13421 ld_shlibs_CXX=no
13422 ;;
13423
13424 m88k*)
13425 # FIXME: insert proper C++ library support
13426 ld_shlibs_CXX=no
13427 ;;
13428
13429 mvs*)
13430 case $cc_basename in
13431 cxx*)
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 ;;
13435 *)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13438 ;;
13439 esac
13440 ;;
13441
13442 netbsd*)
13443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13444 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13445 wlarc=
13446 hardcode_libdir_flag_spec_CXX='-R$libdir'
13447 hardcode_direct_CXX=yes
13448 hardcode_shlibpath_var_CXX=no
13449 fi
13450 # Workaround some broken pre-1.5 toolchains
13451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13452 ;;
13453
13454 *nto* | *qnx*)
13455 ld_shlibs_CXX=yes
13456 ;;
13457
13458 openbsd2*)
13459 # C++ shared libraries are fairly broken
13460 ld_shlibs_CXX=no
13461 ;;
13462
13463 openbsd*)
13464 if test -f /usr/libexec/ld.so; then
13465 hardcode_direct_CXX=yes
13466 hardcode_shlibpath_var_CXX=no
13467 hardcode_direct_absolute_CXX=yes
13468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13472 export_dynamic_flag_spec_CXX='${wl}-E'
13473 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13474 fi
13475 output_verbose_link_cmd=func_echo_all
13476 else
13477 ld_shlibs_CXX=no
13478 fi
13479 ;;
13480
13481 osf3* | osf4* | osf5*)
13482 case $cc_basename in
13483 KCC*)
13484 # Kuck and Associates, Inc. (KAI) C++ Compiler
13485
13486 # KCC will only create a shared library if the output file
13487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13488 # to its proper name (with version) after linking.
13489 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'
13490
13491 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13492 hardcode_libdir_separator_CXX=:
13493
13494 # Archives containing C++ object files must be created using
13495 # the KAI C++ compiler.
13496 case $host in
13497 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13498 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13499 esac
13500 ;;
13501 RCC*)
13502 # Rational C++ 2.4.1
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13505 ;;
13506 cxx*)
13507 case $host in
13508 osf3*)
13509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13510 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'
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13512 ;;
13513 *)
13514 allow_undefined_flag_CXX=' -expect_unresolved \*'
13515 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'
13516 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13517 echo "-hidden">> $lib.exp~
13518 $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~
13519 $RM $lib.exp'
13520 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13521 ;;
13522 esac
13523
13524 hardcode_libdir_separator_CXX=:
13525
13526 # Commands to make compiler produce verbose output that lists
13527 # what "hidden" libraries, object files and flags are used when
13528 # linking a shared library.
13529 #
13530 # There doesn't appear to be a way to prevent this compiler from
13531 # explicitly linking system object files so we need to strip them
13532 # from the output so that they don't get included in the library
13533 # dependencies.
13534 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"'
13535 ;;
13536 *)
13537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13538 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13539 case $host in
13540 osf3*)
13541 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'
13542 ;;
13543 *)
13544 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'
13545 ;;
13546 esac
13547
13548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13549 hardcode_libdir_separator_CXX=:
13550
13551 # Commands to make compiler produce verbose output that lists
13552 # what "hidden" libraries, object files and flags are used when
13553 # linking a shared library.
13554 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13555
13556 else
13557 # FIXME: insert proper C++ library support
13558 ld_shlibs_CXX=no
13559 fi
13560 ;;
13561 esac
13562 ;;
13563
13564 psos*)
13565 # FIXME: insert proper C++ library support
13566 ld_shlibs_CXX=no
13567 ;;
13568
13569 sunos4*)
13570 case $cc_basename in
13571 CC*)
13572 # Sun C++ 4.x
13573 # FIXME: insert proper C++ library support
13574 ld_shlibs_CXX=no
13575 ;;
13576 lcc*)
13577 # Lucid
13578 # FIXME: insert proper C++ library support
13579 ld_shlibs_CXX=no
13580 ;;
13581 *)
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13584 ;;
13585 esac
13586 ;;
13587
13588 solaris*)
13589 case $cc_basename in
13590 CC*)
13591 # Sun C++ 4.2, 5.x and Centerline C++
13592 archive_cmds_need_lc_CXX=yes
13593 no_undefined_flag_CXX=' -zdefs'
13594 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13595 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13596 $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'
13597
13598 hardcode_libdir_flag_spec_CXX='-R$libdir'
13599 hardcode_shlibpath_var_CXX=no
13600 case $host_os in
13601 solaris2.[0-5] | solaris2.[0-5].*) ;;
13602 *)
13603 # The compiler driver will combine and reorder linker options,
13604 # but understands `-z linker_flag'.
13605 # Supported since Solaris 2.6 (maybe 2.5.1?)
13606 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13607 ;;
13608 esac
13609 link_all_deplibs_CXX=yes
13610
13611 output_verbose_link_cmd='func_echo_all'
13612
13613 # Archives containing C++ object files must be created using
13614 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13615 # necessary to make sure instantiated templates are included
13616 # in the archive.
13617 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13618 ;;
13619 gcx*)
13620 # Green Hills C++ Compiler
13621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13622
13623 # The C++ compiler must be used to create the archive.
13624 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13625 ;;
13626 *)
13627 # GNU C++ compiler with Solaris linker
13628 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13629 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13630 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13631 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13632 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13633 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13634
13635 # Commands to make compiler produce verbose output that lists
13636 # what "hidden" libraries, object files and flags are used when
13637 # linking a shared library.
13638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13639 else
13640 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13641 # platform.
13642 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13643 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13644 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13645
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13649 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13650 fi
13651
13652 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13653 case $host_os in
13654 solaris2.[0-5] | solaris2.[0-5].*) ;;
13655 *)
13656 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13657 ;;
13658 esac
13659 fi
13660 ;;
13661 esac
13662 ;;
13663
13664 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13665 no_undefined_flag_CXX='${wl}-z,text'
13666 archive_cmds_need_lc_CXX=no
13667 hardcode_shlibpath_var_CXX=no
13668 runpath_var='LD_RUN_PATH'
13669
13670 case $cc_basename in
13671 CC*)
13672 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 ;;
13675 *)
13676 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 ;;
13679 esac
13680 ;;
13681
13682 sysv5* | sco3.2v5* | sco5v6*)
13683 # Note: We can NOT use -z defs as we might desire, because we do not
13684 # link with -lc, and that would cause any symbols used from libc to
13685 # always be unresolved, which means just about no library would
13686 # ever link correctly. If we're not using GNU ld we use -z text
13687 # though, which does catch some bad symbols but isn't as heavy-handed
13688 # as -z defs.
13689 no_undefined_flag_CXX='${wl}-z,text'
13690 allow_undefined_flag_CXX='${wl}-z,nodefs'
13691 archive_cmds_need_lc_CXX=no
13692 hardcode_shlibpath_var_CXX=no
13693 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13694 hardcode_libdir_separator_CXX=':'
13695 link_all_deplibs_CXX=yes
13696 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13697 runpath_var='LD_RUN_PATH'
13698
13699 case $cc_basename in
13700 CC*)
13701 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13702 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13704 '"$old_archive_cmds_CXX"
13705 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13706 '"$reload_cmds_CXX"
13707 ;;
13708 *)
13709 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 ;;
13712 esac
13713 ;;
13714
13715 tandem*)
13716 case $cc_basename in
13717 NCC*)
13718 # NonStop-UX NCC 3.20
13719 # FIXME: insert proper C++ library support
13720 ld_shlibs_CXX=no
13721 ;;
13722 *)
13723 # FIXME: insert proper C++ library support
13724 ld_shlibs_CXX=no
13725 ;;
13726 esac
13727 ;;
13728
13729 vxworks*)
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 ;;
13733
13734 *)
13735 # FIXME: insert proper C++ library support
13736 ld_shlibs_CXX=no
13737 ;;
13738 esac
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13741 $as_echo "$ld_shlibs_CXX" >&6; }
13742 test "$ld_shlibs_CXX" = no && can_build_shared=no
13743
13744 GCC_CXX="$GXX"
13745 LD_CXX="$LD"
13746
13747 ## CAVEAT EMPTOR:
13748 ## There is no encapsulation within the following macros, do not change
13749 ## the running order or otherwise move them around unless you know exactly
13750 ## what you are doing...
13751 # Dependencies to place before and after the object being linked:
13752 predep_objects_CXX=
13753 postdep_objects_CXX=
13754 predeps_CXX=
13755 postdeps_CXX=
13756 compiler_lib_search_path_CXX=
13757
13758 cat > conftest.$ac_ext <<_LT_EOF
13759 class Foo
13760 {
13761 public:
13762 Foo (void) { a = 0; }
13763 private:
13764 int a;
13765 };
13766 _LT_EOF
13767
13768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13772 test $ac_status = 0; }; then
13773 # Parse the compiler output and extract the necessary
13774 # objects, libraries and library flags.
13775
13776 # Sentinel used to keep track of whether or not we are before
13777 # the conftest object file.
13778 pre_test_object_deps_done=no
13779
13780 for p in `eval "$output_verbose_link_cmd"`; do
13781 case $p in
13782
13783 -L* | -R* | -l*)
13784 # Some compilers place space between "-{L,R}" and the path.
13785 # Remove the space.
13786 if test $p = "-L" ||
13787 test $p = "-R"; then
13788 prev=$p
13789 continue
13790 else
13791 prev=
13792 fi
13793
13794 if test "$pre_test_object_deps_done" = no; then
13795 case $p in
13796 -L* | -R*)
13797 # Internal compiler library paths should come after those
13798 # provided the user. The postdeps already come after the
13799 # user supplied libs so there is no need to process them.
13800 if test -z "$compiler_lib_search_path_CXX"; then
13801 compiler_lib_search_path_CXX="${prev}${p}"
13802 else
13803 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13804 fi
13805 ;;
13806 # The "-l" case would never come before the object being
13807 # linked, so don't bother handling this case.
13808 esac
13809 else
13810 if test -z "$postdeps_CXX"; then
13811 postdeps_CXX="${prev}${p}"
13812 else
13813 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13814 fi
13815 fi
13816 ;;
13817
13818 *.$objext)
13819 # This assumes that the test object file only shows up
13820 # once in the compiler output.
13821 if test "$p" = "conftest.$objext"; then
13822 pre_test_object_deps_done=yes
13823 continue
13824 fi
13825
13826 if test "$pre_test_object_deps_done" = no; then
13827 if test -z "$predep_objects_CXX"; then
13828 predep_objects_CXX="$p"
13829 else
13830 predep_objects_CXX="$predep_objects_CXX $p"
13831 fi
13832 else
13833 if test -z "$postdep_objects_CXX"; then
13834 postdep_objects_CXX="$p"
13835 else
13836 postdep_objects_CXX="$postdep_objects_CXX $p"
13837 fi
13838 fi
13839 ;;
13840
13841 *) ;; # Ignore the rest.
13842
13843 esac
13844 done
13845
13846 # Clean up.
13847 rm -f a.out a.exe
13848 else
13849 echo "libtool.m4: error: problem compiling CXX test program"
13850 fi
13851
13852 $RM -f confest.$objext
13853
13854 # PORTME: override above test on systems where it is broken
13855 case $host_os in
13856 interix[3-9]*)
13857 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13858 # hack all around it, let's just trust "g++" to DTRT.
13859 predep_objects_CXX=
13860 postdep_objects_CXX=
13861 postdeps_CXX=
13862 ;;
13863
13864 linux*)
13865 case `$CC -V 2>&1 | sed 5q` in
13866 *Sun\ C*)
13867 # Sun C++ 5.9
13868
13869 # The more standards-conforming stlport4 library is
13870 # incompatible with the Cstd library. Avoid specifying
13871 # it if it's in CXXFLAGS. Ignore libCrun as
13872 # -library=stlport4 depends on it.
13873 case " $CXX $CXXFLAGS " in
13874 *" -library=stlport4 "*)
13875 solaris_use_stlport4=yes
13876 ;;
13877 esac
13878
13879 if test "$solaris_use_stlport4" != yes; then
13880 postdeps_CXX='-library=Cstd -library=Crun'
13881 fi
13882 ;;
13883 esac
13884 ;;
13885
13886 solaris*)
13887 case $cc_basename in
13888 CC*)
13889 # The more standards-conforming stlport4 library is
13890 # incompatible with the Cstd library. Avoid specifying
13891 # it if it's in CXXFLAGS. Ignore libCrun as
13892 # -library=stlport4 depends on it.
13893 case " $CXX $CXXFLAGS " in
13894 *" -library=stlport4 "*)
13895 solaris_use_stlport4=yes
13896 ;;
13897 esac
13898
13899 # Adding this requires a known-good setup of shared libraries for
13900 # Sun compiler versions before 5.6, else PIC objects from an old
13901 # archive will be linked into the output, leading to subtle bugs.
13902 if test "$solaris_use_stlport4" != yes; then
13903 postdeps_CXX='-library=Cstd -library=Crun'
13904 fi
13905 ;;
13906 esac
13907 ;;
13908 esac
13909
13910
13911 case " $postdeps_CXX " in
13912 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13913 esac
13914 compiler_lib_search_dirs_CXX=
13915 if test -n "${compiler_lib_search_path_CXX}"; then
13916 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13917 fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 lt_prog_compiler_wl_CXX=
13950 lt_prog_compiler_pic_CXX=
13951 lt_prog_compiler_static_CXX=
13952
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13954 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13955
13956 # C++ specific cases for pic, static, wl, etc.
13957 if test "$GXX" = yes; then
13958 lt_prog_compiler_wl_CXX='-Wl,'
13959 lt_prog_compiler_static_CXX='-static'
13960
13961 case $host_os in
13962 aix*)
13963 # All AIX code is PIC.
13964 if test "$host_cpu" = ia64; then
13965 # AIX 5 now supports IA64 processor
13966 lt_prog_compiler_static_CXX='-Bstatic'
13967 fi
13968 lt_prog_compiler_pic_CXX='-fPIC'
13969 ;;
13970
13971 amigaos*)
13972 case $host_cpu in
13973 powerpc)
13974 # see comment about AmigaOS4 .so support
13975 lt_prog_compiler_pic_CXX='-fPIC'
13976 ;;
13977 m68k)
13978 # FIXME: we need at least 68020 code to build shared libraries, but
13979 # adding the `-m68020' flag to GCC prevents building anything better,
13980 # like `-m68040'.
13981 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13982 ;;
13983 esac
13984 ;;
13985
13986 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13987 # PIC is the default for these OSes.
13988 ;;
13989 mingw* | cygwin* | os2* | pw32* | cegcc*)
13990 # This hack is so that the source file can tell whether it is being
13991 # built for inclusion in a dll (and should export symbols for example).
13992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13993 # (--disable-auto-import) libraries
13994 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13995 ;;
13996 darwin* | rhapsody*)
13997 # PIC is the default on this platform
13998 # Common symbols not allowed in MH_DYLIB files
13999 lt_prog_compiler_pic_CXX='-fno-common'
14000 ;;
14001 *djgpp*)
14002 # DJGPP does not support shared libraries at all
14003 lt_prog_compiler_pic_CXX=
14004 ;;
14005 haiku*)
14006 # PIC is the default for Haiku.
14007 # The "-static" flag exists, but is broken.
14008 lt_prog_compiler_static_CXX=
14009 ;;
14010 interix[3-9]*)
14011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14012 # Instead, we relocate shared libraries at runtime.
14013 ;;
14014 sysv4*MP*)
14015 if test -d /usr/nec; then
14016 lt_prog_compiler_pic_CXX=-Kconform_pic
14017 fi
14018 ;;
14019 hpux*)
14020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14022 # sets the default TLS model and affects inlining.
14023 case $host_cpu in
14024 hppa*64*)
14025 ;;
14026 *)
14027 lt_prog_compiler_pic_CXX='-fPIC'
14028 ;;
14029 esac
14030 ;;
14031 *qnx* | *nto*)
14032 # QNX uses GNU C++, but need to define -shared option too, otherwise
14033 # it will coredump.
14034 lt_prog_compiler_pic_CXX='-fPIC -shared'
14035 ;;
14036 *)
14037 lt_prog_compiler_pic_CXX='-fPIC'
14038 ;;
14039 esac
14040 else
14041 case $host_os in
14042 aix[4-9]*)
14043 # All AIX code is PIC.
14044 if test "$host_cpu" = ia64; then
14045 # AIX 5 now supports IA64 processor
14046 lt_prog_compiler_static_CXX='-Bstatic'
14047 else
14048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14049 fi
14050 ;;
14051 chorus*)
14052 case $cc_basename in
14053 cxch68*)
14054 # Green Hills C++ Compiler
14055 # _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"
14056 ;;
14057 esac
14058 ;;
14059 dgux*)
14060 case $cc_basename in
14061 ec++*)
14062 lt_prog_compiler_pic_CXX='-KPIC'
14063 ;;
14064 ghcx*)
14065 # Green Hills C++ Compiler
14066 lt_prog_compiler_pic_CXX='-pic'
14067 ;;
14068 *)
14069 ;;
14070 esac
14071 ;;
14072 freebsd* | dragonfly*)
14073 # FreeBSD uses GNU C++
14074 ;;
14075 hpux9* | hpux10* | hpux11*)
14076 case $cc_basename in
14077 CC*)
14078 lt_prog_compiler_wl_CXX='-Wl,'
14079 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14080 if test "$host_cpu" != ia64; then
14081 lt_prog_compiler_pic_CXX='+Z'
14082 fi
14083 ;;
14084 aCC*)
14085 lt_prog_compiler_wl_CXX='-Wl,'
14086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14087 case $host_cpu in
14088 hppa*64*|ia64*)
14089 # +Z the default
14090 ;;
14091 *)
14092 lt_prog_compiler_pic_CXX='+Z'
14093 ;;
14094 esac
14095 ;;
14096 *)
14097 ;;
14098 esac
14099 ;;
14100 interix*)
14101 # This is c89, which is MS Visual C++ (no shared libs)
14102 # Anyone wants to do a port?
14103 ;;
14104 irix5* | irix6* | nonstopux*)
14105 case $cc_basename in
14106 CC*)
14107 lt_prog_compiler_wl_CXX='-Wl,'
14108 lt_prog_compiler_static_CXX='-non_shared'
14109 # CC pic flag -KPIC is the default.
14110 ;;
14111 *)
14112 ;;
14113 esac
14114 ;;
14115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14116 case $cc_basename in
14117 KCC*)
14118 # KAI C++ Compiler
14119 lt_prog_compiler_wl_CXX='--backend -Wl,'
14120 lt_prog_compiler_pic_CXX='-fPIC'
14121 ;;
14122 ecpc* )
14123 # old Intel C++ for x86_64 which still supported -KPIC.
14124 lt_prog_compiler_wl_CXX='-Wl,'
14125 lt_prog_compiler_pic_CXX='-KPIC'
14126 lt_prog_compiler_static_CXX='-static'
14127 ;;
14128 icpc* )
14129 # Intel C++, used to be incompatible with GCC.
14130 # ICC 10 doesn't accept -KPIC any more.
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_pic_CXX='-fPIC'
14133 lt_prog_compiler_static_CXX='-static'
14134 ;;
14135 pgCC* | pgcpp*)
14136 # Portland Group C++ compiler
14137 lt_prog_compiler_wl_CXX='-Wl,'
14138 lt_prog_compiler_pic_CXX='-fpic'
14139 lt_prog_compiler_static_CXX='-Bstatic'
14140 ;;
14141 cxx*)
14142 # Compaq C++
14143 # Make sure the PIC flag is empty. It appears that all Alpha
14144 # Linux and Compaq Tru64 Unix objects are PIC.
14145 lt_prog_compiler_pic_CXX=
14146 lt_prog_compiler_static_CXX='-non_shared'
14147 ;;
14148 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14149 # IBM XL 8.0, 9.0 on PPC and BlueGene
14150 lt_prog_compiler_wl_CXX='-Wl,'
14151 lt_prog_compiler_pic_CXX='-qpic'
14152 lt_prog_compiler_static_CXX='-qstaticlink'
14153 ;;
14154 *)
14155 case `$CC -V 2>&1 | sed 5q` in
14156 *Sun\ C*)
14157 # Sun C++ 5.9
14158 lt_prog_compiler_pic_CXX='-KPIC'
14159 lt_prog_compiler_static_CXX='-Bstatic'
14160 lt_prog_compiler_wl_CXX='-Qoption ld '
14161 ;;
14162 esac
14163 ;;
14164 esac
14165 ;;
14166 lynxos*)
14167 ;;
14168 m88k*)
14169 ;;
14170 mvs*)
14171 case $cc_basename in
14172 cxx*)
14173 lt_prog_compiler_pic_CXX='-W c,exportall'
14174 ;;
14175 *)
14176 ;;
14177 esac
14178 ;;
14179 netbsd*)
14180 ;;
14181 *qnx* | *nto*)
14182 # QNX uses GNU C++, but need to define -shared option too, otherwise
14183 # it will coredump.
14184 lt_prog_compiler_pic_CXX='-fPIC -shared'
14185 ;;
14186 osf3* | osf4* | osf5*)
14187 case $cc_basename in
14188 KCC*)
14189 lt_prog_compiler_wl_CXX='--backend -Wl,'
14190 ;;
14191 RCC*)
14192 # Rational C++ 2.4.1
14193 lt_prog_compiler_pic_CXX='-pic'
14194 ;;
14195 cxx*)
14196 # Digital/Compaq C++
14197 lt_prog_compiler_wl_CXX='-Wl,'
14198 # Make sure the PIC flag is empty. It appears that all Alpha
14199 # Linux and Compaq Tru64 Unix objects are PIC.
14200 lt_prog_compiler_pic_CXX=
14201 lt_prog_compiler_static_CXX='-non_shared'
14202 ;;
14203 *)
14204 ;;
14205 esac
14206 ;;
14207 psos*)
14208 ;;
14209 solaris*)
14210 case $cc_basename in
14211 CC*)
14212 # Sun C++ 4.2, 5.x and Centerline C++
14213 lt_prog_compiler_pic_CXX='-KPIC'
14214 lt_prog_compiler_static_CXX='-Bstatic'
14215 lt_prog_compiler_wl_CXX='-Qoption ld '
14216 ;;
14217 gcx*)
14218 # Green Hills C++ Compiler
14219 lt_prog_compiler_pic_CXX='-PIC'
14220 ;;
14221 *)
14222 ;;
14223 esac
14224 ;;
14225 sunos4*)
14226 case $cc_basename in
14227 CC*)
14228 # Sun C++ 4.x
14229 lt_prog_compiler_pic_CXX='-pic'
14230 lt_prog_compiler_static_CXX='-Bstatic'
14231 ;;
14232 lcc*)
14233 # Lucid
14234 lt_prog_compiler_pic_CXX='-pic'
14235 ;;
14236 *)
14237 ;;
14238 esac
14239 ;;
14240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14241 case $cc_basename in
14242 CC*)
14243 lt_prog_compiler_wl_CXX='-Wl,'
14244 lt_prog_compiler_pic_CXX='-KPIC'
14245 lt_prog_compiler_static_CXX='-Bstatic'
14246 ;;
14247 esac
14248 ;;
14249 tandem*)
14250 case $cc_basename in
14251 NCC*)
14252 # NonStop-UX NCC 3.20
14253 lt_prog_compiler_pic_CXX='-KPIC'
14254 ;;
14255 *)
14256 ;;
14257 esac
14258 ;;
14259 vxworks*)
14260 ;;
14261 *)
14262 lt_prog_compiler_can_build_shared_CXX=no
14263 ;;
14264 esac
14265 fi
14266
14267 case $host_os in
14268 # For platforms which do not support PIC, -DPIC is meaningless:
14269 *djgpp*)
14270 lt_prog_compiler_pic_CXX=
14271 ;;
14272 *)
14273 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14274 ;;
14275 esac
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14277 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14278
14279
14280
14281 #
14282 # Check to make sure the PIC flag actually works.
14283 #
14284 if test -n "$lt_prog_compiler_pic_CXX"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14287 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 lt_cv_prog_compiler_pic_works_CXX=no
14291 ac_outfile=conftest.$ac_objext
14292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14293 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 # The option is referenced via a variable to avoid confusing sed.
14299 lt_compile=`echo "$ac_compile" | $SED \
14300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14302 -e 's:$: $lt_compiler_flag:'`
14303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14304 (eval "$lt_compile" 2>conftest.err)
14305 ac_status=$?
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 if (exit $ac_status) && test -s "$ac_outfile"; then
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings other than the usual output.
14311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_pic_works_CXX=yes
14315 fi
14316 fi
14317 $RM conftest*
14318
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14321 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14322
14323 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14324 case $lt_prog_compiler_pic_CXX in
14325 "" | " "*) ;;
14326 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14327 esac
14328 else
14329 lt_prog_compiler_pic_CXX=
14330 lt_prog_compiler_can_build_shared_CXX=no
14331 fi
14332
14333 fi
14334
14335
14336
14337 #
14338 # Check to make sure the static flag actually works.
14339 #
14340 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14342 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14343 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 lt_cv_prog_compiler_static_works_CXX=no
14347 save_LDFLAGS="$LDFLAGS"
14348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14351 # The linker can only warn and ignore the option if not recognized
14352 # So say no if there are warnings
14353 if test -s conftest.err; then
14354 # Append any errors to the config.log.
14355 cat conftest.err 1>&5
14356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14358 if diff conftest.exp conftest.er2 >/dev/null; then
14359 lt_cv_prog_compiler_static_works_CXX=yes
14360 fi
14361 else
14362 lt_cv_prog_compiler_static_works_CXX=yes
14363 fi
14364 fi
14365 $RM -r conftest*
14366 LDFLAGS="$save_LDFLAGS"
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14370 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14371
14372 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14373 :
14374 else
14375 lt_prog_compiler_static_CXX=
14376 fi
14377
14378
14379
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14382 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14383 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 lt_cv_prog_compiler_c_o_CXX=no
14387 $RM -r conftest 2>/dev/null
14388 mkdir conftest
14389 cd conftest
14390 mkdir out
14391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393 lt_compiler_flag="-o out/conftest2.$ac_objext"
14394 # Insert the option either (1) after the last *FLAGS variable, or
14395 # (2) before a word containing "conftest.", or (3) at the end.
14396 # Note that $ac_compile itself does not contain backslashes and begins
14397 # with a dollar sign (not a hyphen), so the echo should work correctly.
14398 lt_compile=`echo "$ac_compile" | $SED \
14399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401 -e 's:$: $lt_compiler_flag:'`
14402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14403 (eval "$lt_compile" 2>out/conftest.err)
14404 ac_status=$?
14405 cat out/conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14408 then
14409 # The compiler can only warn and ignore the option if not recognized
14410 # So say no if there are warnings
14411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14414 lt_cv_prog_compiler_c_o_CXX=yes
14415 fi
14416 fi
14417 chmod u+w . 2>&5
14418 $RM conftest*
14419 # SGI C++ compiler will create directory out/ii_files/ for
14420 # template instantiation
14421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14422 $RM out/* && rmdir out
14423 cd ..
14424 $RM -r conftest
14425 $RM conftest*
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14429 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14430
14431
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14434 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14435 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 lt_cv_prog_compiler_c_o_CXX=no
14439 $RM -r conftest 2>/dev/null
14440 mkdir conftest
14441 cd conftest
14442 mkdir out
14443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14444
14445 lt_compiler_flag="-o out/conftest2.$ac_objext"
14446 # Insert the option either (1) after the last *FLAGS variable, or
14447 # (2) before a word containing "conftest.", or (3) at the end.
14448 # Note that $ac_compile itself does not contain backslashes and begins
14449 # with a dollar sign (not a hyphen), so the echo should work correctly.
14450 lt_compile=`echo "$ac_compile" | $SED \
14451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14453 -e 's:$: $lt_compiler_flag:'`
14454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14455 (eval "$lt_compile" 2>out/conftest.err)
14456 ac_status=$?
14457 cat out/conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14460 then
14461 # The compiler can only warn and ignore the option if not recognized
14462 # So say no if there are warnings
14463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14466 lt_cv_prog_compiler_c_o_CXX=yes
14467 fi
14468 fi
14469 chmod u+w . 2>&5
14470 $RM conftest*
14471 # SGI C++ compiler will create directory out/ii_files/ for
14472 # template instantiation
14473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14474 $RM out/* && rmdir out
14475 cd ..
14476 $RM -r conftest
14477 $RM conftest*
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14481 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14482
14483
14484
14485
14486 hard_links="nottested"
14487 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14488 # do not overwrite the value of need_locks provided by the user
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14490 $as_echo_n "checking if we can lock with hard links... " >&6; }
14491 hard_links=yes
14492 $RM conftest*
14493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14494 touch conftest.a
14495 ln conftest.a conftest.b 2>&5 || hard_links=no
14496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14498 $as_echo "$hard_links" >&6; }
14499 if test "$hard_links" = no; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14501 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14502 need_locks=warn
14503 fi
14504 else
14505 need_locks=no
14506 fi
14507
14508
14509
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14511 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14512
14513 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14514 case $host_os in
14515 aix[4-9]*)
14516 # If we're using GNU nm, then we don't want the "-C" option.
14517 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14518 # Also, AIX nm treats weak defined symbols like other global defined
14519 # symbols, whereas GNU nm marks them as "W".
14520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14521 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'
14522 else
14523 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14524 fi
14525 ;;
14526 pw32*)
14527 export_symbols_cmds_CXX="$ltdll_cmds"
14528 ;;
14529 cygwin* | mingw* | cegcc*)
14530 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'
14531 ;;
14532 *)
14533 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14534 ;;
14535 esac
14536 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14539 $as_echo "$ld_shlibs_CXX" >&6; }
14540 test "$ld_shlibs_CXX" = no && can_build_shared=no
14541
14542 with_gnu_ld_CXX=$with_gnu_ld
14543
14544
14545
14546
14547
14548
14549 #
14550 # Do we need to explicitly link libc?
14551 #
14552 case "x$archive_cmds_need_lc_CXX" in
14553 x|xyes)
14554 # Assume -lc should be added
14555 archive_cmds_need_lc_CXX=yes
14556
14557 if test "$enable_shared" = yes && test "$GCC" = yes; then
14558 case $archive_cmds_CXX in
14559 *'~'*)
14560 # FIXME: we may have to deal with multi-command sequences.
14561 ;;
14562 '$CC '*)
14563 # Test whether the compiler implicitly links with -lc since on some
14564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14565 # to ld, don't add -lc before -lgcc.
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14568 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 $RM conftest*
14572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14573
14574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14575 (eval $ac_compile) 2>&5
14576 ac_status=$?
14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578 test $ac_status = 0; } 2>conftest.err; then
14579 soname=conftest
14580 lib=conftest
14581 libobjs=conftest.$ac_objext
14582 deplibs=
14583 wl=$lt_prog_compiler_wl_CXX
14584 pic_flag=$lt_prog_compiler_pic_CXX
14585 compiler_flags=-v
14586 linker_flags=-v
14587 verstring=
14588 output_objdir=.
14589 libname=conftest
14590 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14591 allow_undefined_flag_CXX=
14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14593 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14594 ac_status=$?
14595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; }
14597 then
14598 lt_cv_archive_cmds_need_lc_CXX=no
14599 else
14600 lt_cv_archive_cmds_need_lc_CXX=yes
14601 fi
14602 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14603 else
14604 cat conftest.err 1>&5
14605 fi
14606 $RM conftest*
14607
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14610 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14611 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14612 ;;
14613 esac
14614 fi
14615 ;;
14616 esac
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14682 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14683
14684 library_names_spec=
14685 libname_spec='lib$name'
14686 soname_spec=
14687 shrext_cmds=".so"
14688 postinstall_cmds=
14689 postuninstall_cmds=
14690 finish_cmds=
14691 finish_eval=
14692 shlibpath_var=
14693 shlibpath_overrides_runpath=unknown
14694 version_type=none
14695 dynamic_linker="$host_os ld.so"
14696 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14697 need_lib_prefix=unknown
14698 hardcode_into_libs=no
14699
14700 # when you set need_version to no, make sure it does not cause -set_version
14701 # flags to be left without arguments
14702 need_version=unknown
14703
14704 case $host_os in
14705 aix3*)
14706 version_type=linux
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14708 shlibpath_var=LIBPATH
14709
14710 # AIX 3 has no versioning support, so we append a major version to the name.
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 ;;
14713
14714 aix[4-9]*)
14715 version_type=linux
14716 need_lib_prefix=no
14717 need_version=no
14718 hardcode_into_libs=yes
14719 if test "$host_cpu" = ia64; then
14720 # AIX 5 supports IA64
14721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 else
14724 # With GCC up to 2.95.x, collect2 would create an import file
14725 # for dependence libraries. The import file would start with
14726 # the line `#! .'. This would cause the generated library to
14727 # depend on `.', always an invalid library. This was fixed in
14728 # development snapshots of GCC prior to 3.0.
14729 case $host_os in
14730 aix4 | aix4.[01] | aix4.[01].*)
14731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14732 echo ' yes '
14733 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14734 :
14735 else
14736 can_build_shared=no
14737 fi
14738 ;;
14739 esac
14740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14741 # soname into executable. Probably we can add versioning support to
14742 # collect2, so additional links can be useful in future.
14743 if test "$aix_use_runtimelinking" = yes; then
14744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14745 # instead of lib<name>.a to let people know that these are not
14746 # typical AIX shared libraries.
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 else
14749 # We preserve .a as extension for shared libraries through AIX4.2
14750 # and later when we are not doing run time linking.
14751 library_names_spec='${libname}${release}.a $libname.a'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 fi
14754 shlibpath_var=LIBPATH
14755 fi
14756 ;;
14757
14758 amigaos*)
14759 case $host_cpu in
14760 powerpc)
14761 # Since July 2007 AmigaOS4 officially supports .so libraries.
14762 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 ;;
14765 m68k)
14766 library_names_spec='$libname.ixlibrary $libname.a'
14767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14768 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'
14769 ;;
14770 esac
14771 ;;
14772
14773 beos*)
14774 library_names_spec='${libname}${shared_ext}'
14775 dynamic_linker="$host_os ld.so"
14776 shlibpath_var=LIBRARY_PATH
14777 ;;
14778
14779 bsdi[45]*)
14780 version_type=linux
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14788 # the default ld.so.conf also contains /usr/contrib/lib and
14789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14790 # libtool to hard-code these into programs
14791 ;;
14792
14793 cygwin* | mingw* | pw32* | cegcc*)
14794 version_type=windows
14795 shrext_cmds=".dll"
14796 need_version=no
14797 need_lib_prefix=no
14798
14799 case $GCC,$host_os in
14800 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14801 library_names_spec='$libname.dll.a'
14802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14803 postinstall_cmds='base_file=`basename \${file}`~
14804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14805 dldir=$destdir/`dirname \$dlpath`~
14806 test -d \$dldir || mkdir -p \$dldir~
14807 $install_prog $dir/$dlname \$dldir/$dlname~
14808 chmod a+x \$dldir/$dlname~
14809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14811 fi'
14812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14813 dlpath=$dir/\$dldll~
14814 $RM \$dlpath'
14815 shlibpath_overrides_runpath=yes
14816
14817 case $host_os in
14818 cygwin*)
14819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821
14822 ;;
14823 mingw* | cegcc*)
14824 # MinGW DLLs use traditional 'lib' prefix
14825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14826 ;;
14827 pw32*)
14828 # pw32 DLLs use 'pw' prefix rather than 'lib'
14829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14830 ;;
14831 esac
14832 ;;
14833
14834 *)
14835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14836 ;;
14837 esac
14838 dynamic_linker='Win32 ld.exe'
14839 # FIXME: first we should search . and the directory the executable is in
14840 shlibpath_var=PATH
14841 ;;
14842
14843 darwin* | rhapsody*)
14844 dynamic_linker="$host_os dyld"
14845 version_type=darwin
14846 need_lib_prefix=no
14847 need_version=no
14848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14849 soname_spec='${libname}${release}${major}$shared_ext'
14850 shlibpath_overrides_runpath=yes
14851 shlibpath_var=DYLD_LIBRARY_PATH
14852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14853
14854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14855 ;;
14856
14857 dgux*)
14858 version_type=linux
14859 need_lib_prefix=no
14860 need_version=no
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 ;;
14865
14866 freebsd* | dragonfly*)
14867 # DragonFly does not have aout. When/if they implement a new
14868 # versioning mechanism, adjust this.
14869 if test -x /usr/bin/objformat; then
14870 objformat=`/usr/bin/objformat`
14871 else
14872 case $host_os in
14873 freebsd[23].*) objformat=aout ;;
14874 *) objformat=elf ;;
14875 esac
14876 fi
14877 version_type=freebsd-$objformat
14878 case $version_type in
14879 freebsd-elf*)
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14881 need_version=no
14882 need_lib_prefix=no
14883 ;;
14884 freebsd-*)
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14886 need_version=yes
14887 ;;
14888 esac
14889 shlibpath_var=LD_LIBRARY_PATH
14890 case $host_os in
14891 freebsd2.*)
14892 shlibpath_overrides_runpath=yes
14893 ;;
14894 freebsd3.[01]* | freebsdelf3.[01]*)
14895 shlibpath_overrides_runpath=yes
14896 hardcode_into_libs=yes
14897 ;;
14898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14900 shlibpath_overrides_runpath=no
14901 hardcode_into_libs=yes
14902 ;;
14903 *) # from 4.6 on, and DragonFly
14904 shlibpath_overrides_runpath=yes
14905 hardcode_into_libs=yes
14906 ;;
14907 esac
14908 ;;
14909
14910 gnu*)
14911 version_type=linux
14912 need_lib_prefix=no
14913 need_version=no
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 hardcode_into_libs=yes
14918 ;;
14919
14920 haiku*)
14921 version_type=linux
14922 need_lib_prefix=no
14923 need_version=no
14924 dynamic_linker="$host_os runtime_loader"
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 shlibpath_var=LIBRARY_PATH
14928 shlibpath_overrides_runpath=yes
14929 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14930 hardcode_into_libs=yes
14931 ;;
14932
14933 hpux9* | hpux10* | hpux11*)
14934 # Give a soname corresponding to the major version so that dld.sl refuses to
14935 # link against other versions.
14936 version_type=sunos
14937 need_lib_prefix=no
14938 need_version=no
14939 case $host_cpu in
14940 ia64*)
14941 shrext_cmds='.so'
14942 hardcode_into_libs=yes
14943 dynamic_linker="$host_os dld.so"
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 if test "X$HPUX_IA64_MODE" = X32; then
14949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14950 else
14951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14952 fi
14953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954 ;;
14955 hppa*64*)
14956 shrext_cmds='.sl'
14957 hardcode_into_libs=yes
14958 dynamic_linker="$host_os dld.sl"
14959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14965 ;;
14966 *)
14967 shrext_cmds='.sl'
14968 dynamic_linker="$host_os dld.sl"
14969 shlibpath_var=SHLIB_PATH
14970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14973 ;;
14974 esac
14975 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14976 postinstall_cmds='chmod 555 $lib'
14977 # or fails outright, so override atomically:
14978 install_override_mode=555
14979 ;;
14980
14981 interix[3-9]*)
14982 version_type=linux
14983 need_lib_prefix=no
14984 need_version=no
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 shlibpath_overrides_runpath=no
14990 hardcode_into_libs=yes
14991 ;;
14992
14993 irix5* | irix6* | nonstopux*)
14994 case $host_os in
14995 nonstopux*) version_type=nonstopux ;;
14996 *)
14997 if test "$lt_cv_prog_gnu_ld" = yes; then
14998 version_type=linux
14999 else
15000 version_type=irix
15001 fi ;;
15002 esac
15003 need_lib_prefix=no
15004 need_version=no
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15007 case $host_os in
15008 irix5* | nonstopux*)
15009 libsuff= shlibsuff=
15010 ;;
15011 *)
15012 case $LD in # libtool.m4 will add one of these switches to LD
15013 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15014 libsuff= shlibsuff= libmagic=32-bit;;
15015 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15016 libsuff=32 shlibsuff=N32 libmagic=N32;;
15017 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15018 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15019 *) libsuff= shlibsuff= libmagic=never-match;;
15020 esac
15021 ;;
15022 esac
15023 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15024 shlibpath_overrides_runpath=no
15025 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15026 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15027 hardcode_into_libs=yes
15028 ;;
15029
15030 # No shared lib support for Linux oldld, aout, or coff.
15031 linux*oldld* | linux*aout* | linux*coff*)
15032 dynamic_linker=no
15033 ;;
15034
15035 # This must be Linux ELF.
15036 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15037 version_type=linux
15038 need_lib_prefix=no
15039 need_version=no
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 shlibpath_overrides_runpath=no
15045
15046 # Some binutils ld are patched to set DT_RUNPATH
15047 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 lt_cv_shlibpath_overrides_runpath=no
15051 save_LDFLAGS=$LDFLAGS
15052 save_libdir=$libdir
15053 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15054 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057
15058 int
15059 main ()
15060 {
15061
15062 ;
15063 return 0;
15064 }
15065 _ACEOF
15066 if ac_fn_cxx_try_link "$LINENO"; then :
15067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15068 lt_cv_shlibpath_overrides_runpath=yes
15069 fi
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LDFLAGS=$save_LDFLAGS
15074 libdir=$save_libdir
15075
15076 fi
15077
15078 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15079
15080 # This implies no fast_install, which is unacceptable.
15081 # Some rework will be needed to allow for fast_install
15082 # before this can be enabled.
15083 hardcode_into_libs=yes
15084
15085 # Append ld.so.conf contents to the search path
15086 if test -f /etc/ld.so.conf; then
15087 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' ' '`
15088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15089 fi
15090
15091 # We used to test for /lib/ld.so.1 and disable shared libraries on
15092 # powerpc, because MkLinux only supported shared libraries with the
15093 # GNU dynamic linker. Since this was broken with cross compilers,
15094 # most powerpc-linux boxes support dynamic linking these days and
15095 # people can always --disable-shared, the test was removed, and we
15096 # assume the GNU/Linux dynamic linker is in use.
15097 dynamic_linker='GNU/Linux ld.so'
15098 ;;
15099
15100 netbsd*)
15101 version_type=sunos
15102 need_lib_prefix=no
15103 need_version=no
15104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15107 dynamic_linker='NetBSD (a.out) ld.so'
15108 else
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 dynamic_linker='NetBSD ld.elf_so'
15112 fi
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=yes
15115 hardcode_into_libs=yes
15116 ;;
15117
15118 newsos6)
15119 version_type=linux
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=yes
15123 ;;
15124
15125 *nto* | *qnx*)
15126 version_type=qnx
15127 need_lib_prefix=no
15128 need_version=no
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 shlibpath_overrides_runpath=no
15133 hardcode_into_libs=yes
15134 dynamic_linker='ldqnx.so'
15135 ;;
15136
15137 openbsd*)
15138 version_type=sunos
15139 sys_lib_dlsearch_path_spec="/usr/lib"
15140 need_lib_prefix=no
15141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15142 case $host_os in
15143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15144 *) need_version=no ;;
15145 esac
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15150 case $host_os in
15151 openbsd2.[89] | openbsd2.[89].*)
15152 shlibpath_overrides_runpath=no
15153 ;;
15154 *)
15155 shlibpath_overrides_runpath=yes
15156 ;;
15157 esac
15158 else
15159 shlibpath_overrides_runpath=yes
15160 fi
15161 ;;
15162
15163 os2*)
15164 libname_spec='$name'
15165 shrext_cmds=".dll"
15166 need_lib_prefix=no
15167 library_names_spec='$libname${shared_ext} $libname.a'
15168 dynamic_linker='OS/2 ld.exe'
15169 shlibpath_var=LIBPATH
15170 ;;
15171
15172 osf3* | osf4* | osf5*)
15173 version_type=osf
15174 need_lib_prefix=no
15175 need_version=no
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15181 ;;
15182
15183 rdos*)
15184 dynamic_linker=no
15185 ;;
15186
15187 solaris*)
15188 version_type=linux
15189 need_lib_prefix=no
15190 need_version=no
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 hardcode_into_libs=yes
15196 # ldd complains unless libraries are executable
15197 postinstall_cmds='chmod +x $lib'
15198 ;;
15199
15200 sunos4*)
15201 version_type=sunos
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 shlibpath_overrides_runpath=yes
15206 if test "$with_gnu_ld" = yes; then
15207 need_lib_prefix=no
15208 fi
15209 need_version=yes
15210 ;;
15211
15212 sysv4 | sysv4.3*)
15213 version_type=linux
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 case $host_vendor in
15218 sni)
15219 shlibpath_overrides_runpath=no
15220 need_lib_prefix=no
15221 runpath_var=LD_RUN_PATH
15222 ;;
15223 siemens)
15224 need_lib_prefix=no
15225 ;;
15226 motorola)
15227 need_lib_prefix=no
15228 need_version=no
15229 shlibpath_overrides_runpath=no
15230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15231 ;;
15232 esac
15233 ;;
15234
15235 sysv4*MP*)
15236 if test -d /usr/nec ;then
15237 version_type=linux
15238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15239 soname_spec='$libname${shared_ext}.$major'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 fi
15242 ;;
15243
15244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15245 version_type=freebsd-elf
15246 need_lib_prefix=no
15247 need_version=no
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15252 hardcode_into_libs=yes
15253 if test "$with_gnu_ld" = yes; then
15254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15255 else
15256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15257 case $host_os in
15258 sco3.2v5*)
15259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15260 ;;
15261 esac
15262 fi
15263 sys_lib_dlsearch_path_spec='/usr/lib'
15264 ;;
15265
15266 tpf*)
15267 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15268 version_type=linux
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 shlibpath_overrides_runpath=no
15274 hardcode_into_libs=yes
15275 ;;
15276
15277 uts4*)
15278 version_type=linux
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 ;;
15283
15284 *)
15285 dynamic_linker=no
15286 ;;
15287 esac
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15289 $as_echo "$dynamic_linker" >&6; }
15290 test "$dynamic_linker" = no && can_build_shared=no
15291
15292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15293 if test "$GCC" = yes; then
15294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15295 fi
15296
15297 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15298 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15299 fi
15300 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15301 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15302 fi
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15342 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15343 hardcode_action_CXX=
15344 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15345 test -n "$runpath_var_CXX" ||
15346 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15347
15348 # We can hardcode non-existent directories.
15349 if test "$hardcode_direct_CXX" != no &&
15350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15351 # have to relink, otherwise we might link with an installed library
15352 # when we should be linking with a yet-to-be-installed one
15353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15354 test "$hardcode_minus_L_CXX" != no; then
15355 # Linking always hardcodes the temporary library directory.
15356 hardcode_action_CXX=relink
15357 else
15358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15359 hardcode_action_CXX=immediate
15360 fi
15361 else
15362 # We cannot hardcode anything, or else we can only hardcode existing
15363 # directories.
15364 hardcode_action_CXX=unsupported
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15367 $as_echo "$hardcode_action_CXX" >&6; }
15368
15369 if test "$hardcode_action_CXX" = relink ||
15370 test "$inherit_rpath_CXX" = yes; then
15371 # Fast installation is not supported
15372 enable_fast_install=no
15373 elif test "$shlibpath_overrides_runpath" = yes ||
15374 test "$enable_shared" = no; then
15375 # Fast installation is not necessary
15376 enable_fast_install=needless
15377 fi
15378
15379
15380
15381
15382
15383
15384
15385 fi # test -n "$compiler"
15386
15387 CC=$lt_save_CC
15388 LDCXX=$LD
15389 LD=$lt_save_LD
15390 GCC=$lt_save_GCC
15391 with_gnu_ld=$lt_save_with_gnu_ld
15392 lt_cv_path_LDCXX=$lt_cv_path_LD
15393 lt_cv_path_LD=$lt_save_path_LD
15394 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15395 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15396 fi # test "$_lt_caught_CXX_error" != yes
15397
15398 ac_ext=c
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416 ac_config_commands="$ac_config_commands libtool"
15417
15418
15419
15420
15421 # Only expand once:
15422
15423
15424
15425
15426
15427 case $host in
15428 *-cygwin* | *-mingw*)
15429 # 'host' will be top-level target in the case of a target lib,
15430 # we must compare to with_cross_host to decide if this is a native
15431 # or cross-compiler and select where to install dlls appropriately.
15432 if test -n "$with_cross_host" &&
15433 test x"$with_cross_host" != x"no"; then
15434 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15435 else
15436 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15437 fi
15438 ;;
15439 *)
15440 lt_host_flags=
15441 ;;
15442 esac
15443
15444
15445
15446
15447
15448
15449 # For libtool versioning info, format is CURRENT:REVISION:AGE
15450 libtool_VERSION=1:0:0
15451
15452
15453 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15454
15455
15456 if test "${multilib}" = "yes"; then
15457 multilib_arg="--enable-multilib"
15458 else
15459 multilib_arg=
15460 fi
15461
15462 ac_config_files="$ac_config_files Makefile"
15463
15464
15465 if test "x$VTV_SUPPORTED" = "xyes"; then
15466 ac_config_files="$ac_config_files testsuite/Makefile"
15467
15468 fi
15469
15470 case "$target_os" in
15471 cygwin*|mingw32*)
15472 vtv_cygmin="yes"
15473 ;;
15474 *)
15475 vtv_cygmin="no"
15476 ;;
15477 esac
15478
15479 if test $vtv_cygmin = yes; then
15480 VTV_CYGMIN_TRUE=
15481 VTV_CYGMIN_FALSE='#'
15482 else
15483 VTV_CYGMIN_TRUE='#'
15484 VTV_CYGMIN_FALSE=
15485 fi
15486
15487
15488 for ac_func in _obstack_begin
15489 do :
15490 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15491 if test "x$ac_cv_func__obstack_begin" = x""yes; then :
15492 cat >>confdefs.h <<_ACEOF
15493 #define HAVE__OBSTACK_BEGIN 1
15494 _ACEOF
15495
15496 fi
15497 done
15498
15499 if test $ac_cv_func__obstack_begin = no; then
15500 VTV_NO_OBSTACK_TRUE=
15501 VTV_NO_OBSTACK_FALSE='#'
15502 else
15503 VTV_NO_OBSTACK_TRUE='#'
15504 VTV_NO_OBSTACK_FALSE=
15505 fi
15506
15507
15508 cat >confcache <<\_ACEOF
15509 # This file is a shell script that caches the results of configure
15510 # tests run on this system so they can be shared between configure
15511 # scripts and configure runs, see configure's option --config-cache.
15512 # It is not useful on other systems. If it contains results you don't
15513 # want to keep, you may remove or edit it.
15514 #
15515 # config.status only pays attention to the cache file if you give it
15516 # the --recheck option to rerun configure.
15517 #
15518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15520 # following values.
15521
15522 _ACEOF
15523
15524 # The following way of writing the cache mishandles newlines in values,
15525 # but we know of no workaround that is simple, portable, and efficient.
15526 # So, we kill variables containing newlines.
15527 # Ultrix sh set writes to stderr and can't be redirected directly,
15528 # and sets the high bit in the cache file unless we assign to the vars.
15529 (
15530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15531 eval ac_val=\$$ac_var
15532 case $ac_val in #(
15533 *${as_nl}*)
15534 case $ac_var in #(
15535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15537 esac
15538 case $ac_var in #(
15539 _ | IFS | as_nl) ;; #(
15540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15541 *) { eval $ac_var=; unset $ac_var;} ;;
15542 esac ;;
15543 esac
15544 done
15545
15546 (set) 2>&1 |
15547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15548 *${as_nl}ac_space=\ *)
15549 # `set' does not quote correctly, so add quotes: double-quote
15550 # substitution turns \\\\ into \\, and sed turns \\ into \.
15551 sed -n \
15552 "s/'/'\\\\''/g;
15553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15554 ;; #(
15555 *)
15556 # `set' quotes correctly as required by POSIX, so do not add quotes.
15557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15558 ;;
15559 esac |
15560 sort
15561 ) |
15562 sed '
15563 /^ac_cv_env_/b end
15564 t clear
15565 :clear
15566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15567 t end
15568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15569 :end' >>confcache
15570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15571 if test -w "$cache_file"; then
15572 test "x$cache_file" != "x/dev/null" &&
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15574 $as_echo "$as_me: updating cache $cache_file" >&6;}
15575 cat confcache >$cache_file
15576 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15579 fi
15580 fi
15581 rm -f confcache
15582
15583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15584 # Let make expand exec_prefix.
15585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15586
15587 # Transform confdefs.h into DEFS.
15588 # Protect against shell expansion while executing Makefile rules.
15589 # Protect against Makefile macro expansion.
15590 #
15591 # If the first sed substitution is executed (which looks for macros that
15592 # take arguments), then branch to the quote section. Otherwise,
15593 # look for a macro that doesn't take arguments.
15594 ac_script='
15595 :mline
15596 /\\$/{
15597 N
15598 s,\\\n,,
15599 b mline
15600 }
15601 t clear
15602 :clear
15603 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15604 t quote
15605 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15606 t quote
15607 b any
15608 :quote
15609 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15610 s/\[/\\&/g
15611 s/\]/\\&/g
15612 s/\$/$$/g
15613 H
15614 :any
15615 ${
15616 g
15617 s/^\n//
15618 s/\n/ /g
15619 p
15620 }
15621 '
15622 DEFS=`sed -n "$ac_script" confdefs.h`
15623
15624
15625 ac_libobjs=
15626 ac_ltlibobjs=
15627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15628 # 1. Remove the extension, and $U if already installed.
15629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15632 # will be set to the directory where LIBOBJS objects are built.
15633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15634 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15635 done
15636 LIBOBJS=$ac_libobjs
15637
15638 LTLIBOBJS=$ac_ltlibobjs
15639
15640
15641 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15642 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644 fi
15645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15646 as_fn_error "conditional \"AMDEP\" was never defined.
15647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 fi
15649 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15650 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15652 fi
15653 if test -n "$EXEEXT"; then
15654 am__EXEEXT_TRUE=
15655 am__EXEEXT_FALSE='#'
15656 else
15657 am__EXEEXT_TRUE='#'
15658 am__EXEEXT_FALSE=
15659 fi
15660
15661 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15662 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664 fi
15665 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15666 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 fi
15669 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15670 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15672 fi
15673 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15674 as_fn_error "conditional \"VTV_NO_OBSTACK\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676 fi
15677
15678 : ${CONFIG_STATUS=./config.status}
15679 ac_write_fail=0
15680 ac_clean_files_save=$ac_clean_files
15681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15684 as_write_fail=0
15685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15686 #! $SHELL
15687 # Generated by $as_me.
15688 # Run this file to recreate the current configuration.
15689 # Compiler output produced by configure, useful for debugging
15690 # configure, is in config.log if it exists.
15691
15692 debug=false
15693 ac_cs_recheck=false
15694 ac_cs_silent=false
15695
15696 SHELL=\${CONFIG_SHELL-$SHELL}
15697 export SHELL
15698 _ASEOF
15699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15700 ## -------------------- ##
15701 ## M4sh Initialization. ##
15702 ## -------------------- ##
15703
15704 # Be more Bourne compatible
15705 DUALCASE=1; export DUALCASE # for MKS sh
15706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15707 emulate sh
15708 NULLCMD=:
15709 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15710 # is contrary to our usage. Disable this feature.
15711 alias -g '${1+"$@"}'='"$@"'
15712 setopt NO_GLOB_SUBST
15713 else
15714 case `(set -o) 2>/dev/null` in #(
15715 *posix*) :
15716 set -o posix ;; #(
15717 *) :
15718 ;;
15719 esac
15720 fi
15721
15722
15723 as_nl='
15724 '
15725 export as_nl
15726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15730 # Prefer a ksh shell builtin over an external printf program on Solaris,
15731 # but without wasting forks for bash or zsh.
15732 if test -z "$BASH_VERSION$ZSH_VERSION" \
15733 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15734 as_echo='print -r --'
15735 as_echo_n='print -rn --'
15736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15737 as_echo='printf %s\n'
15738 as_echo_n='printf %s'
15739 else
15740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15742 as_echo_n='/usr/ucb/echo -n'
15743 else
15744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15745 as_echo_n_body='eval
15746 arg=$1;
15747 case $arg in #(
15748 *"$as_nl"*)
15749 expr "X$arg" : "X\\(.*\\)$as_nl";
15750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15751 esac;
15752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15753 '
15754 export as_echo_n_body
15755 as_echo_n='sh -c $as_echo_n_body as_echo'
15756 fi
15757 export as_echo_body
15758 as_echo='sh -c $as_echo_body as_echo'
15759 fi
15760
15761 # The user is always right.
15762 if test "${PATH_SEPARATOR+set}" != set; then
15763 PATH_SEPARATOR=:
15764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15766 PATH_SEPARATOR=';'
15767 }
15768 fi
15769
15770
15771 # IFS
15772 # We need space, tab and new line, in precisely that order. Quoting is
15773 # there to prevent editors from complaining about space-tab.
15774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15775 # splitting by setting IFS to empty value.)
15776 IFS=" "" $as_nl"
15777
15778 # Find who we are. Look in the path if we contain no directory separator.
15779 case $0 in #((
15780 *[\\/]* ) as_myself=$0 ;;
15781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782 for as_dir in $PATH
15783 do
15784 IFS=$as_save_IFS
15785 test -z "$as_dir" && as_dir=.
15786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15787 done
15788 IFS=$as_save_IFS
15789
15790 ;;
15791 esac
15792 # We did not find ourselves, most probably we were run as `sh COMMAND'
15793 # in which case we are not to be found in the path.
15794 if test "x$as_myself" = x; then
15795 as_myself=$0
15796 fi
15797 if test ! -f "$as_myself"; then
15798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15799 exit 1
15800 fi
15801
15802 # Unset variables that we do not need and which cause bugs (e.g. in
15803 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15804 # suppresses any "Segmentation fault" message there. '((' could
15805 # trigger a bug in pdksh 5.2.14.
15806 for as_var in BASH_ENV ENV MAIL MAILPATH
15807 do eval test x\${$as_var+set} = xset \
15808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15809 done
15810 PS1='$ '
15811 PS2='> '
15812 PS4='+ '
15813
15814 # NLS nuisances.
15815 LC_ALL=C
15816 export LC_ALL
15817 LANGUAGE=C
15818 export LANGUAGE
15819
15820 # CDPATH.
15821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15822
15823
15824 # as_fn_error ERROR [LINENO LOG_FD]
15825 # ---------------------------------
15826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15828 # script with status $?, using 1 if that was 0.
15829 as_fn_error ()
15830 {
15831 as_status=$?; test $as_status -eq 0 && as_status=1
15832 if test "$3"; then
15833 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15835 fi
15836 $as_echo "$as_me: error: $1" >&2
15837 as_fn_exit $as_status
15838 } # as_fn_error
15839
15840
15841 # as_fn_set_status STATUS
15842 # -----------------------
15843 # Set $? to STATUS, without forking.
15844 as_fn_set_status ()
15845 {
15846 return $1
15847 } # as_fn_set_status
15848
15849 # as_fn_exit STATUS
15850 # -----------------
15851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15852 as_fn_exit ()
15853 {
15854 set +e
15855 as_fn_set_status $1
15856 exit $1
15857 } # as_fn_exit
15858
15859 # as_fn_unset VAR
15860 # ---------------
15861 # Portably unset VAR.
15862 as_fn_unset ()
15863 {
15864 { eval $1=; unset $1;}
15865 }
15866 as_unset=as_fn_unset
15867 # as_fn_append VAR VALUE
15868 # ----------------------
15869 # Append the text in VALUE to the end of the definition contained in VAR. Take
15870 # advantage of any shell optimizations that allow amortized linear growth over
15871 # repeated appends, instead of the typical quadratic growth present in naive
15872 # implementations.
15873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15874 eval 'as_fn_append ()
15875 {
15876 eval $1+=\$2
15877 }'
15878 else
15879 as_fn_append ()
15880 {
15881 eval $1=\$$1\$2
15882 }
15883 fi # as_fn_append
15884
15885 # as_fn_arith ARG...
15886 # ------------------
15887 # Perform arithmetic evaluation on the ARGs, and store the result in the
15888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15889 # must be portable across $(()) and expr.
15890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15891 eval 'as_fn_arith ()
15892 {
15893 as_val=$(( $* ))
15894 }'
15895 else
15896 as_fn_arith ()
15897 {
15898 as_val=`expr "$@" || test $? -eq 1`
15899 }
15900 fi # as_fn_arith
15901
15902
15903 if expr a : '\(a\)' >/dev/null 2>&1 &&
15904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15905 as_expr=expr
15906 else
15907 as_expr=false
15908 fi
15909
15910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15911 as_basename=basename
15912 else
15913 as_basename=false
15914 fi
15915
15916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15917 as_dirname=dirname
15918 else
15919 as_dirname=false
15920 fi
15921
15922 as_me=`$as_basename -- "$0" ||
15923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15924 X"$0" : 'X\(//\)$' \| \
15925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15926 $as_echo X/"$0" |
15927 sed '/^.*\/\([^/][^/]*\)\/*$/{
15928 s//\1/
15929 q
15930 }
15931 /^X\/\(\/\/\)$/{
15932 s//\1/
15933 q
15934 }
15935 /^X\/\(\/\).*/{
15936 s//\1/
15937 q
15938 }
15939 s/.*/./; q'`
15940
15941 # Avoid depending upon Character Ranges.
15942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15945 as_cr_digits='0123456789'
15946 as_cr_alnum=$as_cr_Letters$as_cr_digits
15947
15948 ECHO_C= ECHO_N= ECHO_T=
15949 case `echo -n x` in #(((((
15950 -n*)
15951 case `echo 'xy\c'` in
15952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15953 xy) ECHO_C='\c';;
15954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15955 ECHO_T=' ';;
15956 esac;;
15957 *)
15958 ECHO_N='-n';;
15959 esac
15960
15961 rm -f conf$$ conf$$.exe conf$$.file
15962 if test -d conf$$.dir; then
15963 rm -f conf$$.dir/conf$$.file
15964 else
15965 rm -f conf$$.dir
15966 mkdir conf$$.dir 2>/dev/null
15967 fi
15968 if (echo >conf$$.file) 2>/dev/null; then
15969 if ln -s conf$$.file conf$$ 2>/dev/null; then
15970 as_ln_s='ln -s'
15971 # ... but there are two gotchas:
15972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15974 # In both cases, we have to default to `cp -p'.
15975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15976 as_ln_s='cp -p'
15977 elif ln conf$$.file conf$$ 2>/dev/null; then
15978 as_ln_s=ln
15979 else
15980 as_ln_s='cp -p'
15981 fi
15982 else
15983 as_ln_s='cp -p'
15984 fi
15985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15986 rmdir conf$$.dir 2>/dev/null
15987
15988
15989 # as_fn_mkdir_p
15990 # -------------
15991 # Create "$as_dir" as a directory, including parents if necessary.
15992 as_fn_mkdir_p ()
15993 {
15994
15995 case $as_dir in #(
15996 -*) as_dir=./$as_dir;;
15997 esac
15998 test -d "$as_dir" || eval $as_mkdir_p || {
15999 as_dirs=
16000 while :; do
16001 case $as_dir in #(
16002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16003 *) as_qdir=$as_dir;;
16004 esac
16005 as_dirs="'$as_qdir' $as_dirs"
16006 as_dir=`$as_dirname -- "$as_dir" ||
16007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16008 X"$as_dir" : 'X\(//\)[^/]' \| \
16009 X"$as_dir" : 'X\(//\)$' \| \
16010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16011 $as_echo X"$as_dir" |
16012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\(\/\/\)[^/].*/{
16017 s//\1/
16018 q
16019 }
16020 /^X\(\/\/\)$/{
16021 s//\1/
16022 q
16023 }
16024 /^X\(\/\).*/{
16025 s//\1/
16026 q
16027 }
16028 s/.*/./; q'`
16029 test -d "$as_dir" && break
16030 done
16031 test -z "$as_dirs" || eval "mkdir $as_dirs"
16032 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16033
16034
16035 } # as_fn_mkdir_p
16036 if mkdir -p . 2>/dev/null; then
16037 as_mkdir_p='mkdir -p "$as_dir"'
16038 else
16039 test -d ./-p && rmdir ./-p
16040 as_mkdir_p=false
16041 fi
16042
16043 if test -x / >/dev/null 2>&1; then
16044 as_test_x='test -x'
16045 else
16046 if ls -dL / >/dev/null 2>&1; then
16047 as_ls_L_option=L
16048 else
16049 as_ls_L_option=
16050 fi
16051 as_test_x='
16052 eval sh -c '\''
16053 if test -d "$1"; then
16054 test -d "$1/.";
16055 else
16056 case $1 in #(
16057 -*)set "./$1";;
16058 esac;
16059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16060 ???[sx]*):;;*)false;;esac;fi
16061 '\'' sh
16062 '
16063 fi
16064 as_executable_p=$as_test_x
16065
16066 # Sed expression to map a string onto a valid CPP name.
16067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16068
16069 # Sed expression to map a string onto a valid variable name.
16070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16071
16072
16073 exec 6>&1
16074 ## ----------------------------------- ##
16075 ## Main body of $CONFIG_STATUS script. ##
16076 ## ----------------------------------- ##
16077 _ASEOF
16078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # Save the log message, to keep $0 and so on meaningful, and to
16082 # report actual input values of CONFIG_FILES etc. instead of their
16083 # values after options handling.
16084 ac_log="
16085 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16086 generated by GNU Autoconf 2.64. Invocation command line was
16087
16088 CONFIG_FILES = $CONFIG_FILES
16089 CONFIG_HEADERS = $CONFIG_HEADERS
16090 CONFIG_LINKS = $CONFIG_LINKS
16091 CONFIG_COMMANDS = $CONFIG_COMMANDS
16092 $ $0 $@
16093
16094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16095 "
16096
16097 _ACEOF
16098
16099 case $ac_config_files in *"
16100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16101 esac
16102
16103
16104
16105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16106 # Files that config.status was made for.
16107 config_files="$ac_config_files"
16108 config_commands="$ac_config_commands"
16109
16110 _ACEOF
16111
16112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113 ac_cs_usage="\
16114 \`$as_me' instantiates files and other configuration actions
16115 from templates according to the current configuration. Unless the files
16116 and actions are specified as TAGs, all are instantiated by default.
16117
16118 Usage: $0 [OPTION]... [TAG]...
16119
16120 -h, --help print this help, then exit
16121 -V, --version print version number and configuration settings, then exit
16122 -q, --quiet, --silent
16123 do not print progress messages
16124 -d, --debug don't remove temporary files
16125 --recheck update $as_me by reconfiguring in the same conditions
16126 --file=FILE[:TEMPLATE]
16127 instantiate the configuration file FILE
16128
16129 Configuration files:
16130 $config_files
16131
16132 Configuration commands:
16133 $config_commands
16134
16135 Report bugs to the package provider.
16136 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16137 General help using GNU software: <http://www.gnu.org/gethelp/>."
16138
16139 _ACEOF
16140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141 ac_cs_version="\\
16142 GNU Vtable Verification Runtime Library config.status 1.0
16143 configured by $0, generated by GNU Autoconf 2.64,
16144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16145
16146 Copyright (C) 2009 Free Software Foundation, Inc.
16147 This config.status script is free software; the Free Software Foundation
16148 gives unlimited permission to copy, distribute and modify it."
16149
16150 ac_pwd='$ac_pwd'
16151 srcdir='$srcdir'
16152 INSTALL='$INSTALL'
16153 MKDIR_P='$MKDIR_P'
16154 AWK='$AWK'
16155 test -n "\$AWK" || AWK=awk
16156 _ACEOF
16157
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159 # The default lists apply if the user does not specify any file.
16160 ac_need_defaults=:
16161 while test $# != 0
16162 do
16163 case $1 in
16164 --*=*)
16165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16166 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16167 ac_shift=:
16168 ;;
16169 *)
16170 ac_option=$1
16171 ac_optarg=$2
16172 ac_shift=shift
16173 ;;
16174 esac
16175
16176 case $ac_option in
16177 # Handling of the options.
16178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16179 ac_cs_recheck=: ;;
16180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16181 $as_echo "$ac_cs_version"; exit ;;
16182 --debug | --debu | --deb | --de | --d | -d )
16183 debug=: ;;
16184 --file | --fil | --fi | --f )
16185 $ac_shift
16186 case $ac_optarg in
16187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16188 esac
16189 as_fn_append CONFIG_FILES " '$ac_optarg'"
16190 ac_need_defaults=false;;
16191 --he | --h | --help | --hel | -h )
16192 $as_echo "$ac_cs_usage"; exit ;;
16193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16195 ac_cs_silent=: ;;
16196
16197 # This is an error.
16198 -*) as_fn_error "unrecognized option: \`$1'
16199 Try \`$0 --help' for more information." ;;
16200
16201 *) as_fn_append ac_config_targets " $1"
16202 ac_need_defaults=false ;;
16203
16204 esac
16205 shift
16206 done
16207
16208 ac_configure_extra_args=
16209
16210 if $ac_cs_silent; then
16211 exec 6>/dev/null
16212 ac_configure_extra_args="$ac_configure_extra_args --silent"
16213 fi
16214
16215 _ACEOF
16216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 if \$ac_cs_recheck; then
16218 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16219 shift
16220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16221 CONFIG_SHELL='$SHELL'
16222 export CONFIG_SHELL
16223 exec "\$@"
16224 fi
16225
16226 _ACEOF
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16228 exec 5>>config.log
16229 {
16230 echo
16231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16232 ## Running $as_me. ##
16233 _ASBOX
16234 $as_echo "$ac_log"
16235 } >&5
16236
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 #
16240 # INIT-COMMANDS
16241 #
16242
16243 srcdir="$srcdir"
16244 host="$host"
16245 target="$target"
16246 with_multisubdir="$with_multisubdir"
16247 with_multisrctop="$with_multisrctop"
16248 with_target_subdir="$with_target_subdir"
16249 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16250 multi_basedir="$multi_basedir"
16251 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16252 CC="$CC"
16253 CXX="$CXX"
16254 GFORTRAN="$GFORTRAN"
16255 GCJ="$GCJ"
16256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16257
16258
16259 # The HP-UX ksh and POSIX shell print the target directory to stdout
16260 # if CDPATH is set.
16261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16262
16263 sed_quote_subst='$sed_quote_subst'
16264 double_quote_subst='$double_quote_subst'
16265 delay_variable_subst='$delay_variable_subst'
16266 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16267 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16268 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16269 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16270 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16271 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16272 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16273 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16274 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16275 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16276 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16277 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16278 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16279 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16280 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16281 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16282 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16283 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16284 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16285 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16286 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16287 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16288 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16289 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16290 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16291 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16292 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16293 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16294 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16295 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16296 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16297 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16298 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16299 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16300 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16301 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16302 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16303 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16304 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16305 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16306 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16307 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16308 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16309 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16310 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16311 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16312 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16313 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16314 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"`'
16315 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16316 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16317 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16318 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16319 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16321 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16322 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16323 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16324 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16325 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16326 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16327 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16328 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16329 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16330 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16331 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16332 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16333 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16334 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16335 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16336 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16337 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16338 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16339 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16340 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16341 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16342 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16343 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16344 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16345 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16346 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16347 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16348 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16349 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16350 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16351 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16352 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16353 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16354 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16355 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16356 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16357 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16358 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16359 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16360 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16361 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16362 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16363 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16364 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16365 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16366 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16367 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16368 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16369 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16370 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16371 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16372 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16373 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16374 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16375 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16376 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16377 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16378 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16379 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16380 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16381 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16382 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16383 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16384 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16385 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16386 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16387 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16388 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16389 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16390 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16391 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16392 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16393 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16394 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16396 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16397 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16398 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16399 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16400 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16401 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16402 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16403 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16404 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16405 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16406 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16407 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16408 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16409 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16410 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16411 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16412 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16413 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16414 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16415 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16416 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16417 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16418 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16419 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16420 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16421 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16422 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16423 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16424 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16425 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16426 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16427 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16428 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16429 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16430 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16431 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16432 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16433 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16434 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16435 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16436 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16437 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16438 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16439 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16440 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16441
16442 LTCC='$LTCC'
16443 LTCFLAGS='$LTCFLAGS'
16444 compiler='$compiler_DEFAULT'
16445
16446 # A function that is used when there is no print builtin or printf.
16447 func_fallback_echo ()
16448 {
16449 eval 'cat <<_LTECHO_EOF
16450 \$1
16451 _LTECHO_EOF'
16452 }
16453
16454 # Quote evaled strings.
16455 for var in SHELL \
16456 ECHO \
16457 SED \
16458 GREP \
16459 EGREP \
16460 FGREP \
16461 LD \
16462 NM \
16463 LN_S \
16464 lt_SP2NL \
16465 lt_NL2SP \
16466 reload_flag \
16467 OBJDUMP \
16468 deplibs_check_method \
16469 file_magic_cmd \
16470 AR \
16471 AR_FLAGS \
16472 STRIP \
16473 RANLIB \
16474 CC \
16475 CFLAGS \
16476 compiler \
16477 lt_cv_sys_global_symbol_pipe \
16478 lt_cv_sys_global_symbol_to_cdecl \
16479 lt_cv_sys_global_symbol_to_c_name_address \
16480 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16481 lt_prog_compiler_no_builtin_flag \
16482 lt_prog_compiler_wl \
16483 lt_prog_compiler_pic \
16484 lt_prog_compiler_static \
16485 lt_cv_prog_compiler_c_o \
16486 need_locks \
16487 DSYMUTIL \
16488 NMEDIT \
16489 LIPO \
16490 OTOOL \
16491 OTOOL64 \
16492 shrext_cmds \
16493 export_dynamic_flag_spec \
16494 whole_archive_flag_spec \
16495 compiler_needs_object \
16496 with_gnu_ld \
16497 allow_undefined_flag \
16498 no_undefined_flag \
16499 hardcode_libdir_flag_spec \
16500 hardcode_libdir_flag_spec_ld \
16501 hardcode_libdir_separator \
16502 fix_srcfile_path \
16503 exclude_expsyms \
16504 include_expsyms \
16505 file_list_spec \
16506 variables_saved_for_relink \
16507 libname_spec \
16508 library_names_spec \
16509 soname_spec \
16510 install_override_mode \
16511 finish_eval \
16512 old_striplib \
16513 striplib \
16514 compiler_lib_search_dirs \
16515 predep_objects \
16516 postdep_objects \
16517 predeps \
16518 postdeps \
16519 compiler_lib_search_path \
16520 LD_CXX \
16521 reload_flag_CXX \
16522 compiler_CXX \
16523 lt_prog_compiler_no_builtin_flag_CXX \
16524 lt_prog_compiler_wl_CXX \
16525 lt_prog_compiler_pic_CXX \
16526 lt_prog_compiler_static_CXX \
16527 lt_cv_prog_compiler_c_o_CXX \
16528 export_dynamic_flag_spec_CXX \
16529 whole_archive_flag_spec_CXX \
16530 compiler_needs_object_CXX \
16531 with_gnu_ld_CXX \
16532 allow_undefined_flag_CXX \
16533 no_undefined_flag_CXX \
16534 hardcode_libdir_flag_spec_CXX \
16535 hardcode_libdir_flag_spec_ld_CXX \
16536 hardcode_libdir_separator_CXX \
16537 fix_srcfile_path_CXX \
16538 exclude_expsyms_CXX \
16539 include_expsyms_CXX \
16540 file_list_spec_CXX \
16541 compiler_lib_search_dirs_CXX \
16542 predep_objects_CXX \
16543 postdep_objects_CXX \
16544 predeps_CXX \
16545 postdeps_CXX \
16546 compiler_lib_search_path_CXX; do
16547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16548 *[\\\\\\\`\\"\\\$]*)
16549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16550 ;;
16551 *)
16552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16553 ;;
16554 esac
16555 done
16556
16557 # Double-quote double-evaled strings.
16558 for var in reload_cmds \
16559 old_postinstall_cmds \
16560 old_postuninstall_cmds \
16561 old_archive_cmds \
16562 extract_expsyms_cmds \
16563 old_archive_from_new_cmds \
16564 old_archive_from_expsyms_cmds \
16565 archive_cmds \
16566 archive_expsym_cmds \
16567 module_cmds \
16568 module_expsym_cmds \
16569 export_symbols_cmds \
16570 prelink_cmds \
16571 postinstall_cmds \
16572 postuninstall_cmds \
16573 finish_cmds \
16574 sys_lib_search_path_spec \
16575 sys_lib_dlsearch_path_spec \
16576 reload_cmds_CXX \
16577 old_archive_cmds_CXX \
16578 old_archive_from_new_cmds_CXX \
16579 old_archive_from_expsyms_cmds_CXX \
16580 archive_cmds_CXX \
16581 archive_expsym_cmds_CXX \
16582 module_cmds_CXX \
16583 module_expsym_cmds_CXX \
16584 export_symbols_cmds_CXX \
16585 prelink_cmds_CXX; do
16586 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16587 *[\\\\\\\`\\"\\\$]*)
16588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16589 ;;
16590 *)
16591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16592 ;;
16593 esac
16594 done
16595
16596 ac_aux_dir='$ac_aux_dir'
16597 xsi_shell='$xsi_shell'
16598 lt_shell_append='$lt_shell_append'
16599
16600 # See if we are running on zsh, and set the options which allow our
16601 # commands through without removal of \ escapes INIT.
16602 if test -n "\${ZSH_VERSION+set}" ; then
16603 setopt NO_GLOB_SUBST
16604 fi
16605
16606
16607 PACKAGE='$PACKAGE'
16608 VERSION='$VERSION'
16609 TIMESTAMP='$TIMESTAMP'
16610 RM='$RM'
16611 ofile='$ofile'
16612
16613
16614
16615
16616
16617
16618 _ACEOF
16619
16620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621
16622 # Handling of arguments.
16623 for ac_config_target in $ac_config_targets
16624 do
16625 case $ac_config_target in
16626 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16627 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16628 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16630 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16631
16632 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16633 esac
16634 done
16635
16636
16637 # If the user did not use the arguments to specify the items to instantiate,
16638 # then the envvar interface is used. Set only those that are not.
16639 # We use the long form for the default assignment because of an extremely
16640 # bizarre bug on SunOS 4.1.3.
16641 if $ac_need_defaults; then
16642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16644 fi
16645
16646 # Have a temporary directory for convenience. Make it in the build tree
16647 # simply because there is no reason against having it here, and in addition,
16648 # creating and moving files from /tmp can sometimes cause problems.
16649 # Hook for its removal unless debugging.
16650 # Note that there is a small window in which the directory will not be cleaned:
16651 # after its creation but before its name has been assigned to `$tmp'.
16652 $debug ||
16653 {
16654 tmp=
16655 trap 'exit_status=$?
16656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16657 ' 0
16658 trap 'as_fn_exit 1' 1 2 13 15
16659 }
16660 # Create a (secure) tmp directory for tmp files.
16661
16662 {
16663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16664 test -n "$tmp" && test -d "$tmp"
16665 } ||
16666 {
16667 tmp=./conf$$-$RANDOM
16668 (umask 077 && mkdir "$tmp")
16669 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16670
16671 # Set up the scripts for CONFIG_FILES section.
16672 # No need to generate them if there are no CONFIG_FILES.
16673 # This happens for instance with `./config.status config.h'.
16674 if test -n "$CONFIG_FILES"; then
16675
16676
16677 ac_cr=`echo X | tr X '\015'`
16678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16679 # But we know of no other shell where ac_cr would be empty at this
16680 # point, so we can use a bashism as a fallback.
16681 if test "x$ac_cr" = x; then
16682 eval ac_cr=\$\'\\r\'
16683 fi
16684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16686 ac_cs_awk_cr='\r'
16687 else
16688 ac_cs_awk_cr=$ac_cr
16689 fi
16690
16691 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16692 _ACEOF
16693
16694
16695 {
16696 echo "cat >conf$$subs.awk <<_ACEOF" &&
16697 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16698 echo "_ACEOF"
16699 } >conf$$subs.sh ||
16700 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16701 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16702 ac_delim='%!_!# '
16703 for ac_last_try in false false false false false :; do
16704 . ./conf$$subs.sh ||
16705 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16706
16707 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16708 if test $ac_delim_n = $ac_delim_num; then
16709 break
16710 elif $ac_last_try; then
16711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16712 else
16713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16714 fi
16715 done
16716 rm -f conf$$subs.sh
16717
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16720 _ACEOF
16721 sed -n '
16722 h
16723 s/^/S["/; s/!.*/"]=/
16724 p
16725 g
16726 s/^[^!]*!//
16727 :repl
16728 t repl
16729 s/'"$ac_delim"'$//
16730 t delim
16731 :nl
16732 h
16733 s/\(.\{148\}\).*/\1/
16734 t more1
16735 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16736 p
16737 n
16738 b repl
16739 :more1
16740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16741 p
16742 g
16743 s/.\{148\}//
16744 t nl
16745 :delim
16746 h
16747 s/\(.\{148\}\).*/\1/
16748 t more2
16749 s/["\\]/\\&/g; s/^/"/; s/$/"/
16750 p
16751 b
16752 :more2
16753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16754 p
16755 g
16756 s/.\{148\}//
16757 t delim
16758 ' <conf$$subs.awk | sed '
16759 /^[^""]/{
16760 N
16761 s/\n//
16762 }
16763 ' >>$CONFIG_STATUS || ac_write_fail=1
16764 rm -f conf$$subs.awk
16765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16766 _ACAWK
16767 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16768 for (key in S) S_is_set[key] = 1
16769 FS = "\a"
16770
16771 }
16772 {
16773 line = $ 0
16774 nfields = split(line, field, "@")
16775 substed = 0
16776 len = length(field[1])
16777 for (i = 2; i < nfields; i++) {
16778 key = field[i]
16779 keylen = length(key)
16780 if (S_is_set[key]) {
16781 value = S[key]
16782 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16783 len += length(value) + length(field[++i])
16784 substed = 1
16785 } else
16786 len += 1 + keylen
16787 }
16788
16789 print line
16790 }
16791
16792 _ACAWK
16793 _ACEOF
16794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16796 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16797 else
16798 cat
16799 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16800 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16801 _ACEOF
16802
16803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16805 # trailing colons and then remove the whole line if VPATH becomes empty
16806 # (actually we leave an empty line to preserve line numbers).
16807 if test "x$srcdir" = x.; then
16808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16809 s/:*\$(srcdir):*/:/
16810 s/:*\${srcdir}:*/:/
16811 s/:*@srcdir@:*/:/
16812 s/^\([^=]*=[ ]*\):*/\1/
16813 s/:*$//
16814 s/^[^=]*=[ ]*$//
16815 }'
16816 fi
16817
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819 fi # test -n "$CONFIG_FILES"
16820
16821
16822 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16823 shift
16824 for ac_tag
16825 do
16826 case $ac_tag in
16827 :[FHLC]) ac_mode=$ac_tag; continue;;
16828 esac
16829 case $ac_mode$ac_tag in
16830 :[FHL]*:*);;
16831 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16832 :[FH]-) ac_tag=-:-;;
16833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16834 esac
16835 ac_save_IFS=$IFS
16836 IFS=:
16837 set x $ac_tag
16838 IFS=$ac_save_IFS
16839 shift
16840 ac_file=$1
16841 shift
16842
16843 case $ac_mode in
16844 :L) ac_source=$1;;
16845 :[FH])
16846 ac_file_inputs=
16847 for ac_f
16848 do
16849 case $ac_f in
16850 -) ac_f="$tmp/stdin";;
16851 *) # Look for the file first in the build tree, then in the source tree
16852 # (if the path is not absolute). The absolute path cannot be DOS-style,
16853 # because $ac_f cannot contain `:'.
16854 test -f "$ac_f" ||
16855 case $ac_f in
16856 [\\/$]*) false;;
16857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16858 esac ||
16859 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16860 esac
16861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16862 as_fn_append ac_file_inputs " '$ac_f'"
16863 done
16864
16865 # Let's still pretend it is `configure' which instantiates (i.e., don't
16866 # use $as_me), people would be surprised to read:
16867 # /* config.h. Generated by config.status. */
16868 configure_input='Generated from '`
16869 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16870 `' by configure.'
16871 if test x"$ac_file" != x-; then
16872 configure_input="$ac_file. $configure_input"
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16874 $as_echo "$as_me: creating $ac_file" >&6;}
16875 fi
16876 # Neutralize special characters interpreted by sed in replacement strings.
16877 case $configure_input in #(
16878 *\&* | *\|* | *\\* )
16879 ac_sed_conf_input=`$as_echo "$configure_input" |
16880 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16881 *) ac_sed_conf_input=$configure_input;;
16882 esac
16883
16884 case $ac_tag in
16885 *:-:* | *:-) cat >"$tmp/stdin" \
16886 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16887 esac
16888 ;;
16889 esac
16890
16891 ac_dir=`$as_dirname -- "$ac_file" ||
16892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893 X"$ac_file" : 'X\(//\)[^/]' \| \
16894 X"$ac_file" : 'X\(//\)$' \| \
16895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16896 $as_echo X"$ac_file" |
16897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16898 s//\1/
16899 q
16900 }
16901 /^X\(\/\/\)[^/].*/{
16902 s//\1/
16903 q
16904 }
16905 /^X\(\/\/\)$/{
16906 s//\1/
16907 q
16908 }
16909 /^X\(\/\).*/{
16910 s//\1/
16911 q
16912 }
16913 s/.*/./; q'`
16914 as_dir="$ac_dir"; as_fn_mkdir_p
16915 ac_builddir=.
16916
16917 case "$ac_dir" in
16918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16919 *)
16920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16921 # A ".." for each directory in $ac_dir_suffix.
16922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16923 case $ac_top_builddir_sub in
16924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16926 esac ;;
16927 esac
16928 ac_abs_top_builddir=$ac_pwd
16929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16930 # for backward compatibility:
16931 ac_top_builddir=$ac_top_build_prefix
16932
16933 case $srcdir in
16934 .) # We are building in place.
16935 ac_srcdir=.
16936 ac_top_srcdir=$ac_top_builddir_sub
16937 ac_abs_top_srcdir=$ac_pwd ;;
16938 [\\/]* | ?:[\\/]* ) # Absolute name.
16939 ac_srcdir=$srcdir$ac_dir_suffix;
16940 ac_top_srcdir=$srcdir
16941 ac_abs_top_srcdir=$srcdir ;;
16942 *) # Relative name.
16943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16944 ac_top_srcdir=$ac_top_build_prefix$srcdir
16945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16946 esac
16947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16948
16949
16950 case $ac_mode in
16951 :F)
16952 #
16953 # CONFIG_FILE
16954 #
16955
16956 case $INSTALL in
16957 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16958 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16959 esac
16960 ac_MKDIR_P=$MKDIR_P
16961 case $MKDIR_P in
16962 [\\/$]* | ?:[\\/]* ) ;;
16963 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16964 esac
16965 _ACEOF
16966
16967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16968 # If the template does not know about datarootdir, expand it.
16969 # FIXME: This hack should be removed a few years after 2.60.
16970 ac_datarootdir_hack=; ac_datarootdir_seen=
16971 ac_sed_dataroot='
16972 /datarootdir/ {
16973 p
16974 q
16975 }
16976 /@datadir@/p
16977 /@docdir@/p
16978 /@infodir@/p
16979 /@localedir@/p
16980 /@mandir@/p'
16981 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16982 *datarootdir*) ac_datarootdir_seen=yes;;
16983 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16985 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16986 _ACEOF
16987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988 ac_datarootdir_hack='
16989 s&@datadir@&$datadir&g
16990 s&@docdir@&$docdir&g
16991 s&@infodir@&$infodir&g
16992 s&@localedir@&$localedir&g
16993 s&@mandir@&$mandir&g
16994 s&\\\${datarootdir}&$datarootdir&g' ;;
16995 esac
16996 _ACEOF
16997
16998 # Neutralize VPATH when `$srcdir' = `.'.
16999 # Shell code in configure.ac might set extrasub.
17000 # FIXME: do we really want to maintain this feature?
17001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17002 ac_sed_extra="$ac_vpsub
17003 $extrasub
17004 _ACEOF
17005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17006 :t
17007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17008 s|@configure_input@|$ac_sed_conf_input|;t t
17009 s&@top_builddir@&$ac_top_builddir_sub&;t t
17010 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17011 s&@srcdir@&$ac_srcdir&;t t
17012 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17013 s&@top_srcdir@&$ac_top_srcdir&;t t
17014 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17015 s&@builddir@&$ac_builddir&;t t
17016 s&@abs_builddir@&$ac_abs_builddir&;t t
17017 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17018 s&@INSTALL@&$ac_INSTALL&;t t
17019 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17020 $ac_datarootdir_hack
17021 "
17022 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17023 || as_fn_error "could not create $ac_file" "$LINENO" 5
17024
17025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17026 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17029 which seems to be undefined. Please make sure it is defined." >&5
17030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17031 which seems to be undefined. Please make sure it is defined." >&2;}
17032
17033 rm -f "$tmp/stdin"
17034 case $ac_file in
17035 -) cat "$tmp/out" && rm -f "$tmp/out";;
17036 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17037 esac \
17038 || as_fn_error "could not create $ac_file" "$LINENO" 5
17039 ;;
17040
17041
17042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17043 $as_echo "$as_me: executing $ac_file commands" >&6;}
17044 ;;
17045 esac
17046
17047
17048 case $ac_file$ac_mode in
17049 "default-1":C)
17050 # Only add multilib support code if we just rebuilt the top-level
17051 # Makefile.
17052 case " $CONFIG_FILES " in
17053 *" Makefile "*)
17054 ac_file=Makefile . ${multi_basedir}/config-ml.in
17055 ;;
17056 esac ;;
17057 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17058 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17059 # are listed without --file. Let's play safe and only enable the eval
17060 # if we detect the quoting.
17061 case $CONFIG_FILES in
17062 *\'*) eval set x "$CONFIG_FILES" ;;
17063 *) set x $CONFIG_FILES ;;
17064 esac
17065 shift
17066 for mf
17067 do
17068 # Strip MF so we end up with the name of the file.
17069 mf=`echo "$mf" | sed -e 's/:.*$//'`
17070 # Check whether this is an Automake generated Makefile or not.
17071 # We used to match only the files named `Makefile.in', but
17072 # some people rename them; so instead we look at the file content.
17073 # Grep'ing the first line is not enough: some people post-process
17074 # each Makefile.in and add a new line on top of each file to say so.
17075 # Grep'ing the whole file is not good either: AIX grep has a line
17076 # limit of 2048, but all sed's we know have understand at least 4000.
17077 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17078 dirpart=`$as_dirname -- "$mf" ||
17079 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17080 X"$mf" : 'X\(//\)[^/]' \| \
17081 X"$mf" : 'X\(//\)$' \| \
17082 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17083 $as_echo X"$mf" |
17084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17085 s//\1/
17086 q
17087 }
17088 /^X\(\/\/\)[^/].*/{
17089 s//\1/
17090 q
17091 }
17092 /^X\(\/\/\)$/{
17093 s//\1/
17094 q
17095 }
17096 /^X\(\/\).*/{
17097 s//\1/
17098 q
17099 }
17100 s/.*/./; q'`
17101 else
17102 continue
17103 fi
17104 # Extract the definition of DEPDIR, am__include, and am__quote
17105 # from the Makefile without running `make'.
17106 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17107 test -z "$DEPDIR" && continue
17108 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17109 test -z "am__include" && continue
17110 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17111 # When using ansi2knr, U may be empty or an underscore; expand it
17112 U=`sed -n 's/^U = //p' < "$mf"`
17113 # Find all dependency output files, they are included files with
17114 # $(DEPDIR) in their names. We invoke sed twice because it is the
17115 # simplest approach to changing $(DEPDIR) to its actual value in the
17116 # expansion.
17117 for file in `sed -n "
17118 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17119 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17120 # Make sure the directory exists.
17121 test -f "$dirpart/$file" && continue
17122 fdir=`$as_dirname -- "$file" ||
17123 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17124 X"$file" : 'X\(//\)[^/]' \| \
17125 X"$file" : 'X\(//\)$' \| \
17126 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17127 $as_echo X"$file" |
17128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129 s//\1/
17130 q
17131 }
17132 /^X\(\/\/\)[^/].*/{
17133 s//\1/
17134 q
17135 }
17136 /^X\(\/\/\)$/{
17137 s//\1/
17138 q
17139 }
17140 /^X\(\/\).*/{
17141 s//\1/
17142 q
17143 }
17144 s/.*/./; q'`
17145 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17146 # echo "creating $dirpart/$file"
17147 echo '# dummy' > "$dirpart/$file"
17148 done
17149 done
17150 }
17151 ;;
17152 "libtool":C)
17153
17154 # See if we are running on zsh, and set the options which allow our
17155 # commands through without removal of \ escapes.
17156 if test -n "${ZSH_VERSION+set}" ; then
17157 setopt NO_GLOB_SUBST
17158 fi
17159
17160 cfgfile="${ofile}T"
17161 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17162 $RM "$cfgfile"
17163
17164 cat <<_LT_EOF >> "$cfgfile"
17165 #! $SHELL
17166
17167 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17168 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17169 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17170 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17171 #
17172 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17173 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17174 # Written by Gordon Matzigkeit, 1996
17175 #
17176 # This file is part of GNU Libtool.
17177 #
17178 # GNU Libtool is free software; you can redistribute it and/or
17179 # modify it under the terms of the GNU General Public License as
17180 # published by the Free Software Foundation; either version 2 of
17181 # the License, or (at your option) any later version.
17182 #
17183 # As a special exception to the GNU General Public License,
17184 # if you distribute this file as part of a program or library that
17185 # is built using GNU Libtool, you may include this file under the
17186 # same distribution terms that you use for the rest of that program.
17187 #
17188 # GNU Libtool is distributed in the hope that it will be useful,
17189 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17190 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17191 # GNU General Public License for more details.
17192 #
17193 # You should have received a copy of the GNU General Public License
17194 # along with GNU Libtool; see the file COPYING. If not, a copy
17195 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17196 # obtained by writing to the Free Software Foundation, Inc.,
17197 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17198
17199
17200 # The names of the tagged configurations supported by this script.
17201 available_tags="CXX "
17202
17203 # ### BEGIN LIBTOOL CONFIG
17204
17205 # Which release of libtool.m4 was used?
17206 macro_version=$macro_version
17207 macro_revision=$macro_revision
17208
17209 # Whether or not to build shared libraries.
17210 build_libtool_libs=$enable_shared
17211
17212 # Whether or not to build static libraries.
17213 build_old_libs=$enable_static
17214
17215 # What type of objects to build.
17216 pic_mode=$pic_mode
17217
17218 # Whether or not to optimize for fast installation.
17219 fast_install=$enable_fast_install
17220
17221 # Shell to use when invoking shell scripts.
17222 SHELL=$lt_SHELL
17223
17224 # An echo program that protects backslashes.
17225 ECHO=$lt_ECHO
17226
17227 # The host system.
17228 host_alias=$host_alias
17229 host=$host
17230 host_os=$host_os
17231
17232 # The build system.
17233 build_alias=$build_alias
17234 build=$build
17235 build_os=$build_os
17236
17237 # A sed program that does not truncate output.
17238 SED=$lt_SED
17239
17240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17241 Xsed="\$SED -e 1s/^X//"
17242
17243 # A grep program that handles long lines.
17244 GREP=$lt_GREP
17245
17246 # An ERE matcher.
17247 EGREP=$lt_EGREP
17248
17249 # A literal string matcher.
17250 FGREP=$lt_FGREP
17251
17252 # A BSD- or MS-compatible name lister.
17253 NM=$lt_NM
17254
17255 # Whether we need soft or hard links.
17256 LN_S=$lt_LN_S
17257
17258 # What is the maximum length of a command?
17259 max_cmd_len=$max_cmd_len
17260
17261 # Object file suffix (normally "o").
17262 objext=$ac_objext
17263
17264 # Executable file suffix (normally "").
17265 exeext=$exeext
17266
17267 # whether the shell understands "unset".
17268 lt_unset=$lt_unset
17269
17270 # turn spaces into newlines.
17271 SP2NL=$lt_lt_SP2NL
17272
17273 # turn newlines into spaces.
17274 NL2SP=$lt_lt_NL2SP
17275
17276 # An object symbol dumper.
17277 OBJDUMP=$lt_OBJDUMP
17278
17279 # Method to check whether dependent libraries are shared objects.
17280 deplibs_check_method=$lt_deplibs_check_method
17281
17282 # Command to use when deplibs_check_method == "file_magic".
17283 file_magic_cmd=$lt_file_magic_cmd
17284
17285 # The archiver.
17286 AR=$lt_AR
17287 AR_FLAGS=$lt_AR_FLAGS
17288
17289 # A symbol stripping program.
17290 STRIP=$lt_STRIP
17291
17292 # Commands used to install an old-style archive.
17293 RANLIB=$lt_RANLIB
17294 old_postinstall_cmds=$lt_old_postinstall_cmds
17295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17296
17297 # Whether to use a lock for old archive extraction.
17298 lock_old_archive_extraction=$lock_old_archive_extraction
17299
17300 # A C compiler.
17301 LTCC=$lt_CC
17302
17303 # LTCC compiler flags.
17304 LTCFLAGS=$lt_CFLAGS
17305
17306 # Take the output of nm and produce a listing of raw symbols and C names.
17307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17308
17309 # Transform the output of nm in a proper C declaration.
17310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17311
17312 # Transform the output of nm in a C name address pair.
17313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17314
17315 # Transform the output of nm in a C name address pair when lib prefix is needed.
17316 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17317
17318 # The name of the directory that contains temporary libtool files.
17319 objdir=$objdir
17320
17321 # Used to examine libraries when file_magic_cmd begins with "file".
17322 MAGIC_CMD=$MAGIC_CMD
17323
17324 # Must we lock files when doing compilation?
17325 need_locks=$lt_need_locks
17326
17327 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17328 DSYMUTIL=$lt_DSYMUTIL
17329
17330 # Tool to change global to local symbols on Mac OS X.
17331 NMEDIT=$lt_NMEDIT
17332
17333 # Tool to manipulate fat objects and archives on Mac OS X.
17334 LIPO=$lt_LIPO
17335
17336 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17337 OTOOL=$lt_OTOOL
17338
17339 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17340 OTOOL64=$lt_OTOOL64
17341
17342 # Old archive suffix (normally "a").
17343 libext=$libext
17344
17345 # Shared library suffix (normally ".so").
17346 shrext_cmds=$lt_shrext_cmds
17347
17348 # The commands to extract the exported symbol list from a shared archive.
17349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17350
17351 # Variables whose values should be saved in libtool wrapper scripts and
17352 # restored at link time.
17353 variables_saved_for_relink=$lt_variables_saved_for_relink
17354
17355 # Do we need the "lib" prefix for modules?
17356 need_lib_prefix=$need_lib_prefix
17357
17358 # Do we need a version for libraries?
17359 need_version=$need_version
17360
17361 # Library versioning type.
17362 version_type=$version_type
17363
17364 # Shared library runtime path variable.
17365 runpath_var=$runpath_var
17366
17367 # Shared library path variable.
17368 shlibpath_var=$shlibpath_var
17369
17370 # Is shlibpath searched before the hard-coded library search path?
17371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17372
17373 # Format of library name prefix.
17374 libname_spec=$lt_libname_spec
17375
17376 # List of archive names. First name is the real one, the rest are links.
17377 # The last name is the one that the linker finds with -lNAME
17378 library_names_spec=$lt_library_names_spec
17379
17380 # The coded name of the library, if different from the real name.
17381 soname_spec=$lt_soname_spec
17382
17383 # Permission mode override for installation of shared libraries.
17384 install_override_mode=$lt_install_override_mode
17385
17386 # Command to use after installation of a shared archive.
17387 postinstall_cmds=$lt_postinstall_cmds
17388
17389 # Command to use after uninstallation of a shared archive.
17390 postuninstall_cmds=$lt_postuninstall_cmds
17391
17392 # Commands used to finish a libtool library installation in a directory.
17393 finish_cmds=$lt_finish_cmds
17394
17395 # As "finish_cmds", except a single script fragment to be evaled but
17396 # not shown.
17397 finish_eval=$lt_finish_eval
17398
17399 # Whether we should hardcode library paths into libraries.
17400 hardcode_into_libs=$hardcode_into_libs
17401
17402 # Compile-time system search path for libraries.
17403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17404
17405 # Run-time system search path for libraries.
17406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17407
17408 # Whether dlopen is supported.
17409 dlopen_support=$enable_dlopen
17410
17411 # Whether dlopen of programs is supported.
17412 dlopen_self=$enable_dlopen_self
17413
17414 # Whether dlopen of statically linked programs is supported.
17415 dlopen_self_static=$enable_dlopen_self_static
17416
17417 # Commands to strip libraries.
17418 old_striplib=$lt_old_striplib
17419 striplib=$lt_striplib
17420
17421
17422 # The linker used to build libraries.
17423 LD=$lt_LD
17424
17425 # How to create reloadable object files.
17426 reload_flag=$lt_reload_flag
17427 reload_cmds=$lt_reload_cmds
17428
17429 # Commands used to build an old-style archive.
17430 old_archive_cmds=$lt_old_archive_cmds
17431
17432 # A language specific compiler.
17433 CC=$lt_compiler
17434
17435 # Is the compiler the GNU compiler?
17436 with_gcc=$GCC
17437
17438 # Compiler flag to turn off builtin functions.
17439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17440
17441 # How to pass a linker flag through the compiler.
17442 wl=$lt_lt_prog_compiler_wl
17443
17444 # Additional compiler flags for building library objects.
17445 pic_flag=$lt_lt_prog_compiler_pic
17446
17447 # Compiler flag to prevent dynamic linking.
17448 link_static_flag=$lt_lt_prog_compiler_static
17449
17450 # Does compiler simultaneously support -c and -o options?
17451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17452
17453 # Whether or not to add -lc for building shared libraries.
17454 build_libtool_need_lc=$archive_cmds_need_lc
17455
17456 # Whether or not to disallow shared libs when runtime libs are static.
17457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17458
17459 # Compiler flag to allow reflexive dlopens.
17460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17461
17462 # Compiler flag to generate shared objects directly from archives.
17463 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17464
17465 # Whether the compiler copes with passing no objects directly.
17466 compiler_needs_object=$lt_compiler_needs_object
17467
17468 # Create an old-style archive from a shared archive.
17469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17470
17471 # Create a temporary old-style archive to link instead of a shared archive.
17472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17473
17474 # Commands used to build a shared archive.
17475 archive_cmds=$lt_archive_cmds
17476 archive_expsym_cmds=$lt_archive_expsym_cmds
17477
17478 # Commands used to build a loadable module if different from building
17479 # a shared archive.
17480 module_cmds=$lt_module_cmds
17481 module_expsym_cmds=$lt_module_expsym_cmds
17482
17483 # Whether we are building with GNU ld or not.
17484 with_gnu_ld=$lt_with_gnu_ld
17485
17486 # Flag that allows shared libraries with undefined symbols to be built.
17487 allow_undefined_flag=$lt_allow_undefined_flag
17488
17489 # Flag that enforces no undefined symbols.
17490 no_undefined_flag=$lt_no_undefined_flag
17491
17492 # Flag to hardcode \$libdir into a binary during linking.
17493 # This must work even if \$libdir does not exist
17494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17495
17496 # If ld is used when linking, flag to hardcode \$libdir into a binary
17497 # during linking. This must work even if \$libdir does not exist.
17498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17499
17500 # Whether we need a single "-rpath" flag with a separated argument.
17501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17502
17503 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17504 # DIR into the resulting binary.
17505 hardcode_direct=$hardcode_direct
17506
17507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17508 # DIR into the resulting binary and the resulting library dependency is
17509 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17510 # library is relocated.
17511 hardcode_direct_absolute=$hardcode_direct_absolute
17512
17513 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17514 # into the resulting binary.
17515 hardcode_minus_L=$hardcode_minus_L
17516
17517 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17518 # into the resulting binary.
17519 hardcode_shlibpath_var=$hardcode_shlibpath_var
17520
17521 # Set to "yes" if building a shared library automatically hardcodes DIR
17522 # into the library and all subsequent libraries and executables linked
17523 # against it.
17524 hardcode_automatic=$hardcode_automatic
17525
17526 # Set to yes if linker adds runtime paths of dependent libraries
17527 # to runtime path list.
17528 inherit_rpath=$inherit_rpath
17529
17530 # Whether libtool must link a program against all its dependency libraries.
17531 link_all_deplibs=$link_all_deplibs
17532
17533 # Fix the shell variable \$srcfile for the compiler.
17534 fix_srcfile_path=$lt_fix_srcfile_path
17535
17536 # Set to "yes" if exported symbols are required.
17537 always_export_symbols=$always_export_symbols
17538
17539 # The commands to list exported symbols.
17540 export_symbols_cmds=$lt_export_symbols_cmds
17541
17542 # Symbols that should not be listed in the preloaded symbols.
17543 exclude_expsyms=$lt_exclude_expsyms
17544
17545 # Symbols that must always be exported.
17546 include_expsyms=$lt_include_expsyms
17547
17548 # Commands necessary for linking programs (against libraries) with templates.
17549 prelink_cmds=$lt_prelink_cmds
17550
17551 # Specify filename containing input files.
17552 file_list_spec=$lt_file_list_spec
17553
17554 # How to hardcode a shared library path into an executable.
17555 hardcode_action=$hardcode_action
17556
17557 # The directories searched by this compiler when creating a shared library.
17558 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17559
17560 # Dependencies to place before and after the objects being linked to
17561 # create a shared library.
17562 predep_objects=$lt_predep_objects
17563 postdep_objects=$lt_postdep_objects
17564 predeps=$lt_predeps
17565 postdeps=$lt_postdeps
17566
17567 # The library search path used internally by the compiler when linking
17568 # a shared library.
17569 compiler_lib_search_path=$lt_compiler_lib_search_path
17570
17571 # ### END LIBTOOL CONFIG
17572
17573 _LT_EOF
17574
17575 case $host_os in
17576 aix3*)
17577 cat <<\_LT_EOF >> "$cfgfile"
17578 # AIX sometimes has problems with the GCC collect2 program. For some
17579 # reason, if we set the COLLECT_NAMES environment variable, the problems
17580 # vanish in a puff of smoke.
17581 if test "X${COLLECT_NAMES+set}" != Xset; then
17582 COLLECT_NAMES=
17583 export COLLECT_NAMES
17584 fi
17585 _LT_EOF
17586 ;;
17587 esac
17588
17589
17590 ltmain="$ac_aux_dir/ltmain.sh"
17591
17592
17593 # We use sed instead of cat because bash on DJGPP gets confused if
17594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17595 # text mode, it properly converts lines to CR/LF. This bash problem
17596 # is reportedly fixed, but why not run on old versions too?
17597 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17598 || (rm -f "$cfgfile"; exit 1)
17599
17600 case $xsi_shell in
17601 yes)
17602 cat << \_LT_EOF >> "$cfgfile"
17603
17604 # func_dirname file append nondir_replacement
17605 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17606 # otherwise set result to NONDIR_REPLACEMENT.
17607 func_dirname ()
17608 {
17609 case ${1} in
17610 */*) func_dirname_result="${1%/*}${2}" ;;
17611 * ) func_dirname_result="${3}" ;;
17612 esac
17613 }
17614
17615 # func_basename file
17616 func_basename ()
17617 {
17618 func_basename_result="${1##*/}"
17619 }
17620
17621 # func_dirname_and_basename file append nondir_replacement
17622 # perform func_basename and func_dirname in a single function
17623 # call:
17624 # dirname: Compute the dirname of FILE. If nonempty,
17625 # add APPEND to the result, otherwise set result
17626 # to NONDIR_REPLACEMENT.
17627 # value returned in "$func_dirname_result"
17628 # basename: Compute filename of FILE.
17629 # value retuned in "$func_basename_result"
17630 # Implementation must be kept synchronized with func_dirname
17631 # and func_basename. For efficiency, we do not delegate to
17632 # those functions but instead duplicate the functionality here.
17633 func_dirname_and_basename ()
17634 {
17635 case ${1} in
17636 */*) func_dirname_result="${1%/*}${2}" ;;
17637 * ) func_dirname_result="${3}" ;;
17638 esac
17639 func_basename_result="${1##*/}"
17640 }
17641
17642 # func_stripname prefix suffix name
17643 # strip PREFIX and SUFFIX off of NAME.
17644 # PREFIX and SUFFIX must not contain globbing or regex special
17645 # characters, hashes, percent signs, but SUFFIX may contain a leading
17646 # dot (in which case that matches only a dot).
17647 func_stripname ()
17648 {
17649 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17650 # positional parameters, so assign one to ordinary parameter first.
17651 func_stripname_result=${3}
17652 func_stripname_result=${func_stripname_result#"${1}"}
17653 func_stripname_result=${func_stripname_result%"${2}"}
17654 }
17655
17656 # func_opt_split
17657 func_opt_split ()
17658 {
17659 func_opt_split_opt=${1%%=*}
17660 func_opt_split_arg=${1#*=}
17661 }
17662
17663 # func_lo2o object
17664 func_lo2o ()
17665 {
17666 case ${1} in
17667 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17668 *) func_lo2o_result=${1} ;;
17669 esac
17670 }
17671
17672 # func_xform libobj-or-source
17673 func_xform ()
17674 {
17675 func_xform_result=${1%.*}.lo
17676 }
17677
17678 # func_arith arithmetic-term...
17679 func_arith ()
17680 {
17681 func_arith_result=$(( $* ))
17682 }
17683
17684 # func_len string
17685 # STRING may not start with a hyphen.
17686 func_len ()
17687 {
17688 func_len_result=${#1}
17689 }
17690
17691 _LT_EOF
17692 ;;
17693 *) # Bourne compatible functions.
17694 cat << \_LT_EOF >> "$cfgfile"
17695
17696 # func_dirname file append nondir_replacement
17697 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17698 # otherwise set result to NONDIR_REPLACEMENT.
17699 func_dirname ()
17700 {
17701 # Extract subdirectory from the argument.
17702 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17703 if test "X$func_dirname_result" = "X${1}"; then
17704 func_dirname_result="${3}"
17705 else
17706 func_dirname_result="$func_dirname_result${2}"
17707 fi
17708 }
17709
17710 # func_basename file
17711 func_basename ()
17712 {
17713 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17714 }
17715
17716
17717 # func_stripname prefix suffix name
17718 # strip PREFIX and SUFFIX off of NAME.
17719 # PREFIX and SUFFIX must not contain globbing or regex special
17720 # characters, hashes, percent signs, but SUFFIX may contain a leading
17721 # dot (in which case that matches only a dot).
17722 # func_strip_suffix prefix name
17723 func_stripname ()
17724 {
17725 case ${2} in
17726 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17727 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17728 esac
17729 }
17730
17731 # sed scripts:
17732 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17733 my_sed_long_arg='1s/^-[^=]*=//'
17734
17735 # func_opt_split
17736 func_opt_split ()
17737 {
17738 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17739 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17740 }
17741
17742 # func_lo2o object
17743 func_lo2o ()
17744 {
17745 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17746 }
17747
17748 # func_xform libobj-or-source
17749 func_xform ()
17750 {
17751 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17752 }
17753
17754 # func_arith arithmetic-term...
17755 func_arith ()
17756 {
17757 func_arith_result=`expr "$@"`
17758 }
17759
17760 # func_len string
17761 # STRING may not start with a hyphen.
17762 func_len ()
17763 {
17764 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17765 }
17766
17767 _LT_EOF
17768 esac
17769
17770 case $lt_shell_append in
17771 yes)
17772 cat << \_LT_EOF >> "$cfgfile"
17773
17774 # func_append var value
17775 # Append VALUE to the end of shell variable VAR.
17776 func_append ()
17777 {
17778 eval "$1+=\$2"
17779 }
17780 _LT_EOF
17781 ;;
17782 *)
17783 cat << \_LT_EOF >> "$cfgfile"
17784
17785 # func_append var value
17786 # Append VALUE to the end of shell variable VAR.
17787 func_append ()
17788 {
17789 eval "$1=\$$1\$2"
17790 }
17791
17792 _LT_EOF
17793 ;;
17794 esac
17795
17796
17797 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17798 || (rm -f "$cfgfile"; exit 1)
17799
17800 mv -f "$cfgfile" "$ofile" ||
17801 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17802 chmod +x "$ofile"
17803
17804
17805 cat <<_LT_EOF >> "$ofile"
17806
17807 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17808
17809 # The linker used to build libraries.
17810 LD=$lt_LD_CXX
17811
17812 # How to create reloadable object files.
17813 reload_flag=$lt_reload_flag_CXX
17814 reload_cmds=$lt_reload_cmds_CXX
17815
17816 # Commands used to build an old-style archive.
17817 old_archive_cmds=$lt_old_archive_cmds_CXX
17818
17819 # A language specific compiler.
17820 CC=$lt_compiler_CXX
17821
17822 # Is the compiler the GNU compiler?
17823 with_gcc=$GCC_CXX
17824
17825 # Compiler flag to turn off builtin functions.
17826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17827
17828 # How to pass a linker flag through the compiler.
17829 wl=$lt_lt_prog_compiler_wl_CXX
17830
17831 # Additional compiler flags for building library objects.
17832 pic_flag=$lt_lt_prog_compiler_pic_CXX
17833
17834 # Compiler flag to prevent dynamic linking.
17835 link_static_flag=$lt_lt_prog_compiler_static_CXX
17836
17837 # Does compiler simultaneously support -c and -o options?
17838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17839
17840 # Whether or not to add -lc for building shared libraries.
17841 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17842
17843 # Whether or not to disallow shared libs when runtime libs are static.
17844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17845
17846 # Compiler flag to allow reflexive dlopens.
17847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17848
17849 # Compiler flag to generate shared objects directly from archives.
17850 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17851
17852 # Whether the compiler copes with passing no objects directly.
17853 compiler_needs_object=$lt_compiler_needs_object_CXX
17854
17855 # Create an old-style archive from a shared archive.
17856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17857
17858 # Create a temporary old-style archive to link instead of a shared archive.
17859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17860
17861 # Commands used to build a shared archive.
17862 archive_cmds=$lt_archive_cmds_CXX
17863 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17864
17865 # Commands used to build a loadable module if different from building
17866 # a shared archive.
17867 module_cmds=$lt_module_cmds_CXX
17868 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17869
17870 # Whether we are building with GNU ld or not.
17871 with_gnu_ld=$lt_with_gnu_ld_CXX
17872
17873 # Flag that allows shared libraries with undefined symbols to be built.
17874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17875
17876 # Flag that enforces no undefined symbols.
17877 no_undefined_flag=$lt_no_undefined_flag_CXX
17878
17879 # Flag to hardcode \$libdir into a binary during linking.
17880 # This must work even if \$libdir does not exist
17881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17882
17883 # If ld is used when linking, flag to hardcode \$libdir into a binary
17884 # during linking. This must work even if \$libdir does not exist.
17885 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17886
17887 # Whether we need a single "-rpath" flag with a separated argument.
17888 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17889
17890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17891 # DIR into the resulting binary.
17892 hardcode_direct=$hardcode_direct_CXX
17893
17894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17895 # DIR into the resulting binary and the resulting library dependency is
17896 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17897 # library is relocated.
17898 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17899
17900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17901 # into the resulting binary.
17902 hardcode_minus_L=$hardcode_minus_L_CXX
17903
17904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17905 # into the resulting binary.
17906 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17907
17908 # Set to "yes" if building a shared library automatically hardcodes DIR
17909 # into the library and all subsequent libraries and executables linked
17910 # against it.
17911 hardcode_automatic=$hardcode_automatic_CXX
17912
17913 # Set to yes if linker adds runtime paths of dependent libraries
17914 # to runtime path list.
17915 inherit_rpath=$inherit_rpath_CXX
17916
17917 # Whether libtool must link a program against all its dependency libraries.
17918 link_all_deplibs=$link_all_deplibs_CXX
17919
17920 # Fix the shell variable \$srcfile for the compiler.
17921 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17922
17923 # Set to "yes" if exported symbols are required.
17924 always_export_symbols=$always_export_symbols_CXX
17925
17926 # The commands to list exported symbols.
17927 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17928
17929 # Symbols that should not be listed in the preloaded symbols.
17930 exclude_expsyms=$lt_exclude_expsyms_CXX
17931
17932 # Symbols that must always be exported.
17933 include_expsyms=$lt_include_expsyms_CXX
17934
17935 # Commands necessary for linking programs (against libraries) with templates.
17936 prelink_cmds=$lt_prelink_cmds_CXX
17937
17938 # Specify filename containing input files.
17939 file_list_spec=$lt_file_list_spec_CXX
17940
17941 # How to hardcode a shared library path into an executable.
17942 hardcode_action=$hardcode_action_CXX
17943
17944 # The directories searched by this compiler when creating a shared library.
17945 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17946
17947 # Dependencies to place before and after the objects being linked to
17948 # create a shared library.
17949 predep_objects=$lt_predep_objects_CXX
17950 postdep_objects=$lt_postdep_objects_CXX
17951 predeps=$lt_predeps_CXX
17952 postdeps=$lt_postdeps_CXX
17953
17954 # The library search path used internally by the compiler when linking
17955 # a shared library.
17956 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17957
17958 # ### END LIBTOOL TAG CONFIG: CXX
17959 _LT_EOF
17960
17961 ;;
17962 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17963 s!`test -f '$<' || echo '$(srcdir)/'`!!
17964 _EOF
17965 sed -f vpsed$$ $ac_file > tmp$$
17966 mv tmp$$ $ac_file
17967 rm vpsed$$
17968 echo 'MULTISUBDIR =' >> $ac_file
17969 ml_norecursion=yes
17970 . ${multi_basedir}/config-ml.in
17971 { ml_norecursion=; unset ml_norecursion;}
17972 ;;
17973
17974 esac
17975 done # for ac_tag
17976
17977
17978 as_fn_exit 0
17979 _ACEOF
17980 ac_clean_files=$ac_clean_files_save
17981
17982 test $ac_write_fail = 0 ||
17983 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17984
17985
17986 # configure is writing to config.log, and then calls config.status.
17987 # config.status does its own redirection, appending to config.log.
17988 # Unfortunately, on DOS this fails, as config.log is still kept open
17989 # by configure, so config.status won't be able to write to it; its
17990 # output is simply discarded. So we exec the FD to /dev/null,
17991 # effectively closing config.log, so it can be properly (re)opened and
17992 # appended to by config.status. When coming back to configure, we
17993 # need to make the FD available again.
17994 if test "$no_create" != yes; then
17995 ac_cs_success=:
17996 ac_config_status_args=
17997 test "$silent" = yes &&
17998 ac_config_status_args="$ac_config_status_args --quiet"
17999 exec 5>/dev/null
18000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18001 exec 5>>config.log
18002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18003 # would make configure fail if this is the last instruction.
18004 $ac_cs_success || as_fn_exit $?
18005 fi
18006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18009 fi
18010